Skip to content

Commit c2ff518

Browse files
Merge pull request #104 from gleanwork/speakeasy-sdk-regen-1783459419
chore: 🐝 Update SDK - Generate 0.14.2
2 parents 176b577 + 308cb91 commit c2ff518

42 files changed

Lines changed: 3431 additions & 63 deletions

Some content is hidden

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

β€Ž.speakeasy/gen.lockβ€Ž

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

β€Ž.speakeasy/gen.yamlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ generation:
3030
generateNewTests: false
3131
skipResponseBodyAssertions: false
3232
java:
33-
version: 0.14.1
33+
version: 0.14.2
3434
additionalDependencies: []
3535
additionalPlugins: []
3636
artifactID: glean-api-client

β€Ž.speakeasy/glean-merged-spec.yamlβ€Ž

Lines changed: 196 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ openapi: 3.0.0
22
info:
33
version: "0.9.0"
44
title: Glean API
5-
x-source-commit-sha: 33bf057cf0f948a83126e81582717aebdb622bfa
6-
x-open-api-commit-sha: 4f3a4abf8f003a4edc5522021b22184c76d051ad
5+
x-source-commit-sha: 9bca005a03d53a6cd35c7439b108282c26317ff8
6+
x-open-api-commit-sha: 3e78c99c64ab425b90a0037362be06f26a91458b
77
description: |
88
# Introduction
99
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.
@@ -2973,6 +2973,89 @@ paths:
29732973
required: true
29742974
schema:
29752975
type: string
2976+
/rest/api/v1/tool-servers/{serverId}/auth:
2977+
get:
2978+
operationId: getToolServerAuthStatus
2979+
summary: Get end-user authentication status for a tool server.
2980+
description: |
2981+
Returns display information and the calling user's current authentication status
2982+
for the specified tool server.
2983+
tags:
2984+
- Tools
2985+
security:
2986+
- APIToken: []
2987+
responses:
2988+
"200":
2989+
description: Successful operation
2990+
content:
2991+
application/json:
2992+
schema:
2993+
$ref: '#/components/schemas/ToolServerAuthStatusResponse'
2994+
"400":
2995+
description: Bad Request
2996+
"401":
2997+
description: Unauthorized
2998+
"404":
2999+
description: Tool server not found
3000+
"429":
3001+
description: Too Many Requests
3002+
x-visibility: Preview
3003+
x-glean-experimental:
3004+
id: 52fde6ec-c18b-4de6-b761-f82008542ae7
3005+
introduced: "2026-07-02"
3006+
x-speakeasy-name-override: retrieveToolServerAuthStatus
3007+
x-speakeasy-group: client.tools
3008+
post:
3009+
operationId: authorizeToolServer
3010+
summary: Start the OAuth authorization flow for a tool server.
3011+
description: |
3012+
Initiates the third-party OAuth flow for the specified tool server and returns the
3013+
authorization URL that the client should navigate the end user to. After the OAuth
3014+
callback completes, the user's browser is redirected back to `returnUrl` with query
3015+
parameters indicating the result.
3016+
3017+
`returnUrl` must match the tenant's configured return URL allowlist; otherwise the
3018+
request is rejected with 400.
3019+
tags:
3020+
- Tools
3021+
security:
3022+
- APIToken: []
3023+
requestBody:
3024+
content:
3025+
application/json:
3026+
schema:
3027+
$ref: '#/components/schemas/AuthorizeToolServerRequest'
3028+
required: true
3029+
responses:
3030+
"200":
3031+
description: Successful operation
3032+
content:
3033+
application/json:
3034+
schema:
3035+
$ref: '#/components/schemas/AuthorizeToolServerResponse'
3036+
"400":
3037+
description: Invalid request (e.g. returnUrl not in allowlist, unsupported auth type)
3038+
"401":
3039+
description: Unauthorized
3040+
"403":
3041+
description: User not entitled to the tool server
3042+
"404":
3043+
description: Tool server not found
3044+
"429":
3045+
description: Too Many Requests
3046+
x-visibility: Preview
3047+
x-glean-experimental:
3048+
id: 1935476e-ecaf-4c1f-a9fd-1e768cf68f30
3049+
introduced: "2026-07-02"
3050+
x-speakeasy-name-override: authorizeToolServer
3051+
x-speakeasy-group: client.tools
3052+
parameters:
3053+
- name: serverId
3054+
in: path
3055+
description: Unique identifier of the tool server.
3056+
required: true
3057+
schema:
3058+
type: string
29763059
/api/index/v1/indexdocument:
29773060
post:
29783061
summary: Index document
@@ -5091,6 +5174,67 @@ components:
50915174
- rate_limit_exceeded
50925175
- internal_error
50935176
- service_unavailable
5177+
x-glean-problem-detail-codes:
5178+
invalid_request:
5179+
status: 400
5180+
title: Invalid Request
5181+
missing_required_field:
5182+
status: 400
5183+
title: Missing Required Field
5184+
invalid_parameter:
5185+
status: 400
5186+
title: Invalid Parameter
5187+
invalid_cursor:
5188+
status: 400
5189+
title: Invalid Pagination Cursor
5190+
expired_cursor:
5191+
status: 400
5192+
title: Expired Pagination Cursor
5193+
invalid_filter:
5194+
status: 400
5195+
title: Invalid Filter
5196+
invalid_datasource:
5197+
status: 400
5198+
title: Invalid Datasource
5199+
authentication_required:
5200+
status: 401
5201+
title: Authentication Required
5202+
token_expired:
5203+
status: 401
5204+
title: Token Expired
5205+
insufficient_permissions:
5206+
status: 403
5207+
title: Insufficient Permissions
5208+
resource_not_found:
5209+
status: 404
5210+
title: Resource Not Found
5211+
method_not_allowed:
5212+
status: 405
5213+
title: Method Not Allowed
5214+
request_timeout:
5215+
status: 408
5216+
title: Request Timeout
5217+
request_too_large:
5218+
status: 413
5219+
title: Request Too Large
5220+
conflict:
5221+
status: 409
5222+
title: Conflict
5223+
gone:
5224+
status: 410
5225+
title: Gone
5226+
unprocessable_query:
5227+
status: 422
5228+
title: Unprocessable Query
5229+
rate_limit_exceeded:
5230+
status: 429
5231+
title: Rate Limit Exceeded
5232+
internal_error:
5233+
status: 500
5234+
title: Internal Error
5235+
service_unavailable:
5236+
status: 503
5237+
title: Service Unavailable
50945238
example: invalid_cursor
50955239
PlatformProblemDetailError:
50965240
type: object
@@ -5125,7 +5269,7 @@ components:
51255269
type: string
51265270
format: uri
51275271
description: URI identifying the error type.
5128-
example: https://developer.glean.com/errors/invalid-cursor
5272+
example: https://developers.glean.com/errors/invalid-cursor
51295273
title:
51305274
type: string
51315275
description: Short, human-readable summary of the error.
@@ -5145,7 +5289,7 @@ components:
51455289
type: string
51465290
format: uri
51475291
description: Direct URL to documentation for this error code.
5148-
example: https://developer.glean.com/errors/invalid-cursor
5292+
example: https://developers.glean.com/errors/invalid-cursor
51495293
request_id:
51505294
type: string
51515295
description: Platform-generated request ID for support correlation.
@@ -11970,6 +12114,7 @@ components:
1197012114
- DEMO_CARD
1197112115
- OOO_PLANNER
1197212116
- OOO_CATCH_UP
12117+
- ADMIN_HEALTH_CENTER
1197312118
description: Categories of content requested. An allowlist gives flexibility to request content separately or together.
1197412119
requestOptions:
1197512120
$ref: '#/components/schemas/FeedRequestOptions'
@@ -12413,6 +12558,7 @@ components:
1241312558
- DEMO_CARD
1241412559
- OOO_PLANNER
1241512560
- OOO_CATCH_UP
12561+
- ADMIN_HEALTH_CENTER
1241612562
description: Type of the justification.
1241712563
justification:
1241812564
type: string
@@ -12502,6 +12648,7 @@ components:
1250212648
- DEMO_CARD
1250312649
- OOO_PLANNER
1250412650
- OOO_CATCH_UP
12651+
- ADMIN_HEALTH_CENTER
1250512652
description: Category of the result, one of the requested categories in incoming request.
1250612653
primaryEntry:
1250712654
$ref: '#/components/schemas/FeedEntry'
@@ -13135,6 +13282,51 @@ components:
1313513282
After the user consents, control returns to `returnUrl` from the request.
1313613283
required:
1313713284
- redirectUrl
13285+
ToolServerAuthStatus:
13286+
type: string
13287+
enum:
13288+
- AWAITING_AUTH
13289+
- AUTHORIZED
13290+
description: Authentication status for the calling user.
13291+
ToolServerAuthStatusResponse:
13292+
type: object
13293+
properties:
13294+
displayName:
13295+
type: string
13296+
description: Human-readable name of the tool server.
13297+
logoUrl:
13298+
type: string
13299+
description: Logo URL for the tool server.
13300+
description:
13301+
type: string
13302+
description: Brief description of the tool server.
13303+
authStatus:
13304+
$ref: '#/components/schemas/ToolServerAuthStatus'
13305+
authType:
13306+
$ref: '#/components/schemas/ActionAuthType'
13307+
required:
13308+
- authStatus
13309+
- authType
13310+
AuthorizeToolServerRequest:
13311+
type: object
13312+
properties:
13313+
returnUrl:
13314+
type: string
13315+
description: |
13316+
URL to redirect the end user's browser back to after the OAuth flow completes.
13317+
Must be present in the tenant's configured return URL allowlist.
13318+
required:
13319+
- returnUrl
13320+
AuthorizeToolServerResponse:
13321+
type: object
13322+
properties:
13323+
authorizationUrl:
13324+
type: string
13325+
description: |
13326+
URL that the client should navigate the end user to in order to begin the OAuth flow.
13327+
After the user consents, control returns to `returnUrl` from the request.
13328+
required:
13329+
- authorizationUrl
1313813330
IndexDocumentRequest:
1313913331
type: object
1314013332
properties:

β€Ž.speakeasy/workflow.lockβ€Ž

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
speakeasyVersion: 1.788.1
1+
speakeasyVersion: 1.789.0
22
sources:
33
Glean API:
44
sourceNamespace: glean-api-specs
5-
sourceRevisionDigest: sha256:8b1b5374e6d5c2f98bc7cddfa619249cd150deba48f6c8b9f2637f723ff73fd2
6-
sourceBlobDigest: sha256:3373213fc1a05b08aad1cf828d00ce46e1da651645fc1ccde24fcdf3efca5861
5+
sourceRevisionDigest: sha256:839e533953fafea59d265ca71200c49694d691be9d2e47d1847e7b71b826924f
6+
sourceBlobDigest: sha256:c74b95bc3857693d978d52f69c270a7a07343bfb4f4c7e2dc5e1307f2050608d
77
tags:
88
- latest
99
Glean-OAS:
@@ -17,10 +17,10 @@ targets:
1717
glean:
1818
source: Glean API
1919
sourceNamespace: glean-api-specs
20-
sourceRevisionDigest: sha256:8b1b5374e6d5c2f98bc7cddfa619249cd150deba48f6c8b9f2637f723ff73fd2
21-
sourceBlobDigest: sha256:3373213fc1a05b08aad1cf828d00ce46e1da651645fc1ccde24fcdf3efca5861
20+
sourceRevisionDigest: sha256:839e533953fafea59d265ca71200c49694d691be9d2e47d1847e7b71b826924f
21+
sourceBlobDigest: sha256:c74b95bc3857693d978d52f69c270a7a07343bfb4f4c7e2dc5e1307f2050608d
2222
codeSamplesNamespace: glean-api-specs-java-code-samples
23-
codeSamplesRevisionDigest: sha256:713711a5b88810de0879edfcecf73df581b5ea9ab28b53ae2b1200c87d0a1cdb
23+
codeSamplesRevisionDigest: sha256:8cbab7bee9110f35b7e85c591c78ee9963ca34c3d52ef5191d33a4d4caaf598d
2424
workflow:
2525
workflowVersion: 1.0.0
2626
speakeasyVersion: latest

β€ŽREADME.mdβ€Ž

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@ The samples below show how a published SDK artifact is used:
6767

6868
Gradle:
6969
```groovy
70-
implementation 'com.glean.api-client:glean-api-client:0.14.1'
70+
implementation 'com.glean.api-client:glean-api-client:0.14.2'
7171
```
7272

7373
Maven:
7474
```xml
7575
<dependency>
7676
<groupId>com.glean.api-client</groupId>
7777
<artifactId>glean-api-client</artifactId>
78-
<version>0.14.1</version>
78+
<version>0.14.2</version>
7979
</dependency>
8080
```
8181

@@ -517,6 +517,8 @@ For more information on obtaining the appropriate token type, please contact you
517517
* [run](docs/sdks/tools/README.md#run) - Execute the specified tool
518518
* [retrieveActionPackAuthStatus](docs/sdks/tools/README.md#retrieveactionpackauthstatus) - Get end-user authentication status for an action pack.
519519
* [authorizeActionPack](docs/sdks/tools/README.md#authorizeactionpack) - Start the OAuth authorization flow for an action pack.
520+
* [retrieveToolServerAuthStatus](docs/sdks/tools/README.md#retrievetoolserverauthstatus) - Get end-user authentication status for a tool server.
521+
* [authorizeToolServer](docs/sdks/tools/README.md#authorizetoolserver) - Start the OAuth authorization flow for a tool server.
520522

521523
### [Client.Verification](docs/sdks/verification/README.md)
522524

@@ -705,11 +707,11 @@ public class Application {
705707
many more subclasses in the JDK platform).
706708

707709
**Inherit from [`GleanError`](./src/main/java/models/errors/GleanError.java)**:
708-
* [`com.glean.api_client.glean_api_client.models.errors.ErrorResponse`](./src/main/java/models/errors/com.glean.api_client.glean_api_client.models.errors.ErrorResponse.java): Error response returned for failed requests. Applicable to 9 of 135 methods.*
709-
* [`com.glean.api_client.glean_api_client.models.errors.PlatformProblemDetailException`](./src/main/java/models/errors/com.glean.api_client.glean_api_client.models.errors.PlatformProblemDetailException.java): Error response following RFC 9457, extended with `code` and `documentation_url` for machine-readable classification and self-service remediation. Applicable to 5 of 135 methods.*
710-
* [`com.glean.api_client.glean_api_client.models.errors.ErrorInfoResponse`](./src/main/java/models/errors/com.glean.api_client.glean_api_client.models.errors.ErrorInfoResponse.java): Error response for custom metadata operations. Applicable to 5 of 135 methods.*
711-
* [`com.glean.api_client.glean_api_client.models.errors.CollectionError`](./src/main/java/models/errors/com.glean.api_client.glean_api_client.models.errors.CollectionError.java): Semantic error. Status code `422`. Applicable to 3 of 135 methods.*
712-
* [`com.glean.api_client.glean_api_client.models.errors.GleanDataError`](./src/main/java/models/errors/com.glean.api_client.glean_api_client.models.errors.GleanDataError.java): Forbidden. Applicable to 2 of 135 methods.*
710+
* [`com.glean.api_client.glean_api_client.models.errors.ErrorResponse`](./src/main/java/models/errors/com.glean.api_client.glean_api_client.models.errors.ErrorResponse.java): Error response returned for failed requests. Applicable to 9 of 137 methods.*
711+
* [`com.glean.api_client.glean_api_client.models.errors.PlatformProblemDetailException`](./src/main/java/models/errors/com.glean.api_client.glean_api_client.models.errors.PlatformProblemDetailException.java): Error response following RFC 9457, extended with `code` and `documentation_url` for machine-readable classification and self-service remediation. Applicable to 5 of 137 methods.*
712+
* [`com.glean.api_client.glean_api_client.models.errors.ErrorInfoResponse`](./src/main/java/models/errors/com.glean.api_client.glean_api_client.models.errors.ErrorInfoResponse.java): Error response for custom metadata operations. Applicable to 5 of 137 methods.*
713+
* [`com.glean.api_client.glean_api_client.models.errors.CollectionError`](./src/main/java/models/errors/com.glean.api_client.glean_api_client.models.errors.CollectionError.java): Semantic error. Status code `422`. Applicable to 3 of 137 methods.*
714+
* [`com.glean.api_client.glean_api_client.models.errors.GleanDataError`](./src/main/java/models/errors/com.glean.api_client.glean_api_client.models.errors.GleanDataError.java): Forbidden. Applicable to 2 of 137 methods.*
713715

714716

715717
</details>

β€ŽRELEASES.mdβ€Ž

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,4 +778,14 @@ Based on:
778778
### Generated
779779
- [java v0.14.1] .
780780
### Releases
781-
- [Maven Central v0.14.1] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.14.1 - .
781+
- [Maven Central v0.14.1] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.14.1 - .
782+
783+
## 2026-07-08 03:28:12
784+
### Changes
785+
Based on:
786+
- OpenAPI Doc
787+
- Speakeasy CLI 1.789.0 (2.916.2) https://github.com/speakeasy-api/speakeasy
788+
### Generated
789+
- [java v0.14.2] .
790+
### Releases
791+
- [Maven Central v0.14.2] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.14.2 - .
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# AuthorizeToolServerRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ |
8+
| `returnUrl` | *String* | :heavy_check_mark: | URL to redirect the end user's browser back to after the OAuth flow completes.<br/>Must be present in the tenant's configured return URL allowlist.<br/> |
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# AuthorizeToolServerResponse
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
8+
| `authorizationUrl` | *String* | :heavy_check_mark: | URL that the client should navigate the end user to in order to begin the OAuth flow.<br/>After the user consents, control returns to `returnUrl` from the request.<br/> |

0 commit comments

Comments
Β (0)