Skip to content

Commit afe2ad4

Browse files
Merge pull request #72 from gleanwork/speakeasy-sdk-regen-1760583312
chore: 🐝 Update SDK - Generate 0.10.3
2 parents 7e47272 + 6384ce4 commit afe2ad4

File tree

18 files changed

+79
-55
lines changed

18 files changed

+79
-55
lines changed

.speakeasy/gen.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: 3e3290ca-0ee8-4981-b1bc-14536048fa63
33
management:
4-
docChecksum: ef00a2f5125097d9f584f0bbb5436f00
4+
docChecksum: 5a4cd8de1e6ca5f701ac27e244d09799
55
docVersion: 0.9.0
66
speakeasyVersion: 1.636.3
77
generationVersion: 2.723.11
8-
releaseVersion: 0.10.2
9-
configChecksum: 0df6a87cbbcb2fcac2bba9f5d9a53017
8+
releaseVersion: 0.10.3
9+
configChecksum: e07c2e6f4cf5159e031335490e5f2f34
1010
repoURL: https://github.com/gleanwork/api-client-python.git
1111
installationURL: https://github.com/gleanwork/api-client-python.git
1212
published: true
@@ -2195,7 +2195,7 @@ examples:
21952195
messages:
21962196
speakeasy-default-messages:
21972197
requestBody:
2198-
application/json: {"idType": "CONVERSATION_ID", "id": "<id>"}
2198+
application/json: {"idType": "CONVERSATION_ID", "id": "<id>", "datasource": "GCHAT"}
21992199
responses:
22002200
"200":
22012201
application/json: {"hasMore": true, "searchResponse": {"trackingToken": "trackingToken", "results": [{"title": "title", "url": "https://www.example.com/", "snippets": [{"mimeType": "mimeType", "snippet": "snippet"}]}, {"title": "title", "url": "https://www.example.com/", "snippets": [{"mimeType": "mimeType", "snippet": "snippet"}]}], "errorInfo": {"errorMessages": [{"source": "gmail", "errorMessage": "invalid token"}, {"source": "slack", "errorMessage": "expired token"}]}, "requestID": "5e345ae500ff0befa2b9d1a3ba0001737e7363696f312d323535323137000171756572792d656e64706f696e743a323032303031333074313830343032000100", "facetResults": [{"sourceName": "sourceName", "operatorName": "operatorName", "buckets": [{"count": 1, "percentage": 5, "value": {"stringValue": "stringValue", "integerValue": 5}}, {"count": 1, "percentage": 5, "value": {"stringValue": "stringValue", "integerValue": 5}}]}, {"sourceName": "sourceName", "operatorName": "operatorName", "buckets": [{"count": 1, "percentage": 5, "value": {"stringValue": "stringValue", "integerValue": 5}}, {"count": 1, "percentage": 5, "value": {"stringValue": "stringValue", "integerValue": 5}}]}], "rewrittenFacetFilters": [{"fieldName": "fieldName", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Spreadsheet", "relationType": "EQUALS"}]}, {"fieldName": "fieldName", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Spreadsheet", "relationType": "EQUALS"}]}], "hasMoreResults": true}, "rootMessage": {"title": "title", "url": "https://example.com/foo/bar", "nativeAppUrl": "slack://foo/bar", "snippets": [{"mimeType": "mimeType", "snippet": "snippet"}], "mustIncludeSuggestions": {"suggestions": [{"query": "app:github type:pull author:mortimer", "label": "Mortimer's PRs", "datasource": "github"}], "person": {"name": "George Clooney", "obfuscatedId": "abc123"}}}}
@@ -2744,4 +2744,4 @@ generatedTests:
27442744
updateshortcut: "2025-06-12T19:13:52-04:00"
27452745
releaseNotes: |
27462746
## Python SDK Changes Detected:
2747-
* `glean.client.search.retrieve_feed()`: `response.results.[].primary_entry.digest.sections.[].updates.[].urls` **Added**
2747+
* `glean.client.messages.retrieve()`: `request.datasource` **Changed** **Breaking** :warning:

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ generation:
2727
generateNewTests: true
2828
skipResponseBodyAssertions: true
2929
python:
30-
version: 0.10.2
30+
version: 0.10.3
3131
additionalDependencies:
3232
dev: {}
3333
main: {}

.speakeasy/glean-merged-spec.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8774,6 +8774,7 @@ components:
87748774
required:
87758775
- id
87768776
- idType
8777+
- datasource
87778778
properties:
87788779
idType:
87798780
type: string
@@ -8805,9 +8806,11 @@ components:
88058806
type: string
88068807
enum:
88078808
- SLACK
8809+
- SLACKENTGRID
88088810
- MICROSOFTTEAMS
8811+
- GCHAT
88098812
- FACEBOOKWORKPLACE
8810-
description: The type of the data source. Missing field defaults to SLACK.
8813+
description: The type of the data source.
88118814
datasourceInstanceDisplayName:
88128815
type: string
88138816
description: The datasource instance display name from which the document was extracted. This is used for appinstance facet filter for datasources that support multiple instances.

.speakeasy/workflow.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ speakeasyVersion: 1.636.3
22
sources:
33
Glean API:
44
sourceNamespace: glean-api-specs
5-
sourceRevisionDigest: sha256:784ebb76d989e40e13173fd5583545b5c83afb48be4d97b2c129cc90e2998f3f
6-
sourceBlobDigest: sha256:7d1478805de16c63a0e5c784706e64b229cb94f7e0b4d438aa52f764be944544
5+
sourceRevisionDigest: sha256:1dc42ac3d5012271bce5ddf879010efb2f292ded5ce08d224bb1cd28fcc4558d
6+
sourceBlobDigest: sha256:fa9263107a00a7b99c1ea0d1c0100757e4abad76b9156a0c98186da8953f8f16
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1760121026
9+
- speakeasy-sdk-regen-1760583312
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:784ebb76d989e40e13173fd5583545b5c83afb48be4d97b2c129cc90e2998f3f
21-
sourceBlobDigest: sha256:7d1478805de16c63a0e5c784706e64b229cb94f7e0b4d438aa52f764be944544
20+
sourceRevisionDigest: sha256:1dc42ac3d5012271bce5ddf879010efb2f292ded5ce08d224bb1cd28fcc4558d
21+
sourceBlobDigest: sha256:fa9263107a00a7b99c1ea0d1c0100757e4abad76b9156a0c98186da8953f8f16
2222
codeSamplesNamespace: glean-api-specs-python-code-samples
23-
codeSamplesRevisionDigest: sha256:0c78dc6fe3fd8e0ce3f9c12806901702b8ee76b252cce8dd81e313f35a75635f
23+
codeSamplesRevisionDigest: sha256:c0d827ef14785e6dd39b1db016e2957246cd2c73a71693fd1ef691f7878c7917
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
@@ -298,4 +298,14 @@ Based on:
298298
### Generated
299299
- [python v0.10.2] .
300300
### Releases
301-
- [PyPI v0.10.2] https://pypi.org/project/glean/0.10.2 - .
301+
- [PyPI v0.10.2] https://pypi.org/project/glean/0.10.2 - .
302+
303+
## 2025-10-16 02:54:45
304+
### Changes
305+
Based on:
306+
- OpenAPI Doc
307+
- Speakeasy CLI 1.636.3 (2.723.11) https://github.com/speakeasy-api/speakeasy
308+
### Generated
309+
- [python v0.10.3] .
310+
### Releases
311+
- [PyPI v0.10.3] https://pypi.org/project/glean/0.10.3 - .

docs/models/datasource.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
# Datasource
22

3-
The type of the data source. Missing field defaults to SLACK.
3+
The type of the data source.
44

55

66
## Values
77

88
| Name | Value |
99
| ------------------- | ------------------- |
1010
| `SLACK` | SLACK |
11+
| `SLACKENTGRID` | SLACKENTGRID |
1112
| `MICROSOFTTEAMS` | MICROSOFTTEAMS |
13+
| `GCHAT` | GCHAT |
1214
| `FACEBOOKWORKPLACE` | FACEBOOKWORKPLACE |

docs/models/messagesrequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
| `direction` | [Optional[models.Direction]](../models/direction.md) | :heavy_minus_sign: | The direction of the results asked with respect to the reference timestamp. Missing field defaults to OLDER. Only applicable when using a message_id. |
1212
| `timestamp_millis` | *Optional[int]* | :heavy_minus_sign: | Timestamp in millis of the reference message. Only applicable when using a message_id. |
1313
| `include_root_message` | *Optional[bool]* | :heavy_minus_sign: | Whether to include root message in response. |
14-
| `datasource` | [Optional[models.Datasource]](../models/datasource.md) | :heavy_minus_sign: | The type of the data source. Missing field defaults to SLACK. |
14+
| `datasource` | [models.Datasource](../models/datasource.md) | :heavy_check_mark: | The type of the data source. |
1515
| `datasource_instance_display_name` | *Optional[str]* | :heavy_minus_sign: | The datasource instance display name from which the document was extracted. This is used for appinstance facet filter for datasources that support multiple instances. |

docs/sdks/messages/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ with Glean(
2323
api_token=os.getenv("GLEAN_API_TOKEN", ""),
2424
) as glean:
2525

26-
res = glean.client.messages.retrieve(id_type=models.IDType.CONVERSATION_ID, id="<id>")
26+
res = glean.client.messages.retrieve(id_type=models.IDType.CONVERSATION_ID, id="<id>", datasource=models.Datasource.GCHAT)
2727

2828
# Handle response
2929
print(res)
@@ -36,11 +36,11 @@ with Glean(
3636
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
3737
| `id_type` | [models.IDType](../../models/idtype.md) | :heavy_check_mark: | Type of the id in the incoming request. |
3838
| `id` | *str* | :heavy_check_mark: | ID corresponding to the requested idType. Note that channel and threads are represented by the underlying datasource's ID and conversations are represented by their document's ID. |
39+
| `datasource` | [models.Datasource](../../models/datasource.md) | :heavy_check_mark: | The type of the data source. |
3940
| `workspace_id` | *Optional[str]* | :heavy_minus_sign: | Id for the for the workspace in case of multiple workspaces. |
4041
| `direction` | [Optional[models.Direction]](../../models/direction.md) | :heavy_minus_sign: | The direction of the results asked with respect to the reference timestamp. Missing field defaults to OLDER. Only applicable when using a message_id. |
4142
| `timestamp_millis` | *Optional[int]* | :heavy_minus_sign: | Timestamp in millis of the reference message. Only applicable when using a message_id. |
4243
| `include_root_message` | *Optional[bool]* | :heavy_minus_sign: | Whether to include root message in response. |
43-
| `datasource` | [Optional[models.Datasource]](../../models/datasource.md) | :heavy_minus_sign: | The type of the data source. Missing field defaults to SLACK. |
4444
| `datasource_instance_display_name` | *Optional[str]* | :heavy_minus_sign: | The datasource instance display name from which the document was extracted. This is used for appinstance facet filter for datasources that support multiple instances. |
4545
| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. |
4646

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "glean-api-client"
3-
version = "0.10.2"
3+
version = "0.10.3"
44
description = "Python Client SDK Generated by Speakeasy."
55
authors = [{ name = "Glean Technologies, Inc." }]
66
license = "MIT"

0 commit comments

Comments
 (0)