Skip to content

Commit 17dcd9d

Browse files
committed
## Python SDK Changes:
* `glean.client.chat.create()`: * `request.messages[].citations[].source_file.metadata.status.enum(partially_processed)` **Added** * `response.messages[].citations[].source_file.metadata.status.enum(partially_processed)` **Added** * `glean.client.chat.retrieve()`: `response.chat_result.chat.messages[].citations[].source_file.metadata.status.enum(partially_processed)` **Added** * `glean.client.chat.upload_files()`: `response.files[].metadata.status.enum(partially_processed)` **Added** * `glean.client.chat.retrieve_files()`: `response.files.Map<ChatFile>.metadata.status.enum(partially_processed)` **Added** * `glean.client.chat.create_stream()`: * `request.messages[].citations[].source_file.metadata.status.enum(partially_processed)` **Added** * `glean.indexing.documents.add_or_update()`: * `request.document.native_app_url` **Added** * `glean.indexing.documents.index()`: * `request.documents[].native_app_url` **Added** * `glean.indexing.documents.bulk_index()`: * `request.documents[].native_app_url` **Added**
1 parent bff668a commit 17dcd9d

15 files changed

Lines changed: 94 additions & 54 deletions

File tree

.speakeasy/gen.lock

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
lockVersion: 2.0.0
22
id: 3e3290ca-0ee8-4981-b1bc-14536048fa63
33
management:
4-
docChecksum: fdf0172cfa3c17fc2b9350e88863c552
4+
docChecksum: 3b8b3e7417253c577cb20da9cb0fb7ab
55
docVersion: 0.9.0
6-
speakeasyVersion: 1.759.2
7-
generationVersion: 2.869.23
8-
releaseVersion: 0.12.17
9-
configChecksum: 36e865d74e209331ddf988d24ca6da34
6+
speakeasyVersion: 1.759.3
7+
generationVersion: 2.869.25
8+
releaseVersion: 0.12.18
9+
configChecksum: 55d8c28074319eb59aad3583f2c9d236
1010
repoURL: https://github.com/gleanwork/api-client-python.git
1111
installationURL: https://github.com/gleanwork/api-client-python.git
1212
published: true
1313
persistentEdits:
14-
generation_id: fbb5c9ca-5265-4b25-b41b-25b459bdc6fe
15-
pristine_commit_hash: f6944e91b07b083127f3fc7de62f63cf696ad8d6
16-
pristine_tree_hash: c4a9fa012a91caa1cf2657c40f29e369541a716e
14+
generation_id: ab219858-ca5f-4e1b-be9f-b88f9196a56a
15+
pristine_commit_hash: 297ec8b0526e82a2707586bbb72a368e6128bbe3
16+
pristine_tree_hash: a81b0d1f4b7fa5953fd4eaff3c9b4c00fd8d6380
1717
features:
1818
python:
1919
additionalDependencies: 1.0.0
@@ -399,8 +399,8 @@ trackedFiles:
399399
pristine_git_object: 67979aa2200513b9e68f924662801b4515d21bf8
400400
docs/models/chatfilestatus.md:
401401
id: 353dfcb79ee6
402-
last_write_checksum: sha1:6fcb6d99dcbf732251fb77cd46173c71e2d96912
403-
pristine_git_object: 55e4883a17539d1c3cac902664c3eb28da5aeec8
402+
last_write_checksum: sha1:14a82425ae8934057ad003b6329fe463aa8a8620
403+
pristine_git_object: d531ff5bcb94079a22528ff5a2b64e572bf677d6
404404
docs/models/chatmessage.md:
405405
id: 768623ba5622
406406
last_write_checksum: sha1:de3b12dcf57e893d4facbfc151263895f807605f
@@ -963,8 +963,8 @@ trackedFiles:
963963
pristine_git_object: 5fb524be4047a39a705ea7befc6aa8afe8cc7f5f
964964
docs/models/documentdefinition.md:
965965
id: 3177ff20ce95
966-
last_write_checksum: sha1:592bd655c232463ee0c9acb924a29a1fddd5ba12
967-
pristine_git_object: 497f8be3d27c23d6065e3bb5488de7ec5c2655b3
966+
last_write_checksum: sha1:6584c0b35fae2216e7b2960718654fddb1e696e0
967+
pristine_git_object: c1c884b1f6cfba977620b2f9a6a6b9d02feeb1b0
968968
docs/models/documentinteractions.md:
969969
id: 40929f336351
970970
last_write_checksum: sha1:ede65df5d5f50eeeaf919598bcb2c04ff569e552
@@ -2771,8 +2771,8 @@ trackedFiles:
27712771
pristine_git_object: e2fda7fe263c2a111e53872e3ad5bc324b4dccfe
27722772
pyproject.toml:
27732773
id: 5d07e7d72637
2774-
last_write_checksum: sha1:4c8e59fe26e0e3caca741226a4044e4880e33979
2775-
pristine_git_object: 2d8cfb5ec32dcd1f7d06bc9122312dddb8f1289f
2774+
last_write_checksum: sha1:e341f817e33aa4644d6a5b5cdaf9072bcd202aba
2775+
pristine_git_object: ef7641d7d740f4b2951e41fba5ec4c91e5c5d29b
27762776
scripts/prepare_readme.py:
27772777
id: e0c5957a6035
27782778
last_write_checksum: sha1:c2c83f71dea61eb50c9e05da83b16d18b4da8794
@@ -2799,8 +2799,8 @@ trackedFiles:
27992799
pristine_git_object: 58c4d70ac1797b86ff5c4237cafbc344c42d8f64
28002800
src/glean/api_client/_version.py:
28012801
id: 0ce22b26136b
2802-
last_write_checksum: sha1:02955598088a61b0e39227ac3d5b35fc38bdf052
2803-
pristine_git_object: bff6ca752d95863ce5a20b16f9b812fd7425935b
2802+
last_write_checksum: sha1:2a8e1885ffd3a18a97b41a8572aded8bb7c3f483
2803+
pristine_git_object: 7585c68fe8f1ef4ed6f406d8b5892f3a53c05153
28042804
src/glean/api_client/agents.py:
28052805
id: b925701a9217
28062806
last_write_checksum: sha1:ee99ae3d58f7f77ac2eba99c104d04d53c16c09c
@@ -3187,8 +3187,8 @@ trackedFiles:
31873187
pristine_git_object: b4cb6dc4f77e767d75cc0c4ce8402236536907c6
31883188
src/glean/api_client/models/chatfilestatus.py:
31893189
id: 0e6c1c7a372c
3190-
last_write_checksum: sha1:4af0557f8574e729bbd16805c2d02172bbef9eb6
3191-
pristine_git_object: 0628b167f1b538ab6b9c0ed6021708456aa98c31
3190+
last_write_checksum: sha1:2e48fd50170faf7835ed7ab1a1609cd8cf69f0d6
3191+
pristine_git_object: 8ae7bacc6529f41eb3aa272c575ca1553f481040
31923192
src/glean/api_client/models/chatmessage.py:
31933193
id: d1d93cc94501
31943194
last_write_checksum: sha1:5b0d3c530b2c6c9f34e4f54c2b670b85abed7627
@@ -3683,8 +3683,8 @@ trackedFiles:
36833683
pristine_git_object: 7a6ea0bf0feb7bb6f13045ca67007c9b73da4dd5
36843684
src/glean/api_client/models/documentdefinition.py:
36853685
id: a1d959d6d441
3686-
last_write_checksum: sha1:4437a60abba42afd2bd3c4f061fc882238ec353d
3687-
pristine_git_object: 99b4520fb04deb5887ef0b3d8cb1bfce49c628f4
3686+
last_write_checksum: sha1:5a0df41c3a76aca7fc7683e9ad65ea7ccb1f73d6
3687+
pristine_git_object: 1fa367c9949a6866dfdc4af3e9bbfbb88e308338
36883688
src/glean/api_client/models/documentinteractions.py:
36893689
id: 1cbd7f0ca8c2
36903690
last_write_checksum: sha1:1c43b48bba2be30ba492015b1ae3cbdd1ecba059
@@ -5432,7 +5432,7 @@ trackedFiles:
54325432
tests/mockserver/internal/sdk/models/components/chatfilemetadata.go:
54335433
last_write_checksum: sha1:4e608b0813ad32b7a981f73a511952b6459979e0
54345434
tests/mockserver/internal/sdk/models/components/chatfilestatus.go:
5435-
last_write_checksum: sha1:4f1e95ea4c1f64cfb9daab23820e907fe24f4efe
5435+
last_write_checksum: sha1:382dc2973696c71b36481555cc1eeed0379b3f2a
54365436
tests/mockserver/internal/sdk/models/components/chatmessage.go:
54375437
last_write_checksum: sha1:b813b4301b77532bbbc60fa85f3b44e21d7a740d
54385438
tests/mockserver/internal/sdk/models/components/chatmessagecitation.go:
@@ -5650,7 +5650,7 @@ trackedFiles:
56505650
tests/mockserver/internal/sdk/models/components/documentcontent.go:
56515651
last_write_checksum: sha1:17906e5b05e5396940805846f250c7c4b91a1bb9
56525652
tests/mockserver/internal/sdk/models/components/documentdefinition.go:
5653-
last_write_checksum: sha1:04dc959087a57790f99f0b47e6fe2359603b48ff
5653+
last_write_checksum: sha1:93c3d873dc6abfe6635cc10f544126aa75ff5a27
56545654
tests/mockserver/internal/sdk/models/components/documentinteractions.go:
56555655
last_write_checksum: sha1:5e29169410c2971f57b96b24ea4fad8b6437b79e
56565656
tests/mockserver/internal/sdk/models/components/documentinteractionsdefinition.go:
@@ -6567,8 +6567,8 @@ trackedFiles:
65676567
pristine_git_object: 6cc8aeec3c52329d389081db0a27f10f53f214b9
65686568
tests/test_messages.py:
65696569
id: be23089b1f8b
6570-
last_write_checksum: sha1:b7415512608102fa07b1990a350a7da66946fe46
6571-
pristine_git_object: 636f01d348f30db3ee81985044634511b615af16
6570+
last_write_checksum: sha1:bef200db8e7fff0aa33ef17846f5054a2d035a88
6571+
pristine_git_object: 36643db35a2d2a3cf9d327379ee7a6cb30da51d0
65726572
tests/test_people.py:
65736573
id: 37c243940039
65746574
last_write_checksum: sha1:7c7268ffeebe48d81ed25e9b1cfc3a395abf5c1f
@@ -6591,8 +6591,8 @@ trackedFiles:
65916591
pristine_git_object: df2944ebda36db652b2770dd1c23be83df90fc99
65926592
tests/test_summarize.py:
65936593
id: a255d8a6f627
6594-
last_write_checksum: sha1:d0245ffca1533446942ac2b0f1109d4f6e9888b4
6595-
pristine_git_object: f9c494d59cc7d73c8b3ea1c965b544c79625198a
6594+
last_write_checksum: sha1:6383d6969c6f1bf1832e5ace511e5c2ffaa6d86f
6595+
pristine_git_object: cac8e9788f25fda1ff78bd2e3e36917319145e82
65966596
tests/test_tools.py:
65976597
id: 70889bdf7321
65986598
last_write_checksum: sha1:3c0c220f8975b050c322f6475e95f7af4e65b995
@@ -7520,6 +7520,7 @@ generatedTests:
75207520
checkdatasourceauth: "2026-02-19T15:48:52Z"
75217521
getDatasourceInstanceConfiguration: "2026-03-09T18:34:29Z"
75227522
updateDatasourceInstanceConfiguration: "2026-03-09T18:34:29Z"
7523+
releaseNotes: "## Python SDK Changes:\n* `glean.client.chat.create()`: \n * `request.messages[].citations[].source_file.metadata.status.enum(partially_processed)` **Added**\n * `response.messages[].citations[].source_file.metadata.status.enum(partially_processed)` **Added**\n* `glean.client.chat.retrieve()`: `response.chat_result.chat.messages[].citations[].source_file.metadata.status.enum(partially_processed)` **Added**\n* `glean.client.chat.upload_files()`: `response.files[].metadata.status.enum(partially_processed)` **Added**\n* `glean.client.chat.retrieve_files()`: `response.files.Map<ChatFile>.metadata.status.enum(partially_processed)` **Added**\n* `glean.client.chat.create_stream()`: \n * `request.messages[].citations[].source_file.metadata.status.enum(partially_processed)` **Added**\n* `glean.indexing.documents.add_or_update()`: \n * `request.document.native_app_url` **Added**\n* `glean.indexing.documents.index()`: \n * `request.documents[].native_app_url` **Added**\n* `glean.indexing.documents.bulk_index()`: \n * `request.documents[].native_app_url` **Added**\n"
75237524
generatedFiles:
75247525
- .devcontainer/README.md
75257526
- .devcontainer/devcontainer.json

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ generation:
3434
generateNewTests: true
3535
skipResponseBodyAssertions: true
3636
python:
37-
version: 0.12.17
37+
version: 0.12.18
3838
additionalDependencies:
3939
dev: {}
4040
main: {}

.speakeasy/glean-merged-spec.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ openapi: 3.0.0
22
info:
33
version: 0.9.0
44
title: Glean API
5-
x-source-commit-sha: 7dfab98513e91afbfca673ee2a1f71cba51b38c2
5+
x-source-commit-sha: c97cd871585dc1b4d34ec4578e6a14287fa7dc48
66
description: |
77
# Introduction
88
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.
@@ -22,7 +22,7 @@ info:
2222
These API clients provide type-safe, idiomatic interfaces for working with Glean IndexingAPIs in your language of choice.
2323
x-logo:
2424
url: https://app.glean.com/images/glean-text2.svg
25-
x-open-api-commit-sha: f8e6b19f37fae9d74f0370dfb927dcb70b2e3eb0
25+
x-open-api-commit-sha: e74171e14f59ce7bcfabbda6a2622da882d38c77
2626
x-speakeasy-name: 'Glean API'
2727
servers:
2828
- url: https://{instance}-be.glean.com
@@ -7805,6 +7805,7 @@ components:
78057805
enum:
78067806
- PROCESSING
78077807
- PROCESSED
7808+
- PARTIALLY_PROCESSED
78087809
- FAILED
78097810
- DELETED
78107811
ChatFileFailureReason:
@@ -11860,6 +11861,9 @@ components:
1186011861
items:
1186111862
type: string
1186211863
description: Additional variations of the URL that this document points to.
11864+
nativeAppUrl:
11865+
type: string
11866+
description: A deep link, if available, into the datasource's native application for the user's platform (e.g. slack://channel/message).
1186311867
comments:
1186411868
type: array
1186511869
items:

.speakeasy/workflow.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
speakeasyVersion: 1.759.2
1+
speakeasyVersion: 1.759.3
22
sources:
33
Glean API:
44
sourceNamespace: glean-api-specs
5-
sourceRevisionDigest: sha256:338f3919e72098ba812ac6e2d8535d18790aeb6859124446995ace5d03b8e394
6-
sourceBlobDigest: sha256:7eac67196941c78368363c4fe4a51d27d9c4714bd8890d6456ca045a22c3d11c
5+
sourceRevisionDigest: sha256:1626615f37b6a814899100fa65b2bf22f13b7872d4a38e3b0453c648145192e6
6+
sourceBlobDigest: sha256:3f8aecfb13fdb58cf93bb670c8676e6a091b14616bfaad0a3b6a53601239d991
77
tags:
88
- latest
99
Glean Client API:
@@ -16,10 +16,10 @@ targets:
1616
glean:
1717
source: Glean API
1818
sourceNamespace: glean-api-specs
19-
sourceRevisionDigest: sha256:338f3919e72098ba812ac6e2d8535d18790aeb6859124446995ace5d03b8e394
20-
sourceBlobDigest: sha256:7eac67196941c78368363c4fe4a51d27d9c4714bd8890d6456ca045a22c3d11c
19+
sourceRevisionDigest: sha256:1626615f37b6a814899100fa65b2bf22f13b7872d4a38e3b0453c648145192e6
20+
sourceBlobDigest: sha256:3f8aecfb13fdb58cf93bb670c8676e6a091b14616bfaad0a3b6a53601239d991
2121
codeSamplesNamespace: glean-api-specs-python-code-samples
22-
codeSamplesRevisionDigest: sha256:c56e9f3cc28162c3a1732be6472426327003f3aeefbe5a814a408764fbcf7c02
22+
codeSamplesRevisionDigest: sha256:c955fa0218781c3e4fc1d95d0fa51ae5051cd077ff1730432ded1238b9a40532
2323
workflow:
2424
workflowVersion: 1.0.0
2525
speakeasyVersion: latest

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,4 +678,14 @@ Based on:
678678
### Generated
679679
- [python v0.12.17] .
680680
### Releases
681-
- [PyPI v0.12.17] https://pypi.org/project/glean-api-client/0.12.17 - .
681+
- [PyPI v0.12.17] https://pypi.org/project/glean-api-client/0.12.17 - .
682+
683+
## 2026-03-26 08:40:16
684+
### Changes
685+
Based on:
686+
- OpenAPI Doc
687+
- Speakeasy CLI 1.759.3 (2.869.25) https://github.com/speakeasy-api/speakeasy
688+
### Generated
689+
- [python v0.12.18] .
690+
### Releases
691+
- [PyPI v0.12.18] https://pypi.org/project/glean-api-client/0.12.18 - .

docs/models/chatfilestatus.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ value = ChatFileStatus.PROCESSING
1515

1616
## Values
1717

18-
| Name | Value |
19-
| ------------ | ------------ |
20-
| `PROCESSING` | PROCESSING |
21-
| `PROCESSED` | PROCESSED |
22-
| `FAILED` | FAILED |
23-
| `DELETED` | DELETED |
18+
| Name | Value |
19+
| --------------------- | --------------------- |
20+
| `PROCESSING` | PROCESSING |
21+
| `PROCESSED` | PROCESSED |
22+
| `PARTIALLY_PROCESSED` | PARTIALLY_PROCESSED |
23+
| `FAILED` | FAILED |
24+
| `DELETED` | DELETED |

docs/models/documentdefinition.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,6 @@ Indexable document structure
2828
| `interactions` | [Optional[models.DocumentInteractionsDefinition]](../models/documentinteractionsdefinition.md) | :heavy_minus_sign: | describes the interactions on the document |
2929
| `status` | *Optional[str]* | :heavy_minus_sign: | N/A |
3030
| `additional_urls` | List[*str*] | :heavy_minus_sign: | Additional variations of the URL that this document points to. |
31+
| `native_app_url` | *Optional[str]* | :heavy_minus_sign: | A deep link, if available, into the datasource's native application for the user's platform (e.g. slack://channel/message). |
3132
| `comments` | List[[models.CommentDefinition](../models/commentdefinition.md)] | :heavy_minus_sign: | Comments associated with the document. |
3233
| `custom_properties` | List[[models.CustomProperty](../models/customproperty.md)] | :heavy_minus_sign: | Additional metadata properties of the document. These can surface as [facets and operators](https://developers.glean.com/indexing/datasource/custom-properties/operators_and_facets). |

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
[project]
33
name = "glean-api-client"
4-
version = "0.12.17"
4+
version = "0.12.18"
55
description = "Python Client SDK Generated by Speakeasy."
66
authors = [{ name = "Glean Technologies, Inc." },]
77
readme = "README-PYPI.md"

src/glean/api_client/_version.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
import importlib.metadata
44

55
__title__: str = "glean-api-client"
6-
__version__: str = "0.12.17"
6+
__version__: str = "0.12.18"
77
__openapi_doc_version__: str = "0.9.0"
8-
__gen_version__: str = "2.869.23"
9-
__user_agent__: str = "speakeasy-sdk/python 0.12.17 2.869.23 0.9.0 glean-api-client"
8+
__gen_version__: str = "2.869.25"
9+
__user_agent__: str = "speakeasy-sdk/python 0.12.18 2.869.25 0.9.0 glean-api-client"
1010

1111
try:
1212
if __package__ is not None:

0 commit comments

Comments
 (0)