Skip to content
Closed
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.env
.env.local
**/__pycache__/
**/.speakeasy/temp/
**/.speakeasy/logs/
Expand Down
49 changes: 33 additions & 16 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
oAuth2PasswordEnabled: false
hoistGlobalSecurity: true
mockServer:
disabled: false
tests:
generateTests: true
generateNewTests: true
skipResponseBodyAssertions: true
python:
version: 0.7.3
version: 0.7.4
additionalDependencies:
dev: {}
main: {}
Expand Down Expand Up @@ -65,4 +66,5 @@ python:
pytestFilterWarnings: []
pytestTimeout: 0
responseFormat: flat
sseFlatResponse: false
templateVersion: v2
150 changes: 146 additions & 4 deletions .speakeasy/glean-merged-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4261,18 +4261,28 @@ components:
tokenType: Bearer
authUser: "1"
DocumentSpec:
x-multiple-discriminators: true
oneOf:
- type: object
required:
- url
properties:
url:
type: string
x-discriminator: true
description: The URL of the document.
- type: object
required:
- id
properties:
id:
type: string
x-discriminator: true
description: The ID of the document.
- type: object
required:
- contentId
- ugcType
properties:
ugcType:
type: string
Expand All @@ -4281,10 +4291,33 @@ components:
- ANSWERS
- COLLECTIONS
- SHORTCUTS
- CHATS
description: The type of the user generated content (UGC datasource).
contentId:
type: integer
description: The id for user generated content.
x-discriminator: true
description: The numeric id for user generated content. Used for ANNOUNCEMENTS, ANSWERS, COLLECTIONS, SHORTCUTS.
docType:
type: string
description: The specific type of the user generated content type.
- type: object
required:
- ugcType
- ugcId
properties:
ugcType:
type: string
enum:
- ANNOUNCEMENTS
- ANSWERS
- COLLECTIONS
- SHORTCUTS
- CHATS
description: The type of the user generated content (UGC datasource).
ugcId:
type: string
x-discriminator: true
description: The string id for user generated content. Used for CHATS.
docType:
type: string
description: The specific type of the user generated content type.
Expand Down Expand Up @@ -4868,6 +4901,9 @@ components:
datasourceInstance:
type: string
description: Datasource instance if the group belongs to one e.g. external groups.
provisioningId:
type: string
description: identifier for greenlist provisioning, aka sciokey
UserRole:
type: string
description: A user's role with respect to a specific document.
Expand Down Expand Up @@ -7287,7 +7323,7 @@ components:
additionalProperties:
$ref: "#/components/schemas/WriteActionParameter"
ChatMessageFragment:
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.
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.
allOf:
- $ref: "#/components/schemas/Result"
- type: object
Expand Down Expand Up @@ -7354,6 +7390,7 @@ components:
ERROR: A message that describes an error while processing the request.
HEADING: A heading message used to distinguish different sections of the holistic response.
WARNING: A warning message to be shown to the user.
SERVER_TOOL: A message used to for server-side tool auth/use, for request and response.
enum:
- UPDATE
- CONTENT
Expand All @@ -7363,6 +7400,7 @@ components:
- ERROR
- HEADING
- WARNING
- SERVER_TOOL
hasMoreFragments:
deprecated: true
type: boolean
Expand Down Expand Up @@ -7489,12 +7527,18 @@ components:
description: A historical representation of a series of chat messages a user had with Glean Assistant.
allOf:
- $ref: "#/components/schemas/ChatMetadata"
- $ref: "#/components/schemas/PermissionedObject"
properties:
messages:
type: array
items:
$ref: "#/components/schemas/ChatMessage"
description: The chat messages within a Chat.
roles:
type: array
items:
$ref: "#/components/schemas/UserRoleSpecification"
description: A list of roles for this Chat.
ChatResult:
properties:
chat:
Expand Down Expand Up @@ -7558,6 +7602,9 @@ components:
items:
type: string
description: IDs of files to fetch.
chatId:
type: string
description: The ID of the chat that contains the chat file.
GetChatFilesResponse:
properties:
files:
Expand Down Expand Up @@ -7808,9 +7855,12 @@ components:
- NO_PERMISSIONS
CreateCollectionResponse:
allOf:
- $ref: "#/components/schemas/Collection"
- $ref: "#/components/schemas/CollectionError"
- type: object
anyOf:
- required:
- collection
- required:
- error
properties:
collection:
$ref: "#/components/schemas/Collection"
Expand Down Expand Up @@ -9153,6 +9203,7 @@ components:
- ZERO_STATE_WORKFLOW_POPULAR
- ZERO_STATE_WORKFLOW_SUGGESTION
- PERSONALIZED_CHAT_SUGGESTION
- DAILY_DIGEST
description: Categories of content requested. An allowlist gives flexibility to request content separately or together.
requestOptions:
$ref: "#/components/schemas/FeedRequestOptions"
Expand Down Expand Up @@ -9308,6 +9359,91 @@ components:
type: array
items:
$ref: "#/components/schemas/GeneratedAttachment"
SectionType:
type: string
description: Type of the section. This defines how the section should be interpreted and rendered in the digest.
x-enumDescriptions:
CHANNEL: A standard section for channel-based digests (e.g. from Slack, Teams).
MENTIONS: A dedicated section that surfaces user mentions (actionable, informative, or all).
TOPIC: A section driven by a generic topic, not tied to any specific channel or instance.
enum:
- CHANNEL
- MENTIONS
- TOPIC
UpdateType:
type: string
description: Optional type classification for the update.
x-enumDescriptions:
ACTIONABLE: Updates that require user attention or action
INFORMATIVE: Updates that are purely informational
enum:
- ACTIONABLE
- INFORMATIVE
DigestUpdate:
type: object
properties:
url:
type: string
description: URL link to the content or document.
title:
type: string
description: Title or headline of the update.
datasource:
type: string
description: Name or identifier of the data source (e.g., slack, confluence, etc.).
summary:
type: string
description: Brief summary or description of the update content.
type:
$ref: "#/components/schemas/UpdateType"
DigestSection:
type: object
required:
- id
- type
- updates
properties:
id:
type: string
description: Unique identifier for the digest section.
type:
$ref: "#/components/schemas/SectionType"
displayName:
type: string
description: Human-readable name for the digest section.
channelName:
type: string
description: Name of the channel (applicable for CHANNEL type sections). Used to display in the frontend.
instanceId:
type: string
description: Instance identifier for the channel or workspace. Used for constructing channel URLs to display in the frontend.
url:
type: string
description: Optional URL for the digest section. Should be populated only if the section is a CHANNEL type section.
updates:
type: array
items:
$ref: "#/components/schemas/DigestUpdate"
description: List of updates within this digest section.
Digest:
type: object
properties:
podcastFileId:
type: string
description: Identifier for the podcast file generated from this digest content.
podcastDuration:
type: number
format: float
description: Duration of the podcast file in seconds.
digestDate:
type: string
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.
example: "2025-09-03"
sections:
type: array
items:
$ref: "#/components/schemas/DigestSection"
description: Array of digest sections from which the podcast was created.
ChatSuggestion:
properties:
query:
Expand Down Expand Up @@ -9530,6 +9666,7 @@ components:
- ZERO_STATE_STATIC_WORKFLOW_SUGGESTION
- ZERO_STATE_AGENT_SUGGESTION
- PERSONALIZED_CHAT_SUGGESTION
- DAILY_DIGEST
description: Type of the justification.
justification:
type: string
Expand All @@ -9546,6 +9683,8 @@ components:
$ref: "#/components/schemas/CalendarEvent"
announcement:
$ref: "#/components/schemas/Announcement"
digest:
$ref: "#/components/schemas/Digest"
collection:
$ref: "#/components/schemas/Collection"
collectionItem:
Expand Down Expand Up @@ -9598,6 +9737,7 @@ components:
- ZERO_STATE_WORKFLOW_POPULAR
- ZERO_STATE_WORKFLOW_SUGGESTION
- PERSONALIZED_CHAT_SUGGESTION
- DAILY_DIGEST
description: Category of the result, one of the requested categories in incoming request.
primaryEntry:
$ref: "#/components/schemas/FeedEntry"
Expand Down Expand Up @@ -11595,6 +11735,7 @@ components:
- EXTERNAL_SHORTCUT
- ENTITY
- CALENDAR
- AGENTS
description: The document category of this object type.
propertyDefinitions:
type: array
Expand Down Expand Up @@ -11649,6 +11790,7 @@ components:
- EXTERNAL_SHORTCUT
- ENTITY
- CALENDAR
- AGENTS
default: UNCATEGORIZED
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.
urlRegex:
Expand Down
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
speakeasyVersion: 1.606.9
speakeasyVersion: 1.622.1
sources:
Glean API:
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:35193fded9c9797576c742f6e93e2e3e9d507aa2ab2c55a5458825561552f33e
sourceBlobDigest: sha256:1dc638c477afb69ccc30ba6482d7ac2e7237238d44638da8d0c4ece45f36d416
sourceRevisionDigest: sha256:3c05b922fcc476380389e53d62c9604ef27de784d9e68fc0e75ed412310d5007
sourceBlobDigest: sha256:6e213c122174f2e94a93fa23c1cb28b68664ce3408a9d52ec013582354d7bf64
tags:
- latest
- speakeasy-sdk-regen-1755200990
- speakeasy-sdk-regen-1756833812
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:35193fded9c9797576c742f6e93e2e3e9d507aa2ab2c55a5458825561552f33e
sourceBlobDigest: sha256:1dc638c477afb69ccc30ba6482d7ac2e7237238d44638da8d0c4ece45f36d416
sourceRevisionDigest: sha256:3c05b922fcc476380389e53d62c9604ef27de784d9e68fc0e75ed412310d5007
sourceBlobDigest: sha256:6e213c122174f2e94a93fa23c1cb28b68664ce3408a9d52ec013582354d7bf64
codeSamplesNamespace: glean-api-specs-python-code-samples
codeSamplesRevisionDigest: sha256:ec1033795495ed5feb092f4ca786534382c763ff1787a997db77303ef0539ad9
codeSamplesRevisionDigest: sha256:98a13a63cdf737a90dd1b7477ea6c0ce8a80bbd62c3e5bdce09ca7d65585e69b
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 @@ -208,4 +208,14 @@ Based on:
### Generated
- [python v0.7.3] .
### Releases
- [PyPI v0.7.3] https://pypi.org/project/glean/0.7.3 - .
- [PyPI v0.7.3] https://pypi.org/project/glean/0.7.3 - .

## 2025-09-23 01:24:23
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.622.1 (2.709.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.7.4] .
### Releases
- [PyPI v0.7.4] https://pypi.org/project/glean/0.7.4 - .
4 changes: 3 additions & 1 deletion docs/models/chat.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ A historical representation of a series of chat messages a user had with Glean A
| `application_id` | *Optional[str]* | :heavy_minus_sign: | The ID of the AI App that this Chat is associated to. | |
| `application_name` | *Optional[str]* | :heavy_minus_sign: | The display name of the AI App that this Chat is associated to. | |
| `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/>} |
| `messages` | List[[models.ChatMessage](../models/chatmessage.md)] | :heavy_minus_sign: | The chat messages within a Chat. | |
| `permissions` | [Optional[models.ObjectPermissions]](../models/objectpermissions.md) | :heavy_minus_sign: | N/A | |
| `messages` | List[[models.ChatMessage](../models/chatmessage.md)] | :heavy_minus_sign: | The chat messages within a Chat. | |
| `roles` | List[[models.UserRoleSpecification](../models/userrolespecification.md)] | :heavy_minus_sign: | A list of roles for this Chat. | |
Loading