Skip to content

Commit 51784b6

Browse files
Merge pull request #117 from gleanwork/speakeasy-sdk-regen-1771467808
chore: 🐝 Update SDK - Generate 0.12.7
2 parents 591313c + 805b0d9 commit 51784b6

30 files changed

+670
-119
lines changed

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

Lines changed: 70 additions & 36 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
@@ -33,7 +33,7 @@ generation:
3333
generateNewTests: true
3434
skipResponseBodyAssertions: true
3535
python:
36-
version: 0.12.6
36+
version: 0.12.7
3737
additionalDependencies:
3838
dev: {}
3939
main: {}

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

Lines changed: 71 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ openapi: 3.0.0
22
info:
33
version: 0.9.0
44
title: Glean API
5-
x-source-commit-sha: c18dcdd4226ac90fc693febef0db4e2f85b66110
5+
x-source-commit-sha: 204dc378669e42116b8b928d58d5fddabb228aef
66
description: |
77
# Introduction
88
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.
@@ -22,7 +22,7 @@ info:
2222
These API clients provide type-safe, idiomatic interfaces for working with Glean IndexingAPIs in your language of choice.
2323
x-logo:
2424
url: https://app.glean.com/images/glean-text2.svg
25-
x-open-api-commit-sha: 8a421bb426d1efd54c918437077acb779a4ae87f
25+
x-open-api-commit-sha: 8a4d8a857ef07a135526624459142e85f9444ec2
2626
x-speakeasy-name: 'Glean API'
2727
servers:
2828
- url: https://{instance}-be.glean.com
@@ -363,6 +363,33 @@ paths:
363363
x-speakeasy-deprecation-message: "Deprecated on 2026-01-21, removal scheduled for 2026-10-15: Answer boards have been removed and this endpoint no longer serves a purpose"
364364
x-speakeasy-name-override: list
365365
x-speakeasy-group: client.answers
366+
/rest/api/v1/checkdatasourceauth:
367+
post:
368+
tags:
369+
- Authentication
370+
summary: Check datasource authorization
371+
description: |
372+
Returns all datasource instances that require per-user OAuth authorization
373+
for the authenticated user, along with a transient auth token that can be
374+
appended to auth URLs to complete OAuth flows.
375+
376+
Clients construct the full OAuth URL by combining the backend base URL,
377+
the `authUrlRelativePath` from each instance, and the transient auth token:
378+
`<backend>/<authUrlRelativePath>?transient_auth_token=<token>`.
379+
operationId: checkdatasourceauth
380+
x-visibility: Public
381+
parameters: []
382+
responses:
383+
"200":
384+
description: OK
385+
content:
386+
application/json:
387+
schema:
388+
$ref: "#/components/schemas/CheckDatasourceAuthResponse"
389+
"401":
390+
description: Not Authorized
391+
"429":
392+
description: Too Many Requests
366393
/rest/api/v1/createauthtoken:
367394
post:
368395
tags:
@@ -7305,6 +7332,48 @@ components:
73057332
items:
73067333
$ref: "#/components/schemas/AnswerResult"
73077334
description: List of answers with tracking tokens.
7335+
AuthStatus:
7336+
type: string
7337+
description: The per-user authorization status for a datasource.
7338+
enum:
7339+
- DISABLED
7340+
- AWAITING_AUTH
7341+
- AUTHORIZED
7342+
- STALE_OAUTH
7343+
- SEG_MIGRATION
7344+
x-enum-varnames:
7345+
- AUTH_STATUS_DISABLED
7346+
- AUTH_STATUS_AWAITING_AUTH
7347+
- AUTH_STATUS_AUTHORIZED
7348+
- AUTH_STATUS_STALE_OAUTH
7349+
- AUTH_STATUS_SEG_MIGRATION
7350+
UnauthorizedDatasourceInstance:
7351+
description: |
7352+
A datasource instance that could not return results for this request because the user has not completed or has expired per-user OAuth.
7353+
properties:
7354+
datasourceInstance:
7355+
type: string
7356+
description: |
7357+
The instance identifier (e.g. "github", "github_enterprise_0", "slack_0"). Matches the instance names used in datasource configuration.
7358+
example: slack_0
7359+
displayName:
7360+
type: string
7361+
description: Human-readable name of the datasource instance for display.
7362+
example: Slack
7363+
authStatus:
7364+
$ref: "#/components/schemas/AuthStatus"
7365+
authUrlRelativePath:
7366+
type: string
7367+
description: |
7368+
Relative path to initiate or resume OAuth for the current user and instance, including a one-time authentication token as a query parameter. Clients should prepend their configured Glean backend base URL.
7369+
CheckDatasourceAuthResponse:
7370+
properties:
7371+
unauthorizedDatasourceInstances:
7372+
type: array
7373+
description: |
7374+
Datasource instances that require per-user OAuth authorization. Empty or absent when all datasources are authorized.
7375+
items:
7376+
$ref: "#/components/schemas/UnauthorizedDatasourceInstance"
73087377
CreateAuthTokenResponse:
73097378
required:
73107379
- token
@@ -7850,40 +7919,6 @@ components:
78507919
stream:
78517920
type: boolean
78527921
description: If set, response lines will be streamed one-by-one as they become available. Each will be a ChatResponse, formatted as JSON, and separated by a new line. If false, the entire response will be returned at once. Note that if this is set and the model being used does not support streaming, the model's response will not be streamed, but other messages from the endpoint still will be.
7853-
AuthStatus:
7854-
type: string
7855-
description: The per-user authorization status for a datasource.
7856-
enum:
7857-
- DISABLED
7858-
- AWAITING_AUTH
7859-
- AUTHORIZED
7860-
- STALE_OAUTH
7861-
- SEG_MIGRATION
7862-
x-enum-varnames:
7863-
- AUTH_STATUS_DISABLED
7864-
- AUTH_STATUS_AWAITING_AUTH
7865-
- AUTH_STATUS_AUTHORIZED
7866-
- AUTH_STATUS_STALE_OAUTH
7867-
- AUTH_STATUS_SEG_MIGRATION
7868-
UnauthorizedDatasourceInstance:
7869-
description: |
7870-
A datasource instance that could not return results for this request because the user has not completed or has expired per-user OAuth.
7871-
properties:
7872-
datasourceInstance:
7873-
type: string
7874-
description: |
7875-
The instance identifier (e.g. "github", "github_enterprise_0", "slack_0"). Matches the instance names used in datasource configuration.
7876-
example: slack_0
7877-
displayName:
7878-
type: string
7879-
description: Human-readable name of the datasource instance for display.
7880-
example: Slack
7881-
authStatus:
7882-
$ref: "#/components/schemas/AuthStatus"
7883-
authUrlRelativePath:
7884-
type: string
7885-
description: |
7886-
Relative path to initiate or resume OAuth for the current user and instance. Clients should prepend their configured Glean backend base URL.
78877922
ChatResponse:
78887923
description: A single response from the /chat backend.
78897924
properties:

β€Ž.speakeasy/tests.arazzo.yamlβ€Ž

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158436,3 +158436,16 @@ workflows:
158436158436
type: simple
158437158437
x-speakeasy-test-group: Governance
158438158438
x-speakeasy-test-rebuild: true
158439+
- workflowId: checkdatasourceauth
158440+
steps:
158441+
- stepId: test
158442+
operationId: checkdatasourceauth
158443+
successCriteria:
158444+
- condition: $statusCode == 200
158445+
- condition: $response.header.Content-Type == application/json
158446+
- context: $response.body
158447+
condition: |
158448+
{"unauthorizedDatasourceInstances":[{"datasourceInstance":"slack_0","displayName":"Slack"}]}
158449+
type: simple
158450+
x-speakeasy-test-group: Authentication
158451+
x-speakeasy-test-rebuild: true

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
speakeasyVersion: 1.722.0
1+
speakeasyVersion: 1.722.7
22
sources:
33
Glean API:
44
sourceNamespace: glean-api-specs
5-
sourceRevisionDigest: sha256:a417495716018a416b8210f6cb830654e301e408cceb567b5c86f81d5211db79
6-
sourceBlobDigest: sha256:163203ddf3ff04235c0ee40e8ec377e1093ff290525e24b89dfd28248a4c331a
5+
sourceRevisionDigest: sha256:aa0a496396e723844c85b7713e2a2d9795a8e4c9bb8ad5f4119e1ff0b3f46fc1
6+
sourceBlobDigest: sha256:f052174bfef7ebd0efee80555a7ae4db9d3ba41118e726db87762ea1dbab1240
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1770751878
9+
- speakeasy-sdk-regen-1771467808
1010
Glean Client API:
1111
sourceNamespace: glean-client-api
1212
sourceRevisionDigest: sha256:4edc63ad559e4f2c9fb9ebf5edaaaaa9269f1874d271cfd84b441d6dacac43d2
@@ -17,10 +17,10 @@ targets:
1717
glean:
1818
source: Glean API
1919
sourceNamespace: glean-api-specs
20-
sourceRevisionDigest: sha256:a417495716018a416b8210f6cb830654e301e408cceb567b5c86f81d5211db79
21-
sourceBlobDigest: sha256:163203ddf3ff04235c0ee40e8ec377e1093ff290525e24b89dfd28248a4c331a
20+
sourceRevisionDigest: sha256:aa0a496396e723844c85b7713e2a2d9795a8e4c9bb8ad5f4119e1ff0b3f46fc1
21+
sourceBlobDigest: sha256:f052174bfef7ebd0efee80555a7ae4db9d3ba41118e726db87762ea1dbab1240
2222
codeSamplesNamespace: glean-api-specs-python-code-samples
23-
codeSamplesRevisionDigest: sha256:062a7cca9f90a2135844881a40ebb2f3b6acc93274dec64146a96a4d72f481cb
23+
codeSamplesRevisionDigest: sha256:f23770fa56fb7f38298e39c6a50f878d2ac7f7b136e13a173c7e74927bee3cd0
2424
workflow:
2525
workflowVersion: 1.0.0
2626
speakeasyVersion: latest

β€ŽREADME.mdβ€Ž

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,10 @@ For more information on obtaining the appropriate token type, please contact you
337337
<details open>
338338
<summary>Available methods</summary>
339339

340+
### [Authentication](docs/sdks/authentication/README.md)
341+
342+
* [checkdatasourceauth](docs/sdks/authentication/README.md#checkdatasourceauth) - Check datasource authorization
343+
340344
### [Client.Activity](docs/sdks/clientactivity/README.md)
341345

342346
* [report](docs/sdks/clientactivity/README.md#report) - Report document activity

β€ŽRELEASES.mdβ€Ž

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,4 +568,14 @@ Based on:
568568
### Generated
569569
- [python v0.12.6] .
570570
### Releases
571-
- [PyPI v0.12.6] https://pypi.org/project/glean-api-client/0.12.6 - .
571+
- [PyPI v0.12.6] https://pypi.org/project/glean-api-client/0.12.6 - .
572+
573+
## 2026-02-19 15:47:56
574+
### Changes
575+
Based on:
576+
- OpenAPI Doc
577+
- Speakeasy CLI 1.722.7 (2.832.9) https://github.com/speakeasy-api/speakeasy
578+
### Generated
579+
- [python v0.12.7] .
580+
### Releases
581+
- [PyPI v0.12.7] https://pypi.org/project/glean-api-client/0.12.7 - .
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# CheckDatasourceAuthResponse
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
8+
| `unauthorized_datasource_instances` | List[[models.UnauthorizedDatasourceInstance](../models/unauthorizeddatasourceinstance.md)] | :heavy_minus_sign: | Datasource instances that require per-user OAuth authorization. Empty or absent when all datasources are authorized.<br/> |

0 commit comments

Comments
Β (0)