Skip to content

Commit d773ef6

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 d773ef6

37 files changed

+6732
-83
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: 128 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: feb712408ea55803c8438b65dcf296a0a274c28c
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: fe353ad70f3bc33150efd3b10f95bde530df3330
2626
x-speakeasy-name: 'Glean API'
2727
servers:
2828
- url: https://{instance}-be.glean.com
@@ -4195,6 +4195,20 @@ components:
41954195
name: Google
41964196
logo: https://app.glean.com/images/feather/globe.svg
41974197
searchLinkUrlTemplate: https://www.google.com/search?q={query}&hl=en
4198+
ResultTab:
4199+
properties:
4200+
id:
4201+
type: string
4202+
description: The unique ID of the tab. Can be passed in a search request to get results for that tab.
4203+
count:
4204+
type: integer
4205+
description: The number of results in this tab for the current query.
4206+
datasource:
4207+
type: string
4208+
description: The datasource associated with the tab, if any.
4209+
datasourceInstance:
4210+
type: string
4211+
description: The datasource instance associated with the tab, if any.
41984212
FacetFilterValue:
41994213
properties:
42004214
value:
@@ -4492,6 +4506,9 @@ components:
44924506
datasource:
44934507
type: string
44944508
description: The datasource associated with the suggestion.
4509+
resultTab:
4510+
$ref: "#/components/schemas/ResultTab"
4511+
description: The result tab associated with the suggestion.
44954512
requestOptions:
44964513
$ref: "#/components/schemas/SearchRequestOptions"
44974514
ranges:
@@ -6473,6 +6490,9 @@ components:
64736490
type: integer
64746491
format: int64
64756492
description: The offset of the person's timezone in seconds from UTC.
6493+
timezoneIANA:
6494+
type: string
6495+
description: The IANA timezone identifier, e.g. "America/Los_Angeles".
64766496
photoUrl:
64776497
type: string
64786498
format: url
@@ -8069,6 +8089,7 @@ components:
80698089
- VISITORS_COUNT
80708090
- RECENT_SHARES
80718091
- DOCUMENT_CONTENT
8092+
- CUSTOM_METADATA
80728093
DocumentOrError:
80738094
oneOf:
80748095
- $ref: "#/components/schemas/Document"
@@ -9051,20 +9072,6 @@ components:
90519072
type: string
90529073
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)
90539074
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.
90689075
ResultsDescription:
90699076
properties:
90709077
text:
@@ -12092,6 +12099,26 @@ components:
1209212099
description: List of lifecycle events corresponding to the document
1209312100
items:
1209412101
$ref: "#/components/schemas/LifeCycleEvent"
12102+
SuccessResponse:
12103+
type: object
12104+
description: Success response for custom metadata operations
12105+
properties:
12106+
success:
12107+
type: boolean
12108+
description: Indicates if the operation was successful
12109+
default: true
12110+
ErrorInfoResponse:
12111+
type: object
12112+
description: Error response for custom metadata operations
12113+
properties:
12114+
error:
12115+
type: string
12116+
description: Error message describing what went wrong
12117+
message:
12118+
type: string
12119+
description: Additional details about the error
12120+
required:
12121+
- error
1209512122
PropertyDefinition:
1209612123
properties:
1209712124
name:
@@ -12537,24 +12564,69 @@ components:
1253712564
type: array
1253812565
items:
1253912566
$ref: "#/components/schemas/Hotword"
12567+
CustomSensitiveRuleType:
12568+
type: string
12569+
description: Type of the custom sensitive rule.
12570+
enum:
12571+
- REGEX
12572+
- TERM
12573+
- INFO_TYPE
12574+
CustomSensitiveRule:
12575+
properties:
12576+
id:
12577+
description: Identifier for the custom sensitive expression.
12578+
type: string
12579+
value:
12580+
type: string
12581+
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.
12582+
type:
12583+
$ref: "#/components/schemas/CustomSensitiveRuleType"
12584+
likelihoodThreshold:
12585+
description: Likelihood threshold for BUILT_IN infotypes (e.g., LIKELY, VERY_LIKELY). Only applicable for BUILT_IN type.
12586+
type: string
12587+
enum:
12588+
- LIKELY
12589+
- VERY_LIKELY
12590+
- POSSIBLE
12591+
- UNLIKELY
12592+
- VERY_UNLIKELY
12593+
CustomSensitiveExpression:
12594+
properties:
12595+
id:
12596+
description: Identifier for the custom sensitive expression.
12597+
type: string
12598+
keyword:
12599+
description: The keyword to match against.
12600+
$ref: "#/components/schemas/CustomSensitiveRule"
12601+
evaluationExpression:
12602+
description: The expression to evaluate the keyword match.
12603+
type: string
1254012604
SensitiveContentOptions:
1254112605
description: Options for defining sensitive content within scanned documents.
1254212606
properties:
1254312607
sensitiveInfoTypes:
12544-
description: Predefined categories of terms to consider as sensitive content. See https://cloud.google.com/dlp/docs/infotypes-reference for available types.
12608+
deprecated: true
12609+
description: DEPRECATED - use 'customSensitiveExpressions' instead.
1254512610
type: array
1254612611
items:
1254712612
$ref: "#/components/schemas/SensitiveInfoType"
1254812613
sensitiveTerms:
12549-
description: list of words and phrases to consider as sensitive content
12614+
deprecated: true
12615+
description: DEPRECATED - use 'customSensitiveExpressions' instead.
1255012616
type: array
1255112617
items:
1255212618
$ref: "#/components/schemas/SensitiveExpression"
1255312619
sensitiveRegexes:
12554-
description: list of regular expressions to consider as sensitive content
12620+
deprecated: true
12621+
description: DEPRECATED - use 'customSensitiveExpressions' instead.
1255512622
type: array
1255612623
items:
1255712624
$ref: "#/components/schemas/SensitiveExpression"
12625+
customSensitiveExpressions:
12626+
description: list of custom sensitive expressions to consider as sensitive content
12627+
type: array
12628+
items:
12629+
$ref: "#/components/schemas/CustomSensitiveExpression"
1255812630
DlpPersonMetadata:
1255912631
properties:
1256012632
firstName:
@@ -12869,6 +12941,43 @@ components:
1286912941
description: The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC.
1287012942
schema:
1287112943
type: integer
12944+
responses:
12945+
SuccessResponse:
12946+
description: OK
12947+
content:
12948+
application/json:
12949+
schema:
12950+
$ref: "#/components/schemas/SuccessResponse"
12951+
BadRequestError:
12952+
description: Bad Request
12953+
content:
12954+
application/json:
12955+
schema:
12956+
$ref: "#/components/schemas/ErrorInfoResponse"
12957+
UnauthorizedError:
12958+
description: Not Authorized
12959+
content:
12960+
application/json:
12961+
schema:
12962+
$ref: "#/components/schemas/ErrorInfoResponse"
12963+
NotFoundError:
12964+
description: Not Found
12965+
content:
12966+
application/json:
12967+
schema:
12968+
$ref: "#/components/schemas/ErrorInfoResponse"
12969+
TooManyRequestsError:
12970+
description: Too Many Requests
12971+
content:
12972+
application/json:
12973+
schema:
12974+
$ref: "#/components/schemas/ErrorInfoResponse"
12975+
InternalServerError:
12976+
description: Internal Server Error
12977+
content:
12978+
application/json:
12979+
schema:
12980+
$ref: "#/components/schemas/ErrorInfoResponse"
1287212981
x-tagGroups:
1287312982
- name: Search & Generative AI
1287412983
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:f4ddb6896661cd0646da47705af37ff58458352766dff35a2a989aab640aa0bd
6+
sourceBlobDigest: sha256:ed619cfca463f86eda444fb7285905713d107ff90fdc4664c86bbcb70043edd7
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:f4ddb6896661cd0646da47705af37ff58458352766dff35a2a989aab640aa0bd
21+
sourceBlobDigest: sha256:ed619cfca463f86eda444fb7285905713d107ff90fdc4664c86bbcb70043edd7
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 14:46:26
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)