Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ id: 3e3290ca-0ee8-4981-b1bc-14536048fa63
management:
docChecksum: bb65a174a6b697994f7bde3845843d9d
docVersion: 0.9.0
speakeasyVersion: 1.576.1
generationVersion: 2.651.2
releaseVersion: 0.7.0
configChecksum: 1fdd57721d8451c79856369d08e3d61d
speakeasyVersion: 1.580.2
generationVersion: 2.656.5
releaseVersion: 0.7.1
configChecksum: f7304ede6fe6f15382ffd279d0680654
repoURL: https://github.com/gleanwork/api-client-python.git
installationURL: https://github.com/gleanwork/api-client-python.git
published: true
Expand All @@ -22,7 +22,7 @@ features:
devContainers: 3.0.0
enumUnions: 0.1.0
envVarSecurityUsage: 0.3.2
examples: 3.0.1
examples: 3.0.2
flatRequests: 1.0.1
flattening: 3.1.1
globalSecurity: 3.0.3
Expand All @@ -45,7 +45,6 @@ generatedFiles:
- .devcontainer/devcontainer.json
- .devcontainer/setup.sh
- .gitattributes
- .python-version
- .vscode/settings.json
- USAGE.md
- docs/errors/collectionerror.md
Expand Down Expand Up @@ -1141,6 +1140,7 @@ generatedFiles:
- src/glean/api_client/utils/retries.py
- src/glean/api_client/utils/security.py
- src/glean/api_client/utils/serializers.py
- src/glean/api_client/utils/unmarshal_json_response.py
- src/glean/api_client/utils/url.py
- src/glean/api_client/utils/values.py
- src/glean/api_client/visibilityoverrides.py
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ generation:
generateNewTests: true
skipResponseBodyAssertions: true
python:
version: 0.7.0
version: 0.7.1
additionalDependencies:
dev: {}
main: {}
Expand Down
6 changes: 3 additions & 3 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
speakeasyVersion: 1.576.1
speakeasyVersion: 1.580.2
sources:
Glean API:
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:57fc6af98e6e9e98c92547985293be8fafd52d2a1d1ef88d4b24636743b9f119
sourceBlobDigest: sha256:01cf4577ff2f15ba160b16bba410571a8ba0c5fefa7e6dd7101edef7ef7c68dc
tags:
- latest
- speakeasy-sdk-regen-1750453704
- speakeasy-sdk-regen-1751974088
Glean Client API:
sourceNamespace: glean-client-api
sourceRevisionDigest: sha256:4edc63ad559e4f2c9fb9ebf5edaaaaa9269f1874d271cfd84b441d6dacac43d2
Expand All @@ -20,7 +20,7 @@ targets:
sourceRevisionDigest: sha256:57fc6af98e6e9e98c92547985293be8fafd52d2a1d1ef88d4b24636743b9f119
sourceBlobDigest: sha256:01cf4577ff2f15ba160b16bba410571a8ba0c5fefa7e6dd7101edef7ef7c68dc
codeSamplesNamespace: glean-api-specs-python-code-samples
codeSamplesRevisionDigest: sha256:a3e4747f03210d3a8c89a108ea025873dc27315afa1bc443db740a904074c96e
codeSamplesRevisionDigest: sha256:4fcbe6c58b860aa6d5380328a5e28104c0b1f1724dca9bd974696bde707c1531
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,4 +178,14 @@ Based on:
### Generated
- [python v0.7.0] .
### Releases
- [PyPI v0.7.0] https://pypi.org/project/glean/0.7.0 - .
- [PyPI v0.7.0] https://pypi.org/project/glean/0.7.0 - .

## 2025-07-11 01:47:46
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.580.2 (2.656.5) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.7.1] .
### Releases
- [PyPI v0.7.1] https://pypi.org/project/glean/0.7.1 - .
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "glean-api-client"
version = "0.7.0"
version = "0.7.1"
description = "Python Client SDK Generated by Speakeasy."
authors = [{ name = "Glean Technologies, Inc." }]
license = "MIT"
Expand Down
6 changes: 3 additions & 3 deletions src/glean/api_client/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
import importlib.metadata

__title__: str = "glean"
__version__: str = "0.7.0"
__version__: str = "0.7.1"
__openapi_doc_version__: str = "0.9.0"
__gen_version__: str = "2.651.2"
__user_agent__: str = "speakeasy-sdk/python 0.7.0 2.651.2 0.9.0 glean"
__gen_version__: str = "2.656.5"
__user_agent__: str = "speakeasy-sdk/python 0.7.1 2.656.5 0.9.0 glean"

try:
if __package__ is not None:
Expand Down
17 changes: 9 additions & 8 deletions src/glean/api_client/agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from glean.api_client._hooks import HookContext
from glean.api_client.types import OptionalNullable, UNSET
from glean.api_client.utils import get_security_from_env
from glean.api_client.utils.unmarshal_json_response import unmarshal_json_response
from typing import Any, Dict, List, Mapping, Optional, Union


Expand Down Expand Up @@ -85,7 +86,7 @@ def retrieve(
)

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

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

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

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

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

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

if utils.match_response(http_res, "200", "application/json"):
return utils.unmarshal_json_response(models.AgentRunWaitResponse, http_res)
return unmarshal_json_response(models.AgentRunWaitResponse, http_res)
if utils.match_response(
http_res, ["400", "403", "404", "409", "422", "4XX"], "*"
):
Expand Down Expand Up @@ -909,7 +910,7 @@ async def run_async(
)

if utils.match_response(http_res, "200", "application/json"):
return utils.unmarshal_json_response(models.AgentRunWaitResponse, http_res)
return unmarshal_json_response(models.AgentRunWaitResponse, http_res)
if utils.match_response(
http_res, ["400", "403", "404", "409", "422", "4XX"], "*"
):
Expand Down
9 changes: 5 additions & 4 deletions src/glean/api_client/announcements.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from glean.api_client._hooks import HookContext
from glean.api_client.types import OptionalNullable, UNSET
from glean.api_client.utils import get_security_from_env
from glean.api_client.utils.unmarshal_json_response import unmarshal_json_response
from typing import List, Mapping, Optional, Union


Expand Down Expand Up @@ -131,7 +132,7 @@ def create(
)

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

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

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

if utils.match_response(http_res, "200", "application/json"):
return utils.unmarshal_json_response(models.Announcement, http_res)
return unmarshal_json_response(models.Announcement, http_res)
if utils.match_response(http_res, ["400", "401", "429", "4XX"], "*"):
http_res_text = await utils.stream_to_text_async(http_res)
raise errors.GleanError("API error occurred", http_res, http_res_text)
Expand Down
17 changes: 9 additions & 8 deletions src/glean/api_client/answers.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from glean.api_client._hooks import HookContext
from glean.api_client.types import OptionalNullable, UNSET
from glean.api_client.utils import get_security_from_env
from glean.api_client.utils.unmarshal_json_response import unmarshal_json_response
from typing import List, Mapping, Optional, Union


Expand Down Expand Up @@ -85,7 +86,7 @@ def create(
)

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

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

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

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

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

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

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

if utils.match_response(http_res, "200", "application/json"):
return utils.unmarshal_json_response(models.ListAnswersResponse, http_res)
return unmarshal_json_response(models.ListAnswersResponse, http_res)
if utils.match_response(http_res, ["400", "401", "429", "4XX"], "*"):
http_res_text = await utils.stream_to_text_async(http_res)
raise errors.GleanError("API error occurred", http_res, http_res_text)
Expand Down
9 changes: 3 additions & 6 deletions src/glean/api_client/client_authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from glean.api_client._hooks import HookContext
from glean.api_client.types import OptionalNullable, UNSET
from glean.api_client.utils import get_security_from_env
from glean.api_client.utils.unmarshal_json_response import unmarshal_json_response
from typing import Mapping, Optional


Expand Down Expand Up @@ -80,9 +81,7 @@ def create_token(
)

if utils.match_response(http_res, "200", "application/json"):
return utils.unmarshal_json_response(
models.CreateAuthTokenResponse, http_res
)
return unmarshal_json_response(models.CreateAuthTokenResponse, http_res)
if utils.match_response(http_res, ["400", "401", "429", "4XX"], "*"):
http_res_text = utils.stream_to_text(http_res)
raise errors.GleanError("API error occurred", http_res, http_res_text)
Expand Down Expand Up @@ -163,9 +162,7 @@ async def create_token_async(
)

if utils.match_response(http_res, "200", "application/json"):
return utils.unmarshal_json_response(
models.CreateAuthTokenResponse, http_res
)
return unmarshal_json_response(models.CreateAuthTokenResponse, http_res)
if utils.match_response(http_res, ["400", "401", "429", "4XX"], "*"):
http_res_text = await utils.stream_to_text_async(http_res)
raise errors.GleanError("API error occurred", http_res, http_res_text)
Expand Down
Loading