@h-rig/contracts 0.0.6-alpha.9 → 0.0.6-alpha.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +5277 -0
- package/dist/index.mjs +5234 -0
- package/dist/src/artifact.d.ts +13 -0
- package/dist/src/baseSchemas.d.ts +57 -0
- package/dist/src/cli-output.d.ts +234 -0
- package/dist/src/cli-output.js +154 -0
- package/dist/src/config.d.ts +316 -0
- package/dist/src/config.js +14 -2
- package/dist/src/conversation.d.ts +50 -0
- package/dist/src/editor.d.ts +25 -0
- package/dist/src/engine.d.ts +2789 -0
- package/dist/src/engine.js +4 -2
- package/dist/src/git.d.ts +144 -0
- package/dist/src/graph.d.ts +39 -0
- package/dist/src/index.d.ts +33 -0
- package/dist/src/index.js +1906 -1219
- package/dist/src/ipc.d.ts +247 -0
- package/dist/src/keybindings.d.ts +71 -0
- package/dist/src/model.d.ts +77 -0
- package/dist/src/orchestration.d.ts +3695 -0
- package/dist/src/pi-session.d.ts +113 -0
- package/dist/src/pi-session.js +1 -0
- package/dist/src/plugin-hooks.d.ts +51 -0
- package/dist/src/plugin-hooks.js +112 -0
- package/dist/src/plugin.d.ts +230 -0
- package/dist/src/policy.d.ts +16 -0
- package/dist/src/project.d.ts +71 -0
- package/dist/src/protocol-version.d.ts +21 -0
- package/dist/src/protocol-version.js +6 -0
- package/dist/src/provider.d.ts +105 -0
- package/dist/src/providerRuntime.d.ts +3949 -0
- package/dist/src/remote.d.ts +326 -0
- package/dist/src/remote.js +4 -2
- package/dist/src/review.d.ts +18 -0
- package/dist/src/rig.d.ts +753 -0
- package/dist/src/rig.js +32 -4
- package/dist/src/run-journal.d.ts +763 -0
- package/dist/src/run-journal.js +1506 -0
- package/dist/src/runtime.d.ts +103 -0
- package/dist/src/runtime.js +4 -2
- package/dist/src/server.d.ts +106 -0
- package/dist/src/serviceFabric.d.ts +62 -0
- package/dist/src/task-source.d.ts +28 -0
- package/dist/src/terminal.d.ts +130 -0
- package/dist/src/validation.d.ts +14 -0
- package/dist/src/workspace.d.ts +204 -0
- package/dist/src/ws.d.ts +733 -0
- package/dist/src/ws.js +27 -3
- package/package.json +6 -3
|
@@ -0,0 +1,3695 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
export declare const ORCHESTRATION_WS_METHODS: {
|
|
3
|
+
readonly getSnapshot: "orchestration.getSnapshot";
|
|
4
|
+
readonly dispatchCommand: "orchestration.dispatchCommand";
|
|
5
|
+
readonly getTurnDiff: "orchestration.getTurnDiff";
|
|
6
|
+
readonly getFullThreadDiff: "orchestration.getFullThreadDiff";
|
|
7
|
+
readonly replayEvents: "orchestration.replayEvents";
|
|
8
|
+
};
|
|
9
|
+
export declare const ORCHESTRATION_WS_CHANNELS: {
|
|
10
|
+
readonly domainEvent: "orchestration.domainEvent";
|
|
11
|
+
};
|
|
12
|
+
export declare const ProviderKind: Schema.Literals<readonly ["codex", "claude"]>;
|
|
13
|
+
export type ProviderKind = typeof ProviderKind.Type;
|
|
14
|
+
export declare const ProviderApprovalPolicy: Schema.Literals<readonly ["untrusted", "on-failure", "on-request", "never"]>;
|
|
15
|
+
export type ProviderApprovalPolicy = typeof ProviderApprovalPolicy.Type;
|
|
16
|
+
export declare const ProviderSandboxMode: Schema.Literals<readonly ["read-only", "workspace-write", "danger-full-access"]>;
|
|
17
|
+
export type ProviderSandboxMode = typeof ProviderSandboxMode.Type;
|
|
18
|
+
export declare const ProviderServiceTier: Schema.Literals<readonly ["fast", "flex"]>;
|
|
19
|
+
export type ProviderServiceTier = typeof ProviderServiceTier.Type;
|
|
20
|
+
export declare const DEFAULT_PROVIDER_KIND: ProviderKind;
|
|
21
|
+
export declare const RuntimeMode: Schema.Literals<readonly ["approval-required", "full-access"]>;
|
|
22
|
+
export type RuntimeMode = typeof RuntimeMode.Type;
|
|
23
|
+
export declare const DEFAULT_RUNTIME_MODE: RuntimeMode;
|
|
24
|
+
export declare const ProviderInteractionMode: Schema.Literals<readonly ["default", "plan"]>;
|
|
25
|
+
export type ProviderInteractionMode = typeof ProviderInteractionMode.Type;
|
|
26
|
+
export declare const DEFAULT_PROVIDER_INTERACTION_MODE: ProviderInteractionMode;
|
|
27
|
+
export declare const ProviderRequestKind: Schema.Literals<readonly ["command", "file-read", "file-change"]>;
|
|
28
|
+
export type ProviderRequestKind = typeof ProviderRequestKind.Type;
|
|
29
|
+
export declare const AssistantDeliveryMode: Schema.Literals<readonly ["buffered", "streaming"]>;
|
|
30
|
+
export type AssistantDeliveryMode = typeof AssistantDeliveryMode.Type;
|
|
31
|
+
export declare const ProviderApprovalDecision: Schema.Literals<readonly ["accept", "acceptForSession", "decline", "cancel"]>;
|
|
32
|
+
export type ProviderApprovalDecision = typeof ProviderApprovalDecision.Type;
|
|
33
|
+
export declare const ProviderUserInputAnswers: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
34
|
+
export type ProviderUserInputAnswers = typeof ProviderUserInputAnswers.Type;
|
|
35
|
+
export declare const PROVIDER_SEND_TURN_MAX_INPUT_CHARS = 120000;
|
|
36
|
+
export declare const PROVIDER_SEND_TURN_MAX_ATTACHMENTS = 8;
|
|
37
|
+
export declare const PROVIDER_SEND_TURN_MAX_IMAGE_BYTES: number;
|
|
38
|
+
export declare const CorrelationId: Schema.brand<Schema.Trim, "CommandId">;
|
|
39
|
+
export type CorrelationId = typeof CorrelationId.Type;
|
|
40
|
+
declare const ChatAttachmentId: Schema.Trim;
|
|
41
|
+
export type ChatAttachmentId = typeof ChatAttachmentId.Type;
|
|
42
|
+
export declare const ChatImageAttachment: Schema.Struct<{
|
|
43
|
+
readonly type: Schema.Literal<"image">;
|
|
44
|
+
readonly id: Schema.Trim;
|
|
45
|
+
readonly name: Schema.Trim;
|
|
46
|
+
readonly mimeType: Schema.Trim;
|
|
47
|
+
readonly sizeBytes: Schema.Int;
|
|
48
|
+
}>;
|
|
49
|
+
export type ChatImageAttachment = typeof ChatImageAttachment.Type;
|
|
50
|
+
declare const UploadChatImageAttachment: Schema.Struct<{
|
|
51
|
+
readonly type: Schema.Literal<"image">;
|
|
52
|
+
readonly name: Schema.Trim;
|
|
53
|
+
readonly mimeType: Schema.Trim;
|
|
54
|
+
readonly sizeBytes: Schema.Int;
|
|
55
|
+
readonly dataUrl: Schema.Trim;
|
|
56
|
+
}>;
|
|
57
|
+
export type UploadChatImageAttachment = typeof UploadChatImageAttachment.Type;
|
|
58
|
+
export declare const ChatAttachment: Schema.Union<readonly [Schema.Struct<{
|
|
59
|
+
readonly type: Schema.Literal<"image">;
|
|
60
|
+
readonly id: Schema.Trim;
|
|
61
|
+
readonly name: Schema.Trim;
|
|
62
|
+
readonly mimeType: Schema.Trim;
|
|
63
|
+
readonly sizeBytes: Schema.Int;
|
|
64
|
+
}>]>;
|
|
65
|
+
export type ChatAttachment = typeof ChatAttachment.Type;
|
|
66
|
+
declare const UploadChatAttachment: Schema.Union<readonly [Schema.Struct<{
|
|
67
|
+
readonly type: Schema.Literal<"image">;
|
|
68
|
+
readonly name: Schema.Trim;
|
|
69
|
+
readonly mimeType: Schema.Trim;
|
|
70
|
+
readonly sizeBytes: Schema.Int;
|
|
71
|
+
readonly dataUrl: Schema.Trim;
|
|
72
|
+
}>]>;
|
|
73
|
+
export type UploadChatAttachment = typeof UploadChatAttachment.Type;
|
|
74
|
+
export declare const ProjectScriptIcon: Schema.Literals<readonly ["play", "test", "lint", "configure", "build", "debug"]>;
|
|
75
|
+
export type ProjectScriptIcon = typeof ProjectScriptIcon.Type;
|
|
76
|
+
export declare const ProjectScript: Schema.Struct<{
|
|
77
|
+
readonly id: Schema.Trim;
|
|
78
|
+
readonly name: Schema.Trim;
|
|
79
|
+
readonly command: Schema.Trim;
|
|
80
|
+
readonly icon: Schema.Literals<readonly ["play", "test", "lint", "configure", "build", "debug"]>;
|
|
81
|
+
readonly runOnWorktreeCreate: Schema.Boolean;
|
|
82
|
+
}>;
|
|
83
|
+
export type ProjectScript = typeof ProjectScript.Type;
|
|
84
|
+
export declare const OrchestrationProject: Schema.Struct<{
|
|
85
|
+
readonly id: Schema.brand<Schema.Trim, "ProjectId">;
|
|
86
|
+
readonly title: Schema.Trim;
|
|
87
|
+
readonly workspaceRoot: Schema.Trim;
|
|
88
|
+
readonly defaultModel: Schema.NullOr<Schema.Trim>;
|
|
89
|
+
readonly scripts: Schema.$Array<Schema.Struct<{
|
|
90
|
+
readonly id: Schema.Trim;
|
|
91
|
+
readonly name: Schema.Trim;
|
|
92
|
+
readonly command: Schema.Trim;
|
|
93
|
+
readonly icon: Schema.Literals<readonly ["play", "test", "lint", "configure", "build", "debug"]>;
|
|
94
|
+
readonly runOnWorktreeCreate: Schema.Boolean;
|
|
95
|
+
}>>;
|
|
96
|
+
readonly createdAt: Schema.String;
|
|
97
|
+
readonly updatedAt: Schema.String;
|
|
98
|
+
readonly deletedAt: Schema.NullOr<Schema.String>;
|
|
99
|
+
}>;
|
|
100
|
+
export type OrchestrationProject = typeof OrchestrationProject.Type;
|
|
101
|
+
export declare const OrchestrationMessageRole: Schema.Literals<readonly ["user", "assistant", "system"]>;
|
|
102
|
+
export type OrchestrationMessageRole = typeof OrchestrationMessageRole.Type;
|
|
103
|
+
export declare const OrchestrationMessage: Schema.Struct<{
|
|
104
|
+
readonly id: Schema.brand<Schema.Trim, "MessageId">;
|
|
105
|
+
readonly role: Schema.Literals<readonly ["user", "assistant", "system"]>;
|
|
106
|
+
readonly text: Schema.String;
|
|
107
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
108
|
+
readonly type: Schema.Literal<"image">;
|
|
109
|
+
readonly id: Schema.Trim;
|
|
110
|
+
readonly name: Schema.Trim;
|
|
111
|
+
readonly mimeType: Schema.Trim;
|
|
112
|
+
readonly sizeBytes: Schema.Int;
|
|
113
|
+
}>]>>>;
|
|
114
|
+
readonly turnId: Schema.NullOr<Schema.brand<Schema.Trim, "TurnId">>;
|
|
115
|
+
readonly streaming: Schema.Boolean;
|
|
116
|
+
readonly createdAt: Schema.String;
|
|
117
|
+
readonly updatedAt: Schema.String;
|
|
118
|
+
}>;
|
|
119
|
+
export type OrchestrationMessage = typeof OrchestrationMessage.Type;
|
|
120
|
+
export declare const OrchestrationProposedPlanId: Schema.Trim;
|
|
121
|
+
export type OrchestrationProposedPlanId = typeof OrchestrationProposedPlanId.Type;
|
|
122
|
+
export declare const OrchestrationProposedPlan: Schema.Struct<{
|
|
123
|
+
readonly id: Schema.Trim;
|
|
124
|
+
readonly turnId: Schema.NullOr<Schema.brand<Schema.Trim, "TurnId">>;
|
|
125
|
+
readonly planMarkdown: Schema.Trim;
|
|
126
|
+
readonly createdAt: Schema.String;
|
|
127
|
+
readonly updatedAt: Schema.String;
|
|
128
|
+
}>;
|
|
129
|
+
export type OrchestrationProposedPlan = typeof OrchestrationProposedPlan.Type;
|
|
130
|
+
export declare const OrchestrationSessionStatus: Schema.Literals<readonly ["idle", "starting", "running", "ready", "interrupted", "stopped", "error"]>;
|
|
131
|
+
export type OrchestrationSessionStatus = typeof OrchestrationSessionStatus.Type;
|
|
132
|
+
export declare const OrchestrationSession: Schema.Struct<{
|
|
133
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
134
|
+
readonly status: Schema.Literals<readonly ["idle", "starting", "running", "ready", "interrupted", "stopped", "error"]>;
|
|
135
|
+
readonly providerName: Schema.NullOr<Schema.Trim>;
|
|
136
|
+
readonly runtimeMode: Schema.withDecodingDefault<Schema.Literals<readonly ["approval-required", "full-access"]>>;
|
|
137
|
+
readonly activeTurnId: Schema.NullOr<Schema.brand<Schema.Trim, "TurnId">>;
|
|
138
|
+
readonly lastError: Schema.NullOr<Schema.Trim>;
|
|
139
|
+
readonly updatedAt: Schema.String;
|
|
140
|
+
}>;
|
|
141
|
+
export type OrchestrationSession = typeof OrchestrationSession.Type;
|
|
142
|
+
export declare const OrchestrationCheckpointFile: Schema.Struct<{
|
|
143
|
+
readonly path: Schema.Trim;
|
|
144
|
+
readonly kind: Schema.Trim;
|
|
145
|
+
readonly additions: Schema.Int;
|
|
146
|
+
readonly deletions: Schema.Int;
|
|
147
|
+
}>;
|
|
148
|
+
export type OrchestrationCheckpointFile = typeof OrchestrationCheckpointFile.Type;
|
|
149
|
+
export declare const OrchestrationCheckpointStatus: Schema.Literals<readonly ["ready", "missing", "error"]>;
|
|
150
|
+
export type OrchestrationCheckpointStatus = typeof OrchestrationCheckpointStatus.Type;
|
|
151
|
+
export declare const OrchestrationCheckpointSummary: Schema.Struct<{
|
|
152
|
+
readonly turnId: Schema.brand<Schema.Trim, "TurnId">;
|
|
153
|
+
readonly checkpointTurnCount: Schema.Int;
|
|
154
|
+
readonly checkpointRef: Schema.brand<Schema.Trim, "CheckpointRef">;
|
|
155
|
+
readonly status: Schema.Literals<readonly ["ready", "missing", "error"]>;
|
|
156
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
157
|
+
readonly path: Schema.Trim;
|
|
158
|
+
readonly kind: Schema.Trim;
|
|
159
|
+
readonly additions: Schema.Int;
|
|
160
|
+
readonly deletions: Schema.Int;
|
|
161
|
+
}>>;
|
|
162
|
+
readonly assistantMessageId: Schema.NullOr<Schema.brand<Schema.Trim, "MessageId">>;
|
|
163
|
+
readonly completedAt: Schema.String;
|
|
164
|
+
}>;
|
|
165
|
+
export type OrchestrationCheckpointSummary = typeof OrchestrationCheckpointSummary.Type;
|
|
166
|
+
export declare const OrchestrationThreadActivityTone: Schema.Literals<readonly ["info", "tool", "approval", "error"]>;
|
|
167
|
+
export type OrchestrationThreadActivityTone = typeof OrchestrationThreadActivityTone.Type;
|
|
168
|
+
export declare const OrchestrationThreadActivity: Schema.Struct<{
|
|
169
|
+
readonly id: Schema.brand<Schema.Trim, "EventId">;
|
|
170
|
+
readonly tone: Schema.Literals<readonly ["info", "tool", "approval", "error"]>;
|
|
171
|
+
readonly kind: Schema.Trim;
|
|
172
|
+
readonly summary: Schema.Trim;
|
|
173
|
+
readonly payload: Schema.Unknown;
|
|
174
|
+
readonly turnId: Schema.NullOr<Schema.brand<Schema.Trim, "TurnId">>;
|
|
175
|
+
readonly sequence: Schema.optional<Schema.Int>;
|
|
176
|
+
readonly createdAt: Schema.String;
|
|
177
|
+
}>;
|
|
178
|
+
export type OrchestrationThreadActivity = typeof OrchestrationThreadActivity.Type;
|
|
179
|
+
declare const OrchestrationLatestTurnState: Schema.Literals<readonly ["running", "interrupted", "completed", "error"]>;
|
|
180
|
+
export type OrchestrationLatestTurnState = typeof OrchestrationLatestTurnState.Type;
|
|
181
|
+
export declare const OrchestrationLatestTurn: Schema.Struct<{
|
|
182
|
+
readonly turnId: Schema.brand<Schema.Trim, "TurnId">;
|
|
183
|
+
readonly state: Schema.Literals<readonly ["running", "interrupted", "completed", "error"]>;
|
|
184
|
+
readonly requestedAt: Schema.String;
|
|
185
|
+
readonly startedAt: Schema.NullOr<Schema.String>;
|
|
186
|
+
readonly completedAt: Schema.NullOr<Schema.String>;
|
|
187
|
+
readonly assistantMessageId: Schema.NullOr<Schema.brand<Schema.Trim, "MessageId">>;
|
|
188
|
+
}>;
|
|
189
|
+
export type OrchestrationLatestTurn = typeof OrchestrationLatestTurn.Type;
|
|
190
|
+
export declare const OrchestrationThread: Schema.Struct<{
|
|
191
|
+
readonly id: Schema.brand<Schema.Trim, "ThreadId">;
|
|
192
|
+
readonly projectId: Schema.brand<Schema.Trim, "ProjectId">;
|
|
193
|
+
readonly title: Schema.Trim;
|
|
194
|
+
readonly model: Schema.Trim;
|
|
195
|
+
readonly runtimeMode: Schema.Literals<readonly ["approval-required", "full-access"]>;
|
|
196
|
+
readonly interactionMode: Schema.withDecodingDefault<Schema.Literals<readonly ["default", "plan"]>>;
|
|
197
|
+
readonly branch: Schema.NullOr<Schema.Trim>;
|
|
198
|
+
readonly worktreePath: Schema.NullOr<Schema.Trim>;
|
|
199
|
+
readonly latestTurn: Schema.NullOr<Schema.Struct<{
|
|
200
|
+
readonly turnId: Schema.brand<Schema.Trim, "TurnId">;
|
|
201
|
+
readonly state: Schema.Literals<readonly ["running", "interrupted", "completed", "error"]>;
|
|
202
|
+
readonly requestedAt: Schema.String;
|
|
203
|
+
readonly startedAt: Schema.NullOr<Schema.String>;
|
|
204
|
+
readonly completedAt: Schema.NullOr<Schema.String>;
|
|
205
|
+
readonly assistantMessageId: Schema.NullOr<Schema.brand<Schema.Trim, "MessageId">>;
|
|
206
|
+
}>>;
|
|
207
|
+
readonly createdAt: Schema.String;
|
|
208
|
+
readonly updatedAt: Schema.String;
|
|
209
|
+
readonly deletedAt: Schema.NullOr<Schema.String>;
|
|
210
|
+
readonly messages: Schema.$Array<Schema.Struct<{
|
|
211
|
+
readonly id: Schema.brand<Schema.Trim, "MessageId">;
|
|
212
|
+
readonly role: Schema.Literals<readonly ["user", "assistant", "system"]>;
|
|
213
|
+
readonly text: Schema.String;
|
|
214
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
215
|
+
readonly type: Schema.Literal<"image">;
|
|
216
|
+
readonly id: Schema.Trim;
|
|
217
|
+
readonly name: Schema.Trim;
|
|
218
|
+
readonly mimeType: Schema.Trim;
|
|
219
|
+
readonly sizeBytes: Schema.Int;
|
|
220
|
+
}>]>>>;
|
|
221
|
+
readonly turnId: Schema.NullOr<Schema.brand<Schema.Trim, "TurnId">>;
|
|
222
|
+
readonly streaming: Schema.Boolean;
|
|
223
|
+
readonly createdAt: Schema.String;
|
|
224
|
+
readonly updatedAt: Schema.String;
|
|
225
|
+
}>>;
|
|
226
|
+
readonly proposedPlans: Schema.withDecodingDefault<Schema.$Array<Schema.Struct<{
|
|
227
|
+
readonly id: Schema.Trim;
|
|
228
|
+
readonly turnId: Schema.NullOr<Schema.brand<Schema.Trim, "TurnId">>;
|
|
229
|
+
readonly planMarkdown: Schema.Trim;
|
|
230
|
+
readonly createdAt: Schema.String;
|
|
231
|
+
readonly updatedAt: Schema.String;
|
|
232
|
+
}>>>;
|
|
233
|
+
readonly activities: Schema.$Array<Schema.Struct<{
|
|
234
|
+
readonly id: Schema.brand<Schema.Trim, "EventId">;
|
|
235
|
+
readonly tone: Schema.Literals<readonly ["info", "tool", "approval", "error"]>;
|
|
236
|
+
readonly kind: Schema.Trim;
|
|
237
|
+
readonly summary: Schema.Trim;
|
|
238
|
+
readonly payload: Schema.Unknown;
|
|
239
|
+
readonly turnId: Schema.NullOr<Schema.brand<Schema.Trim, "TurnId">>;
|
|
240
|
+
readonly sequence: Schema.optional<Schema.Int>;
|
|
241
|
+
readonly createdAt: Schema.String;
|
|
242
|
+
}>>;
|
|
243
|
+
readonly checkpoints: Schema.$Array<Schema.Struct<{
|
|
244
|
+
readonly turnId: Schema.brand<Schema.Trim, "TurnId">;
|
|
245
|
+
readonly checkpointTurnCount: Schema.Int;
|
|
246
|
+
readonly checkpointRef: Schema.brand<Schema.Trim, "CheckpointRef">;
|
|
247
|
+
readonly status: Schema.Literals<readonly ["ready", "missing", "error"]>;
|
|
248
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
249
|
+
readonly path: Schema.Trim;
|
|
250
|
+
readonly kind: Schema.Trim;
|
|
251
|
+
readonly additions: Schema.Int;
|
|
252
|
+
readonly deletions: Schema.Int;
|
|
253
|
+
}>>;
|
|
254
|
+
readonly assistantMessageId: Schema.NullOr<Schema.brand<Schema.Trim, "MessageId">>;
|
|
255
|
+
readonly completedAt: Schema.String;
|
|
256
|
+
}>>;
|
|
257
|
+
readonly session: Schema.NullOr<Schema.Struct<{
|
|
258
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
259
|
+
readonly status: Schema.Literals<readonly ["idle", "starting", "running", "ready", "interrupted", "stopped", "error"]>;
|
|
260
|
+
readonly providerName: Schema.NullOr<Schema.Trim>;
|
|
261
|
+
readonly runtimeMode: Schema.withDecodingDefault<Schema.Literals<readonly ["approval-required", "full-access"]>>;
|
|
262
|
+
readonly activeTurnId: Schema.NullOr<Schema.brand<Schema.Trim, "TurnId">>;
|
|
263
|
+
readonly lastError: Schema.NullOr<Schema.Trim>;
|
|
264
|
+
readonly updatedAt: Schema.String;
|
|
265
|
+
}>>;
|
|
266
|
+
}>;
|
|
267
|
+
export type OrchestrationThread = typeof OrchestrationThread.Type;
|
|
268
|
+
export declare const OrchestrationReadModel: Schema.Struct<{
|
|
269
|
+
readonly snapshotSequence: Schema.Int;
|
|
270
|
+
readonly projects: Schema.$Array<Schema.Struct<{
|
|
271
|
+
readonly id: Schema.brand<Schema.Trim, "ProjectId">;
|
|
272
|
+
readonly title: Schema.Trim;
|
|
273
|
+
readonly workspaceRoot: Schema.Trim;
|
|
274
|
+
readonly defaultModel: Schema.NullOr<Schema.Trim>;
|
|
275
|
+
readonly scripts: Schema.$Array<Schema.Struct<{
|
|
276
|
+
readonly id: Schema.Trim;
|
|
277
|
+
readonly name: Schema.Trim;
|
|
278
|
+
readonly command: Schema.Trim;
|
|
279
|
+
readonly icon: Schema.Literals<readonly ["play", "test", "lint", "configure", "build", "debug"]>;
|
|
280
|
+
readonly runOnWorktreeCreate: Schema.Boolean;
|
|
281
|
+
}>>;
|
|
282
|
+
readonly createdAt: Schema.String;
|
|
283
|
+
readonly updatedAt: Schema.String;
|
|
284
|
+
readonly deletedAt: Schema.NullOr<Schema.String>;
|
|
285
|
+
}>>;
|
|
286
|
+
readonly threads: Schema.$Array<Schema.Struct<{
|
|
287
|
+
readonly id: Schema.brand<Schema.Trim, "ThreadId">;
|
|
288
|
+
readonly projectId: Schema.brand<Schema.Trim, "ProjectId">;
|
|
289
|
+
readonly title: Schema.Trim;
|
|
290
|
+
readonly model: Schema.Trim;
|
|
291
|
+
readonly runtimeMode: Schema.Literals<readonly ["approval-required", "full-access"]>;
|
|
292
|
+
readonly interactionMode: Schema.withDecodingDefault<Schema.Literals<readonly ["default", "plan"]>>;
|
|
293
|
+
readonly branch: Schema.NullOr<Schema.Trim>;
|
|
294
|
+
readonly worktreePath: Schema.NullOr<Schema.Trim>;
|
|
295
|
+
readonly latestTurn: Schema.NullOr<Schema.Struct<{
|
|
296
|
+
readonly turnId: Schema.brand<Schema.Trim, "TurnId">;
|
|
297
|
+
readonly state: Schema.Literals<readonly ["running", "interrupted", "completed", "error"]>;
|
|
298
|
+
readonly requestedAt: Schema.String;
|
|
299
|
+
readonly startedAt: Schema.NullOr<Schema.String>;
|
|
300
|
+
readonly completedAt: Schema.NullOr<Schema.String>;
|
|
301
|
+
readonly assistantMessageId: Schema.NullOr<Schema.brand<Schema.Trim, "MessageId">>;
|
|
302
|
+
}>>;
|
|
303
|
+
readonly createdAt: Schema.String;
|
|
304
|
+
readonly updatedAt: Schema.String;
|
|
305
|
+
readonly deletedAt: Schema.NullOr<Schema.String>;
|
|
306
|
+
readonly messages: Schema.$Array<Schema.Struct<{
|
|
307
|
+
readonly id: Schema.brand<Schema.Trim, "MessageId">;
|
|
308
|
+
readonly role: Schema.Literals<readonly ["user", "assistant", "system"]>;
|
|
309
|
+
readonly text: Schema.String;
|
|
310
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
311
|
+
readonly type: Schema.Literal<"image">;
|
|
312
|
+
readonly id: Schema.Trim;
|
|
313
|
+
readonly name: Schema.Trim;
|
|
314
|
+
readonly mimeType: Schema.Trim;
|
|
315
|
+
readonly sizeBytes: Schema.Int;
|
|
316
|
+
}>]>>>;
|
|
317
|
+
readonly turnId: Schema.NullOr<Schema.brand<Schema.Trim, "TurnId">>;
|
|
318
|
+
readonly streaming: Schema.Boolean;
|
|
319
|
+
readonly createdAt: Schema.String;
|
|
320
|
+
readonly updatedAt: Schema.String;
|
|
321
|
+
}>>;
|
|
322
|
+
readonly proposedPlans: Schema.withDecodingDefault<Schema.$Array<Schema.Struct<{
|
|
323
|
+
readonly id: Schema.Trim;
|
|
324
|
+
readonly turnId: Schema.NullOr<Schema.brand<Schema.Trim, "TurnId">>;
|
|
325
|
+
readonly planMarkdown: Schema.Trim;
|
|
326
|
+
readonly createdAt: Schema.String;
|
|
327
|
+
readonly updatedAt: Schema.String;
|
|
328
|
+
}>>>;
|
|
329
|
+
readonly activities: Schema.$Array<Schema.Struct<{
|
|
330
|
+
readonly id: Schema.brand<Schema.Trim, "EventId">;
|
|
331
|
+
readonly tone: Schema.Literals<readonly ["info", "tool", "approval", "error"]>;
|
|
332
|
+
readonly kind: Schema.Trim;
|
|
333
|
+
readonly summary: Schema.Trim;
|
|
334
|
+
readonly payload: Schema.Unknown;
|
|
335
|
+
readonly turnId: Schema.NullOr<Schema.brand<Schema.Trim, "TurnId">>;
|
|
336
|
+
readonly sequence: Schema.optional<Schema.Int>;
|
|
337
|
+
readonly createdAt: Schema.String;
|
|
338
|
+
}>>;
|
|
339
|
+
readonly checkpoints: Schema.$Array<Schema.Struct<{
|
|
340
|
+
readonly turnId: Schema.brand<Schema.Trim, "TurnId">;
|
|
341
|
+
readonly checkpointTurnCount: Schema.Int;
|
|
342
|
+
readonly checkpointRef: Schema.brand<Schema.Trim, "CheckpointRef">;
|
|
343
|
+
readonly status: Schema.Literals<readonly ["ready", "missing", "error"]>;
|
|
344
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
345
|
+
readonly path: Schema.Trim;
|
|
346
|
+
readonly kind: Schema.Trim;
|
|
347
|
+
readonly additions: Schema.Int;
|
|
348
|
+
readonly deletions: Schema.Int;
|
|
349
|
+
}>>;
|
|
350
|
+
readonly assistantMessageId: Schema.NullOr<Schema.brand<Schema.Trim, "MessageId">>;
|
|
351
|
+
readonly completedAt: Schema.String;
|
|
352
|
+
}>>;
|
|
353
|
+
readonly session: Schema.NullOr<Schema.Struct<{
|
|
354
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
355
|
+
readonly status: Schema.Literals<readonly ["idle", "starting", "running", "ready", "interrupted", "stopped", "error"]>;
|
|
356
|
+
readonly providerName: Schema.NullOr<Schema.Trim>;
|
|
357
|
+
readonly runtimeMode: Schema.withDecodingDefault<Schema.Literals<readonly ["approval-required", "full-access"]>>;
|
|
358
|
+
readonly activeTurnId: Schema.NullOr<Schema.brand<Schema.Trim, "TurnId">>;
|
|
359
|
+
readonly lastError: Schema.NullOr<Schema.Trim>;
|
|
360
|
+
readonly updatedAt: Schema.String;
|
|
361
|
+
}>>;
|
|
362
|
+
}>>;
|
|
363
|
+
readonly updatedAt: Schema.String;
|
|
364
|
+
}>;
|
|
365
|
+
export type OrchestrationReadModel = typeof OrchestrationReadModel.Type;
|
|
366
|
+
export declare const ProjectCreateCommand: Schema.Struct<{
|
|
367
|
+
readonly type: Schema.Literal<"project.create">;
|
|
368
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
369
|
+
readonly projectId: Schema.brand<Schema.Trim, "ProjectId">;
|
|
370
|
+
readonly title: Schema.Trim;
|
|
371
|
+
readonly workspaceRoot: Schema.Trim;
|
|
372
|
+
readonly defaultModel: Schema.optional<Schema.Trim>;
|
|
373
|
+
readonly createdAt: Schema.String;
|
|
374
|
+
}>;
|
|
375
|
+
export declare const ThreadTurnStartCommand: Schema.Struct<{
|
|
376
|
+
readonly type: Schema.Literal<"thread.turn.start">;
|
|
377
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
378
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
379
|
+
readonly message: Schema.Struct<{
|
|
380
|
+
readonly messageId: Schema.brand<Schema.Trim, "MessageId">;
|
|
381
|
+
readonly role: Schema.Literal<"user">;
|
|
382
|
+
readonly text: Schema.String;
|
|
383
|
+
readonly attachments: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
384
|
+
readonly type: Schema.Literal<"image">;
|
|
385
|
+
readonly id: Schema.Trim;
|
|
386
|
+
readonly name: Schema.Trim;
|
|
387
|
+
readonly mimeType: Schema.Trim;
|
|
388
|
+
readonly sizeBytes: Schema.Int;
|
|
389
|
+
}>]>>;
|
|
390
|
+
}>;
|
|
391
|
+
readonly provider: Schema.optional<Schema.Literals<readonly ["codex", "claude"]>>;
|
|
392
|
+
readonly model: Schema.optional<Schema.Trim>;
|
|
393
|
+
readonly serviceTier: Schema.optional<Schema.NullOr<Schema.Literals<readonly ["fast", "flex"]>>>;
|
|
394
|
+
readonly modelOptions: Schema.optional<Schema.Struct<{
|
|
395
|
+
readonly codex: Schema.optional<Schema.Struct<{
|
|
396
|
+
readonly reasoningEffort: Schema.optional<Schema.Literals<readonly ["xhigh", "high", "medium", "low"]>>;
|
|
397
|
+
readonly fastMode: Schema.optional<Schema.Boolean>;
|
|
398
|
+
}>>;
|
|
399
|
+
readonly claude: Schema.optional<Schema.Struct<{}>>;
|
|
400
|
+
}>>;
|
|
401
|
+
readonly assistantDeliveryMode: Schema.optional<Schema.Literals<readonly ["buffered", "streaming"]>>;
|
|
402
|
+
readonly runtimeMode: Schema.withDecodingDefault<Schema.Literals<readonly ["approval-required", "full-access"]>>;
|
|
403
|
+
readonly interactionMode: Schema.withDecodingDefault<Schema.Literals<readonly ["default", "plan"]>>;
|
|
404
|
+
readonly createdAt: Schema.String;
|
|
405
|
+
}>;
|
|
406
|
+
declare const DispatchableClientOrchestrationCommand: Schema.Union<readonly [Schema.Struct<{
|
|
407
|
+
readonly type: Schema.Literal<"project.create">;
|
|
408
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
409
|
+
readonly projectId: Schema.brand<Schema.Trim, "ProjectId">;
|
|
410
|
+
readonly title: Schema.Trim;
|
|
411
|
+
readonly workspaceRoot: Schema.Trim;
|
|
412
|
+
readonly defaultModel: Schema.optional<Schema.Trim>;
|
|
413
|
+
readonly createdAt: Schema.String;
|
|
414
|
+
}>, Schema.Struct<{
|
|
415
|
+
readonly type: Schema.Literal<"project.meta.update">;
|
|
416
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
417
|
+
readonly projectId: Schema.brand<Schema.Trim, "ProjectId">;
|
|
418
|
+
readonly title: Schema.optional<Schema.Trim>;
|
|
419
|
+
readonly workspaceRoot: Schema.optional<Schema.Trim>;
|
|
420
|
+
readonly defaultModel: Schema.optional<Schema.Trim>;
|
|
421
|
+
readonly scripts: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
422
|
+
readonly id: Schema.Trim;
|
|
423
|
+
readonly name: Schema.Trim;
|
|
424
|
+
readonly command: Schema.Trim;
|
|
425
|
+
readonly icon: Schema.Literals<readonly ["play", "test", "lint", "configure", "build", "debug"]>;
|
|
426
|
+
readonly runOnWorktreeCreate: Schema.Boolean;
|
|
427
|
+
}>>>;
|
|
428
|
+
}>, Schema.Struct<{
|
|
429
|
+
readonly type: Schema.Literal<"project.delete">;
|
|
430
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
431
|
+
readonly projectId: Schema.brand<Schema.Trim, "ProjectId">;
|
|
432
|
+
}>, Schema.Struct<{
|
|
433
|
+
readonly type: Schema.Literal<"thread.create">;
|
|
434
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
435
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
436
|
+
readonly projectId: Schema.brand<Schema.Trim, "ProjectId">;
|
|
437
|
+
readonly title: Schema.Trim;
|
|
438
|
+
readonly model: Schema.Trim;
|
|
439
|
+
readonly runtimeMode: Schema.Literals<readonly ["approval-required", "full-access"]>;
|
|
440
|
+
readonly interactionMode: Schema.withDecodingDefault<Schema.Literals<readonly ["default", "plan"]>>;
|
|
441
|
+
readonly branch: Schema.NullOr<Schema.Trim>;
|
|
442
|
+
readonly worktreePath: Schema.NullOr<Schema.Trim>;
|
|
443
|
+
readonly createdAt: Schema.String;
|
|
444
|
+
}>, Schema.Struct<{
|
|
445
|
+
readonly type: Schema.Literal<"thread.delete">;
|
|
446
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
447
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
448
|
+
}>, Schema.Struct<{
|
|
449
|
+
readonly type: Schema.Literal<"thread.meta.update">;
|
|
450
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
451
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
452
|
+
readonly title: Schema.optional<Schema.Trim>;
|
|
453
|
+
readonly model: Schema.optional<Schema.Trim>;
|
|
454
|
+
readonly branch: Schema.optional<Schema.NullOr<Schema.Trim>>;
|
|
455
|
+
readonly worktreePath: Schema.optional<Schema.NullOr<Schema.Trim>>;
|
|
456
|
+
}>, Schema.Struct<{
|
|
457
|
+
readonly type: Schema.Literal<"thread.runtime-mode.set">;
|
|
458
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
459
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
460
|
+
readonly runtimeMode: Schema.Literals<readonly ["approval-required", "full-access"]>;
|
|
461
|
+
readonly createdAt: Schema.String;
|
|
462
|
+
}>, Schema.Struct<{
|
|
463
|
+
readonly type: Schema.Literal<"thread.interaction-mode.set">;
|
|
464
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
465
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
466
|
+
readonly interactionMode: Schema.Literals<readonly ["default", "plan"]>;
|
|
467
|
+
readonly createdAt: Schema.String;
|
|
468
|
+
}>, Schema.Struct<{
|
|
469
|
+
readonly type: Schema.Literal<"thread.turn.start">;
|
|
470
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
471
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
472
|
+
readonly message: Schema.Struct<{
|
|
473
|
+
readonly messageId: Schema.brand<Schema.Trim, "MessageId">;
|
|
474
|
+
readonly role: Schema.Literal<"user">;
|
|
475
|
+
readonly text: Schema.String;
|
|
476
|
+
readonly attachments: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
477
|
+
readonly type: Schema.Literal<"image">;
|
|
478
|
+
readonly id: Schema.Trim;
|
|
479
|
+
readonly name: Schema.Trim;
|
|
480
|
+
readonly mimeType: Schema.Trim;
|
|
481
|
+
readonly sizeBytes: Schema.Int;
|
|
482
|
+
}>]>>;
|
|
483
|
+
}>;
|
|
484
|
+
readonly provider: Schema.optional<Schema.Literals<readonly ["codex", "claude"]>>;
|
|
485
|
+
readonly model: Schema.optional<Schema.Trim>;
|
|
486
|
+
readonly serviceTier: Schema.optional<Schema.NullOr<Schema.Literals<readonly ["fast", "flex"]>>>;
|
|
487
|
+
readonly modelOptions: Schema.optional<Schema.Struct<{
|
|
488
|
+
readonly codex: Schema.optional<Schema.Struct<{
|
|
489
|
+
readonly reasoningEffort: Schema.optional<Schema.Literals<readonly ["xhigh", "high", "medium", "low"]>>;
|
|
490
|
+
readonly fastMode: Schema.optional<Schema.Boolean>;
|
|
491
|
+
}>>;
|
|
492
|
+
readonly claude: Schema.optional<Schema.Struct<{}>>;
|
|
493
|
+
}>>;
|
|
494
|
+
readonly assistantDeliveryMode: Schema.optional<Schema.Literals<readonly ["buffered", "streaming"]>>;
|
|
495
|
+
readonly runtimeMode: Schema.withDecodingDefault<Schema.Literals<readonly ["approval-required", "full-access"]>>;
|
|
496
|
+
readonly interactionMode: Schema.withDecodingDefault<Schema.Literals<readonly ["default", "plan"]>>;
|
|
497
|
+
readonly createdAt: Schema.String;
|
|
498
|
+
}>, Schema.Struct<{
|
|
499
|
+
readonly type: Schema.Literal<"thread.turn.interrupt">;
|
|
500
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
501
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
502
|
+
readonly turnId: Schema.optional<Schema.brand<Schema.Trim, "TurnId">>;
|
|
503
|
+
readonly createdAt: Schema.String;
|
|
504
|
+
}>, Schema.Struct<{
|
|
505
|
+
readonly type: Schema.Literal<"thread.approval.respond">;
|
|
506
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
507
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
508
|
+
readonly requestId: Schema.brand<Schema.Trim, "ApprovalRequestId">;
|
|
509
|
+
readonly decision: Schema.Literals<readonly ["accept", "acceptForSession", "decline", "cancel"]>;
|
|
510
|
+
readonly createdAt: Schema.String;
|
|
511
|
+
}>, Schema.Struct<{
|
|
512
|
+
readonly type: Schema.Literal<"thread.user-input.respond">;
|
|
513
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
514
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
515
|
+
readonly requestId: Schema.brand<Schema.Trim, "ApprovalRequestId">;
|
|
516
|
+
readonly answers: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
517
|
+
readonly createdAt: Schema.String;
|
|
518
|
+
}>, Schema.Struct<{
|
|
519
|
+
readonly type: Schema.Literal<"thread.checkpoint.revert">;
|
|
520
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
521
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
522
|
+
readonly turnCount: Schema.Int;
|
|
523
|
+
readonly createdAt: Schema.String;
|
|
524
|
+
}>, Schema.Struct<{
|
|
525
|
+
readonly type: Schema.Literal<"thread.session.stop">;
|
|
526
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
527
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
528
|
+
readonly createdAt: Schema.String;
|
|
529
|
+
}>]>;
|
|
530
|
+
export type DispatchableClientOrchestrationCommand = typeof DispatchableClientOrchestrationCommand.Type;
|
|
531
|
+
export declare const ClientOrchestrationCommand: Schema.Union<readonly [Schema.Struct<{
|
|
532
|
+
readonly type: Schema.Literal<"project.create">;
|
|
533
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
534
|
+
readonly projectId: Schema.brand<Schema.Trim, "ProjectId">;
|
|
535
|
+
readonly title: Schema.Trim;
|
|
536
|
+
readonly workspaceRoot: Schema.Trim;
|
|
537
|
+
readonly defaultModel: Schema.optional<Schema.Trim>;
|
|
538
|
+
readonly createdAt: Schema.String;
|
|
539
|
+
}>, Schema.Struct<{
|
|
540
|
+
readonly type: Schema.Literal<"project.meta.update">;
|
|
541
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
542
|
+
readonly projectId: Schema.brand<Schema.Trim, "ProjectId">;
|
|
543
|
+
readonly title: Schema.optional<Schema.Trim>;
|
|
544
|
+
readonly workspaceRoot: Schema.optional<Schema.Trim>;
|
|
545
|
+
readonly defaultModel: Schema.optional<Schema.Trim>;
|
|
546
|
+
readonly scripts: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
547
|
+
readonly id: Schema.Trim;
|
|
548
|
+
readonly name: Schema.Trim;
|
|
549
|
+
readonly command: Schema.Trim;
|
|
550
|
+
readonly icon: Schema.Literals<readonly ["play", "test", "lint", "configure", "build", "debug"]>;
|
|
551
|
+
readonly runOnWorktreeCreate: Schema.Boolean;
|
|
552
|
+
}>>>;
|
|
553
|
+
}>, Schema.Struct<{
|
|
554
|
+
readonly type: Schema.Literal<"project.delete">;
|
|
555
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
556
|
+
readonly projectId: Schema.brand<Schema.Trim, "ProjectId">;
|
|
557
|
+
}>, Schema.Struct<{
|
|
558
|
+
readonly type: Schema.Literal<"thread.create">;
|
|
559
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
560
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
561
|
+
readonly projectId: Schema.brand<Schema.Trim, "ProjectId">;
|
|
562
|
+
readonly title: Schema.Trim;
|
|
563
|
+
readonly model: Schema.Trim;
|
|
564
|
+
readonly runtimeMode: Schema.Literals<readonly ["approval-required", "full-access"]>;
|
|
565
|
+
readonly interactionMode: Schema.withDecodingDefault<Schema.Literals<readonly ["default", "plan"]>>;
|
|
566
|
+
readonly branch: Schema.NullOr<Schema.Trim>;
|
|
567
|
+
readonly worktreePath: Schema.NullOr<Schema.Trim>;
|
|
568
|
+
readonly createdAt: Schema.String;
|
|
569
|
+
}>, Schema.Struct<{
|
|
570
|
+
readonly type: Schema.Literal<"thread.delete">;
|
|
571
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
572
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
573
|
+
}>, Schema.Struct<{
|
|
574
|
+
readonly type: Schema.Literal<"thread.meta.update">;
|
|
575
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
576
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
577
|
+
readonly title: Schema.optional<Schema.Trim>;
|
|
578
|
+
readonly model: Schema.optional<Schema.Trim>;
|
|
579
|
+
readonly branch: Schema.optional<Schema.NullOr<Schema.Trim>>;
|
|
580
|
+
readonly worktreePath: Schema.optional<Schema.NullOr<Schema.Trim>>;
|
|
581
|
+
}>, Schema.Struct<{
|
|
582
|
+
readonly type: Schema.Literal<"thread.runtime-mode.set">;
|
|
583
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
584
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
585
|
+
readonly runtimeMode: Schema.Literals<readonly ["approval-required", "full-access"]>;
|
|
586
|
+
readonly createdAt: Schema.String;
|
|
587
|
+
}>, Schema.Struct<{
|
|
588
|
+
readonly type: Schema.Literal<"thread.interaction-mode.set">;
|
|
589
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
590
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
591
|
+
readonly interactionMode: Schema.Literals<readonly ["default", "plan"]>;
|
|
592
|
+
readonly createdAt: Schema.String;
|
|
593
|
+
}>, Schema.Struct<{
|
|
594
|
+
readonly type: Schema.Literal<"thread.turn.start">;
|
|
595
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
596
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
597
|
+
readonly message: Schema.Struct<{
|
|
598
|
+
readonly messageId: Schema.brand<Schema.Trim, "MessageId">;
|
|
599
|
+
readonly role: Schema.Literal<"user">;
|
|
600
|
+
readonly text: Schema.String;
|
|
601
|
+
readonly attachments: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
602
|
+
readonly type: Schema.Literal<"image">;
|
|
603
|
+
readonly name: Schema.Trim;
|
|
604
|
+
readonly mimeType: Schema.Trim;
|
|
605
|
+
readonly sizeBytes: Schema.Int;
|
|
606
|
+
readonly dataUrl: Schema.Trim;
|
|
607
|
+
}>]>>;
|
|
608
|
+
}>;
|
|
609
|
+
readonly provider: Schema.optional<Schema.Literals<readonly ["codex", "claude"]>>;
|
|
610
|
+
readonly model: Schema.optional<Schema.Trim>;
|
|
611
|
+
readonly serviceTier: Schema.optional<Schema.NullOr<Schema.Literals<readonly ["fast", "flex"]>>>;
|
|
612
|
+
readonly modelOptions: Schema.optional<Schema.Struct<{
|
|
613
|
+
readonly codex: Schema.optional<Schema.Struct<{
|
|
614
|
+
readonly reasoningEffort: Schema.optional<Schema.Literals<readonly ["xhigh", "high", "medium", "low"]>>;
|
|
615
|
+
readonly fastMode: Schema.optional<Schema.Boolean>;
|
|
616
|
+
}>>;
|
|
617
|
+
readonly claude: Schema.optional<Schema.Struct<{}>>;
|
|
618
|
+
}>>;
|
|
619
|
+
readonly assistantDeliveryMode: Schema.optional<Schema.Literals<readonly ["buffered", "streaming"]>>;
|
|
620
|
+
readonly runtimeMode: Schema.Literals<readonly ["approval-required", "full-access"]>;
|
|
621
|
+
readonly interactionMode: Schema.Literals<readonly ["default", "plan"]>;
|
|
622
|
+
readonly createdAt: Schema.String;
|
|
623
|
+
}>, Schema.Struct<{
|
|
624
|
+
readonly type: Schema.Literal<"thread.turn.interrupt">;
|
|
625
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
626
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
627
|
+
readonly turnId: Schema.optional<Schema.brand<Schema.Trim, "TurnId">>;
|
|
628
|
+
readonly createdAt: Schema.String;
|
|
629
|
+
}>, Schema.Struct<{
|
|
630
|
+
readonly type: Schema.Literal<"thread.approval.respond">;
|
|
631
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
632
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
633
|
+
readonly requestId: Schema.brand<Schema.Trim, "ApprovalRequestId">;
|
|
634
|
+
readonly decision: Schema.Literals<readonly ["accept", "acceptForSession", "decline", "cancel"]>;
|
|
635
|
+
readonly createdAt: Schema.String;
|
|
636
|
+
}>, Schema.Struct<{
|
|
637
|
+
readonly type: Schema.Literal<"thread.user-input.respond">;
|
|
638
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
639
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
640
|
+
readonly requestId: Schema.brand<Schema.Trim, "ApprovalRequestId">;
|
|
641
|
+
readonly answers: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
642
|
+
readonly createdAt: Schema.String;
|
|
643
|
+
}>, Schema.Struct<{
|
|
644
|
+
readonly type: Schema.Literal<"thread.checkpoint.revert">;
|
|
645
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
646
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
647
|
+
readonly turnCount: Schema.Int;
|
|
648
|
+
readonly createdAt: Schema.String;
|
|
649
|
+
}>, Schema.Struct<{
|
|
650
|
+
readonly type: Schema.Literal<"thread.session.stop">;
|
|
651
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
652
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
653
|
+
readonly createdAt: Schema.String;
|
|
654
|
+
}>]>;
|
|
655
|
+
export type ClientOrchestrationCommand = typeof ClientOrchestrationCommand.Type;
|
|
656
|
+
declare const InternalOrchestrationCommand: Schema.Union<readonly [Schema.Struct<{
|
|
657
|
+
readonly type: Schema.Literal<"thread.session.set">;
|
|
658
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
659
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
660
|
+
readonly session: Schema.Struct<{
|
|
661
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
662
|
+
readonly status: Schema.Literals<readonly ["idle", "starting", "running", "ready", "interrupted", "stopped", "error"]>;
|
|
663
|
+
readonly providerName: Schema.NullOr<Schema.Trim>;
|
|
664
|
+
readonly runtimeMode: Schema.withDecodingDefault<Schema.Literals<readonly ["approval-required", "full-access"]>>;
|
|
665
|
+
readonly activeTurnId: Schema.NullOr<Schema.brand<Schema.Trim, "TurnId">>;
|
|
666
|
+
readonly lastError: Schema.NullOr<Schema.Trim>;
|
|
667
|
+
readonly updatedAt: Schema.String;
|
|
668
|
+
}>;
|
|
669
|
+
readonly createdAt: Schema.String;
|
|
670
|
+
}>, Schema.Struct<{
|
|
671
|
+
readonly type: Schema.Literal<"thread.message.assistant.delta">;
|
|
672
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
673
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
674
|
+
readonly messageId: Schema.brand<Schema.Trim, "MessageId">;
|
|
675
|
+
readonly delta: Schema.String;
|
|
676
|
+
readonly turnId: Schema.optional<Schema.brand<Schema.Trim, "TurnId">>;
|
|
677
|
+
readonly createdAt: Schema.String;
|
|
678
|
+
}>, Schema.Struct<{
|
|
679
|
+
readonly type: Schema.Literal<"thread.message.assistant.complete">;
|
|
680
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
681
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
682
|
+
readonly messageId: Schema.brand<Schema.Trim, "MessageId">;
|
|
683
|
+
readonly turnId: Schema.optional<Schema.brand<Schema.Trim, "TurnId">>;
|
|
684
|
+
readonly createdAt: Schema.String;
|
|
685
|
+
}>, Schema.Struct<{
|
|
686
|
+
readonly type: Schema.Literal<"thread.proposed-plan.upsert">;
|
|
687
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
688
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
689
|
+
readonly proposedPlan: Schema.Struct<{
|
|
690
|
+
readonly id: Schema.Trim;
|
|
691
|
+
readonly turnId: Schema.NullOr<Schema.brand<Schema.Trim, "TurnId">>;
|
|
692
|
+
readonly planMarkdown: Schema.Trim;
|
|
693
|
+
readonly createdAt: Schema.String;
|
|
694
|
+
readonly updatedAt: Schema.String;
|
|
695
|
+
}>;
|
|
696
|
+
readonly createdAt: Schema.String;
|
|
697
|
+
}>, Schema.Struct<{
|
|
698
|
+
readonly type: Schema.Literal<"thread.turn.diff.complete">;
|
|
699
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
700
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
701
|
+
readonly turnId: Schema.brand<Schema.Trim, "TurnId">;
|
|
702
|
+
readonly completedAt: Schema.String;
|
|
703
|
+
readonly checkpointRef: Schema.brand<Schema.Trim, "CheckpointRef">;
|
|
704
|
+
readonly status: Schema.Literals<readonly ["ready", "missing", "error"]>;
|
|
705
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
706
|
+
readonly path: Schema.Trim;
|
|
707
|
+
readonly kind: Schema.Trim;
|
|
708
|
+
readonly additions: Schema.Int;
|
|
709
|
+
readonly deletions: Schema.Int;
|
|
710
|
+
}>>;
|
|
711
|
+
readonly assistantMessageId: Schema.optional<Schema.brand<Schema.Trim, "MessageId">>;
|
|
712
|
+
readonly checkpointTurnCount: Schema.Int;
|
|
713
|
+
readonly createdAt: Schema.String;
|
|
714
|
+
}>, Schema.Struct<{
|
|
715
|
+
readonly type: Schema.Literal<"thread.activity.append">;
|
|
716
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
717
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
718
|
+
readonly activity: Schema.Struct<{
|
|
719
|
+
readonly id: Schema.brand<Schema.Trim, "EventId">;
|
|
720
|
+
readonly tone: Schema.Literals<readonly ["info", "tool", "approval", "error"]>;
|
|
721
|
+
readonly kind: Schema.Trim;
|
|
722
|
+
readonly summary: Schema.Trim;
|
|
723
|
+
readonly payload: Schema.Unknown;
|
|
724
|
+
readonly turnId: Schema.NullOr<Schema.brand<Schema.Trim, "TurnId">>;
|
|
725
|
+
readonly sequence: Schema.optional<Schema.Int>;
|
|
726
|
+
readonly createdAt: Schema.String;
|
|
727
|
+
}>;
|
|
728
|
+
readonly createdAt: Schema.String;
|
|
729
|
+
}>, Schema.Struct<{
|
|
730
|
+
readonly type: Schema.Literal<"thread.revert.complete">;
|
|
731
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
732
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
733
|
+
readonly turnCount: Schema.Int;
|
|
734
|
+
readonly createdAt: Schema.String;
|
|
735
|
+
}>]>;
|
|
736
|
+
export type InternalOrchestrationCommand = typeof InternalOrchestrationCommand.Type;
|
|
737
|
+
export declare const OrchestrationCommand: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
738
|
+
readonly type: Schema.Literal<"project.create">;
|
|
739
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
740
|
+
readonly projectId: Schema.brand<Schema.Trim, "ProjectId">;
|
|
741
|
+
readonly title: Schema.Trim;
|
|
742
|
+
readonly workspaceRoot: Schema.Trim;
|
|
743
|
+
readonly defaultModel: Schema.optional<Schema.Trim>;
|
|
744
|
+
readonly createdAt: Schema.String;
|
|
745
|
+
}>, Schema.Struct<{
|
|
746
|
+
readonly type: Schema.Literal<"project.meta.update">;
|
|
747
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
748
|
+
readonly projectId: Schema.brand<Schema.Trim, "ProjectId">;
|
|
749
|
+
readonly title: Schema.optional<Schema.Trim>;
|
|
750
|
+
readonly workspaceRoot: Schema.optional<Schema.Trim>;
|
|
751
|
+
readonly defaultModel: Schema.optional<Schema.Trim>;
|
|
752
|
+
readonly scripts: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
753
|
+
readonly id: Schema.Trim;
|
|
754
|
+
readonly name: Schema.Trim;
|
|
755
|
+
readonly command: Schema.Trim;
|
|
756
|
+
readonly icon: Schema.Literals<readonly ["play", "test", "lint", "configure", "build", "debug"]>;
|
|
757
|
+
readonly runOnWorktreeCreate: Schema.Boolean;
|
|
758
|
+
}>>>;
|
|
759
|
+
}>, Schema.Struct<{
|
|
760
|
+
readonly type: Schema.Literal<"project.delete">;
|
|
761
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
762
|
+
readonly projectId: Schema.brand<Schema.Trim, "ProjectId">;
|
|
763
|
+
}>, Schema.Struct<{
|
|
764
|
+
readonly type: Schema.Literal<"thread.create">;
|
|
765
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
766
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
767
|
+
readonly projectId: Schema.brand<Schema.Trim, "ProjectId">;
|
|
768
|
+
readonly title: Schema.Trim;
|
|
769
|
+
readonly model: Schema.Trim;
|
|
770
|
+
readonly runtimeMode: Schema.Literals<readonly ["approval-required", "full-access"]>;
|
|
771
|
+
readonly interactionMode: Schema.withDecodingDefault<Schema.Literals<readonly ["default", "plan"]>>;
|
|
772
|
+
readonly branch: Schema.NullOr<Schema.Trim>;
|
|
773
|
+
readonly worktreePath: Schema.NullOr<Schema.Trim>;
|
|
774
|
+
readonly createdAt: Schema.String;
|
|
775
|
+
}>, Schema.Struct<{
|
|
776
|
+
readonly type: Schema.Literal<"thread.delete">;
|
|
777
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
778
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
779
|
+
}>, Schema.Struct<{
|
|
780
|
+
readonly type: Schema.Literal<"thread.meta.update">;
|
|
781
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
782
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
783
|
+
readonly title: Schema.optional<Schema.Trim>;
|
|
784
|
+
readonly model: Schema.optional<Schema.Trim>;
|
|
785
|
+
readonly branch: Schema.optional<Schema.NullOr<Schema.Trim>>;
|
|
786
|
+
readonly worktreePath: Schema.optional<Schema.NullOr<Schema.Trim>>;
|
|
787
|
+
}>, Schema.Struct<{
|
|
788
|
+
readonly type: Schema.Literal<"thread.runtime-mode.set">;
|
|
789
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
790
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
791
|
+
readonly runtimeMode: Schema.Literals<readonly ["approval-required", "full-access"]>;
|
|
792
|
+
readonly createdAt: Schema.String;
|
|
793
|
+
}>, Schema.Struct<{
|
|
794
|
+
readonly type: Schema.Literal<"thread.interaction-mode.set">;
|
|
795
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
796
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
797
|
+
readonly interactionMode: Schema.Literals<readonly ["default", "plan"]>;
|
|
798
|
+
readonly createdAt: Schema.String;
|
|
799
|
+
}>, Schema.Struct<{
|
|
800
|
+
readonly type: Schema.Literal<"thread.turn.start">;
|
|
801
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
802
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
803
|
+
readonly message: Schema.Struct<{
|
|
804
|
+
readonly messageId: Schema.brand<Schema.Trim, "MessageId">;
|
|
805
|
+
readonly role: Schema.Literal<"user">;
|
|
806
|
+
readonly text: Schema.String;
|
|
807
|
+
readonly attachments: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
808
|
+
readonly type: Schema.Literal<"image">;
|
|
809
|
+
readonly id: Schema.Trim;
|
|
810
|
+
readonly name: Schema.Trim;
|
|
811
|
+
readonly mimeType: Schema.Trim;
|
|
812
|
+
readonly sizeBytes: Schema.Int;
|
|
813
|
+
}>]>>;
|
|
814
|
+
}>;
|
|
815
|
+
readonly provider: Schema.optional<Schema.Literals<readonly ["codex", "claude"]>>;
|
|
816
|
+
readonly model: Schema.optional<Schema.Trim>;
|
|
817
|
+
readonly serviceTier: Schema.optional<Schema.NullOr<Schema.Literals<readonly ["fast", "flex"]>>>;
|
|
818
|
+
readonly modelOptions: Schema.optional<Schema.Struct<{
|
|
819
|
+
readonly codex: Schema.optional<Schema.Struct<{
|
|
820
|
+
readonly reasoningEffort: Schema.optional<Schema.Literals<readonly ["xhigh", "high", "medium", "low"]>>;
|
|
821
|
+
readonly fastMode: Schema.optional<Schema.Boolean>;
|
|
822
|
+
}>>;
|
|
823
|
+
readonly claude: Schema.optional<Schema.Struct<{}>>;
|
|
824
|
+
}>>;
|
|
825
|
+
readonly assistantDeliveryMode: Schema.optional<Schema.Literals<readonly ["buffered", "streaming"]>>;
|
|
826
|
+
readonly runtimeMode: Schema.withDecodingDefault<Schema.Literals<readonly ["approval-required", "full-access"]>>;
|
|
827
|
+
readonly interactionMode: Schema.withDecodingDefault<Schema.Literals<readonly ["default", "plan"]>>;
|
|
828
|
+
readonly createdAt: Schema.String;
|
|
829
|
+
}>, Schema.Struct<{
|
|
830
|
+
readonly type: Schema.Literal<"thread.turn.interrupt">;
|
|
831
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
832
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
833
|
+
readonly turnId: Schema.optional<Schema.brand<Schema.Trim, "TurnId">>;
|
|
834
|
+
readonly createdAt: Schema.String;
|
|
835
|
+
}>, Schema.Struct<{
|
|
836
|
+
readonly type: Schema.Literal<"thread.approval.respond">;
|
|
837
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
838
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
839
|
+
readonly requestId: Schema.brand<Schema.Trim, "ApprovalRequestId">;
|
|
840
|
+
readonly decision: Schema.Literals<readonly ["accept", "acceptForSession", "decline", "cancel"]>;
|
|
841
|
+
readonly createdAt: Schema.String;
|
|
842
|
+
}>, Schema.Struct<{
|
|
843
|
+
readonly type: Schema.Literal<"thread.user-input.respond">;
|
|
844
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
845
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
846
|
+
readonly requestId: Schema.brand<Schema.Trim, "ApprovalRequestId">;
|
|
847
|
+
readonly answers: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
848
|
+
readonly createdAt: Schema.String;
|
|
849
|
+
}>, Schema.Struct<{
|
|
850
|
+
readonly type: Schema.Literal<"thread.checkpoint.revert">;
|
|
851
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
852
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
853
|
+
readonly turnCount: Schema.Int;
|
|
854
|
+
readonly createdAt: Schema.String;
|
|
855
|
+
}>, Schema.Struct<{
|
|
856
|
+
readonly type: Schema.Literal<"thread.session.stop">;
|
|
857
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
858
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
859
|
+
readonly createdAt: Schema.String;
|
|
860
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
861
|
+
readonly type: Schema.Literal<"thread.session.set">;
|
|
862
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
863
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
864
|
+
readonly session: Schema.Struct<{
|
|
865
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
866
|
+
readonly status: Schema.Literals<readonly ["idle", "starting", "running", "ready", "interrupted", "stopped", "error"]>;
|
|
867
|
+
readonly providerName: Schema.NullOr<Schema.Trim>;
|
|
868
|
+
readonly runtimeMode: Schema.withDecodingDefault<Schema.Literals<readonly ["approval-required", "full-access"]>>;
|
|
869
|
+
readonly activeTurnId: Schema.NullOr<Schema.brand<Schema.Trim, "TurnId">>;
|
|
870
|
+
readonly lastError: Schema.NullOr<Schema.Trim>;
|
|
871
|
+
readonly updatedAt: Schema.String;
|
|
872
|
+
}>;
|
|
873
|
+
readonly createdAt: Schema.String;
|
|
874
|
+
}>, Schema.Struct<{
|
|
875
|
+
readonly type: Schema.Literal<"thread.message.assistant.delta">;
|
|
876
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
877
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
878
|
+
readonly messageId: Schema.brand<Schema.Trim, "MessageId">;
|
|
879
|
+
readonly delta: Schema.String;
|
|
880
|
+
readonly turnId: Schema.optional<Schema.brand<Schema.Trim, "TurnId">>;
|
|
881
|
+
readonly createdAt: Schema.String;
|
|
882
|
+
}>, Schema.Struct<{
|
|
883
|
+
readonly type: Schema.Literal<"thread.message.assistant.complete">;
|
|
884
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
885
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
886
|
+
readonly messageId: Schema.brand<Schema.Trim, "MessageId">;
|
|
887
|
+
readonly turnId: Schema.optional<Schema.brand<Schema.Trim, "TurnId">>;
|
|
888
|
+
readonly createdAt: Schema.String;
|
|
889
|
+
}>, Schema.Struct<{
|
|
890
|
+
readonly type: Schema.Literal<"thread.proposed-plan.upsert">;
|
|
891
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
892
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
893
|
+
readonly proposedPlan: Schema.Struct<{
|
|
894
|
+
readonly id: Schema.Trim;
|
|
895
|
+
readonly turnId: Schema.NullOr<Schema.brand<Schema.Trim, "TurnId">>;
|
|
896
|
+
readonly planMarkdown: Schema.Trim;
|
|
897
|
+
readonly createdAt: Schema.String;
|
|
898
|
+
readonly updatedAt: Schema.String;
|
|
899
|
+
}>;
|
|
900
|
+
readonly createdAt: Schema.String;
|
|
901
|
+
}>, Schema.Struct<{
|
|
902
|
+
readonly type: Schema.Literal<"thread.turn.diff.complete">;
|
|
903
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
904
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
905
|
+
readonly turnId: Schema.brand<Schema.Trim, "TurnId">;
|
|
906
|
+
readonly completedAt: Schema.String;
|
|
907
|
+
readonly checkpointRef: Schema.brand<Schema.Trim, "CheckpointRef">;
|
|
908
|
+
readonly status: Schema.Literals<readonly ["ready", "missing", "error"]>;
|
|
909
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
910
|
+
readonly path: Schema.Trim;
|
|
911
|
+
readonly kind: Schema.Trim;
|
|
912
|
+
readonly additions: Schema.Int;
|
|
913
|
+
readonly deletions: Schema.Int;
|
|
914
|
+
}>>;
|
|
915
|
+
readonly assistantMessageId: Schema.optional<Schema.brand<Schema.Trim, "MessageId">>;
|
|
916
|
+
readonly checkpointTurnCount: Schema.Int;
|
|
917
|
+
readonly createdAt: Schema.String;
|
|
918
|
+
}>, Schema.Struct<{
|
|
919
|
+
readonly type: Schema.Literal<"thread.activity.append">;
|
|
920
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
921
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
922
|
+
readonly activity: Schema.Struct<{
|
|
923
|
+
readonly id: Schema.brand<Schema.Trim, "EventId">;
|
|
924
|
+
readonly tone: Schema.Literals<readonly ["info", "tool", "approval", "error"]>;
|
|
925
|
+
readonly kind: Schema.Trim;
|
|
926
|
+
readonly summary: Schema.Trim;
|
|
927
|
+
readonly payload: Schema.Unknown;
|
|
928
|
+
readonly turnId: Schema.NullOr<Schema.brand<Schema.Trim, "TurnId">>;
|
|
929
|
+
readonly sequence: Schema.optional<Schema.Int>;
|
|
930
|
+
readonly createdAt: Schema.String;
|
|
931
|
+
}>;
|
|
932
|
+
readonly createdAt: Schema.String;
|
|
933
|
+
}>, Schema.Struct<{
|
|
934
|
+
readonly type: Schema.Literal<"thread.revert.complete">;
|
|
935
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
936
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
937
|
+
readonly turnCount: Schema.Int;
|
|
938
|
+
readonly createdAt: Schema.String;
|
|
939
|
+
}>]>]>;
|
|
940
|
+
export type OrchestrationCommand = typeof OrchestrationCommand.Type;
|
|
941
|
+
export declare const OrchestrationEventType: Schema.Literals<readonly ["project.created", "project.meta-updated", "project.deleted", "thread.created", "thread.deleted", "thread.meta-updated", "thread.runtime-mode-set", "thread.interaction-mode-set", "thread.message-sent", "thread.turn-start-requested", "thread.turn-interrupt-requested", "thread.approval-response-requested", "thread.user-input-response-requested", "thread.checkpoint-revert-requested", "thread.reverted", "thread.session-stop-requested", "thread.session-set", "thread.proposed-plan-upserted", "thread.turn-diff-completed", "thread.activity-appended"]>;
|
|
942
|
+
export type OrchestrationEventType = typeof OrchestrationEventType.Type;
|
|
943
|
+
export declare const OrchestrationAggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
944
|
+
export type OrchestrationAggregateKind = typeof OrchestrationAggregateKind.Type;
|
|
945
|
+
export declare const OrchestrationActorKind: Schema.Literals<readonly ["client", "server", "provider"]>;
|
|
946
|
+
export declare const ProjectCreatedPayload: Schema.Struct<{
|
|
947
|
+
readonly projectId: Schema.brand<Schema.Trim, "ProjectId">;
|
|
948
|
+
readonly title: Schema.Trim;
|
|
949
|
+
readonly workspaceRoot: Schema.Trim;
|
|
950
|
+
readonly defaultModel: Schema.NullOr<Schema.Trim>;
|
|
951
|
+
readonly scripts: Schema.$Array<Schema.Struct<{
|
|
952
|
+
readonly id: Schema.Trim;
|
|
953
|
+
readonly name: Schema.Trim;
|
|
954
|
+
readonly command: Schema.Trim;
|
|
955
|
+
readonly icon: Schema.Literals<readonly ["play", "test", "lint", "configure", "build", "debug"]>;
|
|
956
|
+
readonly runOnWorktreeCreate: Schema.Boolean;
|
|
957
|
+
}>>;
|
|
958
|
+
readonly createdAt: Schema.String;
|
|
959
|
+
readonly updatedAt: Schema.String;
|
|
960
|
+
}>;
|
|
961
|
+
export declare const ProjectMetaUpdatedPayload: Schema.Struct<{
|
|
962
|
+
readonly projectId: Schema.brand<Schema.Trim, "ProjectId">;
|
|
963
|
+
readonly title: Schema.optional<Schema.Trim>;
|
|
964
|
+
readonly workspaceRoot: Schema.optional<Schema.Trim>;
|
|
965
|
+
readonly defaultModel: Schema.optional<Schema.NullOr<Schema.Trim>>;
|
|
966
|
+
readonly scripts: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
967
|
+
readonly id: Schema.Trim;
|
|
968
|
+
readonly name: Schema.Trim;
|
|
969
|
+
readonly command: Schema.Trim;
|
|
970
|
+
readonly icon: Schema.Literals<readonly ["play", "test", "lint", "configure", "build", "debug"]>;
|
|
971
|
+
readonly runOnWorktreeCreate: Schema.Boolean;
|
|
972
|
+
}>>>;
|
|
973
|
+
readonly updatedAt: Schema.String;
|
|
974
|
+
}>;
|
|
975
|
+
export declare const ProjectDeletedPayload: Schema.Struct<{
|
|
976
|
+
readonly projectId: Schema.brand<Schema.Trim, "ProjectId">;
|
|
977
|
+
readonly deletedAt: Schema.String;
|
|
978
|
+
}>;
|
|
979
|
+
export declare const ThreadCreatedPayload: Schema.Struct<{
|
|
980
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
981
|
+
readonly projectId: Schema.brand<Schema.Trim, "ProjectId">;
|
|
982
|
+
readonly title: Schema.Trim;
|
|
983
|
+
readonly model: Schema.Trim;
|
|
984
|
+
readonly runtimeMode: Schema.withDecodingDefault<Schema.Literals<readonly ["approval-required", "full-access"]>>;
|
|
985
|
+
readonly interactionMode: Schema.withDecodingDefault<Schema.Literals<readonly ["default", "plan"]>>;
|
|
986
|
+
readonly branch: Schema.NullOr<Schema.Trim>;
|
|
987
|
+
readonly worktreePath: Schema.NullOr<Schema.Trim>;
|
|
988
|
+
readonly createdAt: Schema.String;
|
|
989
|
+
readonly updatedAt: Schema.String;
|
|
990
|
+
}>;
|
|
991
|
+
export declare const ThreadDeletedPayload: Schema.Struct<{
|
|
992
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
993
|
+
readonly deletedAt: Schema.String;
|
|
994
|
+
}>;
|
|
995
|
+
export declare const ThreadMetaUpdatedPayload: Schema.Struct<{
|
|
996
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
997
|
+
readonly title: Schema.optional<Schema.Trim>;
|
|
998
|
+
readonly model: Schema.optional<Schema.Trim>;
|
|
999
|
+
readonly branch: Schema.optional<Schema.NullOr<Schema.Trim>>;
|
|
1000
|
+
readonly worktreePath: Schema.optional<Schema.NullOr<Schema.Trim>>;
|
|
1001
|
+
readonly updatedAt: Schema.String;
|
|
1002
|
+
}>;
|
|
1003
|
+
export declare const ThreadRuntimeModeSetPayload: Schema.Struct<{
|
|
1004
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
1005
|
+
readonly runtimeMode: Schema.Literals<readonly ["approval-required", "full-access"]>;
|
|
1006
|
+
readonly updatedAt: Schema.String;
|
|
1007
|
+
}>;
|
|
1008
|
+
export declare const ThreadInteractionModeSetPayload: Schema.Struct<{
|
|
1009
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
1010
|
+
readonly interactionMode: Schema.withDecodingDefault<Schema.Literals<readonly ["default", "plan"]>>;
|
|
1011
|
+
readonly updatedAt: Schema.String;
|
|
1012
|
+
}>;
|
|
1013
|
+
export declare const ThreadMessageSentPayload: Schema.Struct<{
|
|
1014
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
1015
|
+
readonly messageId: Schema.brand<Schema.Trim, "MessageId">;
|
|
1016
|
+
readonly role: Schema.Literals<readonly ["user", "assistant", "system"]>;
|
|
1017
|
+
readonly text: Schema.String;
|
|
1018
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
1019
|
+
readonly type: Schema.Literal<"image">;
|
|
1020
|
+
readonly id: Schema.Trim;
|
|
1021
|
+
readonly name: Schema.Trim;
|
|
1022
|
+
readonly mimeType: Schema.Trim;
|
|
1023
|
+
readonly sizeBytes: Schema.Int;
|
|
1024
|
+
}>]>>>;
|
|
1025
|
+
readonly turnId: Schema.NullOr<Schema.brand<Schema.Trim, "TurnId">>;
|
|
1026
|
+
readonly streaming: Schema.Boolean;
|
|
1027
|
+
readonly createdAt: Schema.String;
|
|
1028
|
+
readonly updatedAt: Schema.String;
|
|
1029
|
+
}>;
|
|
1030
|
+
export declare const ThreadTurnStartRequestedPayload: Schema.Struct<{
|
|
1031
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
1032
|
+
readonly messageId: Schema.brand<Schema.Trim, "MessageId">;
|
|
1033
|
+
readonly provider: Schema.optional<Schema.Literals<readonly ["codex", "claude"]>>;
|
|
1034
|
+
readonly model: Schema.optional<Schema.Trim>;
|
|
1035
|
+
readonly serviceTier: Schema.optional<Schema.NullOr<Schema.Literals<readonly ["fast", "flex"]>>>;
|
|
1036
|
+
readonly modelOptions: Schema.optional<Schema.Struct<{
|
|
1037
|
+
readonly codex: Schema.optional<Schema.Struct<{
|
|
1038
|
+
readonly reasoningEffort: Schema.optional<Schema.Literals<readonly ["xhigh", "high", "medium", "low"]>>;
|
|
1039
|
+
readonly fastMode: Schema.optional<Schema.Boolean>;
|
|
1040
|
+
}>>;
|
|
1041
|
+
readonly claude: Schema.optional<Schema.Struct<{}>>;
|
|
1042
|
+
}>>;
|
|
1043
|
+
readonly assistantDeliveryMode: Schema.optional<Schema.Literals<readonly ["buffered", "streaming"]>>;
|
|
1044
|
+
readonly runtimeMode: Schema.withDecodingDefault<Schema.Literals<readonly ["approval-required", "full-access"]>>;
|
|
1045
|
+
readonly interactionMode: Schema.withDecodingDefault<Schema.Literals<readonly ["default", "plan"]>>;
|
|
1046
|
+
readonly createdAt: Schema.String;
|
|
1047
|
+
}>;
|
|
1048
|
+
export declare const ThreadTurnInterruptRequestedPayload: Schema.Struct<{
|
|
1049
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
1050
|
+
readonly turnId: Schema.optional<Schema.brand<Schema.Trim, "TurnId">>;
|
|
1051
|
+
readonly createdAt: Schema.String;
|
|
1052
|
+
}>;
|
|
1053
|
+
export declare const ThreadApprovalResponseRequestedPayload: Schema.Struct<{
|
|
1054
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
1055
|
+
readonly requestId: Schema.brand<Schema.Trim, "ApprovalRequestId">;
|
|
1056
|
+
readonly decision: Schema.Literals<readonly ["accept", "acceptForSession", "decline", "cancel"]>;
|
|
1057
|
+
readonly createdAt: Schema.String;
|
|
1058
|
+
}>;
|
|
1059
|
+
export declare const ThreadCheckpointRevertRequestedPayload: Schema.Struct<{
|
|
1060
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
1061
|
+
readonly turnCount: Schema.Int;
|
|
1062
|
+
readonly createdAt: Schema.String;
|
|
1063
|
+
}>;
|
|
1064
|
+
export declare const ThreadRevertedPayload: Schema.Struct<{
|
|
1065
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
1066
|
+
readonly turnCount: Schema.Int;
|
|
1067
|
+
}>;
|
|
1068
|
+
export declare const ThreadSessionStopRequestedPayload: Schema.Struct<{
|
|
1069
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
1070
|
+
readonly createdAt: Schema.String;
|
|
1071
|
+
}>;
|
|
1072
|
+
export declare const ThreadSessionSetPayload: Schema.Struct<{
|
|
1073
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
1074
|
+
readonly session: Schema.Struct<{
|
|
1075
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
1076
|
+
readonly status: Schema.Literals<readonly ["idle", "starting", "running", "ready", "interrupted", "stopped", "error"]>;
|
|
1077
|
+
readonly providerName: Schema.NullOr<Schema.Trim>;
|
|
1078
|
+
readonly runtimeMode: Schema.withDecodingDefault<Schema.Literals<readonly ["approval-required", "full-access"]>>;
|
|
1079
|
+
readonly activeTurnId: Schema.NullOr<Schema.brand<Schema.Trim, "TurnId">>;
|
|
1080
|
+
readonly lastError: Schema.NullOr<Schema.Trim>;
|
|
1081
|
+
readonly updatedAt: Schema.String;
|
|
1082
|
+
}>;
|
|
1083
|
+
}>;
|
|
1084
|
+
export declare const ThreadProposedPlanUpsertedPayload: Schema.Struct<{
|
|
1085
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
1086
|
+
readonly proposedPlan: Schema.Struct<{
|
|
1087
|
+
readonly id: Schema.Trim;
|
|
1088
|
+
readonly turnId: Schema.NullOr<Schema.brand<Schema.Trim, "TurnId">>;
|
|
1089
|
+
readonly planMarkdown: Schema.Trim;
|
|
1090
|
+
readonly createdAt: Schema.String;
|
|
1091
|
+
readonly updatedAt: Schema.String;
|
|
1092
|
+
}>;
|
|
1093
|
+
}>;
|
|
1094
|
+
export declare const ThreadTurnDiffCompletedPayload: Schema.Struct<{
|
|
1095
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
1096
|
+
readonly turnId: Schema.brand<Schema.Trim, "TurnId">;
|
|
1097
|
+
readonly checkpointTurnCount: Schema.Int;
|
|
1098
|
+
readonly checkpointRef: Schema.brand<Schema.Trim, "CheckpointRef">;
|
|
1099
|
+
readonly status: Schema.Literals<readonly ["ready", "missing", "error"]>;
|
|
1100
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
1101
|
+
readonly path: Schema.Trim;
|
|
1102
|
+
readonly kind: Schema.Trim;
|
|
1103
|
+
readonly additions: Schema.Int;
|
|
1104
|
+
readonly deletions: Schema.Int;
|
|
1105
|
+
}>>;
|
|
1106
|
+
readonly assistantMessageId: Schema.NullOr<Schema.brand<Schema.Trim, "MessageId">>;
|
|
1107
|
+
readonly completedAt: Schema.String;
|
|
1108
|
+
}>;
|
|
1109
|
+
export declare const ThreadActivityAppendedPayload: Schema.Struct<{
|
|
1110
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
1111
|
+
readonly activity: Schema.Struct<{
|
|
1112
|
+
readonly id: Schema.brand<Schema.Trim, "EventId">;
|
|
1113
|
+
readonly tone: Schema.Literals<readonly ["info", "tool", "approval", "error"]>;
|
|
1114
|
+
readonly kind: Schema.Trim;
|
|
1115
|
+
readonly summary: Schema.Trim;
|
|
1116
|
+
readonly payload: Schema.Unknown;
|
|
1117
|
+
readonly turnId: Schema.NullOr<Schema.brand<Schema.Trim, "TurnId">>;
|
|
1118
|
+
readonly sequence: Schema.optional<Schema.Int>;
|
|
1119
|
+
readonly createdAt: Schema.String;
|
|
1120
|
+
}>;
|
|
1121
|
+
}>;
|
|
1122
|
+
export declare const OrchestrationEventMetadata: Schema.Struct<{
|
|
1123
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
1124
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
1125
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
1126
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
1127
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
1128
|
+
}>;
|
|
1129
|
+
export type OrchestrationEventMetadata = typeof OrchestrationEventMetadata.Type;
|
|
1130
|
+
export declare const OrchestrationEvent: Schema.Union<readonly [Schema.Struct<{
|
|
1131
|
+
readonly type: Schema.Literal<"project.created">;
|
|
1132
|
+
readonly payload: Schema.Struct<{
|
|
1133
|
+
readonly projectId: Schema.brand<Schema.Trim, "ProjectId">;
|
|
1134
|
+
readonly title: Schema.Trim;
|
|
1135
|
+
readonly workspaceRoot: Schema.Trim;
|
|
1136
|
+
readonly defaultModel: Schema.NullOr<Schema.Trim>;
|
|
1137
|
+
readonly scripts: Schema.$Array<Schema.Struct<{
|
|
1138
|
+
readonly id: Schema.Trim;
|
|
1139
|
+
readonly name: Schema.Trim;
|
|
1140
|
+
readonly command: Schema.Trim;
|
|
1141
|
+
readonly icon: Schema.Literals<readonly ["play", "test", "lint", "configure", "build", "debug"]>;
|
|
1142
|
+
readonly runOnWorktreeCreate: Schema.Boolean;
|
|
1143
|
+
}>>;
|
|
1144
|
+
readonly createdAt: Schema.String;
|
|
1145
|
+
readonly updatedAt: Schema.String;
|
|
1146
|
+
}>;
|
|
1147
|
+
readonly sequence: Schema.Int;
|
|
1148
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
1149
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
1150
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
1151
|
+
readonly occurredAt: Schema.String;
|
|
1152
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1153
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
1154
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1155
|
+
readonly metadata: Schema.Struct<{
|
|
1156
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
1157
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
1158
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
1159
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
1160
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
1161
|
+
}>;
|
|
1162
|
+
}>, Schema.Struct<{
|
|
1163
|
+
readonly type: Schema.Literal<"project.meta-updated">;
|
|
1164
|
+
readonly payload: Schema.Struct<{
|
|
1165
|
+
readonly projectId: Schema.brand<Schema.Trim, "ProjectId">;
|
|
1166
|
+
readonly title: Schema.optional<Schema.Trim>;
|
|
1167
|
+
readonly workspaceRoot: Schema.optional<Schema.Trim>;
|
|
1168
|
+
readonly defaultModel: Schema.optional<Schema.NullOr<Schema.Trim>>;
|
|
1169
|
+
readonly scripts: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1170
|
+
readonly id: Schema.Trim;
|
|
1171
|
+
readonly name: Schema.Trim;
|
|
1172
|
+
readonly command: Schema.Trim;
|
|
1173
|
+
readonly icon: Schema.Literals<readonly ["play", "test", "lint", "configure", "build", "debug"]>;
|
|
1174
|
+
readonly runOnWorktreeCreate: Schema.Boolean;
|
|
1175
|
+
}>>>;
|
|
1176
|
+
readonly updatedAt: Schema.String;
|
|
1177
|
+
}>;
|
|
1178
|
+
readonly sequence: Schema.Int;
|
|
1179
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
1180
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
1181
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
1182
|
+
readonly occurredAt: Schema.String;
|
|
1183
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1184
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
1185
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1186
|
+
readonly metadata: Schema.Struct<{
|
|
1187
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
1188
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
1189
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
1190
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
1191
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
1192
|
+
}>;
|
|
1193
|
+
}>, Schema.Struct<{
|
|
1194
|
+
readonly type: Schema.Literal<"project.deleted">;
|
|
1195
|
+
readonly payload: Schema.Struct<{
|
|
1196
|
+
readonly projectId: Schema.brand<Schema.Trim, "ProjectId">;
|
|
1197
|
+
readonly deletedAt: Schema.String;
|
|
1198
|
+
}>;
|
|
1199
|
+
readonly sequence: Schema.Int;
|
|
1200
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
1201
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
1202
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
1203
|
+
readonly occurredAt: Schema.String;
|
|
1204
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1205
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
1206
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1207
|
+
readonly metadata: Schema.Struct<{
|
|
1208
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
1209
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
1210
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
1211
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
1212
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
1213
|
+
}>;
|
|
1214
|
+
}>, Schema.Struct<{
|
|
1215
|
+
readonly type: Schema.Literal<"thread.created">;
|
|
1216
|
+
readonly payload: Schema.Struct<{
|
|
1217
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
1218
|
+
readonly projectId: Schema.brand<Schema.Trim, "ProjectId">;
|
|
1219
|
+
readonly title: Schema.Trim;
|
|
1220
|
+
readonly model: Schema.Trim;
|
|
1221
|
+
readonly runtimeMode: Schema.withDecodingDefault<Schema.Literals<readonly ["approval-required", "full-access"]>>;
|
|
1222
|
+
readonly interactionMode: Schema.withDecodingDefault<Schema.Literals<readonly ["default", "plan"]>>;
|
|
1223
|
+
readonly branch: Schema.NullOr<Schema.Trim>;
|
|
1224
|
+
readonly worktreePath: Schema.NullOr<Schema.Trim>;
|
|
1225
|
+
readonly createdAt: Schema.String;
|
|
1226
|
+
readonly updatedAt: Schema.String;
|
|
1227
|
+
}>;
|
|
1228
|
+
readonly sequence: Schema.Int;
|
|
1229
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
1230
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
1231
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
1232
|
+
readonly occurredAt: Schema.String;
|
|
1233
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1234
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
1235
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1236
|
+
readonly metadata: Schema.Struct<{
|
|
1237
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
1238
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
1239
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
1240
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
1241
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
1242
|
+
}>;
|
|
1243
|
+
}>, Schema.Struct<{
|
|
1244
|
+
readonly type: Schema.Literal<"thread.deleted">;
|
|
1245
|
+
readonly payload: Schema.Struct<{
|
|
1246
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
1247
|
+
readonly deletedAt: Schema.String;
|
|
1248
|
+
}>;
|
|
1249
|
+
readonly sequence: Schema.Int;
|
|
1250
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
1251
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
1252
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
1253
|
+
readonly occurredAt: Schema.String;
|
|
1254
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1255
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
1256
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1257
|
+
readonly metadata: Schema.Struct<{
|
|
1258
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
1259
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
1260
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
1261
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
1262
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
1263
|
+
}>;
|
|
1264
|
+
}>, Schema.Struct<{
|
|
1265
|
+
readonly type: Schema.Literal<"thread.meta-updated">;
|
|
1266
|
+
readonly payload: Schema.Struct<{
|
|
1267
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
1268
|
+
readonly title: Schema.optional<Schema.Trim>;
|
|
1269
|
+
readonly model: Schema.optional<Schema.Trim>;
|
|
1270
|
+
readonly branch: Schema.optional<Schema.NullOr<Schema.Trim>>;
|
|
1271
|
+
readonly worktreePath: Schema.optional<Schema.NullOr<Schema.Trim>>;
|
|
1272
|
+
readonly updatedAt: Schema.String;
|
|
1273
|
+
}>;
|
|
1274
|
+
readonly sequence: Schema.Int;
|
|
1275
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
1276
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
1277
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
1278
|
+
readonly occurredAt: Schema.String;
|
|
1279
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1280
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
1281
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1282
|
+
readonly metadata: Schema.Struct<{
|
|
1283
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
1284
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
1285
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
1286
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
1287
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
1288
|
+
}>;
|
|
1289
|
+
}>, Schema.Struct<{
|
|
1290
|
+
readonly type: Schema.Literal<"thread.runtime-mode-set">;
|
|
1291
|
+
readonly payload: Schema.Struct<{
|
|
1292
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
1293
|
+
readonly runtimeMode: Schema.Literals<readonly ["approval-required", "full-access"]>;
|
|
1294
|
+
readonly updatedAt: Schema.String;
|
|
1295
|
+
}>;
|
|
1296
|
+
readonly sequence: Schema.Int;
|
|
1297
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
1298
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
1299
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
1300
|
+
readonly occurredAt: Schema.String;
|
|
1301
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1302
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
1303
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1304
|
+
readonly metadata: Schema.Struct<{
|
|
1305
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
1306
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
1307
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
1308
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
1309
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
1310
|
+
}>;
|
|
1311
|
+
}>, Schema.Struct<{
|
|
1312
|
+
readonly type: Schema.Literal<"thread.interaction-mode-set">;
|
|
1313
|
+
readonly payload: Schema.Struct<{
|
|
1314
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
1315
|
+
readonly interactionMode: Schema.withDecodingDefault<Schema.Literals<readonly ["default", "plan"]>>;
|
|
1316
|
+
readonly updatedAt: Schema.String;
|
|
1317
|
+
}>;
|
|
1318
|
+
readonly sequence: Schema.Int;
|
|
1319
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
1320
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
1321
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
1322
|
+
readonly occurredAt: Schema.String;
|
|
1323
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1324
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
1325
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1326
|
+
readonly metadata: Schema.Struct<{
|
|
1327
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
1328
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
1329
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
1330
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
1331
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
1332
|
+
}>;
|
|
1333
|
+
}>, Schema.Struct<{
|
|
1334
|
+
readonly type: Schema.Literal<"thread.message-sent">;
|
|
1335
|
+
readonly payload: Schema.Struct<{
|
|
1336
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
1337
|
+
readonly messageId: Schema.brand<Schema.Trim, "MessageId">;
|
|
1338
|
+
readonly role: Schema.Literals<readonly ["user", "assistant", "system"]>;
|
|
1339
|
+
readonly text: Schema.String;
|
|
1340
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
1341
|
+
readonly type: Schema.Literal<"image">;
|
|
1342
|
+
readonly id: Schema.Trim;
|
|
1343
|
+
readonly name: Schema.Trim;
|
|
1344
|
+
readonly mimeType: Schema.Trim;
|
|
1345
|
+
readonly sizeBytes: Schema.Int;
|
|
1346
|
+
}>]>>>;
|
|
1347
|
+
readonly turnId: Schema.NullOr<Schema.brand<Schema.Trim, "TurnId">>;
|
|
1348
|
+
readonly streaming: Schema.Boolean;
|
|
1349
|
+
readonly createdAt: Schema.String;
|
|
1350
|
+
readonly updatedAt: Schema.String;
|
|
1351
|
+
}>;
|
|
1352
|
+
readonly sequence: Schema.Int;
|
|
1353
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
1354
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
1355
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
1356
|
+
readonly occurredAt: Schema.String;
|
|
1357
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1358
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
1359
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1360
|
+
readonly metadata: Schema.Struct<{
|
|
1361
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
1362
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
1363
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
1364
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
1365
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
1366
|
+
}>;
|
|
1367
|
+
}>, Schema.Struct<{
|
|
1368
|
+
readonly type: Schema.Literal<"thread.turn-start-requested">;
|
|
1369
|
+
readonly payload: Schema.Struct<{
|
|
1370
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
1371
|
+
readonly messageId: Schema.brand<Schema.Trim, "MessageId">;
|
|
1372
|
+
readonly provider: Schema.optional<Schema.Literals<readonly ["codex", "claude"]>>;
|
|
1373
|
+
readonly model: Schema.optional<Schema.Trim>;
|
|
1374
|
+
readonly serviceTier: Schema.optional<Schema.NullOr<Schema.Literals<readonly ["fast", "flex"]>>>;
|
|
1375
|
+
readonly modelOptions: Schema.optional<Schema.Struct<{
|
|
1376
|
+
readonly codex: Schema.optional<Schema.Struct<{
|
|
1377
|
+
readonly reasoningEffort: Schema.optional<Schema.Literals<readonly ["xhigh", "high", "medium", "low"]>>;
|
|
1378
|
+
readonly fastMode: Schema.optional<Schema.Boolean>;
|
|
1379
|
+
}>>;
|
|
1380
|
+
readonly claude: Schema.optional<Schema.Struct<{}>>;
|
|
1381
|
+
}>>;
|
|
1382
|
+
readonly assistantDeliveryMode: Schema.optional<Schema.Literals<readonly ["buffered", "streaming"]>>;
|
|
1383
|
+
readonly runtimeMode: Schema.withDecodingDefault<Schema.Literals<readonly ["approval-required", "full-access"]>>;
|
|
1384
|
+
readonly interactionMode: Schema.withDecodingDefault<Schema.Literals<readonly ["default", "plan"]>>;
|
|
1385
|
+
readonly createdAt: Schema.String;
|
|
1386
|
+
}>;
|
|
1387
|
+
readonly sequence: Schema.Int;
|
|
1388
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
1389
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
1390
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
1391
|
+
readonly occurredAt: Schema.String;
|
|
1392
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1393
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
1394
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1395
|
+
readonly metadata: Schema.Struct<{
|
|
1396
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
1397
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
1398
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
1399
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
1400
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
1401
|
+
}>;
|
|
1402
|
+
}>, Schema.Struct<{
|
|
1403
|
+
readonly type: Schema.Literal<"thread.turn-interrupt-requested">;
|
|
1404
|
+
readonly payload: Schema.Struct<{
|
|
1405
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
1406
|
+
readonly turnId: Schema.optional<Schema.brand<Schema.Trim, "TurnId">>;
|
|
1407
|
+
readonly createdAt: Schema.String;
|
|
1408
|
+
}>;
|
|
1409
|
+
readonly sequence: Schema.Int;
|
|
1410
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
1411
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
1412
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
1413
|
+
readonly occurredAt: Schema.String;
|
|
1414
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1415
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
1416
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1417
|
+
readonly metadata: Schema.Struct<{
|
|
1418
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
1419
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
1420
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
1421
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
1422
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
1423
|
+
}>;
|
|
1424
|
+
}>, Schema.Struct<{
|
|
1425
|
+
readonly type: Schema.Literal<"thread.approval-response-requested">;
|
|
1426
|
+
readonly payload: Schema.Struct<{
|
|
1427
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
1428
|
+
readonly requestId: Schema.brand<Schema.Trim, "ApprovalRequestId">;
|
|
1429
|
+
readonly decision: Schema.Literals<readonly ["accept", "acceptForSession", "decline", "cancel"]>;
|
|
1430
|
+
readonly createdAt: Schema.String;
|
|
1431
|
+
}>;
|
|
1432
|
+
readonly sequence: Schema.Int;
|
|
1433
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
1434
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
1435
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
1436
|
+
readonly occurredAt: Schema.String;
|
|
1437
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1438
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
1439
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1440
|
+
readonly metadata: Schema.Struct<{
|
|
1441
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
1442
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
1443
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
1444
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
1445
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
1446
|
+
}>;
|
|
1447
|
+
}>, Schema.Struct<{
|
|
1448
|
+
readonly type: Schema.Literal<"thread.user-input-response-requested">;
|
|
1449
|
+
readonly payload: Schema.Struct<{
|
|
1450
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
1451
|
+
readonly requestId: Schema.brand<Schema.Trim, "ApprovalRequestId">;
|
|
1452
|
+
readonly answers: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
1453
|
+
readonly createdAt: Schema.String;
|
|
1454
|
+
}>;
|
|
1455
|
+
readonly sequence: Schema.Int;
|
|
1456
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
1457
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
1458
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
1459
|
+
readonly occurredAt: Schema.String;
|
|
1460
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1461
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
1462
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1463
|
+
readonly metadata: Schema.Struct<{
|
|
1464
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
1465
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
1466
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
1467
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
1468
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
1469
|
+
}>;
|
|
1470
|
+
}>, Schema.Struct<{
|
|
1471
|
+
readonly type: Schema.Literal<"thread.checkpoint-revert-requested">;
|
|
1472
|
+
readonly payload: Schema.Struct<{
|
|
1473
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
1474
|
+
readonly turnCount: Schema.Int;
|
|
1475
|
+
readonly createdAt: Schema.String;
|
|
1476
|
+
}>;
|
|
1477
|
+
readonly sequence: Schema.Int;
|
|
1478
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
1479
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
1480
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
1481
|
+
readonly occurredAt: Schema.String;
|
|
1482
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1483
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
1484
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1485
|
+
readonly metadata: Schema.Struct<{
|
|
1486
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
1487
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
1488
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
1489
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
1490
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
1491
|
+
}>;
|
|
1492
|
+
}>, Schema.Struct<{
|
|
1493
|
+
readonly type: Schema.Literal<"thread.reverted">;
|
|
1494
|
+
readonly payload: Schema.Struct<{
|
|
1495
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
1496
|
+
readonly turnCount: Schema.Int;
|
|
1497
|
+
}>;
|
|
1498
|
+
readonly sequence: Schema.Int;
|
|
1499
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
1500
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
1501
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
1502
|
+
readonly occurredAt: Schema.String;
|
|
1503
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1504
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
1505
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1506
|
+
readonly metadata: Schema.Struct<{
|
|
1507
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
1508
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
1509
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
1510
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
1511
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
1512
|
+
}>;
|
|
1513
|
+
}>, Schema.Struct<{
|
|
1514
|
+
readonly type: Schema.Literal<"thread.session-stop-requested">;
|
|
1515
|
+
readonly payload: Schema.Struct<{
|
|
1516
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
1517
|
+
readonly createdAt: Schema.String;
|
|
1518
|
+
}>;
|
|
1519
|
+
readonly sequence: Schema.Int;
|
|
1520
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
1521
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
1522
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
1523
|
+
readonly occurredAt: Schema.String;
|
|
1524
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1525
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
1526
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1527
|
+
readonly metadata: Schema.Struct<{
|
|
1528
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
1529
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
1530
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
1531
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
1532
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
1533
|
+
}>;
|
|
1534
|
+
}>, Schema.Struct<{
|
|
1535
|
+
readonly type: Schema.Literal<"thread.session-set">;
|
|
1536
|
+
readonly payload: Schema.Struct<{
|
|
1537
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
1538
|
+
readonly session: Schema.Struct<{
|
|
1539
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
1540
|
+
readonly status: Schema.Literals<readonly ["idle", "starting", "running", "ready", "interrupted", "stopped", "error"]>;
|
|
1541
|
+
readonly providerName: Schema.NullOr<Schema.Trim>;
|
|
1542
|
+
readonly runtimeMode: Schema.withDecodingDefault<Schema.Literals<readonly ["approval-required", "full-access"]>>;
|
|
1543
|
+
readonly activeTurnId: Schema.NullOr<Schema.brand<Schema.Trim, "TurnId">>;
|
|
1544
|
+
readonly lastError: Schema.NullOr<Schema.Trim>;
|
|
1545
|
+
readonly updatedAt: Schema.String;
|
|
1546
|
+
}>;
|
|
1547
|
+
}>;
|
|
1548
|
+
readonly sequence: Schema.Int;
|
|
1549
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
1550
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
1551
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
1552
|
+
readonly occurredAt: Schema.String;
|
|
1553
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1554
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
1555
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1556
|
+
readonly metadata: Schema.Struct<{
|
|
1557
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
1558
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
1559
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
1560
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
1561
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
1562
|
+
}>;
|
|
1563
|
+
}>, Schema.Struct<{
|
|
1564
|
+
readonly type: Schema.Literal<"thread.proposed-plan-upserted">;
|
|
1565
|
+
readonly payload: Schema.Struct<{
|
|
1566
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
1567
|
+
readonly proposedPlan: Schema.Struct<{
|
|
1568
|
+
readonly id: Schema.Trim;
|
|
1569
|
+
readonly turnId: Schema.NullOr<Schema.brand<Schema.Trim, "TurnId">>;
|
|
1570
|
+
readonly planMarkdown: Schema.Trim;
|
|
1571
|
+
readonly createdAt: Schema.String;
|
|
1572
|
+
readonly updatedAt: Schema.String;
|
|
1573
|
+
}>;
|
|
1574
|
+
}>;
|
|
1575
|
+
readonly sequence: Schema.Int;
|
|
1576
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
1577
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
1578
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
1579
|
+
readonly occurredAt: Schema.String;
|
|
1580
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1581
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
1582
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1583
|
+
readonly metadata: Schema.Struct<{
|
|
1584
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
1585
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
1586
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
1587
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
1588
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
1589
|
+
}>;
|
|
1590
|
+
}>, Schema.Struct<{
|
|
1591
|
+
readonly type: Schema.Literal<"thread.turn-diff-completed">;
|
|
1592
|
+
readonly payload: Schema.Struct<{
|
|
1593
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
1594
|
+
readonly turnId: Schema.brand<Schema.Trim, "TurnId">;
|
|
1595
|
+
readonly checkpointTurnCount: Schema.Int;
|
|
1596
|
+
readonly checkpointRef: Schema.brand<Schema.Trim, "CheckpointRef">;
|
|
1597
|
+
readonly status: Schema.Literals<readonly ["ready", "missing", "error"]>;
|
|
1598
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
1599
|
+
readonly path: Schema.Trim;
|
|
1600
|
+
readonly kind: Schema.Trim;
|
|
1601
|
+
readonly additions: Schema.Int;
|
|
1602
|
+
readonly deletions: Schema.Int;
|
|
1603
|
+
}>>;
|
|
1604
|
+
readonly assistantMessageId: Schema.NullOr<Schema.brand<Schema.Trim, "MessageId">>;
|
|
1605
|
+
readonly completedAt: Schema.String;
|
|
1606
|
+
}>;
|
|
1607
|
+
readonly sequence: Schema.Int;
|
|
1608
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
1609
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
1610
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
1611
|
+
readonly occurredAt: Schema.String;
|
|
1612
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1613
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
1614
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1615
|
+
readonly metadata: Schema.Struct<{
|
|
1616
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
1617
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
1618
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
1619
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
1620
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
1621
|
+
}>;
|
|
1622
|
+
}>, Schema.Struct<{
|
|
1623
|
+
readonly type: Schema.Literal<"thread.activity-appended">;
|
|
1624
|
+
readonly payload: Schema.Struct<{
|
|
1625
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
1626
|
+
readonly activity: Schema.Struct<{
|
|
1627
|
+
readonly id: Schema.brand<Schema.Trim, "EventId">;
|
|
1628
|
+
readonly tone: Schema.Literals<readonly ["info", "tool", "approval", "error"]>;
|
|
1629
|
+
readonly kind: Schema.Trim;
|
|
1630
|
+
readonly summary: Schema.Trim;
|
|
1631
|
+
readonly payload: Schema.Unknown;
|
|
1632
|
+
readonly turnId: Schema.NullOr<Schema.brand<Schema.Trim, "TurnId">>;
|
|
1633
|
+
readonly sequence: Schema.optional<Schema.Int>;
|
|
1634
|
+
readonly createdAt: Schema.String;
|
|
1635
|
+
}>;
|
|
1636
|
+
}>;
|
|
1637
|
+
readonly sequence: Schema.Int;
|
|
1638
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
1639
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
1640
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
1641
|
+
readonly occurredAt: Schema.String;
|
|
1642
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1643
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
1644
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1645
|
+
readonly metadata: Schema.Struct<{
|
|
1646
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
1647
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
1648
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
1649
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
1650
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
1651
|
+
}>;
|
|
1652
|
+
}>]>;
|
|
1653
|
+
export type OrchestrationEvent = typeof OrchestrationEvent.Type;
|
|
1654
|
+
export declare const OrchestrationPersistedEvent: Schema.Union<readonly [Schema.Struct<{
|
|
1655
|
+
readonly eventType: Schema.Literal<"project.created">;
|
|
1656
|
+
readonly payload: Schema.Struct<{
|
|
1657
|
+
readonly projectId: Schema.brand<Schema.Trim, "ProjectId">;
|
|
1658
|
+
readonly title: Schema.Trim;
|
|
1659
|
+
readonly workspaceRoot: Schema.Trim;
|
|
1660
|
+
readonly defaultModel: Schema.NullOr<Schema.Trim>;
|
|
1661
|
+
readonly scripts: Schema.$Array<Schema.Struct<{
|
|
1662
|
+
readonly id: Schema.Trim;
|
|
1663
|
+
readonly name: Schema.Trim;
|
|
1664
|
+
readonly command: Schema.Trim;
|
|
1665
|
+
readonly icon: Schema.Literals<readonly ["play", "test", "lint", "configure", "build", "debug"]>;
|
|
1666
|
+
readonly runOnWorktreeCreate: Schema.Boolean;
|
|
1667
|
+
}>>;
|
|
1668
|
+
readonly createdAt: Schema.String;
|
|
1669
|
+
readonly updatedAt: Schema.String;
|
|
1670
|
+
}>;
|
|
1671
|
+
readonly sequence: Schema.Int;
|
|
1672
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
1673
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
1674
|
+
readonly streamId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
1675
|
+
readonly streamVersion: Schema.Int;
|
|
1676
|
+
readonly occurredAt: Schema.String;
|
|
1677
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1678
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
1679
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1680
|
+
readonly actorKind: Schema.Literals<readonly ["client", "server", "provider"]>;
|
|
1681
|
+
readonly metadata: Schema.Struct<{
|
|
1682
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
1683
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
1684
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
1685
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
1686
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
1687
|
+
}>;
|
|
1688
|
+
}>, Schema.Struct<{
|
|
1689
|
+
readonly eventType: Schema.Literal<"project.meta-updated">;
|
|
1690
|
+
readonly payload: Schema.Struct<{
|
|
1691
|
+
readonly projectId: Schema.brand<Schema.Trim, "ProjectId">;
|
|
1692
|
+
readonly title: Schema.optional<Schema.Trim>;
|
|
1693
|
+
readonly workspaceRoot: Schema.optional<Schema.Trim>;
|
|
1694
|
+
readonly defaultModel: Schema.optional<Schema.NullOr<Schema.Trim>>;
|
|
1695
|
+
readonly scripts: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1696
|
+
readonly id: Schema.Trim;
|
|
1697
|
+
readonly name: Schema.Trim;
|
|
1698
|
+
readonly command: Schema.Trim;
|
|
1699
|
+
readonly icon: Schema.Literals<readonly ["play", "test", "lint", "configure", "build", "debug"]>;
|
|
1700
|
+
readonly runOnWorktreeCreate: Schema.Boolean;
|
|
1701
|
+
}>>>;
|
|
1702
|
+
readonly updatedAt: Schema.String;
|
|
1703
|
+
}>;
|
|
1704
|
+
readonly sequence: Schema.Int;
|
|
1705
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
1706
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
1707
|
+
readonly streamId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
1708
|
+
readonly streamVersion: Schema.Int;
|
|
1709
|
+
readonly occurredAt: Schema.String;
|
|
1710
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1711
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
1712
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1713
|
+
readonly actorKind: Schema.Literals<readonly ["client", "server", "provider"]>;
|
|
1714
|
+
readonly metadata: Schema.Struct<{
|
|
1715
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
1716
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
1717
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
1718
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
1719
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
1720
|
+
}>;
|
|
1721
|
+
}>, Schema.Struct<{
|
|
1722
|
+
readonly eventType: Schema.Literal<"project.deleted">;
|
|
1723
|
+
readonly payload: Schema.Struct<{
|
|
1724
|
+
readonly projectId: Schema.brand<Schema.Trim, "ProjectId">;
|
|
1725
|
+
readonly deletedAt: Schema.String;
|
|
1726
|
+
}>;
|
|
1727
|
+
readonly sequence: Schema.Int;
|
|
1728
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
1729
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
1730
|
+
readonly streamId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
1731
|
+
readonly streamVersion: Schema.Int;
|
|
1732
|
+
readonly occurredAt: Schema.String;
|
|
1733
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1734
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
1735
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1736
|
+
readonly actorKind: Schema.Literals<readonly ["client", "server", "provider"]>;
|
|
1737
|
+
readonly metadata: Schema.Struct<{
|
|
1738
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
1739
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
1740
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
1741
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
1742
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
1743
|
+
}>;
|
|
1744
|
+
}>, Schema.Struct<{
|
|
1745
|
+
readonly eventType: Schema.Literal<"thread.created">;
|
|
1746
|
+
readonly payload: Schema.Struct<{
|
|
1747
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
1748
|
+
readonly projectId: Schema.brand<Schema.Trim, "ProjectId">;
|
|
1749
|
+
readonly title: Schema.Trim;
|
|
1750
|
+
readonly model: Schema.Trim;
|
|
1751
|
+
readonly runtimeMode: Schema.withDecodingDefault<Schema.Literals<readonly ["approval-required", "full-access"]>>;
|
|
1752
|
+
readonly interactionMode: Schema.withDecodingDefault<Schema.Literals<readonly ["default", "plan"]>>;
|
|
1753
|
+
readonly branch: Schema.NullOr<Schema.Trim>;
|
|
1754
|
+
readonly worktreePath: Schema.NullOr<Schema.Trim>;
|
|
1755
|
+
readonly createdAt: Schema.String;
|
|
1756
|
+
readonly updatedAt: Schema.String;
|
|
1757
|
+
}>;
|
|
1758
|
+
readonly sequence: Schema.Int;
|
|
1759
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
1760
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
1761
|
+
readonly streamId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
1762
|
+
readonly streamVersion: Schema.Int;
|
|
1763
|
+
readonly occurredAt: Schema.String;
|
|
1764
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1765
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
1766
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1767
|
+
readonly actorKind: Schema.Literals<readonly ["client", "server", "provider"]>;
|
|
1768
|
+
readonly metadata: Schema.Struct<{
|
|
1769
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
1770
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
1771
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
1772
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
1773
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
1774
|
+
}>;
|
|
1775
|
+
}>, Schema.Struct<{
|
|
1776
|
+
readonly eventType: Schema.Literal<"thread.deleted">;
|
|
1777
|
+
readonly payload: Schema.Struct<{
|
|
1778
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
1779
|
+
readonly deletedAt: Schema.String;
|
|
1780
|
+
}>;
|
|
1781
|
+
readonly sequence: Schema.Int;
|
|
1782
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
1783
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
1784
|
+
readonly streamId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
1785
|
+
readonly streamVersion: Schema.Int;
|
|
1786
|
+
readonly occurredAt: Schema.String;
|
|
1787
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1788
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
1789
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1790
|
+
readonly actorKind: Schema.Literals<readonly ["client", "server", "provider"]>;
|
|
1791
|
+
readonly metadata: Schema.Struct<{
|
|
1792
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
1793
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
1794
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
1795
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
1796
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
1797
|
+
}>;
|
|
1798
|
+
}>, Schema.Struct<{
|
|
1799
|
+
readonly eventType: Schema.Literal<"thread.meta-updated">;
|
|
1800
|
+
readonly payload: Schema.Struct<{
|
|
1801
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
1802
|
+
readonly title: Schema.optional<Schema.Trim>;
|
|
1803
|
+
readonly model: Schema.optional<Schema.Trim>;
|
|
1804
|
+
readonly branch: Schema.optional<Schema.NullOr<Schema.Trim>>;
|
|
1805
|
+
readonly worktreePath: Schema.optional<Schema.NullOr<Schema.Trim>>;
|
|
1806
|
+
readonly updatedAt: Schema.String;
|
|
1807
|
+
}>;
|
|
1808
|
+
readonly sequence: Schema.Int;
|
|
1809
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
1810
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
1811
|
+
readonly streamId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
1812
|
+
readonly streamVersion: Schema.Int;
|
|
1813
|
+
readonly occurredAt: Schema.String;
|
|
1814
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1815
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
1816
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1817
|
+
readonly actorKind: Schema.Literals<readonly ["client", "server", "provider"]>;
|
|
1818
|
+
readonly metadata: Schema.Struct<{
|
|
1819
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
1820
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
1821
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
1822
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
1823
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
1824
|
+
}>;
|
|
1825
|
+
}>, Schema.Struct<{
|
|
1826
|
+
readonly eventType: Schema.Literal<"thread.runtime-mode-set">;
|
|
1827
|
+
readonly payload: Schema.Struct<{
|
|
1828
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
1829
|
+
readonly runtimeMode: Schema.Literals<readonly ["approval-required", "full-access"]>;
|
|
1830
|
+
readonly updatedAt: Schema.String;
|
|
1831
|
+
}>;
|
|
1832
|
+
readonly sequence: Schema.Int;
|
|
1833
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
1834
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
1835
|
+
readonly streamId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
1836
|
+
readonly streamVersion: Schema.Int;
|
|
1837
|
+
readonly occurredAt: Schema.String;
|
|
1838
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1839
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
1840
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1841
|
+
readonly actorKind: Schema.Literals<readonly ["client", "server", "provider"]>;
|
|
1842
|
+
readonly metadata: Schema.Struct<{
|
|
1843
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
1844
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
1845
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
1846
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
1847
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
1848
|
+
}>;
|
|
1849
|
+
}>, Schema.Struct<{
|
|
1850
|
+
readonly eventType: Schema.Literal<"thread.interaction-mode-set">;
|
|
1851
|
+
readonly payload: Schema.Struct<{
|
|
1852
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
1853
|
+
readonly interactionMode: Schema.withDecodingDefault<Schema.Literals<readonly ["default", "plan"]>>;
|
|
1854
|
+
readonly updatedAt: Schema.String;
|
|
1855
|
+
}>;
|
|
1856
|
+
readonly sequence: Schema.Int;
|
|
1857
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
1858
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
1859
|
+
readonly streamId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
1860
|
+
readonly streamVersion: Schema.Int;
|
|
1861
|
+
readonly occurredAt: Schema.String;
|
|
1862
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1863
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
1864
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1865
|
+
readonly actorKind: Schema.Literals<readonly ["client", "server", "provider"]>;
|
|
1866
|
+
readonly metadata: Schema.Struct<{
|
|
1867
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
1868
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
1869
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
1870
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
1871
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
1872
|
+
}>;
|
|
1873
|
+
}>, Schema.Struct<{
|
|
1874
|
+
readonly eventType: Schema.Literal<"thread.message-sent">;
|
|
1875
|
+
readonly payload: Schema.Struct<{
|
|
1876
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
1877
|
+
readonly messageId: Schema.brand<Schema.Trim, "MessageId">;
|
|
1878
|
+
readonly role: Schema.Literals<readonly ["user", "assistant", "system"]>;
|
|
1879
|
+
readonly text: Schema.String;
|
|
1880
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
1881
|
+
readonly type: Schema.Literal<"image">;
|
|
1882
|
+
readonly id: Schema.Trim;
|
|
1883
|
+
readonly name: Schema.Trim;
|
|
1884
|
+
readonly mimeType: Schema.Trim;
|
|
1885
|
+
readonly sizeBytes: Schema.Int;
|
|
1886
|
+
}>]>>>;
|
|
1887
|
+
readonly turnId: Schema.NullOr<Schema.brand<Schema.Trim, "TurnId">>;
|
|
1888
|
+
readonly streaming: Schema.Boolean;
|
|
1889
|
+
readonly createdAt: Schema.String;
|
|
1890
|
+
readonly updatedAt: Schema.String;
|
|
1891
|
+
}>;
|
|
1892
|
+
readonly sequence: Schema.Int;
|
|
1893
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
1894
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
1895
|
+
readonly streamId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
1896
|
+
readonly streamVersion: Schema.Int;
|
|
1897
|
+
readonly occurredAt: Schema.String;
|
|
1898
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1899
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
1900
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1901
|
+
readonly actorKind: Schema.Literals<readonly ["client", "server", "provider"]>;
|
|
1902
|
+
readonly metadata: Schema.Struct<{
|
|
1903
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
1904
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
1905
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
1906
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
1907
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
1908
|
+
}>;
|
|
1909
|
+
}>, Schema.Struct<{
|
|
1910
|
+
readonly eventType: Schema.Literal<"thread.turn-start-requested">;
|
|
1911
|
+
readonly payload: Schema.Struct<{
|
|
1912
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
1913
|
+
readonly messageId: Schema.brand<Schema.Trim, "MessageId">;
|
|
1914
|
+
readonly provider: Schema.optional<Schema.Literals<readonly ["codex", "claude"]>>;
|
|
1915
|
+
readonly model: Schema.optional<Schema.Trim>;
|
|
1916
|
+
readonly serviceTier: Schema.optional<Schema.NullOr<Schema.Literals<readonly ["fast", "flex"]>>>;
|
|
1917
|
+
readonly modelOptions: Schema.optional<Schema.Struct<{
|
|
1918
|
+
readonly codex: Schema.optional<Schema.Struct<{
|
|
1919
|
+
readonly reasoningEffort: Schema.optional<Schema.Literals<readonly ["xhigh", "high", "medium", "low"]>>;
|
|
1920
|
+
readonly fastMode: Schema.optional<Schema.Boolean>;
|
|
1921
|
+
}>>;
|
|
1922
|
+
readonly claude: Schema.optional<Schema.Struct<{}>>;
|
|
1923
|
+
}>>;
|
|
1924
|
+
readonly assistantDeliveryMode: Schema.optional<Schema.Literals<readonly ["buffered", "streaming"]>>;
|
|
1925
|
+
readonly runtimeMode: Schema.withDecodingDefault<Schema.Literals<readonly ["approval-required", "full-access"]>>;
|
|
1926
|
+
readonly interactionMode: Schema.withDecodingDefault<Schema.Literals<readonly ["default", "plan"]>>;
|
|
1927
|
+
readonly createdAt: Schema.String;
|
|
1928
|
+
}>;
|
|
1929
|
+
readonly sequence: Schema.Int;
|
|
1930
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
1931
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
1932
|
+
readonly streamId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
1933
|
+
readonly streamVersion: Schema.Int;
|
|
1934
|
+
readonly occurredAt: Schema.String;
|
|
1935
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1936
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
1937
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1938
|
+
readonly actorKind: Schema.Literals<readonly ["client", "server", "provider"]>;
|
|
1939
|
+
readonly metadata: Schema.Struct<{
|
|
1940
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
1941
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
1942
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
1943
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
1944
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
1945
|
+
}>;
|
|
1946
|
+
}>, Schema.Struct<{
|
|
1947
|
+
readonly eventType: Schema.Literal<"thread.turn-interrupt-requested">;
|
|
1948
|
+
readonly payload: Schema.Struct<{
|
|
1949
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
1950
|
+
readonly turnId: Schema.optional<Schema.brand<Schema.Trim, "TurnId">>;
|
|
1951
|
+
readonly createdAt: Schema.String;
|
|
1952
|
+
}>;
|
|
1953
|
+
readonly sequence: Schema.Int;
|
|
1954
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
1955
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
1956
|
+
readonly streamId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
1957
|
+
readonly streamVersion: Schema.Int;
|
|
1958
|
+
readonly occurredAt: Schema.String;
|
|
1959
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1960
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
1961
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1962
|
+
readonly actorKind: Schema.Literals<readonly ["client", "server", "provider"]>;
|
|
1963
|
+
readonly metadata: Schema.Struct<{
|
|
1964
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
1965
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
1966
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
1967
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
1968
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
1969
|
+
}>;
|
|
1970
|
+
}>, Schema.Struct<{
|
|
1971
|
+
readonly eventType: Schema.Literal<"thread.approval-response-requested">;
|
|
1972
|
+
readonly payload: Schema.Struct<{
|
|
1973
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
1974
|
+
readonly requestId: Schema.brand<Schema.Trim, "ApprovalRequestId">;
|
|
1975
|
+
readonly decision: Schema.Literals<readonly ["accept", "acceptForSession", "decline", "cancel"]>;
|
|
1976
|
+
readonly createdAt: Schema.String;
|
|
1977
|
+
}>;
|
|
1978
|
+
readonly sequence: Schema.Int;
|
|
1979
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
1980
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
1981
|
+
readonly streamId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
1982
|
+
readonly streamVersion: Schema.Int;
|
|
1983
|
+
readonly occurredAt: Schema.String;
|
|
1984
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1985
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
1986
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
1987
|
+
readonly actorKind: Schema.Literals<readonly ["client", "server", "provider"]>;
|
|
1988
|
+
readonly metadata: Schema.Struct<{
|
|
1989
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
1990
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
1991
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
1992
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
1993
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
1994
|
+
}>;
|
|
1995
|
+
}>, Schema.Struct<{
|
|
1996
|
+
readonly eventType: Schema.Literal<"thread.user-input-response-requested">;
|
|
1997
|
+
readonly payload: Schema.Struct<{
|
|
1998
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
1999
|
+
readonly requestId: Schema.brand<Schema.Trim, "ApprovalRequestId">;
|
|
2000
|
+
readonly answers: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
2001
|
+
readonly createdAt: Schema.String;
|
|
2002
|
+
}>;
|
|
2003
|
+
readonly sequence: Schema.Int;
|
|
2004
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
2005
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
2006
|
+
readonly streamId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
2007
|
+
readonly streamVersion: Schema.Int;
|
|
2008
|
+
readonly occurredAt: Schema.String;
|
|
2009
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2010
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
2011
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2012
|
+
readonly actorKind: Schema.Literals<readonly ["client", "server", "provider"]>;
|
|
2013
|
+
readonly metadata: Schema.Struct<{
|
|
2014
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
2015
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
2016
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
2017
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
2018
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
2019
|
+
}>;
|
|
2020
|
+
}>, Schema.Struct<{
|
|
2021
|
+
readonly eventType: Schema.Literal<"thread.checkpoint-revert-requested">;
|
|
2022
|
+
readonly payload: Schema.Struct<{
|
|
2023
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
2024
|
+
readonly turnCount: Schema.Int;
|
|
2025
|
+
readonly createdAt: Schema.String;
|
|
2026
|
+
}>;
|
|
2027
|
+
readonly sequence: Schema.Int;
|
|
2028
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
2029
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
2030
|
+
readonly streamId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
2031
|
+
readonly streamVersion: Schema.Int;
|
|
2032
|
+
readonly occurredAt: Schema.String;
|
|
2033
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2034
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
2035
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2036
|
+
readonly actorKind: Schema.Literals<readonly ["client", "server", "provider"]>;
|
|
2037
|
+
readonly metadata: Schema.Struct<{
|
|
2038
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
2039
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
2040
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
2041
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
2042
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
2043
|
+
}>;
|
|
2044
|
+
}>, Schema.Struct<{
|
|
2045
|
+
readonly eventType: Schema.Literal<"thread.reverted">;
|
|
2046
|
+
readonly payload: Schema.Struct<{
|
|
2047
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
2048
|
+
readonly turnCount: Schema.Int;
|
|
2049
|
+
}>;
|
|
2050
|
+
readonly sequence: Schema.Int;
|
|
2051
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
2052
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
2053
|
+
readonly streamId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
2054
|
+
readonly streamVersion: Schema.Int;
|
|
2055
|
+
readonly occurredAt: Schema.String;
|
|
2056
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2057
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
2058
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2059
|
+
readonly actorKind: Schema.Literals<readonly ["client", "server", "provider"]>;
|
|
2060
|
+
readonly metadata: Schema.Struct<{
|
|
2061
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
2062
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
2063
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
2064
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
2065
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
2066
|
+
}>;
|
|
2067
|
+
}>, Schema.Struct<{
|
|
2068
|
+
readonly eventType: Schema.Literal<"thread.session-stop-requested">;
|
|
2069
|
+
readonly payload: Schema.Struct<{
|
|
2070
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
2071
|
+
readonly createdAt: Schema.String;
|
|
2072
|
+
}>;
|
|
2073
|
+
readonly sequence: Schema.Int;
|
|
2074
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
2075
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
2076
|
+
readonly streamId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
2077
|
+
readonly streamVersion: Schema.Int;
|
|
2078
|
+
readonly occurredAt: Schema.String;
|
|
2079
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2080
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
2081
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2082
|
+
readonly actorKind: Schema.Literals<readonly ["client", "server", "provider"]>;
|
|
2083
|
+
readonly metadata: Schema.Struct<{
|
|
2084
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
2085
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
2086
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
2087
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
2088
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
2089
|
+
}>;
|
|
2090
|
+
}>, Schema.Struct<{
|
|
2091
|
+
readonly eventType: Schema.Literal<"thread.session-set">;
|
|
2092
|
+
readonly payload: Schema.Struct<{
|
|
2093
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
2094
|
+
readonly session: Schema.Struct<{
|
|
2095
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
2096
|
+
readonly status: Schema.Literals<readonly ["idle", "starting", "running", "ready", "interrupted", "stopped", "error"]>;
|
|
2097
|
+
readonly providerName: Schema.NullOr<Schema.Trim>;
|
|
2098
|
+
readonly runtimeMode: Schema.withDecodingDefault<Schema.Literals<readonly ["approval-required", "full-access"]>>;
|
|
2099
|
+
readonly activeTurnId: Schema.NullOr<Schema.brand<Schema.Trim, "TurnId">>;
|
|
2100
|
+
readonly lastError: Schema.NullOr<Schema.Trim>;
|
|
2101
|
+
readonly updatedAt: Schema.String;
|
|
2102
|
+
}>;
|
|
2103
|
+
}>;
|
|
2104
|
+
readonly sequence: Schema.Int;
|
|
2105
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
2106
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
2107
|
+
readonly streamId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
2108
|
+
readonly streamVersion: Schema.Int;
|
|
2109
|
+
readonly occurredAt: Schema.String;
|
|
2110
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2111
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
2112
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2113
|
+
readonly actorKind: Schema.Literals<readonly ["client", "server", "provider"]>;
|
|
2114
|
+
readonly metadata: Schema.Struct<{
|
|
2115
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
2116
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
2117
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
2118
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
2119
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
2120
|
+
}>;
|
|
2121
|
+
}>, Schema.Struct<{
|
|
2122
|
+
readonly eventType: Schema.Literal<"thread.proposed-plan-upserted">;
|
|
2123
|
+
readonly payload: Schema.Struct<{
|
|
2124
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
2125
|
+
readonly proposedPlan: Schema.Struct<{
|
|
2126
|
+
readonly id: Schema.Trim;
|
|
2127
|
+
readonly turnId: Schema.NullOr<Schema.brand<Schema.Trim, "TurnId">>;
|
|
2128
|
+
readonly planMarkdown: Schema.Trim;
|
|
2129
|
+
readonly createdAt: Schema.String;
|
|
2130
|
+
readonly updatedAt: Schema.String;
|
|
2131
|
+
}>;
|
|
2132
|
+
}>;
|
|
2133
|
+
readonly sequence: Schema.Int;
|
|
2134
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
2135
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
2136
|
+
readonly streamId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
2137
|
+
readonly streamVersion: Schema.Int;
|
|
2138
|
+
readonly occurredAt: Schema.String;
|
|
2139
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2140
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
2141
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2142
|
+
readonly actorKind: Schema.Literals<readonly ["client", "server", "provider"]>;
|
|
2143
|
+
readonly metadata: Schema.Struct<{
|
|
2144
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
2145
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
2146
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
2147
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
2148
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
2149
|
+
}>;
|
|
2150
|
+
}>, Schema.Struct<{
|
|
2151
|
+
readonly eventType: Schema.Literal<"thread.turn-diff-completed">;
|
|
2152
|
+
readonly payload: Schema.Struct<{
|
|
2153
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
2154
|
+
readonly turnId: Schema.brand<Schema.Trim, "TurnId">;
|
|
2155
|
+
readonly checkpointTurnCount: Schema.Int;
|
|
2156
|
+
readonly checkpointRef: Schema.brand<Schema.Trim, "CheckpointRef">;
|
|
2157
|
+
readonly status: Schema.Literals<readonly ["ready", "missing", "error"]>;
|
|
2158
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
2159
|
+
readonly path: Schema.Trim;
|
|
2160
|
+
readonly kind: Schema.Trim;
|
|
2161
|
+
readonly additions: Schema.Int;
|
|
2162
|
+
readonly deletions: Schema.Int;
|
|
2163
|
+
}>>;
|
|
2164
|
+
readonly assistantMessageId: Schema.NullOr<Schema.brand<Schema.Trim, "MessageId">>;
|
|
2165
|
+
readonly completedAt: Schema.String;
|
|
2166
|
+
}>;
|
|
2167
|
+
readonly sequence: Schema.Int;
|
|
2168
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
2169
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
2170
|
+
readonly streamId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
2171
|
+
readonly streamVersion: Schema.Int;
|
|
2172
|
+
readonly occurredAt: Schema.String;
|
|
2173
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2174
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
2175
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2176
|
+
readonly actorKind: Schema.Literals<readonly ["client", "server", "provider"]>;
|
|
2177
|
+
readonly metadata: Schema.Struct<{
|
|
2178
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
2179
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
2180
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
2181
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
2182
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
2183
|
+
}>;
|
|
2184
|
+
}>, Schema.Struct<{
|
|
2185
|
+
readonly eventType: Schema.Literal<"thread.activity-appended">;
|
|
2186
|
+
readonly payload: Schema.Struct<{
|
|
2187
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
2188
|
+
readonly activity: Schema.Struct<{
|
|
2189
|
+
readonly id: Schema.brand<Schema.Trim, "EventId">;
|
|
2190
|
+
readonly tone: Schema.Literals<readonly ["info", "tool", "approval", "error"]>;
|
|
2191
|
+
readonly kind: Schema.Trim;
|
|
2192
|
+
readonly summary: Schema.Trim;
|
|
2193
|
+
readonly payload: Schema.Unknown;
|
|
2194
|
+
readonly turnId: Schema.NullOr<Schema.brand<Schema.Trim, "TurnId">>;
|
|
2195
|
+
readonly sequence: Schema.optional<Schema.Int>;
|
|
2196
|
+
readonly createdAt: Schema.String;
|
|
2197
|
+
}>;
|
|
2198
|
+
}>;
|
|
2199
|
+
readonly sequence: Schema.Int;
|
|
2200
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
2201
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
2202
|
+
readonly streamId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
2203
|
+
readonly streamVersion: Schema.Int;
|
|
2204
|
+
readonly occurredAt: Schema.String;
|
|
2205
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2206
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
2207
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2208
|
+
readonly actorKind: Schema.Literals<readonly ["client", "server", "provider"]>;
|
|
2209
|
+
readonly metadata: Schema.Struct<{
|
|
2210
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
2211
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
2212
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
2213
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
2214
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
2215
|
+
}>;
|
|
2216
|
+
}>]>;
|
|
2217
|
+
export type OrchestrationPersistedEvent = typeof OrchestrationPersistedEvent.Type;
|
|
2218
|
+
export declare const OrchestrationCommandReceiptStatus: Schema.Literals<readonly ["accepted", "rejected"]>;
|
|
2219
|
+
export type OrchestrationCommandReceiptStatus = typeof OrchestrationCommandReceiptStatus.Type;
|
|
2220
|
+
export declare const TurnCountRange: Schema.Struct<{
|
|
2221
|
+
readonly fromTurnCount: Schema.Int;
|
|
2222
|
+
readonly toTurnCount: Schema.Int;
|
|
2223
|
+
}>;
|
|
2224
|
+
export declare const ThreadTurnDiff: Schema.Struct<{
|
|
2225
|
+
readonly fromTurnCount: Schema.Int;
|
|
2226
|
+
readonly toTurnCount: Schema.Int;
|
|
2227
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
2228
|
+
readonly diff: Schema.String;
|
|
2229
|
+
}>;
|
|
2230
|
+
export declare const ProviderSessionRuntimeStatus: Schema.Literals<readonly ["starting", "running", "stopped", "error"]>;
|
|
2231
|
+
export type ProviderSessionRuntimeStatus = typeof ProviderSessionRuntimeStatus.Type;
|
|
2232
|
+
declare const ProjectionThreadTurnStatus: Schema.Literals<readonly ["running", "completed", "interrupted", "error"]>;
|
|
2233
|
+
export type ProjectionThreadTurnStatus = typeof ProjectionThreadTurnStatus.Type;
|
|
2234
|
+
declare const ProjectionCheckpointRow: Schema.Struct<{
|
|
2235
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
2236
|
+
readonly turnId: Schema.brand<Schema.Trim, "TurnId">;
|
|
2237
|
+
readonly checkpointTurnCount: Schema.Int;
|
|
2238
|
+
readonly checkpointRef: Schema.brand<Schema.Trim, "CheckpointRef">;
|
|
2239
|
+
readonly status: Schema.Literals<readonly ["ready", "missing", "error"]>;
|
|
2240
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
2241
|
+
readonly path: Schema.Trim;
|
|
2242
|
+
readonly kind: Schema.Trim;
|
|
2243
|
+
readonly additions: Schema.Int;
|
|
2244
|
+
readonly deletions: Schema.Int;
|
|
2245
|
+
}>>;
|
|
2246
|
+
readonly assistantMessageId: Schema.NullOr<Schema.brand<Schema.Trim, "MessageId">>;
|
|
2247
|
+
readonly completedAt: Schema.String;
|
|
2248
|
+
}>;
|
|
2249
|
+
export type ProjectionCheckpointRow = typeof ProjectionCheckpointRow.Type;
|
|
2250
|
+
export declare const ProjectionPendingApprovalStatus: Schema.Literals<readonly ["pending", "resolved"]>;
|
|
2251
|
+
export type ProjectionPendingApprovalStatus = typeof ProjectionPendingApprovalStatus.Type;
|
|
2252
|
+
export declare const ProjectionPendingApprovalDecision: Schema.NullOr<Schema.Literals<readonly ["accept", "acceptForSession", "decline", "cancel"]>>;
|
|
2253
|
+
export type ProjectionPendingApprovalDecision = typeof ProjectionPendingApprovalDecision.Type;
|
|
2254
|
+
export declare const DispatchResult: Schema.Struct<{
|
|
2255
|
+
readonly sequence: Schema.Int;
|
|
2256
|
+
}>;
|
|
2257
|
+
export type DispatchResult = typeof DispatchResult.Type;
|
|
2258
|
+
export declare const OrchestrationGetSnapshotInput: Schema.Struct<{}>;
|
|
2259
|
+
export type OrchestrationGetSnapshotInput = typeof OrchestrationGetSnapshotInput.Type;
|
|
2260
|
+
declare const OrchestrationGetSnapshotResult: Schema.Struct<{
|
|
2261
|
+
readonly snapshotSequence: Schema.Int;
|
|
2262
|
+
readonly projects: Schema.$Array<Schema.Struct<{
|
|
2263
|
+
readonly id: Schema.brand<Schema.Trim, "ProjectId">;
|
|
2264
|
+
readonly title: Schema.Trim;
|
|
2265
|
+
readonly workspaceRoot: Schema.Trim;
|
|
2266
|
+
readonly defaultModel: Schema.NullOr<Schema.Trim>;
|
|
2267
|
+
readonly scripts: Schema.$Array<Schema.Struct<{
|
|
2268
|
+
readonly id: Schema.Trim;
|
|
2269
|
+
readonly name: Schema.Trim;
|
|
2270
|
+
readonly command: Schema.Trim;
|
|
2271
|
+
readonly icon: Schema.Literals<readonly ["play", "test", "lint", "configure", "build", "debug"]>;
|
|
2272
|
+
readonly runOnWorktreeCreate: Schema.Boolean;
|
|
2273
|
+
}>>;
|
|
2274
|
+
readonly createdAt: Schema.String;
|
|
2275
|
+
readonly updatedAt: Schema.String;
|
|
2276
|
+
readonly deletedAt: Schema.NullOr<Schema.String>;
|
|
2277
|
+
}>>;
|
|
2278
|
+
readonly threads: Schema.$Array<Schema.Struct<{
|
|
2279
|
+
readonly id: Schema.brand<Schema.Trim, "ThreadId">;
|
|
2280
|
+
readonly projectId: Schema.brand<Schema.Trim, "ProjectId">;
|
|
2281
|
+
readonly title: Schema.Trim;
|
|
2282
|
+
readonly model: Schema.Trim;
|
|
2283
|
+
readonly runtimeMode: Schema.Literals<readonly ["approval-required", "full-access"]>;
|
|
2284
|
+
readonly interactionMode: Schema.withDecodingDefault<Schema.Literals<readonly ["default", "plan"]>>;
|
|
2285
|
+
readonly branch: Schema.NullOr<Schema.Trim>;
|
|
2286
|
+
readonly worktreePath: Schema.NullOr<Schema.Trim>;
|
|
2287
|
+
readonly latestTurn: Schema.NullOr<Schema.Struct<{
|
|
2288
|
+
readonly turnId: Schema.brand<Schema.Trim, "TurnId">;
|
|
2289
|
+
readonly state: Schema.Literals<readonly ["running", "interrupted", "completed", "error"]>;
|
|
2290
|
+
readonly requestedAt: Schema.String;
|
|
2291
|
+
readonly startedAt: Schema.NullOr<Schema.String>;
|
|
2292
|
+
readonly completedAt: Schema.NullOr<Schema.String>;
|
|
2293
|
+
readonly assistantMessageId: Schema.NullOr<Schema.brand<Schema.Trim, "MessageId">>;
|
|
2294
|
+
}>>;
|
|
2295
|
+
readonly createdAt: Schema.String;
|
|
2296
|
+
readonly updatedAt: Schema.String;
|
|
2297
|
+
readonly deletedAt: Schema.NullOr<Schema.String>;
|
|
2298
|
+
readonly messages: Schema.$Array<Schema.Struct<{
|
|
2299
|
+
readonly id: Schema.brand<Schema.Trim, "MessageId">;
|
|
2300
|
+
readonly role: Schema.Literals<readonly ["user", "assistant", "system"]>;
|
|
2301
|
+
readonly text: Schema.String;
|
|
2302
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2303
|
+
readonly type: Schema.Literal<"image">;
|
|
2304
|
+
readonly id: Schema.Trim;
|
|
2305
|
+
readonly name: Schema.Trim;
|
|
2306
|
+
readonly mimeType: Schema.Trim;
|
|
2307
|
+
readonly sizeBytes: Schema.Int;
|
|
2308
|
+
}>]>>>;
|
|
2309
|
+
readonly turnId: Schema.NullOr<Schema.brand<Schema.Trim, "TurnId">>;
|
|
2310
|
+
readonly streaming: Schema.Boolean;
|
|
2311
|
+
readonly createdAt: Schema.String;
|
|
2312
|
+
readonly updatedAt: Schema.String;
|
|
2313
|
+
}>>;
|
|
2314
|
+
readonly proposedPlans: Schema.withDecodingDefault<Schema.$Array<Schema.Struct<{
|
|
2315
|
+
readonly id: Schema.Trim;
|
|
2316
|
+
readonly turnId: Schema.NullOr<Schema.brand<Schema.Trim, "TurnId">>;
|
|
2317
|
+
readonly planMarkdown: Schema.Trim;
|
|
2318
|
+
readonly createdAt: Schema.String;
|
|
2319
|
+
readonly updatedAt: Schema.String;
|
|
2320
|
+
}>>>;
|
|
2321
|
+
readonly activities: Schema.$Array<Schema.Struct<{
|
|
2322
|
+
readonly id: Schema.brand<Schema.Trim, "EventId">;
|
|
2323
|
+
readonly tone: Schema.Literals<readonly ["info", "tool", "approval", "error"]>;
|
|
2324
|
+
readonly kind: Schema.Trim;
|
|
2325
|
+
readonly summary: Schema.Trim;
|
|
2326
|
+
readonly payload: Schema.Unknown;
|
|
2327
|
+
readonly turnId: Schema.NullOr<Schema.brand<Schema.Trim, "TurnId">>;
|
|
2328
|
+
readonly sequence: Schema.optional<Schema.Int>;
|
|
2329
|
+
readonly createdAt: Schema.String;
|
|
2330
|
+
}>>;
|
|
2331
|
+
readonly checkpoints: Schema.$Array<Schema.Struct<{
|
|
2332
|
+
readonly turnId: Schema.brand<Schema.Trim, "TurnId">;
|
|
2333
|
+
readonly checkpointTurnCount: Schema.Int;
|
|
2334
|
+
readonly checkpointRef: Schema.brand<Schema.Trim, "CheckpointRef">;
|
|
2335
|
+
readonly status: Schema.Literals<readonly ["ready", "missing", "error"]>;
|
|
2336
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
2337
|
+
readonly path: Schema.Trim;
|
|
2338
|
+
readonly kind: Schema.Trim;
|
|
2339
|
+
readonly additions: Schema.Int;
|
|
2340
|
+
readonly deletions: Schema.Int;
|
|
2341
|
+
}>>;
|
|
2342
|
+
readonly assistantMessageId: Schema.NullOr<Schema.brand<Schema.Trim, "MessageId">>;
|
|
2343
|
+
readonly completedAt: Schema.String;
|
|
2344
|
+
}>>;
|
|
2345
|
+
readonly session: Schema.NullOr<Schema.Struct<{
|
|
2346
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
2347
|
+
readonly status: Schema.Literals<readonly ["idle", "starting", "running", "ready", "interrupted", "stopped", "error"]>;
|
|
2348
|
+
readonly providerName: Schema.NullOr<Schema.Trim>;
|
|
2349
|
+
readonly runtimeMode: Schema.withDecodingDefault<Schema.Literals<readonly ["approval-required", "full-access"]>>;
|
|
2350
|
+
readonly activeTurnId: Schema.NullOr<Schema.brand<Schema.Trim, "TurnId">>;
|
|
2351
|
+
readonly lastError: Schema.NullOr<Schema.Trim>;
|
|
2352
|
+
readonly updatedAt: Schema.String;
|
|
2353
|
+
}>>;
|
|
2354
|
+
}>>;
|
|
2355
|
+
readonly updatedAt: Schema.String;
|
|
2356
|
+
}>;
|
|
2357
|
+
export type OrchestrationGetSnapshotResult = typeof OrchestrationGetSnapshotResult.Type;
|
|
2358
|
+
export declare const OrchestrationGetTurnDiffInput: Schema.Struct<{
|
|
2359
|
+
readonly fromTurnCount: Schema.Int;
|
|
2360
|
+
readonly toTurnCount: Schema.Int;
|
|
2361
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
2362
|
+
}>;
|
|
2363
|
+
export type OrchestrationGetTurnDiffInput = typeof OrchestrationGetTurnDiffInput.Type;
|
|
2364
|
+
export declare const OrchestrationGetTurnDiffResult: Schema.Struct<{
|
|
2365
|
+
readonly fromTurnCount: Schema.Int;
|
|
2366
|
+
readonly toTurnCount: Schema.Int;
|
|
2367
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
2368
|
+
readonly diff: Schema.String;
|
|
2369
|
+
}>;
|
|
2370
|
+
export type OrchestrationGetTurnDiffResult = typeof OrchestrationGetTurnDiffResult.Type;
|
|
2371
|
+
export declare const OrchestrationGetFullThreadDiffInput: Schema.Struct<{
|
|
2372
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
2373
|
+
readonly toTurnCount: Schema.Int;
|
|
2374
|
+
}>;
|
|
2375
|
+
export type OrchestrationGetFullThreadDiffInput = typeof OrchestrationGetFullThreadDiffInput.Type;
|
|
2376
|
+
export declare const OrchestrationGetFullThreadDiffResult: Schema.Struct<{
|
|
2377
|
+
readonly fromTurnCount: Schema.Int;
|
|
2378
|
+
readonly toTurnCount: Schema.Int;
|
|
2379
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
2380
|
+
readonly diff: Schema.String;
|
|
2381
|
+
}>;
|
|
2382
|
+
export type OrchestrationGetFullThreadDiffResult = typeof OrchestrationGetFullThreadDiffResult.Type;
|
|
2383
|
+
export declare const OrchestrationReplayEventsInput: Schema.Struct<{
|
|
2384
|
+
readonly fromSequenceExclusive: Schema.Int;
|
|
2385
|
+
}>;
|
|
2386
|
+
export type OrchestrationReplayEventsInput = typeof OrchestrationReplayEventsInput.Type;
|
|
2387
|
+
declare const OrchestrationReplayEventsResult: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2388
|
+
readonly type: Schema.Literal<"project.created">;
|
|
2389
|
+
readonly payload: Schema.Struct<{
|
|
2390
|
+
readonly projectId: Schema.brand<Schema.Trim, "ProjectId">;
|
|
2391
|
+
readonly title: Schema.Trim;
|
|
2392
|
+
readonly workspaceRoot: Schema.Trim;
|
|
2393
|
+
readonly defaultModel: Schema.NullOr<Schema.Trim>;
|
|
2394
|
+
readonly scripts: Schema.$Array<Schema.Struct<{
|
|
2395
|
+
readonly id: Schema.Trim;
|
|
2396
|
+
readonly name: Schema.Trim;
|
|
2397
|
+
readonly command: Schema.Trim;
|
|
2398
|
+
readonly icon: Schema.Literals<readonly ["play", "test", "lint", "configure", "build", "debug"]>;
|
|
2399
|
+
readonly runOnWorktreeCreate: Schema.Boolean;
|
|
2400
|
+
}>>;
|
|
2401
|
+
readonly createdAt: Schema.String;
|
|
2402
|
+
readonly updatedAt: Schema.String;
|
|
2403
|
+
}>;
|
|
2404
|
+
readonly sequence: Schema.Int;
|
|
2405
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
2406
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
2407
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
2408
|
+
readonly occurredAt: Schema.String;
|
|
2409
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2410
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
2411
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2412
|
+
readonly metadata: Schema.Struct<{
|
|
2413
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
2414
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
2415
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
2416
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
2417
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
2418
|
+
}>;
|
|
2419
|
+
}>, Schema.Struct<{
|
|
2420
|
+
readonly type: Schema.Literal<"project.meta-updated">;
|
|
2421
|
+
readonly payload: Schema.Struct<{
|
|
2422
|
+
readonly projectId: Schema.brand<Schema.Trim, "ProjectId">;
|
|
2423
|
+
readonly title: Schema.optional<Schema.Trim>;
|
|
2424
|
+
readonly workspaceRoot: Schema.optional<Schema.Trim>;
|
|
2425
|
+
readonly defaultModel: Schema.optional<Schema.NullOr<Schema.Trim>>;
|
|
2426
|
+
readonly scripts: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2427
|
+
readonly id: Schema.Trim;
|
|
2428
|
+
readonly name: Schema.Trim;
|
|
2429
|
+
readonly command: Schema.Trim;
|
|
2430
|
+
readonly icon: Schema.Literals<readonly ["play", "test", "lint", "configure", "build", "debug"]>;
|
|
2431
|
+
readonly runOnWorktreeCreate: Schema.Boolean;
|
|
2432
|
+
}>>>;
|
|
2433
|
+
readonly updatedAt: Schema.String;
|
|
2434
|
+
}>;
|
|
2435
|
+
readonly sequence: Schema.Int;
|
|
2436
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
2437
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
2438
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
2439
|
+
readonly occurredAt: Schema.String;
|
|
2440
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2441
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
2442
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2443
|
+
readonly metadata: Schema.Struct<{
|
|
2444
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
2445
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
2446
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
2447
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
2448
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
2449
|
+
}>;
|
|
2450
|
+
}>, Schema.Struct<{
|
|
2451
|
+
readonly type: Schema.Literal<"project.deleted">;
|
|
2452
|
+
readonly payload: Schema.Struct<{
|
|
2453
|
+
readonly projectId: Schema.brand<Schema.Trim, "ProjectId">;
|
|
2454
|
+
readonly deletedAt: Schema.String;
|
|
2455
|
+
}>;
|
|
2456
|
+
readonly sequence: Schema.Int;
|
|
2457
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
2458
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
2459
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
2460
|
+
readonly occurredAt: Schema.String;
|
|
2461
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2462
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
2463
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2464
|
+
readonly metadata: Schema.Struct<{
|
|
2465
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
2466
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
2467
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
2468
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
2469
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
2470
|
+
}>;
|
|
2471
|
+
}>, Schema.Struct<{
|
|
2472
|
+
readonly type: Schema.Literal<"thread.created">;
|
|
2473
|
+
readonly payload: Schema.Struct<{
|
|
2474
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
2475
|
+
readonly projectId: Schema.brand<Schema.Trim, "ProjectId">;
|
|
2476
|
+
readonly title: Schema.Trim;
|
|
2477
|
+
readonly model: Schema.Trim;
|
|
2478
|
+
readonly runtimeMode: Schema.withDecodingDefault<Schema.Literals<readonly ["approval-required", "full-access"]>>;
|
|
2479
|
+
readonly interactionMode: Schema.withDecodingDefault<Schema.Literals<readonly ["default", "plan"]>>;
|
|
2480
|
+
readonly branch: Schema.NullOr<Schema.Trim>;
|
|
2481
|
+
readonly worktreePath: Schema.NullOr<Schema.Trim>;
|
|
2482
|
+
readonly createdAt: Schema.String;
|
|
2483
|
+
readonly updatedAt: Schema.String;
|
|
2484
|
+
}>;
|
|
2485
|
+
readonly sequence: Schema.Int;
|
|
2486
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
2487
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
2488
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
2489
|
+
readonly occurredAt: Schema.String;
|
|
2490
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2491
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
2492
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2493
|
+
readonly metadata: Schema.Struct<{
|
|
2494
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
2495
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
2496
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
2497
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
2498
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
2499
|
+
}>;
|
|
2500
|
+
}>, Schema.Struct<{
|
|
2501
|
+
readonly type: Schema.Literal<"thread.deleted">;
|
|
2502
|
+
readonly payload: Schema.Struct<{
|
|
2503
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
2504
|
+
readonly deletedAt: Schema.String;
|
|
2505
|
+
}>;
|
|
2506
|
+
readonly sequence: Schema.Int;
|
|
2507
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
2508
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
2509
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
2510
|
+
readonly occurredAt: Schema.String;
|
|
2511
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2512
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
2513
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2514
|
+
readonly metadata: Schema.Struct<{
|
|
2515
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
2516
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
2517
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
2518
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
2519
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
2520
|
+
}>;
|
|
2521
|
+
}>, Schema.Struct<{
|
|
2522
|
+
readonly type: Schema.Literal<"thread.meta-updated">;
|
|
2523
|
+
readonly payload: Schema.Struct<{
|
|
2524
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
2525
|
+
readonly title: Schema.optional<Schema.Trim>;
|
|
2526
|
+
readonly model: Schema.optional<Schema.Trim>;
|
|
2527
|
+
readonly branch: Schema.optional<Schema.NullOr<Schema.Trim>>;
|
|
2528
|
+
readonly worktreePath: Schema.optional<Schema.NullOr<Schema.Trim>>;
|
|
2529
|
+
readonly updatedAt: Schema.String;
|
|
2530
|
+
}>;
|
|
2531
|
+
readonly sequence: Schema.Int;
|
|
2532
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
2533
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
2534
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
2535
|
+
readonly occurredAt: Schema.String;
|
|
2536
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2537
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
2538
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2539
|
+
readonly metadata: Schema.Struct<{
|
|
2540
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
2541
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
2542
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
2543
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
2544
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
2545
|
+
}>;
|
|
2546
|
+
}>, Schema.Struct<{
|
|
2547
|
+
readonly type: Schema.Literal<"thread.runtime-mode-set">;
|
|
2548
|
+
readonly payload: Schema.Struct<{
|
|
2549
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
2550
|
+
readonly runtimeMode: Schema.Literals<readonly ["approval-required", "full-access"]>;
|
|
2551
|
+
readonly updatedAt: Schema.String;
|
|
2552
|
+
}>;
|
|
2553
|
+
readonly sequence: Schema.Int;
|
|
2554
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
2555
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
2556
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
2557
|
+
readonly occurredAt: Schema.String;
|
|
2558
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2559
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
2560
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2561
|
+
readonly metadata: Schema.Struct<{
|
|
2562
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
2563
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
2564
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
2565
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
2566
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
2567
|
+
}>;
|
|
2568
|
+
}>, Schema.Struct<{
|
|
2569
|
+
readonly type: Schema.Literal<"thread.interaction-mode-set">;
|
|
2570
|
+
readonly payload: Schema.Struct<{
|
|
2571
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
2572
|
+
readonly interactionMode: Schema.withDecodingDefault<Schema.Literals<readonly ["default", "plan"]>>;
|
|
2573
|
+
readonly updatedAt: Schema.String;
|
|
2574
|
+
}>;
|
|
2575
|
+
readonly sequence: Schema.Int;
|
|
2576
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
2577
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
2578
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
2579
|
+
readonly occurredAt: Schema.String;
|
|
2580
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2581
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
2582
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2583
|
+
readonly metadata: Schema.Struct<{
|
|
2584
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
2585
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
2586
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
2587
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
2588
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
2589
|
+
}>;
|
|
2590
|
+
}>, Schema.Struct<{
|
|
2591
|
+
readonly type: Schema.Literal<"thread.message-sent">;
|
|
2592
|
+
readonly payload: Schema.Struct<{
|
|
2593
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
2594
|
+
readonly messageId: Schema.brand<Schema.Trim, "MessageId">;
|
|
2595
|
+
readonly role: Schema.Literals<readonly ["user", "assistant", "system"]>;
|
|
2596
|
+
readonly text: Schema.String;
|
|
2597
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2598
|
+
readonly type: Schema.Literal<"image">;
|
|
2599
|
+
readonly id: Schema.Trim;
|
|
2600
|
+
readonly name: Schema.Trim;
|
|
2601
|
+
readonly mimeType: Schema.Trim;
|
|
2602
|
+
readonly sizeBytes: Schema.Int;
|
|
2603
|
+
}>]>>>;
|
|
2604
|
+
readonly turnId: Schema.NullOr<Schema.brand<Schema.Trim, "TurnId">>;
|
|
2605
|
+
readonly streaming: Schema.Boolean;
|
|
2606
|
+
readonly createdAt: Schema.String;
|
|
2607
|
+
readonly updatedAt: Schema.String;
|
|
2608
|
+
}>;
|
|
2609
|
+
readonly sequence: Schema.Int;
|
|
2610
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
2611
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
2612
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
2613
|
+
readonly occurredAt: Schema.String;
|
|
2614
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2615
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
2616
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2617
|
+
readonly metadata: Schema.Struct<{
|
|
2618
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
2619
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
2620
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
2621
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
2622
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
2623
|
+
}>;
|
|
2624
|
+
}>, Schema.Struct<{
|
|
2625
|
+
readonly type: Schema.Literal<"thread.turn-start-requested">;
|
|
2626
|
+
readonly payload: Schema.Struct<{
|
|
2627
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
2628
|
+
readonly messageId: Schema.brand<Schema.Trim, "MessageId">;
|
|
2629
|
+
readonly provider: Schema.optional<Schema.Literals<readonly ["codex", "claude"]>>;
|
|
2630
|
+
readonly model: Schema.optional<Schema.Trim>;
|
|
2631
|
+
readonly serviceTier: Schema.optional<Schema.NullOr<Schema.Literals<readonly ["fast", "flex"]>>>;
|
|
2632
|
+
readonly modelOptions: Schema.optional<Schema.Struct<{
|
|
2633
|
+
readonly codex: Schema.optional<Schema.Struct<{
|
|
2634
|
+
readonly reasoningEffort: Schema.optional<Schema.Literals<readonly ["xhigh", "high", "medium", "low"]>>;
|
|
2635
|
+
readonly fastMode: Schema.optional<Schema.Boolean>;
|
|
2636
|
+
}>>;
|
|
2637
|
+
readonly claude: Schema.optional<Schema.Struct<{}>>;
|
|
2638
|
+
}>>;
|
|
2639
|
+
readonly assistantDeliveryMode: Schema.optional<Schema.Literals<readonly ["buffered", "streaming"]>>;
|
|
2640
|
+
readonly runtimeMode: Schema.withDecodingDefault<Schema.Literals<readonly ["approval-required", "full-access"]>>;
|
|
2641
|
+
readonly interactionMode: Schema.withDecodingDefault<Schema.Literals<readonly ["default", "plan"]>>;
|
|
2642
|
+
readonly createdAt: Schema.String;
|
|
2643
|
+
}>;
|
|
2644
|
+
readonly sequence: Schema.Int;
|
|
2645
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
2646
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
2647
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
2648
|
+
readonly occurredAt: Schema.String;
|
|
2649
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2650
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
2651
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2652
|
+
readonly metadata: Schema.Struct<{
|
|
2653
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
2654
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
2655
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
2656
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
2657
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
2658
|
+
}>;
|
|
2659
|
+
}>, Schema.Struct<{
|
|
2660
|
+
readonly type: Schema.Literal<"thread.turn-interrupt-requested">;
|
|
2661
|
+
readonly payload: Schema.Struct<{
|
|
2662
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
2663
|
+
readonly turnId: Schema.optional<Schema.brand<Schema.Trim, "TurnId">>;
|
|
2664
|
+
readonly createdAt: Schema.String;
|
|
2665
|
+
}>;
|
|
2666
|
+
readonly sequence: Schema.Int;
|
|
2667
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
2668
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
2669
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
2670
|
+
readonly occurredAt: Schema.String;
|
|
2671
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2672
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
2673
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2674
|
+
readonly metadata: Schema.Struct<{
|
|
2675
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
2676
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
2677
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
2678
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
2679
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
2680
|
+
}>;
|
|
2681
|
+
}>, Schema.Struct<{
|
|
2682
|
+
readonly type: Schema.Literal<"thread.approval-response-requested">;
|
|
2683
|
+
readonly payload: Schema.Struct<{
|
|
2684
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
2685
|
+
readonly requestId: Schema.brand<Schema.Trim, "ApprovalRequestId">;
|
|
2686
|
+
readonly decision: Schema.Literals<readonly ["accept", "acceptForSession", "decline", "cancel"]>;
|
|
2687
|
+
readonly createdAt: Schema.String;
|
|
2688
|
+
}>;
|
|
2689
|
+
readonly sequence: Schema.Int;
|
|
2690
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
2691
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
2692
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
2693
|
+
readonly occurredAt: Schema.String;
|
|
2694
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2695
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
2696
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2697
|
+
readonly metadata: Schema.Struct<{
|
|
2698
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
2699
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
2700
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
2701
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
2702
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
2703
|
+
}>;
|
|
2704
|
+
}>, Schema.Struct<{
|
|
2705
|
+
readonly type: Schema.Literal<"thread.user-input-response-requested">;
|
|
2706
|
+
readonly payload: Schema.Struct<{
|
|
2707
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
2708
|
+
readonly requestId: Schema.brand<Schema.Trim, "ApprovalRequestId">;
|
|
2709
|
+
readonly answers: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
2710
|
+
readonly createdAt: Schema.String;
|
|
2711
|
+
}>;
|
|
2712
|
+
readonly sequence: Schema.Int;
|
|
2713
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
2714
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
2715
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
2716
|
+
readonly occurredAt: Schema.String;
|
|
2717
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2718
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
2719
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2720
|
+
readonly metadata: Schema.Struct<{
|
|
2721
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
2722
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
2723
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
2724
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
2725
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
2726
|
+
}>;
|
|
2727
|
+
}>, Schema.Struct<{
|
|
2728
|
+
readonly type: Schema.Literal<"thread.checkpoint-revert-requested">;
|
|
2729
|
+
readonly payload: Schema.Struct<{
|
|
2730
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
2731
|
+
readonly turnCount: Schema.Int;
|
|
2732
|
+
readonly createdAt: Schema.String;
|
|
2733
|
+
}>;
|
|
2734
|
+
readonly sequence: Schema.Int;
|
|
2735
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
2736
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
2737
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
2738
|
+
readonly occurredAt: Schema.String;
|
|
2739
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2740
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
2741
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2742
|
+
readonly metadata: Schema.Struct<{
|
|
2743
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
2744
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
2745
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
2746
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
2747
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
2748
|
+
}>;
|
|
2749
|
+
}>, Schema.Struct<{
|
|
2750
|
+
readonly type: Schema.Literal<"thread.reverted">;
|
|
2751
|
+
readonly payload: Schema.Struct<{
|
|
2752
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
2753
|
+
readonly turnCount: Schema.Int;
|
|
2754
|
+
}>;
|
|
2755
|
+
readonly sequence: Schema.Int;
|
|
2756
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
2757
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
2758
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
2759
|
+
readonly occurredAt: Schema.String;
|
|
2760
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2761
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
2762
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2763
|
+
readonly metadata: Schema.Struct<{
|
|
2764
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
2765
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
2766
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
2767
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
2768
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
2769
|
+
}>;
|
|
2770
|
+
}>, Schema.Struct<{
|
|
2771
|
+
readonly type: Schema.Literal<"thread.session-stop-requested">;
|
|
2772
|
+
readonly payload: Schema.Struct<{
|
|
2773
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
2774
|
+
readonly createdAt: Schema.String;
|
|
2775
|
+
}>;
|
|
2776
|
+
readonly sequence: Schema.Int;
|
|
2777
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
2778
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
2779
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
2780
|
+
readonly occurredAt: Schema.String;
|
|
2781
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2782
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
2783
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2784
|
+
readonly metadata: Schema.Struct<{
|
|
2785
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
2786
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
2787
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
2788
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
2789
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
2790
|
+
}>;
|
|
2791
|
+
}>, Schema.Struct<{
|
|
2792
|
+
readonly type: Schema.Literal<"thread.session-set">;
|
|
2793
|
+
readonly payload: Schema.Struct<{
|
|
2794
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
2795
|
+
readonly session: Schema.Struct<{
|
|
2796
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
2797
|
+
readonly status: Schema.Literals<readonly ["idle", "starting", "running", "ready", "interrupted", "stopped", "error"]>;
|
|
2798
|
+
readonly providerName: Schema.NullOr<Schema.Trim>;
|
|
2799
|
+
readonly runtimeMode: Schema.withDecodingDefault<Schema.Literals<readonly ["approval-required", "full-access"]>>;
|
|
2800
|
+
readonly activeTurnId: Schema.NullOr<Schema.brand<Schema.Trim, "TurnId">>;
|
|
2801
|
+
readonly lastError: Schema.NullOr<Schema.Trim>;
|
|
2802
|
+
readonly updatedAt: Schema.String;
|
|
2803
|
+
}>;
|
|
2804
|
+
}>;
|
|
2805
|
+
readonly sequence: Schema.Int;
|
|
2806
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
2807
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
2808
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
2809
|
+
readonly occurredAt: Schema.String;
|
|
2810
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2811
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
2812
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2813
|
+
readonly metadata: Schema.Struct<{
|
|
2814
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
2815
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
2816
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
2817
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
2818
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
2819
|
+
}>;
|
|
2820
|
+
}>, Schema.Struct<{
|
|
2821
|
+
readonly type: Schema.Literal<"thread.proposed-plan-upserted">;
|
|
2822
|
+
readonly payload: Schema.Struct<{
|
|
2823
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
2824
|
+
readonly proposedPlan: Schema.Struct<{
|
|
2825
|
+
readonly id: Schema.Trim;
|
|
2826
|
+
readonly turnId: Schema.NullOr<Schema.brand<Schema.Trim, "TurnId">>;
|
|
2827
|
+
readonly planMarkdown: Schema.Trim;
|
|
2828
|
+
readonly createdAt: Schema.String;
|
|
2829
|
+
readonly updatedAt: Schema.String;
|
|
2830
|
+
}>;
|
|
2831
|
+
}>;
|
|
2832
|
+
readonly sequence: Schema.Int;
|
|
2833
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
2834
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
2835
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
2836
|
+
readonly occurredAt: Schema.String;
|
|
2837
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2838
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
2839
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2840
|
+
readonly metadata: Schema.Struct<{
|
|
2841
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
2842
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
2843
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
2844
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
2845
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
2846
|
+
}>;
|
|
2847
|
+
}>, Schema.Struct<{
|
|
2848
|
+
readonly type: Schema.Literal<"thread.turn-diff-completed">;
|
|
2849
|
+
readonly payload: Schema.Struct<{
|
|
2850
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
2851
|
+
readonly turnId: Schema.brand<Schema.Trim, "TurnId">;
|
|
2852
|
+
readonly checkpointTurnCount: Schema.Int;
|
|
2853
|
+
readonly checkpointRef: Schema.brand<Schema.Trim, "CheckpointRef">;
|
|
2854
|
+
readonly status: Schema.Literals<readonly ["ready", "missing", "error"]>;
|
|
2855
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
2856
|
+
readonly path: Schema.Trim;
|
|
2857
|
+
readonly kind: Schema.Trim;
|
|
2858
|
+
readonly additions: Schema.Int;
|
|
2859
|
+
readonly deletions: Schema.Int;
|
|
2860
|
+
}>>;
|
|
2861
|
+
readonly assistantMessageId: Schema.NullOr<Schema.brand<Schema.Trim, "MessageId">>;
|
|
2862
|
+
readonly completedAt: Schema.String;
|
|
2863
|
+
}>;
|
|
2864
|
+
readonly sequence: Schema.Int;
|
|
2865
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
2866
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
2867
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
2868
|
+
readonly occurredAt: Schema.String;
|
|
2869
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2870
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
2871
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2872
|
+
readonly metadata: Schema.Struct<{
|
|
2873
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
2874
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
2875
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
2876
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
2877
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
2878
|
+
}>;
|
|
2879
|
+
}>, Schema.Struct<{
|
|
2880
|
+
readonly type: Schema.Literal<"thread.activity-appended">;
|
|
2881
|
+
readonly payload: Schema.Struct<{
|
|
2882
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
2883
|
+
readonly activity: Schema.Struct<{
|
|
2884
|
+
readonly id: Schema.brand<Schema.Trim, "EventId">;
|
|
2885
|
+
readonly tone: Schema.Literals<readonly ["info", "tool", "approval", "error"]>;
|
|
2886
|
+
readonly kind: Schema.Trim;
|
|
2887
|
+
readonly summary: Schema.Trim;
|
|
2888
|
+
readonly payload: Schema.Unknown;
|
|
2889
|
+
readonly turnId: Schema.NullOr<Schema.brand<Schema.Trim, "TurnId">>;
|
|
2890
|
+
readonly sequence: Schema.optional<Schema.Int>;
|
|
2891
|
+
readonly createdAt: Schema.String;
|
|
2892
|
+
}>;
|
|
2893
|
+
}>;
|
|
2894
|
+
readonly sequence: Schema.Int;
|
|
2895
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
2896
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
2897
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
2898
|
+
readonly occurredAt: Schema.String;
|
|
2899
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2900
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
2901
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
2902
|
+
readonly metadata: Schema.Struct<{
|
|
2903
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
2904
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
2905
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
2906
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
2907
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
2908
|
+
}>;
|
|
2909
|
+
}>]>>;
|
|
2910
|
+
export type OrchestrationReplayEventsResult = typeof OrchestrationReplayEventsResult.Type;
|
|
2911
|
+
export declare const OrchestrationRpcSchemas: {
|
|
2912
|
+
readonly getSnapshot: {
|
|
2913
|
+
readonly input: Schema.Struct<{}>;
|
|
2914
|
+
readonly output: Schema.Struct<{
|
|
2915
|
+
readonly snapshotSequence: Schema.Int;
|
|
2916
|
+
readonly projects: Schema.$Array<Schema.Struct<{
|
|
2917
|
+
readonly id: Schema.brand<Schema.Trim, "ProjectId">;
|
|
2918
|
+
readonly title: Schema.Trim;
|
|
2919
|
+
readonly workspaceRoot: Schema.Trim;
|
|
2920
|
+
readonly defaultModel: Schema.NullOr<Schema.Trim>;
|
|
2921
|
+
readonly scripts: Schema.$Array<Schema.Struct<{
|
|
2922
|
+
readonly id: Schema.Trim;
|
|
2923
|
+
readonly name: Schema.Trim;
|
|
2924
|
+
readonly command: Schema.Trim;
|
|
2925
|
+
readonly icon: Schema.Literals<readonly ["play", "test", "lint", "configure", "build", "debug"]>;
|
|
2926
|
+
readonly runOnWorktreeCreate: Schema.Boolean;
|
|
2927
|
+
}>>;
|
|
2928
|
+
readonly createdAt: Schema.String;
|
|
2929
|
+
readonly updatedAt: Schema.String;
|
|
2930
|
+
readonly deletedAt: Schema.NullOr<Schema.String>;
|
|
2931
|
+
}>>;
|
|
2932
|
+
readonly threads: Schema.$Array<Schema.Struct<{
|
|
2933
|
+
readonly id: Schema.brand<Schema.Trim, "ThreadId">;
|
|
2934
|
+
readonly projectId: Schema.brand<Schema.Trim, "ProjectId">;
|
|
2935
|
+
readonly title: Schema.Trim;
|
|
2936
|
+
readonly model: Schema.Trim;
|
|
2937
|
+
readonly runtimeMode: Schema.Literals<readonly ["approval-required", "full-access"]>;
|
|
2938
|
+
readonly interactionMode: Schema.withDecodingDefault<Schema.Literals<readonly ["default", "plan"]>>;
|
|
2939
|
+
readonly branch: Schema.NullOr<Schema.Trim>;
|
|
2940
|
+
readonly worktreePath: Schema.NullOr<Schema.Trim>;
|
|
2941
|
+
readonly latestTurn: Schema.NullOr<Schema.Struct<{
|
|
2942
|
+
readonly turnId: Schema.brand<Schema.Trim, "TurnId">;
|
|
2943
|
+
readonly state: Schema.Literals<readonly ["running", "interrupted", "completed", "error"]>;
|
|
2944
|
+
readonly requestedAt: Schema.String;
|
|
2945
|
+
readonly startedAt: Schema.NullOr<Schema.String>;
|
|
2946
|
+
readonly completedAt: Schema.NullOr<Schema.String>;
|
|
2947
|
+
readonly assistantMessageId: Schema.NullOr<Schema.brand<Schema.Trim, "MessageId">>;
|
|
2948
|
+
}>>;
|
|
2949
|
+
readonly createdAt: Schema.String;
|
|
2950
|
+
readonly updatedAt: Schema.String;
|
|
2951
|
+
readonly deletedAt: Schema.NullOr<Schema.String>;
|
|
2952
|
+
readonly messages: Schema.$Array<Schema.Struct<{
|
|
2953
|
+
readonly id: Schema.brand<Schema.Trim, "MessageId">;
|
|
2954
|
+
readonly role: Schema.Literals<readonly ["user", "assistant", "system"]>;
|
|
2955
|
+
readonly text: Schema.String;
|
|
2956
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2957
|
+
readonly type: Schema.Literal<"image">;
|
|
2958
|
+
readonly id: Schema.Trim;
|
|
2959
|
+
readonly name: Schema.Trim;
|
|
2960
|
+
readonly mimeType: Schema.Trim;
|
|
2961
|
+
readonly sizeBytes: Schema.Int;
|
|
2962
|
+
}>]>>>;
|
|
2963
|
+
readonly turnId: Schema.NullOr<Schema.brand<Schema.Trim, "TurnId">>;
|
|
2964
|
+
readonly streaming: Schema.Boolean;
|
|
2965
|
+
readonly createdAt: Schema.String;
|
|
2966
|
+
readonly updatedAt: Schema.String;
|
|
2967
|
+
}>>;
|
|
2968
|
+
readonly proposedPlans: Schema.withDecodingDefault<Schema.$Array<Schema.Struct<{
|
|
2969
|
+
readonly id: Schema.Trim;
|
|
2970
|
+
readonly turnId: Schema.NullOr<Schema.brand<Schema.Trim, "TurnId">>;
|
|
2971
|
+
readonly planMarkdown: Schema.Trim;
|
|
2972
|
+
readonly createdAt: Schema.String;
|
|
2973
|
+
readonly updatedAt: Schema.String;
|
|
2974
|
+
}>>>;
|
|
2975
|
+
readonly activities: Schema.$Array<Schema.Struct<{
|
|
2976
|
+
readonly id: Schema.brand<Schema.Trim, "EventId">;
|
|
2977
|
+
readonly tone: Schema.Literals<readonly ["info", "tool", "approval", "error"]>;
|
|
2978
|
+
readonly kind: Schema.Trim;
|
|
2979
|
+
readonly summary: Schema.Trim;
|
|
2980
|
+
readonly payload: Schema.Unknown;
|
|
2981
|
+
readonly turnId: Schema.NullOr<Schema.brand<Schema.Trim, "TurnId">>;
|
|
2982
|
+
readonly sequence: Schema.optional<Schema.Int>;
|
|
2983
|
+
readonly createdAt: Schema.String;
|
|
2984
|
+
}>>;
|
|
2985
|
+
readonly checkpoints: Schema.$Array<Schema.Struct<{
|
|
2986
|
+
readonly turnId: Schema.brand<Schema.Trim, "TurnId">;
|
|
2987
|
+
readonly checkpointTurnCount: Schema.Int;
|
|
2988
|
+
readonly checkpointRef: Schema.brand<Schema.Trim, "CheckpointRef">;
|
|
2989
|
+
readonly status: Schema.Literals<readonly ["ready", "missing", "error"]>;
|
|
2990
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
2991
|
+
readonly path: Schema.Trim;
|
|
2992
|
+
readonly kind: Schema.Trim;
|
|
2993
|
+
readonly additions: Schema.Int;
|
|
2994
|
+
readonly deletions: Schema.Int;
|
|
2995
|
+
}>>;
|
|
2996
|
+
readonly assistantMessageId: Schema.NullOr<Schema.brand<Schema.Trim, "MessageId">>;
|
|
2997
|
+
readonly completedAt: Schema.String;
|
|
2998
|
+
}>>;
|
|
2999
|
+
readonly session: Schema.NullOr<Schema.Struct<{
|
|
3000
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
3001
|
+
readonly status: Schema.Literals<readonly ["idle", "starting", "running", "ready", "interrupted", "stopped", "error"]>;
|
|
3002
|
+
readonly providerName: Schema.NullOr<Schema.Trim>;
|
|
3003
|
+
readonly runtimeMode: Schema.withDecodingDefault<Schema.Literals<readonly ["approval-required", "full-access"]>>;
|
|
3004
|
+
readonly activeTurnId: Schema.NullOr<Schema.brand<Schema.Trim, "TurnId">>;
|
|
3005
|
+
readonly lastError: Schema.NullOr<Schema.Trim>;
|
|
3006
|
+
readonly updatedAt: Schema.String;
|
|
3007
|
+
}>>;
|
|
3008
|
+
}>>;
|
|
3009
|
+
readonly updatedAt: Schema.String;
|
|
3010
|
+
}>;
|
|
3011
|
+
};
|
|
3012
|
+
readonly dispatchCommand: {
|
|
3013
|
+
readonly input: Schema.Union<readonly [Schema.Struct<{
|
|
3014
|
+
readonly type: Schema.Literal<"project.create">;
|
|
3015
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
3016
|
+
readonly projectId: Schema.brand<Schema.Trim, "ProjectId">;
|
|
3017
|
+
readonly title: Schema.Trim;
|
|
3018
|
+
readonly workspaceRoot: Schema.Trim;
|
|
3019
|
+
readonly defaultModel: Schema.optional<Schema.Trim>;
|
|
3020
|
+
readonly createdAt: Schema.String;
|
|
3021
|
+
}>, Schema.Struct<{
|
|
3022
|
+
readonly type: Schema.Literal<"project.meta.update">;
|
|
3023
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
3024
|
+
readonly projectId: Schema.brand<Schema.Trim, "ProjectId">;
|
|
3025
|
+
readonly title: Schema.optional<Schema.Trim>;
|
|
3026
|
+
readonly workspaceRoot: Schema.optional<Schema.Trim>;
|
|
3027
|
+
readonly defaultModel: Schema.optional<Schema.Trim>;
|
|
3028
|
+
readonly scripts: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
3029
|
+
readonly id: Schema.Trim;
|
|
3030
|
+
readonly name: Schema.Trim;
|
|
3031
|
+
readonly command: Schema.Trim;
|
|
3032
|
+
readonly icon: Schema.Literals<readonly ["play", "test", "lint", "configure", "build", "debug"]>;
|
|
3033
|
+
readonly runOnWorktreeCreate: Schema.Boolean;
|
|
3034
|
+
}>>>;
|
|
3035
|
+
}>, Schema.Struct<{
|
|
3036
|
+
readonly type: Schema.Literal<"project.delete">;
|
|
3037
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
3038
|
+
readonly projectId: Schema.brand<Schema.Trim, "ProjectId">;
|
|
3039
|
+
}>, Schema.Struct<{
|
|
3040
|
+
readonly type: Schema.Literal<"thread.create">;
|
|
3041
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
3042
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
3043
|
+
readonly projectId: Schema.brand<Schema.Trim, "ProjectId">;
|
|
3044
|
+
readonly title: Schema.Trim;
|
|
3045
|
+
readonly model: Schema.Trim;
|
|
3046
|
+
readonly runtimeMode: Schema.Literals<readonly ["approval-required", "full-access"]>;
|
|
3047
|
+
readonly interactionMode: Schema.withDecodingDefault<Schema.Literals<readonly ["default", "plan"]>>;
|
|
3048
|
+
readonly branch: Schema.NullOr<Schema.Trim>;
|
|
3049
|
+
readonly worktreePath: Schema.NullOr<Schema.Trim>;
|
|
3050
|
+
readonly createdAt: Schema.String;
|
|
3051
|
+
}>, Schema.Struct<{
|
|
3052
|
+
readonly type: Schema.Literal<"thread.delete">;
|
|
3053
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
3054
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
3055
|
+
}>, Schema.Struct<{
|
|
3056
|
+
readonly type: Schema.Literal<"thread.meta.update">;
|
|
3057
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
3058
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
3059
|
+
readonly title: Schema.optional<Schema.Trim>;
|
|
3060
|
+
readonly model: Schema.optional<Schema.Trim>;
|
|
3061
|
+
readonly branch: Schema.optional<Schema.NullOr<Schema.Trim>>;
|
|
3062
|
+
readonly worktreePath: Schema.optional<Schema.NullOr<Schema.Trim>>;
|
|
3063
|
+
}>, Schema.Struct<{
|
|
3064
|
+
readonly type: Schema.Literal<"thread.runtime-mode.set">;
|
|
3065
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
3066
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
3067
|
+
readonly runtimeMode: Schema.Literals<readonly ["approval-required", "full-access"]>;
|
|
3068
|
+
readonly createdAt: Schema.String;
|
|
3069
|
+
}>, Schema.Struct<{
|
|
3070
|
+
readonly type: Schema.Literal<"thread.interaction-mode.set">;
|
|
3071
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
3072
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
3073
|
+
readonly interactionMode: Schema.Literals<readonly ["default", "plan"]>;
|
|
3074
|
+
readonly createdAt: Schema.String;
|
|
3075
|
+
}>, Schema.Struct<{
|
|
3076
|
+
readonly type: Schema.Literal<"thread.turn.start">;
|
|
3077
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
3078
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
3079
|
+
readonly message: Schema.Struct<{
|
|
3080
|
+
readonly messageId: Schema.brand<Schema.Trim, "MessageId">;
|
|
3081
|
+
readonly role: Schema.Literal<"user">;
|
|
3082
|
+
readonly text: Schema.String;
|
|
3083
|
+
readonly attachments: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
3084
|
+
readonly type: Schema.Literal<"image">;
|
|
3085
|
+
readonly name: Schema.Trim;
|
|
3086
|
+
readonly mimeType: Schema.Trim;
|
|
3087
|
+
readonly sizeBytes: Schema.Int;
|
|
3088
|
+
readonly dataUrl: Schema.Trim;
|
|
3089
|
+
}>]>>;
|
|
3090
|
+
}>;
|
|
3091
|
+
readonly provider: Schema.optional<Schema.Literals<readonly ["codex", "claude"]>>;
|
|
3092
|
+
readonly model: Schema.optional<Schema.Trim>;
|
|
3093
|
+
readonly serviceTier: Schema.optional<Schema.NullOr<Schema.Literals<readonly ["fast", "flex"]>>>;
|
|
3094
|
+
readonly modelOptions: Schema.optional<Schema.Struct<{
|
|
3095
|
+
readonly codex: Schema.optional<Schema.Struct<{
|
|
3096
|
+
readonly reasoningEffort: Schema.optional<Schema.Literals<readonly ["xhigh", "high", "medium", "low"]>>;
|
|
3097
|
+
readonly fastMode: Schema.optional<Schema.Boolean>;
|
|
3098
|
+
}>>;
|
|
3099
|
+
readonly claude: Schema.optional<Schema.Struct<{}>>;
|
|
3100
|
+
}>>;
|
|
3101
|
+
readonly assistantDeliveryMode: Schema.optional<Schema.Literals<readonly ["buffered", "streaming"]>>;
|
|
3102
|
+
readonly runtimeMode: Schema.Literals<readonly ["approval-required", "full-access"]>;
|
|
3103
|
+
readonly interactionMode: Schema.Literals<readonly ["default", "plan"]>;
|
|
3104
|
+
readonly createdAt: Schema.String;
|
|
3105
|
+
}>, Schema.Struct<{
|
|
3106
|
+
readonly type: Schema.Literal<"thread.turn.interrupt">;
|
|
3107
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
3108
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
3109
|
+
readonly turnId: Schema.optional<Schema.brand<Schema.Trim, "TurnId">>;
|
|
3110
|
+
readonly createdAt: Schema.String;
|
|
3111
|
+
}>, Schema.Struct<{
|
|
3112
|
+
readonly type: Schema.Literal<"thread.approval.respond">;
|
|
3113
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
3114
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
3115
|
+
readonly requestId: Schema.brand<Schema.Trim, "ApprovalRequestId">;
|
|
3116
|
+
readonly decision: Schema.Literals<readonly ["accept", "acceptForSession", "decline", "cancel"]>;
|
|
3117
|
+
readonly createdAt: Schema.String;
|
|
3118
|
+
}>, Schema.Struct<{
|
|
3119
|
+
readonly type: Schema.Literal<"thread.user-input.respond">;
|
|
3120
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
3121
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
3122
|
+
readonly requestId: Schema.brand<Schema.Trim, "ApprovalRequestId">;
|
|
3123
|
+
readonly answers: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
3124
|
+
readonly createdAt: Schema.String;
|
|
3125
|
+
}>, Schema.Struct<{
|
|
3126
|
+
readonly type: Schema.Literal<"thread.checkpoint.revert">;
|
|
3127
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
3128
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
3129
|
+
readonly turnCount: Schema.Int;
|
|
3130
|
+
readonly createdAt: Schema.String;
|
|
3131
|
+
}>, Schema.Struct<{
|
|
3132
|
+
readonly type: Schema.Literal<"thread.session.stop">;
|
|
3133
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
3134
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
3135
|
+
readonly createdAt: Schema.String;
|
|
3136
|
+
}>]>;
|
|
3137
|
+
readonly output: Schema.Struct<{
|
|
3138
|
+
readonly sequence: Schema.Int;
|
|
3139
|
+
}>;
|
|
3140
|
+
};
|
|
3141
|
+
readonly getTurnDiff: {
|
|
3142
|
+
readonly input: Schema.Struct<{
|
|
3143
|
+
readonly fromTurnCount: Schema.Int;
|
|
3144
|
+
readonly toTurnCount: Schema.Int;
|
|
3145
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
3146
|
+
}>;
|
|
3147
|
+
readonly output: Schema.Struct<{
|
|
3148
|
+
readonly fromTurnCount: Schema.Int;
|
|
3149
|
+
readonly toTurnCount: Schema.Int;
|
|
3150
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
3151
|
+
readonly diff: Schema.String;
|
|
3152
|
+
}>;
|
|
3153
|
+
};
|
|
3154
|
+
readonly getFullThreadDiff: {
|
|
3155
|
+
readonly input: Schema.Struct<{
|
|
3156
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
3157
|
+
readonly toTurnCount: Schema.Int;
|
|
3158
|
+
}>;
|
|
3159
|
+
readonly output: Schema.Struct<{
|
|
3160
|
+
readonly fromTurnCount: Schema.Int;
|
|
3161
|
+
readonly toTurnCount: Schema.Int;
|
|
3162
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
3163
|
+
readonly diff: Schema.String;
|
|
3164
|
+
}>;
|
|
3165
|
+
};
|
|
3166
|
+
readonly replayEvents: {
|
|
3167
|
+
readonly input: Schema.Struct<{
|
|
3168
|
+
readonly fromSequenceExclusive: Schema.Int;
|
|
3169
|
+
}>;
|
|
3170
|
+
readonly output: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
3171
|
+
readonly type: Schema.Literal<"project.created">;
|
|
3172
|
+
readonly payload: Schema.Struct<{
|
|
3173
|
+
readonly projectId: Schema.brand<Schema.Trim, "ProjectId">;
|
|
3174
|
+
readonly title: Schema.Trim;
|
|
3175
|
+
readonly workspaceRoot: Schema.Trim;
|
|
3176
|
+
readonly defaultModel: Schema.NullOr<Schema.Trim>;
|
|
3177
|
+
readonly scripts: Schema.$Array<Schema.Struct<{
|
|
3178
|
+
readonly id: Schema.Trim;
|
|
3179
|
+
readonly name: Schema.Trim;
|
|
3180
|
+
readonly command: Schema.Trim;
|
|
3181
|
+
readonly icon: Schema.Literals<readonly ["play", "test", "lint", "configure", "build", "debug"]>;
|
|
3182
|
+
readonly runOnWorktreeCreate: Schema.Boolean;
|
|
3183
|
+
}>>;
|
|
3184
|
+
readonly createdAt: Schema.String;
|
|
3185
|
+
readonly updatedAt: Schema.String;
|
|
3186
|
+
}>;
|
|
3187
|
+
readonly sequence: Schema.Int;
|
|
3188
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
3189
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
3190
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
3191
|
+
readonly occurredAt: Schema.String;
|
|
3192
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
3193
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
3194
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
3195
|
+
readonly metadata: Schema.Struct<{
|
|
3196
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
3197
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
3198
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
3199
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
3200
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
3201
|
+
}>;
|
|
3202
|
+
}>, Schema.Struct<{
|
|
3203
|
+
readonly type: Schema.Literal<"project.meta-updated">;
|
|
3204
|
+
readonly payload: Schema.Struct<{
|
|
3205
|
+
readonly projectId: Schema.brand<Schema.Trim, "ProjectId">;
|
|
3206
|
+
readonly title: Schema.optional<Schema.Trim>;
|
|
3207
|
+
readonly workspaceRoot: Schema.optional<Schema.Trim>;
|
|
3208
|
+
readonly defaultModel: Schema.optional<Schema.NullOr<Schema.Trim>>;
|
|
3209
|
+
readonly scripts: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
3210
|
+
readonly id: Schema.Trim;
|
|
3211
|
+
readonly name: Schema.Trim;
|
|
3212
|
+
readonly command: Schema.Trim;
|
|
3213
|
+
readonly icon: Schema.Literals<readonly ["play", "test", "lint", "configure", "build", "debug"]>;
|
|
3214
|
+
readonly runOnWorktreeCreate: Schema.Boolean;
|
|
3215
|
+
}>>>;
|
|
3216
|
+
readonly updatedAt: Schema.String;
|
|
3217
|
+
}>;
|
|
3218
|
+
readonly sequence: Schema.Int;
|
|
3219
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
3220
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
3221
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
3222
|
+
readonly occurredAt: Schema.String;
|
|
3223
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
3224
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
3225
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
3226
|
+
readonly metadata: Schema.Struct<{
|
|
3227
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
3228
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
3229
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
3230
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
3231
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
3232
|
+
}>;
|
|
3233
|
+
}>, Schema.Struct<{
|
|
3234
|
+
readonly type: Schema.Literal<"project.deleted">;
|
|
3235
|
+
readonly payload: Schema.Struct<{
|
|
3236
|
+
readonly projectId: Schema.brand<Schema.Trim, "ProjectId">;
|
|
3237
|
+
readonly deletedAt: Schema.String;
|
|
3238
|
+
}>;
|
|
3239
|
+
readonly sequence: Schema.Int;
|
|
3240
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
3241
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
3242
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
3243
|
+
readonly occurredAt: Schema.String;
|
|
3244
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
3245
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
3246
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
3247
|
+
readonly metadata: Schema.Struct<{
|
|
3248
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
3249
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
3250
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
3251
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
3252
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
3253
|
+
}>;
|
|
3254
|
+
}>, Schema.Struct<{
|
|
3255
|
+
readonly type: Schema.Literal<"thread.created">;
|
|
3256
|
+
readonly payload: Schema.Struct<{
|
|
3257
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
3258
|
+
readonly projectId: Schema.brand<Schema.Trim, "ProjectId">;
|
|
3259
|
+
readonly title: Schema.Trim;
|
|
3260
|
+
readonly model: Schema.Trim;
|
|
3261
|
+
readonly runtimeMode: Schema.withDecodingDefault<Schema.Literals<readonly ["approval-required", "full-access"]>>;
|
|
3262
|
+
readonly interactionMode: Schema.withDecodingDefault<Schema.Literals<readonly ["default", "plan"]>>;
|
|
3263
|
+
readonly branch: Schema.NullOr<Schema.Trim>;
|
|
3264
|
+
readonly worktreePath: Schema.NullOr<Schema.Trim>;
|
|
3265
|
+
readonly createdAt: Schema.String;
|
|
3266
|
+
readonly updatedAt: Schema.String;
|
|
3267
|
+
}>;
|
|
3268
|
+
readonly sequence: Schema.Int;
|
|
3269
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
3270
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
3271
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
3272
|
+
readonly occurredAt: Schema.String;
|
|
3273
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
3274
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
3275
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
3276
|
+
readonly metadata: Schema.Struct<{
|
|
3277
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
3278
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
3279
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
3280
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
3281
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
3282
|
+
}>;
|
|
3283
|
+
}>, Schema.Struct<{
|
|
3284
|
+
readonly type: Schema.Literal<"thread.deleted">;
|
|
3285
|
+
readonly payload: Schema.Struct<{
|
|
3286
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
3287
|
+
readonly deletedAt: Schema.String;
|
|
3288
|
+
}>;
|
|
3289
|
+
readonly sequence: Schema.Int;
|
|
3290
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
3291
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
3292
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
3293
|
+
readonly occurredAt: Schema.String;
|
|
3294
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
3295
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
3296
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
3297
|
+
readonly metadata: Schema.Struct<{
|
|
3298
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
3299
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
3300
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
3301
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
3302
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
3303
|
+
}>;
|
|
3304
|
+
}>, Schema.Struct<{
|
|
3305
|
+
readonly type: Schema.Literal<"thread.meta-updated">;
|
|
3306
|
+
readonly payload: Schema.Struct<{
|
|
3307
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
3308
|
+
readonly title: Schema.optional<Schema.Trim>;
|
|
3309
|
+
readonly model: Schema.optional<Schema.Trim>;
|
|
3310
|
+
readonly branch: Schema.optional<Schema.NullOr<Schema.Trim>>;
|
|
3311
|
+
readonly worktreePath: Schema.optional<Schema.NullOr<Schema.Trim>>;
|
|
3312
|
+
readonly updatedAt: Schema.String;
|
|
3313
|
+
}>;
|
|
3314
|
+
readonly sequence: Schema.Int;
|
|
3315
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
3316
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
3317
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
3318
|
+
readonly occurredAt: Schema.String;
|
|
3319
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
3320
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
3321
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
3322
|
+
readonly metadata: Schema.Struct<{
|
|
3323
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
3324
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
3325
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
3326
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
3327
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
3328
|
+
}>;
|
|
3329
|
+
}>, Schema.Struct<{
|
|
3330
|
+
readonly type: Schema.Literal<"thread.runtime-mode-set">;
|
|
3331
|
+
readonly payload: Schema.Struct<{
|
|
3332
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
3333
|
+
readonly runtimeMode: Schema.Literals<readonly ["approval-required", "full-access"]>;
|
|
3334
|
+
readonly updatedAt: Schema.String;
|
|
3335
|
+
}>;
|
|
3336
|
+
readonly sequence: Schema.Int;
|
|
3337
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
3338
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
3339
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
3340
|
+
readonly occurredAt: Schema.String;
|
|
3341
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
3342
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
3343
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
3344
|
+
readonly metadata: Schema.Struct<{
|
|
3345
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
3346
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
3347
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
3348
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
3349
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
3350
|
+
}>;
|
|
3351
|
+
}>, Schema.Struct<{
|
|
3352
|
+
readonly type: Schema.Literal<"thread.interaction-mode-set">;
|
|
3353
|
+
readonly payload: Schema.Struct<{
|
|
3354
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
3355
|
+
readonly interactionMode: Schema.withDecodingDefault<Schema.Literals<readonly ["default", "plan"]>>;
|
|
3356
|
+
readonly updatedAt: Schema.String;
|
|
3357
|
+
}>;
|
|
3358
|
+
readonly sequence: Schema.Int;
|
|
3359
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
3360
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
3361
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
3362
|
+
readonly occurredAt: Schema.String;
|
|
3363
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
3364
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
3365
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
3366
|
+
readonly metadata: Schema.Struct<{
|
|
3367
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
3368
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
3369
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
3370
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
3371
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
3372
|
+
}>;
|
|
3373
|
+
}>, Schema.Struct<{
|
|
3374
|
+
readonly type: Schema.Literal<"thread.message-sent">;
|
|
3375
|
+
readonly payload: Schema.Struct<{
|
|
3376
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
3377
|
+
readonly messageId: Schema.brand<Schema.Trim, "MessageId">;
|
|
3378
|
+
readonly role: Schema.Literals<readonly ["user", "assistant", "system"]>;
|
|
3379
|
+
readonly text: Schema.String;
|
|
3380
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
3381
|
+
readonly type: Schema.Literal<"image">;
|
|
3382
|
+
readonly id: Schema.Trim;
|
|
3383
|
+
readonly name: Schema.Trim;
|
|
3384
|
+
readonly mimeType: Schema.Trim;
|
|
3385
|
+
readonly sizeBytes: Schema.Int;
|
|
3386
|
+
}>]>>>;
|
|
3387
|
+
readonly turnId: Schema.NullOr<Schema.brand<Schema.Trim, "TurnId">>;
|
|
3388
|
+
readonly streaming: Schema.Boolean;
|
|
3389
|
+
readonly createdAt: Schema.String;
|
|
3390
|
+
readonly updatedAt: Schema.String;
|
|
3391
|
+
}>;
|
|
3392
|
+
readonly sequence: Schema.Int;
|
|
3393
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
3394
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
3395
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
3396
|
+
readonly occurredAt: Schema.String;
|
|
3397
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
3398
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
3399
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
3400
|
+
readonly metadata: Schema.Struct<{
|
|
3401
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
3402
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
3403
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
3404
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
3405
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
3406
|
+
}>;
|
|
3407
|
+
}>, Schema.Struct<{
|
|
3408
|
+
readonly type: Schema.Literal<"thread.turn-start-requested">;
|
|
3409
|
+
readonly payload: Schema.Struct<{
|
|
3410
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
3411
|
+
readonly messageId: Schema.brand<Schema.Trim, "MessageId">;
|
|
3412
|
+
readonly provider: Schema.optional<Schema.Literals<readonly ["codex", "claude"]>>;
|
|
3413
|
+
readonly model: Schema.optional<Schema.Trim>;
|
|
3414
|
+
readonly serviceTier: Schema.optional<Schema.NullOr<Schema.Literals<readonly ["fast", "flex"]>>>;
|
|
3415
|
+
readonly modelOptions: Schema.optional<Schema.Struct<{
|
|
3416
|
+
readonly codex: Schema.optional<Schema.Struct<{
|
|
3417
|
+
readonly reasoningEffort: Schema.optional<Schema.Literals<readonly ["xhigh", "high", "medium", "low"]>>;
|
|
3418
|
+
readonly fastMode: Schema.optional<Schema.Boolean>;
|
|
3419
|
+
}>>;
|
|
3420
|
+
readonly claude: Schema.optional<Schema.Struct<{}>>;
|
|
3421
|
+
}>>;
|
|
3422
|
+
readonly assistantDeliveryMode: Schema.optional<Schema.Literals<readonly ["buffered", "streaming"]>>;
|
|
3423
|
+
readonly runtimeMode: Schema.withDecodingDefault<Schema.Literals<readonly ["approval-required", "full-access"]>>;
|
|
3424
|
+
readonly interactionMode: Schema.withDecodingDefault<Schema.Literals<readonly ["default", "plan"]>>;
|
|
3425
|
+
readonly createdAt: Schema.String;
|
|
3426
|
+
}>;
|
|
3427
|
+
readonly sequence: Schema.Int;
|
|
3428
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
3429
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
3430
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
3431
|
+
readonly occurredAt: Schema.String;
|
|
3432
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
3433
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
3434
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
3435
|
+
readonly metadata: Schema.Struct<{
|
|
3436
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
3437
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
3438
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
3439
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
3440
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
3441
|
+
}>;
|
|
3442
|
+
}>, Schema.Struct<{
|
|
3443
|
+
readonly type: Schema.Literal<"thread.turn-interrupt-requested">;
|
|
3444
|
+
readonly payload: Schema.Struct<{
|
|
3445
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
3446
|
+
readonly turnId: Schema.optional<Schema.brand<Schema.Trim, "TurnId">>;
|
|
3447
|
+
readonly createdAt: Schema.String;
|
|
3448
|
+
}>;
|
|
3449
|
+
readonly sequence: Schema.Int;
|
|
3450
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
3451
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
3452
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
3453
|
+
readonly occurredAt: Schema.String;
|
|
3454
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
3455
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
3456
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
3457
|
+
readonly metadata: Schema.Struct<{
|
|
3458
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
3459
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
3460
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
3461
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
3462
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
3463
|
+
}>;
|
|
3464
|
+
}>, Schema.Struct<{
|
|
3465
|
+
readonly type: Schema.Literal<"thread.approval-response-requested">;
|
|
3466
|
+
readonly payload: Schema.Struct<{
|
|
3467
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
3468
|
+
readonly requestId: Schema.brand<Schema.Trim, "ApprovalRequestId">;
|
|
3469
|
+
readonly decision: Schema.Literals<readonly ["accept", "acceptForSession", "decline", "cancel"]>;
|
|
3470
|
+
readonly createdAt: Schema.String;
|
|
3471
|
+
}>;
|
|
3472
|
+
readonly sequence: Schema.Int;
|
|
3473
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
3474
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
3475
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
3476
|
+
readonly occurredAt: Schema.String;
|
|
3477
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
3478
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
3479
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
3480
|
+
readonly metadata: Schema.Struct<{
|
|
3481
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
3482
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
3483
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
3484
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
3485
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
3486
|
+
}>;
|
|
3487
|
+
}>, Schema.Struct<{
|
|
3488
|
+
readonly type: Schema.Literal<"thread.user-input-response-requested">;
|
|
3489
|
+
readonly payload: Schema.Struct<{
|
|
3490
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
3491
|
+
readonly requestId: Schema.brand<Schema.Trim, "ApprovalRequestId">;
|
|
3492
|
+
readonly answers: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
3493
|
+
readonly createdAt: Schema.String;
|
|
3494
|
+
}>;
|
|
3495
|
+
readonly sequence: Schema.Int;
|
|
3496
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
3497
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
3498
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
3499
|
+
readonly occurredAt: Schema.String;
|
|
3500
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
3501
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
3502
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
3503
|
+
readonly metadata: Schema.Struct<{
|
|
3504
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
3505
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
3506
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
3507
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
3508
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
3509
|
+
}>;
|
|
3510
|
+
}>, Schema.Struct<{
|
|
3511
|
+
readonly type: Schema.Literal<"thread.checkpoint-revert-requested">;
|
|
3512
|
+
readonly payload: Schema.Struct<{
|
|
3513
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
3514
|
+
readonly turnCount: Schema.Int;
|
|
3515
|
+
readonly createdAt: Schema.String;
|
|
3516
|
+
}>;
|
|
3517
|
+
readonly sequence: Schema.Int;
|
|
3518
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
3519
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
3520
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
3521
|
+
readonly occurredAt: Schema.String;
|
|
3522
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
3523
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
3524
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
3525
|
+
readonly metadata: Schema.Struct<{
|
|
3526
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
3527
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
3528
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
3529
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
3530
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
3531
|
+
}>;
|
|
3532
|
+
}>, Schema.Struct<{
|
|
3533
|
+
readonly type: Schema.Literal<"thread.reverted">;
|
|
3534
|
+
readonly payload: Schema.Struct<{
|
|
3535
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
3536
|
+
readonly turnCount: Schema.Int;
|
|
3537
|
+
}>;
|
|
3538
|
+
readonly sequence: Schema.Int;
|
|
3539
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
3540
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
3541
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
3542
|
+
readonly occurredAt: Schema.String;
|
|
3543
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
3544
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
3545
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
3546
|
+
readonly metadata: Schema.Struct<{
|
|
3547
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
3548
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
3549
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
3550
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
3551
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
3552
|
+
}>;
|
|
3553
|
+
}>, Schema.Struct<{
|
|
3554
|
+
readonly type: Schema.Literal<"thread.session-stop-requested">;
|
|
3555
|
+
readonly payload: Schema.Struct<{
|
|
3556
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
3557
|
+
readonly createdAt: Schema.String;
|
|
3558
|
+
}>;
|
|
3559
|
+
readonly sequence: Schema.Int;
|
|
3560
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
3561
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
3562
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
3563
|
+
readonly occurredAt: Schema.String;
|
|
3564
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
3565
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
3566
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
3567
|
+
readonly metadata: Schema.Struct<{
|
|
3568
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
3569
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
3570
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
3571
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
3572
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
3573
|
+
}>;
|
|
3574
|
+
}>, Schema.Struct<{
|
|
3575
|
+
readonly type: Schema.Literal<"thread.session-set">;
|
|
3576
|
+
readonly payload: Schema.Struct<{
|
|
3577
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
3578
|
+
readonly session: Schema.Struct<{
|
|
3579
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
3580
|
+
readonly status: Schema.Literals<readonly ["idle", "starting", "running", "ready", "interrupted", "stopped", "error"]>;
|
|
3581
|
+
readonly providerName: Schema.NullOr<Schema.Trim>;
|
|
3582
|
+
readonly runtimeMode: Schema.withDecodingDefault<Schema.Literals<readonly ["approval-required", "full-access"]>>;
|
|
3583
|
+
readonly activeTurnId: Schema.NullOr<Schema.brand<Schema.Trim, "TurnId">>;
|
|
3584
|
+
readonly lastError: Schema.NullOr<Schema.Trim>;
|
|
3585
|
+
readonly updatedAt: Schema.String;
|
|
3586
|
+
}>;
|
|
3587
|
+
}>;
|
|
3588
|
+
readonly sequence: Schema.Int;
|
|
3589
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
3590
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
3591
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
3592
|
+
readonly occurredAt: Schema.String;
|
|
3593
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
3594
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
3595
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
3596
|
+
readonly metadata: Schema.Struct<{
|
|
3597
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
3598
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
3599
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
3600
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
3601
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
3602
|
+
}>;
|
|
3603
|
+
}>, Schema.Struct<{
|
|
3604
|
+
readonly type: Schema.Literal<"thread.proposed-plan-upserted">;
|
|
3605
|
+
readonly payload: Schema.Struct<{
|
|
3606
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
3607
|
+
readonly proposedPlan: Schema.Struct<{
|
|
3608
|
+
readonly id: Schema.Trim;
|
|
3609
|
+
readonly turnId: Schema.NullOr<Schema.brand<Schema.Trim, "TurnId">>;
|
|
3610
|
+
readonly planMarkdown: Schema.Trim;
|
|
3611
|
+
readonly createdAt: Schema.String;
|
|
3612
|
+
readonly updatedAt: Schema.String;
|
|
3613
|
+
}>;
|
|
3614
|
+
}>;
|
|
3615
|
+
readonly sequence: Schema.Int;
|
|
3616
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
3617
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
3618
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
3619
|
+
readonly occurredAt: Schema.String;
|
|
3620
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
3621
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
3622
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
3623
|
+
readonly metadata: Schema.Struct<{
|
|
3624
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
3625
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
3626
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
3627
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
3628
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
3629
|
+
}>;
|
|
3630
|
+
}>, Schema.Struct<{
|
|
3631
|
+
readonly type: Schema.Literal<"thread.turn-diff-completed">;
|
|
3632
|
+
readonly payload: Schema.Struct<{
|
|
3633
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
3634
|
+
readonly turnId: Schema.brand<Schema.Trim, "TurnId">;
|
|
3635
|
+
readonly checkpointTurnCount: Schema.Int;
|
|
3636
|
+
readonly checkpointRef: Schema.brand<Schema.Trim, "CheckpointRef">;
|
|
3637
|
+
readonly status: Schema.Literals<readonly ["ready", "missing", "error"]>;
|
|
3638
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
3639
|
+
readonly path: Schema.Trim;
|
|
3640
|
+
readonly kind: Schema.Trim;
|
|
3641
|
+
readonly additions: Schema.Int;
|
|
3642
|
+
readonly deletions: Schema.Int;
|
|
3643
|
+
}>>;
|
|
3644
|
+
readonly assistantMessageId: Schema.NullOr<Schema.brand<Schema.Trim, "MessageId">>;
|
|
3645
|
+
readonly completedAt: Schema.String;
|
|
3646
|
+
}>;
|
|
3647
|
+
readonly sequence: Schema.Int;
|
|
3648
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
3649
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
3650
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
3651
|
+
readonly occurredAt: Schema.String;
|
|
3652
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
3653
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
3654
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
3655
|
+
readonly metadata: Schema.Struct<{
|
|
3656
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
3657
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
3658
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
3659
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
3660
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
3661
|
+
}>;
|
|
3662
|
+
}>, Schema.Struct<{
|
|
3663
|
+
readonly type: Schema.Literal<"thread.activity-appended">;
|
|
3664
|
+
readonly payload: Schema.Struct<{
|
|
3665
|
+
readonly threadId: Schema.brand<Schema.Trim, "ThreadId">;
|
|
3666
|
+
readonly activity: Schema.Struct<{
|
|
3667
|
+
readonly id: Schema.brand<Schema.Trim, "EventId">;
|
|
3668
|
+
readonly tone: Schema.Literals<readonly ["info", "tool", "approval", "error"]>;
|
|
3669
|
+
readonly kind: Schema.Trim;
|
|
3670
|
+
readonly summary: Schema.Trim;
|
|
3671
|
+
readonly payload: Schema.Unknown;
|
|
3672
|
+
readonly turnId: Schema.NullOr<Schema.brand<Schema.Trim, "TurnId">>;
|
|
3673
|
+
readonly sequence: Schema.optional<Schema.Int>;
|
|
3674
|
+
readonly createdAt: Schema.String;
|
|
3675
|
+
}>;
|
|
3676
|
+
}>;
|
|
3677
|
+
readonly sequence: Schema.Int;
|
|
3678
|
+
readonly eventId: Schema.brand<Schema.Trim, "EventId">;
|
|
3679
|
+
readonly aggregateKind: Schema.Literals<readonly ["project", "thread"]>;
|
|
3680
|
+
readonly aggregateId: Schema.Union<readonly [Schema.brand<Schema.Trim, "ProjectId">, Schema.brand<Schema.Trim, "ThreadId">]>;
|
|
3681
|
+
readonly occurredAt: Schema.String;
|
|
3682
|
+
readonly commandId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
3683
|
+
readonly causationEventId: Schema.NullOr<Schema.brand<Schema.Trim, "EventId">>;
|
|
3684
|
+
readonly correlationId: Schema.NullOr<Schema.brand<Schema.Trim, "CommandId">>;
|
|
3685
|
+
readonly metadata: Schema.Struct<{
|
|
3686
|
+
readonly providerTurnId: Schema.optional<Schema.Trim>;
|
|
3687
|
+
readonly providerItemId: Schema.optional<Schema.brand<Schema.Trim, "ProviderItemId">>;
|
|
3688
|
+
readonly adapterKey: Schema.optional<Schema.Trim>;
|
|
3689
|
+
readonly requestId: Schema.optional<Schema.brand<Schema.Trim, "ApprovalRequestId">>;
|
|
3690
|
+
readonly ingestedAt: Schema.optional<Schema.String>;
|
|
3691
|
+
}>;
|
|
3692
|
+
}>]>>;
|
|
3693
|
+
};
|
|
3694
|
+
};
|
|
3695
|
+
export {};
|