Skip to content

Commit 68e2592

Browse files
committed
## Python SDK Changes:
* `glean.client.insights.retrieve()`: `response.overview_response` **Changed** * `glean.client.governance.data.policies.download()`: `error.status[400]` **Added** * `glean.governance.createfindingsexport()`: * `request.filter.archived` **Added** * `response.filter.archived` **Added** * `glean.governance.listfindingsexports()`: `response.exports.[].filter.archived` **Added**
1 parent 36dc640 commit 68e2592

File tree

16 files changed

+287
-64
lines changed

16 files changed

+287
-64
lines changed

.speakeasy/gen.lock

Lines changed: 29 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
lockVersion: 2.0.0
22
id: 3e3290ca-0ee8-4981-b1bc-14536048fa63
33
management:
4-
docChecksum: 155a8a099a04ddbed1268d2c31ba186a
4+
docChecksum: ab6f7c2055518e13ee187a2eab332d63
55
docVersion: 0.9.0
6-
speakeasyVersion: 1.675.4
7-
generationVersion: 2.779.2
8-
releaseVersion: 0.11.25
9-
configChecksum: eeecb9b00ada03322b4c87d8ec90db91
6+
speakeasyVersion: 1.678.0
7+
generationVersion: 2.787.2
8+
releaseVersion: 0.11.26
9+
configChecksum: 0c1c9816fddc50402b01c1776fed290b
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: ae27c813-e27b-49f4-8b29-b8ea002c14e7
15-
pristine_commit_hash: dfb743e628fdc9144777502e9abdbc9ef378ce15
16-
pristine_tree_hash: eb9728fe81c4c32440414597ccce323de02cf3aa
14+
generation_id: 5818612a-f3dc-4259-990f-ae492cf14861
15+
pristine_commit_hash: 2e4e3cda483aab53ec9277f272e4fc25014c484d
16+
pristine_tree_hash: de97e62e70cd28ab4259404ae9d3e874db47ab43
1717
features:
1818
python:
1919
additionalDependencies: 1.0.0
2020
additionalProperties: 1.0.1
2121
configurableModuleName: 0.2.0
2222
constsAndDefaults: 1.0.5
23-
core: 5.23.13
23+
core: 5.23.14
2424
defaultEnabledRetries: 0.2.0
2525
deprecations: 3.0.2
2626
devContainers: 3.0.0
@@ -863,8 +863,8 @@ trackedFiles:
863863
pristine_git_object: 1ecf20234bdf5b3eef7acf6fd64a3cab21e8f426
864864
docs/models/dlpfindingfilter.md:
865865
id: 72eab9f49f83
866-
last_write_checksum: sha1:3e05c02f068497b454727e10e7bd5ca532fdd4d9
867-
pristine_git_object: e49bf3d650d63318146b2454d5ac97197934cbac
866+
last_write_checksum: sha1:4be69bed621e6c0433cc0a2617c3926241d7587b
867+
pristine_git_object: cf64c8cf51510a13bab54be7e3f90fd6db7e5f30
868868
docs/models/dlpfrequency.md:
869869
id: f4604a8ff945
870870
last_write_checksum: sha1:944330ad33b1bb325cd4ae91c483c477fa7aa5a2
@@ -1519,8 +1519,8 @@ trackedFiles:
15191519
pristine_git_object: 90e12f31c489fd3953b486a9ba20043f50362bc5
15201520
docs/models/insightsoverviewresponse.md:
15211521
id: c980a8e3a69e
1522-
last_write_checksum: sha1:04df4423d819bec8a572f5b35164ecded1f3f1b5
1523-
pristine_git_object: 6cd38a87732d77c1897c7506f30cf1b3642bfb70
1522+
last_write_checksum: sha1:a897dd65b610928d7980734f630b0e1f8bd3b400
1523+
pristine_git_object: 76c9c9a8334d732dd6fb8e01a5aeeeb448b93547
15241524
docs/models/insightsrequest.md:
15251525
id: 13eaa34edff4
15261526
last_write_checksum: sha1:3c7a299a7dc4c0e615ce11aaa18d6a3318330ab7
@@ -2611,8 +2611,8 @@ trackedFiles:
26112611
pristine_git_object: 8e34b78a71b8bb97bad6dea99d0f791beb134e5b
26122612
pyproject.toml:
26132613
id: 5d07e7d72637
2614-
last_write_checksum: sha1:5e9a1c86cdbf59f5853a8ff79c448cab1b21a33c
2615-
pristine_git_object: 74e7a505ae169183c934b33ef1e3550bbd93a903
2614+
last_write_checksum: sha1:233ebc1d99b9615e686ac8a7ee87edc4c55d5e56
2615+
pristine_git_object: 4d89b75dcebf511db639dab0144a4889f32bbf75
26162616
scripts/prepare_readme.py:
26172617
id: e0c5957a6035
26182618
last_write_checksum: sha1:c2c83f71dea61eb50c9e05da83b16d18b4da8794
@@ -2639,8 +2639,8 @@ trackedFiles:
26392639
pristine_git_object: 58c4d70ac1797b86ff5c4237cafbc344c42d8f64
26402640
src/glean/api_client/_version.py:
26412641
id: 0ce22b26136b
2642-
last_write_checksum: sha1:30abb718971de47ac189a7bd4cb7e7aad5c010ce
2643-
pristine_git_object: 54635c2e1ffa97430bf82ab8d4db3a8e77e1512d
2642+
last_write_checksum: sha1:b31075b7066455ec6588e9b329cdb2e9145e1811
2643+
pristine_git_object: 0fcd44b62b4f458f3787f80437bfe20a7bb4592b
26442644
src/glean/api_client/agents.py:
26452645
id: b925701a9217
26462646
last_write_checksum: sha1:56f1329fbf799ea92ed30229d4ed2404666d455d
@@ -2719,8 +2719,8 @@ trackedFiles:
27192719
pristine_git_object: b2f7acde3c293f63d1af370cf1bd4266048c3834
27202720
src/glean/api_client/errors/gleandataerror.py:
27212721
id: 8bae5389c0bf
2722-
last_write_checksum: sha1:c1370d185bd0200759b4a132866fd175a1e64641
2723-
pristine_git_object: 6ac9f877b4aef9427e0719ae16c611788b09a385
2722+
last_write_checksum: sha1:29d39ccabff4905216e98b25d1d265a71d731785
2723+
pristine_git_object: 978b0be0e85d64351fd71c8cfe765dbd341cf5ee
27242724
src/glean/api_client/errors/gleanerror.py:
27252725
id: 9f1d85652f59
27262726
last_write_checksum: sha1:a7a2bc1335123c6bd8c9f945a9c653f061e14167
@@ -3419,8 +3419,8 @@ trackedFiles:
34193419
pristine_git_object: bc314c4e6f96ffc46367d227afbc69e2fdd59a5e
34203420
src/glean/api_client/models/dlpfindingfilter.py:
34213421
id: 6ef2e5304df7
3422-
last_write_checksum: sha1:39d94eb282f4e0d7b131fff349210e4279176425
3423-
pristine_git_object: 4f262ed8053649a70c5dbf780c3395f37e694ae8
3422+
last_write_checksum: sha1:7941a1ce21fa0c6117a40a1addf5edc52147bd05
3423+
pristine_git_object: 903b3bb55b1c70b59082a9c889ce11866a2b0fd9
34243424
src/glean/api_client/models/dlpfrequency.py:
34253425
id: f6f484c2d7a4
34263426
last_write_checksum: sha1:7c48fc297e95a40d143de6e4b81b76f7db4dbfdd
@@ -3931,8 +3931,8 @@ trackedFiles:
39313931
pristine_git_object: 1c6f8a400a6e5374f693a3d03fe4cd9e0014e514
39323932
src/glean/api_client/models/insightsoverviewresponse.py:
39333933
id: 9f278319d18c
3934-
last_write_checksum: sha1:5e1c82a150a7bb7c9ff7a280c25bebaf3d890a96
3935-
pristine_git_object: 32b4ca5c917ebb888ebed9f65794d5b87741e6c3
3934+
last_write_checksum: sha1:020d966768b22c7254ba1fb4673a8ed4bd9efc74
3935+
pristine_git_object: ba7b19e9dd1754ee6fe914539b06fd1ca445fe81
39363936
src/glean/api_client/models/insightsrequest.py:
39373937
id: 72fbc9d1c47b
39383938
last_write_checksum: sha1:87d348f9999fff8d203241caf3f90151f5901122
@@ -4667,8 +4667,8 @@ trackedFiles:
46674667
pristine_git_object: 80d29702200a5b87416508d7633563589571a275
46684668
src/glean/api_client/policies.py:
46694669
id: 680f941e0620
4670-
last_write_checksum: sha1:cbcf5815fa49a379a67c314d44404bdd284d37d9
4671-
pristine_git_object: 5019d51b5c5e7f8e438f629d36741881d6ad0b63
4670+
last_write_checksum: sha1:e5797a03f6e6c29083253e7c4cc51e9e28a36f61
4671+
pristine_git_object: b2349e2e40906aee4b8bfb4b71a045c68e4b58b4
46724672
src/glean/api_client/py.typed:
46734673
id: 85a37d5088f9
46744674
last_write_checksum: sha1:8efc425ffe830805ffcc0f3055871bdcdc542c60
@@ -4920,7 +4920,7 @@ trackedFiles:
49204920
tests/mockserver/internal/handler/pathpostrestapiv1getanswer.go:
49214921
last_write_checksum: sha1:9c45e0ffbe103965b3ea958e27b5714800cbb613
49224922
tests/mockserver/internal/handler/pathpostrestapiv1getchat.go:
4923-
last_write_checksum: sha1:25e6199258b30554ac392297d555688ab652efff
4923+
last_write_checksum: sha1:627c477b522f353d942d075259ad5b4b09277b99
49244924
tests/mockserver/internal/handler/pathpostrestapiv1getchatapplication.go:
49254925
last_write_checksum: sha1:7b81898137fdb3a89b4dcfa318b9b5b92e8860c0
49264926
tests/mockserver/internal/handler/pathpostrestapiv1getchatfiles.go:
@@ -5298,7 +5298,7 @@ trackedFiles:
52985298
tests/mockserver/internal/sdk/models/components/dlpexportfindingsrequest.go:
52995299
last_write_checksum: sha1:0bc22bf0ef0c29a307616c120f898544e81660f7
53005300
tests/mockserver/internal/sdk/models/components/dlpfindingfilter.go:
5301-
last_write_checksum: sha1:f284a365d5f7346c8265a5488e24ece4080b126c
5301+
last_write_checksum: sha1:c71dd3ed02678385eda72478f6497fc342ad18a8
53025302
tests/mockserver/internal/sdk/models/components/dlpfrequency.go:
53035303
last_write_checksum: sha1:a43530a5536fc8d7e9e059f9256acb659e57f636
53045304
tests/mockserver/internal/sdk/models/components/dlpperson.go:
@@ -5530,7 +5530,7 @@ trackedFiles:
55305530
tests/mockserver/internal/sdk/models/components/insightsoverviewrequest.go:
55315531
last_write_checksum: sha1:f41a223c0da4e4edee140cdd8a7697a45969a239
55325532
tests/mockserver/internal/sdk/models/components/insightsoverviewresponse.go:
5533-
last_write_checksum: sha1:70827886af51f8dac41dff93943dff3b08c8fee4
5533+
last_write_checksum: sha1:6b78d9baa749aa3e03c2e20964a9a5ddcaab97ad
55345534
tests/mockserver/internal/sdk/models/components/insightsrequest.go:
55355535
last_write_checksum: sha1:eb012d78051f22fd42f8b58a31f1de61b6ee970a
55365536
tests/mockserver/internal/sdk/models/components/insightsresponse.go:
@@ -7144,10 +7144,7 @@ generatedTests:
71447144
updateshortcut: "2025-06-12T19:13:52-04:00"
71457145
listfindingsexports: "2025-12-10T17:53:31Z"
71467146
downloadfindingsexport: "2025-12-10T17:53:31Z"
7147-
releaseNotes: |
7148-
## Python SDK Changes:
7149-
* `glean.governance.createfindingsexport()`: `response.export_size` **Added**
7150-
* `glean.governance.listfindingsexports()`: `response.exports.[].export_size` **Added**
7147+
releaseNotes: "## Python SDK Changes:\n* `glean.client.insights.retrieve()`: `response.overview_response` **Changed**\n* `glean.client.governance.data.policies.download()`: `error.status[400]` **Added**\n* `glean.governance.createfindingsexport()`: \n * `request.filter.archived` **Added**\n * `response.filter.archived` **Added**\n* `glean.governance.listfindingsexports()`: `response.exports.[].filter.archived` **Added**\n"
71517148
generatedFiles:
71527149
- .devcontainer/README.md
71537150
- .devcontainer/devcontainer.json

.speakeasy/gen.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ generation:
3131
generateNewTests: true
3232
skipResponseBodyAssertions: true
3333
python:
34-
version: 0.11.25
34+
version: 0.11.26
3535
additionalDependencies:
3636
dev: {}
3737
main: {}
@@ -44,6 +44,7 @@ python:
4444
- Glean Technologies, Inc.
4545
baseErrorName: GleanBaseError
4646
clientServerStatusCodesAsErrors: true
47+
constFieldCasing: upper
4748
defaultErrorName: GleanError
4849
description: Python Client SDK Generated by Speakeasy.
4950
enableCustomCodeRegions: false

.speakeasy/glean-merged-spec.yaml

Lines changed: 33 additions & 5 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: 6c18cdaa8da169e191cc66885c326e2ea6d13644
5+
x-source-commit-sha: d9205b4abf37927406c7c566da63d600b5a7a4f4
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: c7a6190b989a16d24b879348f08e27efcb304566
25+
x-open-api-commit-sha: 78a742919a94b86dc51377d3b20a2aa3212abe08
2626
x-speakeasy-name: 'Glean API'
2727
servers:
2828
- url: https://{instance}-be.glean.com
@@ -3350,6 +3350,8 @@ paths:
33503350
schema:
33513351
description: CSV of all the violations found for this policy.
33523352
type: string
3353+
"400":
3354+
description: Bad request error (e.g., continuous policies are not supported).
33533355
"403":
33543356
description: Permissions error
33553357
"500":
@@ -7617,6 +7619,9 @@ components:
76177619
chatId:
76187620
type: string
76197621
description: The id of the Chat that context should be retrieved from and messages added to. An empty id starts a new Chat, and the Chat is saved if saveChat is true.
7622+
agentConfig:
7623+
$ref: "#/components/schemas/AgentConfig"
7624+
description: Describes the agent that will execute the request.
76207625
ChatRestrictionFilters:
76217626
allOf:
76227627
- $ref: "#/components/schemas/RestrictionFilters"
@@ -7635,9 +7640,6 @@ components:
76357640
- $ref: "#/components/schemas/ChatRequestBase"
76367641
- type: object
76377642
properties:
7638-
agentConfig:
7639-
$ref: "#/components/schemas/AgentConfig"
7640-
description: Describes the agent that will execute the request.
76417643
inclusions:
76427644
$ref: "#/components/schemas/ChatRestrictionFilters"
76437645
description: A list of filters which only allows chat to access certain content.
@@ -8718,6 +8720,30 @@ components:
87188720
$ref: "#/components/schemas/LabeledCountInfo"
87198721
dailyActiveUserTimeseries:
87208722
$ref: "#/components/schemas/LabeledCountInfo"
8723+
searchMonthlyActiveUserTimeseries:
8724+
$ref: "#/components/schemas/LabeledCountInfo"
8725+
searchWeeklyActiveUserTimeseries:
8726+
$ref: "#/components/schemas/LabeledCountInfo"
8727+
searchDailyActiveUserTimeseries:
8728+
$ref: "#/components/schemas/LabeledCountInfo"
8729+
assistantMonthlyActiveUserTimeseries:
8730+
$ref: "#/components/schemas/LabeledCountInfo"
8731+
assistantWeeklyActiveUserTimeseries:
8732+
$ref: "#/components/schemas/LabeledCountInfo"
8733+
assistantDailyActiveUserTimeseries:
8734+
$ref: "#/components/schemas/LabeledCountInfo"
8735+
agentsMonthlyActiveUserTimeseries:
8736+
$ref: "#/components/schemas/LabeledCountInfo"
8737+
agentsWeeklyActiveUserTimeseries:
8738+
$ref: "#/components/schemas/LabeledCountInfo"
8739+
agentsDailyActiveUserTimeseries:
8740+
$ref: "#/components/schemas/LabeledCountInfo"
8741+
searchesTimeseries:
8742+
$ref: "#/components/schemas/LabeledCountInfo"
8743+
assistantInteractionsTimeseries:
8744+
$ref: "#/components/schemas/LabeledCountInfo"
8745+
agentRunsTimeseries:
8746+
$ref: "#/components/schemas/LabeledCountInfo"
87218747
searchDatasourceCounts:
87228748
type: object
87238749
additionalProperties:
@@ -13045,6 +13071,8 @@ components:
1304513071
$ref: "#/components/schemas/DlpSeverity"
1304613072
timeRange:
1304713073
$ref: "#/components/schemas/TimeRangeFilter"
13074+
archived:
13075+
type: boolean
1304813076
ExportInfo:
1304913077
properties:
1305013078
createdBy:

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
speakeasyVersion: 1.675.4
1+
speakeasyVersion: 1.678.0
22
sources:
33
Glean API:
44
sourceNamespace: glean-api-specs
5-
sourceRevisionDigest: sha256:a38a82dd27fe58019cf7c85c19cbd402e93361c9df38ce070f2ca419eeab832f
6-
sourceBlobDigest: sha256:3840e8da76cb1e20b3c7f053acee46de0e4bcb58e17379e235342990ead4c8f8
5+
sourceRevisionDigest: sha256:f36c3374d8036650655ea0abae730c08c342f55ce22985904f6ecede456fce5f
6+
sourceBlobDigest: sha256:cfe52ca9be01cd085f1792a3783819b7c01791f9647d579ce642b14d2105368c
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1765503976
9+
- speakeasy-sdk-regen-1765586442
1010
Glean Client API:
1111
sourceNamespace: glean-client-api
1212
sourceRevisionDigest: sha256:4edc63ad559e4f2c9fb9ebf5edaaaaa9269f1874d271cfd84b441d6dacac43d2
@@ -17,10 +17,10 @@ targets:
1717
glean:
1818
source: Glean API
1919
sourceNamespace: glean-api-specs
20-
sourceRevisionDigest: sha256:a38a82dd27fe58019cf7c85c19cbd402e93361c9df38ce070f2ca419eeab832f
21-
sourceBlobDigest: sha256:3840e8da76cb1e20b3c7f053acee46de0e4bcb58e17379e235342990ead4c8f8
20+
sourceRevisionDigest: sha256:f36c3374d8036650655ea0abae730c08c342f55ce22985904f6ecede456fce5f
21+
sourceBlobDigest: sha256:cfe52ca9be01cd085f1792a3783819b7c01791f9647d579ce642b14d2105368c
2222
codeSamplesNamespace: glean-api-specs-python-code-samples
23-
codeSamplesRevisionDigest: sha256:f411ba167f9247fde5f4d1684411db4c43e5c04dcdcf5a631b904551a5fed7b1
23+
codeSamplesRevisionDigest: sha256:049c58bf36e9a996c088dc9107438febd3a0b7fe2d6dcb5bd9c3efa7402d4aad
2424
workflow:
2525
workflowVersion: 1.0.0
2626
speakeasyVersion: latest

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,4 +478,14 @@ Based on:
478478
### Generated
479479
- [python v0.11.25] .
480480
### Releases
481-
- [PyPI v0.11.25] https://pypi.org/project/glean-api-client/0.11.25 - .
481+
- [PyPI v0.11.25] https://pypi.org/project/glean-api-client/0.11.25 - .
482+
483+
## 2025-12-17 01:42:18
484+
### Changes
485+
Based on:
486+
- OpenAPI Doc
487+
- Speakeasy CLI 1.678.0 (2.787.2) https://github.com/speakeasy-api/speakeasy
488+
### Generated
489+
- [python v0.11.26] .
490+
### Releases
491+
- [PyPI v0.11.26] https://pypi.org/project/glean-api-client/0.11.26 - .

docs/models/dlpfindingfilter.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@
1313
| `document_ids` | List[*str*] | :heavy_minus_sign: | N/A |
1414
| `severity` | [Optional[models.DlpSeverity]](../models/dlpseverity.md) | :heavy_minus_sign: | Severity levels for DLP findings and analyses. |
1515
| `document_severity` | List[[models.DlpSeverity](../models/dlpseverity.md)] | :heavy_minus_sign: | N/A |
16-
| `time_range` | [Optional[models.TimeRangeFilter]](../models/timerangefilter.md) | :heavy_minus_sign: | N/A |
16+
| `time_range` | [Optional[models.TimeRangeFilter]](../models/timerangefilter.md) | :heavy_minus_sign: | N/A |
17+
| `archived` | *Optional[bool]* | :heavy_minus_sign: | N/A |

0 commit comments

Comments
 (0)