UNPKG

@gravityai-dev/gravity-server

Version:

Integration SDK for the Gravity AI orchestration platform - Connect any AI platform in minutes

39 lines 1.75 kB
/** * Messaging Types * * Exports all messaging-related type definitions */ import { MessageType } from "../types"; export interface BaseMessage { id: string; timestamp: string; type: MessageType; chatId?: string; conversationId?: string; userId?: string; agentId?: string; providerId?: string; metadata?: Record<string, any>; } import type { Text } from "./publishers/text"; import type { JsonData } from "./publishers/jsonData"; import type { ActionSuggestion } from "./publishers/actionSuggestion"; import type { Metadata } from "./publishers/metadata"; import type { ImageResponse } from "./publishers/imageResponse"; import type { ToolOutput } from "./publishers/toolOutput"; import type { AudioChunk } from "./publishers/audioChunk"; import type { MessageChunk } from "./publishers/messageChunk"; import type { ProgressUpdate } from "./publishers/progressUpdate"; import type { SystemMessage } from "./publishers/system"; import type { StateMessage } from "./publishers/state"; import type { Card } from "./publishers/cards"; import type { Questions } from "./publishers/questions"; import type { Form } from "./publishers/forms"; export type { Text, JsonData, ActionSuggestion, Metadata, ImageResponse, ToolOutput, AudioChunk, MessageChunk, ProgressUpdate, SystemMessage, StateMessage, Card, Questions, Form, }; export interface State extends BaseMessage { __typename: "State"; stateData: Record<string, any>; variables?: Record<string, any>; } export type GravityMessage = Text | JsonData | ActionSuggestion | Metadata | ImageResponse | ToolOutput | AudioChunk | State | StateMessage | SystemMessage | ProgressUpdate | MessageChunk | Card | Questions | Form; //# sourceMappingURL=types.d.ts.map