Skip to content

Commit e4d47f9

Browse files
committed
## Python SDK Changes:
* `glean.datasources.get_datasource_instance_configuration()`: **Added** * `glean.datasources.update_datasource_instance_configuration()`: **Added** * `glean.indexing.people.bulk_index()`: **Deprecated**
1 parent 128c3ef commit e4d47f9

File tree

157 files changed

+3293
-831
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

157 files changed

+3293
-831
lines changed

.speakeasy/gen.lock

Lines changed: 354 additions & 258 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ generation:
1717
securityFeb2025: true
1818
sharedErrorComponentsApr2025: true
1919
sharedNestedComponentsJan2026: false
20+
nameOverrideFeb2026: false
2021
auth:
2122
oAuth2ClientCredentialsEnabled: false
2223
oAuth2PasswordEnabled: false
@@ -33,7 +34,7 @@ generation:
3334
generateNewTests: true
3435
skipResponseBodyAssertions: true
3536
python:
36-
version: 0.12.8
37+
version: 0.12.9
3738
additionalDependencies:
3839
dev: {}
3940
main: {}

.speakeasy/glean-merged-spec.yaml

Lines changed: 145 additions & 2 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: 56c08697ca3b6869022a262114e61f1385914425
5+
x-source-commit-sha: 48b30f65e7fe1ce4405e3aa0cd19b1ec7796a37e
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: daa8736a6f0763faffd2c1079da8a42345536ed7
25+
x-open-api-commit-sha: 85b45753a0740d39c83253703e7b97ad027d2c2c
2626
x-speakeasy-name: 'Glean API'
2727
servers:
2828
- url: https://{instance}-be.glean.com
@@ -3122,6 +3122,13 @@ paths:
31223122
description: Not Authorized
31233123
"409":
31243124
description: Conflict
3125+
deprecated: true
3126+
x-speakeasy-deprecation-message: "Deprecated on 2026-02-03, removal scheduled for 2026-10-15: Endpoint is deprecated"
3127+
x-glean-deprecated:
3128+
id: ce596f49-55c4-465e-bf3c-5a3a33906e1f
3129+
introduced: "2026-02-03"
3130+
message: Endpoint is deprecated
3131+
removal: "2026-10-15"
31253132
x-speakeasy-name-override: bulkIndex
31263133
x-speakeasy-group: indexing.people
31273134
/api/index/v1/indexemployeelist: {}
@@ -3676,6 +3683,65 @@ paths:
36763683
"500":
36773684
description: Internal error
36783685
x-visibility: Public
3686+
/rest/api/v1/configure/datasources/{datasourceId}/instances/{instanceId}:
3687+
get:
3688+
operationId: getDatasourceInstanceConfiguration
3689+
summary: Get datasource instance configuration
3690+
description: |
3691+
Gets the greenlisted configuration values for a datasource instance. Returns only configuration keys that are exposed via the public API greenlist.
3692+
tags:
3693+
- Datasources
3694+
parameters:
3695+
- $ref: '#/components/parameters/datasourceId'
3696+
- $ref: '#/components/parameters/instanceId'
3697+
responses:
3698+
"200":
3699+
description: OK
3700+
content:
3701+
application/json:
3702+
schema:
3703+
$ref: '#/components/schemas/DatasourceConfigurationResponse'
3704+
"400":
3705+
description: Invalid request
3706+
"401":
3707+
description: Not authorized
3708+
"403":
3709+
description: Forbidden
3710+
"404":
3711+
description: Datasource instance not found
3712+
x-visibility: Preview
3713+
patch:
3714+
operationId: updateDatasourceInstanceConfiguration
3715+
summary: Update datasource instance configuration
3716+
description: |
3717+
Updates the greenlisted configuration values for a datasource instance. Only configuration keys that are exposed via the public API greenlist may be set. Returns the full greenlisted configuration after the update is applied.
3718+
tags:
3719+
- Datasources
3720+
parameters:
3721+
- $ref: '#/components/parameters/datasourceId'
3722+
- $ref: '#/components/parameters/instanceId'
3723+
requestBody:
3724+
content:
3725+
application/json:
3726+
schema:
3727+
$ref: '#/components/schemas/UpdateDatasourceConfigurationRequest'
3728+
required: true
3729+
responses:
3730+
"200":
3731+
description: OK
3732+
content:
3733+
application/json:
3734+
schema:
3735+
$ref: '#/components/schemas/DatasourceConfigurationResponse'
3736+
"400":
3737+
description: Invalid request
3738+
"401":
3739+
description: Not authorized
3740+
"403":
3741+
description: Forbidden
3742+
"404":
3743+
description: Datasource instance not found
3744+
x-visibility: Preview
36793745
/rest/api/v1/chat#stream:
36803746
post:
36813747
tags:
@@ -6547,16 +6613,34 @@ components:
65476613
deprecated: true
65486614
description: The person that invited this person.
65496615
$ref: "#/components/schemas/Person"
6616+
x-glean-deprecated:
6617+
id: 1d3cd23f-9085-4378-b466-9bdc2e344a71
6618+
introduced: "2026-02-05"
6619+
message: Use ChannelInviteInfo instead
6620+
removal: "2026-10-15"
6621+
x-speakeasy-deprecation-message: "Deprecated on 2026-02-05, removal scheduled for 2026-10-15: Use ChannelInviteInfo instead"
65506622
inviteTime:
65516623
deprecated: true
65526624
type: string
65536625
format: date-time
65546626
description: The time this person was invited in ISO format (ISO 8601).
6627+
x-glean-deprecated:
6628+
id: 2dc3f572-cded-483d-af07-fc9fc7fd0ae4
6629+
introduced: "2026-02-05"
6630+
message: Use ChannelInviteInfo instead
6631+
removal: "2026-10-15"
6632+
x-speakeasy-deprecation-message: "Deprecated on 2026-02-05, removal scheduled for 2026-10-15: Use ChannelInviteInfo instead"
65556633
reminderTime:
65566634
deprecated: true
65576635
type: string
65586636
format: date-time
65596637
description: The time this person was reminded in ISO format (ISO 8601) if a reminder was sent.
6638+
x-glean-deprecated:
6639+
id: d02d58cf-eb90-45d0-ab90-f7a9d707ae3c
6640+
introduced: "2026-02-05"
6641+
message: Use ChannelInviteInfo instead
6642+
removal: "2026-10-15"
6643+
x-speakeasy-deprecation-message: "Deprecated on 2026-02-05, removal scheduled for 2026-10-15: Use ChannelInviteInfo instead"
65606644
ReadPermission:
65616645
description: Describes the read permission level that a user has for a specific feature
65626646
properties:
@@ -13217,6 +13301,49 @@ components:
1321713301
items:
1321813302
type: string
1321913303
description: List of field names to exclude from the export
13304+
ConfigurationValue:
13305+
type: object
13306+
properties:
13307+
value:
13308+
type: string
13309+
description: The configuration value as a string. Only one of value or valueList should be populated.
13310+
valueList:
13311+
type: array
13312+
items:
13313+
type: string
13314+
description: The configuration value as a list of strings. Only one of value or valueList should be populated.
13315+
description: A single configuration value, either a scalar or a list
13316+
ConfigurationValues:
13317+
type: object
13318+
additionalProperties:
13319+
$ref: '#/components/schemas/ConfigurationValue'
13320+
description: A map from configuration key names to their values
13321+
DatasourceInstanceConfiguration:
13322+
type: object
13323+
properties:
13324+
values:
13325+
$ref: '#/components/schemas/ConfigurationValues'
13326+
required:
13327+
- values
13328+
description: Configuration for a datasource instance
13329+
DatasourceConfigurationResponse:
13330+
type: object
13331+
properties:
13332+
configuration:
13333+
$ref: '#/components/schemas/DatasourceInstanceConfiguration'
13334+
required:
13335+
- configuration
13336+
description: |
13337+
The greenlisted configuration values for a datasource instance. Only keys that are exposed via the public API greenlist are included.
13338+
UpdateDatasourceConfigurationRequest:
13339+
type: object
13340+
properties:
13341+
configuration:
13342+
$ref: '#/components/schemas/DatasourceInstanceConfiguration'
13343+
required:
13344+
- configuration
13345+
description: |
13346+
Request to update greenlisted configuration values for a datasource instance. Only keys that are exposed via the public API greenlist may be set.
1322013347
ChatRequestStream:
1322113348
required:
1322213349
- messages
@@ -13274,6 +13401,22 @@ components:
1327413401
description: The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC.
1327513402
schema:
1327613403
type: integer
13404+
datasourceId:
13405+
name: datasourceId
13406+
in: path
13407+
description: The datasource type identifier (e.g. o365sharepoint)
13408+
required: true
13409+
schema:
13410+
type: string
13411+
example: o365sharepoint
13412+
instanceId:
13413+
name: instanceId
13414+
in: path
13415+
description: The datasource instance identifier
13416+
required: true
13417+
schema:
13418+
type: string
13419+
example: o365sharepoint_abc123
1327713420
responses:
1327813421
SuccessResponse:
1327913422
description: OK

.speakeasy/tests.arazzo.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158449,3 +158449,48 @@ workflows:
158449158449
type: simple
158450158450
x-speakeasy-test-group: Authentication
158451158451
x-speakeasy-test-rebuild: true
158452+
- workflowId: getDatasourceInstanceConfiguration
158453+
steps:
158454+
- stepId: test
158455+
operationId: getDatasourceInstanceConfiguration
158456+
parameters:
158457+
- name: datasourceId
158458+
in: path
158459+
value: o365sharepoint
158460+
- name: instanceId
158461+
in: path
158462+
value: o365sharepoint_abc123
158463+
successCriteria:
158464+
- condition: $statusCode == 200
158465+
- condition: $response.header.Content-Type == application/json
158466+
- context: $response.body
158467+
condition: |
158468+
{"configuration":{"values":{"key":{}}}}
158469+
type: simple
158470+
x-speakeasy-test-group: Datasources
158471+
x-speakeasy-test-rebuild: true
158472+
- workflowId: updateDatasourceInstanceConfiguration
158473+
steps:
158474+
- stepId: test
158475+
operationId: updateDatasourceInstanceConfiguration
158476+
parameters:
158477+
- name: datasourceId
158478+
in: path
158479+
value: o365sharepoint
158480+
- name: instanceId
158481+
in: path
158482+
value: o365sharepoint_abc123
158483+
requestBody:
158484+
contentType: application/json
158485+
payload:
158486+
configuration:
158487+
values: {}
158488+
successCriteria:
158489+
- condition: $statusCode == 200
158490+
- condition: $response.header.Content-Type == application/json
158491+
- context: $response.body
158492+
condition: |
158493+
{"configuration":{"values":{}}}
158494+
type: simple
158495+
x-speakeasy-test-group: Datasources
158496+
x-speakeasy-test-rebuild: true

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
speakeasyVersion: 1.722.7
1+
speakeasyVersion: 1.725.0
22
sources:
33
Glean API:
44
sourceNamespace: glean-api-specs
5-
sourceRevisionDigest: sha256:8b912e61e9727548c1e231c33a1cab5988630896d3c81639fe9b2961c8656d94
6-
sourceBlobDigest: sha256:079082f8fabe8221e1d14af242c72c22efa7be6626969593ccebcd74d19c3c80
5+
sourceRevisionDigest: sha256:e274724551dd44aa925615eeb835b5cc2e5b9de4fe32ce7a8631c24d2ff857ce
6+
sourceBlobDigest: sha256:f950f331b5b32eccfb787b0b5aefb50b873ee775b106fdf9d2e91c02079fceba
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1771525162
9+
- speakeasy-sdk-regen-1771639536
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:8b912e61e9727548c1e231c33a1cab5988630896d3c81639fe9b2961c8656d94
21-
sourceBlobDigest: sha256:079082f8fabe8221e1d14af242c72c22efa7be6626969593ccebcd74d19c3c80
20+
sourceRevisionDigest: sha256:e274724551dd44aa925615eeb835b5cc2e5b9de4fe32ce7a8631c24d2ff857ce
21+
sourceBlobDigest: sha256:f950f331b5b32eccfb787b0b5aefb50b873ee775b106fdf9d2e91c02079fceba
2222
codeSamplesNamespace: glean-api-specs-python-code-samples
23-
codeSamplesRevisionDigest: sha256:07c1eebc0272335ffeb2b98c0b094c73bfefcf74858173515c00c683b16702f6
23+
codeSamplesRevisionDigest: sha256:6d90f2a18ec8e38c09e2cca697ce65cd5d1a6730c207dc72ac4f8e2240a23193
2424
workflow:
2525
workflowVersion: 1.0.0
2626
speakeasyVersion: latest

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,11 @@ For more information on obtaining the appropriate token type, please contact you
470470
* [list](docs/sdks/clientverification/README.md#list) - List verifications
471471
* [verify](docs/sdks/clientverification/README.md#verify) - Update verification
472472

473+
### [Datasources](docs/sdks/datasources/README.md)
474+
475+
* [get_datasource_instance_configuration](docs/sdks/datasources/README.md#get_datasource_instance_configuration) - Get datasource instance configuration
476+
* [update_datasource_instance_configuration](docs/sdks/datasources/README.md#update_datasource_instance_configuration) - Update datasource instance configuration
477+
473478
### [Governance](docs/sdks/governance/README.md)
474479

475480
* [createfindingsexport](docs/sdks/governance/README.md#createfindingsexport) - Creates findings export
@@ -486,10 +491,10 @@ For more information on obtaining the appropriate token type, please contact you
486491
* [status](docs/sdks/indexingdatasource/README.md#status) - Beta: Get datasource status
487492

488493

489-
### [Indexing.Datasources](docs/sdks/datasources/README.md)
494+
### [Indexing.Datasources](docs/sdks/indexingdatasources/README.md)
490495

491-
* [add](docs/sdks/datasources/README.md#add) - Add or update datasource
492-
* [retrieve_config](docs/sdks/datasources/README.md#retrieve_config) - Get datasource config
496+
* [add](docs/sdks/indexingdatasources/README.md#add) - Add or update datasource
497+
* [retrieve_config](docs/sdks/indexingdatasources/README.md#retrieve_config) - Get datasource config
493498

494499
### [Indexing.Documents](docs/sdks/indexingdocuments/README.md)
495500

@@ -512,7 +517,7 @@ For more information on obtaining the appropriate token type, please contact you
512517

513518
* [~~count~~](docs/sdks/people/README.md#count) - Get user count :warning: **Deprecated**
514519
* [index](docs/sdks/people/README.md#index) - Index employee
515-
* [bulk_index](docs/sdks/people/README.md#bulk_index) - Bulk index employees
520+
* [~~bulk_index~~](docs/sdks/people/README.md#bulk_index) - Bulk index employees :warning: **Deprecated**
516521
* [process_all_employees_and_teams](docs/sdks/people/README.md#process_all_employees_and_teams) - Schedules the processing of uploaded employees and teams
517522
* [delete](docs/sdks/people/README.md#delete) - Delete employee
518523
* [index_team](docs/sdks/people/README.md#index_team) - Index team

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,4 +588,14 @@ Based on:
588588
### Generated
589589
- [python v0.12.8] .
590590
### Releases
591-
- [PyPI v0.12.8] https://pypi.org/project/glean-api-client/0.12.8 - .
591+
- [PyPI v0.12.8] https://pypi.org/project/glean-api-client/0.12.8 - .
592+
593+
## 2026-02-24 02:47:39
594+
### Changes
595+
Based on:
596+
- OpenAPI Doc
597+
- Speakeasy CLI 1.725.0 (2.836.5) https://github.com/speakeasy-api/speakeasy
598+
### Generated
599+
- [python v0.12.9] .
600+
### Releases
601+
- [PyPI v0.12.9] https://pypi.org/project/glean-api-client/0.12.9 - .

docs/models/configurationvalue.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# ConfigurationValue
2+
3+
A single configuration value, either a scalar or a list
4+
5+
6+
## Fields
7+
8+
| Field | Type | Required | Description |
9+
| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
10+
| `value` | *Optional[str]* | :heavy_minus_sign: | The configuration value as a string. Only one of value or valueList should be populated. |
11+
| `value_list` | List[*str*] | :heavy_minus_sign: | The configuration value as a list of strings. Only one of value or valueList should be populated. |
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# DatasourceConfigurationResponse
2+
3+
The greenlisted configuration values for a datasource instance. Only keys that are exposed via the public API greenlist are included.
4+
5+
6+
7+
## Fields
8+
9+
| Field | Type | Required | Description |
10+
| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
11+
| `configuration` | [models.DatasourceInstanceConfiguration](../models/datasourceinstanceconfiguration.md) | :heavy_check_mark: | Configuration for a datasource instance |
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# DatasourceInstanceConfiguration
2+
3+
Configuration for a datasource instance
4+
5+
6+
## Fields
7+
8+
| Field | Type | Required | Description |
9+
| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- |
10+
| `values` | Dict[str, [models.ConfigurationValue](../models/configurationvalue.md)] | :heavy_check_mark: | A map from configuration key names to their values |

0 commit comments

Comments
 (0)