diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock
index b3f37156..d34505f9 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: 01a90b01e893a4ce756427c8d9283253
+ docChecksum: 9d8ec68225b876cf9682078cfb491edd
docVersion: 0.9.0
speakeasyVersion: 1.809.0
generationVersion: 2.961.1
- releaseVersion: 0.20.23
- configChecksum: 5d2bcb1eb111011d9b5152c7ec768d7f
+ releaseVersion: 0.20.24
+ configChecksum: 62b2c49f7a0a0f2004edc739815ad9de
repoURL: https://github.com/gleanwork/api-client-typescript.git
installationURL: https://github.com/gleanwork/api-client-typescript
published: true
persistentEdits:
- generation_id: cfd39e87-ce85-44fd-8d7c-b1f239337fcd
- pristine_commit_hash: 44a751e804b56a274cdbd616efea07a81b721166
- pristine_tree_hash: 55b0ede2c12bc5988bc4b8ce271bb901dd24da7a
+ generation_id: 881c7f72-1678-47ba-9374-c179d9818692
+ pristine_commit_hash: 5b7d3b9db5402ee1550d70bf72f1d4f5ad935232
+ pristine_tree_hash: 66412fc77e56cf15b381827e29a63803542c3beb
features:
typescript:
acceptHeaders: 2.81.2
@@ -1647,8 +1647,8 @@ trackedFiles:
pristine_git_object: 46e1535e7634f97634159ce6123be0d9f5801598
docs/models/components/insightsoverviewresponse.md:
id: e490ed19892d
- last_write_checksum: sha1:6e012e50471f53b5e78cab71b33307bd8623953c
- pristine_git_object: 5776d9882f19580e2625d8d30f4a26a0c5baba6c
+ last_write_checksum: sha1:1575e88e91e97011ee9851bf67271dfcad6d0140
+ pristine_git_object: fb35094a60b32980704431fce7dbe2ac8e3d5312
docs/models/components/insightsrequest.md:
id: cf96ae543699
last_write_checksum: sha1:7b0b54a539ee4f5acede497dfad48889b8d60bb4
@@ -4331,12 +4331,12 @@ trackedFiles:
pristine_git_object: 5a2797590d4be351d62915017d5b2a0f853537c8
jsr.json:
id: 7f6ab7767282
- last_write_checksum: sha1:fa67d99463a0042de33e720108948d6e017f147d
- pristine_git_object: 9c0989432fc5602d173ebaf9ae32f79d1fb8bc0e
+ last_write_checksum: sha1:b90e184517da1b7d5631f2c67af569f9b831beb3
+ pristine_git_object: 90860770423bbaf4da8360331dfc810523648bf6
package.json:
id: 7030d0b2f71b
- last_write_checksum: sha1:c6a257a8572423ce64cf9434520e13f400544512
- pristine_git_object: 30f1c410489d867843ed09e382c8a033813037ea
+ last_write_checksum: sha1:ec274b2c353b0a521d1f0164b61c83fdfc645901
+ pristine_git_object: fc12f16b042712b7abafcfd27c6ce3220d063cd0
src/__tests__/activities.test.ts:
id: 65fa859b8f59
last_write_checksum: sha1:756bc40095f4495bbf62739b8218bb4a559a24f2
@@ -4471,8 +4471,8 @@ trackedFiles:
pristine_git_object: d252821b825c62856886e3ab9287181d7ef7f9de
src/__tests__/messages.test.ts:
id: 39e293f09219
- last_write_checksum: sha1:d71d67d8ed6743e623401b4101f70705c2eb5172
- pristine_git_object: a4785e3180745bef1ba299e2191e9c49bec1da88
+ last_write_checksum: sha1:35170c1c2c6d5e4a4dca5a35ae5d74d602f5294c
+ pristine_git_object: 01382f0c48dc70391beb3802de74c92eb8480822
src/__tests__/mockserver/.gitignore:
id: 4a7fc421b6b6
last_write_checksum: sha1:228e1b05712a973948fd771323a2140a3b355ff4
@@ -4955,8 +4955,8 @@ trackedFiles:
pristine_git_object: 759610d9e14b656b2a8671c25618d94bd6dd13fb
src/__tests__/mockserver/internal/handler/pathpostrestapiv1createcollection.go:
id: a5a57be97594
- last_write_checksum: sha1:9b962c4ca4d653411bc410023c49401518b209fe
- pristine_git_object: a4b193767e8924ecc8a22aa8df6d0030f8786874
+ last_write_checksum: sha1:018cc7286107290e649b6b3b03aa3dbb954fac49
+ pristine_git_object: 673b01bb8e674296a9eaae2e614c08d07b3700a2
src/__tests__/mockserver/internal/handler/pathpostrestapiv1createshortcut.go:
id: 440deca160f6
last_write_checksum: sha1:e2bba9884dd04f8d9b158c88fb32ff9f06687846
@@ -5027,8 +5027,8 @@ trackedFiles:
pristine_git_object: 2e612d4143e02dd5e90750945b781302230969b3
src/__tests__/mockserver/internal/handler/pathpostrestapiv1getchat.go:
id: 4a9c64bf3a68
- last_write_checksum: sha1:2766e6a943d9c18dc4d8a7f9e3bc7122a76bde0c
- pristine_git_object: e2243868c4ccfbb9c80e49f9ca99c92735f4978f
+ last_write_checksum: sha1:bd92836a7e38740708f76f52b19704fda11d9ab7
+ pristine_git_object: a7e16d16bf67e08174b9a7ec990934165ce72f6a
src/__tests__/mockserver/internal/handler/pathpostrestapiv1getchatapplication.go:
id: 069e6f3638f9
last_write_checksum: sha1:fe7b6e94356f030628f826fdaa494f1f87bcba8a
@@ -6407,8 +6407,8 @@ trackedFiles:
pristine_git_object: 1268193cfb830edd13e92263f799e8ea6d8c8bcb
src/__tests__/mockserver/internal/sdk/models/components/insightsoverviewresponse.go:
id: 020be168c9a9
- last_write_checksum: sha1:1287df4ef98f847ed9e617e4c3ad72727c9d233c
- pristine_git_object: 22393d1ef5dc9a80f7ef9043d25bac08367db7b6
+ last_write_checksum: sha1:87871c6e14a88fd11fe7ef45865bc04f19668318
+ pristine_git_object: c4aa4a9a60ffad3cb124492a7f98bc5744b30c08
src/__tests__/mockserver/internal/sdk/models/components/insightsrequest.go:
id: bcad59832cc7
last_write_checksum: sha1:64f4f999676830754e7917fe95bb730f6b1b064a
@@ -8771,8 +8771,8 @@ trackedFiles:
pristine_git_object: 80853fce6d86d20766336fb2fd27c8669cd12ca8
src/__tests__/summarize.test.ts:
id: 3105d6ebc7eb
- last_write_checksum: sha1:f6c5ccdecf6c2d5e26a8fcbf2d5a0ae0cec630e5
- pristine_git_object: a1e0e25193b0208e52a29719cbac410d307dc165
+ last_write_checksum: sha1:67be024ebbe55b10203a82520ad310a5afe11690
+ pristine_git_object: 7b1ea9e95fbd712bf879f84047150b91056da3da
src/__tests__/testclient.ts:
id: f142c080bff8
last_write_checksum: sha1:3a38647391f52221c009a9273eebf90793b3d430
@@ -9567,8 +9567,8 @@ trackedFiles:
pristine_git_object: 42d9739ab67c2fec0689f83777ffa5e1f875e5d5
src/lib/config.ts:
id: 320761608fb3
- last_write_checksum: sha1:863682d28e34cdfd080444d0bbb9d63805a642a2
- pristine_git_object: 0d2091d188993f1bc61772c1110610533fc1423a
+ last_write_checksum: sha1:c6da8191c5a3455a9f451f1c01f1016f99b5a20e
+ pristine_git_object: 41b2d69ea37f953ac093f9e369ae9b12d4afa5fe
src/lib/encodings.ts:
id: 3bd8ead98afd
last_write_checksum: sha1:d1917169abb226ccb0d2e93fd211a1d2987822b4
@@ -10847,8 +10847,8 @@ trackedFiles:
pristine_git_object: b12c8b685548b3444713a0e3ceb79c3ed1f7e6e0
src/models/components/insightsoverviewresponse.ts:
id: 8aa9174883fb
- last_write_checksum: sha1:1598dc8a0d2c767c9c2de2504edf8c5ff24ed22d
- pristine_git_object: 4edfd95911c8004af464f01cfaea3ac209dc10f3
+ last_write_checksum: sha1:a57fca4a880579466ed670dd317f4ddd52e24278
+ pristine_git_object: 0aed293dba2a2fd9bd22789d3579dcc8946d9618
src/models/components/insightsrequest.ts:
id: b68de921ae9d
last_write_checksum: sha1:66159b3689b464951795a6e814a83f7fc9379938
@@ -15940,7 +15940,9 @@ generatedTests:
platform-documents-get: "2026-11-06T19:47:41Z"
platform-documents-batch: "2026-11-06T19:47:41Z"
platform-search-enumeration: "2026-11-16T11:53:18Z"
-releaseNotes: "## Typescript SDK Changes:\n* `glean.chat.create()`: \n * `request.text` **Removed** (Breaking ⚠️)\n * `response.output[].content[].structuredOutput` **Removed** (Breaking ⚠️)\n* `glean.chat.createStream()`: \n * `request.text` **Removed** (Breaking ⚠️)\n * `response.[].union(RESPONSE_COMPLETED).data.response.output[].content[].structuredOutput` **Removed** (Breaking ⚠️)\n* `glean.search.enumerate()`: **Added**\n* `glean.triggers.searchEvents()`: `response.results[].reason` **Changed**\n* `glean.triggers.searchPresetEvents()`: `response.results[].reason` **Changed**\n"
+releaseNotes: |
+ ## Typescript SDK Changes:
+ * `glean.client.insights.retrieve()`: `response.overviewResponse.totalSignupsWeekAgo` **Added**
generatedFiles:
- .devcontainer/README.md
- .devcontainer/devcontainer.json
diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml
index d8fe8223..b1459e24 100644
--- a/.speakeasy/gen.yaml
+++ b/.speakeasy/gen.yaml
@@ -36,7 +36,7 @@ generation:
generateNewTests: true
skipResponseBodyAssertions: true
typescript:
- version: 0.20.23
+ version: 0.20.24
acceptHeaderEnum: true
additionalDependencies:
dependencies: {}
diff --git a/.speakeasy/glean-merged-spec.yaml b/.speakeasy/glean-merged-spec.yaml
index c2f3e3ce..678935a3 100644
--- a/.speakeasy/glean-merged-spec.yaml
+++ b/.speakeasy/glean-merged-spec.yaml
@@ -2,8 +2,8 @@ openapi: 3.1.0
info:
version: "0.9.0"
title: Glean API
- x-source-commit-sha: 74225def94ec0e1d0281e9ed827c93f85ccb2152
- x-open-api-commit-sha: d781217a7cfce20ac740646c1b7242f059d850cb
+ x-source-commit-sha: 92084e408d64f4792098b2dcd1013e0af7abe611
+ x-open-api-commit-sha: fee2a7ed1565ad90159fb31b1a05283058c83f3f
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.
@@ -1559,7 +1559,7 @@ paths:
- Admin Usage
summary: Get usage settings
description: |
- Retrieve workspace-wide policy from the same configuration used by Billing. Group resolution uses the configured policy and its backend defaults; business justification is currently optional. No per-user settings are read, and updated_at is omitted because no policy-update timestamp is available. Requires admin.usage.settings:read and permission to read workspace billing; a global administrator role is not required.
+ Retrieve workspace-wide policy from the same configuration used by Billing. Group resolution uses the configured policy and its backend defaults. Business justification is REQUIRED when request-more configuration requires it for user or agent requests, and OPTIONAL otherwise. No per-user settings are read, and updated_at is omitted because no policy-update timestamp is available. Requires admin.usage.settings:read and permission to read workspace billing; a global administrator role is not required.
operationId: platform-admin-usage-settings-get
x-visibility: Public
x-glean-scopes:
@@ -1962,7 +1962,7 @@ paths:
- Admin Usage
summary: Evaluate administrative usage limit headroom
description: |
- Evaluate the effective usage limits for a target and period and return the current decision (AVAILABLE, WARNING, or BLOCKED) based on accrued usage. Requires admin.usage:evaluate and permission to read workspace billing, not a global administrator role. An explicit target.client_id selects the Glean or external spend client; it is never inferred from the caller. Returns all applicable limit values and counters, with effective headroom separated by unit. Agent counters retain aggregate scope. Billing readers receive exact IdP-group source identities as idp_group_id values. A USER target may be identified by user_id or email. Evaluation reports configured-budget status even when runtime enforcement switches are off; it does not perform request admission, model eligibility, or agent-run preflight checks.
+ Evaluate the effective usage limits for one ORGANIZATION, USER, or AGENT target and period and return the current decision (AVAILABLE, WARNING, or BLOCKED) based on accrued usage. Requires admin.usage:evaluate and permission to read workspace billing, not a global administrator role. An explicit target.client_id selects the Glean or external spend client; it is never inferred from the caller. Returns all applicable limit values and counters, with effective headroom separated by unit. Agent counters retain aggregate scope. Billing readers receive exact IdP-group source identities as idp_group_id values. A USER target may be identified by user_id or email. Evaluation reports configured-budget status even when runtime enforcement switches are off; it does not perform request admission, model eligibility, or agent-run preflight checks.
operationId: platform-admin-usage-limits-evaluate
x-visibility: Public
x-glean-scopes:
@@ -2088,7 +2088,7 @@ paths:
id: d9f125f8-85f3-4221-8627-0b39f6d5b4ab
introduced: "2026-09-25"
description: |
- Requires usage.limit_increase_requests:write. The target is the authenticated canonical user, and requester identity comes from authentication. The caller supplies the client and optional business justification. The server assigns the request identifier and current UTC month. Billing grants do not widen this route. Requires shared Platform authentication with the required scope, experimental opt-in, and the existing request-more enablement flag. Missing opt-in or a disabled flag returns 404.
+ Requires usage.limit_increase_requests:write. The target is the authenticated canonical user, and requester identity comes from authentication. The caller supplies the client and a business justification, which returns 400 when blank and the workspace requires one for user requests. The server assigns the request identifier and current UTC month. Billing grants do not widen this route. Requires shared Platform authentication with the required scope, experimental opt-in, and the existing request-more enablement flag. Missing opt-in or a disabled flag returns 404.
requestBody:
required: true
content:
@@ -2266,7 +2266,7 @@ paths:
id: e28f40de-1f6c-4dc6-ab12-4054b89628c1
introduced: "2026-09-25"
description: |
- Requires usage.limit_increase_requests:write, the same scope as personal creation, and current edit permission on the agent, not billing permissions. The caller supplies the agent, client, and optional business justification. Requester identity comes from authentication; the server assigns the request identifier and current UTC month. Requires shared Platform authentication with the required scope, experimental opt-in, and the existing request-more enablement flag. Missing opt-in or a disabled flag returns 404.
+ Requires usage.limit_increase_requests:write, the same scope as personal creation, and current edit permission on the agent, not billing permissions. The caller supplies the agent, client, and a business justification, which returns 400 when blank and the workspace requires one for agent requests. Requester identity comes from authentication; the server assigns the request identifier and current UTC month. Requires shared Platform authentication with the required scope, experimental opt-in, and the existing request-more enablement flag. Missing opt-in or a disabled flag returns 404.
requestBody:
required: true
content:
@@ -2445,7 +2445,7 @@ paths:
id: 08d999ca-f438-4fed-81ce-350c7e65c2cc
introduced: "2026-09-25"
description: |
- Update a pending request with an approval decision or denial. Requires admin.usage.limit_increase_requests:write and current billing edit permission. A pending request can record an approved positive increase amount or be denied with an optional resolution note. PERIOD approval retains the request's stored month and requires the current UTC month; expired approvals return 409 before mutation or approval writes. A successful approval write triggers spend-limit cache refresh before reload; refresh failure logs a warning without failing the decision. The existing backend consumes eligible USER current-period grants to raise enforcement headroom without changing standing rules. This does not add capacity for agents or other unsupported targets, integrate usage settings, or promise new delivery or atomicity guarantees. Supported token issuance, experimental opt-in, and request-more enablement are required. Missing opt-in or a disabled flag returns 404. Once enabled and opted in, ONGOING returns typed 503 without reading or modifying the request; its private policy preparation is not shared with this adapter. Use the existing app operation for ongoing user approvals.
+ Update a pending request with an approval decision or denial. Requires admin.usage.limit_increase_requests:write and current billing edit permission. A pending request can record an approved positive increase amount or be denied with an optional resolution note. PERIOD approval retains the request's stored month and requires the current UTC month; expired approvals return 409 before mutation or approval writes. A successful approval write triggers spend-limit cache refresh before reload; refresh failure logs a warning without failing the decision. The existing backend consumes eligible USER and AGENT current-period grants to raise evaluated and enforced headroom without changing standing rules. This does not add capacity for other targets, integrate usage settings, or promise new delivery or atomicity guarantees. Supported token issuance, experimental opt-in, and request-more enablement are required. Missing opt-in or a disabled flag returns 404. Once enabled and opted in, ONGOING returns typed 503 without reading or modifying the request; its private policy preparation is not shared with this adapter. Use the existing app operation for ongoing user approvals.
requestBody:
required: true
content:
@@ -12393,14 +12393,67 @@ components:
used:
type: string
description: Decimal amount of accrued usage for this limit.
+ current_period_amount:
+ type: string
+ minLength: 1
+ maxLength: 24
+ pattern: ^(0|[1-9][0-9]*)(\.[0-9]{1,6})?$
+ x-glean-experimental:
+ id: 3ad9a7ba-123c-4ee5-b6c9-b4dc59ec7ebc
+ introduced: "2026-11-16"
+ description: |
+ The cap this rule enforces in the current period: configured cap plus approved current-period grants. Present for FINITE rules and omitted for UNLIMITED rules. Show usage as used against current_period_amount; used can exceed it once a rule is over its limit.
+ remaining:
+ type: string
+ minLength: 1
+ maxLength: 24
+ pattern: ^(0|[1-9][0-9]*)(\.[0-9]{1,6})?$
+ x-glean-experimental:
+ id: 003db27d-ea53-4ec4-a147-8012a1b0cb7c
+ introduced: "2026-11-16"
+ description: |
+ This rule's nonnegative headroom: current_period_amount minus used, floored at zero. Present for FINITE rules and omitted for UNLIMITED rules. Over the limit, used + remaining exceeds current_period_amount. This is independent of the tightest effective_limits[].remaining and is not runtime admission.
decision:
$ref: "#/components/schemas/PlatformUsageLimitDecision"
description: Decision for this limit.
+ allOf:
+ - oneOf:
+ - required:
+ - current_period_amount
+ - remaining
+ properties:
+ value:
+ description: Finite configured cap.
+ properties:
+ mode:
+ description: Whether the limit has a finite cap or is unlimited.
+ enum:
+ - FINITE
+ - properties:
+ value:
+ description: Unlimited configured cap.
+ properties:
+ mode:
+ description: Whether the limit has a finite cap or is unlimited.
+ enum:
+ - UNLIMITED
+ not:
+ anyOf:
+ - required:
+ - current_period_amount
+ properties:
+ current_period_amount:
+ description: Forbidden for unlimited rules.
+ - required:
+ - remaining
+ properties:
+ remaining:
+ description: Forbidden for unlimited rules.
PlatformEvaluateUsageLimitResponse:
type: object
additionalProperties: false
description: |
- Configured-budget evaluation for a concrete target and period, not runtime admission, model eligibility, or agent-run preflight. AVAILABLE can mean that no configured policy applies; inspect applicable_policy_count and the normalized target and exact period echo. Configured caps are evaluated_limits[].value.amount, accrued usage is evaluated_limits[].used, and remaining budget is effective_limits[].remaining. Approved one-period grants raise headroom without changing the configured cap. Units are never combined or converted. Non-admin evaluation omits shared budgets from applicable_policy_count, evaluated_limits, and effective_limits; decision can be BLOCKED by a shared budget even when the target's own limits show remaining headroom. decision_causes explains every non-AVAILABLE decision, including one caused by a budget that is not listed.
+ Configured-budget evaluation for a concrete target and period, not runtime admission, model eligibility, or agent-run preflight. AVAILABLE can mean that no configured policy applies; inspect applicable_policy_count and the normalized target and exact period echo. Configured caps are evaluated_limits[].value.amount, accrued usage is evaluated_limits[].used, the cap enforced this period is evaluated_limits[].current_period_amount, per-rule headroom is evaluated_limits[].remaining, and tightest headroom is effective_limits[].remaining. Approved one-period grants raise the current-period amount and headroom without changing the configured cap. Units are never combined or converted. Non-admin evaluation omits shared budgets from applicable_policy_count, evaluated_limits, and effective_limits; decision can be BLOCKED by a shared budget even when the target's own limits show remaining headroom. decision_causes explains every non-AVAILABLE decision, including one caused by a budget that is not listed.
example:
target:
type: USER
@@ -12431,6 +12484,8 @@ components:
unit: USD
enforcement: HARD
used: "20"
+ current_period_amount: "80"
+ remaining: "60"
decision: AVAILABLE
active_actions:
- type: RESTRICT_MODELS
@@ -12838,7 +12893,8 @@ components:
business_justification:
type: string
maxLength: 4096
- description: Optional explanation of why the increase is needed.
+ description: |
+ Explanation of why the increase is needed. Required, and nonblank, when the workspace's request-more configuration requires a business justification.
PlatformPersonalRequestResponse:
type: object
additionalProperties: false
@@ -12904,7 +12960,7 @@ components:
- PERIOD
- ONGOING
description: |
- PERIOD records a decision for the stored request month; approval requires the current UTC month. Existing enforcement consumes eligible USER current-period grants without changing standing rules; no agent or other unsupported target capacity is added. ONGOING identifies a standing-rule approval in existing app records; this API does not support creating ONGOING approvals.
+ PERIOD records a decision for the stored request month; approval requires the current UTC month. Existing enforcement consumes eligible USER and AGENT current-period grants without changing standing rules; no capacity is added for other targets. ONGOING identifies a standing-rule approval in existing app records; this API does not support creating ONGOING approvals.
PlatformRequestResolutionTarget:
type: string
enum:
@@ -13071,7 +13127,8 @@ components:
business_justification:
type: string
maxLength: 4096
- description: Optional explanation of why the increase is needed.
+ description: |
+ Explanation of why the increase is needed. Required, and nonblank, when the workspace's request-more configuration requires a business justification.
PlatformAdministrativeRequestResponse:
type: object
additionalProperties: false
@@ -13090,14 +13147,14 @@ components:
type: string
pattern: ^([1-9][0-9]*(\.[0-9]+)?|0\.[0-9]*[1-9][0-9]*)$
description: |
- Recorded positive additive increase in the applicable rule's denomination, encoded as a plain decimal string. Existing enforcement consumes eligible USER current-period grants without changing standing rules. This does not add capacity for agents or other unsupported targets. The backend stores float32 values, not arbitrary-precision decimals.
+ Recorded positive additive increase in the applicable rule's denomination, encoded as a plain decimal string. Existing enforcement consumes eligible USER and AGENT current-period grants without changing standing rules. This does not add capacity for other targets. The backend stores float32 values, not arbitrary-precision decimals.
PlatformAdministrativeRequestUpdate:
type: object
additionalProperties: false
required:
- status
description: |
- Resolve a pending request. PERIOD approval records a positive additive amount for the stored current UTC month; expired approvals return 409. The existing backend consumes eligible USER current-period grants without changing standing rules; no agent or other unsupported target capacity is added. ONGOING approval is unavailable on this API and returns 503. GROUP and DEPARTMENT resolution targets are not accepted for new approvals. Request identity and period cannot change.
+ Resolve a pending request. PERIOD approval records a positive additive amount for the stored current UTC month; expired approvals return 409. The existing backend consumes eligible USER and AGENT current-period grants without changing standing rules; no capacity is added for other targets. ONGOING approval is unavailable on this API and returns 503. GROUP and DEPARTMENT resolution targets are not accepted for new approvals. Request identity and period cannot change.
properties:
status:
type: string
@@ -13150,7 +13207,7 @@ components:
required:
- resolution_note
oneOf:
- - description: A PERIOD approval records a current-month grant; existing enforcement consumes eligible USER grants.
+ - description: A PERIOD approval records a current-month grant; existing enforcement consumes eligible USER and AGENT grants.
properties:
scope:
description: Period approval, also selected when scope is omitted.
@@ -20634,6 +20691,9 @@ components:
lastUpdatedTs:
type: integer
description: Unix timestamp of the last update for the insights data in the response.
+ totalSignupsWeekAgo:
+ type: integer
+ description: Number of current employees in the specified departments who had signed up 7 days before the latest day of insights data. Compare with totalSignups for week-over-week signup change.
searchSessionSatisfaction:
type: number
format: float
diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock
index f5720478..eb4d90fd 100644
--- a/.speakeasy/workflow.lock
+++ b/.speakeasy/workflow.lock
@@ -2,8 +2,8 @@ speakeasyVersion: 1.809.0
sources:
Glean API:
sourceNamespace: glean-api-specs
- sourceRevisionDigest: sha256:872476237575ccc7e2720d7a31a66fc38ec7c561cfd2e33459cf33e1a45d9949
- sourceBlobDigest: sha256:7d5c308c3a1ba3c2dc2486a0006d48995e1618f3be0673c7e9422fd5eb582f2a
+ sourceRevisionDigest: sha256:9520eaea4f882d898719574ee75afc5c9289562b08a4ddbf337693f3041aaae3
+ sourceBlobDigest: sha256:d1b9b1adb0aa1d72885cc0bd86db9adc236a161f7f0b70b9f5cc61cf5c7052bd
tags:
- latest
Glean Client API:
@@ -17,10 +17,10 @@ targets:
glean:
source: Glean API
sourceNamespace: glean-api-specs
- sourceRevisionDigest: sha256:872476237575ccc7e2720d7a31a66fc38ec7c561cfd2e33459cf33e1a45d9949
- sourceBlobDigest: sha256:7d5c308c3a1ba3c2dc2486a0006d48995e1618f3be0673c7e9422fd5eb582f2a
+ sourceRevisionDigest: sha256:9520eaea4f882d898719574ee75afc5c9289562b08a4ddbf337693f3041aaae3
+ sourceBlobDigest: sha256:d1b9b1adb0aa1d72885cc0bd86db9adc236a161f7f0b70b9f5cc61cf5c7052bd
codeSamplesNamespace: glean-api-specs-typescript-code-samples
- codeSamplesRevisionDigest: sha256:9d0e45c230b0b42872cd2ed14e8a2dee57fe89569e7162989f676f0607269608
+ codeSamplesRevisionDigest: sha256:06e19673f43fc0e8e220f86b9eaf6e47eafc4edc7b98683bcab8f783496ae8b3
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
diff --git a/RELEASES.md b/RELEASES.md
index da0ad77d..c5e3f68c 100644
--- a/RELEASES.md
+++ b/RELEASES.md
@@ -1118,4 +1118,14 @@ Based on:
### Generated
- [typescript v0.20.23] .
### Releases
-- [NPM v0.20.23] https://www.npmjs.com/package/@gleanwork/api-client/v/0.20.23 - .
\ No newline at end of file
+- [NPM v0.20.23] https://www.npmjs.com/package/@gleanwork/api-client/v/0.20.23 - .
+
+## 2026-11-17 15:42:19
+### Changes
+Based on:
+- OpenAPI Doc
+- Speakeasy CLI 1.809.0 (2.961.1) https://github.com/speakeasy-api/speakeasy
+### Generated
+- [typescript v0.20.24] .
+### Releases
+- [NPM v0.20.24] https://www.npmjs.com/package/@gleanwork/api-client/v/0.20.24 - .
\ No newline at end of file
diff --git a/docs/models/components/insightsoverviewresponse.md b/docs/models/components/insightsoverviewresponse.md
index 5776d988..fb35094a 100644
--- a/docs/models/components/insightsoverviewresponse.md
+++ b/docs/models/components/insightsoverviewresponse.md
@@ -35,6 +35,7 @@ let value: InsightsOverviewResponse = {
| `extensionSummary` | [components.CurrentActiveUsers](../../models/components/currentactiveusers.md) | :heavy_minus_sign: | N/A |
| `ugcSummary` | [components.CurrentActiveUsers](../../models/components/currentactiveusers.md) | :heavy_minus_sign: | N/A |
| `lastUpdatedTs` | *number* | :heavy_minus_sign: | Unix timestamp of the last update for the insights data in the response. |
+| `totalSignupsWeekAgo` | *number* | :heavy_minus_sign: | Number of current employees in the specified departments who had signed up 7 days before the latest day of insights data. Compare with totalSignups for week-over-week signup change. |
| ~~`searchSessionSatisfaction`~~ | *number* | :heavy_minus_sign: | :warning: **DEPRECATED**: Deprecated on 2026-05-13, removal scheduled for 2027-01-15: This property is no longer supported. Please contact Support for alternatives..
Search session satisfaction rate, over the specified time period in the specified departments. |
| `monthlyActiveUserTimeseries` | [components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A |
| `weeklyActiveUserTimeseries` | [components.LabeledCountInfo](../../models/components/labeledcountinfo.md) | :heavy_minus_sign: | N/A |
diff --git a/examples/package-lock.json b/examples/package-lock.json
index f378e0c4..0e142c69 100644
--- a/examples/package-lock.json
+++ b/examples/package-lock.json
@@ -18,7 +18,7 @@
},
"..": {
"name": "@gleanwork/api-client",
- "version": "0.20.23",
+ "version": "0.20.24",
"dependencies": {
"zod": "^3.25.0 || ^4.6.6"
},
diff --git a/jsr.json b/jsr.json
index 9c098943..90860770 100644
--- a/jsr.json
+++ b/jsr.json
@@ -2,7 +2,7 @@
{
"name": "@gleanwork/api-client",
- "version": "0.20.23",
+ "version": "0.20.24",
"exports": {
".": "./src/index.ts",
"./models/errors": "./src/models/errors/index.ts",
diff --git a/package-lock.json b/package-lock.json
index f7110462..5f121354 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "@gleanwork/api-client",
- "version": "0.20.23",
+ "version": "0.20.24",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@gleanwork/api-client",
- "version": "0.20.23",
+ "version": "0.20.24",
"dependencies": {
"zod": "^3.25.0 || ^4.6.6"
},
diff --git a/package.json b/package.json
index 30f1c410..fc12f16b 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@gleanwork/api-client",
- "version": "0.20.23",
+ "version": "0.20.24",
"author": "Speakeasy",
"tshy": {
"sourceDialects": [
diff --git a/src/__tests__/messages.test.ts b/src/__tests__/messages.test.ts
index a4785e31..01382f0c 100644
--- a/src/__tests__/messages.test.ts
+++ b/src/__tests__/messages.test.ts
@@ -20,7 +20,7 @@ test("Messages Messages", async () => {
idType: "CONVERSATION_ID",
id: "",
timestampMillis: 558834,
- datasource: "SLACK",
+ datasource: "SLACKENTGRID",
});
expect(result).toBeDefined();
});
diff --git a/src/__tests__/mockserver/internal/handler/pathpostrestapiv1createcollection.go b/src/__tests__/mockserver/internal/handler/pathpostrestapiv1createcollection.go
index a4b19376..673b01bb 100644
--- a/src/__tests__/mockserver/internal/handler/pathpostrestapiv1createcollection.go
+++ b/src/__tests__/mockserver/internal/handler/pathpostrestapiv1createcollection.go
@@ -57,14 +57,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{
@@ -91,7 +91,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ
},
},
},
- ID: 363711,
+ ID: 158969,
Creator: &components.Person{
Name: "George Clooney",
ObfuscatedID: "abc123",
@@ -102,7 +102,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",
@@ -279,13 +279,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"),
@@ -301,7 +301,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ
},
},
},
- ID: 643990,
+ ID: 131797,
Creator: &components.Person{
Name: "George Clooney",
ObfuscatedID: "abc123",
@@ -313,7 +313,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"),
@@ -329,7 +329,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ
},
},
},
- ID: 359978,
+ ID: 149448,
Creator: &components.Person{
Name: "George Clooney",
ObfuscatedID: "abc123",
@@ -341,7 +341,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ
},
},
},
- ItemType: components.CollectionItemItemTypeURL,
+ ItemType: components.CollectionItemItemTypeCollection,
},
},
},
diff --git a/src/__tests__/mockserver/internal/handler/pathpostrestapiv1getchat.go b/src/__tests__/mockserver/internal/handler/pathpostrestapiv1getchat.go
index e2243868..a7e16d16 100644
--- a/src/__tests__/mockserver/internal/handler/pathpostrestapiv1getchat.go
+++ b/src/__tests__/mockserver/internal/handler/pathpostrestapiv1getchat.go
@@ -629,8 +629,8 @@ func testGetchatGetchat0(w http.ResponseWriter, req *http.Request) {
Roles: []components.UserRoleSpecification{},
SourceDocumentSpec: types.Pointer(components.CreateDocumentSpecUnionDocumentSpec3(
components.DocumentSpec3{
- UgcType: components.DocumentSpecUgcType1Shortcuts,
- ContentID: 602763,
+ UgcType: components.DocumentSpecUgcType1Announcements,
+ ContentID: 848009,
},
)),
SourceType: components.AnswerSourceTypeAssistant.ToPointer(),
diff --git a/src/__tests__/mockserver/internal/sdk/models/components/insightsoverviewresponse.go b/src/__tests__/mockserver/internal/sdk/models/components/insightsoverviewresponse.go
index 22393d1e..c4aa4a9a 100644
--- a/src/__tests__/mockserver/internal/sdk/models/components/insightsoverviewresponse.go
+++ b/src/__tests__/mockserver/internal/sdk/models/components/insightsoverviewresponse.go
@@ -24,6 +24,8 @@ type InsightsOverviewResponse struct {
UgcSummary *CurrentActiveUsers `json:"ugcSummary,omitempty"`
// Unix timestamp of the last update for the insights data in the response.
LastUpdatedTs *int64 `json:"lastUpdatedTs,omitempty"`
+ // Number of current employees in the specified departments who had signed up 7 days before the latest day of insights data. Compare with totalSignups for week-over-week signup change.
+ TotalSignupsWeekAgo *int64 `json:"totalSignupsWeekAgo,omitempty"`
// Search session satisfaction rate, over the specified time period in the specified departments.
//
// Deprecated: Deprecated on 2026-05-13, removal scheduled for 2027-01-15: This property is no longer supported. Please contact Support for alternatives..
@@ -153,6 +155,13 @@ func (o *InsightsOverviewResponse) GetLastUpdatedTs() *int64 {
return o.LastUpdatedTs
}
+func (o *InsightsOverviewResponse) GetTotalSignupsWeekAgo() *int64 {
+ if o == nil {
+ return nil
+ }
+ return o.TotalSignupsWeekAgo
+}
+
func (o *InsightsOverviewResponse) GetSearchSessionSatisfaction() *float32 {
if o == nil {
return nil
diff --git a/src/__tests__/summarize.test.ts b/src/__tests__/summarize.test.ts
index a1e0e251..7b1ea9e9 100644
--- a/src/__tests__/summarize.test.ts
+++ b/src/__tests__/summarize.test.ts
@@ -19,11 +19,11 @@ test("Summarize Summarize", async () => {
const result = await glean.client.documents.summarize({
documentSpecs: [
{
- id: "",
+ ugcType: "CHATS",
+ ugcId: "",
},
{
- ugcType: "CHATS",
- contentId: 593816,
+ url: "https://heavy-castanet.name",
},
],
});
diff --git a/src/lib/config.ts b/src/lib/config.ts
index 0ce42950..923a6737 100644
--- a/src/lib/config.ts
+++ b/src/lib/config.ts
@@ -73,8 +73,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
export const SDK_METADATA = {
language: "typescript",
openapiDocVersion: "0.9.0",
- sdkVersion: "0.20.23",
+ sdkVersion: "0.20.24",
genVersion: "2.961.1",
userAgent:
- "speakeasy-sdk/typescript 0.20.23 2.961.1 0.9.0 @gleanwork/api-client",
+ "speakeasy-sdk/typescript 0.20.24 2.961.1 0.9.0 @gleanwork/api-client",
} as const;
diff --git a/src/models/components/insightsoverviewresponse.ts b/src/models/components/insightsoverviewresponse.ts
index 4edfd959..0aed293d 100644
--- a/src/models/components/insightsoverviewresponse.ts
+++ b/src/models/components/insightsoverviewresponse.ts
@@ -61,6 +61,10 @@ export type InsightsOverviewResponse = {
* Unix timestamp of the last update for the insights data in the response.
*/
lastUpdatedTs?: number | undefined;
+ /**
+ * Number of current employees in the specified departments who had signed up 7 days before the latest day of insights data. Compare with totalSignups for week-over-week signup change.
+ */
+ totalSignupsWeekAgo?: number | undefined;
/**
* Search session satisfaction rate, over the specified time period in the specified departments.
*
@@ -120,6 +124,7 @@ export const InsightsOverviewResponse$inboundSchema: z.ZodType<
extensionSummary: CurrentActiveUsers$inboundSchema.optional(),
ugcSummary: CurrentActiveUsers$inboundSchema.optional(),
lastUpdatedTs: z.number().int().optional(),
+ totalSignupsWeekAgo: z.number().int().optional(),
searchSessionSatisfaction: z.number().optional(),
monthlyActiveUserTimeseries: LabeledCountInfo$inboundSchema.optional(),
weeklyActiveUserTimeseries: LabeledCountInfo$inboundSchema.optional(),