ZeroSDK

Thread

Reference for the Thread schema.

@packages/schema/thread
export type  = {
  // required
  : string
  : string
  // optional
  ?: number
  ?: number
  ?: number
}

Sources

The sources whose types keep a conversation apart inside a larger one, as a thread; Claude Code's Projects do the same but publish no type. The others make the session itself the conversation; see Session.

Mastra

https://mastra.ai/docs/memory/overview

@mastra/core@1.79.0
type  = {
  : 
  : string
  ?: <string, unknown>
  : string
  ?: string
  : 
}

OpenAI Codex

https://learn.chatgpt.com/docs/app-server#threads

openai/codex@rust-v0.163.0 · schema
type  = {
  : string | null
  : string | null
  : string
  : number
  : string
  : boolean
  : string | null
  : GitInfo | null
  : ThreadHistoryMode
  : string
  : string | null
  : string
  : string | null
  : string | null
  : string | null
  : string | null
  : string
  : string | null
  : string | null
  : number | null
  : ThreadSection | null
  : number | null
  : string
  : SessionSource
  : ThreadStatus
  : string | null
  : Turn[]
  : number
}