Skip to content

Commit 20d6637

Browse files
Merge pull request #118 from gleanwork/speakeasy-sdk-regen-1771525162
chore: 🐝 Update SDK - Generate 0.12.8
2 parents 51784b6 + 395e561 commit 20d6637

File tree

12 files changed

+70
-77
lines changed

12 files changed

+70
-77
lines changed

.speakeasy/gen.lock

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
lockVersion: 2.0.0
22
id: 3e3290ca-0ee8-4981-b1bc-14536048fa63
33
management:
4-
docChecksum: e61f09454154d7eb019991c03f6d19eb
4+
docChecksum: 168d09185da75c45f6edca32cb2bc2dd
55
docVersion: 0.9.0
66
speakeasyVersion: 1.722.7
77
generationVersion: 2.832.9
8-
releaseVersion: 0.12.7
9-
configChecksum: 8aebd542e0622973cae358ece93487de
8+
releaseVersion: 0.12.8
9+
configChecksum: 50bf621427a8287d9ca62293e512f86a
1010
repoURL: https://github.com/gleanwork/api-client-python.git
1111
installationURL: https://github.com/gleanwork/api-client-python.git
1212
published: true
1313
persistentEdits:
14-
generation_id: 14a6d36a-77ef-4a8e-8cd9-f7a1c0dc8bcb
15-
pristine_commit_hash: 0e7f43da90541b2445d05211577217c1bab49f5f
16-
pristine_tree_hash: 5319dfb5aff7a24b5c67c68b76d1baf663ce8139
14+
generation_id: bcf8dca0-d5eb-40ce-a204-2aa32fe24c88
15+
pristine_commit_hash: 41297bcf79da7abf5156c3d09490fd4236aff892
16+
pristine_tree_hash: 639a9981217f2ac59f39e86a5e053a64e33f9fbe
1717
features:
1818
python:
1919
additionalDependencies: 1.0.0
@@ -451,8 +451,8 @@ trackedFiles:
451451
pristine_git_object: f003c186b000ff51b939282191e5d42e08e06f7b
452452
docs/models/checkdatasourceauthresponse.md:
453453
id: c4214ea019e2
454-
last_write_checksum: sha1:ede1e2ca7769edf83659cc1dfe2d2e1de2de6c1d
455-
pristine_git_object: b1ea62b7cc4e3bed1c5e1715ccd8fbdf3d01331e
454+
last_write_checksum: sha1:0cb03f6f8262685c2963aee29986841a38b6548a
455+
pristine_git_object: be60699cc5a111d76b214d6f28642c7e79c6a806
456456
docs/models/checkdocumentaccessrequest.md:
457457
id: 7e17285c9fb1
458458
last_write_checksum: sha1:40cc7d27e54e5aca99ebaa24670579d312b9252c
@@ -2735,8 +2735,8 @@ trackedFiles:
27352735
pristine_git_object: e2fda7fe263c2a111e53872e3ad5bc324b4dccfe
27362736
pyproject.toml:
27372737
id: 5d07e7d72637
2738-
last_write_checksum: sha1:8e7869a84ec05f482a7e02eb3ac7c4e268dfdfc6
2739-
pristine_git_object: 1697f7e0b295af2f4094232e666e9eff6a4d4d80
2738+
last_write_checksum: sha1:cd9618a071dc65e548c604011f7922a19bd4e112
2739+
pristine_git_object: 358810d2a9d3bd25e6fbe61eaab9cc0c6b9e374c
27402740
scripts/prepare_readme.py:
27412741
id: e0c5957a6035
27422742
last_write_checksum: sha1:c2c83f71dea61eb50c9e05da83b16d18b4da8794
@@ -2763,8 +2763,8 @@ trackedFiles:
27632763
pristine_git_object: 58c4d70ac1797b86ff5c4237cafbc344c42d8f64
27642764
src/glean/api_client/_version.py:
27652765
id: 0ce22b26136b
2766-
last_write_checksum: sha1:ad364a656d38e32a1c1a528364700f94839986ab
2767-
pristine_git_object: 0cba552d2edd6eeb52410ef1a127271395525a0e
2766+
last_write_checksum: sha1:1e660e8b70d98a8dc857edd2b64e505881b58095
2767+
pristine_git_object: ff2fde5492a4ff878e3ea49923b2f26af789a187
27682768
src/glean/api_client/agents.py:
27692769
id: b925701a9217
27702770
last_write_checksum: sha1:c1688c3d141db7707458f3ac7ff29c4a71e6812b
@@ -3199,8 +3199,8 @@ trackedFiles:
31993199
pristine_git_object: f4a630c009419f6f9144d393a808957c75b1eb3c
32003200
src/glean/api_client/models/checkdatasourceauthresponse.py:
32013201
id: 4b92648bff66
3202-
last_write_checksum: sha1:6b448e1f738f635983ab023658febd17d68f36bf
3203-
pristine_git_object: 3a043334e052e58c3ad73c407ec235556034208d
3202+
last_write_checksum: sha1:383e77b55a1ef1d8a4014954daacecefabb594e1
3203+
pristine_git_object: 23a67c29ffa76ce2ab3a08554fd16045f5325512
32043204
src/glean/api_client/models/checkdocumentaccessrequest.py:
32053205
id: 8ae1352111ea
32063206
last_write_checksum: sha1:5c9a03c342cc40cf9618527f4802af3d9a4a49cd
@@ -5144,7 +5144,7 @@ trackedFiles:
51445144
tests/mockserver/internal/handler/pathpostrestapiv1createauthtoken.go:
51455145
last_write_checksum: sha1:6ce83ba03066acb436796c018d19715615f548c1
51465146
tests/mockserver/internal/handler/pathpostrestapiv1createcollection.go:
5147-
last_write_checksum: sha1:14b4a1d98dd55ce2b487ae1aaab4a7dece08df25
5147+
last_write_checksum: sha1:f9f4c718408bddadbdf826194f07970bb111e57e
51485148
tests/mockserver/internal/handler/pathpostrestapiv1createshortcut.go:
51495149
last_write_checksum: sha1:dcdf684a85e20db1aee571db9a54a3ee259d71d5
51505150
tests/mockserver/internal/handler/pathpostrestapiv1deleteallchats.go:
@@ -5178,7 +5178,7 @@ trackedFiles:
51785178
tests/mockserver/internal/handler/pathpostrestapiv1getanswer.go:
51795179
last_write_checksum: sha1:3bec6f7cd190f9394bebac2407f9d7f1e606e479
51805180
tests/mockserver/internal/handler/pathpostrestapiv1getchat.go:
5181-
last_write_checksum: sha1:2c2b7acb22e422a721a21801cccfa30fedfd3169
5181+
last_write_checksum: sha1:089475adb3686c656bd0eb52940285a7e037ab83
51825182
tests/mockserver/internal/handler/pathpostrestapiv1getchatapplication.go:
51835183
last_write_checksum: sha1:7b81898137fdb3a89b4dcfa318b9b5b92e8860c0
51845184
tests/mockserver/internal/handler/pathpostrestapiv1getchatfiles.go:
@@ -5384,7 +5384,7 @@ trackedFiles:
53845384
tests/mockserver/internal/sdk/models/components/chatzerostatesuggestionoptions.go:
53855385
last_write_checksum: sha1:da633547681ec1c8ef5df79cc1d2919fb3714d13
53865386
tests/mockserver/internal/sdk/models/components/checkdatasourceauthresponse.go:
5387-
last_write_checksum: sha1:caa976ebc0e76d521725d4dd83e17c840842fd9a
5387+
last_write_checksum: sha1:e99e71069a2dee200904ebf2457ee9853b1777b4
53885388
tests/mockserver/internal/sdk/models/components/checkdocumentaccessrequest.go:
53895389
last_write_checksum: sha1:4b403181de5f24bde26d022703e625a832f685c8
53905390
tests/mockserver/internal/sdk/models/components/checkdocumentaccessresponse.go:
@@ -7398,7 +7398,7 @@ generatedTests:
73987398
checkdatasourceauth: "2026-02-19T15:48:52Z"
73997399
releaseNotes: |
74007400
## Python SDK Changes:
7401-
* `glean.authentication.checkdatasourceauth()`: **Added**
7401+
* `glean.authentication.checkdatasourceauth()`: `response.unauthorized_datasource_instances` **Changed**
74027402
generatedFiles:
74037403
- .devcontainer/README.md
74047404
- .devcontainer/devcontainer.json

.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.7
36+
version: 0.12.8
3737
additionalDependencies:
3838
dev: {}
3939
main: {}

.speakeasy/glean-merged-spec.yaml

Lines changed: 5 additions & 3 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: 204dc378669e42116b8b928d58d5fddabb228aef
5+
x-source-commit-sha: 56c08697ca3b6869022a262114e61f1385914425
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: 8a4d8a857ef07a135526624459142e85f9444ec2
25+
x-open-api-commit-sha: daa8736a6f0763faffd2c1079da8a42345536ed7
2626
x-speakeasy-name: 'Glean API'
2727
servers:
2828
- url: https://{instance}-be.glean.com
@@ -7367,11 +7367,13 @@ components:
73677367
description: |
73687368
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.
73697369
CheckDatasourceAuthResponse:
7370+
required:
7371+
- unauthorizedDatasourceInstances
73707372
properties:
73717373
unauthorizedDatasourceInstances:
73727374
type: array
73737375
description: |
7374-
Datasource instances that require per-user OAuth authorization. Empty or absent when all datasources are authorized.
7376+
Datasource instances that require per-user OAuth authorization. Empty when all datasources are authorized.
73757377
items:
73767378
$ref: "#/components/schemas/UnauthorizedDatasourceInstance"
73777379
CreateAuthTokenResponse:

.speakeasy/workflow.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ speakeasyVersion: 1.722.7
22
sources:
33
Glean API:
44
sourceNamespace: glean-api-specs
5-
sourceRevisionDigest: sha256:aa0a496396e723844c85b7713e2a2d9795a8e4c9bb8ad5f4119e1ff0b3f46fc1
6-
sourceBlobDigest: sha256:f052174bfef7ebd0efee80555a7ae4db9d3ba41118e726db87762ea1dbab1240
5+
sourceRevisionDigest: sha256:8b912e61e9727548c1e231c33a1cab5988630896d3c81639fe9b2961c8656d94
6+
sourceBlobDigest: sha256:079082f8fabe8221e1d14af242c72c22efa7be6626969593ccebcd74d19c3c80
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1771467808
9+
- speakeasy-sdk-regen-1771525162
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:aa0a496396e723844c85b7713e2a2d9795a8e4c9bb8ad5f4119e1ff0b3f46fc1
21-
sourceBlobDigest: sha256:f052174bfef7ebd0efee80555a7ae4db9d3ba41118e726db87762ea1dbab1240
20+
sourceRevisionDigest: sha256:8b912e61e9727548c1e231c33a1cab5988630896d3c81639fe9b2961c8656d94
21+
sourceBlobDigest: sha256:079082f8fabe8221e1d14af242c72c22efa7be6626969593ccebcd74d19c3c80
2222
codeSamplesNamespace: glean-api-specs-python-code-samples
23-
codeSamplesRevisionDigest: sha256:f23770fa56fb7f38298e39c6a50f878d2ac7f7b136e13a173c7e74927bee3cd0
23+
codeSamplesRevisionDigest: sha256:07c1eebc0272335ffeb2b98c0b094c73bfefcf74858173515c00c683b16702f6
2424
workflow:
2525
workflowVersion: 1.0.0
2626
speakeasyVersion: latest

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,4 +578,14 @@ Based on:
578578
### Generated
579579
- [python v0.12.7] .
580580
### Releases
581-
- [PyPI v0.12.7] https://pypi.org/project/glean-api-client/0.12.7 - .
581+
- [PyPI v0.12.7] https://pypi.org/project/glean-api-client/0.12.7 - .
582+
583+
## 2026-02-20 02:10:28
584+
### Changes
585+
Based on:
586+
- OpenAPI Doc
587+
- Speakeasy CLI 1.722.7 (2.832.9) https://github.com/speakeasy-api/speakeasy
588+
### Generated
589+
- [python v0.12.8] .
590+
### Releases
591+
- [PyPI v0.12.8] https://pypi.org/project/glean-api-client/0.12.8 - .

docs/models/checkdatasourceauthresponse.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33

44
## Fields
55

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/> |
6+
| Field | Type | Required | Description |
7+
| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
8+
| `unauthorized_datasource_instances` | List[[models.UnauthorizedDatasourceInstance](../models/unauthorizeddatasourceinstance.md)] | :heavy_check_mark: | Datasource instances that require per-user OAuth authorization. Empty when all datasources are authorized.<br/> |

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
[project]
33
name = "glean-api-client"
4-
version = "0.12.7"
4+
version = "0.12.8"
55
description = "Python Client SDK Generated by Speakeasy."
66
authors = [{ name = "Glean Technologies, Inc." },]
77
readme = "README-PYPI.md"

src/glean/api_client/_version.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
import importlib.metadata
44

55
__title__: str = "glean-api-client"
6-
__version__: str = "0.12.7"
6+
__version__: str = "0.12.8"
77
__openapi_doc_version__: str = "0.9.0"
88
__gen_version__: str = "2.832.9"
9-
__user_agent__: str = "speakeasy-sdk/python 0.12.7 2.832.9 0.9.0 glean-api-client"
9+
__user_agent__: str = "speakeasy-sdk/python 0.12.8 2.832.9 0.9.0 glean-api-client"
1010

1111
try:
1212
if __package__ is not None:

src/glean/api_client/models/checkdatasourceauthresponse.py

Lines changed: 8 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -5,47 +5,28 @@
55
UnauthorizedDatasourceInstance,
66
UnauthorizedDatasourceInstanceTypedDict,
77
)
8-
from glean.api_client.types import BaseModel, UNSET_SENTINEL
8+
from glean.api_client.types import BaseModel
99
import pydantic
10-
from pydantic import model_serializer
11-
from typing import List, Optional
12-
from typing_extensions import Annotated, NotRequired, TypedDict
10+
from typing import List
11+
from typing_extensions import Annotated, TypedDict
1312

1413

1514
class CheckDatasourceAuthResponseTypedDict(TypedDict):
16-
unauthorized_datasource_instances: NotRequired[
17-
List[UnauthorizedDatasourceInstanceTypedDict]
18-
]
19-
r"""Datasource instances that require per-user OAuth authorization. Empty or absent when all datasources are authorized.
15+
unauthorized_datasource_instances: List[UnauthorizedDatasourceInstanceTypedDict]
16+
r"""Datasource instances that require per-user OAuth authorization. Empty when all datasources are authorized.
2017
2118
"""
2219

2320

2421
class CheckDatasourceAuthResponse(BaseModel):
2522
unauthorized_datasource_instances: Annotated[
26-
Optional[List[UnauthorizedDatasourceInstance]],
23+
List[UnauthorizedDatasourceInstance],
2724
pydantic.Field(alias="unauthorizedDatasourceInstances"),
28-
] = None
29-
r"""Datasource instances that require per-user OAuth authorization. Empty or absent when all datasources are authorized.
25+
]
26+
r"""Datasource instances that require per-user OAuth authorization. Empty when all datasources are authorized.
3027
3128
"""
3229

33-
@model_serializer(mode="wrap")
34-
def serialize_model(self, handler):
35-
optional_fields = set(["unauthorizedDatasourceInstances"])
36-
serialized = handler(self)
37-
m = {}
38-
39-
for n, f in type(self).model_fields.items():
40-
k = f.alias or n
41-
val = serialized.get(k)
42-
43-
if val != UNSET_SENTINEL:
44-
if val is not None or k not in optional_fields:
45-
m[k] = val
46-
47-
return m
48-
4930

5031
try:
5132
CheckDatasourceAuthResponse.model_rebuild()

tests/mockserver/internal/handler/pathpostrestapiv1createcollection.go

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)