/** * Athena API * REST API for the Athena system * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { MessageAttachment } from './MessageAttachment'; import type { MessagePartsInner } from './MessagePartsInner'; /** * * @export * @interface Message */ export interface Message { /** * Unique identifier * @type {string} * @memberof Message */ id: string; /** * ID of the chat this message belongs to * @type {string} * @memberof Message */ chatId: string; /** * Role of the message sender (user or assistant) * @type {string} * @memberof Message */ role: string; /** * Message content parts (text, tool invocations, reasoning, etc.) * @type {Array} * @memberof Message */ parts: Array; /** * Message attachments with fresh signed GET URLs * @type {Array} * @memberof Message */ attachments: Array; /** * Creation timestamp * @type {Date} * @memberof Message */ createdAt: Date; /** * Whether a learning moment exists for this message * @type {boolean} * @memberof Message */ isLearningMoment?: boolean; /** * Originating client for this message ('web' or 'ios'), or null when the source is unknown. Tracked per-message because a chat may move between platforms over its lifetime. * @type {string} * @memberof Message */ source: MessageSourceEnum | null; } /** * @export */ export declare const MessageSourceEnum: { readonly Web: "web"; readonly Ios: "ios"; }; export type MessageSourceEnum = typeof MessageSourceEnum[keyof typeof MessageSourceEnum]; /** * Check if a given object implements the Message interface. */ export declare function instanceOfMessage(value: object): value is Message; export declare function MessageFromJSON(json: any): Message; export declare function MessageFromJSONTyped(json: any, ignoreDiscriminator: boolean): Message; export declare function MessageToJSON(json: any): Message; export declare function MessageToJSONTyped(value?: Message | null, ignoreDiscriminator?: boolean): any;