Skip to content

Commit ded9242

Browse files
committed
## Python SDK Changes Detected:
* `glean.client.announcements.create()`: * `request.body.structured_list.[].document.metadata.author.metadata.timezone_iana` **Added** * `response.body.structured_list.[].document.metadata.author.metadata.timezone_iana` **Added** * `glean.client.announcements.update()`: * `request.body.structured_list.[].document.metadata.author.metadata.timezone_iana` **Added** * `response.body.structured_list.[].document.metadata.author.metadata.timezone_iana` **Added** * `glean.client.answers.create()`: * `request.data.added_roles.[].person.metadata.timezone_iana` **Added** * `response.added_roles.[].person.metadata.timezone_iana` **Added** * `glean.client.answers.update()`: * `request.added_roles.[].person.metadata.timezone_iana` **Added** * `response.added_roles.[].person.metadata.timezone_iana` **Added** * `glean.client.answers.retrieve()`: `response.answer_result.answer.added_roles.[].person.metadata.timezone_iana` **Added** * `glean.client.answers.list()`: `response.answer_results.[].answer.added_roles.[].person.metadata.timezone_iana` **Added** * `glean.client.chat.create()`: * `request.messages.[].citations.[].source_document.metadata.author.metadata.timezone_iana` **Added** * `response.messages.[].citations.[].source_document.metadata.author.metadata.timezone_iana` **Added** * `glean.client.chat.retrieve()`: `response.chat_result.chat.created_by.metadata.timezone_iana` **Added** * `glean.client.chat.list()`: `response.chat_results.[].chat.created_by.metadata.timezone_iana` **Added** * `glean.client.chat.create_stream()`: * `request.messages.[].citations.[].source_document.metadata.author.metadata.timezone_iana` **Added** * `glean.client.collections.add_items()`: `response.collection.added_roles.[].person.metadata.timezone_iana` **Added** * `glean.client.collections.create()`: * `request.added_roles.[].person.metadata.timezone_iana` **Added** * `response.[class].collection.added_roles.[].person.metadata.timezone_iana` **Added** * `glean.client.collections.delete_item()`: `response.collection.added_roles.[].person.metadata.timezone_iana` **Added** * `glean.client.collections.update()`: * `request.added_roles.[].person.metadata.timezone_iana` **Added** * `response.added_roles.[].person.metadata.timezone_iana` **Added** * `glean.client.collections.update_item()`: `response.collection.added_roles.[].person.metadata.timezone_iana` **Added** * `glean.client.collections.retrieve()`: `response.collection.added_roles.[].person.metadata.timezone_iana` **Added** * `glean.client.collections.list()`: `response.collections.[].added_roles.[].person.metadata.timezone_iana` **Added** * `glean.client.documents.retrieve()`: `response.documents.{}.[document].metadata.author.metadata.timezone_iana` **Added** * `glean.client.documents.retrieve_by_facets()`: `response.documents.[].metadata.author.metadata.timezone_iana` **Added** * `glean.client.insights.retrieve()`: `response.users.activity_insights.[].user.metadata.timezone_iana` **Added** * `glean.client.messages.retrieve()`: `response.search_response.results.[].structured_results.[].document.metadata.author.metadata.timezone_iana` **Added** * `glean.client.pins.update()`: `response.attribution.metadata.timezone_iana` **Added** * `glean.client.pins.retrieve()`: `response.pin.attribution.metadata.timezone_iana` **Added** * `glean.client.pins.list()`: `response.pins.[].attribution.metadata.timezone_iana` **Added** * `glean.client.pins.create()`: `response.attribution.metadata.timezone_iana` **Added** * `glean.client.search.query_as_admin()`: * `request.source_document.metadata.author.metadata.timezone_iana` **Added** * `response.results.[].structured_results.[].document.metadata.author.metadata.timezone_iana` **Added** * `glean.client.search.autocomplete()`: `response.results.[].document.metadata.author.metadata.timezone_iana` **Added** * `glean.client.search.retrieve_feed()`: `response.results.[].primary_entry.created_by.metadata.timezone_iana` **Added** * `glean.client.search.recommendations()`: * `request.source_document.metadata.author.metadata.timezone_iana` **Added** * `response.results.[].structured_results.[].document.metadata.author.metadata.timezone_iana` **Added** * `glean.client.search.query()`: * `request.source_document.metadata.author.metadata.timezone_iana` **Added** * `response.results.[].structured_results.[].document.metadata.author.metadata.timezone_iana` **Added** * `glean.client.entities.list()`: `response.results.[].metadata.timezone_iana` **Added** * `glean.client.entities.read_people()`: `response.results.[].metadata.timezone_iana` **Added** * `glean.client.shortcuts.create()`: * `request.data.added_roles.[].person.metadata.timezone_iana` **Added** * `response.shortcut.added_roles.[].person.metadata.timezone_iana` **Added** * `glean.client.shortcuts.retrieve()`: `response.shortcut.added_roles.[].person.metadata.timezone_iana` **Added** * `glean.client.shortcuts.list()`: `response.shortcuts.[].added_roles.[].person.metadata.timezone_iana` **Added** * `glean.client.shortcuts.update()`: * `request.added_roles.[].person.metadata.timezone_iana` **Added** * `response.shortcut.added_roles.[].person.metadata.timezone_iana` **Added** * `glean.client.verification.add_reminder()`: `response.metadata.last_verifier.metadata.timezone_iana` **Added** * `glean.client.verification.list()`: `response.documents.[].metadata.last_verifier.metadata.timezone_iana` **Added** * `glean.client.verification.verify()`: `response.metadata.last_verifier.metadata.timezone_iana` **Added** * `glean.client.governance.data.policies.retrieve()`: `response.report.config.sensitive_content_options.custom_sensitive_expressions` **Added** * `glean.client.governance.data.policies.update()`: * `request.config.sensitive_content_options.custom_sensitive_expressions` **Added** * `glean.client.governance.data.policies.list()`: `response.reports.[].config.sensitive_content_options.custom_sensitive_expressions` **Added** * `glean.client.governance.data.policies.create()`: * `request.config.sensitive_content_options.custom_sensitive_expressions` **Added** * `response.report.config.sensitive_content_options.custom_sensitive_expressions` **Added** * `glean.client.governance.data.reports.create()`: * `request.config.sensitive_content_options.custom_sensitive_expressions` **Added**
1 parent 70b6107 commit ded9242

32 files changed

+6684
-65
lines changed

.speakeasy/gen.lock

Lines changed: 6126 additions & 7 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ generation:
2929
generateTests: true
3030
generateNewTests: true
3131
skipResponseBodyAssertions: true
32+
persistentEdits: {}
3233
python:
33-
version: 0.11.22
34+
version: 0.12.1
3435
additionalDependencies:
3536
dev: {}
3637
main: {}
@@ -61,12 +62,14 @@ python:
6162
operations: ""
6263
shared: ""
6364
webhooks: ""
65+
inferUnionDiscriminators: true
6466
inputModelSuffix: input
6567
legacyPyright: true
6668
license: ""
6769
maxMethodParams: 999
6870
methodArguments: infer-optional-args
6971
moduleName: glean.api_client
72+
multipartArrayFormat: standard
7073
outputModelSuffix: output
7174
packageManager: poetry
7275
packageName: glean
@@ -75,4 +78,3 @@ python:
7578
responseFormat: flat
7679
sseFlatResponse: false
7780
templateVersion: v2
78-
multipartArrayFormat: standard

.speakeasy/glean-merged-spec.yaml

Lines changed: 111 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: 1c30a2e9466bf278374bd82863042433f7fa8a6d
5+
x-source-commit-sha: 2bbd61ef6116725eb328559336d2752ce7940292
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: bfa098a27c3b8f11087766de34606765c946e305
25+
x-open-api-commit-sha: 1a08b7ecfeb027c78e5702ec4681d67ca5e9ba44
2626
x-speakeasy-name: 'Glean API'
2727
servers:
2828
- url: https://{instance}-be.glean.com
@@ -6473,6 +6473,9 @@ components:
64736473
type: integer
64746474
format: int64
64756475
description: The offset of the person's timezone in seconds from UTC.
6476+
timezoneIANA:
6477+
type: string
6478+
description: The IANA timezone identifier, e.g. "America/Los_Angeles".
64766479
photoUrl:
64776480
type: string
64786481
format: url
@@ -8069,6 +8072,7 @@ components:
80698072
- VISITORS_COUNT
80708073
- RECENT_SHARES
80718074
- DOCUMENT_CONTENT
8075+
- CUSTOM_METADATA
80728076
DocumentOrError:
80738077
oneOf:
80748078
- $ref: "#/components/schemas/Document"
@@ -12092,6 +12096,26 @@ components:
1209212096
description: List of lifecycle events corresponding to the document
1209312097
items:
1209412098
$ref: "#/components/schemas/LifeCycleEvent"
12099+
SuccessResponse:
12100+
type: object
12101+
description: Success response for custom metadata operations
12102+
properties:
12103+
success:
12104+
type: boolean
12105+
description: Indicates if the operation was successful
12106+
default: true
12107+
ErrorInfoResponse:
12108+
type: object
12109+
description: Error response for custom metadata operations
12110+
properties:
12111+
error:
12112+
type: string
12113+
description: Error message describing what went wrong
12114+
message:
12115+
type: string
12116+
description: Additional details about the error
12117+
required:
12118+
- error
1209512119
PropertyDefinition:
1209612120
properties:
1209712121
name:
@@ -12537,24 +12561,69 @@ components:
1253712561
type: array
1253812562
items:
1253912563
$ref: "#/components/schemas/Hotword"
12564+
CustomSensitiveRuleType:
12565+
type: string
12566+
description: Type of the custom sensitive rule.
12567+
enum:
12568+
- REGEX
12569+
- TERM
12570+
- INFO_TYPE
12571+
CustomSensitiveRule:
12572+
properties:
12573+
id:
12574+
description: Identifier for the custom sensitive expression.
12575+
type: string
12576+
value:
12577+
type: string
12578+
description: The value of the custom sensitive rule. For REGEX type, this is the regex pattern; for TERM type, it is the term to match; and for INFO_TYPE type, it refers to predefined categories of sensitive content. See https://cloud.google.com/dlp/docs/infotypes-reference for available options.
12579+
type:
12580+
$ref: "#/components/schemas/CustomSensitiveRuleType"
12581+
likelihoodThreshold:
12582+
description: Likelihood threshold for BUILT_IN infotypes (e.g., LIKELY, VERY_LIKELY). Only applicable for BUILT_IN type.
12583+
type: string
12584+
enum:
12585+
- LIKELY
12586+
- VERY_LIKELY
12587+
- POSSIBLE
12588+
- UNLIKELY
12589+
- VERY_UNLIKELY
12590+
CustomSensitiveExpression:
12591+
properties:
12592+
id:
12593+
description: Identifier for the custom sensitive expression.
12594+
type: string
12595+
keyword:
12596+
description: The keyword to match against.
12597+
$ref: "#/components/schemas/CustomSensitiveRule"
12598+
evaluationExpression:
12599+
description: The expression to evaluate the keyword match.
12600+
type: string
1254012601
SensitiveContentOptions:
1254112602
description: Options for defining sensitive content within scanned documents.
1254212603
properties:
1254312604
sensitiveInfoTypes:
12544-
description: Predefined categories of terms to consider as sensitive content. See https://cloud.google.com/dlp/docs/infotypes-reference for available types.
12605+
deprecated: true
12606+
description: DEPRECATED - use 'customSensitiveExpressions' instead.
1254512607
type: array
1254612608
items:
1254712609
$ref: "#/components/schemas/SensitiveInfoType"
1254812610
sensitiveTerms:
12549-
description: list of words and phrases to consider as sensitive content
12611+
deprecated: true
12612+
description: DEPRECATED - use 'customSensitiveExpressions' instead.
1255012613
type: array
1255112614
items:
1255212615
$ref: "#/components/schemas/SensitiveExpression"
1255312616
sensitiveRegexes:
12554-
description: list of regular expressions to consider as sensitive content
12617+
deprecated: true
12618+
description: DEPRECATED - use 'customSensitiveExpressions' instead.
1255512619
type: array
1255612620
items:
1255712621
$ref: "#/components/schemas/SensitiveExpression"
12622+
customSensitiveExpressions:
12623+
description: list of custom sensitive expressions to consider as sensitive content
12624+
type: array
12625+
items:
12626+
$ref: "#/components/schemas/CustomSensitiveExpression"
1255812627
DlpPersonMetadata:
1255912628
properties:
1256012629
firstName:
@@ -12869,6 +12938,43 @@ components:
1286912938
description: The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC.
1287012939
schema:
1287112940
type: integer
12941+
responses:
12942+
SuccessResponse:
12943+
description: OK
12944+
content:
12945+
application/json:
12946+
schema:
12947+
$ref: "#/components/schemas/SuccessResponse"
12948+
BadRequestError:
12949+
description: Bad Request
12950+
content:
12951+
application/json:
12952+
schema:
12953+
$ref: "#/components/schemas/ErrorInfoResponse"
12954+
UnauthorizedError:
12955+
description: Not Authorized
12956+
content:
12957+
application/json:
12958+
schema:
12959+
$ref: "#/components/schemas/ErrorInfoResponse"
12960+
NotFoundError:
12961+
description: Not Found
12962+
content:
12963+
application/json:
12964+
schema:
12965+
$ref: "#/components/schemas/ErrorInfoResponse"
12966+
TooManyRequestsError:
12967+
description: Too Many Requests
12968+
content:
12969+
application/json:
12970+
schema:
12971+
$ref: "#/components/schemas/ErrorInfoResponse"
12972+
InternalServerError:
12973+
description: Internal Server Error
12974+
content:
12975+
application/json:
12976+
schema:
12977+
$ref: "#/components/schemas/ErrorInfoResponse"
1287212978
x-tagGroups:
1287312979
- name: Search & Generative AI
1287412980
tags:

.speakeasy/workflow.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ speakeasyVersion: 1.650.0
22
sources:
33
Glean API:
44
sourceNamespace: glean-api-specs
5-
sourceRevisionDigest: sha256:6e09038391ad70d5f9b70c63b3284e81624f1cd18b512456e1ef14583adba00f
6-
sourceBlobDigest: sha256:62b0b08fedd634cc54f3083a149d42af7b4b534cbe8da080c65eaa8377fdcddd
5+
sourceRevisionDigest: sha256:7f7a95d98f5f48d4997d9a89d84a80ba2c2f719c72b926ada7747b5815bed25d
6+
sourceBlobDigest: sha256:6f142689da803c73983430071fbc701297850599127806a22cf845a2f6092b41
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1763969825
9+
- speakeasy-sdk-regen-1765072306
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:6e09038391ad70d5f9b70c63b3284e81624f1cd18b512456e1ef14583adba00f
21-
sourceBlobDigest: sha256:62b0b08fedd634cc54f3083a149d42af7b4b534cbe8da080c65eaa8377fdcddd
20+
sourceRevisionDigest: sha256:7f7a95d98f5f48d4997d9a89d84a80ba2c2f719c72b926ada7747b5815bed25d
21+
sourceBlobDigest: sha256:6f142689da803c73983430071fbc701297850599127806a22cf845a2f6092b41
2222
codeSamplesNamespace: glean-api-specs-python-code-samples
23-
codeSamplesRevisionDigest: sha256:380bfe75991017e623736785201d21cac9de54b2bab5d9bfa09699ac73829ad6
23+
codeSamplesRevisionDigest: sha256:1fb4ec6b3e117ccf9682d7d804ec949b567672fdcf63d3bcd7125ee6c7cfde53
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
@@ -448,4 +448,14 @@ Based on:
448448
### Generated
449449
- [python v0.11.22] .
450450
### Releases
451-
- [PyPI v0.11.22] https://pypi.org/project/glean/0.11.22 - .
451+
- [PyPI v0.11.22] https://pypi.org/project/glean/0.11.22 - .
452+
453+
## 2025-12-07 01:51:21
454+
### Changes
455+
Based on:
456+
- OpenAPI Doc
457+
- Speakeasy CLI 1.650.0 (2.743.2) https://github.com/speakeasy-api/speakeasy
458+
### Generated
459+
- [python v0.12.1] .
460+
### Releases
461+
- [PyPI v0.12.1] https://pypi.org/project/glean/0.12.1 - .
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# CustomSensitiveExpression
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ |
8+
| `id` | *Optional[str]* | :heavy_minus_sign: | Identifier for the custom sensitive expression. |
9+
| `keyword` | [Optional[models.CustomSensitiveRule]](../models/customsensitiverule.md) | :heavy_minus_sign: | N/A |
10+
| `evaluation_expression` | *Optional[str]* | :heavy_minus_sign: | The expression to evaluate the keyword match. |

docs/models/customsensitiverule.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# CustomSensitiveRule
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
8+
| `id` | *Optional[str]* | :heavy_minus_sign: | Identifier for the custom sensitive expression. |
9+
| `value` | *Optional[str]* | :heavy_minus_sign: | The value of the custom sensitive rule. For REGEX type, this is the regex pattern; for TERM type, it is the term to match; and for INFO_TYPE type, it refers to predefined categories of sensitive content. See https://cloud.google.com/dlp/docs/infotypes-reference for available options. |
10+
| `type` | [Optional[models.CustomSensitiveRuleType]](../models/customsensitiveruletype.md) | :heavy_minus_sign: | Type of the custom sensitive rule. |
11+
| `likelihood_threshold` | [Optional[models.CustomSensitiveRuleLikelihoodThreshold]](../models/customsensitiverulelikelihoodthreshold.md) | :heavy_minus_sign: | Likelihood threshold for BUILT_IN infotypes (e.g., LIKELY, VERY_LIKELY). Only applicable for BUILT_IN type. |

0 commit comments

Comments
 (0)