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
36 changes: 18 additions & 18 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: 6353c0f55e4a0e81bd102bec49feb762
docChecksum: 75dcb4ef654ae196b194eb433d5ff95e
docVersion: 0.9.0
speakeasyVersion: 1.796.4
generationVersion: 2.935.1
releaseVersion: 0.17.12
configChecksum: 5fbbac4e9e5f5b6acf6158ffcefc2770
releaseVersion: 0.17.13
configChecksum: d37a01084a303a979a07f43381a0ddd3
repoURL: https://github.com/gleanwork/api-client-python.git
installationURL: https://github.com/gleanwork/api-client-python.git
published: true
persistentEdits:
generation_id: 3bafbadd-aaa7-4df5-8065-0edf2eb71f29
pristine_commit_hash: f7c4444bc5dc4938fdc4809e5b752ca672f463e4
pristine_tree_hash: b56823691d8b11b034235c1a6aec249be447f854
generation_id: 3154d106-6806-4de0-b175-918a515cd721
pristine_commit_hash: 8d5d17c53fc3e4297a82d6af81ad4b6626cf22dd
pristine_tree_hash: cff8522ab0142eb0e9e66884c60dd8dce0a340df
features:
python:
acceptHeaders: 3.0.0
Expand Down Expand Up @@ -3834,8 +3834,8 @@ trackedFiles:
pristine_git_object: 79e388be87446ab6a4064b372bad0e8376d0cb5e
pyproject.toml:
id: 5d07e7d72637
last_write_checksum: sha1:81eb4ec8a966f48b6d4010f438f227e89f6164d0
pristine_git_object: e021b97aa8c7cf6dcc8ea74f9515a107e9fdfe40
last_write_checksum: sha1:eb7a93fd564e58d58885bbc5efbb39c22f2743b2
pristine_git_object: 3d7a9d9c2c6a91b82102ee963a3eab3c08dcf3dd
scripts/prepare_readme.py:
id: e0c5957a6035
last_write_checksum: sha1:c2c83f71dea61eb50c9e05da83b16d18b4da8794
Expand All @@ -3862,8 +3862,8 @@ trackedFiles:
pristine_git_object: 55f23c1feabfedeb7e8cd5bea8b910f0ae0b77d9
src/glean/api_client/_version.py:
id: 0ce22b26136b
last_write_checksum: sha1:3835e5cbd27c4b1ca3b8e76c9e02f25189af0ee3
pristine_git_object: 96bb92a0922c60e2194dc9a56d7189d564e631f2
last_write_checksum: sha1:802f198e3bdd2c7f707fd3e2b14e080bb12d2d75
pristine_git_object: 74957f86e0974a86fcf55d934ea94cf222d3160e
src/glean/api_client/agents.py:
id: b925701a9217
last_write_checksum: sha1:1d4b152d9d9260d1c97d4983f521f30b5cfa1085
Expand All @@ -3882,8 +3882,8 @@ trackedFiles:
pristine_git_object: bf7b1b3b25ce6530403b0dd9f60599d236c780ce
src/glean/api_client/chat_sdk.py:
id: f2f30e13ca42
last_write_checksum: sha1:7161d8eda9a12f32f1c4faa939f3a14e339983d6
pristine_git_object: 262cd0a4f7ff4ae38295007cad09ba7e7b306c1c
last_write_checksum: sha1:acdaeec3c4f12f543112a53120066de155f5cba9
pristine_git_object: 9a48f24ace4767119e7dce70e87ad8c9f0344c94
src/glean/api_client/client.py:
id: c0c188098f10
last_write_checksum: sha1:bfadba5dfdc64280fd9c7bdbf96a0651e5db429f
Expand Down Expand Up @@ -6926,8 +6926,8 @@ trackedFiles:
pristine_git_object: 22e0a4eab0ef8e54dcfd986084d01c14a56f47a6
src/glean/api_client/search.py:
id: a3b404a8b402
last_write_checksum: sha1:a46e1a0aca2fcf75971fdb1f6eb3b72529394c25
pristine_git_object: 91ea57d2012c5dda71fb1a4b5d420173d7c357b5
last_write_checksum: sha1:4c0766eb4af35b2cabd60ee4b3d0d1d617ef11ca
pristine_git_object: 0c1935e06607a39d513f45b02bf52a155a8614cd
src/glean/api_client/skills.py:
id: 79f3c37e1b5a
last_write_checksum: sha1:aebe5c9b6e2b24a13332ca13160d3994e008e477
Expand Down Expand Up @@ -10966,8 +10966,8 @@ trackedFiles:
pristine_git_object: 6cc8aeec3c52329d389081db0a27f10f53f214b9
tests/test_messages.py:
id: be23089b1f8b
last_write_checksum: sha1:b7415512608102fa07b1990a350a7da66946fe46
pristine_git_object: 636f01d348f30db3ee81985044634511b615af16
last_write_checksum: sha1:bef200db8e7fff0aa33ef17846f5054a2d035a88
pristine_git_object: 36643db35a2d2a3cf9d327379ee7a6cb30da51d0
tests/test_people.py:
id: 37c243940039
last_write_checksum: sha1:2b78b1c5ea17f267895188b1b48ff9fe2bc19f17
Expand All @@ -10994,8 +10994,8 @@ trackedFiles:
pristine_git_object: 63587d5a9e7b7e506ce9daf00d51ce92afb56035
tests/test_summarize.py:
id: a255d8a6f627
last_write_checksum: sha1:6244d4da1522f443776e78aeb31dd83ebdc90c42
pristine_git_object: 2b5d1f38b094214933fc3b8da79ff8ed979c5122
last_write_checksum: sha1:1fa40d6b0d438ba1eab1f497726f4290e131484d
pristine_git_object: 176748ca1a31da3ced2490494b227befe400ee32
tests/test_tools.py:
id: 70889bdf7321
last_write_checksum: sha1:e9e37efd6a65d805c02d70d548df9c87dd062b0e
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.17.12
version: 0.17.13
additionalDependencies:
dev: {}
main: {}
Expand Down
16 changes: 2 additions & 14 deletions .speakeasy/glean-merged-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ openapi: 3.1.0
info:
version: "0.9.0"
title: Glean API
x-source-commit-sha: c7223f0e466c632820e8ef482ecdbb03a025224a
x-open-api-commit-sha: 3c1ac65b05f5133def947499c01ef4e2ca3a6abd
x-source-commit-sha: 31a8965bc9e49871a44c872a19d7442c25790b41
x-open-api-commit-sha: 50797dafaa6c32f59f7dd18b9a5766b5321fffaa
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 Down Expand Up @@ -261,9 +261,6 @@ paths:
Run an assistant turn. The default response is JSON. HTTP clients request server-sent events by setting `stream` to true in the JSON body. An `Accept: text/event-stream` header does not replace `stream`.
operationId: platform-chat-create
x-visibility: Public
x-glean-experimental:
id: e65a0a77-97a2-4c91-be60-eae7f6238015
introduced: "2026-07-14"
x-codegen-request-body-name: payload
requestBody:
required: true
Expand Down Expand Up @@ -1076,9 +1073,6 @@ paths:
Errors: HTTP 422 `unprocessable_query` returns no `results` or `next_cursor`. See `warnings` on the response for non-blocking issues such as partially available results. Not every query issue produces a warning or error.
operationId: platform-search
x-visibility: Public
x-glean-experimental:
id: 5ab612fc-ed50-4419-bec3-e5fe83934653
introduced: "2026-04-08"
x-codegen-request-body-name: payload
requestBody:
required: true
Expand Down Expand Up @@ -1127,9 +1121,6 @@ paths:
Without `query`, returns field metadata only and does not run a search. With a nonblank `query`, provide exactly one `datasources` value to request suggested filter values for that query; no documents are returned and this endpoint does not include warning objects. See `FilterFieldInfo.values` for limitations on suggested values. Rate-limited requests return HTTP 429 with `Retry-After`; temporary backend unavailability returns HTTP 503.
operationId: platform-search-filters
x-visibility: Public
x-glean-experimental:
id: 0b585621-13fb-4544-bf20-5e1c99452735
introduced: "2026-05-12"
parameters:
- in: query
name: datasources
Expand Down Expand Up @@ -1762,9 +1753,6 @@ paths:
SDK-only logical operation. HTTP clients must call the base path; the URL fragment is not sent. Run an assistant turn as server-sent events. HTTP clients request this mode by setting `stream` to true in the JSON body.
operationId: platform-chat-create-stream
x-visibility: Public
x-glean-experimental:
id: e65a0a77-97a2-4c91-be60-eae7f6238015
introduced: "2026-07-14"
x-codegen-request-body-name: payload
requestBody:
required: true
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ speakeasyVersion: 1.796.4
sources:
Glean API:
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:1e388ffa2a80a940e8f0fb3ce853515e1b5ef08d3e855546e03189fc18dfe0b5
sourceBlobDigest: sha256:34614ce8f5e2b214149ec1268a4fec4c1a494bef586844d88f3f0182adfd89e4
sourceRevisionDigest: sha256:09eb059f0216714606cd4c098bf2c97994e46c67ba091ffd108681cf9ae831a5
sourceBlobDigest: sha256:a9418b93b4aaa7cd6d428375e23d233ffca2418e04be1fee988a029e3cb02931
tags:
- latest
Glean Client API:
Expand All @@ -16,10 +16,10 @@ targets:
glean:
source: Glean API
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:1e388ffa2a80a940e8f0fb3ce853515e1b5ef08d3e855546e03189fc18dfe0b5
sourceBlobDigest: sha256:34614ce8f5e2b214149ec1268a4fec4c1a494bef586844d88f3f0182adfd89e4
sourceRevisionDigest: sha256:09eb059f0216714606cd4c098bf2c97994e46c67ba091ffd108681cf9ae831a5
sourceBlobDigest: sha256:a9418b93b4aaa7cd6d428375e23d233ffca2418e04be1fee988a029e3cb02931
codeSamplesNamespace: glean-api-specs-python-code-samples
codeSamplesRevisionDigest: sha256:2311a87d41037242e80d5fd55b86ffb95c32e9ffdb75d19289fa4f2f10655689
codeSamplesRevisionDigest: sha256:378452df2ea1abfd42848dbaaa791971fea47c98f7845e9b7f313f12da2109f6
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 @@ -978,4 +978,14 @@ Based on:
### Generated
- [python v0.17.12] .
### Releases
- [PyPI v0.17.12] https://pypi.org/project/glean-api-client/0.17.12 - .
- [PyPI v0.17.12] https://pypi.org/project/glean-api-client/0.17.12 - .

## 2026-09-10 17:18:25
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.796.4 (2.935.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.17.13] .
### Releases
- [PyPI v0.17.13] https://pypi.org/project/glean-api-client/0.17.13 - .
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.17.12"
version = "0.17.13"
description = "Python Client SDK Generated by Speakeasy."
authors = [{ name = "Glean Technologies, Inc." },]
readme = "README-PYPI.md"
Expand Down
4 changes: 2 additions & 2 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.17.12"
__version__: str = "0.17.13"
__openapi_doc_version__: str = "0.9.0"
__gen_version__: str = "2.935.1"
__user_agent__: str = "speakeasy-sdk/python 0.17.12 2.935.1 0.9.0 glean-api-client"
__user_agent__: str = "speakeasy-sdk/python 0.17.13 2.935.1 0.9.0 glean-api-client"

try:
if __package__ is not None:
Expand Down
16 changes: 0 additions & 16 deletions src/glean/api_client/chat_sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,6 @@ def create(
tags=["Chat"],
extensions={
"x-codegen-request-body-name": "payload",
"x-glean-experimental": {
"id": "e65a0a77-97a2-4c91-be60-eae7f6238015",
"introduced": "2026-07-14",
},
"x-visibility": "Public",
},
),
Expand Down Expand Up @@ -220,10 +216,6 @@ async def create_async(
tags=["Chat"],
extensions={
"x-codegen-request-body-name": "payload",
"x-glean-experimental": {
"id": "e65a0a77-97a2-4c91-be60-eae7f6238015",
"introduced": "2026-07-14",
},
"x-visibility": "Public",
},
),
Expand Down Expand Up @@ -346,10 +338,6 @@ def create_stream(
tags=["Chat"],
extensions={
"x-codegen-request-body-name": "payload",
"x-glean-experimental": {
"id": "e65a0a77-97a2-4c91-be60-eae7f6238015",
"introduced": "2026-07-14",
},
"x-visibility": "Public",
},
),
Expand Down Expand Up @@ -484,10 +472,6 @@ async def create_stream_async(
tags=["Chat"],
extensions={
"x-codegen-request-body-name": "payload",
"x-glean-experimental": {
"id": "e65a0a77-97a2-4c91-be60-eae7f6238015",
"introduced": "2026-07-14",
},
"x-visibility": "Public",
},
),
Expand Down
24 changes: 2 additions & 22 deletions src/glean/api_client/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,6 @@ def query(
tags=["Search"],
extensions={
"x-codegen-request-body-name": "payload",
"x-glean-experimental": {
"id": "5ab612fc-ed50-4419-bec3-e5fe83934653",
"introduced": "2026-04-08",
},
"x-visibility": "Public",
},
),
Expand Down Expand Up @@ -258,10 +254,6 @@ async def query_async(
tags=["Search"],
extensions={
"x-codegen-request-body-name": "payload",
"x-glean-experimental": {
"id": "5ab612fc-ed50-4419-bec3-e5fe83934653",
"introduced": "2026-04-08",
},
"x-visibility": "Public",
},
),
Expand Down Expand Up @@ -371,13 +363,7 @@ def list_filters(
self.sdk_configuration.security, models.Security
),
tags=["Search"],
extensions={
"x-glean-experimental": {
"id": "0b585621-13fb-4544-bf20-5e1c99452735",
"introduced": "2026-05-12",
},
"x-visibility": "Public",
},
extensions={"x-visibility": "Public"},
),
request=req,
is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c),
Expand Down Expand Up @@ -490,13 +476,7 @@ async def list_filters_async(
self.sdk_configuration.security, models.Security
),
tags=["Search"],
extensions={
"x-glean-experimental": {
"id": "0b585621-13fb-4544-bf20-5e1c99452735",
"introduced": "2026-05-12",
},
"x-visibility": "Public",
},
extensions={"x-visibility": "Public"},
),
request=req,
is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c),
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.GCHAT,
datasource=models.Datasource.MICROSOFTTEAMS,
timestamp_millis=558834,
)
assert res is not None
6 changes: 3 additions & 3 deletions tests/test_summarize.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ def test_summarize_summarize():
res = glean.client.documents.summarize(
document_specs=[
{
"ugc_type": models.DocumentSpecUgcType2.ARTIFACTS,
"ugc_id": "<id>",
"id": "<id>",
},
{
"id": "<id>",
"ugc_type": models.DocumentSpecUgcType1.ANSWERS,
"content_id": 141216,
},
]
)
Expand Down
Loading