Skip to content

Interface: StorageMessagePayload

Makaio Framework


Makaio Framework / ai-adapters-core / StorageMessagePayload

Defined in: ../../../adapters/core/src/log-importer/types.ts:174

Message payload ready for persistence via MessageStorageSubjects.

Adapters return this from ProcessLogFileResult.messagePayloads. Uses SessionMessageBlock as the canonical block type.

adapterMessageId: string

Defined in: ../../../adapters/core/src/log-importer/types.ts:176

Adapter’s native message ID — used for upsert deduplication


adapterSessionId: string

Defined in: ../../../adapters/core/src/log-importer/types.ts:186

Adapter’s session ID


agentId: string

Defined in: ../../../adapters/core/src/log-importer/types.ts:184

Agent ID (defaults to ‘main’ for non-subagent messages)


blocks: ({ content: string; type: "text"; } | { source: { data: string; mimeType: string; type: "base64"; } | { mimeType?: string; type: "url"; url: string; }; type: "image"; } | { source: { data: string; mimeType: string; type: "base64"; } | { mimeType?: string; type: "url"; url: string; }; type: "document"; } | { attachmentType: "file" | "directory"; displayName?: string; fileName: string; filePath: string; source: { data: string; mimeType: string; type: "base64"; } | { mimeType?: string; type: "url"; url: string; }; type: "attachment"; } | { content: string; metadata?: Record<string, unknown>; type: "reasoning"; } | { args: Record<string, unknown>; name: string; toolCallId: string; type: "tool_call"; } | { isError?: boolean; output: string; toolCallId: string; type: "tool_output"; })[]

Defined in: ../../../adapters/core/src/log-importer/types.ts:182

Structured content blocks


contentText: string

Defined in: ../../../adapters/core/src/log-importer/types.ts:180

Plain text for FTS indexing


optional origin?: "text" | "voice" | "compact"

Defined in: ../../../adapters/core/src/log-importer/types.ts:190

Input modality or origin. 'compact' = injected summary after a compaction boundary.


role: "user" | "assistant"

Defined in: ../../../adapters/core/src/log-importer/types.ts:178

Message role


timestamp: number

Defined in: ../../../adapters/core/src/log-importer/types.ts:188

Unix ms timestamp