genieModel
Wire-format zod schemas + types and high-level event vocabulary for the Genie chat driver.
Two related layers live here:
-
Genie wire shapes derived from this package’s own generated
dashboardsschemas (regenerated from the upstream@databricks/sdk-experimentalapis/dashboards/model.d.tsby the engine’s codegen on synth). We extend the SDK schemas where Genie ships fields on the wire that the SDK doesn’t currently type:GenieMessage.auto_regenerate_count: number(stamped on every wire message, omitted from the SDK shape).GenieQueryAttachment.thoughts: GenieThought[](the streamed reasoning payload withDESCRIPTION,DATA_SOURCING,STEPS, andUNDERSTANDINGthought kinds).GenieAttachment.attachment_type: AttachmentType(an optional discriminator literal so callers canswitch (att.attachment_type)instead of probing which sub-key is populated; compute it with detectAttachmentType).
-
Event vocabulary for the high-level
genieEventChatdriver. Each event is a flatz.objectwith atypeliteral discriminator and snake_case payload fields hoisted to the top level (nopayloadwrapper). Events that share the attachment-scoped location use GenieChatLocationSchema as a base; events that don’t carry anattachment_id(status, result) omit it. GenieChatEventSchema bundles the variants into one discriminated union.
Pure types: no runtime imports beyond zod + the generated
dashboards schemas, no Node-only code, safe for browser bundles.
Type Aliases
Section titled “Type Aliases”- AttachmentEvent
- AttachmentType
- GenieAttachment
- GenieChatEvent
- GenieChatEventFields
- GenieChatEventType
- GenieChatLocation
- GenieMessage
- GenieQueryAttachment
- GenieResponse
- GenieSpace
- GenieTextAttachment
- GenieTextAttachmentPurpose
- GenieThought
- GenieThoughtType
- KnownAttachmentType
- MessageEvent
- MessageStatus
- QueryEvent
- QuestionEvent
- ResultEvent
- RowsEvent
- StatementEvent
- StatusEvent
- SuggestedQuestionsEvent
- TerminalStatus
- TextEvent
- ThinkingEvent
Variables
Section titled “Variables”- ATTACHMENT_TYPES
- AttachmentEventSchema
- GenieAttachmentSchema
- GenieChatEventSchema
- GenieChatLocationSchema
- GenieMessageSchema
- GenieQueryAttachmentSchema
- GenieResponseSchema
- GenieSpaceSchema
- GenieTextAttachmentSchema
- GenieThoughtSchema
- MessageEventSchema
- QueryEventSchema
- QuestionEventSchema
- ResultEventSchema
- RowsEventSchema
- StatementEventSchema
- StatusEventSchema
- SuggestedQuestionsEventSchema
- TERMINAL_STATUSES
- TextEventSchema
- ThinkingEventSchema
Functions
Section titled “Functions”References
Section titled “References”MessageStatusSchema
Section titled “MessageStatusSchema”Re-exports MessageStatusSchema