Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 7 additions & 10 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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**
3 changes: 2 additions & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions .speakeasy/glean-merged-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: "<value>",
serverIdx: 0,
instance: "instance-name",
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
});

Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 - .
- [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 - .
2 changes: 1 addition & 1 deletion docs/models/components/chatmessagefragment.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.<br/> |
| `indexed` | [components.DatasourceObjectTypeDocumentCountEntry](../../models/components/datasourceobjecttypedocumentcountentry.md)[] | :heavy_minus_sign: | The number of documents indexed, grouped by objectType |
2 changes: 1 addition & 1 deletion examples/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gleanwork/api-client",
"version": "0.13.2",
"version": "0.13.3",
"author": "Speakeasy",
"type": "module",
"tshy": {
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/messages.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ test("Messages Messages", async () => {
idType: "CONVERSATION_ID",
id: "<id>",
timestampMillis: 558834,
datasource: "GCHAT",
datasource: "MICROSOFTTEAMS",
});
expect(result).toBeDefined();
});

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/__tests__/summarize.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
],
});
Expand Down
6 changes: 3 additions & 3 deletions src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
2 changes: 1 addition & 1 deletion src/models/components/chatmessagefragment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
/**
Expand Down
4 changes: 3 additions & 1 deletion src/models/components/debugdatasourcestatusresponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<DatasourceObjectTypeDocumentCountEntry> | undefined;
/**
Expand Down