Skip to content

Commit 6066d62

Browse files
committed
## Python SDK Changes Detected:
* `glean.client.announcements.create()`: * `request.body.structured_list.[].document.metadata.author` **Changed** * `response.body.structured_list.[].document.metadata.author` **Changed** * `glean.client.announcements.update()`: * `request.body.structured_list.[].document.metadata.author` **Changed** * `response.body.structured_list.[].document.metadata.author` **Changed** * `glean.client.answers.create()`: * `request.data.added_roles.[].person` **Changed** * `response.added_roles.[].person` **Changed** * `glean.client.answers.update()`: * `request.added_roles.[].person` **Changed** * `response.added_roles.[].person` **Changed** * `glean.client.answers.retrieve()`: `response.answer_result.answer.added_roles.[].person` **Changed** * `glean.client.answers.list()`: `response.answer_results.[].answer.added_roles.[].person` **Changed** * `glean.client.chat.create()`: * `request.messages.[].citations.[].source_document.metadata.author` **Changed** * `response.messages.[].citations.[].source_document.metadata.author` **Changed** * `glean.client.chat.retrieve()`: `response.chat_result.chat.created_by` **Changed** * `glean.client.chat.list()`: `response.chat_results.[].chat.created_by` **Changed** * `glean.client.chat.create_stream()`: * `request.messages.[].citations.[].source_document.metadata.author` **Changed** * `glean.client.collections.add_items()`: `response.collection.added_roles.[].person` **Changed** * `glean.client.collections.create()`: * `request.added_roles.[].person` **Changed** * `response.[class].collection.added_roles.[].person` **Changed** * `glean.client.collections.delete_item()`: `response.collection.added_roles.[].person` **Changed** * `glean.client.collections.update()`: * `request.added_roles.[].person` **Changed** * `response.added_roles.[].person` **Changed** * `glean.client.collections.update_item()`: `response.collection.added_roles.[].person` **Changed** * `glean.client.collections.retrieve()`: `response.collection.added_roles.[].person` **Changed** * `glean.client.collections.list()`: `response.collections.[].added_roles.[].person` **Changed** * `glean.client.documents.retrieve()`: `response.documents.{}.[document].metadata.author` **Changed** * `glean.client.documents.retrieve_by_facets()`: `response.documents.[].metadata.author` **Changed** * `glean.client.insights.retrieve()`: `response.users.activity_insights.[].user` **Changed** * `glean.client.messages.retrieve()`: `response.search_response.results.[].structured_results.[].document.metadata.author` **Changed** * `glean.client.pins.update()`: `response.attribution` **Changed** * `glean.client.pins.retrieve()`: `response.pin.attribution` **Changed** * `glean.client.pins.list()`: `response.pins.[].attribution` **Changed** * `glean.client.pins.create()`: `response.attribution` **Changed** * `glean.client.search.query_as_admin()`: * `request.source_document.metadata.author` **Changed** * `response.results.[].structured_results.[].document.metadata.author` **Changed** * `glean.client.search.autocomplete()`: `response.results.[].document.metadata.author` **Changed** * `glean.client.search.retrieve_feed()`: `response.results.[].primary_entry.created_by` **Changed** * `glean.client.search.recommendations()`: * `request.source_document.metadata.author` **Changed** * `response.results.[].structured_results.[].document.metadata.author` **Changed** * `glean.client.search.query()`: * `request.source_document.metadata.author` **Changed** * `response.results.[].structured_results.[].document.metadata.author` **Changed** * `glean.client.entities.list()`: `response.results.[]` **Changed** * `glean.client.entities.read_people()`: `response.results.[]` **Changed** * `glean.client.shortcuts.create()`: * `request.data.added_roles.[].person` **Changed** * `response.shortcut.added_roles.[].person` **Changed** * `glean.client.shortcuts.retrieve()`: `response.shortcut.added_roles.[].person` **Changed** * `glean.client.shortcuts.list()`: `response.shortcuts.[].added_roles.[].person` **Changed** * `glean.client.shortcuts.update()`: * `request.added_roles.[].person` **Changed** * `response.shortcut.added_roles.[].person` **Changed** * `glean.client.verification.add_reminder()`: `response.metadata.last_verifier` **Changed** * `glean.client.verification.list()`: `response.documents.[].metadata.last_verifier` **Changed** * `glean.client.verification.verify()`: `response.metadata.last_verifier` **Changed** * `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 6066d62

39 files changed

+6737
-81
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: 129 additions & 19 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: 2744ae48756972f280bdbfb6f80e9ba6ed21fdaf
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: bddeb0634f0236cf15670f291a9a8a27094b269f
2626
x-speakeasy-name: 'Glean API'
2727
servers:
2828
- url: https://{instance}-be.glean.com
@@ -3810,6 +3810,7 @@ components:
38103810
- SIDEBAR
38113811
- SUMMARY
38123812
- TASKS
3813+
- TASK_EXECUTION
38133814
issue:
38143815
type: string
38153816
description: The issue the user indicated in the feedback.
@@ -4195,6 +4196,20 @@ components:
41954196
name: Google
41964197
logo: https://app.glean.com/images/feather/globe.svg
41974198
searchLinkUrlTemplate: https://www.google.com/search?q={query}&hl=en
4199+
ResultTab:
4200+
properties:
4201+
id:
4202+
type: string
4203+
description: The unique ID of the tab. Can be passed in a search request to get results for that tab.
4204+
count:
4205+
type: integer
4206+
description: The number of results in this tab for the current query.
4207+
datasource:
4208+
type: string
4209+
description: The datasource associated with the tab, if any.
4210+
datasourceInstance:
4211+
type: string
4212+
description: The datasource instance associated with the tab, if any.
41984213
FacetFilterValue:
41994214
properties:
42004215
value:
@@ -4492,6 +4507,9 @@ components:
44924507
datasource:
44934508
type: string
44944509
description: The datasource associated with the suggestion.
4510+
resultTab:
4511+
$ref: "#/components/schemas/ResultTab"
4512+
description: The result tab associated with the suggestion.
44954513
requestOptions:
44964514
$ref: "#/components/schemas/SearchRequestOptions"
44974515
ranges:
@@ -6473,6 +6491,9 @@ components:
64736491
type: integer
64746492
format: int64
64756493
description: The offset of the person's timezone in seconds from UTC.
6494+
timezoneIANA:
6495+
type: string
6496+
description: The IANA timezone identifier, e.g. "America/Los_Angeles".
64766497
photoUrl:
64776498
type: string
64786499
format: url
@@ -8069,6 +8090,7 @@ components:
80698090
- VISITORS_COUNT
80708091
- RECENT_SHARES
80718092
- DOCUMENT_CONTENT
8093+
- CUSTOM_METADATA
80728094
DocumentOrError:
80738095
oneOf:
80748096
- $ref: "#/components/schemas/Document"
@@ -9051,20 +9073,6 @@ components:
90519073
type: string
90529074
description: For most facets this will be the empty string, meaning the facet is high-level and applies to all documents for the datasource. When non-empty, this is used to group facets together (i.e. group facets for each doctype for a certain datasource)
90539075
example: Service Cloud
9054-
ResultTab:
9055-
properties:
9056-
id:
9057-
type: string
9058-
description: The unique ID of the tab. Can be passed in a search request to get results for that tab.
9059-
count:
9060-
type: integer
9061-
description: The number of results in this tab for the current query.
9062-
datasource:
9063-
type: string
9064-
description: The datasource associated with the tab, if any.
9065-
datasourceInstance:
9066-
type: string
9067-
description: The datasource instance associated with the tab, if any.
90689076
ResultsDescription:
90699077
properties:
90709078
text:
@@ -12092,6 +12100,26 @@ components:
1209212100
description: List of lifecycle events corresponding to the document
1209312101
items:
1209412102
$ref: "#/components/schemas/LifeCycleEvent"
12103+
SuccessResponse:
12104+
type: object
12105+
description: Success response for custom metadata operations
12106+
properties:
12107+
success:
12108+
type: boolean
12109+
description: Indicates if the operation was successful
12110+
default: true
12111+
ErrorInfoResponse:
12112+
type: object
12113+
description: Error response for custom metadata operations
12114+
properties:
12115+
error:
12116+
type: string
12117+
description: Error message describing what went wrong
12118+
message:
12119+
type: string
12120+
description: Additional details about the error
12121+
required:
12122+
- error
1209512123
PropertyDefinition:
1209612124
properties:
1209712125
name:
@@ -12537,24 +12565,69 @@ components:
1253712565
type: array
1253812566
items:
1253912567
$ref: "#/components/schemas/Hotword"
12568+
CustomSensitiveRuleType:
12569+
type: string
12570+
description: Type of the custom sensitive rule.
12571+
enum:
12572+
- REGEX
12573+
- TERM
12574+
- INFO_TYPE
12575+
CustomSensitiveRule:
12576+
properties:
12577+
id:
12578+
description: Identifier for the custom sensitive expression.
12579+
type: string
12580+
value:
12581+
type: string
12582+
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.
12583+
type:
12584+
$ref: "#/components/schemas/CustomSensitiveRuleType"
12585+
likelihoodThreshold:
12586+
description: Likelihood threshold for BUILT_IN infotypes (e.g., LIKELY, VERY_LIKELY). Only applicable for BUILT_IN type.
12587+
type: string
12588+
enum:
12589+
- LIKELY
12590+
- VERY_LIKELY
12591+
- POSSIBLE
12592+
- UNLIKELY
12593+
- VERY_UNLIKELY
12594+
CustomSensitiveExpression:
12595+
properties:
12596+
id:
12597+
description: Identifier for the custom sensitive expression.
12598+
type: string
12599+
keyword:
12600+
description: The keyword to match against.
12601+
$ref: "#/components/schemas/CustomSensitiveRule"
12602+
evaluationExpression:
12603+
description: The expression to evaluate the keyword match.
12604+
type: string
1254012605
SensitiveContentOptions:
1254112606
description: Options for defining sensitive content within scanned documents.
1254212607
properties:
1254312608
sensitiveInfoTypes:
12544-
description: Predefined categories of terms to consider as sensitive content. See https://cloud.google.com/dlp/docs/infotypes-reference for available types.
12609+
deprecated: true
12610+
description: DEPRECATED - use 'customSensitiveExpressions' instead.
1254512611
type: array
1254612612
items:
1254712613
$ref: "#/components/schemas/SensitiveInfoType"
1254812614
sensitiveTerms:
12549-
description: list of words and phrases to consider as sensitive content
12615+
deprecated: true
12616+
description: DEPRECATED - use 'customSensitiveExpressions' instead.
1255012617
type: array
1255112618
items:
1255212619
$ref: "#/components/schemas/SensitiveExpression"
1255312620
sensitiveRegexes:
12554-
description: list of regular expressions to consider as sensitive content
12621+
deprecated: true
12622+
description: DEPRECATED - use 'customSensitiveExpressions' instead.
1255512623
type: array
1255612624
items:
1255712625
$ref: "#/components/schemas/SensitiveExpression"
12626+
customSensitiveExpressions:
12627+
description: list of custom sensitive expressions to consider as sensitive content
12628+
type: array
12629+
items:
12630+
$ref: "#/components/schemas/CustomSensitiveExpression"
1255812631
DlpPersonMetadata:
1255912632
properties:
1256012633
firstName:
@@ -12869,6 +12942,43 @@ components:
1286912942
description: The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC.
1287012943
schema:
1287112944
type: integer
12945+
responses:
12946+
SuccessResponse:
12947+
description: OK
12948+
content:
12949+
application/json:
12950+
schema:
12951+
$ref: "#/components/schemas/SuccessResponse"
12952+
BadRequestError:
12953+
description: Bad Request
12954+
content:
12955+
application/json:
12956+
schema:
12957+
$ref: "#/components/schemas/ErrorInfoResponse"
12958+
UnauthorizedError:
12959+
description: Not Authorized
12960+
content:
12961+
application/json:
12962+
schema:
12963+
$ref: "#/components/schemas/ErrorInfoResponse"
12964+
NotFoundError:
12965+
description: Not Found
12966+
content:
12967+
application/json:
12968+
schema:
12969+
$ref: "#/components/schemas/ErrorInfoResponse"
12970+
TooManyRequestsError:
12971+
description: Too Many Requests
12972+
content:
12973+
application/json:
12974+
schema:
12975+
$ref: "#/components/schemas/ErrorInfoResponse"
12976+
InternalServerError:
12977+
description: Internal Server Error
12978+
content:
12979+
application/json:
12980+
schema:
12981+
$ref: "#/components/schemas/ErrorInfoResponse"
1287212982
x-tagGroups:
1287312983
- name: Search & Generative AI
1287412984
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:cc3349736e06af5360f541295f978f156d66ad33c9a55584f10e0db5f6fab8e6
6+
sourceBlobDigest: sha256:d42d5b13d45294d21492c435e56125455cb67b52bc5a10e87d76619f5fc3272f
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:cc3349736e06af5360f541295f978f156d66ad33c9a55584f10e0db5f6fab8e6
21+
sourceBlobDigest: sha256:d42d5b13d45294d21492c435e56125455cb67b52bc5a10e87d76619f5fc3272f
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-09 04:44:42
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. |

0 commit comments

Comments
 (0)