From 85975021faeacd9584ee6eec2172c34cafa0f9af Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 9 Sep 2026 03:33:33 +0000 Subject: [PATCH 1/2] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.796.4 --- .speakeasy/gen.lock | 32 +++++++++---------- .speakeasy/gen.yaml | 2 +- .speakeasy/glean-merged-spec.yaml | 4 +-- .speakeasy/workflow.lock | 10 +++--- RELEASES.md | 12 ++++++- pyproject.toml | 2 +- src/glean/api_client/_version.py | 4 +-- .../pathpostrestapiv1createcollection.go | 20 ++++++------ tests/test_messages.py | 2 +- tests/test_summarize.py | 5 +-- 10 files changed, 52 insertions(+), 41 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index eb1f1294..17b4d067 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,19 +1,19 @@ lockVersion: 2.0.0 id: 3e3290ca-0ee8-4981-b1bc-14536048fa63 management: - docChecksum: dd6abd9ee08a508ebb1071ee68eb0e80 + docChecksum: a3ab9dc80dc91ba0a076940b1f683f18 docVersion: 0.9.0 speakeasyVersion: 1.796.4 generationVersion: 2.935.1 - releaseVersion: 0.17.7 - configChecksum: d3c340f32536ae6a068993456bd45729 + releaseVersion: 0.17.8 + configChecksum: d9d278d52883b25bf44bfdb07996358c repoURL: https://github.com/gleanwork/api-client-python.git installationURL: https://github.com/gleanwork/api-client-python.git published: true persistentEdits: - generation_id: 46e7259d-4b13-49c5-999c-a16c82097917 - pristine_commit_hash: c8c809048b9112bd6174aba86ff3bd02e15309e9 - pristine_tree_hash: ec53fcb45e3709fadb24f45805fbef19230aad2c + generation_id: 32527516-26f6-4805-925d-a813334edb07 + pristine_commit_hash: a263a7d036111ecfcb895d0c3466cb3976b805ce + pristine_tree_hash: aa461bf22639bbd261e4ca0be65b5c24d39645e2 features: python: acceptHeaders: 3.0.0 @@ -3834,8 +3834,8 @@ trackedFiles: pristine_git_object: 79e388be87446ab6a4064b372bad0e8376d0cb5e pyproject.toml: id: 5d07e7d72637 - last_write_checksum: sha1:40fe08d7a145ca434536d73da37d2a4467e81c13 - pristine_git_object: 7624240e9c777979616d1287bcdeaa435cd900c0 + last_write_checksum: sha1:88b9b6a023db495623fd66e064c6379ba7c675bc + pristine_git_object: a78056c97869c2be8b6d96530c480ef870dda8e3 scripts/prepare_readme.py: id: e0c5957a6035 last_write_checksum: sha1:c2c83f71dea61eb50c9e05da83b16d18b4da8794 @@ -3862,8 +3862,8 @@ trackedFiles: pristine_git_object: 55f23c1feabfedeb7e8cd5bea8b910f0ae0b77d9 src/glean/api_client/_version.py: id: 0ce22b26136b - last_write_checksum: sha1:8cfccd1594d679f837adc654e176e9cdcb18f0b6 - pristine_git_object: 8463f61007fcc55303e78068ea36203c64eae11a + last_write_checksum: sha1:b5e0de782ee479a9f8fca4d40692979926f66f18 + pristine_git_object: 6c33e9ce84c628d56ea98295e23f4630a1d7971d src/glean/api_client/agents.py: id: b925701a9217 last_write_checksum: sha1:1d4b152d9d9260d1c97d4983f521f30b5cfa1085 @@ -7450,8 +7450,8 @@ trackedFiles: pristine_git_object: ab9263d43404e8e6f07af222a3e785aca2fbf35f tests/mockserver/internal/handler/pathpostrestapiv1createcollection.go: id: 3fb93a419933 - last_write_checksum: sha1:7b2ffc9e36bbfc20c3bc1894f3727f96aa94ac74 - pristine_git_object: 75fb8eb70f6913c8f83c2895f5542bee631ffdaf + last_write_checksum: sha1:09a57acc1d004a2fff76290b6c25e24471ad333e + pristine_git_object: 469bd6e6ee30bb11661f2a596a4504b75fa07da0 tests/mockserver/internal/handler/pathpostrestapiv1createshortcut.go: id: 8d9d3abb0c34 last_write_checksum: sha1:dcdf684a85e20db1aee571db9a54a3ee259d71d5 @@ -10966,8 +10966,8 @@ trackedFiles: pristine_git_object: 6cc8aeec3c52329d389081db0a27f10f53f214b9 tests/test_messages.py: id: be23089b1f8b - last_write_checksum: sha1:a91c985cd1d11560059dc448b10e0c7b75ed60e5 - pristine_git_object: dfdc18641f0d6c38d84b4603ad2da71f75f2e13c + last_write_checksum: sha1:bef200db8e7fff0aa33ef17846f5054a2d035a88 + pristine_git_object: 36643db35a2d2a3cf9d327379ee7a6cb30da51d0 tests/test_people.py: id: 37c243940039 last_write_checksum: sha1:2b78b1c5ea17f267895188b1b48ff9fe2bc19f17 @@ -10994,8 +10994,8 @@ trackedFiles: pristine_git_object: 63587d5a9e7b7e506ce9daf00d51ce92afb56035 tests/test_summarize.py: id: a255d8a6f627 - last_write_checksum: sha1:e95637837558aebd7cce24df0457f7825fba3592 - pristine_git_object: 5200573817a710a1fab52e90d50f180aa1850b62 + last_write_checksum: sha1:19e1270dae90c3ebc19d93365a0613815d9e5a0e + pristine_git_object: c55cf90ad4fc6407f3a8e208dffda40fd8d45661 tests/test_tools.py: id: 70889bdf7321 last_write_checksum: sha1:e9e37efd6a65d805c02d70d548df9c87dd062b0e diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 79158422..142ce2c0 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -34,7 +34,7 @@ generation: generateNewTests: true skipResponseBodyAssertions: true python: - version: 0.17.7 + version: 0.17.8 additionalDependencies: dev: {} main: {} diff --git a/.speakeasy/glean-merged-spec.yaml b/.speakeasy/glean-merged-spec.yaml index 2d93781f..0a8e43e9 100644 --- a/.speakeasy/glean-merged-spec.yaml +++ b/.speakeasy/glean-merged-spec.yaml @@ -2,8 +2,8 @@ openapi: 3.1.0 info: version: "0.9.0" title: Glean API - x-source-commit-sha: f8def30cb329c92015a24d37ded953172dd1696d - x-open-api-commit-sha: 1525d02a424d7308fb7e9d4390ec273c38aa0329 + x-source-commit-sha: 3bdadfcc5a4065b7ad79af7228d56e8bb7103242 + x-open-api-commit-sha: d913a8aacc566d250fec4d5e268280b9822b541e 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. diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 710de1d1..0f79dd66 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,8 +2,8 @@ speakeasyVersion: 1.796.4 sources: Glean API: sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:005d78f29bd03a8b8fcdde38ac9e64e09e9b8d73eded4671c6bfce88ff214b2f - sourceBlobDigest: sha256:517954252207cdaa231520a046fe0ba8880013935b6b339b8ab9bbfc3584d1b6 + sourceRevisionDigest: sha256:8f19b404373679d7d3ca1b003102e56f23a84e72b0564fe8609c73edc3d1f7a7 + sourceBlobDigest: sha256:dd59024c27d1072f61d1d2c6c9c5ffc23292d9761ba0cf5899b8a104fc5d1d83 tags: - latest Glean Client API: @@ -16,10 +16,10 @@ targets: glean: source: Glean API sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:005d78f29bd03a8b8fcdde38ac9e64e09e9b8d73eded4671c6bfce88ff214b2f - sourceBlobDigest: sha256:517954252207cdaa231520a046fe0ba8880013935b6b339b8ab9bbfc3584d1b6 + sourceRevisionDigest: sha256:8f19b404373679d7d3ca1b003102e56f23a84e72b0564fe8609c73edc3d1f7a7 + sourceBlobDigest: sha256:dd59024c27d1072f61d1d2c6c9c5ffc23292d9761ba0cf5899b8a104fc5d1d83 codeSamplesNamespace: glean-api-specs-python-code-samples - codeSamplesRevisionDigest: sha256:fec9a459650aa0cc94e88d46449b09e47e45f671191814b91e1dbc8974096024 + codeSamplesRevisionDigest: sha256:9812f3df6c7e985bf52b7f3637d68c924e072cc881b472ae54d3954e6c9ce999 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/RELEASES.md b/RELEASES.md index b3932828..3b9cb13f 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -928,4 +928,14 @@ Based on: ### Generated - [python v0.17.7] . ### Releases -- [PyPI v0.17.7] https://pypi.org/project/glean-api-client/0.17.7 - . \ No newline at end of file +- [PyPI v0.17.7] https://pypi.org/project/glean-api-client/0.17.7 - . + +## 2026-09-09 03:29:20 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.796.4 (2.935.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v0.17.8] . +### Releases +- [PyPI v0.17.8] https://pypi.org/project/glean-api-client/0.17.8 - . \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 7624240e..a78056c9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "glean-api-client" -version = "0.17.7" +version = "0.17.8" description = "Python Client SDK Generated by Speakeasy." authors = [{ name = "Glean Technologies, Inc." },] readme = "README-PYPI.md" diff --git a/src/glean/api_client/_version.py b/src/glean/api_client/_version.py index 8463f610..6c33e9ce 100644 --- a/src/glean/api_client/_version.py +++ b/src/glean/api_client/_version.py @@ -3,10 +3,10 @@ import importlib.metadata __title__: str = "glean-api-client" -__version__: str = "0.17.7" +__version__: str = "0.17.8" __openapi_doc_version__: str = "0.9.0" __gen_version__: str = "2.935.1" -__user_agent__: str = "speakeasy-sdk/python 0.17.7 2.935.1 0.9.0 glean-api-client" +__user_agent__: str = "speakeasy-sdk/python 0.17.8 2.935.1 0.9.0 glean-api-client" try: if __package__ is not None: diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1createcollection.go b/tests/mockserver/internal/handler/pathpostrestapiv1createcollection.go index 75fb8eb7..469bd6e6 100644 --- a/tests/mockserver/internal/handler/pathpostrestapiv1createcollection.go +++ b/tests/mockserver/internal/handler/pathpostrestapiv1createcollection.go @@ -56,14 +56,14 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ operations.ResponseBody2{ Collection: &components.Collection{ Name: "", - Description: "motionless whenever paintwork import over cuckoo", + Description: "whole busily jive hawk gee basic minus hence", AddedRoles: []components.UserRoleSpecification{ components.UserRoleSpecification{ Person: &components.Person{ Name: "George Clooney", ObfuscatedID: "abc123", }, - Role: components.UserRoleOwner, + Role: components.UserRoleAnswerModerator, }, }, RemovedRoles: []components.UserRoleSpecification{ @@ -90,7 +90,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ }, }, }, - ID: 363711, + ID: 158969, Creator: &components.Person{ Name: "George Clooney", ObfuscatedID: "abc123", @@ -101,7 +101,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ }, Items: []components.CollectionItem{ components.CollectionItem{ - CollectionID: 570197, + CollectionID: 110375, CreatedBy: &components.Person{ Name: "George Clooney", ObfuscatedID: "abc123", @@ -278,13 +278,13 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ Name: "George Clooney", ObfuscatedID: "abc123", }, - Role: components.UserRoleAnswerModerator, + Role: components.UserRoleEditor, }, }, }, Collection: &components.Collection{ Name: "", - Description: "athwart skateboard newsstand farm bourgeoisie ah how elliptical aha well-to-do", + Description: "wedge colorfully orientate rally", AudienceFilters: []components.FacetFilter{ components.FacetFilter{ FieldName: types.String("type"), @@ -300,7 +300,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ }, }, }, - ID: 643990, + ID: 131797, Creator: &components.Person{ Name: "George Clooney", ObfuscatedID: "abc123", @@ -312,7 +312,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ Children: []components.Collection{ components.Collection{ Name: "", - Description: "woot purse salty even as advanced", + Description: "outside yippee sidetrack mature regularly mouser inject worth", AudienceFilters: []components.FacetFilter{ components.FacetFilter{ FieldName: types.String("type"), @@ -328,7 +328,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ }, }, }, - ID: 359978, + ID: 149448, Creator: &components.Person{ Name: "George Clooney", ObfuscatedID: "abc123", @@ -340,7 +340,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ }, }, }, - ItemType: components.CollectionItemItemTypeURL, + ItemType: components.CollectionItemItemTypeCollection, }, }, }, diff --git a/tests/test_messages.py b/tests/test_messages.py index dfdc1864..36643db3 100644 --- a/tests/test_messages.py +++ b/tests/test_messages.py @@ -18,7 +18,7 @@ def test_messages_messages(): res = glean.client.messages.retrieve( id_type=models.IDType.CONVERSATION_ID, id="", - datasource=models.Datasource.SLACKENTGRID, + datasource=models.Datasource.MICROSOFTTEAMS, timestamp_millis=558834, ) assert res is not None diff --git a/tests/test_summarize.py b/tests/test_summarize.py index 52005738..c55cf90a 100644 --- a/tests/test_summarize.py +++ b/tests/test_summarize.py @@ -18,11 +18,12 @@ def test_summarize_summarize(): res = glean.client.documents.summarize( document_specs=[ { - "ugc_type": models.DocumentSpecUgcType2.COLLECTIONS, + "ugc_type": models.DocumentSpecUgcType2.ANNOUNCEMENTS, "ugc_id": "", }, { - "url": "https://necessary-dandelion.net", + "ugc_type": models.DocumentSpecUgcType1.COLLECTIONS, + "content_id": 337360, }, ] ) From ca6254f71dab4e506fded4f2362c34448fcc5985 Mon Sep 17 00:00:00 2001 From: "speakeasy-github[bot]" <128539517+speakeasy-github[bot]@users.noreply.github.com> Date: Wed, 9 Sep 2026 03:33:41 +0000 Subject: [PATCH 2/2] empty commit to trigger [run-tests] workflow