Interface: StorageMessagePayload
Makaio Framework / ai-adapters-core / StorageMessagePayload
Interface: StorageMessagePayload
Section titled “Interface: 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.
Properties
Section titled “Properties”adapterMessageId
Section titled “adapterMessageId”adapterMessageId:
string
Defined in: ../../../adapters/core/src/log-importer/types.ts:176
Adapter’s native message ID — used for upsert deduplication
adapterSessionId
Section titled “adapterSessionId”adapterSessionId:
string
Defined in: ../../../adapters/core/src/log-importer/types.ts:186
Adapter’s session ID
agentId
Section titled “agentId”agentId:
string
Defined in: ../../../adapters/core/src/log-importer/types.ts:184
Agent ID (defaults to ‘main’ for non-subagent messages)
blocks
Section titled “blocks”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
Section titled “contentText”contentText:
string
Defined in: ../../../adapters/core/src/log-importer/types.ts:180
Plain text for FTS indexing
origin?
Section titled “origin?”
optionalorigin?:"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
Section titled “timestamp”timestamp:
number
Defined in: ../../../adapters/core/src/log-importer/types.ts:188
Unix ms timestamp