diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock
index f7edf290..0e6bd9ea 100644
--- a/.speakeasy/gen.lock
+++ b/.speakeasy/gen.lock
@@ -1,19 +1,19 @@
lockVersion: 2.0.0
id: 3e3290ca-0ee8-4981-b1bc-14536048fa63
management:
- docChecksum: 01a90b01e893a4ce756427c8d9283253
+ docChecksum: 9d8ec68225b876cf9682078cfb491edd
docVersion: 0.9.0
speakeasyVersion: 1.809.0
generationVersion: 2.961.1
- releaseVersion: 0.17.22
- configChecksum: 03c050fa75fe3af2cf8e8db8785450c7
+ releaseVersion: 0.17.23
+ configChecksum: d147721181a90690bab7769f551ba3ec
repoURL: https://github.com/gleanwork/api-client-python.git
installationURL: https://github.com/gleanwork/api-client-python.git
published: true
persistentEdits:
- generation_id: f15a1613-3568-4db6-9913-ba4262e54ac4
- pristine_commit_hash: 426fee4dcb102053ec3ebe276f1e1d3afae693b7
- pristine_tree_hash: 416612eceee4678950928f1f96db039308f6539c
+ generation_id: 9da090f1-ab9d-4250-83fb-11af52891dc6
+ pristine_commit_hash: 05b1c9625bbd71235db45061abef605387c1c517
+ pristine_tree_hash: 8531fc047663d75228af7126868bca39b0e73afa
features:
python:
acceptHeaders: 3.0.0
@@ -1922,8 +1922,8 @@ trackedFiles:
pristine_git_object: b6fc7e69c80120509d9f691f3ba92d586b09f61d
docs/models/insightsoverviewresponse.md:
id: c980a8e3a69e
- last_write_checksum: sha1:91769cbd422d0566f5a96a1b88f5bc9225c78c88
- pristine_git_object: 1d164ba6cf0f55bd366272fe84a540d6d9b9ef51
+ last_write_checksum: sha1:49d1977273ff59a0c1a24a45fb2ebb3a18b6bb67
+ pristine_git_object: d14c740785f04995c49ea44a5312c07da72ffa55
docs/models/insightsrequest.md:
id: 13eaa34edff4
last_write_checksum: sha1:43421d855599f8045baf28ab774eb06de08c2acb
@@ -4334,8 +4334,8 @@ trackedFiles:
pristine_git_object: 79e388be87446ab6a4064b372bad0e8376d0cb5e
pyproject.toml:
id: 5d07e7d72637
- last_write_checksum: sha1:ff1ceb73761bec861be29a607f6065f8bf2ee76b
- pristine_git_object: 5c29efd83f7213ff002729387541796178e1f3d3
+ last_write_checksum: sha1:6eedf3ff61a283b18a7ea32c69f4a9c3c5b7948b
+ pristine_git_object: 2671884cf101ca259f3c221f7610cb67a2d59533
scripts/prepare_readme.py:
id: e0c5957a6035
last_write_checksum: sha1:c2c83f71dea61eb50c9e05da83b16d18b4da8794
@@ -4362,8 +4362,8 @@ trackedFiles:
pristine_git_object: 55f23c1feabfedeb7e8cd5bea8b910f0ae0b77d9
src/glean/api_client/_version.py:
id: 0ce22b26136b
- last_write_checksum: sha1:3fd6da8ffa9f388f98a28833d52257537c043444
- pristine_git_object: df53044112d78cf818c95f57ec7cc85daddc867c
+ last_write_checksum: sha1:f423eb122a2323ad02b26bed19e16b3d2136eb7c
+ pristine_git_object: e6983fed3f0401ae7df07c17c4b52ed8a7d54368
src/glean/api_client/admin.py:
id: 583cfae82adf
last_write_checksum: sha1:3c462f418d2b32a90c92f88121867a73295b0c6c
@@ -6026,8 +6026,8 @@ trackedFiles:
pristine_git_object: 8335f24b795d10724eb509ed9e6de213b4bcb302
src/glean/api_client/models/insightsoverviewresponse.py:
id: 9f278319d18c
- last_write_checksum: sha1:b9d8d0871a3f464dfed48e5804be7bbad94efdab
- pristine_git_object: 3d9c509c2f7d2c2e14b4e5af1b33e5c075501645
+ last_write_checksum: sha1:ab97e290cf666de4b23f238164e7ea679dbda286
+ pristine_git_object: 0e20674503b53c359349ea3d3dc57a8d832a6fed
src/glean/api_client/models/insightsrequest.py:
id: 72fbc9d1c47b
last_write_checksum: sha1:2c8a18aeb6a66d39d9a06c76075b9aa413587ab0
@@ -8498,8 +8498,8 @@ trackedFiles:
pristine_git_object: abb763ddc8504b28c0cb6fdf8d25237d46e21bab
tests/mockserver/internal/handler/pathpostrestapiv1getchat.go:
id: a0ec7bafa599
- last_write_checksum: sha1:2267292ba8173cf8df70ddbc6ac02ff3439cb879
- pristine_git_object: 8740195860b6c08e036caae19aab8e7374350960
+ last_write_checksum: sha1:b48e2313407814ee4f8ed181b8e5299a84960c44
+ pristine_git_object: 96d4127e0455272a9842e2d1954e5fcefa3278cc
tests/mockserver/internal/handler/pathpostrestapiv1getchatapplication.go:
id: 7d101c69d4bc
last_write_checksum: sha1:7b81898137fdb3a89b4dcfa318b9b5b92e8860c0
@@ -9878,8 +9878,8 @@ trackedFiles:
pristine_git_object: 5e903919f103f212820d2d4717e0e1e95d78846b
tests/mockserver/internal/sdk/models/components/insightsoverviewresponse.go:
id: 5643c3cf2f72
- last_write_checksum: sha1:16dad78e377ce9f351787544d31c03af558d1cfd
- pristine_git_object: 2e8c2ec9b1055f925928b2179fea2bd7c9d31627
+ last_write_checksum: sha1:38ab70635b4b9fc592ef3e863272410f1db855f4
+ pristine_git_object: a4872a274ca370eae187a079685b7b919c776a56
tests/mockserver/internal/sdk/models/components/insightsrequest.go:
id: ce15dfb99343
last_write_checksum: sha1:b9f1c9680014aa2b60161886dc0d5932ef0cab20
@@ -12374,8 +12374,8 @@ trackedFiles:
pristine_git_object: 1c854370da050c261cb2cbcf9cc16829f5d8e78c
tests/test_summarize.py:
id: a255d8a6f627
- last_write_checksum: sha1:927e079ca08e811f8396e062d73d30e74201c7f3
- pristine_git_object: fd2baddb17f4be22555bd1ddf5fd50e82285a042
+ last_write_checksum: sha1:27f1c7a6c3acd199a3ed350b4bfc8a09c48a96bd
+ pristine_git_object: 9efa5c1d63d430a96553b99c2e2c987c64941690
tests/test_tools.py:
id: 70889bdf7321
last_write_checksum: sha1:e9e37efd6a65d805c02d70d548df9c87dd062b0e
@@ -14249,7 +14249,9 @@ generatedTests:
platform-documents-get: "2026-11-09T19:56:00Z"
platform-documents-batch: "2026-11-09T19:56:00Z"
platform-search-enumeration: "2026-11-16T11:51:20Z"
-releaseNotes: "## Python SDK Changes:\n* `glean.chat.create()`: \n * `request.text` **Removed** (Breaking ⚠️)\n * `response.output[].content[].structured_output` **Removed** (Breaking ⚠️)\n* `glean.chat.create_stream()`: \n * `request.text` **Removed** (Breaking ⚠️)\n * `response.[].union(RESPONSE_COMPLETED).data.response.output[].content[].structured_output` **Removed** (Breaking ⚠️)\n* `glean.search.enumerate()`: **Added**\n* `glean.triggers.search_events()`: `response.results[].reason` **Changed**\n* `glean.triggers.search_preset_events()`: `response.results[].reason` **Changed**\n"
+releaseNotes: |
+ ## Python SDK Changes:
+ * `glean.client.insights.retrieve()`: `response.overview_response.total_signups_week_ago` **Added**
generatedFiles:
- .devcontainer/README.md
- .devcontainer/devcontainer.json
diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml
index 6d1e1d76..d8f363f6 100644
--- a/.speakeasy/gen.yaml
+++ b/.speakeasy/gen.yaml
@@ -35,7 +35,7 @@ generation:
generateNewTests: true
skipResponseBodyAssertions: true
python:
- version: 0.17.22
+ version: 0.17.23
additionalDependencies:
dev: {}
main:
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 c19c90c9..78adcb49 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:
@@ -16,10 +16,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-python-code-samples
- codeSamplesRevisionDigest: sha256:ffc712fe412658c8fdeb938c2853c881d293687b11c52d0a9ff1330648383f14
+ codeSamplesRevisionDigest: sha256:e02f2f96de6e317bfd39479bff867bdec1603771e2f754bb2eedcfa1d1c0e4fd
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
diff --git a/RELEASES.md b/RELEASES.md
index 23ee23a1..74651194 100644
--- a/RELEASES.md
+++ b/RELEASES.md
@@ -1078,4 +1078,14 @@ Based on:
### Generated
- [python v0.17.22] .
### Releases
-- [PyPI v0.17.22] https://pypi.org/project/glean-api-client/0.17.22 - .
\ No newline at end of file
+- [PyPI v0.17.22] https://pypi.org/project/glean-api-client/0.17.22 - .
+
+## 2026-11-17 15:42:24
+### Changes
+Based on:
+- OpenAPI Doc
+- Speakeasy CLI 1.809.0 (2.961.1) https://github.com/speakeasy-api/speakeasy
+### Generated
+- [python v0.17.23] .
+### Releases
+- [PyPI v0.17.23] https://pypi.org/project/glean-api-client/0.17.23 - .
\ No newline at end of file
diff --git a/docs/models/insightsoverviewresponse.md b/docs/models/insightsoverviewresponse.md
index 1d164ba6..d14c7407 100644
--- a/docs/models/insightsoverviewresponse.md
+++ b/docs/models/insightsoverviewresponse.md
@@ -19,6 +19,7 @@
| `extension_summary` | [Optional[models.CurrentActiveUsers]](../models/currentactiveusers.md) | :heavy_minus_sign: | N/A |
| `ugc_summary` | [Optional[models.CurrentActiveUsers]](../models/currentactiveusers.md) | :heavy_minus_sign: | N/A |
| `last_updated_ts` | *Optional[int]* | :heavy_minus_sign: | Unix timestamp of the last update for the insights data in the response. |
+| `total_signups_week_ago` | *Optional[int]* | :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. |
| ~~`search_session_satisfaction`~~ | *Optional[float]* | :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. |
| `monthly_active_user_timeseries` | [Optional[models.LabeledCountInfo]](../models/labeledcountinfo.md) | :heavy_minus_sign: | N/A |
| `weekly_active_user_timeseries` | [Optional[models.LabeledCountInfo]](../models/labeledcountinfo.md) | :heavy_minus_sign: | N/A |
diff --git a/pyproject.toml b/pyproject.toml
index 5c29efd8..2671884c 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,7 +1,7 @@
[project]
name = "glean-api-client"
-version = "0.17.22"
+version = "0.17.23"
description = "Python Client SDK Generated by Speakeasy."
authors = [{ name = "Glean Technologies, Inc." },]
readme = "README-PYPI.md"
diff --git a/src/glean/api_client/_version.py b/src/glean/api_client/_version.py
index df530441..e6983fed 100644
--- a/src/glean/api_client/_version.py
+++ b/src/glean/api_client/_version.py
@@ -3,10 +3,10 @@
import importlib.metadata
__title__: str = "glean-api-client"
-__version__: str = "0.17.22"
+__version__: str = "0.17.23"
__openapi_doc_version__: str = "0.9.0"
__gen_version__: str = "2.961.1"
-__user_agent__: str = "speakeasy-sdk/python 0.17.22 2.961.1 0.9.0 glean-api-client"
+__user_agent__: str = "speakeasy-sdk/python 0.17.23 2.961.1 0.9.0 glean-api-client"
try:
if __package__ is not None:
diff --git a/src/glean/api_client/models/insightsoverviewresponse.py b/src/glean/api_client/models/insightsoverviewresponse.py
index 3d9c509c..0e206745 100644
--- a/src/glean/api_client/models/insightsoverviewresponse.py
+++ b/src/glean/api_client/models/insightsoverviewresponse.py
@@ -40,6 +40,8 @@ class InsightsOverviewResponseTypedDict(TypedDict):
ugc_summary: NotRequired[CurrentActiveUsersTypedDict]
last_updated_ts: NotRequired[int]
r"""Unix timestamp of the last update for the insights data in the response."""
+ total_signups_week_ago: NotRequired[int]
+ r"""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."""
search_session_satisfaction: NotRequired[float]
r"""Search session satisfaction rate, over the specified time period in the specified departments."""
monthly_active_user_timeseries: NotRequired[LabeledCountInfoTypedDict]
@@ -128,6 +130,11 @@ class InsightsOverviewResponse(BaseModel):
)
r"""Unix timestamp of the last update for the insights data in the response."""
+ total_signups_week_ago: Annotated[
+ Optional[int], pydantic.Field(alias="totalSignupsWeekAgo")
+ ] = None
+ r"""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."""
+
search_session_satisfaction: Annotated[
Optional[float],
pydantic.Field(
@@ -261,6 +268,7 @@ def serialize_model(self, handler):
"extensionSummary",
"ugcSummary",
"lastUpdatedTs",
+ "totalSignupsWeekAgo",
"searchSessionSatisfaction",
"monthlyActiveUserTimeseries",
"weeklyActiveUserTimeseries",
diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1getchat.go b/tests/mockserver/internal/handler/pathpostrestapiv1getchat.go
index 87401958..96d4127e 100644
--- a/tests/mockserver/internal/handler/pathpostrestapiv1getchat.go
+++ b/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.DocumentSpecUgcType1Shortcuts,
- ContentID: 602763,
+ UgcType: components.DocumentSpecUgcType1Announcements,
+ ContentID: 848009,
},
)),
SourceType: components.AnswerSourceTypeAssistant.ToPointer(),
diff --git a/tests/mockserver/internal/sdk/models/components/insightsoverviewresponse.go b/tests/mockserver/internal/sdk/models/components/insightsoverviewresponse.go
index 2e8c2ec9..a4872a27 100644
--- a/tests/mockserver/internal/sdk/models/components/insightsoverviewresponse.go
+++ b/tests/mockserver/internal/sdk/models/components/insightsoverviewresponse.go
@@ -23,6 +23,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..
@@ -152,6 +154,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/tests/test_summarize.py b/tests/test_summarize.py
index fd2baddb..9efa5c1d 100644
--- a/tests/test_summarize.py
+++ b/tests/test_summarize.py
@@ -18,10 +18,10 @@ def test_summarize_summarize():
res = glean.client.documents.summarize(
document_specs=[
{
- "url": "https://judicious-squid.info",
+ "url": "https://intelligent-lyre.net",
},
{
- "id": "",
+ "url": "https://intelligent-lyre.net",
},
]
)