diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 8a158a9f..9243e884 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,19 +1,19 @@ lockVersion: 2.0.0 id: 664aaca5-a41f-4434-8f2a-642dba92fe68 management: - docChecksum: 207954685035211fccc09d328c09e985 + docChecksum: 74646e230b3f40b8ae92d641bbb73b26 docVersion: 0.9.0 - speakeasyVersion: 1.675.2 - generationVersion: 2.778.5 - releaseVersion: 0.13.16 - configChecksum: 0498c0d8a9926574cdc7bde1dede5c40 + speakeasyVersion: 1.675.4 + generationVersion: 2.779.2 + releaseVersion: 0.13.17 + configChecksum: a5a540f336893515b451edd1f24c2509 repoURL: https://github.com/gleanwork/api-client-typescript.git installationURL: https://github.com/gleanwork/api-client-typescript published: true persistentEdits: - generation_id: 75119993-4258-4638-bb44-5cac2eb8c0cf - pristine_commit_hash: ec4a09e43dbdcfc4eae160c4a4d81d23ef46abb5 - pristine_tree_hash: 631144f4e2dec1c379ac3c9f384767ebbcac809b + generation_id: 47b6be80-6ebf-4de6-983c-d810af839d7b + pristine_commit_hash: 21d9c6549055e39c5ab836b01e887d2ca184c6bb + pristine_tree_hash: 03201e61664c5581cb2c241518107e6695b9e0d4 features: typescript: additionalDependencies: 0.1.0 @@ -388,8 +388,8 @@ trackedFiles: pristine_git_object: db1282d6f5d8f3e68203fdbb3ff195f44c8c409b docs/models/components/chatfilefailurereason.md: id: 34e666b3a705 - last_write_checksum: sha1:8674d7592585ef5ffcf2006182780cfff71316a6 - pristine_git_object: db7d2df5386d9ddc3e30a856a79913ffea81ce4b + last_write_checksum: sha1:d4706299b266f26957149477559b98338e9cb99e + pristine_git_object: 4c72b9fe0ca6b21a197899a4309a72229196080c docs/models/components/chatfilemetadata.md: id: 11ce8d1e75f6 last_write_checksum: sha1:0ec824879c652ff296dac56c1b7c29201ce6fc55 @@ -2044,8 +2044,8 @@ trackedFiles: pristine_git_object: 12dccd8ae84e778eb7161965b9a6c23ffa7a3203 docs/models/components/structuredresultsource.md: id: 2a0ffad4261a - last_write_checksum: sha1:1bed1564d09b392a5bb00b68747d1a80eada3b77 - pristine_git_object: b68ea07873c68c410e4c4ca8903c5cfd547963cc + last_write_checksum: sha1:f4f83002054c509cfbea7a93b1902325f34e50a9 + pristine_git_object: ab44713c757b564440ad22d8b521d4cee7d7de86 docs/models/components/structuredtext.md: id: cef01cf796a9 last_write_checksum: sha1:80f5c8902a7b266f16befc4ca19b8e447e95367a @@ -2632,12 +2632,12 @@ trackedFiles: pristine_git_object: 5a2797590d4be351d62915017d5b2a0f853537c8 jsr.json: id: 7f6ab7767282 - last_write_checksum: sha1:db4ab244f3f85968789f92655a05297094465aa0 - pristine_git_object: aad5c95c0e463fbe3b98cf14e9f4e554e889e44b + last_write_checksum: sha1:e7f55b81b811c202eca4fb565b24d8b40a1f1767 + pristine_git_object: 99dae8bcfb02410c91d58a83bd3e922088cd7b82 package.json: id: 7030d0b2f71b - last_write_checksum: sha1:45e785e3a0958c8212afd3ffc5a7b9b4900885f3 - pristine_git_object: 1ac178a10a70acfb3b3f8fcd7d25221a81746758 + last_write_checksum: sha1:88e482b196110588ea574e82a7a7f69f5011ebf7 + pristine_git_object: 559191ada2af5f699bb93fd427c803b7f0ba82ed src/__tests__/activities.test.ts: id: 65fa859b8f59 last_write_checksum: sha1:967fae9ee4ae9dd9ee8383b2ce261d26d05d9873 @@ -2843,7 +2843,7 @@ trackedFiles: src/__tests__/mockserver/internal/handler/pathpostrestapiv1createauthtoken.go: last_write_checksum: sha1:6ce83ba03066acb436796c018d19715615f548c1 src/__tests__/mockserver/internal/handler/pathpostrestapiv1createcollection.go: - last_write_checksum: sha1:f9f4c718408bddadbdf826194f07970bb111e57e + last_write_checksum: sha1:14b4a1d98dd55ce2b487ae1aaab4a7dece08df25 src/__tests__/mockserver/internal/handler/pathpostrestapiv1createshortcut.go: last_write_checksum: sha1:2f9468a50936c4cb0fb2101d97c1425cb36ba2d4 src/__tests__/mockserver/internal/handler/pathpostrestapiv1deleteallchats.go: @@ -3059,7 +3059,7 @@ trackedFiles: src/__tests__/mockserver/internal/sdk/models/components/chatfile.go: last_write_checksum: sha1:2d220b166f37523e64aa0965e237872532f4ccfe src/__tests__/mockserver/internal/sdk/models/components/chatfilefailurereason.go: - last_write_checksum: sha1:2178b351fd9bcfc0b11e0ce7ef52d59762b757db + last_write_checksum: sha1:21b914bf1323b19bede96d1e8a4e56494c2f7a4f src/__tests__/mockserver/internal/sdk/models/components/chatfilemetadata.go: last_write_checksum: sha1:4e608b0813ad32b7a981f73a511952b6459979e0 src/__tests__/mockserver/internal/sdk/models/components/chatfilestatus.go: @@ -3705,7 +3705,7 @@ trackedFiles: src/__tests__/mockserver/internal/sdk/models/components/structuredlocation.go: last_write_checksum: sha1:952c61d565a519770c1e1bd456dbe06a43527a1d src/__tests__/mockserver/internal/sdk/models/components/structuredresult.go: - last_write_checksum: sha1:d1114da6ac2c2ecca7b66464b3c7c2b0cbab4bd2 + last_write_checksum: sha1:d557993e556e831f0bef162e5388c35ed4499055 src/__tests__/mockserver/internal/sdk/models/components/structuredtext.go: last_write_checksum: sha1:355352f1325e5756bc262be00952f3a75b46de11 src/__tests__/mockserver/internal/sdk/models/components/structuredtextitem.go: @@ -4120,8 +4120,8 @@ trackedFiles: pristine_git_object: 6471c989c852287b210470481dda5853db47ec58 src/__tests__/summarize.test.ts: id: 3105d6ebc7eb - last_write_checksum: sha1:28b2f0b135e43618f430c583a0563dacd9d17cc0 - pristine_git_object: dbf7d37b1afc8afac7d5263425d0fbc7ab16f91b + last_write_checksum: sha1:160431c499f848da9e93d32c2586e3920ce937b5 + pristine_git_object: 7c2057b787870dfe9cd556ae648d1bb75755ff72 src/__tests__/testclient.ts: id: f142c080bff8 last_write_checksum: sha1:a62cc200f8a9f9c0310ce1b8ba6392d480ab5569 @@ -4616,8 +4616,8 @@ trackedFiles: pristine_git_object: 0aebd8b0a4867e35cb3348fc52921c3c0b4725b7 src/lib/config.ts: id: 320761608fb3 - last_write_checksum: sha1:209fa43b63a5d22c0e611f6319bbcaa379adb0e6 - pristine_git_object: e9d526c38049541ad0e00f3709d8fa917f2d7bc7 + last_write_checksum: sha1:e9bf6afe7448274b42d6b440532b0b81f9b16dc7 + pristine_git_object: 51c43a42b12f45d12cead476d639fd7302d21a51 src/lib/dlv.ts: id: b1988214835a last_write_checksum: sha1:1dd3e3fbb4550c4bf31f5ef997faff355d6f3250 @@ -4892,8 +4892,8 @@ trackedFiles: pristine_git_object: 0a7a74d37b8566659cce72d06f297f50159c9dfa src/models/components/chatfilefailurereason.ts: id: 4295f03824e3 - last_write_checksum: sha1:08fd249f7443d2e3ca7c9a410972ae893ff2efb9 - pristine_git_object: 2bede0199db5a4b99029cd6cf41273dae5e78ecb + last_write_checksum: sha1:2c8ab5b77c34610568398b69e71d9c5782be9647 + pristine_git_object: 9560bd7ddd61b86f0dd1a0e99c80fa5b4db89aec src/models/components/chatfilemetadata.ts: id: 07d7da1ac06f last_write_checksum: sha1:0fbcd527205d3528d6729ef3f573fa0e28aab37b @@ -6184,8 +6184,8 @@ trackedFiles: pristine_git_object: db2ab66f74df01daab2d07b9b9801b3a08dca603 src/models/components/structuredresult.ts: id: cebabd4425f8 - last_write_checksum: sha1:feaeaf4bc3815d515e03924f6acd445c404b4ea3 - pristine_git_object: 2f465e94efdbf6f9c67a2840347c3153839b8ff2 + last_write_checksum: sha1:4b6b69e9d939e5c4d349a5b9fc28dad7c9f6080a + pristine_git_object: 158a433ca92eff9234d16d76af63098b672918ab src/models/components/structuredtext.ts: id: 4f8f44c118ad last_write_checksum: sha1:dc86159454006f155bc6e1a7b330b9cf4f9d3393 diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 4b936ce5..5b74a414 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -31,7 +31,7 @@ generation: generateNewTests: true skipResponseBodyAssertions: true typescript: - version: 0.13.16 + version: 0.13.17 acceptHeaderEnum: true additionalDependencies: dependencies: {} diff --git a/.speakeasy/glean-merged-spec.yaml b/.speakeasy/glean-merged-spec.yaml index 96c6a714..7bd5df18 100644 --- a/.speakeasy/glean-merged-spec.yaml +++ b/.speakeasy/glean-merged-spec.yaml @@ -2,7 +2,7 @@ openapi: 3.0.0 info: version: 0.9.0 title: Glean API - x-source-commit-sha: c421da4d9e6ea41e15cd1479c5a295678893037a + x-source-commit-sha: 2716d99b958fa0dbf1a48290203cb28f43c37a92 description: | # Introduction In addition to the data sources that Glean has built-in support for, Glean also provides a REST API that enables customers to put arbitrary content in the search index. This is useful, for example, for doing permissions-aware search over content in internal tools that reside on-prem as well as for searching over applications that Glean does not currently support first class. In addition these APIs allow the customer to push organization data (people info, organization structure etc) into Glean. @@ -22,7 +22,7 @@ info: These API clients provide type-safe, idiomatic interfaces for working with Glean IndexingAPIs in your language of choice. x-logo: url: https://app.glean.com/images/glean-text2.svg - x-open-api-commit-sha: 63bb6643b644c156c810eda25a823001da3dc730 + x-open-api-commit-sha: ecce1959afb4701947e853c482ed77ed6743e643 x-speakeasy-name: 'Glean API' servers: - url: https://{instance}-be.glean.com @@ -6176,6 +6176,8 @@ components: enum: - EXPERT_DETECTION - ENTITY_NLQ + - CALENDAR_EVENT + - AGENT Result: properties: structuredResults: @@ -7232,6 +7234,10 @@ components: - FILE_EXTENSION_UNSUPPORTED - FILE_METADATA_VALIDATION_FAIL - FILE_PROCESSING_TIMED_OUT + - OAUTH_NEEDED + - URL_FETCH_FAILED + - EMPTY_CONTENT + - AUTH_REQUIRED ChatFileMetadata: type: object description: Metadata of a file uploaded by a user for Chat. @@ -7605,6 +7611,12 @@ components: sessionInfo: description: Optional object for tracking the session used by the client and for debugging purposes. $ref: "#/components/schemas/SessionInfo" + saveChat: + type: boolean + description: Save the current interaction as a Chat for the user to access and potentially continue later. + chatId: + type: string + description: The id of the Chat that context should be retrieved from and messages added to. An empty id starts a new Chat, and the Chat is saved if saveChat is true. ChatRestrictionFilters: allOf: - $ref: "#/components/schemas/RestrictionFilters" @@ -7623,12 +7635,6 @@ components: - $ref: "#/components/schemas/ChatRequestBase" - type: object properties: - saveChat: - type: boolean - description: Save the current interaction as a Chat for the user to access and potentially continue later. - chatId: - type: string - description: The id of the Chat that context should be retrieved from and messages added to. An empty id starts a new Chat, and the Chat is saved if saveChat is true. agentConfig: $ref: "#/components/schemas/AgentConfig" description: Describes the agent that will execute the request. diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 836fd343..012b2aca 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,12 +1,12 @@ -speakeasyVersion: 1.675.2 +speakeasyVersion: 1.675.4 sources: Glean API: sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:11103a1f396170590eecfe5a3ab944166bebe03ea86b6115649dd4e1eabaad64 - sourceBlobDigest: sha256:882470301f4880a2e93e6d36dca5e2d0d97b252d70b2b24cde373eccdeb9296e + sourceRevisionDigest: sha256:cf8e5c9ddb51d4048054a3fd1d50321965893416a776cc9a328031075305918c + sourceBlobDigest: sha256:c3c7966652dafb9a4cd580555d5b9d13a43ab4f198e2693485bdb5cc46094d3b tags: - latest - - speakeasy-sdk-regen-1765395785 + - speakeasy-sdk-regen-1765404413 Glean Client API: sourceNamespace: glean-client-api sourceRevisionDigest: sha256:aec0770b5bcca91068c3a844cb9ef4a091281f6cc3b7d86f2abef1bd6fb2b301 @@ -18,10 +18,10 @@ targets: glean: source: Glean API sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:11103a1f396170590eecfe5a3ab944166bebe03ea86b6115649dd4e1eabaad64 - sourceBlobDigest: sha256:882470301f4880a2e93e6d36dca5e2d0d97b252d70b2b24cde373eccdeb9296e + sourceRevisionDigest: sha256:cf8e5c9ddb51d4048054a3fd1d50321965893416a776cc9a328031075305918c + sourceBlobDigest: sha256:c3c7966652dafb9a4cd580555d5b9d13a43ab4f198e2693485bdb5cc46094d3b codeSamplesNamespace: glean-api-specs-typescript-code-samples - codeSamplesRevisionDigest: sha256:7df18874461802606d0f475d3be4d3de277500b372a755bcb96d6587a847bf87 + codeSamplesRevisionDigest: sha256:23b42963b9d468e38489dbb64607d6a4b87251af6173e8d4e01c3b461d3e4f03 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/RELEASES.md b/RELEASES.md index 04d4ec5f..b35b133a 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -518,4 +518,14 @@ Based on: ### Generated - [typescript v0.13.16] . ### Releases -- [NPM v0.13.16] https://www.npmjs.com/package/@gleanwork/api-client/v/0.13.16 - . \ No newline at end of file +- [NPM v0.13.16] https://www.npmjs.com/package/@gleanwork/api-client/v/0.13.16 - . + +## 2025-12-11 14:34:49 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.675.4 (2.779.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v0.13.17] . +### Releases +- [NPM v0.13.17] https://www.npmjs.com/package/@gleanwork/api-client/v/0.13.17 - . \ No newline at end of file diff --git a/docs/models/components/chatfilefailurereason.md b/docs/models/components/chatfilefailurereason.md index db7d2df5..4c72b9fe 100644 --- a/docs/models/components/chatfilefailurereason.md +++ b/docs/models/components/chatfilefailurereason.md @@ -13,5 +13,5 @@ let value: ChatFileFailureReason = "PARSE_FAILED"; ## Values ```typescript -"PARSE_FAILED" | "AV_SCAN_FAILED" | "FILE_TOO_SMALL" | "FILE_TOO_LARGE" | "FILE_EXTENSION_UNSUPPORTED" | "FILE_METADATA_VALIDATION_FAIL" | "FILE_PROCESSING_TIMED_OUT" +"PARSE_FAILED" | "AV_SCAN_FAILED" | "FILE_TOO_SMALL" | "FILE_TOO_LARGE" | "FILE_EXTENSION_UNSUPPORTED" | "FILE_METADATA_VALIDATION_FAIL" | "FILE_PROCESSING_TIMED_OUT" | "OAUTH_NEEDED" | "URL_FETCH_FAILED" | "EMPTY_CONTENT" | "AUTH_REQUIRED" ``` \ No newline at end of file diff --git a/docs/models/components/structuredresultsource.md b/docs/models/components/structuredresultsource.md index b68ea078..ab44713c 100644 --- a/docs/models/components/structuredresultsource.md +++ b/docs/models/components/structuredresultsource.md @@ -7,11 +7,11 @@ Source context for this result. Possible values depend on the result type. ```typescript import { StructuredResultSource } from "@gleanwork/api-client/models/components"; -let value: StructuredResultSource = "EXPERT_DETECTION"; +let value: StructuredResultSource = "ENTITY_NLQ"; ``` ## Values ```typescript -"EXPERT_DETECTION" | "ENTITY_NLQ" +"EXPERT_DETECTION" | "ENTITY_NLQ" | "CALENDAR_EVENT" | "AGENT" ``` \ No newline at end of file diff --git a/examples/package-lock.json b/examples/package-lock.json index 39bb3aef..0bfe3849 100644 --- a/examples/package-lock.json +++ b/examples/package-lock.json @@ -18,7 +18,7 @@ }, "..": { "name": "@gleanwork/api-client", - "version": "0.13.16", + "version": "0.13.17", "dependencies": { "zod": "^3.25.0 || ^4.0.0" }, diff --git a/jsr.json b/jsr.json index aad5c95c..99dae8bc 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "@gleanwork/api-client", - "version": "0.13.16", + "version": "0.13.17", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index 187cb9f7..2181e993 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@gleanwork/api-client", - "version": "0.13.16", + "version": "0.13.17", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@gleanwork/api-client", - "version": "0.13.16", + "version": "0.13.17", "dependencies": { "zod": "^3.25.0 || ^4.0.0" }, diff --git a/package.json b/package.json index 1ac178a1..559191ad 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@gleanwork/api-client", - "version": "0.13.16", + "version": "0.13.17", "author": "Speakeasy", "type": "module", "tshy": { diff --git a/src/__tests__/mockserver/internal/handler/pathpostrestapiv1createcollection.go b/src/__tests__/mockserver/internal/handler/pathpostrestapiv1createcollection.go index 5c99a0ad..371b9023 100644 --- a/src/__tests__/mockserver/internal/handler/pathpostrestapiv1createcollection.go +++ b/src/__tests__/mockserver/internal/handler/pathpostrestapiv1createcollection.go @@ -56,14 +56,14 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ operations.ResponseBody2{ Collection: &components.Collection{ Name: "", - Description: "motionless whenever paintwork import over cuckoo", + Description: "whole busily jive hawk gee basic minus hence", AddedRoles: []components.UserRoleSpecification{ components.UserRoleSpecification{ Person: &components.Person{ Name: "George Clooney", ObfuscatedID: "abc123", }, - Role: components.UserRoleOwner, + Role: components.UserRoleAnswerModerator, }, }, RemovedRoles: []components.UserRoleSpecification{ @@ -90,7 +90,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ }, }, }, - ID: 363711, + ID: 158969, Creator: &components.Person{ Name: "George Clooney", ObfuscatedID: "abc123", @@ -101,7 +101,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ }, Items: []components.CollectionItem{ components.CollectionItem{ - CollectionID: 570197, + CollectionID: 110375, CreatedBy: &components.Person{ Name: "George Clooney", ObfuscatedID: "abc123", @@ -266,13 +266,13 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ Name: "George Clooney", ObfuscatedID: "abc123", }, - Role: components.UserRoleAnswerModerator, + Role: components.UserRoleEditor, }, }, }, Collection: &components.Collection{ Name: "", - Description: "athwart skateboard newsstand farm bourgeoisie ah how elliptical aha well-to-do", + Description: "wedge colorfully orientate rally", AudienceFilters: []components.FacetFilter{ components.FacetFilter{ FieldName: types.String("type"), @@ -288,7 +288,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ }, }, }, - ID: 643990, + ID: 131797, Creator: &components.Person{ Name: "George Clooney", ObfuscatedID: "abc123", @@ -300,7 +300,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ Children: []components.Collection{ components.Collection{ Name: "", - Description: "woot purse salty even as advanced", + Description: "outside yippee sidetrack mature regularly mouser inject worth", AudienceFilters: []components.FacetFilter{ components.FacetFilter{ FieldName: types.String("type"), @@ -316,7 +316,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ }, }, }, - ID: 359978, + ID: 149448, Creator: &components.Person{ Name: "George Clooney", ObfuscatedID: "abc123", @@ -328,7 +328,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ }, }, }, - ItemType: components.CollectionItemItemTypeURL, + ItemType: components.CollectionItemItemTypeCollection, }, }, }, diff --git a/src/__tests__/mockserver/internal/sdk/models/components/chatfilefailurereason.go b/src/__tests__/mockserver/internal/sdk/models/components/chatfilefailurereason.go index a5a23627..b77365d9 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/chatfilefailurereason.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/chatfilefailurereason.go @@ -18,6 +18,10 @@ const ( ChatFileFailureReasonFileExtensionUnsupported ChatFileFailureReason = "FILE_EXTENSION_UNSUPPORTED" ChatFileFailureReasonFileMetadataValidationFail ChatFileFailureReason = "FILE_METADATA_VALIDATION_FAIL" ChatFileFailureReasonFileProcessingTimedOut ChatFileFailureReason = "FILE_PROCESSING_TIMED_OUT" + ChatFileFailureReasonOauthNeeded ChatFileFailureReason = "OAUTH_NEEDED" + ChatFileFailureReasonURLFetchFailed ChatFileFailureReason = "URL_FETCH_FAILED" + ChatFileFailureReasonEmptyContent ChatFileFailureReason = "EMPTY_CONTENT" + ChatFileFailureReasonAuthRequired ChatFileFailureReason = "AUTH_REQUIRED" ) func (e ChatFileFailureReason) ToPointer() *ChatFileFailureReason { @@ -42,6 +46,14 @@ func (e *ChatFileFailureReason) UnmarshalJSON(data []byte) error { case "FILE_METADATA_VALIDATION_FAIL": fallthrough case "FILE_PROCESSING_TIMED_OUT": + fallthrough + case "OAUTH_NEEDED": + fallthrough + case "URL_FETCH_FAILED": + fallthrough + case "EMPTY_CONTENT": + fallthrough + case "AUTH_REQUIRED": *e = ChatFileFailureReason(v) return nil default: diff --git a/src/__tests__/mockserver/internal/sdk/models/components/structuredresult.go b/src/__tests__/mockserver/internal/sdk/models/components/structuredresult.go index 601481ab..71f8c3e2 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/structuredresult.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/structuredresult.go @@ -44,6 +44,8 @@ type StructuredResultSource string const ( StructuredResultSourceExpertDetection StructuredResultSource = "EXPERT_DETECTION" StructuredResultSourceEntityNlq StructuredResultSource = "ENTITY_NLQ" + StructuredResultSourceCalendarEvent StructuredResultSource = "CALENDAR_EVENT" + StructuredResultSourceAgent StructuredResultSource = "AGENT" ) func (e StructuredResultSource) ToPointer() *StructuredResultSource { @@ -58,6 +60,10 @@ func (e *StructuredResultSource) UnmarshalJSON(data []byte) error { case "EXPERT_DETECTION": fallthrough case "ENTITY_NLQ": + fallthrough + case "CALENDAR_EVENT": + fallthrough + case "AGENT": *e = StructuredResultSource(v) return nil default: diff --git a/src/__tests__/summarize.test.ts b/src/__tests__/summarize.test.ts index dbf7d37b..7c2057b7 100644 --- a/src/__tests__/summarize.test.ts +++ b/src/__tests__/summarize.test.ts @@ -18,8 +18,7 @@ test("Summarize Summarize", async () => { const result = await glean.client.documents.summarize({ documentSpecs: [ { - ugcType: "SHORTCUTS", - contentId: 544883, + url: "https://dim-glider.com/", }, { id: "", diff --git a/src/lib/config.ts b/src/lib/config.ts index e9d526c3..51c43a42 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -68,8 +68,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "0.9.0", - sdkVersion: "0.13.16", - genVersion: "2.778.5", + sdkVersion: "0.13.17", + genVersion: "2.779.2", userAgent: - "speakeasy-sdk/typescript 0.13.16 2.778.5 0.9.0 @gleanwork/api-client", + "speakeasy-sdk/typescript 0.13.17 2.779.2 0.9.0 @gleanwork/api-client", } as const; diff --git a/src/models/components/chatfilefailurereason.ts b/src/models/components/chatfilefailurereason.ts index 2bede019..9560bd7d 100644 --- a/src/models/components/chatfilefailurereason.ts +++ b/src/models/components/chatfilefailurereason.ts @@ -16,6 +16,10 @@ export const ChatFileFailureReason = { FileExtensionUnsupported: "FILE_EXTENSION_UNSUPPORTED", FileMetadataValidationFail: "FILE_METADATA_VALIDATION_FAIL", FileProcessingTimedOut: "FILE_PROCESSING_TIMED_OUT", + OauthNeeded: "OAUTH_NEEDED", + UrlFetchFailed: "URL_FETCH_FAILED", + EmptyContent: "EMPTY_CONTENT", + AuthRequired: "AUTH_REQUIRED", } as const; /** * Reason for failed status. diff --git a/src/models/components/structuredresult.ts b/src/models/components/structuredresult.ts index 2f465e94..158a433c 100644 --- a/src/models/components/structuredresult.ts +++ b/src/models/components/structuredresult.ts @@ -156,6 +156,8 @@ export type Prominence = ClosedEnum; export const StructuredResultSource = { ExpertDetection: "EXPERT_DETECTION", EntityNlq: "ENTITY_NLQ", + CalendarEvent: "CALENDAR_EVENT", + Agent: "AGENT", } as const; /** * Source context for this result. Possible values depend on the result type.