diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock
index a334ad32..abe0bcf1 100644
--- a/.speakeasy/gen.lock
+++ b/.speakeasy/gen.lock
@@ -1,18 +1,18 @@
lockVersion: 2.0.0
id: 9d90eb9e-33f8-4170-8944-988f4000aad0
management:
- docChecksum: 01a90b01e893a4ce756427c8d9283253
+ docChecksum: 9d8ec68225b876cf9682078cfb491edd
docVersion: 0.9.0
speakeasyVersion: 1.809.0
generationVersion: 2.961.1
- releaseVersion: 0.17.6
- configChecksum: 4fb7baa894b7f2b69d9a1fe16e419169
+ releaseVersion: 0.17.7
+ configChecksum: 34225d42eb3ddcd07939561b734ec3cb
repoURL: https://github.com/gleanwork/api-client-go.git
installationURL: https://github.com/gleanwork/api-client-go
persistentEdits:
- generation_id: b2e8a4c7-c837-4dcd-8df7-b21f2225d4d6
- pristine_commit_hash: 74c2dda719dbc41db306467407b24018089229df
- pristine_tree_hash: b2a5b979ff426475fc21930db5bf2fd394f154d6
+ generation_id: 67796240-d33c-4ad2-86e1-675925e5358d
+ pristine_commit_hash: c50b961d7b768cb92b01a28c2497cc0d78129cc4
+ pristine_tree_hash: 6bc66762c1ba52ec4bb44c8feb38801d05691b57
features:
go:
acceptHeaders: 2.81.2
@@ -1761,8 +1761,8 @@ trackedFiles:
pristine_git_object: a659575f9f64d0b094681b69fbad6c9a9ce9a300
docs/models/components/insightsoverviewresponse.md:
id: e490ed19892d
- last_write_checksum: sha1:943ff872a42dac9eddab77f426aef02ae6a6babc
- pristine_git_object: c06897bc22c364ea10dffedbac442a2c175f083d
+ last_write_checksum: sha1:6b7c03ad422848be02c8bf6b79ba82ba5a5fb5ce
+ pristine_git_object: d25f98bf1eae67bb718c79ded9500d61128a8236
docs/models/components/insightsrequest.md:
id: cf96ae543699
last_write_checksum: sha1:7fcfaf5d7656abb9b65e3a7406d0d81d50b3637e
@@ -5137,8 +5137,8 @@ trackedFiles:
pristine_git_object: a3cb3e5448f3fdcfad77ed2a4ba47ae848d5cd5d
glean.go:
id: f5ed099b8e85
- last_write_checksum: sha1:c9a29feb5b8a3628f4cd6614046b84acf3919023
- pristine_git_object: d29156b0891fc4652df639b018893acb21421875
+ last_write_checksum: sha1:e42e437189872e0ebc0d2730240e10577f76da64
+ pristine_git_object: 15cc3097d34586cb51adc8dd8b0fd3220f0afd71
go.mod:
id: c47645c391ad
last_write_checksum: sha1:b3c76c4c50472a60a8c74834bce9770edcc84fb1
@@ -6505,8 +6505,8 @@ trackedFiles:
pristine_git_object: 5186f212c30ffca043657c61b69feedea998fa32
models/components/insightsoverviewresponse.go:
id: ac8d586dce6f
- last_write_checksum: sha1:ffd5c4cd842c0d54c0b5ed1c5dda00a85845db7b
- pristine_git_object: 39b3895f948fc834fd27a53d219f0fdb5cc86d7e
+ last_write_checksum: sha1:360958fb518fcf165e1da33a6d76d488f0d8eb9b
+ pristine_git_object: dea18e87441f33a629d85cd5291d17d9595ed312
models/components/insightsrequest.go:
id: 864d5ff0b637
last_write_checksum: sha1:b4a7963549e0d534c6a1ef5064705a71bbcd235d
@@ -10837,8 +10837,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
@@ -13201,8 +13201,8 @@ trackedFiles:
pristine_git_object: c529bd5691588e889a10e46bb1cd477a80cb3703
tests/summarize_test.go:
id: 1b63b0a16e69
- last_write_checksum: sha1:7c2dd1971ef08363eb64aac3c8a2da389411b637
- pristine_git_object: 8f8003ff8749d018e6b02af41ac3cffaf4436542
+ last_write_checksum: sha1:6da9f736fef20def1b16946fe93d02a1c5cb94ec
+ pristine_git_object: 4bfe1645d67bb70c7dc680bf793b2c4d9ae38d2f
tests/testclient.go:
id: 78d36c6e169c
last_write_checksum: sha1:507c44e437934fbff8d295201c1327e18bd00df8
@@ -15126,7 +15126,9 @@ generatedTests:
platform-documents-get: "2026-11-06T19:46:30Z"
platform-documents-batch: "2026-11-06T19:46:30Z"
platform-search-enumeration: "2026-11-16T11:54:07Z"
-releaseNotes: "## Go SDK Changes:\n* `Glean.Chat.Create()`: \n * `request.Request.Text` **Removed** (Breaking ⚠️)\n * `response.Output[].Content[].StructuredOutput` **Removed** (Breaking ⚠️)\n* `Glean.Chat.CreateStream()`: \n * `request.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: |
+ ## Go 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 e52c6ddb..dc909739 100644
--- a/.speakeasy/gen.yaml
+++ b/.speakeasy/gen.yaml
@@ -33,7 +33,7 @@ generation:
generateNewTests: true
skipResponseBodyAssertions: true
go:
- version: 0.17.6
+ version: 0.17.7
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false
baseErrorName: GleanError
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 25b755f1..d74e272d 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
petstore-oas:
@@ -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-go-code-samples
- codeSamplesRevisionDigest: sha256:94b75d49424cefbbeed73a8574f77a45677e1fb4c1fcd02090ea24977ce7c11a
+ codeSamplesRevisionDigest: sha256:8e42a62eda9d1638f4384f4242db5c660ddb3cf83ff1d20d7e925f2827aa4fde
petstore:
source: petstore-oas
sourceNamespace: petstore-oas
diff --git a/RELEASES.md b/RELEASES.md
index 2babea42..7857f07c 100644
--- a/RELEASES.md
+++ b/RELEASES.md
@@ -1088,4 +1088,14 @@ Based on:
### Generated
- [go v0.17.6] .
### Releases
-- [Go v0.17.6] https://github.com/gleanwork/api-client-go/releases/tag/v0.17.6 - .
\ No newline at end of file
+- [Go v0.17.6] https://github.com/gleanwork/api-client-go/releases/tag/v0.17.6 - .
+
+## 2026-11-17 15:43:00
+### Changes
+Based on:
+- OpenAPI Doc
+- Speakeasy CLI 1.809.0 (2.961.1) https://github.com/speakeasy-api/speakeasy
+### Generated
+- [go v0.17.7] .
+### Releases
+- [Go v0.17.7] https://github.com/gleanwork/api-client-go/releases/tag/v0.17.7 - .
\ No newline at end of file
diff --git a/docs/models/components/insightsoverviewresponse.md b/docs/models/components/insightsoverviewresponse.md
index c06897bc..d25f98bf 100644
--- a/docs/models/components/insightsoverviewresponse.md
+++ b/docs/models/components/insightsoverviewresponse.md
@@ -19,6 +19,7 @@
| `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` | `*int64` | :heavy_minus_sign: | Unix timestamp of the last update for the insights data in the response. |
+| `TotalSignupsWeekAgo` | `*int64` | :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`~~ | `*float32` | :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/glean.go b/glean.go
index d29156b0..15cc3097 100644
--- a/glean.go
+++ b/glean.go
@@ -165,10 +165,10 @@ func WithTimeout(timeout time.Duration) SDKOption {
// New creates a new instance of the SDK with the provided options
func New(opts ...SDKOption) *Glean {
sdk := &Glean{
- SDKVersion: "0.17.6",
+ SDKVersion: "0.17.7",
sdkConfiguration: config.SDKConfiguration{
- UserAgent: "speakeasy-sdk/go 0.17.6 2.961.1 0.9.0 github.com/gleanwork/api-client-go",
- SDKVersion: "0.17.6",
+ UserAgent: "speakeasy-sdk/go 0.17.7 2.961.1 0.9.0 github.com/gleanwork/api-client-go",
+ SDKVersion: "0.17.7",
GenVersion: "2.961.1",
OpenAPIDocVersion: "0.9.0",
ServerList: ServerList,
diff --git a/models/components/insightsoverviewresponse.go b/models/components/insightsoverviewresponse.go
index 39b3895f..dea18e87 100644
--- a/models/components/insightsoverviewresponse.go
+++ b/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 (i *InsightsOverviewResponse) GetLastUpdatedTs() *int64 {
return i.LastUpdatedTs
}
+func (i *InsightsOverviewResponse) GetTotalSignupsWeekAgo() *int64 {
+ if i == nil {
+ return nil
+ }
+ return i.TotalSignupsWeekAgo
+}
+
func (i *InsightsOverviewResponse) GetSearchSessionSatisfaction() *float32 {
if i == nil {
return nil
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/summarize_test.go b/tests/summarize_test.go
index 8f8003ff..4bfe1645 100644
--- a/tests/summarize_test.go
+++ b/tests/summarize_test.go
@@ -25,16 +25,14 @@ func TestSummarize_Summarize(t *testing.T) {
res, err := s.Client.Documents.Summarize(ctx, components.SummarizeRequest{
DocumentSpecs: []components.DocumentSpecUnion{
- components.CreateDocumentSpecUnionDocumentSpec3(
- components.DocumentSpec3{
- UgcType: components.DocumentSpecUgcType1Shortcuts,
- ContentID: 602763,
+ components.CreateDocumentSpecUnionDocumentSpec1(
+ components.DocumentSpec1{
+ URL: "https://dim-glider.com/",
},
),
- components.CreateDocumentSpecUnionDocumentSpec3(
- components.DocumentSpec3{
- UgcType: components.DocumentSpecUgcType1Shortcuts,
- ContentID: 602763,
+ components.CreateDocumentSpecUnionDocumentSpec2(
+ components.DocumentSpec2{
+ ID: "",
},
),
},