Skip to content

Commit 0901ee2

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.555.2
1 parent e682484 commit 0901ee2

Some content is hidden

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

54 files changed

+1287
-704
lines changed

.speakeasy/gen.lock

Lines changed: 37 additions & 40 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
@@ -4,6 +4,7 @@ generation:
44
maintainOpenAPIOrder: true
55
usageSnippets:
66
optionalPropertyRendering: withExample
7+
sdkInitStyle: constructor
78
useClassNamesForArrayFields: true
89
fixes:
910
nameResolutionDec2023: true
@@ -16,7 +17,7 @@ generation:
1617
oAuth2ClientCredentialsEnabled: true
1718
oAuth2PasswordEnabled: true
1819
java:
19-
version: 0.4.4
20+
version: 0.5.0
2021
additionalDependencies: []
2122
additionalPlugins: []
2223
artifactID: glean-api-client

.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-
email: support@glean.com
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: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
speakeasyVersion: 1.551.0
1+
speakeasyVersion: 1.555.2
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-1748051799
9+
- speakeasy-sdk-regen-1748397732
1010
Glean-OAS:
1111
sourceNamespace: glean-oas
1212
sourceRevisionDigest: sha256:8841834dd58ddd4e2dcf98fc90fbd06fbf3626a29df941503cce55b9548a5317
@@ -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-java-code-samples
24-
codeSamplesRevisionDigest: sha256:cdad980eaff34947a515e5c323f3f725f6f885ccb27292f152c4f37f34ad741c
24+
codeSamplesRevisionDigest: sha256:25e0dc06c9cfa9a9001c39331f30c0600f04aad5dc0009e5adc6664a36a48716
2525
workflow:
2626
workflowVersion: 1.0.0
2727
speakeasyVersion: latest

README.md

Lines changed: 15 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@ The samples below show how a published SDK artifact is used:
6262

6363
Gradle:
6464
```groovy
65-
implementation 'com.glean.api-client:glean-api-client:0.4.4'
65+
implementation 'com.glean.api-client:glean-api-client:0.5.0'
6666
```
6767

6868
Maven:
6969
```xml
7070
<dependency>
7171
<groupId>com.glean.api-client</groupId>
7272
<artifactId>glean-api-client</artifactId>
73-
<version>0.4.4</version>
73+
<version>0.5.0</version>
7474
</dependency>
7575
```
7676

@@ -199,9 +199,9 @@ public class Application {
199199

200200
This SDK supports the following security scheme globally:
201201

202-
| Name | Type | Scheme |
203-
| ---------- | ---- | ----------- |
204-
| `apiToken` | http | HTTP Bearer |
202+
| Name | Type | Scheme | Environment Variable |
203+
| ---------- | ---- | ----------- | -------------------- |
204+
| `apiToken` | http | HTTP Bearer | `GLEAN_API_TOKEN` |
205205

206206
To authenticate with the API the `apiToken` parameter must be set when initializing the SDK client instance. For example:
207207
```java
@@ -363,31 +363,24 @@ For more information on obtaining the appropriate token type, please contact you
363363
* [list](docs/sdks/entities/README.md#list) - List entities
364364
* [readPeople](docs/sdks/entities/README.md#readpeople) - Read people
365365

366-
367-
#### [client().governance().data()](docs/sdks/data/README.md)
368-
369-
370366
#### [client().governance().data().policies()](docs/sdks/policies/README.md)
371367

372-
* [retrieve](docs/sdks/policies/README.md#retrieve) - Gets specified Policy.
373-
* [update](docs/sdks/policies/README.md#update) - Updates an existing policy.
374-
* [list](docs/sdks/policies/README.md#list) - Lists policies.
375-
* [create](docs/sdks/policies/README.md#create) - Creates new policy.
376-
* [download](docs/sdks/policies/README.md#download) - Downloads violations CSV for policy.
368+
* [retrieve](docs/sdks/policies/README.md#retrieve) - Gets specified policy
369+
* [update](docs/sdks/policies/README.md#update) - Updates an existing policy
370+
* [list](docs/sdks/policies/README.md#list) - Lists policies
371+
* [create](docs/sdks/policies/README.md#create) - Creates new policy
372+
* [download](docs/sdks/policies/README.md#download) - Downloads violations CSV for policy
377373

378374
#### [client().governance().data().reports()](docs/sdks/reports/README.md)
379375

380-
* [create](docs/sdks/reports/README.md#create) - Creates new one-time report.
381-
* [download](docs/sdks/reports/README.md#download) - Downloads violations CSV for report.
382-
* [status](docs/sdks/reports/README.md#status) - Fetches report run status.
383-
384-
#### [client().governance().documents()](docs/sdks/governancedocuments/README.md)
385-
376+
* [create](docs/sdks/reports/README.md#create) - Creates new one-time report
377+
* [download](docs/sdks/reports/README.md#download) - Downloads violations CSV for report
378+
* [status](docs/sdks/reports/README.md#status) - Fetches report run status
386379

387380
#### [client().governance().documents().visibilityoverrides()](docs/sdks/visibilityoverrides/README.md)
388381

389-
* [list](docs/sdks/visibilityoverrides/README.md#list) - Fetches documents visibility.
390-
* [create](docs/sdks/visibilityoverrides/README.md#create) - Hide/Un-hide docs.
382+
* [list](docs/sdks/visibilityoverrides/README.md#list) - Fetches documents visibility
383+
* [create](docs/sdks/visibilityoverrides/README.md#create) - Hide or unhide docs
391384

392385
#### [client().insights()](docs/sdks/insights/README.md)
393386

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,14 @@ Based on:
8888
### Generated
8989
- [java v0.4.4] .
9090
### Releases
91-
- [Maven Central v0.4.4] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.4.4 - .
91+
- [Maven Central v0.4.4] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.4.4 - .
92+
93+
## 2025-06-03 23:28:09
94+
### Changes
95+
Based on:
96+
- OpenAPI Doc
97+
- Speakeasy CLI 1.555.2 (2.620.2) https://github.com/speakeasy-api/speakeasy
98+
### Generated
99+
- [java v0.5.0] .
100+
### Releases
101+
- [Maven Central v0.5.0] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.5.0 - .

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ publishing {
103103
// https://github.com/gradle/gradle/issues/18619
104104
groupId = "com.glean.api-client"
105105
artifactId = "glean-api-client"
106-
version = "0.4.4"
106+
version = "0.5.0"
107107

108108
from components.java
109109

docs/models/components/AgentRun.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Payload for creating a run.
77

88
| Field | Type | Required | Description |
99
| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
10-
| `agentId` | *Optional\<String>* | :heavy_minus_sign: | The ID of the agent to run. |
10+
| `agentId` | *String* | :heavy_check_mark: | The ID of the agent to run. |
1111
| `input` | Map\<String, *Object*> | :heavy_minus_sign: | The input to the agent. |
1212
| `messages` | List\<[Message](../../models/components/Message.md)> | :heavy_minus_sign: | The messages to pass an input to the agent. |
1313
| `status` | [Optional\<AgentExecutionStatus>](../../models/components/AgentExecutionStatus.md) | :heavy_minus_sign: | The status of the run. One of 'error', 'success'. |

docs/models/components/AgentRunCreate.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ Payload for creating a run.
77

88
| Field | Type | Required | Description |
99
| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- |
10-
| `agentId` | *Optional\<String>* | :heavy_minus_sign: | The ID of the agent to run. |
10+
| `agentId` | *String* | :heavy_check_mark: | The ID of the agent to run. |
1111
| `input` | Map\<String, *Object*> | :heavy_minus_sign: | The input to the agent. |
1212
| `messages` | List\<[Message](../../models/components/Message.md)> | :heavy_minus_sign: | The messages to pass an input to the agent. |

0 commit comments

Comments
 (0)