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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
16 changes: 8 additions & 8 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
lockVersion: 2.0.0
id: 664aaca5-a41f-4434-8f2a-642dba92fe68
management:
docChecksum: 5a4cd8de1e6ca5f701ac27e244d09799
docChecksum: 30752ad325475357749711c885ecb81f
docVersion: 0.9.0
speakeasyVersion: 1.636.3
generationVersion: 2.723.11
releaseVersion: 0.12.3
configChecksum: 19b09114c1109bc696d1327e2687e1ea
speakeasyVersion: 1.638.0
generationVersion: 2.728.0
releaseVersion: 0.13.0
configChecksum: b38d27b694691645b8dbb467b345e3e1
repoURL: https://github.com/gleanwork/api-client-typescript.git
installationURL: https://github.com/gleanwork/api-client-typescript
published: true
features:
typescript:
additionalDependencies: 0.1.0
additionalProperties: 0.1.1
additionalProperties: 0.1.2
constsAndDefaults: 0.1.12
core: 3.21.26
core: 3.23.0
defaultEnabledRetries: 0.1.0
deprecations: 2.81.1
devContainers: 2.90.1
Expand Down Expand Up @@ -2979,4 +2979,4 @@ generatedTests:
createpolicy: "2025-06-09T18:05:10Z"
createreport: "2025-06-09T18:05:10Z"
setdocvisibility: "2025-06-09T18:05:10Z"
releaseNotes: "## Typescript SDK Changes Detected:\n* `glean.client.messages.retrieve()`: \n * `request.datasource` **Changed** **Breaking** :warning:\n"
releaseNotes: "## Typescript SDK Changes Detected:\n* `glean.client.chat.create()`: \n * `request.chatrequest.messages.[].agentConfig.useImageGeneration` **Added**\n * `response.messages.[].agentConfig.useImageGeneration` **Added**\n* `glean.client.chat.retrieve()`: `response.chatresult.chat.messages.[].agentConfig.useImageGeneration` **Added**\n* `glean.client.chat.createStream()`: \n * `request.chatrequest.messages.[].agentConfig.useImageGeneration` **Added**\n"
4 changes: 3 additions & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,16 @@ generation:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: true
hoistGlobalSecurity: true
schemas:
allOfMergeStrategy: shallowMerge
mockServer:
disabled: false
tests:
generateTests: true
generateNewTests: true
skipResponseBodyAssertions: true
typescript:
version: 0.12.3
version: 0.13.0
acceptHeaderEnum: true
additionalDependencies:
dependencies: {}
Expand Down
87 changes: 48 additions & 39 deletions .speakeasy/glean-merged-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7047,6 +7047,9 @@ components:
enum:
- DEFAULT
- QUICK
useImageGeneration:
type: boolean
description: Whether the agent should create an image.
ChatFileStatus:
type: string
description: Current status of the file.
Expand Down Expand Up @@ -7427,6 +7430,19 @@ components:
deprecated: true
type: boolean
description: Signals there are additional response fragments incoming.
ChatRequestBase:
required:
- messages
description: The minimal set of fields that form a chat request.
properties:
messages:
type: array
description: A list of chat messages, from most recent to least recent. At least one message must specify a USER author.
items:
$ref: "#/components/schemas/ChatMessage"
sessionInfo:
description: Optional object for tracking the session used by the client and for debugging purposes.
$ref: "#/components/schemas/SessionInfo"
ChatRestrictionFilters:
allOf:
- $ref: "#/components/schemas/RestrictionFilters"
Expand All @@ -7441,45 +7457,38 @@ components:
items:
type: string
ChatRequest:
required:
- messages
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.
messages:
type: array
description: A list of chat messages, from most recent to least recent. At least one message must specify a USER author.
items:
$ref: "#/components/schemas/ChatMessage"
agentConfig:
$ref: "#/components/schemas/AgentConfig"
description: Describes the agent that will execute the request.
inclusions:
$ref: "#/components/schemas/ChatRestrictionFilters"
description: A list of filters which only allows chat to access certain content.
exclusions:
$ref: "#/components/schemas/ChatRestrictionFilters"
description: A list of filters which disallows chat from accessing certain content. If content is in both inclusions and exclusions, it'll be excluded.
timeoutMillis:
type: integer
description: Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer.
example: 30000
sessionInfo:
description: Optional object for tracking the session used by the client and for debugging purposes.
$ref: "#/components/schemas/SessionInfo"
applicationId:
type: string
description: The ID of the application this request originates from, used to determine the configuration of underlying chat processes. This should correspond to the ID set during admin setup. If not specified, the default chat experience will be used.
agentId:
type: string
description: The ID of the Agent that should process this chat request. Only Agents with trigger set to 'User chat message' are invokable through this API. If not specified, the default chat experience will be used.
stream:
type: boolean
description: If set, response lines will be streamed one-by-one as they become available. Each will be a ChatResponse, formatted as JSON, and separated by a new line. If false, the entire response will be returned at once. Note that if this is set and the model being used does not support streaming, the model's response will not be streamed, but other messages from the endpoint still will be.
allOf:
- $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.
inclusions:
$ref: "#/components/schemas/ChatRestrictionFilters"
description: A list of filters which only allows chat to access certain content.
exclusions:
$ref: "#/components/schemas/ChatRestrictionFilters"
description: A list of filters which disallows chat from accessing certain content. If content is in both inclusions and exclusions, it'll be excluded.
timeoutMillis:
type: integer
description: Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer.
example: 30000
applicationId:
type: string
description: The ID of the application this request originates from, used to determine the configuration of underlying chat processes. This should correspond to the ID set during admin setup. If not specified, the default chat experience will be used.
agentId:
type: string
description: The ID of the Agent that should process this chat request. Only Agents with trigger set to 'User chat message' are invokable through this API. If not specified, the default chat experience will be used.
stream:
type: boolean
description: If set, response lines will be streamed one-by-one as they become available. Each will be a ChatResponse, formatted as JSON, and separated by a new line. If false, the entire response will be returned at once. Note that if this is set and the model being used does not support streaming, the model's response will not be streamed, but other messages from the endpoint still will be.
ChatResponse:
description: A single response from the /chat backend.
properties:
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.636.3
speakeasyVersion: 1.638.0
sources:
Glean API:
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:1dc42ac3d5012271bce5ddf879010efb2f292ded5ce08d224bb1cd28fcc4558d
sourceBlobDigest: sha256:fa9263107a00a7b99c1ea0d1c0100757e4abad76b9156a0c98186da8953f8f16
sourceRevisionDigest: sha256:d7d301aaa9efeddb264ed6ae3d4186b8472d376b021c3f22f96d0c15e79c0ee6
sourceBlobDigest: sha256:a97d8110c742a097fb206e255a509eb2407aec24dc4e9fb8dcacc9a6a52eb134
tags:
- latest
- speakeasy-sdk-regen-1760583314
- speakeasy-sdk-regen-1760999714
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:1dc42ac3d5012271bce5ddf879010efb2f292ded5ce08d224bb1cd28fcc4558d
sourceBlobDigest: sha256:fa9263107a00a7b99c1ea0d1c0100757e4abad76b9156a0c98186da8953f8f16
sourceRevisionDigest: sha256:d7d301aaa9efeddb264ed6ae3d4186b8472d376b021c3f22f96d0c15e79c0ee6
sourceBlobDigest: sha256:a97d8110c742a097fb206e255a509eb2407aec24dc4e9fb8dcacc9a6a52eb134
codeSamplesNamespace: glean-api-specs-typescript-code-samples
codeSamplesRevisionDigest: sha256:f39d52ad7b6250d4ce109578496aeb8154198383e9550287a44430deb5e0cf3e
codeSamplesRevisionDigest: sha256:9b0ef39bf4b934badf63687088c9c1ab15def16a13749aa544f7c66859a908e8
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -348,4 +348,14 @@ Based on:
### Generated
- [typescript v0.12.3] .
### Releases
- [NPM v0.12.3] https://www.npmjs.com/package/@gleanwork/api-client/v/0.12.3 - .
- [NPM v0.12.3] https://www.npmjs.com/package/@gleanwork/api-client/v/0.12.3 - .

## 2025-10-22 02:08:19
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.638.0 (2.728.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.13.0] .
### Releases
- [NPM v0.13.0] https://www.npmjs.com/package/@gleanwork/api-client/v/0.13.0 - .
3 changes: 2 additions & 1 deletion docs/models/components/agentconfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ let value: AgentConfig = {};
| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
| `agent` | [components.AgentEnum](../../models/components/agentenum.md) | :heavy_minus_sign: | Name of the agent. |
| `toolSets` | [components.ToolSets](../../models/components/toolsets.md) | :heavy_minus_sign: | The types of tools that the agent is allowed to use. Only works with FAST and ADVANCED `agent` values |
| `mode` | [components.Mode](../../models/components/mode.md) | :heavy_minus_sign: | Top level modes to run GleanChat in. |
| `mode` | [components.Mode](../../models/components/mode.md) | :heavy_minus_sign: | Top level modes to run GleanChat in. |
| `useImageGeneration` | *boolean* | :heavy_minus_sign: | Whether the agent should create an image. |
Loading