Skip to content
Closed
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
45 changes: 22 additions & 23 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
lockVersion: 2.0.0
id: 3e3290ca-0ee8-4981-b1bc-14536048fa63
management:
docChecksum: 3e50d4f63b0168aa23157f21feb40c0c
docChecksum: 20ed0159a863e3fcb8a6bdcaebb66115
docVersion: 0.9.0
speakeasyVersion: 1.759.1
generationVersion: 2.869.10
releaseVersion: 0.12.16
configChecksum: 5a5e3ac7e128527241042b09aeb7be93
speakeasyVersion: 1.759.2
generationVersion: 2.869.23
releaseVersion: 0.12.17
configChecksum: 36e865d74e209331ddf988d24ca6da34
repoURL: https://github.com/gleanwork/api-client-python.git
installationURL: https://github.com/gleanwork/api-client-python.git
published: true
persistentEdits:
generation_id: 33f8f1c0-7013-4b2d-8751-528f5deb8ef0
pristine_commit_hash: 62b371fad82f47fce7873bd8c3d2cb8e6c2cabf5
pristine_tree_hash: 36a7a820f1ae56dc3e27ad1ffa37dc169ce57e79
generation_id: f40be2a0-f012-47c9-ab8e-7e1933c616be
pristine_commit_hash: cde5078334e22a1c247141f4db35c513cb858118
pristine_tree_hash: f54719371d71639398b1381558ae276eb3e9cb02
features:
python:
additionalDependencies: 1.0.0
Expand Down Expand Up @@ -2731,8 +2731,8 @@ trackedFiles:
pristine_git_object: 0aa193b38d7d95cd3301469f9a6ad1260a1b1b51
docs/sdks/people/README.md:
id: ff7b3ee21c2b
last_write_checksum: sha1:46141250c3e083e1fa4f244b4e66adea510f69fb
pristine_git_object: 4450bbe42caf5db7c75d7881863b0972fa7f13a6
last_write_checksum: sha1:044b490ba98c61f47dd97cc055d0347449398fef
pristine_git_object: 7976d51e738b54167c1233ddc7a20585b3d89b8d
docs/sdks/pins/README.md:
id: e887aca9ba0f
last_write_checksum: sha1:c11aea840d911395a606a528575fe224c8a6b86a
Expand Down Expand Up @@ -2771,8 +2771,8 @@ trackedFiles:
pristine_git_object: e2fda7fe263c2a111e53872e3ad5bc324b4dccfe
pyproject.toml:
id: 5d07e7d72637
last_write_checksum: sha1:6881065d40671a5c4dfc900ca23da19344139b93
pristine_git_object: 788706dbdf41035d64b47954cb3e0054b5913007
last_write_checksum: sha1:4c8e59fe26e0e3caca741226a4044e4880e33979
pristine_git_object: 2d8cfb5ec32dcd1f7d06bc9122312dddb8f1289f
scripts/prepare_readme.py:
id: e0c5957a6035
last_write_checksum: sha1:c2c83f71dea61eb50c9e05da83b16d18b4da8794
Expand All @@ -2799,8 +2799,8 @@ trackedFiles:
pristine_git_object: 58c4d70ac1797b86ff5c4237cafbc344c42d8f64
src/glean/api_client/_version.py:
id: 0ce22b26136b
last_write_checksum: sha1:73a66a66a2c9a21f4a960e063fc7be592a804a7d
pristine_git_object: 332b156477b1462ac64fa29c8b2893ac3c2f1279
last_write_checksum: sha1:02955598088a61b0e39227ac3d5b35fc38bdf052
pristine_git_object: bff6ca752d95863ce5a20b16f9b812fd7425935b
src/glean/api_client/agents.py:
id: b925701a9217
last_write_checksum: sha1:ee99ae3d58f7f77ac2eba99c104d04d53c16c09c
Expand All @@ -2819,8 +2819,8 @@ trackedFiles:
pristine_git_object: 90fa357df14260a5a952f42b0b8500c5fee5968b
src/glean/api_client/basesdk.py:
id: a9eeecf7fa49
last_write_checksum: sha1:ccda2f226cc0c1b7d991c8210afaf86920ff7fdf
pristine_git_object: 81bace393296cfb6685a01797f20b5f0bf1624a3
last_write_checksum: sha1:d3d816ae1402d08e19e014db50bc9b62eddabc32
pristine_git_object: dec3e125b14c0afe27fc19d68e384064967cf60a
src/glean/api_client/client.py:
id: c0c188098f10
last_write_checksum: sha1:7573d8778bba72612e7afc379c05e23c1de2ed1c
Expand Down Expand Up @@ -4975,8 +4975,8 @@ trackedFiles:
pristine_git_object: 85e816dc7cea2c95b4e067d756e428be2696d0a4
src/glean/api_client/people.py:
id: e32c03723ded
last_write_checksum: sha1:1fa96c3a881b57c81745946eac38a67bf50359ab
pristine_git_object: 0c13dd320022cb3f133f0e74405070bd8afdf3fc
last_write_checksum: sha1:81406452a5a2c3ae7e6fe3cad0a4e1797ad397ad
pristine_git_object: f59a439b8db2be16b8a41bca85eb57a59945516d
src/glean/api_client/pins.py:
id: 4a37ead65f8a
last_write_checksum: sha1:9c72f34fc747fd9753beb6dcb967366d8c1c9181
Expand Down Expand Up @@ -6567,8 +6567,8 @@ trackedFiles:
pristine_git_object: 6cc8aeec3c52329d389081db0a27f10f53f214b9
tests/test_messages.py:
id: be23089b1f8b
last_write_checksum: sha1:2404e23964ef6a1f5ddc900402b34e597d2d9617
pristine_git_object: 132005ec7d1e35f805b6a8c28e07e043bce22f0a
last_write_checksum: sha1:5db8087e85104ab50b362638150fa1f6686a3c30
pristine_git_object: c0fd29dab7d365ef9d78c0c291b925e6b9fd7298
tests/test_people.py:
id: 37c243940039
last_write_checksum: sha1:7c7268ffeebe48d81ed25e9b1cfc3a395abf5c1f
Expand All @@ -6591,8 +6591,8 @@ trackedFiles:
pristine_git_object: df2944ebda36db652b2770dd1c23be83df90fc99
tests/test_summarize.py:
id: a255d8a6f627
last_write_checksum: sha1:e73571e213636c1cc80230aff2db516efae5e6a3
pristine_git_object: de410ac80fc43308c1eacf014fe16c530dea0f6d
last_write_checksum: sha1:3319246766dbe14b9043e370a5d5e10ec6183a1f
pristine_git_object: 8784c85ee292fc6c076fb163001d3f7c29d70389
tests/test_tools.py:
id: 70889bdf7321
last_write_checksum: sha1:3c0c220f8975b050c322f6475e95f7af4e65b995
Expand Down Expand Up @@ -7520,7 +7520,6 @@ generatedTests:
checkdatasourceauth: "2026-02-19T15:48:52Z"
getDatasourceInstanceConfiguration: "2026-03-09T18:34:29Z"
updateDatasourceInstanceConfiguration: "2026-03-09T18:34:29Z"
releaseNotes: "## Python SDK Changes:\n* `glean.client.search.retrieve_feed()`: \n * `request.categories[].enum(weekly_meetings)` **Added**\n * `response.results[]` **Changed**\n"
generatedFiles:
- .devcontainer/README.md
- .devcontainer/devcontainer.json
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ generation:
generateNewTests: true
skipResponseBodyAssertions: true
python:
version: 0.12.16
version: 0.12.17
additionalDependencies:
dev: {}
main: {}
Expand Down
6 changes: 3 additions & 3 deletions .speakeasy/glean-merged-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ openapi: 3.0.0
info:
version: 0.9.0
title: Glean API
x-source-commit-sha: 7e68a849f9cb22fa3aad6a751bde84e61caaeecd
x-source-commit-sha: 4f98ce718605016bc6364f1530d0f67e39183a4d
description: |
# Introduction
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.
Expand All @@ -22,7 +22,7 @@ info:
These API clients provide type-safe, idiomatic interfaces for working with Glean IndexingAPIs in your language of choice.
x-logo:
url: https://app.glean.com/images/glean-text2.svg
x-open-api-commit-sha: 90e81e9efeba8e52cbef1cc075b188138649e5cd
x-open-api-commit-sha: 5331f06a81f430224b6101ab930b08244ba9ede3
x-speakeasy-name: 'Glean API'
servers:
- url: https://{instance}-be.glean.com
Expand Down Expand Up @@ -3275,7 +3275,7 @@ paths:
/api/index/v1/indexemployee:
post:
summary: Index employee
description: Adds an employee or updates information about an employee
description: Adds an employee or replaces the existing information about an employee.
tags:
- People
security:
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
speakeasyVersion: 1.759.1
speakeasyVersion: 1.759.2
sources:
Glean API:
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:3834a0cda714f67f29515eaece093358a0307b2828aff3b72a0a999c24c3f320
sourceBlobDigest: sha256:e8f125b18b3bf864041e7ff2bf35cbc1aa5f38c41b15431adfd2c57af7c4cf8d
sourceRevisionDigest: sha256:72cad3020f735b8984de53b2447c88055ab7bb4b7757600bb9b4836ec80cd22f
sourceBlobDigest: sha256:569807cefe620095689fea8af166d15bdaf23c955ce01f83acf8fbc8f98ef268
tags:
- latest
Glean Client API:
Expand All @@ -16,10 +16,10 @@ targets:
glean:
source: Glean API
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:3834a0cda714f67f29515eaece093358a0307b2828aff3b72a0a999c24c3f320
sourceBlobDigest: sha256:e8f125b18b3bf864041e7ff2bf35cbc1aa5f38c41b15431adfd2c57af7c4cf8d
sourceRevisionDigest: sha256:72cad3020f735b8984de53b2447c88055ab7bb4b7757600bb9b4836ec80cd22f
sourceBlobDigest: sha256:569807cefe620095689fea8af166d15bdaf23c955ce01f83acf8fbc8f98ef268
codeSamplesNamespace: glean-api-specs-python-code-samples
codeSamplesRevisionDigest: sha256:ea365d89e223607cb7fc42765de843e17c4db2a705339eba94372b8e33a9d0ba
codeSamplesRevisionDigest: sha256:c56e9f3cc28162c3a1732be6472426327003f3aeefbe5a814a408764fbcf7c02
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 @@ -668,4 +668,14 @@ Based on:
### Generated
- [python v0.12.16] .
### Releases
- [PyPI v0.12.16] https://pypi.org/project/glean-api-client/0.12.16 - .
- [PyPI v0.12.16] https://pypi.org/project/glean-api-client/0.12.16 - .

## 2026-03-24 20:07:22
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.759.2 (2.869.23) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.12.17] .
### Releases
- [PyPI v0.12.17] https://pypi.org/project/glean-api-client/0.12.17 - .
2 changes: 1 addition & 1 deletion docs/sdks/people/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ with Glean(

## index

Adds an employee or updates information about an employee
Adds an employee or replaces the existing information about an employee.

### Example Usage

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

[project]
name = "glean-api-client"
version = "0.12.16"
version = "0.12.17"
description = "Python Client SDK Generated by Speakeasy."
authors = [{ name = "Glean Technologies, Inc." },]
readme = "README-PYPI.md"
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-api-client"
__version__: str = "0.12.16"
__version__: str = "0.12.17"
__openapi_doc_version__: str = "0.9.0"
__gen_version__: str = "2.869.10"
__user_agent__: str = "speakeasy-sdk/python 0.12.16 2.869.10 0.9.0 glean-api-client"
__gen_version__: str = "2.869.23"
__user_agent__: str = "speakeasy-sdk/python 0.12.17 2.869.23 0.9.0 glean-api-client"

try:
if __package__ is not None:
Expand Down
6 changes: 5 additions & 1 deletion src/glean/api_client/basesdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def _build_request_with_client(
data=serialized_request_body.data,
files=serialized_request_body.files,
headers=headers,
timeout=timeout,
timeout=timeout if timeout is not None else httpx.USE_CLIENT_DEFAULT,
)

def do_request(
Expand All @@ -245,6 +245,8 @@ def do():
http_res = None
try:
req = hooks.before_request(BeforeRequestContext(hook_ctx), request)
if "timeout" in request.extensions and "timeout" not in req.extensions:
req.extensions["timeout"] = request.extensions["timeout"]
logger.debug(
"Request:\nMethod: %s\nURL: %s\nHeaders: %s\nBody: %s",
req.method,
Expand Down Expand Up @@ -320,6 +322,8 @@ async def do():
hooks.before_request, BeforeRequestContext(hook_ctx), request
)

if "timeout" in request.extensions and "timeout" not in req.extensions:
req.extensions["timeout"] = request.extensions["timeout"]
logger.debug(
"Request:\nMethod: %s\nURL: %s\nHeaders: %s\nBody: %s",
req.method,
Expand Down
4 changes: 2 additions & 2 deletions src/glean/api_client/people.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ def index(
):
r"""Index employee

Adds an employee or updates information about an employee
Adds an employee or replaces the existing information about an employee.

:param employee: Describes employee info
:param version: Version number for the employee object. If absent or 0 then no version checks are done
Expand Down Expand Up @@ -501,7 +501,7 @@ async def index_async(
):
r"""Index employee

Adds an employee or updates information about an employee
Adds an employee or replaces the existing information about an employee.

:param employee: Describes employee info
:param version: Version number for the employee object. If absent or 0 then no version checks are done
Expand Down
2 changes: 1 addition & 1 deletion tests/test_messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def test_messages_messages():
res = glean.client.messages.retrieve(
id_type=models.IDType.CONVERSATION_ID,
id="<id>",
datasource=models.Datasource.FACEBOOKWORKPLACE,
datasource=models.Datasource.SLACK,
timestamp_millis=558834,
)
assert res is not None
5 changes: 3 additions & 2 deletions tests/test_summarize.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ def test_summarize_summarize():
res = glean.client.documents.summarize(
document_specs=[
{
"url": "https://deficient-majority.net",
"ugc_type": models.DocumentSpecUgcType2.CHATS,
"ugc_id": "<id>",
},
{
"ugc_type": models.DocumentSpecUgcType2.SHORTCUTS,
"ugc_type": models.DocumentSpecUgcType2.CHATS,
"ugc_id": "<id>",
},
]
Expand Down