Skip to content
Open
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
48 changes: 22 additions & 26 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: 342db3c3e961e5c5bd4d74702a75f99d
docChecksum: 629dcd659b8991b4076d0eddb448e866
docVersion: 0.9.0
speakeasyVersion: 1.761.1
generationVersion: 2.879.6
releaseVersion: 0.12.20
configChecksum: 118c8b5d37717e432d05b23672b24c21
speakeasyVersion: 1.761.3
generationVersion: 2.879.11
releaseVersion: 0.12.21
configChecksum: 20ebb8ffe32a0f4d771511e5395aafc8
repoURL: https://github.com/gleanwork/api-client-python.git
installationURL: https://github.com/gleanwork/api-client-python.git
published: true
persistentEdits:
generation_id: c252eb6e-6ce5-4eba-9dca-21d3c3db7a16
pristine_commit_hash: 1591a9ac40fc7b3e4fca24297e6846d1b9bbc01c
pristine_tree_hash: 8f15c3bdeb9247be31ce867946d42a3770f3ffc1
generation_id: b9755ff4-0f6d-4aec-a34a-a2c23feb2dce
pristine_commit_hash: 590dbfd65ea065400ff2a576977b84d4e919d78f
pristine_tree_hash: 2ad08faf09bee4b0860a4e666fa8187bc241b2f1
features:
python:
additionalDependencies: 1.0.0
Expand Down Expand Up @@ -687,8 +687,8 @@ trackedFiles:
pristine_git_object: a4b0b181977a85fe59b01ecdaa91574a651d91da
docs/models/customproperty.md:
id: b78e4b74d102
last_write_checksum: sha1:53a34f450bb06abfe86d2053c72c37b1396b5852
pristine_git_object: 3b363fbe4004aaf6476d0e6596226bd835cf4284
last_write_checksum: sha1:68ff7c444fdf2b0d8009dcb6f61dd3867333fa2b
pristine_git_object: 415897d4299dd3cd8105eb2f6e2a619dfab70e22
docs/models/customsensitiveexpression.md:
id: 978a0191d4b9
last_write_checksum: sha1:2d43d5d8b71ce4640b0a9b0cccc33350cb66a3f4
Expand Down Expand Up @@ -2775,8 +2775,8 @@ trackedFiles:
pristine_git_object: e2fda7fe263c2a111e53872e3ad5bc324b4dccfe
pyproject.toml:
id: 5d07e7d72637
last_write_checksum: sha1:c951a37ac61b64abea95db042bf2af7726bbe02b
pristine_git_object: dcdf40b65963a18a502e45c39a0c29f6cdbe3a10
last_write_checksum: sha1:65e0f2d22f0fc121be7ef0c65018a5d97077de6e
pristine_git_object: b482729a93c5c3738efa4e3b29751599f6aa54e0
scripts/prepare_readme.py:
id: e0c5957a6035
last_write_checksum: sha1:c2c83f71dea61eb50c9e05da83b16d18b4da8794
Expand All @@ -2803,8 +2803,8 @@ trackedFiles:
pristine_git_object: 58c4d70ac1797b86ff5c4237cafbc344c42d8f64
src/glean/api_client/_version.py:
id: 0ce22b26136b
last_write_checksum: sha1:c2aed2497aa6263744e15e15dd70b19c04bbab47
pristine_git_object: fe96c87c29efe2f67d0da2142bf872b686d989b4
last_write_checksum: sha1:4cc8ce7a84ff2626e04510f8fe3be0bbe6476271
pristine_git_object: 8e3c4c8b151a4190bad120974fe3ca6b523ef504
src/glean/api_client/agents.py:
id: b925701a9217
last_write_checksum: sha1:ee99ae3d58f7f77ac2eba99c104d04d53c16c09c
Expand Down Expand Up @@ -3447,8 +3447,8 @@ trackedFiles:
pristine_git_object: 68f0fa1e9afe47831a8611971f0c59435631f08e
src/glean/api_client/models/customproperty.py:
id: 86c08b8668b7
last_write_checksum: sha1:180a0db0e23351154fdbe9cd2461b4dba1f3f884
pristine_git_object: 584ffc76b1ae579c7dca6aff2ee019f4a8ff1e5f
last_write_checksum: sha1:291c2842c21527001b15d0178110e67609b638c2
pristine_git_object: 74cc710e0b93d3579db37ebb3e787d5a03a6210a
src/glean/api_client/models/customsensitiveexpression.py:
id: 2268022ee406
last_write_checksum: sha1:14109c3cfd41d0683caccb867ef4ff7c562931b1
Expand Down Expand Up @@ -5258,7 +5258,7 @@ trackedFiles:
tests/mockserver/internal/handler/pathpostrestapiv1getanswer.go:
last_write_checksum: sha1:80bc08894cebfd78f82d3d80f93fd85a11b55d45
tests/mockserver/internal/handler/pathpostrestapiv1getchat.go:
last_write_checksum: sha1:b48e2313407814ee4f8ed181b8e5299a84960c44
last_write_checksum: sha1:2267292ba8173cf8df70ddbc6ac02ff3439cb879
tests/mockserver/internal/handler/pathpostrestapiv1getchatapplication.go:
last_write_checksum: sha1:7b81898137fdb3a89b4dcfa318b9b5b92e8860c0
tests/mockserver/internal/handler/pathpostrestapiv1getchatfiles.go:
Expand Down Expand Up @@ -5556,7 +5556,7 @@ trackedFiles:
tests/mockserver/internal/sdk/models/components/customfieldvaluestr.go:
last_write_checksum: sha1:53652361319d7950efb17524252d2d0957b89df3
tests/mockserver/internal/sdk/models/components/customproperty.go:
last_write_checksum: sha1:8766ad24a8498cd586be06976363e82c6f9e6c35
last_write_checksum: sha1:09684d83735ed8c795769dd865450587db945d16
tests/mockserver/internal/sdk/models/components/customsensitiveexpression.go:
last_write_checksum: sha1:734702e350fe5a9a0eccf1ebe23fe5ba88de3de5
tests/mockserver/internal/sdk/models/components/customsensitiverule.go:
Expand Down Expand Up @@ -6577,8 +6577,8 @@ trackedFiles:
pristine_git_object: 6cc8aeec3c52329d389081db0a27f10f53f214b9
tests/test_messages.py:
id: be23089b1f8b
last_write_checksum: sha1:5db8087e85104ab50b362638150fa1f6686a3c30
pristine_git_object: c0fd29dab7d365ef9d78c0c291b925e6b9fd7298
last_write_checksum: sha1:bef200db8e7fff0aa33ef17846f5054a2d035a88
pristine_git_object: 36643db35a2d2a3cf9d327379ee7a6cb30da51d0
tests/test_people.py:
id: 37c243940039
last_write_checksum: sha1:7c7268ffeebe48d81ed25e9b1cfc3a395abf5c1f
Expand All @@ -6601,8 +6601,8 @@ trackedFiles:
pristine_git_object: df2944ebda36db652b2770dd1c23be83df90fc99
tests/test_summarize.py:
id: a255d8a6f627
last_write_checksum: sha1:0a66e5784eb0a938b4399c0829e4fd716735482b
pristine_git_object: ef4774cfa7c7777478cd7081760ef38fbb9a0f32
last_write_checksum: sha1:6383d6969c6f1bf1832e5ace511e5c2ffaa6d86f
pristine_git_object: cac8e9788f25fda1ff78bd2e3e36917319145e82
tests/test_tools.py:
id: 70889bdf7321
last_write_checksum: sha1:3c0c220f8975b050c322f6475e95f7af4e65b995
Expand Down Expand Up @@ -7530,10 +7530,6 @@ generatedTests:
checkdatasourceauth: "2026-02-19T15:48:52Z"
getDatasourceInstanceConfiguration: "2026-03-09T18:34:29Z"
updateDatasourceInstanceConfiguration: "2026-03-09T18:34:29Z"
releaseNotes: |
## Python SDK Changes:
* `glean.client.insights.retrieve()`: `response.agents_response` **Changed**
* `glean.client.search.retrieve_feed()`: `response.results[].primary_entry.prompt_template.favorite_info.ugc_type.enum(spreadsheet_type)` **Added**
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.20
version: 0.12.21
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: 3301b0cde4a4bf6d9bb67d909bfbfc2d97c47ad8
x-source-commit-sha: f2ae962323f01cf12a176c65bed1bb0050884ea0
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: f13962c9263237558900c5da6ccfa48ea4edb68c
x-open-api-commit-sha: 63c71e826ae22dc239aa9cc982cb898a33c601c5
x-speakeasy-name: 'Glean API'
servers:
- url: https://{instance}-be.glean.com
Expand Down Expand Up @@ -12071,7 +12071,7 @@ components:
name:
type: string
value:
description: Must either be a string or an array of strings. An integer, boolean, etc. is not valid. When OpenAPI Generator supports `oneOf`, we can semantically enforce this.
description: Must be a string, a number (for INT properties), or an array of strings. A boolean is not valid. When OpenAPI Generator supports `oneOf`, we can semantically enforce this.
description: Describes the custom properties of the object.
DatasourceConfig:
$ref: '#/components/schemas/SharedDatasourceConfig'
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.761.1
speakeasyVersion: 1.761.3
sources:
Glean API:
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:08d4d58caccd1bef6ef8e22dfcf97a354aded9212e6fea82f0aa6557c2ac60b7
sourceBlobDigest: sha256:6937879dbbc72083c2849b612846828aafdd666c568135d879d9a9f3b6ede95e
sourceRevisionDigest: sha256:298955e5e6914de1ac8747414590db02c264a4edf184ebff8b446f8a2ba15712
sourceBlobDigest: sha256:8a0efc26af973ae53a91ba8f27ab140407b7705110e8e509519f635cac688a84
tags:
- latest
Glean Client API:
Expand All @@ -16,10 +16,10 @@ targets:
glean:
source: Glean API
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:08d4d58caccd1bef6ef8e22dfcf97a354aded9212e6fea82f0aa6557c2ac60b7
sourceBlobDigest: sha256:6937879dbbc72083c2849b612846828aafdd666c568135d879d9a9f3b6ede95e
sourceRevisionDigest: sha256:298955e5e6914de1ac8747414590db02c264a4edf184ebff8b446f8a2ba15712
sourceBlobDigest: sha256:8a0efc26af973ae53a91ba8f27ab140407b7705110e8e509519f635cac688a84
codeSamplesNamespace: glean-api-specs-python-code-samples
codeSamplesRevisionDigest: sha256:236be967997805680d4e427baaf01aeddfc19c362e810b0602bd8c148d0b703b
codeSamplesRevisionDigest: sha256:a88babde35272bb8f62fe6b45bde03c7a407f5a14b40f1302b05749f9f4ec1d3
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 @@ -708,4 +708,14 @@ Based on:
### Generated
- [python v0.12.20] .
### Releases
- [PyPI v0.12.20] https://pypi.org/project/glean-api-client/0.12.20 - .
- [PyPI v0.12.20] https://pypi.org/project/glean-api-client/0.12.20 - .

## 2026-04-11 02:25:25
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.761.3 (2.879.11) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.12.21] .
### Releases
- [PyPI v0.12.21] https://pypi.org/project/glean-api-client/0.12.21 - .
8 changes: 4 additions & 4 deletions docs/models/customproperty.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Describes the custom properties of the object.

## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `name` | *Optional[str]* | :heavy_minus_sign: | N/A |
| `value` | *Optional[Any]* | :heavy_minus_sign: | Must either be a string or an array of strings. An integer, boolean, etc. is not valid. When OpenAPI Generator supports `oneOf`, we can semantically enforce this. |
| Field | Type | Required | Description |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `name` | *Optional[str]* | :heavy_minus_sign: | N/A |
| `value` | *Optional[Any]* | :heavy_minus_sign: | Must be a string, a number (for INT properties), or an array of strings. A boolean is not valid. When OpenAPI Generator supports `oneOf`, we can semantically enforce this. |
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.20"
version = "0.12.21"
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.20"
__version__: str = "0.12.21"
__openapi_doc_version__: str = "0.9.0"
__gen_version__: str = "2.879.6"
__user_agent__: str = "speakeasy-sdk/python 0.12.20 2.879.6 0.9.0 glean-api-client"
__gen_version__: str = "2.879.11"
__user_agent__: str = "speakeasy-sdk/python 0.12.21 2.879.11 0.9.0 glean-api-client"

try:
if __package__ is not None:
Expand Down
4 changes: 2 additions & 2 deletions src/glean/api_client/models/customproperty.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class CustomPropertyTypedDict(TypedDict):

name: NotRequired[str]
value: NotRequired[Any]
r"""Must either be a string or an array of strings. An integer, boolean, etc. is not valid. When OpenAPI Generator supports `oneOf`, we can semantically enforce this."""
r"""Must be a string, a number (for INT properties), or an array of strings. A boolean is not valid. When OpenAPI Generator supports `oneOf`, we can semantically enforce this."""


class CustomProperty(BaseModel):
Expand All @@ -21,7 +21,7 @@ class CustomProperty(BaseModel):
name: Optional[str] = None

value: Optional[Any] = None
r"""Must either be a string or an array of strings. An integer, boolean, etc. is not valid. When OpenAPI Generator supports `oneOf`, we can semantically enforce this."""
r"""Must be a string, a number (for INT properties), or an array of strings. A boolean is not valid. When OpenAPI Generator supports `oneOf`, we can semantically enforce this."""

@model_serializer(mode="wrap")
def serialize_model(self, handler):
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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.SLACK,
datasource=models.Datasource.MICROSOFTTEAMS,
timestamp_millis=558834,
)
assert res is not None
8 changes: 5 additions & 3 deletions tests/test_summarize.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""

from glean.api_client import Glean
from glean.api_client import Glean, models
import os
from tests.test_client import create_test_http_client

Expand All @@ -18,10 +18,12 @@ def test_summarize_summarize():
res = glean.client.documents.summarize(
document_specs=[
{
"url": "https://nervous-stall.info",
"ugc_type": models.DocumentSpecUgcType1.SHORTCUTS,
"content_id": 602763,
},
{
"id": "<id>",
"ugc_type": models.DocumentSpecUgcType1.SHORTCUTS,
"content_id": 602763,
},
]
)
Expand Down
Loading