Skip to content

Commit 511bcdc

Browse files
Merge pull request #32 from gleanwork/speakeasy-sdk-regen-1748395012
chore: 🐝 Update SDK - Generate 0.5.1
2 parents 26cb99f + fc75acf commit 511bcdc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+207
-160
lines changed

.speakeasy/gen.lock

Lines changed: 29 additions & 29 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ generation:
77
maintainOpenAPIOrder: true
88
usageSnippets:
99
optionalPropertyRendering: withExample
10+
sdkInitStyle: constructor
1011
useClassNamesForArrayFields: true
1112
fixes:
1213
nameResolutionDec2023: true
@@ -24,7 +25,7 @@ generation:
2425
generateNewTests: true
2526
skipResponseBodyAssertions: true
2627
typescript:
27-
version: 0.4.4
28+
version: 0.5.1
2829
additionalDependencies:
2930
dependencies: {}
3031
devDependencies: {}

.speakeasy/glean-merged-spec.yaml

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ openapi: 3.0.0
22
info:
33
version: 0.9.0
44
title: Glean API
5-
contact:
6-
75
description: |
86
# Introduction
97
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.
@@ -23,7 +21,7 @@ info:
2321
These API clients provide type-safe, idiomatic interfaces for working with Glean IndexingAPIs in your language of choice.
2422
x-logo:
2523
url: https://app.glean.com/images/glean-text2.svg
26-
x-speakeasy-name: "Glean API"
24+
x-speakeasy-name: 'Glean API'
2725
servers:
2826
- url: https://{instance}-be.glean.com
2927
variables:
@@ -414,7 +412,7 @@ paths:
414412
content:
415413
application/json:
416414
schema:
417-
$ref: "#/components/schemas/ChatResponse"
415+
$ref: '#/components/schemas/ChatResponse'
418416
examples:
419417
defaultExample:
420418
value:
@@ -477,10 +475,10 @@ paths:
477475
agent: DEFAULT
478476
mode: DEFAULT
479477
fragments:
480-
- text: "**Reading:**"
478+
- text: '**Reading:**'
481479
- structuredResults:
482480
- document:
483-
id: "123"
481+
id: '123'
484482
title: Company Handbook
485483
citationResponse:
486484
value:
@@ -492,7 +490,7 @@ paths:
492490
mode: DEFAULT
493491
citations:
494492
- sourceDocument:
495-
id: "123"
493+
id: '123'
496494
title: Company Handbook
497495
referenceRanges:
498496
- textRange:
@@ -3179,7 +3177,7 @@ paths:
31793177
/rest/api/v1/governance/data/policies/{id}:
31803178
get:
31813179
description: Fetches the specified policy version, or the latest if no version is provided.
3182-
summary: Gets specified Policy.
3180+
summary: Gets specified policy
31833181
operationId: getpolicy
31843182
x-visibility: Public
31853183
tags:
@@ -3213,7 +3211,7 @@ paths:
32133211
x-speakeasy-name-override: retrieve
32143212
post:
32153213
description: Updates an existing policy.
3216-
summary: Updates an existing policy.
3214+
summary: Updates an existing policy
32173215
operationId: updatepolicy
32183216
tags:
32193217
- Governance
@@ -3246,7 +3244,7 @@ paths:
32463244
/rest/api/v1/governance/data/policies:
32473245
get:
32483246
description: Lists policies with filtering.
3249-
summary: Lists policies.
3247+
summary: Lists policies
32503248
operationId: listpolicies
32513249
x-visibility: Public
32523250
tags:
@@ -3279,7 +3277,7 @@ paths:
32793277
x-speakeasy-name-override: list
32803278
post:
32813279
description: Creates a new policy with specified specifications and returns its id.
3282-
summary: Creates new policy.
3280+
summary: Creates new policy
32833281
operationId: createpolicy
32843282
x-visibility: Public
32853283
tags:
@@ -3306,7 +3304,7 @@ paths:
33063304
/rest/api/v1/governance/data/policies/{id}/download:
33073305
get:
33083306
description: Downloads CSV violations report for a specific policy id. This does not support continuous policies.
3309-
summary: Downloads violations CSV for policy.
3307+
summary: Downloads violations CSV for policy
33103308
operationId: downloadpolicycsv
33113309
x-visibility: Public
33123310
tags:
@@ -3335,7 +3333,7 @@ paths:
33353333
/rest/api/v1/governance/data/reports:
33363334
post:
33373335
description: Creates a new one-time report and executes its batch job.
3338-
summary: Creates new one-time report.
3336+
summary: Creates new one-time report
33393337
operationId: createreport
33403338
x-visibility: Public
33413339
tags:
@@ -3362,7 +3360,7 @@ paths:
33623360
/rest/api/v1/governance/data/reports/{id}/download:
33633361
get:
33643362
description: Downloads CSV violations report for a specific report id.
3365-
summary: Downloads violations CSV for report.
3363+
summary: Downloads violations CSV for report
33663364
operationId: downloadreportcsv
33673365
x-visibility: Public
33683366
tags:
@@ -3391,7 +3389,7 @@ paths:
33913389
/rest/api/v1/governance/data/reports/{id}/status:
33923390
get:
33933391
description: Fetches the status of the run corresponding to the report-id.
3394-
summary: Fetches report run status.
3392+
summary: Fetches report run status
33953393
operationId: getreportstatus
33963394
x-visibility: Public
33973395
tags:
@@ -3419,7 +3417,7 @@ paths:
34193417
/rest/api/v1/governance/documents/visibilityoverrides:
34203418
get:
34213419
description: Fetches the visibility override status of the documents passed.
3422-
summary: Fetches documents visibility.
3420+
summary: Fetches documents visibility
34233421
operationId: getdocvisibility
34243422
x-visibility: Public
34253423
tags:
@@ -3447,7 +3445,7 @@ paths:
34473445
x-speakeasy-name-override: list
34483446
post:
34493447
description: Sets the visibility-override state of the documents specified, effectively hiding or un-hiding documents.
3450-
summary: Hide/Un-hide docs.
3448+
summary: Hide or unhide docs
34513449
operationId: setdocvisibility
34523450
x-visibility: Public
34533451
tags:
@@ -7244,6 +7242,9 @@ components:
72447242
type: integer
72457243
description: Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer.
72467244
example: 30000
7245+
sessionInfo:
7246+
description: Optional object for tracking the session used by the client and for debugging purposes.
7247+
$ref: "#/components/schemas/SessionInfo"
72477248
applicationId:
72487249
type: string
72497250
description: The ID of the application this request originates from, used to determine the configuration of underlying chat processes. This should correspond to the ID set during admin setup. If not specified, the default chat experience will be used.
@@ -7510,6 +7511,8 @@ components:
75107511
AgentRunCreate:
75117512
description: Payload for creating a run.
75127513
type: object
7514+
required:
7515+
- agent_id
75137516
properties:
75147517
agent_id:
75157518
type: string

.speakeasy/workflow.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ speakeasyVersion: 1.551.0
22
sources:
33
Glean API:
44
sourceNamespace: glean-api-specs
5-
sourceRevisionDigest: sha256:54c0b7f53a738ea4d896b6041514ca6308f8fad84fb2ce9ca39e5c4cb5f52afc
6-
sourceBlobDigest: sha256:e03e7548ba6cb180d1f94e0a3912501f47f1f9944c0631dd752b396e56513f1f
5+
sourceRevisionDigest: sha256:8fa342ea4c0f50e32d7b0930df581e4f4ec000f1f36a429c40f6ccc3f72c0b6b
6+
sourceBlobDigest: sha256:914ea4a50d56c4ac1ef7a111f11756bfd8c21bd1c652b817b729ca8706a0afc7
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1748049192
9+
- speakeasy-sdk-regen-1748395012
1010
Glean Client API:
1111
sourceNamespace: glean-client-api
1212
sourceRevisionDigest: sha256:aec0770b5bcca91068c3a844cb9ef4a091281f6cc3b7d86f2abef1bd6fb2b301
@@ -18,10 +18,10 @@ targets:
1818
glean:
1919
source: Glean API
2020
sourceNamespace: glean-api-specs
21-
sourceRevisionDigest: sha256:54c0b7f53a738ea4d896b6041514ca6308f8fad84fb2ce9ca39e5c4cb5f52afc
22-
sourceBlobDigest: sha256:e03e7548ba6cb180d1f94e0a3912501f47f1f9944c0631dd752b396e56513f1f
21+
sourceRevisionDigest: sha256:8fa342ea4c0f50e32d7b0930df581e4f4ec000f1f36a429c40f6ccc3f72c0b6b
22+
sourceBlobDigest: sha256:914ea4a50d56c4ac1ef7a111f11756bfd8c21bd1c652b817b729ca8706a0afc7
2323
codeSamplesNamespace: glean-api-specs-typescript-code-samples
24-
codeSamplesRevisionDigest: sha256:5d3868b4c20c82f7499c78f4a4fba241957935d984270124fe7d4325e659a860
24+
codeSamplesRevisionDigest: sha256:98fc3865b8edb43487025b2b2df71f33e5df2af1d85792cf4127e9ce074924a5
2525
workflow:
2626
workflowVersion: 1.0.0
2727
speakeasyVersion: latest

README.md

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -359,25 +359,25 @@ For more information on obtaining the appropriate token type, please contact you
359359

360360
#### [client.governance.data.policies](docs/sdks/policies/README.md)
361361

362-
* [retrieve](docs/sdks/policies/README.md#retrieve) - Gets specified Policy.
363-
* [update](docs/sdks/policies/README.md#update) - Updates an existing policy.
364-
* [list](docs/sdks/policies/README.md#list) - Lists policies.
365-
* [create](docs/sdks/policies/README.md#create) - Creates new policy.
366-
* [download](docs/sdks/policies/README.md#download) - Downloads violations CSV for policy.
362+
* [retrieve](docs/sdks/policies/README.md#retrieve) - Gets specified policy
363+
* [update](docs/sdks/policies/README.md#update) - Updates an existing policy
364+
* [list](docs/sdks/policies/README.md#list) - Lists policies
365+
* [create](docs/sdks/policies/README.md#create) - Creates new policy
366+
* [download](docs/sdks/policies/README.md#download) - Downloads violations CSV for policy
367367

368368
#### [client.governance.data.reports](docs/sdks/reports/README.md)
369369

370-
* [create](docs/sdks/reports/README.md#create) - Creates new one-time report.
371-
* [download](docs/sdks/reports/README.md#download) - Downloads violations CSV for report.
372-
* [status](docs/sdks/reports/README.md#status) - Fetches report run status.
370+
* [create](docs/sdks/reports/README.md#create) - Creates new one-time report
371+
* [download](docs/sdks/reports/README.md#download) - Downloads violations CSV for report
372+
* [status](docs/sdks/reports/README.md#status) - Fetches report run status
373373

374374
#### [client.governance.documents](docs/sdks/governancedocuments/README.md)
375375

376376

377377
#### [client.governance.documents.visibilityoverrides](docs/sdks/visibilityoverrides/README.md)
378378

379-
* [list](docs/sdks/visibilityoverrides/README.md#list) - Fetches documents visibility.
380-
* [create](docs/sdks/visibilityoverrides/README.md#create) - Hide/Un-hide docs.
379+
* [list](docs/sdks/visibilityoverrides/README.md#list) - Fetches documents visibility
380+
* [create](docs/sdks/visibilityoverrides/README.md#create) - Hide or unhide docs
381381

382382
#### [client.insights](docs/sdks/insights/README.md)
383383

@@ -546,16 +546,16 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
546546
- [`clientDocumentsSummarize`](docs/sdks/clientdocuments/README.md#summarize) - Summarize documents
547547
- [`clientEntitiesList`](docs/sdks/entities/README.md#list) - List entities
548548
- [`clientEntitiesReadPeople`](docs/sdks/entities/README.md#readpeople) - Read people
549-
- [`clientGovernanceDataPoliciesCreate`](docs/sdks/policies/README.md#create) - Creates new policy.
550-
- [`clientGovernanceDataPoliciesDownload`](docs/sdks/policies/README.md#download) - Downloads violations CSV for policy.
551-
- [`clientGovernanceDataPoliciesList`](docs/sdks/policies/README.md#list) - Lists policies.
552-
- [`clientGovernanceDataPoliciesRetrieve`](docs/sdks/policies/README.md#retrieve) - Gets specified Policy.
553-
- [`clientGovernanceDataPoliciesUpdate`](docs/sdks/policies/README.md#update) - Updates an existing policy.
554-
- [`clientGovernanceDataReportsCreate`](docs/sdks/reports/README.md#create) - Creates new one-time report.
555-
- [`clientGovernanceDataReportsDownload`](docs/sdks/reports/README.md#download) - Downloads violations CSV for report.
556-
- [`clientGovernanceDataReportsStatus`](docs/sdks/reports/README.md#status) - Fetches report run status.
557-
- [`clientGovernanceDocumentsVisibilityoverridesCreate`](docs/sdks/visibilityoverrides/README.md#create) - Hide/Un-hide docs.
558-
- [`clientGovernanceDocumentsVisibilityoverridesList`](docs/sdks/visibilityoverrides/README.md#list) - Fetches documents visibility.
549+
- [`clientGovernanceDataPoliciesCreate`](docs/sdks/policies/README.md#create) - Creates new policy
550+
- [`clientGovernanceDataPoliciesDownload`](docs/sdks/policies/README.md#download) - Downloads violations CSV for policy
551+
- [`clientGovernanceDataPoliciesList`](docs/sdks/policies/README.md#list) - Lists policies
552+
- [`clientGovernanceDataPoliciesRetrieve`](docs/sdks/policies/README.md#retrieve) - Gets specified policy
553+
- [`clientGovernanceDataPoliciesUpdate`](docs/sdks/policies/README.md#update) - Updates an existing policy
554+
- [`clientGovernanceDataReportsCreate`](docs/sdks/reports/README.md#create) - Creates new one-time report
555+
- [`clientGovernanceDataReportsDownload`](docs/sdks/reports/README.md#download) - Downloads violations CSV for report
556+
- [`clientGovernanceDataReportsStatus`](docs/sdks/reports/README.md#status) - Fetches report run status
557+
- [`clientGovernanceDocumentsVisibilityoverridesCreate`](docs/sdks/visibilityoverrides/README.md#create) - Hide or unhide docs
558+
- [`clientGovernanceDocumentsVisibilityoverridesList`](docs/sdks/visibilityoverrides/README.md#list) - Fetches documents visibility
559559
- [`clientInsightsRetrieve`](docs/sdks/insights/README.md#retrieve) - Read insights
560560
- [`clientMessagesRetrieve`](docs/sdks/messages/README.md#retrieve) - Read messages
561561
- [`clientPinsCreate`](docs/sdks/pins/README.md#create) - Create pin
@@ -685,16 +685,16 @@ To learn about this feature and how to get started, check
685685
- [`useClientDocumentsSummarizeMutation`](docs/sdks/clientdocuments/README.md#summarize) - Summarize documents
686686
- [`useClientEntitiesListMutation`](docs/sdks/entities/README.md#list) - List entities
687687
- [`useClientEntitiesReadPeopleMutation`](docs/sdks/entities/README.md#readpeople) - Read people
688-
- [`useClientGovernanceDataPoliciesCreateMutation`](docs/sdks/policies/README.md#create) - Creates new policy.
689-
- [`useClientGovernanceDataPoliciesDownload`](docs/sdks/policies/README.md#download) - Downloads violations CSV for policy.
690-
- [`useClientGovernanceDataPoliciesList`](docs/sdks/policies/README.md#list) - Lists policies.
691-
- [`useClientGovernanceDataPoliciesRetrieve`](docs/sdks/policies/README.md#retrieve) - Gets specified Policy.
692-
- [`useClientGovernanceDataPoliciesUpdateMutation`](docs/sdks/policies/README.md#update) - Updates an existing policy.
693-
- [`useClientGovernanceDataReportsCreateMutation`](docs/sdks/reports/README.md#create) - Creates new one-time report.
694-
- [`useClientGovernanceDataReportsDownload`](docs/sdks/reports/README.md#download) - Downloads violations CSV for report.
695-
- [`useClientGovernanceDataReportsStatus`](docs/sdks/reports/README.md#status) - Fetches report run status.
696-
- [`useClientGovernanceDocumentsVisibilityoverridesCreateMutation`](docs/sdks/visibilityoverrides/README.md#create) - Hide/Un-hide docs.
697-
- [`useClientGovernanceDocumentsVisibilityoverridesList`](docs/sdks/visibilityoverrides/README.md#list) - Fetches documents visibility.
688+
- [`useClientGovernanceDataPoliciesCreateMutation`](docs/sdks/policies/README.md#create) - Creates new policy
689+
- [`useClientGovernanceDataPoliciesDownload`](docs/sdks/policies/README.md#download) - Downloads violations CSV for policy
690+
- [`useClientGovernanceDataPoliciesList`](docs/sdks/policies/README.md#list) - Lists policies
691+
- [`useClientGovernanceDataPoliciesRetrieve`](docs/sdks/policies/README.md#retrieve) - Gets specified policy
692+
- [`useClientGovernanceDataPoliciesUpdateMutation`](docs/sdks/policies/README.md#update) - Updates an existing policy
693+
- [`useClientGovernanceDataReportsCreateMutation`](docs/sdks/reports/README.md#create) - Creates new one-time report
694+
- [`useClientGovernanceDataReportsDownload`](docs/sdks/reports/README.md#download) - Downloads violations CSV for report
695+
- [`useClientGovernanceDataReportsStatus`](docs/sdks/reports/README.md#status) - Fetches report run status
696+
- [`useClientGovernanceDocumentsVisibilityoverridesCreateMutation`](docs/sdks/visibilityoverrides/README.md#create) - Hide or unhide docs
697+
- [`useClientGovernanceDocumentsVisibilityoverridesList`](docs/sdks/visibilityoverrides/README.md#list) - Fetches documents visibility
698698
- [`useClientInsightsRetrieveMutation`](docs/sdks/insights/README.md#retrieve) - Read insights
699699
- [`useClientMessagesRetrieveMutation`](docs/sdks/messages/README.md#retrieve) - Read messages
700700
- [`useClientPinsCreateMutation`](docs/sdks/pins/README.md#create) - Create pin

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,4 +158,14 @@ Based on:
158158
### Generated
159159
- [typescript v0.4.4] .
160160
### Releases
161-
- [NPM v0.4.4] https://www.npmjs.com/package/@gleanwork/api-client/v/0.4.4 - .
161+
- [NPM v0.4.4] https://www.npmjs.com/package/@gleanwork/api-client/v/0.4.4 - .
162+
163+
## 2025-06-03 23:28:39
164+
### Changes
165+
Based on:
166+
- OpenAPI Doc
167+
- Speakeasy CLI 1.551.0 (2.610.0) https://github.com/speakeasy-api/speakeasy
168+
### Generated
169+
- [typescript v0.5.1] .
170+
### Releases
171+
- [NPM v0.5.1] https://www.npmjs.com/package/@gleanwork/api-client/v/0.5.1 - .

0 commit comments

Comments
 (0)