[**zonegaze-flow**](../../../../README.md)

***

[zonegaze-flow](../../../../README.md) / [flow/contracts/src](../README.md) / runtimeStateStreamWorkspaceStateMessageSchema

# Variable: runtimeStateStreamWorkspaceStateMessageSchema

> `const` **runtimeStateStreamWorkspaceStateMessageSchema**: `ZodObject`\<\{ `type`: `ZodLiteral`\<`"workspace_state_updated"`\>; `workspaceId`: `ZodString`; `workspaceState`: `ZodObject`\<\{ `board`: `ZodPipe`\<`ZodObject`\<\{ `columns`: `ZodArray`\<`ZodPipe`\<`ZodObject`\<\{ `cards`: ...; `id`: ...; `title`: ...; \}, `$strip`\>, `ZodTransform`\<\{ `cards`: ...; `id`: ...; `title`: ...; \}, \{ `cards`: ...; `id`: ...; `title`: ...; \}\>\>\>; `dependencies`: `ZodDefault`\<`ZodArray`\<`ZodObject`\<\{ `createdAt`: ...; `fromTaskId`: ...; `id`: ...; `toTaskId`: ...; \}, `$strip`\>\>\>; `workTypeRegistry`: `ZodPipe`\<`ZodDefault`\<`ZodObject`\<\{ `types`: ...; `version`: ...; \}, `$strip`\>\>, `ZodTransform`\<`RuntimeWorkTypeRegistry`, \{ `types`: ...[]; `version`: `1`; \}\>\>; \}, `$strip`\>, `ZodTransform`\<\{ `columns`: `object`[]; `dependencies`: `object`[]; `workTypeRegistry`: `RuntimeWorkTypeRegistry`; \}, \{ `columns`: `object`[]; `dependencies`: `object`[]; `workTypeRegistry`: `RuntimeWorkTypeRegistry`; \}\>\>; `git`: `ZodObject`\<\{ `branches`: `ZodArray`\<`ZodString`\>; `currentBranch`: `ZodNullable`\<`ZodString`\>; `defaultBranch`: `ZodNullable`\<`ZodString`\>; \}, `$strip`\>; `repoPath`: `ZodString`; `revision`: `ZodNumber`; `sessions`: `ZodRecord`\<`ZodString`, `ZodObject`\<\{ `agentId`: `ZodNullable`\<`ZodEnum`\<\{ `claude`: `"claude"`; `cline`: `"cline"`; `codex`: `"codex"`; `droid`: `"droid"`; `gemini`: `"gemini"`; `kiro`: `"kiro"`; `opencode`: `"opencode"`; \}\>\>; `exitCode`: `ZodNullable`\<`ZodNumber`\>; `lastHookAt`: `ZodDefault`\<`ZodNullable`\<`ZodNumber`\>\>; `lastOutputAt`: `ZodNullable`\<`ZodNumber`\>; `latestHookActivity`: `ZodDefault`\<`ZodNullable`\<`ZodObject`\<\{ `activityText`: ...; `finalMessage`: ...; `hookEventName`: ...; `notificationType`: ...; `source`: ...; `toolInputSummary`: ...; `toolName`: ...; \}, `$strip`\>\>\>; `latestPromptSentAt`: `ZodOptional`\<`ZodNullable`\<`ZodNumber`\>\>; `latestPromptTokenUsageBaseline`: `ZodOptional`\<`ZodNullable`\<`ZodObject`\<\{ `cacheReadTokens`: ...; `cacheWriteTokens`: ...; `inputTokens`: ...; `outputTokens`: ...; `totalCost`: ...; `updatedAt`: ...; \}, `$strip`\>\>\>; `latestTurnCheckpoint`: `ZodOptional`\<`ZodNullable`\<`ZodObject`\<\{ `commit`: ...; `createdAt`: ...; `ref`: ...; `turn`: ...; \}, `$strip`\>\>\>; `mode`: `ZodOptional`\<`ZodNullable`\<`ZodEnum`\<\{ `act`: ...; `plan`: ...; \}\>\>\>; `pid`: `ZodNullable`\<`ZodNumber`\>; `previousTurnCheckpoint`: `ZodOptional`\<`ZodNullable`\<`ZodObject`\<\{ `commit`: ...; `createdAt`: ...; `ref`: ...; `turn`: ...; \}, `$strip`\>\>\>; `reviewReason`: `ZodNullable`\<`ZodEnum`\<\{ `attention`: `"attention"`; `error`: `"error"`; `exit`: `"exit"`; `hook`: `"hook"`; `interrupted`: `"interrupted"`; \}\>\>; `startedAt`: `ZodNullable`\<`ZodNumber`\>; `state`: `ZodEnum`\<\{ `awaiting_review`: `"awaiting_review"`; `failed`: `"failed"`; `idle`: `"idle"`; `interrupted`: `"interrupted"`; `running`: `"running"`; \}\>; `taskId`: `ZodString`; `tokenUsage`: `ZodOptional`\<`ZodNullable`\<`ZodObject`\<\{ `cacheReadTokens`: ...; `cacheWriteTokens`: ...; `inputTokens`: ...; `outputTokens`: ...; `totalCost`: ...; `updatedAt`: ...; \}, `$strip`\>\>\>; `updatedAt`: `ZodNumber`; `warningMessage`: `ZodOptional`\<`ZodNullable`\<`ZodString`\>\>; `workspacePath`: `ZodNullable`\<`ZodString`\>; \}, `$strip`\>\>; `statePath`: `ZodString`; \}, `$strip`\>; \}, `$strip`\>

Defined in: [flow/contracts/src/api-contract.ts:591](https://github.com/neuralpilot08/zonegaze-flow/blob/ee47e8308e50071e712017a7f8b0db560a4746ee/flow/contracts/src/api-contract.ts#L591)
