Skip to content

Commit d448641

Browse files
Merge pull request #52 from gleanwork/speakeasy-sdk-regen-1751974088
chore: 🐝 Update SDK - Generate 0.7.1
2 parents ccf59de + 848a40f commit d448641

Some content is hidden

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

48 files changed

+353
-277
lines changed

.speakeasy/gen.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ id: 3e3290ca-0ee8-4981-b1bc-14536048fa63
33
management:
44
docChecksum: bb65a174a6b697994f7bde3845843d9d
55
docVersion: 0.9.0
6-
speakeasyVersion: 1.576.1
7-
generationVersion: 2.651.2
8-
releaseVersion: 0.7.0
9-
configChecksum: 1fdd57721d8451c79856369d08e3d61d
6+
speakeasyVersion: 1.580.2
7+
generationVersion: 2.656.5
8+
releaseVersion: 0.7.1
9+
configChecksum: f7304ede6fe6f15382ffd279d0680654
1010
repoURL: https://github.com/gleanwork/api-client-python.git
1111
installationURL: https://github.com/gleanwork/api-client-python.git
1212
published: true
@@ -22,7 +22,7 @@ features:
2222
devContainers: 3.0.0
2323
enumUnions: 0.1.0
2424
envVarSecurityUsage: 0.3.2
25-
examples: 3.0.1
25+
examples: 3.0.2
2626
flatRequests: 1.0.1
2727
flattening: 3.1.1
2828
globalSecurity: 3.0.3
@@ -45,7 +45,6 @@ generatedFiles:
4545
- .devcontainer/devcontainer.json
4646
- .devcontainer/setup.sh
4747
- .gitattributes
48-
- .python-version
4948
- .vscode/settings.json
5049
- USAGE.md
5150
- docs/errors/collectionerror.md
@@ -1141,6 +1140,7 @@ generatedFiles:
11411140
- src/glean/api_client/utils/retries.py
11421141
- src/glean/api_client/utils/security.py
11431142
- src/glean/api_client/utils/serializers.py
1143+
- src/glean/api_client/utils/unmarshal_json_response.py
11441144
- src/glean/api_client/utils/url.py
11451145
- src/glean/api_client/utils/values.py
11461146
- src/glean/api_client/visibilityoverrides.py

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ generation:
2626
generateNewTests: true
2727
skipResponseBodyAssertions: true
2828
python:
29-
version: 0.7.0
29+
version: 0.7.1
3030
additionalDependencies:
3131
dev: {}
3232
main: {}

.speakeasy/workflow.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
speakeasyVersion: 1.576.1
1+
speakeasyVersion: 1.580.2
22
sources:
33
Glean API:
44
sourceNamespace: glean-api-specs
55
sourceRevisionDigest: sha256:57fc6af98e6e9e98c92547985293be8fafd52d2a1d1ef88d4b24636743b9f119
66
sourceBlobDigest: sha256:01cf4577ff2f15ba160b16bba410571a8ba0c5fefa7e6dd7101edef7ef7c68dc
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1750453704
9+
- speakeasy-sdk-regen-1751974088
1010
Glean Client API:
1111
sourceNamespace: glean-client-api
1212
sourceRevisionDigest: sha256:4edc63ad559e4f2c9fb9ebf5edaaaaa9269f1874d271cfd84b441d6dacac43d2
@@ -20,7 +20,7 @@ targets:
2020
sourceRevisionDigest: sha256:57fc6af98e6e9e98c92547985293be8fafd52d2a1d1ef88d4b24636743b9f119
2121
sourceBlobDigest: sha256:01cf4577ff2f15ba160b16bba410571a8ba0c5fefa7e6dd7101edef7ef7c68dc
2222
codeSamplesNamespace: glean-api-specs-python-code-samples
23-
codeSamplesRevisionDigest: sha256:a3e4747f03210d3a8c89a108ea025873dc27315afa1bc443db740a904074c96e
23+
codeSamplesRevisionDigest: sha256:4fcbe6c58b860aa6d5380328a5e28104c0b1f1724dca9bd974696bde707c1531
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
@@ -178,4 +178,14 @@ Based on:
178178
### Generated
179179
- [python v0.7.0] .
180180
### Releases
181-
- [PyPI v0.7.0] https://pypi.org/project/glean/0.7.0 - .
181+
- [PyPI v0.7.0] https://pypi.org/project/glean/0.7.0 - .
182+
183+
## 2025-07-11 01:47:46
184+
### Changes
185+
Based on:
186+
- OpenAPI Doc
187+
- Speakeasy CLI 1.580.2 (2.656.5) https://github.com/speakeasy-api/speakeasy
188+
### Generated
189+
- [python v0.7.1] .
190+
### Releases
191+
- [PyPI v0.7.1] https://pypi.org/project/glean/0.7.1 - .

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "glean-api-client"
3-
version = "0.7.0"
3+
version = "0.7.1"
44
description = "Python Client SDK Generated by Speakeasy."
55
authors = [{ name = "Glean Technologies, Inc." }]
66
license = "MIT"

src/glean/api_client/_version.py

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

55
__title__: str = "glean"
6-
__version__: str = "0.7.0"
6+
__version__: str = "0.7.1"
77
__openapi_doc_version__: str = "0.9.0"
8-
__gen_version__: str = "2.651.2"
9-
__user_agent__: str = "speakeasy-sdk/python 0.7.0 2.651.2 0.9.0 glean"
8+
__gen_version__: str = "2.656.5"
9+
__user_agent__: str = "speakeasy-sdk/python 0.7.1 2.656.5 0.9.0 glean"
1010

1111
try:
1212
if __package__ is not None:

src/glean/api_client/agents.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from glean.api_client._hooks import HookContext
66
from glean.api_client.types import OptionalNullable, UNSET
77
from glean.api_client.utils import get_security_from_env
8+
from glean.api_client.utils.unmarshal_json_response import unmarshal_json_response
89
from typing import Any, Dict, List, Mapping, Optional, Union
910

1011

@@ -85,7 +86,7 @@ def retrieve(
8586
)
8687

8788
if utils.match_response(http_res, "200", "application/json"):
88-
return utils.unmarshal_json_response(models.Agent, http_res)
89+
return unmarshal_json_response(models.Agent, http_res)
8990
if utils.match_response(http_res, ["400", "403", "404", "4XX"], "*"):
9091
http_res_text = utils.stream_to_text(http_res)
9192
raise errors.GleanError("API error occurred", http_res, http_res_text)
@@ -171,7 +172,7 @@ async def retrieve_async(
171172
)
172173

173174
if utils.match_response(http_res, "200", "application/json"):
174-
return utils.unmarshal_json_response(models.Agent, http_res)
175+
return unmarshal_json_response(models.Agent, http_res)
175176
if utils.match_response(http_res, ["400", "403", "404", "4XX"], "*"):
176177
http_res_text = await utils.stream_to_text_async(http_res)
177178
raise errors.GleanError("API error occurred", http_res, http_res_text)
@@ -257,7 +258,7 @@ def retrieve_schemas(
257258
)
258259

259260
if utils.match_response(http_res, "200", "application/json"):
260-
return utils.unmarshal_json_response(models.AgentSchemas, http_res)
261+
return unmarshal_json_response(models.AgentSchemas, http_res)
261262
if utils.match_response(http_res, ["400", "403", "404", "422", "4XX"], "*"):
262263
http_res_text = utils.stream_to_text(http_res)
263264
raise errors.GleanError("API error occurred", http_res, http_res_text)
@@ -343,7 +344,7 @@ async def retrieve_schemas_async(
343344
)
344345

345346
if utils.match_response(http_res, "200", "application/json"):
346-
return utils.unmarshal_json_response(models.AgentSchemas, http_res)
347+
return unmarshal_json_response(models.AgentSchemas, http_res)
347348
if utils.match_response(http_res, ["400", "403", "404", "422", "4XX"], "*"):
348349
http_res_text = await utils.stream_to_text_async(http_res)
349350
raise errors.GleanError("API error occurred", http_res, http_res_text)
@@ -429,7 +430,7 @@ def list(
429430
)
430431

431432
if utils.match_response(http_res, "200", "application/json"):
432-
return utils.unmarshal_json_response(models.SearchAgentsResponse, http_res)
433+
return unmarshal_json_response(models.SearchAgentsResponse, http_res)
433434
if utils.match_response(http_res, ["400", "403", "404", "422", "4XX"], "*"):
434435
http_res_text = utils.stream_to_text(http_res)
435436
raise errors.GleanError("API error occurred", http_res, http_res_text)
@@ -515,7 +516,7 @@ async def list_async(
515516
)
516517

517518
if utils.match_response(http_res, "200", "application/json"):
518-
return utils.unmarshal_json_response(models.SearchAgentsResponse, http_res)
519+
return unmarshal_json_response(models.SearchAgentsResponse, http_res)
519520
if utils.match_response(http_res, ["400", "403", "404", "422", "4XX"], "*"):
520521
http_res_text = await utils.stream_to_text_async(http_res)
521522
raise errors.GleanError("API error occurred", http_res, http_res_text)
@@ -810,7 +811,7 @@ def run(
810811
)
811812

812813
if utils.match_response(http_res, "200", "application/json"):
813-
return utils.unmarshal_json_response(models.AgentRunWaitResponse, http_res)
814+
return unmarshal_json_response(models.AgentRunWaitResponse, http_res)
814815
if utils.match_response(
815816
http_res, ["400", "403", "404", "409", "422", "4XX"], "*"
816817
):
@@ -909,7 +910,7 @@ async def run_async(
909910
)
910911

911912
if utils.match_response(http_res, "200", "application/json"):
912-
return utils.unmarshal_json_response(models.AgentRunWaitResponse, http_res)
913+
return unmarshal_json_response(models.AgentRunWaitResponse, http_res)
913914
if utils.match_response(
914915
http_res, ["400", "403", "404", "409", "422", "4XX"], "*"
915916
):

src/glean/api_client/announcements.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from glean.api_client._hooks import HookContext
77
from glean.api_client.types import OptionalNullable, UNSET
88
from glean.api_client.utils import get_security_from_env
9+
from glean.api_client.utils.unmarshal_json_response import unmarshal_json_response
910
from typing import List, Mapping, Optional, Union
1011

1112

@@ -131,7 +132,7 @@ def create(
131132
)
132133

133134
if utils.match_response(http_res, "200", "application/json"):
134-
return utils.unmarshal_json_response(models.Announcement, http_res)
135+
return unmarshal_json_response(models.Announcement, http_res)
135136
if utils.match_response(http_res, ["400", "401", "429", "4XX"], "*"):
136137
http_res_text = utils.stream_to_text(http_res)
137138
raise errors.GleanError("API error occurred", http_res, http_res_text)
@@ -262,7 +263,7 @@ async def create_async(
262263
)
263264

264265
if utils.match_response(http_res, "200", "application/json"):
265-
return utils.unmarshal_json_response(models.Announcement, http_res)
266+
return unmarshal_json_response(models.Announcement, http_res)
266267
if utils.match_response(http_res, ["400", "401", "429", "4XX"], "*"):
267268
http_res_text = await utils.stream_to_text_async(http_res)
268269
raise errors.GleanError("API error occurred", http_res, http_res_text)
@@ -568,7 +569,7 @@ def update(
568569
)
569570

570571
if utils.match_response(http_res, "200", "application/json"):
571-
return utils.unmarshal_json_response(models.Announcement, http_res)
572+
return unmarshal_json_response(models.Announcement, http_res)
572573
if utils.match_response(http_res, ["400", "401", "429", "4XX"], "*"):
573574
http_res_text = utils.stream_to_text(http_res)
574575
raise errors.GleanError("API error occurred", http_res, http_res_text)
@@ -702,7 +703,7 @@ async def update_async(
702703
)
703704

704705
if utils.match_response(http_res, "200", "application/json"):
705-
return utils.unmarshal_json_response(models.Announcement, http_res)
706+
return unmarshal_json_response(models.Announcement, http_res)
706707
if utils.match_response(http_res, ["400", "401", "429", "4XX"], "*"):
707708
http_res_text = await utils.stream_to_text_async(http_res)
708709
raise errors.GleanError("API error occurred", http_res, http_res_text)

src/glean/api_client/answers.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from glean.api_client._hooks import HookContext
66
from glean.api_client.types import OptionalNullable, UNSET
77
from glean.api_client.utils import get_security_from_env
8+
from glean.api_client.utils.unmarshal_json_response import unmarshal_json_response
89
from typing import List, Mapping, Optional, Union
910

1011

@@ -85,7 +86,7 @@ def create(
8586
)
8687

8788
if utils.match_response(http_res, "200", "application/json"):
88-
return utils.unmarshal_json_response(models.Answer, http_res)
89+
return unmarshal_json_response(models.Answer, http_res)
8990
if utils.match_response(http_res, ["400", "401", "429", "4XX"], "*"):
9091
http_res_text = utils.stream_to_text(http_res)
9192
raise errors.GleanError("API error occurred", http_res, http_res_text)
@@ -171,7 +172,7 @@ async def create_async(
171172
)
172173

173174
if utils.match_response(http_res, "200", "application/json"):
174-
return utils.unmarshal_json_response(models.Answer, http_res)
175+
return unmarshal_json_response(models.Answer, http_res)
175176
if utils.match_response(http_res, ["400", "401", "429", "4XX"], "*"):
176177
http_res_text = await utils.stream_to_text_async(http_res)
177178
raise errors.GleanError("API error occurred", http_res, http_res_text)
@@ -513,7 +514,7 @@ def update(
513514
)
514515

515516
if utils.match_response(http_res, "200", "application/json"):
516-
return utils.unmarshal_json_response(models.Answer, http_res)
517+
return unmarshal_json_response(models.Answer, http_res)
517518
if utils.match_response(http_res, ["400", "401", "429", "4XX"], "*"):
518519
http_res_text = utils.stream_to_text(http_res)
519520
raise errors.GleanError("API error occurred", http_res, http_res_text)
@@ -677,7 +678,7 @@ async def update_async(
677678
)
678679

679680
if utils.match_response(http_res, "200", "application/json"):
680-
return utils.unmarshal_json_response(models.Answer, http_res)
681+
return unmarshal_json_response(models.Answer, http_res)
681682
if utils.match_response(http_res, ["400", "401", "429", "4XX"], "*"):
682683
http_res_text = await utils.stream_to_text_async(http_res)
683684
raise errors.GleanError("API error occurred", http_res, http_res_text)
@@ -766,7 +767,7 @@ def retrieve(
766767
)
767768

768769
if utils.match_response(http_res, "200", "application/json"):
769-
return utils.unmarshal_json_response(models.GetAnswerResponse, http_res)
770+
return unmarshal_json_response(models.GetAnswerResponse, http_res)
770771
if utils.match_response(http_res, ["400", "401", "429", "4XX"], "*"):
771772
http_res_text = utils.stream_to_text(http_res)
772773
raise errors.GleanError("API error occurred", http_res, http_res_text)
@@ -855,7 +856,7 @@ async def retrieve_async(
855856
)
856857

857858
if utils.match_response(http_res, "200", "application/json"):
858-
return utils.unmarshal_json_response(models.GetAnswerResponse, http_res)
859+
return unmarshal_json_response(models.GetAnswerResponse, http_res)
859860
if utils.match_response(http_res, ["400", "401", "429", "4XX"], "*"):
860861
http_res_text = await utils.stream_to_text_async(http_res)
861862
raise errors.GleanError("API error occurred", http_res, http_res_text)
@@ -941,7 +942,7 @@ def list(
941942
)
942943

943944
if utils.match_response(http_res, "200", "application/json"):
944-
return utils.unmarshal_json_response(models.ListAnswersResponse, http_res)
945+
return unmarshal_json_response(models.ListAnswersResponse, http_res)
945946
if utils.match_response(http_res, ["400", "401", "429", "4XX"], "*"):
946947
http_res_text = utils.stream_to_text(http_res)
947948
raise errors.GleanError("API error occurred", http_res, http_res_text)
@@ -1027,7 +1028,7 @@ async def list_async(
10271028
)
10281029

10291030
if utils.match_response(http_res, "200", "application/json"):
1030-
return utils.unmarshal_json_response(models.ListAnswersResponse, http_res)
1031+
return unmarshal_json_response(models.ListAnswersResponse, http_res)
10311032
if utils.match_response(http_res, ["400", "401", "429", "4XX"], "*"):
10321033
http_res_text = await utils.stream_to_text_async(http_res)
10331034
raise errors.GleanError("API error occurred", http_res, http_res_text)

src/glean/api_client/client_authentication.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from glean.api_client._hooks import HookContext
66
from glean.api_client.types import OptionalNullable, UNSET
77
from glean.api_client.utils import get_security_from_env
8+
from glean.api_client.utils.unmarshal_json_response import unmarshal_json_response
89
from typing import Mapping, Optional
910

1011

@@ -80,9 +81,7 @@ def create_token(
8081
)
8182

8283
if utils.match_response(http_res, "200", "application/json"):
83-
return utils.unmarshal_json_response(
84-
models.CreateAuthTokenResponse, http_res
85-
)
84+
return unmarshal_json_response(models.CreateAuthTokenResponse, http_res)
8685
if utils.match_response(http_res, ["400", "401", "429", "4XX"], "*"):
8786
http_res_text = utils.stream_to_text(http_res)
8887
raise errors.GleanError("API error occurred", http_res, http_res_text)
@@ -163,9 +162,7 @@ async def create_token_async(
163162
)
164163

165164
if utils.match_response(http_res, "200", "application/json"):
166-
return utils.unmarshal_json_response(
167-
models.CreateAuthTokenResponse, http_res
168-
)
165+
return unmarshal_json_response(models.CreateAuthTokenResponse, http_res)
169166
if utils.match_response(http_res, ["400", "401", "429", "4XX"], "*"):
170167
http_res_text = await utils.stream_to_text_async(http_res)
171168
raise errors.GleanError("API error occurred", http_res, http_res_text)

0 commit comments

Comments
 (0)