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
5 changes: 5 additions & 0 deletions .devcontainer/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@

<div align="center">
<a href="https://codespaces.new/gleanwork/api-client-python.git/tree/main"><img src="https://github.com/codespaces/badge.svg" /></a>
</div>
<br>

> **Remember to shutdown a GitHub Codespace when it is not in use!**

# Dev Containers Quick Start
Expand Down
13 changes: 8 additions & 5 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
lockVersion: 2.0.0
id: 3e3290ca-0ee8-4981-b1bc-14536048fa63
management:
docChecksum: adc860b8099788fe237e893e2a1ce2a4
docChecksum: 6cb4c4786bf30fecfc20b38750d745eb
docVersion: 0.9.0
speakeasyVersion: 1.561.0
generationVersion: 2.628.0
releaseVersion: 0.6.5
configChecksum: 6378ddf91bd99402a13555fcfc9817af
speakeasyVersion: 1.563.1
generationVersion: 2.629.1
releaseVersion: 0.6.6
configChecksum: deb305dde9c116c694b15d39c5ae7854
repoURL: https://github.com/gleanwork/api-client-python.git
installationURL: https://github.com/gleanwork/api-client-python.git
published: true
features:
python:
Expand Down Expand Up @@ -637,6 +639,7 @@ generatedFiles:
- poetry.toml
- py.typed
- pylintrc
- scripts/prepare_readme.py
- scripts/publish.sh
- src/glean/api_client/__init__.py
- src/glean/api_client/_hooks/__init__.py
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ generation:
generateNewTests: true
skipResponseBodyAssertions: true
python:
version: 0.6.5
version: 0.6.6
additionalDependencies:
dev: {}
main: {}
Expand Down
7 changes: 6 additions & 1 deletion .speakeasy/glean-merged-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,12 @@ paths:
tags:
- Authentication
summary: Create authentication token
description: Creates an authentication token for the authenticated user.
description: |
Creates an authentication token for the authenticated user. These are
specifically intended to be used with the [Web SDK](https://developers.glean.com/web).

Note: The tokens generated from this endpoint are **not** valid tokens
for use with the Client API (e.g. `/rest/api/v1/*`).
operationId: createauthtoken
x-visibility: Public
parameters: []
Expand Down
13 changes: 7 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
speakeasyVersion: 1.561.0
speakeasyVersion: 1.563.1
sources:
Glean API:
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:4d55e9d4c5116b88a5959816fd40df895912309a293908485e2016008d31a1f4
sourceBlobDigest: sha256:eceb178c5d2537e6d21c0461c81f6af1dc245da2c327fdf5305a8191184eff94
sourceRevisionDigest: sha256:766f374184dd7d6b119aef718a826e26e7e690a65bd8edd8e326c75699c9c0f5
sourceBlobDigest: sha256:b566588e295fa760c08dc3e5f61f4026e3b295999709bbec5a3f434f51316f89
tags:
- latest
- speakeasy-sdk-regen-1749670145
Glean Client API:
sourceNamespace: glean-client-api
sourceRevisionDigest: sha256:4edc63ad559e4f2c9fb9ebf5edaaaaa9269f1874d271cfd84b441d6dacac43d2
Expand All @@ -16,10 +17,10 @@ targets:
glean:
source: Glean API
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:4d55e9d4c5116b88a5959816fd40df895912309a293908485e2016008d31a1f4
sourceBlobDigest: sha256:eceb178c5d2537e6d21c0461c81f6af1dc245da2c327fdf5305a8191184eff94
sourceRevisionDigest: sha256:766f374184dd7d6b119aef718a826e26e7e690a65bd8edd8e326c75699c9c0f5
sourceBlobDigest: sha256:b566588e295fa760c08dc3e5f61f4026e3b295999709bbec5a3f434f51316f89
codeSamplesNamespace: glean-api-specs-python-code-samples
codeSamplesRevisionDigest: sha256:04b4dd94d8ee358b8a408e1f8f46005a73c9bd86790e5abc631c5503ec22ff8f
codeSamplesRevisionDigest: sha256:6fc7a331ac2723e7e15b995ac16fcbcb8e5e23c00dba76053d4977ed1b7ea737
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 @@ -158,4 +158,14 @@ Based on:
### Generated
- [python v0.6.5] .
### Releases
- [PyPI v0.6.5] https://pypi.org/project/glean/0.6.5 - .
- [PyPI v0.6.5] https://pypi.org/project/glean/0.6.5 - .

## 2025-06-16 01:46:36
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.563.1 (2.629.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.6.6] .
### Releases
- [PyPI v0.6.6] https://pypi.org/project/glean/0.6.6 - .
7 changes: 6 additions & 1 deletion docs/sdks/clientauthentication/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@

## create_token

Creates an authentication token for the authenticated user.
Creates an authentication token for the authenticated user. These are
specifically intended to be used with the [Web SDK](https://developers.glean.com/web).

Note: The tokens generated from this endpoint are **not** valid tokens
for use with the Client API (e.g. `/rest/api/v1/*`).


### Example Usage

Expand Down
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.6.5"
version = "0.6.6"
description = "Python Client SDK Generated by Speakeasy."
authors = [{ name = "Glean Technologies, Inc." }]
license = "MIT"
Expand Down
2 changes: 2 additions & 0 deletions scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

export POETRY_PYPI_TOKEN_PYPI=${PYPI_TOKEN}

poetry run python scripts/prepare_readme.py

poetry publish --build --skip-existing
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.6.5"
__version__: str = "0.6.6"
__openapi_doc_version__: str = "0.9.0"
__gen_version__: str = "2.628.0"
__user_agent__: str = "speakeasy-sdk/python 0.6.5 2.628.0 0.9.0 glean"
__gen_version__: str = "2.629.1"
__user_agent__: str = "speakeasy-sdk/python 0.6.6 2.629.1 0.9.0 glean"

try:
if __package__ is not None:
Expand Down
14 changes: 12 additions & 2 deletions src/glean/api_client/client_authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@ def create_token(
) -> models.CreateAuthTokenResponse:
r"""Create authentication token

Creates an authentication token for the authenticated user.
Creates an authentication token for the authenticated user. These are
specifically intended to be used with the [Web SDK](https://developers.glean.com/web).

Note: The tokens generated from this endpoint are **not** valid tokens
for use with the Client API (e.g. `/rest/api/v1/*`).


:param retries: Override the default retry configuration for this method
:param server_url: Override the default server URL for this method
Expand Down Expand Up @@ -106,7 +111,12 @@ async def create_token_async(
) -> models.CreateAuthTokenResponse:
r"""Create authentication token

Creates an authentication token for the authenticated user.
Creates an authentication token for the authenticated user. These are
specifically intended to be used with the [Web SDK](https://developers.glean.com/web).

Note: The tokens generated from this endpoint are **not** valid tokens
for use with the Client API (e.g. `/rest/api/v1/*`).


:param retries: Override the default retry configuration for this method
:param server_url: Override the default server URL for this method
Expand Down