From 0eaa6fc2941207a7587af8b948e6b5437575c138 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 5 Nov 2025 16:13:04 +0000 Subject: [PATCH 1/2] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.649.0 --- .speakeasy/gen.lock | 17 +++++++---------- .speakeasy/gen.yaml | 3 ++- .speakeasy/glean-merged-spec.yaml | 5 +++-- .speakeasy/workflow.lock | 14 +++++++------- README.md | 3 ++- RELEASES.md | 12 +++++++++++- docs/models/components/chatmessagefragment.md | 2 +- .../debugdatasourcestatusresponsecounts.md | 2 +- examples/package-lock.json | 2 +- jsr.json | 2 +- package-lock.json | 4 ++-- package.json | 2 +- src/__tests__/messages.test.ts | 2 +- .../handler/pathpostrestapiv1getchat.go | 4 ++-- .../models/components/chatmessagefragment.go | 2 +- .../components/debugdatasourcestatusresponse.go | 3 ++- src/__tests__/summarize.test.ts | 5 +++-- src/lib/config.ts | 6 +++--- src/models/components/chatmessagefragment.ts | 2 +- .../components/debugdatasourcestatusresponse.ts | 4 +++- 20 files changed, 55 insertions(+), 41 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 335027bc..8c6ffd32 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 664aaca5-a41f-4434-8f2a-642dba92fe68 management: - docChecksum: 2ffc5de135d861194642d3cb0a9e3bb4 + docChecksum: 32dd53402e2cd4015df1497391a25ceb docVersion: 0.9.0 - speakeasyVersion: 1.642.1 - generationVersion: 2.731.4 - releaseVersion: 0.13.2 - configChecksum: 82244f60cc8b73c7294d00c1e83c8b08 + speakeasyVersion: 1.649.0 + generationVersion: 2.739.1 + releaseVersion: 0.13.3 + configChecksum: 790fc0fed77200cbf77a072759051d5d repoURL: https://github.com/gleanwork/api-client-typescript.git installationURL: https://github.com/gleanwork/api-client-typescript published: true @@ -15,7 +15,7 @@ features: additionalDependencies: 0.1.0 additionalProperties: 0.1.2 constsAndDefaults: 0.1.12 - core: 3.24.1 + core: 3.26.0 defaultEnabledRetries: 0.1.0 deprecations: 2.81.1 devContainers: 2.90.1 @@ -26,7 +26,7 @@ features: globalSecurity: 2.82.14 globalSecurityCallbacks: 0.1.0 globalSecurityFlattening: 0.1.0 - globalServerURLs: 2.82.5 + globalServerURLs: 2.83.0 groups: 2.81.3 mockServer: 0.1.1 nameOverrides: 2.81.2 @@ -2979,6 +2979,3 @@ generatedTests: createpolicy: "2025-06-09T18:05:10Z" createreport: "2025-06-09T18:05:10Z" setdocvisibility: "2025-06-09T18:05:10Z" -releaseNotes: | - ## Typescript SDK Changes Detected: - * `glean.client.insights.retrieve()`: `response.agentsresponse` **Changed** diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index cba5fe00..890fa729 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -29,13 +29,14 @@ generation: generateNewTests: true skipResponseBodyAssertions: true typescript: - version: 0.13.2 + version: 0.13.3 acceptHeaderEnum: true additionalDependencies: dependencies: {} devDependencies: {} peerDependencies: {} additionalPackageJSON: {} + additionalScripts: {} author: Speakeasy baseErrorName: GleanBaseError clientServerStatusCodesAsErrors: true diff --git a/.speakeasy/glean-merged-spec.yaml b/.speakeasy/glean-merged-spec.yaml index 4d2645b7..b6102edf 100644 --- a/.speakeasy/glean-merged-spec.yaml +++ b/.speakeasy/glean-merged-spec.yaml @@ -7378,7 +7378,7 @@ components: additionalProperties: $ref: "#/components/schemas/WriteActionParameter" ChatMessageFragment: - description: Represents a part of a ChatMessage that originates from a single action/tool. It is designed to support rich data formats beyond simple text, allowing for a more dynamic and interactive chat experience. Each fragment can include various types of content, such as text, search queries, action information, and more. Also, each ChatMessageFragment should only have one of structuredResults, querySuggestion, writeAction, followupAction, agentRecommendation or file. + description: Represents a part of a ChatMessage that originates from a single action/tool. It is designed to support rich data formats beyond simple text, allowing for a more dynamic and interactive chat experience. Each fragment can include various types of content, such as text, search queries, action information, and more. Also, each ChatMessageFragment should only have one of structuredResults, querySuggestion, writeAction, followupAction, agentRecommendation, followupRoutingSuggestion or file. allOf: - $ref: "#/components/schemas/Result" - type: object @@ -11788,7 +11788,8 @@ components: type: array items: $ref: "#/components/schemas/DatasourceObjectTypeDocumentCountEntry" - description: A list of object types and corresponding upload counts + description: | + A list of object types and corresponding upload counts. Note: This data may be cached and could be up to 3 hours stale. indexed: type: array description: The number of documents indexed, grouped by objectType diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index bcbfbf38..8be3dd15 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,12 +1,12 @@ -speakeasyVersion: 1.642.1 +speakeasyVersion: 1.649.0 sources: Glean API: sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:092bfa8d363f0191930191e522b5f72025fec603b0474d9d5d2380b79b356f32 - sourceBlobDigest: sha256:84c15305b5763d040c255114c33c0c78072f77ac102895bf669b71c32f037048 + sourceRevisionDigest: sha256:7365082c1cce88ce70a8d3236d544faf9f251cec5fbae1b45b592acb841b262c + sourceBlobDigest: sha256:65aeb5314d524c7f62b12446b09c7381fb911e9d7c057e230f7f26d85b8e982b tags: - latest - - speakeasy-sdk-regen-1761685669 + - speakeasy-sdk-regen-1762301908 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:092bfa8d363f0191930191e522b5f72025fec603b0474d9d5d2380b79b356f32 - sourceBlobDigest: sha256:84c15305b5763d040c255114c33c0c78072f77ac102895bf669b71c32f037048 + sourceRevisionDigest: sha256:7365082c1cce88ce70a8d3236d544faf9f251cec5fbae1b45b592acb841b262c + sourceBlobDigest: sha256:65aeb5314d524c7f62b12446b09c7381fb911e9d7c057e230f7f26d85b8e982b codeSamplesNamespace: glean-api-specs-typescript-code-samples - codeSamplesRevisionDigest: sha256:557641d7a1d5a4ab63047f64d2d3496a001d53e538ea5c017a60664f1154ce50 + codeSamplesRevisionDigest: sha256:e2bb222fd266c5df905621eeff0bb7fbca1f3c6e5d2650b2b1635cc2a8b6ba8a workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index a0dbeeb0..6a3d389f 100644 --- a/README.md +++ b/README.md @@ -970,7 +970,8 @@ The default server `https://{instance}-be.glean.com` contains variables and is s import { Glean } from "@gleanwork/api-client"; const glean = new Glean({ - instance: "", + serverIdx: 0, + instance: "instance-name", apiToken: process.env["GLEAN_API_TOKEN"] ?? "", }); diff --git a/RELEASES.md b/RELEASES.md index 95e78d97..32f317e5 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -378,4 +378,14 @@ Based on: ### Generated - [typescript v0.13.2] . ### Releases -- [NPM v0.13.2] https://www.npmjs.com/package/@gleanwork/api-client/v/0.13.2 - . \ No newline at end of file +- [NPM v0.13.2] https://www.npmjs.com/package/@gleanwork/api-client/v/0.13.2 - . + +## 2025-11-05 16:06:09 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.649.0 (2.739.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v0.13.3] . +### Releases +- [NPM v0.13.3] https://www.npmjs.com/package/@gleanwork/api-client/v/0.13.3 - . \ No newline at end of file diff --git a/docs/models/components/chatmessagefragment.md b/docs/models/components/chatmessagefragment.md index 8b6d83d2..91b80d7c 100644 --- a/docs/models/components/chatmessagefragment.md +++ b/docs/models/components/chatmessagefragment.md @@ -1,6 +1,6 @@ # ChatMessageFragment -Represents a part of a ChatMessage that originates from a single action/tool. It is designed to support rich data formats beyond simple text, allowing for a more dynamic and interactive chat experience. Each fragment can include various types of content, such as text, search queries, action information, and more. Also, each ChatMessageFragment should only have one of structuredResults, querySuggestion, writeAction, followupAction, agentRecommendation or file. +Represents a part of a ChatMessage that originates from a single action/tool. It is designed to support rich data formats beyond simple text, allowing for a more dynamic and interactive chat experience. Each fragment can include various types of content, such as text, search queries, action information, and more. Also, each ChatMessageFragment should only have one of structuredResults, querySuggestion, writeAction, followupAction, agentRecommendation, followupRoutingSuggestion or file. ## Example Usage diff --git a/docs/models/components/debugdatasourcestatusresponsecounts.md b/docs/models/components/debugdatasourcestatusresponsecounts.md index c1d712be..9a1c41ba 100644 --- a/docs/models/components/debugdatasourcestatusresponsecounts.md +++ b/docs/models/components/debugdatasourcestatusresponsecounts.md @@ -25,5 +25,5 @@ let value: DebugDatasourceStatusResponseCounts = { | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `uploaded` | [components.DatasourceObjectTypeDocumentCountEntry](../../models/components/datasourceobjecttypedocumentcountentry.md)[] | :heavy_minus_sign: | A list of object types and corresponding upload counts | +| `uploaded` | [components.DatasourceObjectTypeDocumentCountEntry](../../models/components/datasourceobjecttypedocumentcountentry.md)[] | :heavy_minus_sign: | A list of object types and corresponding upload counts. Note: This data may be cached and could be up to 3 hours stale.
| | `indexed` | [components.DatasourceObjectTypeDocumentCountEntry](../../models/components/datasourceobjecttypedocumentcountentry.md)[] | :heavy_minus_sign: | The number of documents indexed, grouped by objectType | \ No newline at end of file diff --git a/examples/package-lock.json b/examples/package-lock.json index 3aa926d9..8d1bd5b4 100644 --- a/examples/package-lock.json +++ b/examples/package-lock.json @@ -18,7 +18,7 @@ }, "..": { "name": "@gleanwork/api-client", - "version": "0.13.2", + "version": "0.13.3", "dependencies": { "zod": "^3.25.0 || ^4.0.0" }, diff --git a/jsr.json b/jsr.json index 0c534704..09e7c3b9 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "@gleanwork/api-client", - "version": "0.13.2", + "version": "0.13.3", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index eb4487e6..24d0a2b0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@gleanwork/api-client", - "version": "0.13.2", + "version": "0.13.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@gleanwork/api-client", - "version": "0.13.2", + "version": "0.13.3", "dependencies": { "zod": "^3.25.0 || ^4.0.0" }, diff --git a/package.json b/package.json index fee3fdb3..738d267b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@gleanwork/api-client", - "version": "0.13.2", + "version": "0.13.3", "author": "Speakeasy", "type": "module", "tshy": { diff --git a/src/__tests__/messages.test.ts b/src/__tests__/messages.test.ts index 1dc01de3..a5071671 100644 --- a/src/__tests__/messages.test.ts +++ b/src/__tests__/messages.test.ts @@ -19,7 +19,7 @@ test("Messages Messages", async () => { idType: "CONVERSATION_ID", id: "", timestampMillis: 558834, - datasource: "GCHAT", + datasource: "MICROSOFTTEAMS", }); expect(result).toBeDefined(); }); diff --git a/src/__tests__/mockserver/internal/handler/pathpostrestapiv1getchat.go b/src/__tests__/mockserver/internal/handler/pathpostrestapiv1getchat.go index f8469b5b..35e69d35 100644 --- a/src/__tests__/mockserver/internal/handler/pathpostrestapiv1getchat.go +++ b/src/__tests__/mockserver/internal/handler/pathpostrestapiv1getchat.go @@ -628,8 +628,8 @@ func testGetchatGetchat0(w http.ResponseWriter, req *http.Request) { Roles: []components.UserRoleSpecification{}, SourceDocumentSpec: types.Pointer(components.CreateDocumentSpecUnionDocumentSpec3( components.DocumentSpec3{ - UgcType: components.DocumentSpecUgcType1Announcements, - ContentID: 848009, + UgcType: components.DocumentSpecUgcType1Shortcuts, + ContentID: 602763, }, )), SourceType: components.AnswerSourceTypeAssistant.ToPointer(), diff --git a/src/__tests__/mockserver/internal/sdk/models/components/chatmessagefragment.go b/src/__tests__/mockserver/internal/sdk/models/components/chatmessagefragment.go index be2b3866..4a0507c9 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/chatmessagefragment.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/chatmessagefragment.go @@ -2,7 +2,7 @@ package components -// ChatMessageFragment - Represents a part of a ChatMessage that originates from a single action/tool. It is designed to support rich data formats beyond simple text, allowing for a more dynamic and interactive chat experience. Each fragment can include various types of content, such as text, search queries, action information, and more. Also, each ChatMessageFragment should only have one of structuredResults, querySuggestion, writeAction, followupAction, agentRecommendation or file. +// ChatMessageFragment - Represents a part of a ChatMessage that originates from a single action/tool. It is designed to support rich data formats beyond simple text, allowing for a more dynamic and interactive chat experience. Each fragment can include various types of content, such as text, search queries, action information, and more. Also, each ChatMessageFragment should only have one of structuredResults, querySuggestion, writeAction, followupAction, agentRecommendation, followupRoutingSuggestion or file. type ChatMessageFragment struct { // An array of entities in the work graph retrieved via a data request. StructuredResults []StructuredResult `json:"structuredResults,omitempty"` diff --git a/src/__tests__/mockserver/internal/sdk/models/components/debugdatasourcestatusresponse.go b/src/__tests__/mockserver/internal/sdk/models/components/debugdatasourcestatusresponse.go index fe777e9b..2b4c0aa4 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/debugdatasourcestatusresponse.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/debugdatasourcestatusresponse.go @@ -8,7 +8,8 @@ import ( ) type DebugDatasourceStatusResponseCounts struct { - // A list of object types and corresponding upload counts + // A list of object types and corresponding upload counts. Note: This data may be cached and could be up to 3 hours stale. + // Uploaded []DatasourceObjectTypeDocumentCountEntry `json:"uploaded,omitempty"` // The number of documents indexed, grouped by objectType Indexed []DatasourceObjectTypeDocumentCountEntry `json:"indexed,omitempty"` diff --git a/src/__tests__/summarize.test.ts b/src/__tests__/summarize.test.ts index 50bd00d5..8eaa849f 100644 --- a/src/__tests__/summarize.test.ts +++ b/src/__tests__/summarize.test.ts @@ -18,11 +18,12 @@ test("Summarize Summarize", async () => { const result = await glean.client.documents.summarize({ documentSpecs: [ { - url: "https://ashamed-replacement.net", + ugcType: "SHORTCUTS", + contentId: 602763, }, { ugcType: "SHORTCUTS", - contentId: 42139, + contentId: 602763, }, ], }); diff --git a/src/lib/config.ts b/src/lib/config.ts index 3847ef43..78b1b449 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.2", - genVersion: "2.731.4", + sdkVersion: "0.13.3", + genVersion: "2.739.1", userAgent: - "speakeasy-sdk/typescript 0.13.2 2.731.4 0.9.0 @gleanwork/api-client", + "speakeasy-sdk/typescript 0.13.3 2.739.1 0.9.0 @gleanwork/api-client", } as const; diff --git a/src/models/components/chatmessagefragment.ts b/src/models/components/chatmessagefragment.ts index 1f818e54..d425c52b 100644 --- a/src/models/components/chatmessagefragment.ts +++ b/src/models/components/chatmessagefragment.ts @@ -38,7 +38,7 @@ import { } from "./toolinfo.js"; /** - * Represents a part of a ChatMessage that originates from a single action/tool. It is designed to support rich data formats beyond simple text, allowing for a more dynamic and interactive chat experience. Each fragment can include various types of content, such as text, search queries, action information, and more. Also, each ChatMessageFragment should only have one of structuredResults, querySuggestion, writeAction, followupAction, agentRecommendation or file. + * Represents a part of a ChatMessage that originates from a single action/tool. It is designed to support rich data formats beyond simple text, allowing for a more dynamic and interactive chat experience. Each fragment can include various types of content, such as text, search queries, action information, and more. Also, each ChatMessageFragment should only have one of structuredResults, querySuggestion, writeAction, followupAction, agentRecommendation, followupRoutingSuggestion or file. */ export type ChatMessageFragment = { /** diff --git a/src/models/components/debugdatasourcestatusresponse.ts b/src/models/components/debugdatasourcestatusresponse.ts index c80a38ad..1f22ad65 100644 --- a/src/models/components/debugdatasourcestatusresponse.ts +++ b/src/models/components/debugdatasourcestatusresponse.ts @@ -34,7 +34,9 @@ import { export type DebugDatasourceStatusResponseCounts = { /** - * A list of object types and corresponding upload counts + * A list of object types and corresponding upload counts. Note: This data may be cached and could be up to 3 hours stale. + * + * @remarks */ uploaded?: Array | undefined; /** From e74dd86c2e070b1806aaf2b1ba22bb84ed2390a2 Mon Sep 17 00:00:00 2001 From: "speakeasy-github[bot]" <128539517+speakeasy-github[bot]@users.noreply.github.com> Date: Wed, 5 Nov 2025 16:13:31 +0000 Subject: [PATCH 2/2] empty commit to trigger [run-tests] workflow