You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .speakeasy/glean-merged-spec.yaml
+112-1Lines changed: 112 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4261,18 +4261,28 @@ components:
4261
4261
tokenType: Bearer
4262
4262
authUser: "1"
4263
4263
DocumentSpec:
4264
+
x-multiple-discriminators: true
4264
4265
oneOf:
4265
4266
- type: object
4267
+
required:
4268
+
- url
4266
4269
properties:
4267
4270
url:
4268
4271
type: string
4272
+
x-discriminator: true
4269
4273
description: The URL of the document.
4270
4274
- type: object
4275
+
required:
4276
+
- id
4271
4277
properties:
4272
4278
id:
4273
4279
type: string
4280
+
x-discriminator: true
4274
4281
description: The ID of the document.
4275
4282
- type: object
4283
+
required:
4284
+
- contentId
4285
+
- ugcType
4276
4286
properties:
4277
4287
ugcType:
4278
4288
type: string
@@ -4284,6 +4294,7 @@ components:
4284
4294
description: The type of the user generated content (UGC datasource).
4285
4295
contentId:
4286
4296
type: integer
4297
+
x-discriminator: true
4287
4298
description: The id for user generated content.
4288
4299
docType:
4289
4300
type: string
@@ -7287,7 +7298,7 @@ components:
7287
7298
additionalProperties:
7288
7299
$ref: "#/components/schemas/WriteActionParameter"
7289
7300
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.
7301
+
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.
7291
7302
allOf:
7292
7303
- $ref: "#/components/schemas/Result"
7293
7304
- type: object
@@ -7354,6 +7365,7 @@ components:
7354
7365
ERROR: A message that describes an error while processing the request.
7355
7366
HEADING: A heading message used to distinguish different sections of the holistic response.
7356
7367
WARNING: A warning message to be shown to the user.
7368
+
SERVER_TOOL: A message used to for server-side tool auth/use, for request and response.
7357
7369
enum:
7358
7370
- UPDATE
7359
7371
- CONTENT
@@ -7363,6 +7375,7 @@ components:
7363
7375
- ERROR
7364
7376
- HEADING
7365
7377
- WARNING
7378
+
- SERVER_TOOL
7366
7379
hasMoreFragments:
7367
7380
deprecated: true
7368
7381
type: boolean
@@ -7489,12 +7502,18 @@ components:
7489
7502
description: A historical representation of a series of chat messages a user had with Glean Assistant.
description: Categories of content requested. An allowlist gives flexibility to request content separately or together.
9157
9177
requestOptions:
9158
9178
$ref: "#/components/schemas/FeedRequestOptions"
@@ -9308,6 +9328,91 @@ components:
9308
9328
type: array
9309
9329
items:
9310
9330
$ref: "#/components/schemas/GeneratedAttachment"
9331
+
SectionType:
9332
+
type: string
9333
+
description: Type of the section. This defines how the section should be interpreted and rendered in the digest.
9334
+
x-enumDescriptions:
9335
+
CHANNEL: A standard section for channel-based digests (e.g. from Slack, Teams).
9336
+
MENTIONS: A dedicated section that surfaces user mentions (actionable, informative, or all).
9337
+
TOPIC: A section driven by a generic topic, not tied to any specific channel or instance.
9338
+
enum:
9339
+
- CHANNEL
9340
+
- MENTIONS
9341
+
- TOPIC
9342
+
UpdateType:
9343
+
type: string
9344
+
description: Optional type classification for the update.
9345
+
x-enumDescriptions:
9346
+
ACTIONABLE: Updates that require user attention or action
9347
+
INFORMATIVE: Updates that are purely informational
9348
+
enum:
9349
+
- ACTIONABLE
9350
+
- INFORMATIVE
9351
+
DigestUpdate:
9352
+
type: object
9353
+
properties:
9354
+
url:
9355
+
type: string
9356
+
description: URL link to the content or document.
9357
+
title:
9358
+
type: string
9359
+
description: Title or headline of the update.
9360
+
datasource:
9361
+
type: string
9362
+
description: Name or identifier of the data source (e.g., slack, confluence, etc.).
9363
+
summary:
9364
+
type: string
9365
+
description: Brief summary or description of the update content.
9366
+
type:
9367
+
$ref: "#/components/schemas/UpdateType"
9368
+
DigestSection:
9369
+
type: object
9370
+
required:
9371
+
- id
9372
+
- type
9373
+
- updates
9374
+
properties:
9375
+
id:
9376
+
type: string
9377
+
description: Unique identifier for the digest section.
9378
+
type:
9379
+
$ref: "#/components/schemas/SectionType"
9380
+
displayName:
9381
+
type: string
9382
+
description: Human-readable name for the digest section.
9383
+
channelName:
9384
+
type: string
9385
+
description: Name of the channel (applicable for CHANNEL type sections). Used to display in the frontend.
9386
+
instanceId:
9387
+
type: string
9388
+
description: Instance identifier for the channel or workspace. Used for constructing channel URLs to display in the frontend.
9389
+
url:
9390
+
type: string
9391
+
description: Optional URL for the digest section. Should be populated only if the section is a CHANNEL type section.
9392
+
updates:
9393
+
type: array
9394
+
items:
9395
+
$ref: "#/components/schemas/DigestUpdate"
9396
+
description: List of updates within this digest section.
9397
+
Digest:
9398
+
type: object
9399
+
properties:
9400
+
podcastFileId:
9401
+
type: string
9402
+
description: Identifier for the podcast file generated from this digest content.
9403
+
podcastDuration:
9404
+
type: number
9405
+
format: float
9406
+
description: Duration of the podcast file in seconds.
9407
+
digestDate:
9408
+
type: string
9409
+
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.
9410
+
example: "2025-09-03"
9411
+
sections:
9412
+
type: array
9413
+
items:
9414
+
$ref: "#/components/schemas/DigestSection"
9415
+
description: Array of digest sections from which the podcast was created.
9311
9416
ChatSuggestion:
9312
9417
properties:
9313
9418
query:
@@ -9530,6 +9635,7 @@ components:
9530
9635
- ZERO_STATE_STATIC_WORKFLOW_SUGGESTION
9531
9636
- ZERO_STATE_AGENT_SUGGESTION
9532
9637
- PERSONALIZED_CHAT_SUGGESTION
9638
+
- DAILY_DIGEST
9533
9639
description: Type of the justification.
9534
9640
justification:
9535
9641
type: string
@@ -9546,6 +9652,8 @@ components:
9546
9652
$ref: "#/components/schemas/CalendarEvent"
9547
9653
announcement:
9548
9654
$ref: "#/components/schemas/Announcement"
9655
+
digest:
9656
+
$ref: "#/components/schemas/Digest"
9549
9657
collection:
9550
9658
$ref: "#/components/schemas/Collection"
9551
9659
collectionItem:
@@ -9598,6 +9706,7 @@ components:
9598
9706
- ZERO_STATE_WORKFLOW_POPULAR
9599
9707
- ZERO_STATE_WORKFLOW_SUGGESTION
9600
9708
- PERSONALIZED_CHAT_SUGGESTION
9709
+
- DAILY_DIGEST
9601
9710
description: Category of the result, one of the requested categories in incoming request.
9602
9711
primaryEntry:
9603
9712
$ref: "#/components/schemas/FeedEntry"
@@ -11595,6 +11704,7 @@ components:
11595
11704
- EXTERNAL_SHORTCUT
11596
11705
- ENTITY
11597
11706
- CALENDAR
11707
+
- AGENTS
11598
11708
description: The document category of this object type.
11599
11709
propertyDefinitions:
11600
11710
type: array
@@ -11649,6 +11759,7 @@ components:
11649
11759
- EXTERNAL_SHORTCUT
11650
11760
- ENTITY
11651
11761
- CALENDAR
11762
+
- AGENTS
11652
11763
default: UNCATEGORIZED
11653
11764
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.
Copy file name to clipboardExpand all lines: docs/models/chat.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,4 +15,6 @@ A historical representation of a series of chat messages a user had with Glean A
15
15
|`application_id`|*Optional[str]*|:heavy_minus_sign:| The ID of the AI App that this Chat is associated to. ||
16
16
|`application_name`|*Optional[str]*|:heavy_minus_sign:| The display name of the AI App that this Chat is associated to. ||
17
17
|`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. ||
Copy file name to clipboardExpand all lines: docs/models/chatmessagefragment.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# ChatMessageFragment
2
2
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.
0 commit comments