Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 3e3290ca-0ee8-4981-b1bc-14536048fa63
management:
docChecksum: ef00a2f5125097d9f584f0bbb5436f00
docChecksum: 5a4cd8de1e6ca5f701ac27e244d09799
docVersion: 0.9.0
speakeasyVersion: 1.636.3
generationVersion: 2.723.11
releaseVersion: 0.10.2
configChecksum: 0df6a87cbbcb2fcac2bba9f5d9a53017
releaseVersion: 0.10.3
configChecksum: e07c2e6f4cf5159e031335490e5f2f34
repoURL: https://github.com/gleanwork/api-client-python.git
installationURL: https://github.com/gleanwork/api-client-python.git
published: true
Expand Down Expand Up @@ -2195,7 +2195,7 @@ examples:
messages:
speakeasy-default-messages:
requestBody:
application/json: {"idType": "CONVERSATION_ID", "id": "<id>"}
application/json: {"idType": "CONVERSATION_ID", "id": "<id>", "datasource": "GCHAT"}
responses:
"200":
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"}}}}
Expand Down Expand Up @@ -2744,4 +2744,4 @@ generatedTests:
updateshortcut: "2025-06-12T19:13:52-04:00"
releaseNotes: |
## Python SDK Changes Detected:
* `glean.client.search.retrieve_feed()`: `response.results.[].primary_entry.digest.sections.[].updates.[].urls` **Added**
* `glean.client.messages.retrieve()`: `request.datasource` **Changed** **Breaking** :warning:
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ generation:
generateNewTests: true
skipResponseBodyAssertions: true
python:
version: 0.10.2
version: 0.10.3
additionalDependencies:
dev: {}
main: {}
Expand Down
5 changes: 4 additions & 1 deletion .speakeasy/glean-merged-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8774,6 +8774,7 @@ components:
required:
- id
- idType
- datasource
properties:
idType:
type: string
Expand Down Expand Up @@ -8805,9 +8806,11 @@ components:
type: string
enum:
- SLACK
- SLACKENTGRID
- MICROSOFTTEAMS
- GCHAT
- FACEBOOKWORKPLACE
description: The type of the data source. Missing field defaults to SLACK.
description: The type of the data source.
datasourceInstanceDisplayName:
type: string
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.
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ speakeasyVersion: 1.636.3
sources:
Glean API:
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:784ebb76d989e40e13173fd5583545b5c83afb48be4d97b2c129cc90e2998f3f
sourceBlobDigest: sha256:7d1478805de16c63a0e5c784706e64b229cb94f7e0b4d438aa52f764be944544
sourceRevisionDigest: sha256:1dc42ac3d5012271bce5ddf879010efb2f292ded5ce08d224bb1cd28fcc4558d
sourceBlobDigest: sha256:fa9263107a00a7b99c1ea0d1c0100757e4abad76b9156a0c98186da8953f8f16
tags:
- latest
- speakeasy-sdk-regen-1760121026
- speakeasy-sdk-regen-1760583312
Glean Client API:
sourceNamespace: glean-client-api
sourceRevisionDigest: sha256:4edc63ad559e4f2c9fb9ebf5edaaaaa9269f1874d271cfd84b441d6dacac43d2
Expand All @@ -17,10 +17,10 @@ targets:
glean:
source: Glean API
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:784ebb76d989e40e13173fd5583545b5c83afb48be4d97b2c129cc90e2998f3f
sourceBlobDigest: sha256:7d1478805de16c63a0e5c784706e64b229cb94f7e0b4d438aa52f764be944544
sourceRevisionDigest: sha256:1dc42ac3d5012271bce5ddf879010efb2f292ded5ce08d224bb1cd28fcc4558d
sourceBlobDigest: sha256:fa9263107a00a7b99c1ea0d1c0100757e4abad76b9156a0c98186da8953f8f16
codeSamplesNamespace: glean-api-specs-python-code-samples
codeSamplesRevisionDigest: sha256:0c78dc6fe3fd8e0ce3f9c12806901702b8ee76b252cce8dd81e313f35a75635f
codeSamplesRevisionDigest: sha256:c0d827ef14785e6dd39b1db016e2957246cd2c73a71693fd1ef691f7878c7917
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -298,4 +298,14 @@ Based on:
### Generated
- [python v0.10.2] .
### Releases
- [PyPI v0.10.2] https://pypi.org/project/glean/0.10.2 - .
- [PyPI v0.10.2] https://pypi.org/project/glean/0.10.2 - .

## 2025-10-16 02:54:45
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.636.3 (2.723.11) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.10.3] .
### Releases
- [PyPI v0.10.3] https://pypi.org/project/glean/0.10.3 - .
4 changes: 3 additions & 1 deletion docs/models/datasource.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# Datasource

The type of the data source. Missing field defaults to SLACK.
The type of the data source.


## Values

| Name | Value |
| ------------------- | ------------------- |
| `SLACK` | SLACK |
| `SLACKENTGRID` | SLACKENTGRID |
| `MICROSOFTTEAMS` | MICROSOFTTEAMS |
| `GCHAT` | GCHAT |
| `FACEBOOKWORKPLACE` | FACEBOOKWORKPLACE |
2 changes: 1 addition & 1 deletion docs/models/messagesrequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
| `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. |
| `timestamp_millis` | *Optional[int]* | :heavy_minus_sign: | Timestamp in millis of the reference message. Only applicable when using a message_id. |
| `include_root_message` | *Optional[bool]* | :heavy_minus_sign: | Whether to include root message in response. |
| `datasource` | [Optional[models.Datasource]](../models/datasource.md) | :heavy_minus_sign: | The type of the data source. Missing field defaults to SLACK. |
| `datasource` | [models.Datasource](../models/datasource.md) | :heavy_check_mark: | The type of the data source. |
| `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. |
4 changes: 2 additions & 2 deletions docs/sdks/messages/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ with Glean(
api_token=os.getenv("GLEAN_API_TOKEN", ""),
) as glean:

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

# Handle response
print(res)
Expand All @@ -36,11 +36,11 @@ with Glean(
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `id_type` | [models.IDType](../../models/idtype.md) | :heavy_check_mark: | Type of the id in the incoming request. |
| `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. |
| `datasource` | [models.Datasource](../../models/datasource.md) | :heavy_check_mark: | The type of the data source. |
| `workspace_id` | *Optional[str]* | :heavy_minus_sign: | Id for the for the workspace in case of multiple workspaces. |
| `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. |
| `timestamp_millis` | *Optional[int]* | :heavy_minus_sign: | Timestamp in millis of the reference message. Only applicable when using a message_id. |
| `include_root_message` | *Optional[bool]* | :heavy_minus_sign: | Whether to include root message in response. |
| `datasource` | [Optional[models.Datasource]](../../models/datasource.md) | :heavy_minus_sign: | The type of the data source. Missing field defaults to SLACK. |
| `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. |
| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. |

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "glean-api-client"
version = "0.10.2"
version = "0.10.3"
description = "Python Client SDK Generated by Speakeasy."
authors = [{ name = "Glean Technologies, Inc." }]
license = "MIT"
Expand Down
Loading