Skip to content

Commit 1080cd6

Browse files
committed
## Python SDK Changes Detected:
* `glean.client.chat.retrieve()`: `response.chat_result.chat` **Changed** * `glean.client.search.retrieve_feed()`: `response.results.[].primary_entry.digest` **Added**
1 parent 8bc35c4 commit 1080cd6

Some content is hidden

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

47 files changed

+674
-33
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.env
2+
.env.local
13
**/__pycache__/
24
**/.speakeasy/temp/
35
**/.speakeasy/logs/

.speakeasy/gen.lock

Lines changed: 26 additions & 8 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ generation:
2626
generateNewTests: true
2727
skipResponseBodyAssertions: true
2828
python:
29-
version: 0.7.3
29+
version: 0.7.4
3030
additionalDependencies:
3131
dev: {}
3232
main: {}

.speakeasy/glean-merged-spec.yaml

Lines changed: 95 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7287,7 +7287,7 @@ components:
72877287
additionalProperties:
72887288
$ref: "#/components/schemas/WriteActionParameter"
72897289
ChatMessageFragment:
7290-
description: Represents a part of a ChatMessage that originates from a single action/tool. It is designed to support rich data formats beyond simple text, allowing for a more dynamic and interactive chat experience. Each fragment can include various types of content, such as text, search queries, action information, and more. Also, each ChatMessageFragment should only have one of structuredResults, querySuggestion, writeAction, followupAction, or file.
7290+
description: Represents a part of a ChatMessage that originates from a single action/tool. It is designed to support rich data formats beyond simple text, allowing for a more dynamic and interactive chat experience. Each fragment can include various types of content, such as text, search queries, action information, and more. Also, each ChatMessageFragment should only have one of structuredResults, querySuggestion, writeAction, followupAction, agentRecommendation or file.
72917291
allOf:
72927292
- $ref: "#/components/schemas/Result"
72937293
- type: object
@@ -7489,12 +7489,18 @@ components:
74897489
description: A historical representation of a series of chat messages a user had with Glean Assistant.
74907490
allOf:
74917491
- $ref: "#/components/schemas/ChatMetadata"
7492+
- $ref: "#/components/schemas/PermissionedObject"
74927493
properties:
74937494
messages:
74947495
type: array
74957496
items:
74967497
$ref: "#/components/schemas/ChatMessage"
74977498
description: The chat messages within a Chat.
7499+
roles:
7500+
type: array
7501+
items:
7502+
$ref: "#/components/schemas/UserRoleSpecification"
7503+
description: A list of roles for this Chat.
74987504
ChatResult:
74997505
properties:
75007506
chat:
@@ -9153,6 +9159,7 @@ components:
91539159
- ZERO_STATE_WORKFLOW_POPULAR
91549160
- ZERO_STATE_WORKFLOW_SUGGESTION
91559161
- PERSONALIZED_CHAT_SUGGESTION
9162+
- DAILY_DIGEST
91569163
description: Categories of content requested. An allowlist gives flexibility to request content separately or together.
91579164
requestOptions:
91589165
$ref: "#/components/schemas/FeedRequestOptions"
@@ -9308,6 +9315,87 @@ components:
93089315
type: array
93099316
items:
93109317
$ref: "#/components/schemas/GeneratedAttachment"
9318+
SectionType:
9319+
type: string
9320+
description: Type of the section. This defines how the section should be interpreted and rendered in the digest.
9321+
x-enumDescriptions:
9322+
CHANNEL: A standard section for channel-based digests (e.g. from Slack, Teams).
9323+
MENTIONS: A dedicated section that surfaces user mentions (actionable, informative, or all).
9324+
TOPIC: A section driven by a generic topic, not tied to any specific channel or instance.
9325+
enum:
9326+
- CHANNEL
9327+
- MENTIONS
9328+
- TOPIC
9329+
UpdateType:
9330+
type: string
9331+
description: Optional type classification for the update.
9332+
x-enumDescriptions:
9333+
ACTIONABLE: Updates that require user attention or action
9334+
INFORMATIVE: Updates that are purely informational
9335+
enum:
9336+
- ACTIONABLE
9337+
- INFORMATIVE
9338+
DigestUpdate:
9339+
type: object
9340+
properties:
9341+
url:
9342+
type: string
9343+
description: URL link to the content or document.
9344+
title:
9345+
type: string
9346+
description: Title or headline of the update.
9347+
datasource:
9348+
type: string
9349+
description: Name or identifier of the data source (e.g., slack, confluence, etc.).
9350+
summary:
9351+
type: string
9352+
description: Brief summary or description of the update content.
9353+
type:
9354+
$ref: "#/components/schemas/UpdateType"
9355+
DigestSection:
9356+
type: object
9357+
required:
9358+
- id
9359+
- type
9360+
- updates
9361+
properties:
9362+
id:
9363+
type: string
9364+
description: Unique identifier for the digest section.
9365+
type:
9366+
$ref: "#/components/schemas/SectionType"
9367+
displayName:
9368+
type: string
9369+
description: Human-readable name for the digest section.
9370+
channelName:
9371+
type: string
9372+
description: Name of the channel (applicable for CHANNEL type sections). Used to display in the frontend.
9373+
instanceId:
9374+
type: string
9375+
description: Instance identifier for the channel or workspace. Used for constructing channel URLs to display in the frontend.
9376+
url:
9377+
type: string
9378+
description: Optional URL for the digest section. Should be populated only if the section is a CHANNEL type section.
9379+
updates:
9380+
type: array
9381+
items:
9382+
$ref: "#/components/schemas/DigestUpdate"
9383+
description: List of updates within this digest section.
9384+
Digest:
9385+
type: object
9386+
properties:
9387+
podcastFileId:
9388+
type: string
9389+
description: Identifier for the podcast file generated from this digest content.
9390+
digestDate:
9391+
type: string
9392+
description: The date this digest covers, in YYYY-MM-DD format. Represents the specific day for which the digest content and updates were compiled. This can be empty if the digest is not yet available.
9393+
example: "2025-09-03"
9394+
sections:
9395+
type: array
9396+
items:
9397+
$ref: "#/components/schemas/DigestSection"
9398+
description: Array of digest sections from which the podcast was created.
93119399
ChatSuggestion:
93129400
properties:
93139401
query:
@@ -9530,6 +9618,7 @@ components:
95309618
- ZERO_STATE_STATIC_WORKFLOW_SUGGESTION
95319619
- ZERO_STATE_AGENT_SUGGESTION
95329620
- PERSONALIZED_CHAT_SUGGESTION
9621+
- DAILY_DIGEST
95339622
description: Type of the justification.
95349623
justification:
95359624
type: string
@@ -9546,6 +9635,8 @@ components:
95469635
$ref: "#/components/schemas/CalendarEvent"
95479636
announcement:
95489637
$ref: "#/components/schemas/Announcement"
9638+
digest:
9639+
$ref: "#/components/schemas/Digest"
95499640
collection:
95509641
$ref: "#/components/schemas/Collection"
95519642
collectionItem:
@@ -9598,6 +9689,7 @@ components:
95989689
- ZERO_STATE_WORKFLOW_POPULAR
95999690
- ZERO_STATE_WORKFLOW_SUGGESTION
96009691
- PERSONALIZED_CHAT_SUGGESTION
9692+
- DAILY_DIGEST
96019693
description: Category of the result, one of the requested categories in incoming request.
96029694
primaryEntry:
96039695
$ref: "#/components/schemas/FeedEntry"
@@ -11595,6 +11687,7 @@ components:
1159511687
- EXTERNAL_SHORTCUT
1159611688
- ENTITY
1159711689
- CALENDAR
11690+
- AGENTS
1159811691
description: The document category of this object type.
1159911692
propertyDefinitions:
1160011693
type: array
@@ -11649,6 +11742,7 @@ components:
1164911742
- EXTERNAL_SHORTCUT
1165011743
- ENTITY
1165111744
- CALENDAR
11745+
- AGENTS
1165211746
default: UNCATEGORIZED
1165311747
description: The type of this datasource. It is an important signal for relevance and must be specified and cannot be UNCATEGORIZED. Please refer to [this](https://developers.glean.com/docs/indexing_api_datasource_category/) for more details.
1165411748
urlRegex:

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
speakeasyVersion: 1.606.9
1+
speakeasyVersion: 1.613.0
22
sources:
33
Glean API:
44
sourceNamespace: glean-api-specs
5-
sourceRevisionDigest: sha256:35193fded9c9797576c742f6e93e2e3e9d507aa2ab2c55a5458825561552f33e
6-
sourceBlobDigest: sha256:1dc638c477afb69ccc30ba6482d7ac2e7237238d44638da8d0c4ece45f36d416
5+
sourceRevisionDigest: sha256:5657ace4f9e9ed429ec77f782970e950e8b3d14b3aa3f67dcd7236e0dcc4d624
6+
sourceBlobDigest: sha256:128308c3621888b6171f292de5934c263ad4366c70ae2eb2811600bb64cb5aa2
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1755200990
9+
- speakeasy-sdk-regen-1756833812
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:35193fded9c9797576c742f6e93e2e3e9d507aa2ab2c55a5458825561552f33e
21-
sourceBlobDigest: sha256:1dc638c477afb69ccc30ba6482d7ac2e7237238d44638da8d0c4ece45f36d416
20+
sourceRevisionDigest: sha256:5657ace4f9e9ed429ec77f782970e950e8b3d14b3aa3f67dcd7236e0dcc4d624
21+
sourceBlobDigest: sha256:128308c3621888b6171f292de5934c263ad4366c70ae2eb2811600bb64cb5aa2
2222
codeSamplesNamespace: glean-api-specs-python-code-samples
23-
codeSamplesRevisionDigest: sha256:ec1033795495ed5feb092f4ca786534382c763ff1787a997db77303ef0539ad9
23+
codeSamplesRevisionDigest: sha256:7b60236211a98196e54622b91345608182582cd945c55286b042b4d6e65c4242
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
@@ -208,4 +208,14 @@ Based on:
208208
### Generated
209209
- [python v0.7.3] .
210210
### Releases
211-
- [PyPI v0.7.3] https://pypi.org/project/glean/0.7.3 - .
211+
- [PyPI v0.7.3] https://pypi.org/project/glean/0.7.3 - .
212+
213+
## 2025-09-09 00:46:15
214+
### Changes
215+
Based on:
216+
- OpenAPI Doc
217+
- Speakeasy CLI 1.613.0 (2.696.0) https://github.com/speakeasy-api/speakeasy
218+
### Generated
219+
- [python v0.7.4] .
220+
### Releases
221+
- [PyPI v0.7.4] https://pypi.org/project/glean/0.7.4 - .

docs/models/chat.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,6 @@ A historical representation of a series of chat messages a user had with Glean A
1515
| `application_id` | *Optional[str]* | :heavy_minus_sign: | The ID of the AI App that this Chat is associated to. | |
1616
| `application_name` | *Optional[str]* | :heavy_minus_sign: | The display name of the AI App that this Chat is associated to. | |
1717
| `icon` | [Optional[models.IconConfig]](../models/iconconfig.md) | :heavy_minus_sign: | Defines how to render an icon | {<br/>"color": "#343CED",<br/>"key": "person_icon",<br/>"iconType": "GLYPH",<br/>"name": "user"<br/>} |
18-
| `messages` | List[[models.ChatMessage](../models/chatmessage.md)] | :heavy_minus_sign: | The chat messages within a Chat. | |
18+
| `permissions` | [Optional[models.ObjectPermissions]](../models/objectpermissions.md) | :heavy_minus_sign: | N/A | |
19+
| `messages` | List[[models.ChatMessage](../models/chatmessage.md)] | :heavy_minus_sign: | The chat messages within a Chat. | |
20+
| `roles` | List[[models.UserRoleSpecification](../models/userrolespecification.md)] | :heavy_minus_sign: | A list of roles for this Chat. | |

docs/models/chatmessagefragment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ChatMessageFragment
22

3-
Represents a part of a ChatMessage that originates from a single action/tool. It is designed to support rich data formats beyond simple text, allowing for a more dynamic and interactive chat experience. Each fragment can include various types of content, such as text, search queries, action information, and more. Also, each ChatMessageFragment should only have one of structuredResults, querySuggestion, writeAction, followupAction, or file.
3+
Represents a part of a ChatMessage that originates from a single action/tool. It is designed to support rich data formats beyond simple text, allowing for a more dynamic and interactive chat experience. Each fragment can include various types of content, such as text, search queries, action information, and more. Also, each ChatMessageFragment should only have one of structuredResults, querySuggestion, writeAction, followupAction, agentRecommendation or file.
44

55

66
## Fields

docs/models/datasourcecategory.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,5 @@ The type of this datasource. It is an important signal for relevance and must be
2323
| `KNOWLEDGE_HUB` | KNOWLEDGE_HUB |
2424
| `EXTERNAL_SHORTCUT` | EXTERNAL_SHORTCUT |
2525
| `ENTITY` | ENTITY |
26-
| `CALENDAR` | CALENDAR |
26+
| `CALENDAR` | CALENDAR |
27+
| `AGENTS` | AGENTS |

0 commit comments

Comments
 (0)