@drisp/protocol 0.6.0 → 0.8.0

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/v2.d.ts ADDED
@@ -0,0 +1,1407 @@
1
+ import { z } from 'zod';
2
+ import { f as InstalledWorkflowSchema } from './domain-B-kg2pa_.js';
3
+
4
+ /** Presentation of canonical fragment records; archive/cursor accounting always uses the original records. */
5
+ declare function readableHistory(records: HistoryRecord[]): HistoryRecord[];
6
+
7
+ declare const protocolVersion: {
8
+ readonly major: 2;
9
+ readonly minor: 2;
10
+ };
11
+ declare const conversationContinuationCapability = "conversation_continuation";
12
+ declare const abandonedConversationContinuationCapability = "abandoned_conversation_continuation";
13
+ declare const repositoryAccessCapability = "repository_checkout_v1";
14
+ /** The runner can install a Workflow named by a Run's install reference before it starts. */
15
+ declare const workflowInstallCapability = "workflow_install_v1";
16
+ /**
17
+ * The runner takes grants carrying `delegationToken` and `parent` (protocol minor 2, root ADR-0008) and hands the
18
+ * token to the agent as `DRISP_RUN_TOKEN`. A start with `delegation` is never sent to a runner without it.
19
+ */
20
+ declare const runDelegationCapability = "run_delegation_v1";
21
+ /** The prefix of every delegation token; the Hub keeps only its digest. */
22
+ declare const delegationTokenPrefix = "drisp_dlg_";
23
+ /** A `run.artifact` history record's `name`, and the most its `json` may take serialized. */
24
+ declare const runArtifactNameSchema: z.ZodString;
25
+ declare const runArtifactMaxBytes: number;
26
+ /** Deployment-approved secret references, never secret values or process-control variables. */
27
+ declare const secretEnvironmentSchema: z.ZodRecord<z.ZodString, z.ZodString>;
28
+ declare const permissionAnswerSchema: z.ZodObject<{
29
+ kind: z.ZodLiteral<"permission">;
30
+ decision: z.ZodEnum<{
31
+ allow: "allow";
32
+ deny: "deny";
33
+ }>;
34
+ reason: z.ZodOptional<z.ZodString>;
35
+ }, z.core.$strict>;
36
+ declare const sequence: z.ZodNumber;
37
+ declare const scopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
38
+ visibility: z.ZodLiteral<"organization">;
39
+ }, z.core.$strict>, z.ZodObject<{
40
+ visibility: z.ZodLiteral<"private">;
41
+ ownerUserId: z.ZodString;
42
+ }, z.core.$strict>], "visibility">;
43
+ /** Workflows a runner can run; reported on hello and replaced wholesale by `workflows.changed`. */
44
+ declare const installedWorkflowsSchema: z.ZodArray<z.ZodObject<{
45
+ name: z.ZodString;
46
+ version: z.ZodOptional<z.ZodString>;
47
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
48
+ kind: z.ZodLiteral<"builtin">;
49
+ }, z.core.$strip>, z.ZodObject<{
50
+ kind: z.ZodLiteral<"marketplace-remote">;
51
+ ref: z.ZodString;
52
+ }, z.core.$strip>, z.ZodObject<{
53
+ kind: z.ZodLiteral<"marketplace-local">;
54
+ repoDir: z.ZodString;
55
+ workflowName: z.ZodString;
56
+ }, z.core.$strip>, z.ZodObject<{
57
+ kind: z.ZodLiteral<"filesystem">;
58
+ path: z.ZodString;
59
+ }, z.core.$strip>, z.ZodObject<{
60
+ kind: z.ZodLiteral<"unknown">;
61
+ }, z.core.$strip>], "kind">;
62
+ }, z.core.$strip>>;
63
+ /** The coding agents a Run can use. */
64
+ declare const harnessSchema: z.ZodEnum<{
65
+ "claude-code": "claude-code";
66
+ codex: "codex";
67
+ }>;
68
+ type Harness = z.infer<typeof harnessSchema>;
69
+ /** Whether one harness can start a Run on a Runner: its CLI is installed, and it is signed in. */
70
+ declare const harnessReadinessSchema: z.ZodObject<{
71
+ installed: z.ZodBoolean;
72
+ signedIn: z.ZodBoolean;
73
+ }, z.core.$strict>;
74
+ type HarnessReadiness = z.infer<typeof harnessReadinessSchema>;
75
+ /**
76
+ * Readiness (root ADR-0005): connected is not ready. A Runner reports each harness it checked, on hello and again
77
+ * with `readiness.changed`. A harness it does not report, like the whole field from an older runner, is unknown,
78
+ * never "not ready".
79
+ */
80
+ declare const runnerReadinessSchema: z.ZodObject<{
81
+ 'claude-code': z.ZodOptional<z.ZodObject<{
82
+ installed: z.ZodBoolean;
83
+ signedIn: z.ZodBoolean;
84
+ }, z.core.$strict>>;
85
+ codex: z.ZodOptional<z.ZodObject<{
86
+ installed: z.ZodBoolean;
87
+ signedIn: z.ZodBoolean;
88
+ }, z.core.$strict>>;
89
+ }, z.core.$strict>;
90
+ type RunnerReadiness = z.infer<typeof runnerReadinessSchema>;
91
+ /** The command that closes a harness's Readiness gap on the Runner's machine, or undefined when it is ready. */
92
+ declare function readinessFixCommand(harness: Harness, readiness: HarnessReadiness): string | undefined;
93
+ /** What brings a Runner below the Hub's minimum version up to date. Runner services never update themselves. */
94
+ declare const runnerUpdateCommand = "npm i -g @drisp/cli";
95
+ declare const interruptionSchema: z.ZodObject<{
96
+ interruptionId: z.ZodString;
97
+ revision: z.ZodNumber;
98
+ kind: z.ZodEnum<{
99
+ permission: "permission";
100
+ question: "question";
101
+ guidance: "guidance";
102
+ recovery: "recovery";
103
+ waiting: "waiting";
104
+ }>;
105
+ message: z.ZodString;
106
+ requestId: z.ZodOptional<z.ZodString>;
107
+ }, z.core.$strict>;
108
+ /** The Workflow a Run resolved on its runner: the registry name and, when the Workflow declares one, its version. */
109
+ declare const workflowIdentitySchema: z.ZodObject<{
110
+ name: z.ZodString;
111
+ version: z.ZodOptional<z.ZodString>;
112
+ }, z.core.$strict>;
113
+ type WorkflowIdentity = z.infer<typeof workflowIdentitySchema>;
114
+ /** A Runner's close reasons for a Build Run: a child refused at bootstrap, or an approval marker with no question. */
115
+ declare const buildCloseReasonSchema: z.ZodEnum<{
116
+ workflow_template_mismatch: "workflow_template_mismatch";
117
+ child_project_dir_invalid: "child_project_dir_invalid";
118
+ build_not_approved: "build_not_approved";
119
+ approval_question_missing: "approval_question_missing";
120
+ }>;
121
+ type BuildCloseReason = z.infer<typeof buildCloseReasonSchema>;
122
+ /**
123
+ * Every close reason a Hub gives a Run view's `closeReason`: its own, and the Runner's Build ones it stores from
124
+ * `run.finished.reason`. The view keeps `closeReason` an open string, so a newer Hub's reasons still decode; the app
125
+ * words each of these (apps/macos Kit `BuildStrings.closeReasons`), and a Kit test fails on one it does not word.
126
+ */
127
+ declare const runCloseReasonSchema: z.ZodEnum<{
128
+ workflow_template_mismatch: "workflow_template_mismatch";
129
+ child_project_dir_invalid: "child_project_dir_invalid";
130
+ build_not_approved: "build_not_approved";
131
+ approval_question_missing: "approval_question_missing";
132
+ execution_terminal: "execution_terminal";
133
+ cancelled_before_start: "cancelled_before_start";
134
+ admission_failed: "admission_failed";
135
+ abandoned: "abandoned";
136
+ managed_startup_timeout: "managed_startup_timeout";
137
+ runner_disconnected: "runner_disconnected";
138
+ runner_needs_owner: "runner_needs_owner";
139
+ runner_not_available: "runner_not_available";
140
+ runner_upgrade_required: "runner_upgrade_required";
141
+ legacy_succeeded: "legacy_succeeded";
142
+ legacy_failed: "legacy_failed";
143
+ legacy_cancelled: "legacy_cancelled";
144
+ legacy_timeout: "legacy_timeout";
145
+ legacy_force_failed: "legacy_force_failed";
146
+ }>;
147
+ type RunCloseReason = z.infer<typeof runCloseReasonSchema>;
148
+ declare const controlRecordSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
149
+ kind: z.ZodLiteral<"workflows.changed">;
150
+ workflows: z.ZodArray<z.ZodObject<{
151
+ name: z.ZodString;
152
+ version: z.ZodOptional<z.ZodString>;
153
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
154
+ kind: z.ZodLiteral<"builtin">;
155
+ }, z.core.$strip>, z.ZodObject<{
156
+ kind: z.ZodLiteral<"marketplace-remote">;
157
+ ref: z.ZodString;
158
+ }, z.core.$strip>, z.ZodObject<{
159
+ kind: z.ZodLiteral<"marketplace-local">;
160
+ repoDir: z.ZodString;
161
+ workflowName: z.ZodString;
162
+ }, z.core.$strip>, z.ZodObject<{
163
+ kind: z.ZodLiteral<"filesystem">;
164
+ path: z.ZodString;
165
+ }, z.core.$strip>, z.ZodObject<{
166
+ kind: z.ZodLiteral<"unknown">;
167
+ }, z.core.$strip>], "kind">;
168
+ }, z.core.$strip>>;
169
+ }, z.core.$strict>, z.ZodObject<{
170
+ kind: z.ZodLiteral<"readiness.changed">;
171
+ readiness: z.ZodObject<{
172
+ 'claude-code': z.ZodOptional<z.ZodObject<{
173
+ installed: z.ZodBoolean;
174
+ signedIn: z.ZodBoolean;
175
+ }, z.core.$strict>>;
176
+ codex: z.ZodOptional<z.ZodObject<{
177
+ installed: z.ZodBoolean;
178
+ signedIn: z.ZodBoolean;
179
+ }, z.core.$strict>>;
180
+ }, z.core.$strict>;
181
+ }, z.core.$strict>, z.ZodObject<{
182
+ kind: z.ZodLiteral<"assignment.accepted">;
183
+ runId: z.ZodString;
184
+ attemptId: z.ZodString;
185
+ }, z.core.$strict>, z.ZodObject<{
186
+ kind: z.ZodLiteral<"assignment.rejected">;
187
+ runId: z.ZodString;
188
+ attemptId: z.ZodString;
189
+ reason: z.ZodString;
190
+ }, z.core.$strict>, z.ZodObject<{
191
+ workflow: z.ZodOptional<z.ZodObject<{
192
+ name: z.ZodString;
193
+ version: z.ZodOptional<z.ZodString>;
194
+ }, z.core.$strict>>;
195
+ runId: z.ZodString;
196
+ attemptId: z.ZodString;
197
+ executionRevision: z.ZodNumber;
198
+ emittedAt: z.ZodISODateTime;
199
+ kind: z.ZodLiteral<"run.started">;
200
+ }, z.core.$strict>, z.ZodObject<{
201
+ runId: z.ZodString;
202
+ attemptId: z.ZodString;
203
+ executionRevision: z.ZodNumber;
204
+ emittedAt: z.ZodISODateTime;
205
+ kind: z.ZodLiteral<"run.resumed">;
206
+ }, z.core.$strict>, z.ZodObject<{
207
+ interruption: z.ZodObject<{
208
+ interruptionId: z.ZodString;
209
+ revision: z.ZodNumber;
210
+ kind: z.ZodEnum<{
211
+ permission: "permission";
212
+ question: "question";
213
+ guidance: "guidance";
214
+ recovery: "recovery";
215
+ waiting: "waiting";
216
+ }>;
217
+ message: z.ZodString;
218
+ requestId: z.ZodOptional<z.ZodString>;
219
+ }, z.core.$strict>;
220
+ occupancy: z.ZodEnum<{
221
+ held: "held";
222
+ released: "released";
223
+ }>;
224
+ historyThrough: z.ZodNumber;
225
+ continuation: z.ZodDiscriminatedUnion<[z.ZodObject<{
226
+ kind: z.ZodLiteral<"live_request">;
227
+ }, z.core.$strict>, z.ZodObject<{
228
+ kind: z.ZodLiteral<"local_checkpoint">;
229
+ checkpointId: z.ZodString;
230
+ }, z.core.$strict>, z.ZodObject<{
231
+ kind: z.ZodLiteral<"portable_checkpoint">;
232
+ checkpointId: z.ZodString;
233
+ }, z.core.$strict>, z.ZodObject<{
234
+ kind: z.ZodLiteral<"repair_required">;
235
+ detail: z.ZodString;
236
+ }, z.core.$strict>], "kind">;
237
+ runId: z.ZodString;
238
+ attemptId: z.ZodString;
239
+ executionRevision: z.ZodNumber;
240
+ emittedAt: z.ZodISODateTime;
241
+ kind: z.ZodLiteral<"run.attention">;
242
+ }, z.core.$strict>, z.ZodObject<{
243
+ status: z.ZodEnum<{
244
+ completed: "completed";
245
+ failed: "failed";
246
+ cancelled: "cancelled";
247
+ }>;
248
+ historyThrough: z.ZodNumber;
249
+ workspaceUnavailable: z.ZodOptional<z.ZodLiteral<true>>;
250
+ reason: z.ZodOptional<z.ZodEnum<{
251
+ workflow_template_mismatch: "workflow_template_mismatch";
252
+ child_project_dir_invalid: "child_project_dir_invalid";
253
+ build_not_approved: "build_not_approved";
254
+ approval_question_missing: "approval_question_missing";
255
+ }>>;
256
+ runId: z.ZodString;
257
+ attemptId: z.ZodString;
258
+ executionRevision: z.ZodNumber;
259
+ emittedAt: z.ZodISODateTime;
260
+ kind: z.ZodLiteral<"run.finished">;
261
+ }, z.core.$strict>, z.ZodObject<{
262
+ kind: z.ZodLiteral<"command.applied">;
263
+ runId: z.ZodString;
264
+ attemptId: z.ZodString;
265
+ commandId: z.ZodString;
266
+ }, z.core.$strict>, z.ZodObject<{
267
+ kind: z.ZodLiteral<"command.rejected">;
268
+ runId: z.ZodString;
269
+ attemptId: z.ZodString;
270
+ commandId: z.ZodString;
271
+ reason: z.ZodString;
272
+ }, z.core.$strict>, z.ZodObject<{
273
+ kind: z.ZodLiteral<"revoked_not_started">;
274
+ runId: z.ZodString;
275
+ attemptId: z.ZodString;
276
+ }, z.core.$strict>], "kind">;
277
+ /** Git references are data, never command options or shell expressions. */
278
+ declare const repositoryRefSchema: z.ZodString;
279
+ declare const repositoryWorkingDirectorySchema: z.ZodString;
280
+ declare const repositoryBindingSchema: z.ZodObject<{
281
+ defaultRef: z.ZodString;
282
+ workingDirectory: z.ZodString;
283
+ setupCommands: z.ZodArray<z.ZodString>;
284
+ revision: z.ZodNumber;
285
+ enabled: z.ZodBoolean;
286
+ repositoryId: z.ZodNumber;
287
+ installationId: z.ZodNumber;
288
+ owner: z.ZodString;
289
+ name: z.ZodString;
290
+ id: z.ZodString;
291
+ label: z.ZodString;
292
+ }, z.core.$strict>;
293
+ /** Resolved by the Hub; no credentials or client-selected clone URLs belong here. */
294
+ declare const repositorySourceSchema: z.ZodObject<{
295
+ ref: z.ZodString;
296
+ commitSha: z.ZodString;
297
+ branch: z.ZodString;
298
+ workingDirectory: z.ZodString;
299
+ setupCommands: z.ZodArray<z.ZodString>;
300
+ configRevision: z.ZodNumber;
301
+ repositoryId: z.ZodNumber;
302
+ installationId: z.ZodNumber;
303
+ owner: z.ZodString;
304
+ name: z.ZodString;
305
+ bindingId: z.ZodString;
306
+ }, z.core.$strict>;
307
+ type RepositoryBinding = z.infer<typeof repositoryBindingSchema>;
308
+ type RepositorySource = z.infer<typeof repositorySourceSchema>;
309
+ /**
310
+ * A Workflow named by a Run. A bare string is the registry name, exactly as before. The object form adds an install
311
+ * reference: `source` is an `owner/repo` GitHub marketplace slug (never a path or URL; segments start alphanumeric,
312
+ * the same rule as tests/fixtures/workflow-refs.json) and `version` is matched exactly. `ref` parses so that the Hub
313
+ * and Runner can refuse it with a specific reason; it is not honoured yet.
314
+ */
315
+ declare const workflowSourceSchema: z.ZodString;
316
+ declare const workflowReferenceSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
317
+ name: z.ZodString;
318
+ source: z.ZodOptional<z.ZodString>;
319
+ ref: z.ZodOptional<z.ZodString>;
320
+ version: z.ZodOptional<z.ZodString>;
321
+ }, z.core.$strict>]>;
322
+ type WorkflowReference = z.infer<typeof workflowReferenceSchema>;
323
+ type WorkflowInstallReference = Exclude<WorkflowReference, string> & {
324
+ source: string;
325
+ };
326
+ /** The registry name a Run's `spec.workflow` asks for, in either spelling. */
327
+ declare const workflowName: (workflow: WorkflowReference | undefined) => string | undefined;
328
+ /** The install reference, present only for the object form that carries a `source`. */
329
+ declare const installReference: (workflow: WorkflowReference | undefined) => WorkflowInstallReference | undefined;
330
+ /** Structural equality of two `spec.workflow` values; never `===`, which is false for equal objects. */
331
+ declare const sameWorkflow: (a: WorkflowReference | undefined, b: WorkflowReference | undefined) => boolean;
332
+ declare const runSpecSchema: z.ZodObject<{
333
+ prompt: z.ZodString;
334
+ projectDir: z.ZodString;
335
+ harness: z.ZodEnum<{
336
+ "claude-code": "claude-code";
337
+ codex: "codex";
338
+ }>;
339
+ workflow: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
340
+ name: z.ZodString;
341
+ source: z.ZodOptional<z.ZodString>;
342
+ ref: z.ZodOptional<z.ZodString>;
343
+ version: z.ZodOptional<z.ZodString>;
344
+ }, z.core.$strict>]>>;
345
+ repository: z.ZodOptional<z.ZodObject<{
346
+ ref: z.ZodString;
347
+ commitSha: z.ZodString;
348
+ branch: z.ZodString;
349
+ workingDirectory: z.ZodString;
350
+ setupCommands: z.ZodArray<z.ZodString>;
351
+ configRevision: z.ZodNumber;
352
+ repositoryId: z.ZodNumber;
353
+ installationId: z.ZodNumber;
354
+ owner: z.ZodString;
355
+ name: z.ZodString;
356
+ bindingId: z.ZodString;
357
+ }, z.core.$strict>>;
358
+ }, z.core.$strict>;
359
+ /** What a Run is for, e.g. `plan:<linearProjectId>`; at most one non-closed Run holds a key (`key_busy`). */
360
+ declare const runKeySchema: z.ZodString;
361
+ /** A member start's grant to start, limit and stop its own children (root ADR-0008). */
362
+ declare const delegationSchema: z.ZodObject<{
363
+ maxChildren: z.ZodNumber;
364
+ tokenBudget: z.ZodNumber;
365
+ }, z.core.$strict>;
366
+ /** A child's parent and declared token cap. Required on a delegated start; the Hub refuses it without `tokenCap`. */
367
+ declare const runParentIntentSchema: z.ZodObject<{
368
+ runId: z.ZodString;
369
+ tokenCap: z.ZodOptional<z.ZodNumber>;
370
+ }, z.core.$strict>;
371
+ declare const runParentSchema: z.ZodObject<{
372
+ runId: z.ZodString;
373
+ tokenCap: z.ZodNumber;
374
+ }, z.core.$strict>;
375
+ type Delegation = z.infer<typeof delegationSchema>;
376
+ type RunParent = z.infer<typeof runParentSchema>;
377
+ declare const commandSchema: z.ZodObject<{
378
+ commandId: z.ZodString;
379
+ hubEpoch: z.ZodString;
380
+ runId: z.ZodString;
381
+ expectedRecordRevision: z.ZodOptional<z.ZodNumber>;
382
+ intent: z.ZodDiscriminatedUnion<[z.ZodObject<{
383
+ kind: z.ZodLiteral<"start">;
384
+ sessionId: z.ZodString;
385
+ runnerId: z.ZodOptional<z.ZodString>;
386
+ computeProfileId: z.ZodOptional<z.ZodString>;
387
+ scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
388
+ visibility: z.ZodLiteral<"organization">;
389
+ }, z.core.$strict>, z.ZodObject<{
390
+ visibility: z.ZodLiteral<"private">;
391
+ ownerUserId: z.ZodString;
392
+ }, z.core.$strict>], "visibility">;
393
+ spec: z.ZodObject<{
394
+ prompt: z.ZodString;
395
+ projectDir: z.ZodString;
396
+ harness: z.ZodEnum<{
397
+ "claude-code": "claude-code";
398
+ codex: "codex";
399
+ }>;
400
+ workflow: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
401
+ name: z.ZodString;
402
+ source: z.ZodOptional<z.ZodString>;
403
+ ref: z.ZodOptional<z.ZodString>;
404
+ version: z.ZodOptional<z.ZodString>;
405
+ }, z.core.$strict>]>>;
406
+ repository: z.ZodOptional<z.ZodObject<{
407
+ ref: z.ZodString;
408
+ commitSha: z.ZodString;
409
+ branch: z.ZodString;
410
+ workingDirectory: z.ZodString;
411
+ setupCommands: z.ZodArray<z.ZodString>;
412
+ configRevision: z.ZodNumber;
413
+ repositoryId: z.ZodNumber;
414
+ installationId: z.ZodNumber;
415
+ owner: z.ZodString;
416
+ name: z.ZodString;
417
+ bindingId: z.ZodString;
418
+ }, z.core.$strict>>;
419
+ }, z.core.$strict>;
420
+ key: z.ZodOptional<z.ZodString>;
421
+ delegation: z.ZodOptional<z.ZodObject<{
422
+ maxChildren: z.ZodNumber;
423
+ tokenBudget: z.ZodNumber;
424
+ }, z.core.$strict>>;
425
+ parent: z.ZodOptional<z.ZodObject<{
426
+ runId: z.ZodString;
427
+ tokenCap: z.ZodOptional<z.ZodNumber>;
428
+ }, z.core.$strict>>;
429
+ }, z.core.$strict>, z.ZodObject<{
430
+ kind: z.ZodLiteral<"cancel">;
431
+ }, z.core.$strict>, z.ZodObject<{
432
+ kind: z.ZodLiteral<"abandon">;
433
+ }, z.core.$strict>, z.ZodObject<{
434
+ kind: z.ZodLiteral<"steer">;
435
+ text: z.ZodString;
436
+ }, z.core.$strict>, z.ZodObject<{
437
+ kind: z.ZodLiteral<"answer">;
438
+ interruptionId: z.ZodString;
439
+ expectedInterruptionRevision: z.ZodNumber;
440
+ requestId: z.ZodOptional<z.ZodString>;
441
+ answer: z.ZodJSONSchema;
442
+ }, z.core.$strict>, z.ZodObject<{
443
+ kind: z.ZodLiteral<"resume">;
444
+ interruptionId: z.ZodString;
445
+ guidance: z.ZodOptional<z.ZodString>;
446
+ }, z.core.$strict>], "kind">;
447
+ }, z.core.$strict>;
448
+ declare const grantSchema: z.ZodObject<{
449
+ commandId: z.ZodString;
450
+ hubEpoch: z.ZodString;
451
+ runId: z.ZodString;
452
+ sessionId: z.ZodString;
453
+ runnerId: z.ZodString;
454
+ installationId: z.ZodString;
455
+ attemptId: z.ZodString;
456
+ generation: z.ZodNumber;
457
+ baseExecutionRevision: z.ZodNumber;
458
+ baseHistorySeq: z.ZodNumber;
459
+ cloudHistoryThrough: z.ZodNumber;
460
+ purpose: z.ZodEnum<{
461
+ start: "start";
462
+ resume: "resume";
463
+ }>;
464
+ spec: z.ZodObject<{
465
+ prompt: z.ZodString;
466
+ projectDir: z.ZodString;
467
+ harness: z.ZodEnum<{
468
+ "claude-code": "claude-code";
469
+ codex: "codex";
470
+ }>;
471
+ workflow: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
472
+ name: z.ZodString;
473
+ source: z.ZodOptional<z.ZodString>;
474
+ ref: z.ZodOptional<z.ZodString>;
475
+ version: z.ZodOptional<z.ZodString>;
476
+ }, z.core.$strict>]>>;
477
+ repository: z.ZodOptional<z.ZodObject<{
478
+ ref: z.ZodString;
479
+ commitSha: z.ZodString;
480
+ branch: z.ZodString;
481
+ workingDirectory: z.ZodString;
482
+ setupCommands: z.ZodArray<z.ZodString>;
483
+ configRevision: z.ZodNumber;
484
+ repositoryId: z.ZodNumber;
485
+ installationId: z.ZodNumber;
486
+ owner: z.ZodString;
487
+ name: z.ZodString;
488
+ bindingId: z.ZodString;
489
+ }, z.core.$strict>>;
490
+ }, z.core.$strict>;
491
+ continuation: z.ZodOptional<z.ZodJSONSchema>;
492
+ previousRun: z.ZodOptional<z.ZodObject<{
493
+ runId: z.ZodString;
494
+ executionRevision: z.ZodNumber;
495
+ historyProduced: z.ZodNumber;
496
+ closeReason: z.ZodOptional<z.ZodLiteral<"abandoned">>;
497
+ checkpoint: z.ZodOptional<z.ZodObject<{
498
+ checkpointId: z.ZodString;
499
+ checksum: z.ZodString;
500
+ }, z.core.$strict>>;
501
+ }, z.core.$strict>>;
502
+ checkpoint: z.ZodOptional<z.ZodObject<{
503
+ checkpointId: z.ZodString;
504
+ checksum: z.ZodString;
505
+ }, z.core.$strict>>;
506
+ delegationToken: z.ZodOptional<z.ZodString>;
507
+ parent: z.ZodOptional<z.ZodObject<{
508
+ runId: z.ZodString;
509
+ tokenCap: z.ZodNumber;
510
+ }, z.core.$strict>>;
511
+ }, z.core.$strict>;
512
+ declare const historyRecordSchema: z.ZodObject<{
513
+ eventId: z.ZodString;
514
+ attemptId: z.ZodString;
515
+ emittedAt: z.ZodISODateTime;
516
+ kind: z.ZodString;
517
+ data: z.ZodJSONSchema;
518
+ }, z.core.$strict>;
519
+ declare const runnerFrameSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
520
+ type: z.ZodLiteral<"hello">;
521
+ role: z.ZodLiteral<"runner">;
522
+ protocol: z.ZodObject<{
523
+ major: z.ZodLiteral<2>;
524
+ minor: z.ZodNumber;
525
+ }, z.core.$strict>;
526
+ runnerId: z.ZodString;
527
+ installationId: z.ZodString;
528
+ softwareVersion: z.ZodString;
529
+ capabilities: z.ZodArray<z.ZodString>;
530
+ workflows: z.ZodOptional<z.ZodArray<z.ZodObject<{
531
+ name: z.ZodString;
532
+ version: z.ZodOptional<z.ZodString>;
533
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
534
+ kind: z.ZodLiteral<"builtin">;
535
+ }, z.core.$strip>, z.ZodObject<{
536
+ kind: z.ZodLiteral<"marketplace-remote">;
537
+ ref: z.ZodString;
538
+ }, z.core.$strip>, z.ZodObject<{
539
+ kind: z.ZodLiteral<"marketplace-local">;
540
+ repoDir: z.ZodString;
541
+ workflowName: z.ZodString;
542
+ }, z.core.$strip>, z.ZodObject<{
543
+ kind: z.ZodLiteral<"filesystem">;
544
+ path: z.ZodString;
545
+ }, z.core.$strip>, z.ZodObject<{
546
+ kind: z.ZodLiteral<"unknown">;
547
+ }, z.core.$strip>], "kind">;
548
+ }, z.core.$strip>>>;
549
+ readiness: z.ZodOptional<z.ZodObject<{
550
+ 'claude-code': z.ZodOptional<z.ZodObject<{
551
+ installed: z.ZodBoolean;
552
+ signedIn: z.ZodBoolean;
553
+ }, z.core.$strict>>;
554
+ codex: z.ZodOptional<z.ZodObject<{
555
+ installed: z.ZodBoolean;
556
+ signedIn: z.ZodBoolean;
557
+ }, z.core.$strict>>;
558
+ }, z.core.$strict>>;
559
+ control: z.ZodObject<{
560
+ firstRetainedSeq: z.ZodNumber;
561
+ lastProducedSeq: z.ZodNumber;
562
+ }, z.core.$strict>;
563
+ }, z.core.$strict>, z.ZodObject<{
564
+ type: z.ZodLiteral<"control.batch">;
565
+ firstSeq: z.ZodNumber;
566
+ records: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
567
+ kind: z.ZodLiteral<"workflows.changed">;
568
+ workflows: z.ZodArray<z.ZodObject<{
569
+ name: z.ZodString;
570
+ version: z.ZodOptional<z.ZodString>;
571
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
572
+ kind: z.ZodLiteral<"builtin">;
573
+ }, z.core.$strip>, z.ZodObject<{
574
+ kind: z.ZodLiteral<"marketplace-remote">;
575
+ ref: z.ZodString;
576
+ }, z.core.$strip>, z.ZodObject<{
577
+ kind: z.ZodLiteral<"marketplace-local">;
578
+ repoDir: z.ZodString;
579
+ workflowName: z.ZodString;
580
+ }, z.core.$strip>, z.ZodObject<{
581
+ kind: z.ZodLiteral<"filesystem">;
582
+ path: z.ZodString;
583
+ }, z.core.$strip>, z.ZodObject<{
584
+ kind: z.ZodLiteral<"unknown">;
585
+ }, z.core.$strip>], "kind">;
586
+ }, z.core.$strip>>;
587
+ }, z.core.$strict>, z.ZodObject<{
588
+ kind: z.ZodLiteral<"readiness.changed">;
589
+ readiness: z.ZodObject<{
590
+ 'claude-code': z.ZodOptional<z.ZodObject<{
591
+ installed: z.ZodBoolean;
592
+ signedIn: z.ZodBoolean;
593
+ }, z.core.$strict>>;
594
+ codex: z.ZodOptional<z.ZodObject<{
595
+ installed: z.ZodBoolean;
596
+ signedIn: z.ZodBoolean;
597
+ }, z.core.$strict>>;
598
+ }, z.core.$strict>;
599
+ }, z.core.$strict>, z.ZodObject<{
600
+ kind: z.ZodLiteral<"assignment.accepted">;
601
+ runId: z.ZodString;
602
+ attemptId: z.ZodString;
603
+ }, z.core.$strict>, z.ZodObject<{
604
+ kind: z.ZodLiteral<"assignment.rejected">;
605
+ runId: z.ZodString;
606
+ attemptId: z.ZodString;
607
+ reason: z.ZodString;
608
+ }, z.core.$strict>, z.ZodObject<{
609
+ workflow: z.ZodOptional<z.ZodObject<{
610
+ name: z.ZodString;
611
+ version: z.ZodOptional<z.ZodString>;
612
+ }, z.core.$strict>>;
613
+ runId: z.ZodString;
614
+ attemptId: z.ZodString;
615
+ executionRevision: z.ZodNumber;
616
+ emittedAt: z.ZodISODateTime;
617
+ kind: z.ZodLiteral<"run.started">;
618
+ }, z.core.$strict>, z.ZodObject<{
619
+ runId: z.ZodString;
620
+ attemptId: z.ZodString;
621
+ executionRevision: z.ZodNumber;
622
+ emittedAt: z.ZodISODateTime;
623
+ kind: z.ZodLiteral<"run.resumed">;
624
+ }, z.core.$strict>, z.ZodObject<{
625
+ interruption: z.ZodObject<{
626
+ interruptionId: z.ZodString;
627
+ revision: z.ZodNumber;
628
+ kind: z.ZodEnum<{
629
+ permission: "permission";
630
+ question: "question";
631
+ guidance: "guidance";
632
+ recovery: "recovery";
633
+ waiting: "waiting";
634
+ }>;
635
+ message: z.ZodString;
636
+ requestId: z.ZodOptional<z.ZodString>;
637
+ }, z.core.$strict>;
638
+ occupancy: z.ZodEnum<{
639
+ held: "held";
640
+ released: "released";
641
+ }>;
642
+ historyThrough: z.ZodNumber;
643
+ continuation: z.ZodDiscriminatedUnion<[z.ZodObject<{
644
+ kind: z.ZodLiteral<"live_request">;
645
+ }, z.core.$strict>, z.ZodObject<{
646
+ kind: z.ZodLiteral<"local_checkpoint">;
647
+ checkpointId: z.ZodString;
648
+ }, z.core.$strict>, z.ZodObject<{
649
+ kind: z.ZodLiteral<"portable_checkpoint">;
650
+ checkpointId: z.ZodString;
651
+ }, z.core.$strict>, z.ZodObject<{
652
+ kind: z.ZodLiteral<"repair_required">;
653
+ detail: z.ZodString;
654
+ }, z.core.$strict>], "kind">;
655
+ runId: z.ZodString;
656
+ attemptId: z.ZodString;
657
+ executionRevision: z.ZodNumber;
658
+ emittedAt: z.ZodISODateTime;
659
+ kind: z.ZodLiteral<"run.attention">;
660
+ }, z.core.$strict>, z.ZodObject<{
661
+ status: z.ZodEnum<{
662
+ completed: "completed";
663
+ failed: "failed";
664
+ cancelled: "cancelled";
665
+ }>;
666
+ historyThrough: z.ZodNumber;
667
+ workspaceUnavailable: z.ZodOptional<z.ZodLiteral<true>>;
668
+ reason: z.ZodOptional<z.ZodEnum<{
669
+ workflow_template_mismatch: "workflow_template_mismatch";
670
+ child_project_dir_invalid: "child_project_dir_invalid";
671
+ build_not_approved: "build_not_approved";
672
+ approval_question_missing: "approval_question_missing";
673
+ }>>;
674
+ runId: z.ZodString;
675
+ attemptId: z.ZodString;
676
+ executionRevision: z.ZodNumber;
677
+ emittedAt: z.ZodISODateTime;
678
+ kind: z.ZodLiteral<"run.finished">;
679
+ }, z.core.$strict>, z.ZodObject<{
680
+ kind: z.ZodLiteral<"command.applied">;
681
+ runId: z.ZodString;
682
+ attemptId: z.ZodString;
683
+ commandId: z.ZodString;
684
+ }, z.core.$strict>, z.ZodObject<{
685
+ kind: z.ZodLiteral<"command.rejected">;
686
+ runId: z.ZodString;
687
+ attemptId: z.ZodString;
688
+ commandId: z.ZodString;
689
+ reason: z.ZodString;
690
+ }, z.core.$strict>, z.ZodObject<{
691
+ kind: z.ZodLiteral<"revoked_not_started">;
692
+ runId: z.ZodString;
693
+ attemptId: z.ZodString;
694
+ }, z.core.$strict>], "kind">>;
695
+ }, z.core.$strict>, z.ZodObject<{
696
+ type: z.ZodLiteral<"history.batch">;
697
+ runId: z.ZodString;
698
+ firstSeq: z.ZodNumber;
699
+ records: z.ZodArray<z.ZodObject<{
700
+ eventId: z.ZodString;
701
+ attemptId: z.ZodString;
702
+ emittedAt: z.ZodISODateTime;
703
+ kind: z.ZodString;
704
+ data: z.ZodJSONSchema;
705
+ }, z.core.$strict>>;
706
+ }, z.core.$strict>, z.ZodObject<{
707
+ type: z.ZodLiteral<"ping">;
708
+ nonce: z.ZodString;
709
+ }, z.core.$strict>, z.ZodObject<{
710
+ type: z.ZodLiteral<"reconcile.page">;
711
+ inventoryId: z.ZodDefault<z.ZodString>;
712
+ page: z.ZodDefault<z.ZodNumber>;
713
+ complete: z.ZodBoolean;
714
+ runs: z.ZodArray<z.ZodObject<{
715
+ runId: z.ZodString;
716
+ attemptId: z.ZodString;
717
+ executionRevision: z.ZodNumber;
718
+ phase: z.ZodEnum<{
719
+ recovery: "recovery";
720
+ admitted: "admitted";
721
+ prepared: "prepared";
722
+ executing: "executing";
723
+ parked: "parked";
724
+ terminal: "terminal";
725
+ }>;
726
+ }, z.core.$strict>>;
727
+ }, z.core.$strict>], "type">;
728
+ type InstalledWorkflow = z.infer<typeof InstalledWorkflowSchema>;
729
+ type Scope = z.infer<typeof scopeSchema>;
730
+ type Command = z.infer<typeof commandSchema>;
731
+ type Grant = z.infer<typeof grantSchema>;
732
+ type ControlRecord = z.infer<typeof controlRecordSchema>;
733
+ type RunnerFrame = z.infer<typeof runnerFrameSchema>;
734
+ type HistoryRecord = z.infer<typeof historyRecordSchema>;
735
+ type ExecutionFact = Extract<ControlRecord, {
736
+ executionRevision: number;
737
+ }>;
738
+ declare const runViewSchema: z.ZodObject<{
739
+ runId: z.ZodString;
740
+ sessionId: z.ZodString;
741
+ runnerId: z.ZodString;
742
+ computeProfileId: z.ZodOptional<z.ZodString>;
743
+ scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
744
+ visibility: z.ZodLiteral<"organization">;
745
+ }, z.core.$strict>, z.ZodObject<{
746
+ visibility: z.ZodLiteral<"private">;
747
+ ownerUserId: z.ZodString;
748
+ }, z.core.$strict>], "visibility">;
749
+ recordRevision: z.ZodNumber;
750
+ label: z.ZodOptional<z.ZodString>;
751
+ key: z.ZodOptional<z.ZodString>;
752
+ parent: z.ZodOptional<z.ZodObject<{
753
+ runId: z.ZodString;
754
+ tokenCap: z.ZodNumber;
755
+ }, z.core.$strict>>;
756
+ delegation: z.ZodOptional<z.ZodObject<{
757
+ maxChildren: z.ZodNumber;
758
+ tokenBudget: z.ZodNumber;
759
+ }, z.core.$strict>>;
760
+ workflow: z.ZodOptional<z.ZodObject<{
761
+ name: z.ZodString;
762
+ version: z.ZodOptional<z.ZodString>;
763
+ }, z.core.$strict>>;
764
+ execution: z.ZodNullable<z.ZodObject<{
765
+ status: z.ZodEnum<{
766
+ completed: "completed";
767
+ failed: "failed";
768
+ cancelled: "cancelled";
769
+ running: "running";
770
+ awaiting_attention: "awaiting_attention";
771
+ }>;
772
+ revision: z.ZodNumber;
773
+ attemptId: z.ZodString;
774
+ occupancy: z.ZodEnum<{
775
+ held: "held";
776
+ released: "released";
777
+ }>;
778
+ startedAt: z.ZodOptional<z.ZodISODateTime>;
779
+ endedAt: z.ZodOptional<z.ZodISODateTime>;
780
+ interruption: z.ZodOptional<z.ZodObject<{
781
+ interruptionId: z.ZodString;
782
+ revision: z.ZodNumber;
783
+ kind: z.ZodEnum<{
784
+ permission: "permission";
785
+ question: "question";
786
+ guidance: "guidance";
787
+ recovery: "recovery";
788
+ waiting: "waiting";
789
+ }>;
790
+ message: z.ZodString;
791
+ requestId: z.ZodOptional<z.ZodString>;
792
+ }, z.core.$strict>>;
793
+ }, z.core.$strip>>;
794
+ scheduling: z.ZodEnum<{
795
+ admitted: "admitted";
796
+ queued: "queued";
797
+ dispatching: "dispatching";
798
+ idle: "idle";
799
+ }>;
800
+ closed: z.ZodBoolean;
801
+ closeReason: z.ZodOptional<z.ZodString>;
802
+ cancellation: z.ZodOptional<z.ZodString>;
803
+ pendingResume: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
804
+ kind: z.ZodLiteral<"start">;
805
+ sessionId: z.ZodString;
806
+ runnerId: z.ZodOptional<z.ZodString>;
807
+ computeProfileId: z.ZodOptional<z.ZodString>;
808
+ scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
809
+ visibility: z.ZodLiteral<"organization">;
810
+ }, z.core.$strict>, z.ZodObject<{
811
+ visibility: z.ZodLiteral<"private">;
812
+ ownerUserId: z.ZodString;
813
+ }, z.core.$strict>], "visibility">;
814
+ spec: z.ZodObject<{
815
+ prompt: z.ZodString;
816
+ projectDir: z.ZodString;
817
+ harness: z.ZodEnum<{
818
+ "claude-code": "claude-code";
819
+ codex: "codex";
820
+ }>;
821
+ workflow: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
822
+ name: z.ZodString;
823
+ source: z.ZodOptional<z.ZodString>;
824
+ ref: z.ZodOptional<z.ZodString>;
825
+ version: z.ZodOptional<z.ZodString>;
826
+ }, z.core.$strict>]>>;
827
+ repository: z.ZodOptional<z.ZodObject<{
828
+ ref: z.ZodString;
829
+ commitSha: z.ZodString;
830
+ branch: z.ZodString;
831
+ workingDirectory: z.ZodString;
832
+ setupCommands: z.ZodArray<z.ZodString>;
833
+ configRevision: z.ZodNumber;
834
+ repositoryId: z.ZodNumber;
835
+ installationId: z.ZodNumber;
836
+ owner: z.ZodString;
837
+ name: z.ZodString;
838
+ bindingId: z.ZodString;
839
+ }, z.core.$strict>>;
840
+ }, z.core.$strict>;
841
+ key: z.ZodOptional<z.ZodString>;
842
+ delegation: z.ZodOptional<z.ZodObject<{
843
+ maxChildren: z.ZodNumber;
844
+ tokenBudget: z.ZodNumber;
845
+ }, z.core.$strict>>;
846
+ parent: z.ZodOptional<z.ZodObject<{
847
+ runId: z.ZodString;
848
+ tokenCap: z.ZodOptional<z.ZodNumber>;
849
+ }, z.core.$strict>>;
850
+ }, z.core.$strict>, z.ZodObject<{
851
+ kind: z.ZodLiteral<"cancel">;
852
+ }, z.core.$strict>, z.ZodObject<{
853
+ kind: z.ZodLiteral<"abandon">;
854
+ }, z.core.$strict>, z.ZodObject<{
855
+ kind: z.ZodLiteral<"steer">;
856
+ text: z.ZodString;
857
+ }, z.core.$strict>, z.ZodObject<{
858
+ kind: z.ZodLiteral<"answer">;
859
+ interruptionId: z.ZodString;
860
+ expectedInterruptionRevision: z.ZodNumber;
861
+ requestId: z.ZodOptional<z.ZodString>;
862
+ answer: z.ZodJSONSchema;
863
+ }, z.core.$strict>, z.ZodObject<{
864
+ kind: z.ZodLiteral<"resume">;
865
+ interruptionId: z.ZodString;
866
+ guidance: z.ZodOptional<z.ZodString>;
867
+ }, z.core.$strict>], "kind">>;
868
+ runnerStopped: z.ZodOptional<z.ZodBoolean>;
869
+ canAbandon: z.ZodOptional<z.ZodBoolean>;
870
+ historyThrough: z.ZodNumber;
871
+ expectedHistoryThrough: z.ZodOptional<z.ZodNumber>;
872
+ createdAt: z.ZodNumber;
873
+ checkpoint: z.ZodOptional<z.ZodObject<{
874
+ id: z.ZodString;
875
+ state: z.ZodEnum<{
876
+ pending: "pending";
877
+ ready: "ready";
878
+ }>;
879
+ checksum: z.ZodOptional<z.ZodString>;
880
+ }, z.core.$strip>>;
881
+ }, z.core.$strip>;
882
+ type RunView = z.infer<typeof runViewSchema>;
883
+ declare const clientFrameSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
884
+ type: z.ZodLiteral<"watch">;
885
+ hubEpoch: z.ZodString;
886
+ runIds: z.ZodArray<z.ZodString>;
887
+ }, z.core.$strict>, z.ZodObject<{
888
+ type: z.ZodLiteral<"watch.ack">;
889
+ subscriptionId: z.ZodString;
890
+ through: z.ZodNumber;
891
+ }, z.core.$strict>, z.ZodObject<{
892
+ type: z.ZodLiteral<"command.submit">;
893
+ command: z.ZodObject<{
894
+ commandId: z.ZodString;
895
+ hubEpoch: z.ZodString;
896
+ runId: z.ZodString;
897
+ expectedRecordRevision: z.ZodOptional<z.ZodNumber>;
898
+ intent: z.ZodDiscriminatedUnion<[z.ZodObject<{
899
+ kind: z.ZodLiteral<"start">;
900
+ sessionId: z.ZodString;
901
+ runnerId: z.ZodOptional<z.ZodString>;
902
+ computeProfileId: z.ZodOptional<z.ZodString>;
903
+ scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
904
+ visibility: z.ZodLiteral<"organization">;
905
+ }, z.core.$strict>, z.ZodObject<{
906
+ visibility: z.ZodLiteral<"private">;
907
+ ownerUserId: z.ZodString;
908
+ }, z.core.$strict>], "visibility">;
909
+ spec: z.ZodObject<{
910
+ prompt: z.ZodString;
911
+ projectDir: z.ZodString;
912
+ harness: z.ZodEnum<{
913
+ "claude-code": "claude-code";
914
+ codex: "codex";
915
+ }>;
916
+ workflow: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
917
+ name: z.ZodString;
918
+ source: z.ZodOptional<z.ZodString>;
919
+ ref: z.ZodOptional<z.ZodString>;
920
+ version: z.ZodOptional<z.ZodString>;
921
+ }, z.core.$strict>]>>;
922
+ repository: z.ZodOptional<z.ZodObject<{
923
+ ref: z.ZodString;
924
+ commitSha: z.ZodString;
925
+ branch: z.ZodString;
926
+ workingDirectory: z.ZodString;
927
+ setupCommands: z.ZodArray<z.ZodString>;
928
+ configRevision: z.ZodNumber;
929
+ repositoryId: z.ZodNumber;
930
+ installationId: z.ZodNumber;
931
+ owner: z.ZodString;
932
+ name: z.ZodString;
933
+ bindingId: z.ZodString;
934
+ }, z.core.$strict>>;
935
+ }, z.core.$strict>;
936
+ key: z.ZodOptional<z.ZodString>;
937
+ delegation: z.ZodOptional<z.ZodObject<{
938
+ maxChildren: z.ZodNumber;
939
+ tokenBudget: z.ZodNumber;
940
+ }, z.core.$strict>>;
941
+ parent: z.ZodOptional<z.ZodObject<{
942
+ runId: z.ZodString;
943
+ tokenCap: z.ZodOptional<z.ZodNumber>;
944
+ }, z.core.$strict>>;
945
+ }, z.core.$strict>, z.ZodObject<{
946
+ kind: z.ZodLiteral<"cancel">;
947
+ }, z.core.$strict>, z.ZodObject<{
948
+ kind: z.ZodLiteral<"abandon">;
949
+ }, z.core.$strict>, z.ZodObject<{
950
+ kind: z.ZodLiteral<"steer">;
951
+ text: z.ZodString;
952
+ }, z.core.$strict>, z.ZodObject<{
953
+ kind: z.ZodLiteral<"answer">;
954
+ interruptionId: z.ZodString;
955
+ expectedInterruptionRevision: z.ZodNumber;
956
+ requestId: z.ZodOptional<z.ZodString>;
957
+ answer: z.ZodJSONSchema;
958
+ }, z.core.$strict>, z.ZodObject<{
959
+ kind: z.ZodLiteral<"resume">;
960
+ interruptionId: z.ZodString;
961
+ guidance: z.ZodOptional<z.ZodString>;
962
+ }, z.core.$strict>], "kind">;
963
+ }, z.core.$strict>;
964
+ }, z.core.$strict>, z.ZodObject<{
965
+ type: z.ZodLiteral<"ping">;
966
+ nonce: z.ZodString;
967
+ }, z.core.$strict>], "type">;
968
+ /** Stable JSON encoding for duplicate detection; independent of object key insertion order. */
969
+ declare function canonicalJson(value: unknown): string;
970
+ declare const checkpointPathSchema: z.ZodString;
971
+ declare const checkpointSchema: z.ZodObject<{
972
+ version: z.ZodLiteral<1>;
973
+ checkpointId: z.ZodString;
974
+ orgId: z.ZodString;
975
+ phase: z.ZodEnum<{
976
+ parked: "parked";
977
+ terminal: "terminal";
978
+ }>;
979
+ runId: z.ZodString;
980
+ sessionId: z.ZodString;
981
+ sourceAttemptId: z.ZodString;
982
+ executionRevision: z.ZodNumber;
983
+ historyProduced: z.ZodNumber;
984
+ historyAck: z.ZodNumber;
985
+ grant: z.ZodObject<{
986
+ commandId: z.ZodString;
987
+ hubEpoch: z.ZodString;
988
+ runId: z.ZodString;
989
+ sessionId: z.ZodString;
990
+ runnerId: z.ZodString;
991
+ installationId: z.ZodString;
992
+ attemptId: z.ZodString;
993
+ generation: z.ZodNumber;
994
+ baseExecutionRevision: z.ZodNumber;
995
+ baseHistorySeq: z.ZodNumber;
996
+ cloudHistoryThrough: z.ZodNumber;
997
+ purpose: z.ZodEnum<{
998
+ start: "start";
999
+ resume: "resume";
1000
+ }>;
1001
+ spec: z.ZodObject<{
1002
+ prompt: z.ZodString;
1003
+ projectDir: z.ZodString;
1004
+ harness: z.ZodEnum<{
1005
+ "claude-code": "claude-code";
1006
+ codex: "codex";
1007
+ }>;
1008
+ workflow: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1009
+ name: z.ZodString;
1010
+ source: z.ZodOptional<z.ZodString>;
1011
+ ref: z.ZodOptional<z.ZodString>;
1012
+ version: z.ZodOptional<z.ZodString>;
1013
+ }, z.core.$strict>]>>;
1014
+ repository: z.ZodOptional<z.ZodObject<{
1015
+ ref: z.ZodString;
1016
+ commitSha: z.ZodString;
1017
+ branch: z.ZodString;
1018
+ workingDirectory: z.ZodString;
1019
+ setupCommands: z.ZodArray<z.ZodString>;
1020
+ configRevision: z.ZodNumber;
1021
+ repositoryId: z.ZodNumber;
1022
+ installationId: z.ZodNumber;
1023
+ owner: z.ZodString;
1024
+ name: z.ZodString;
1025
+ bindingId: z.ZodString;
1026
+ }, z.core.$strict>>;
1027
+ }, z.core.$strict>;
1028
+ continuation: z.ZodOptional<z.ZodJSONSchema>;
1029
+ previousRun: z.ZodOptional<z.ZodObject<{
1030
+ runId: z.ZodString;
1031
+ executionRevision: z.ZodNumber;
1032
+ historyProduced: z.ZodNumber;
1033
+ closeReason: z.ZodOptional<z.ZodLiteral<"abandoned">>;
1034
+ checkpoint: z.ZodOptional<z.ZodObject<{
1035
+ checkpointId: z.ZodString;
1036
+ checksum: z.ZodString;
1037
+ }, z.core.$strict>>;
1038
+ }, z.core.$strict>>;
1039
+ checkpoint: z.ZodOptional<z.ZodObject<{
1040
+ checkpointId: z.ZodString;
1041
+ checksum: z.ZodString;
1042
+ }, z.core.$strict>>;
1043
+ delegationToken: z.ZodOptional<z.ZodString>;
1044
+ parent: z.ZodOptional<z.ZodObject<{
1045
+ runId: z.ZodString;
1046
+ tokenCap: z.ZodNumber;
1047
+ }, z.core.$strict>>;
1048
+ }, z.core.$strict>;
1049
+ gitHead: z.ZodString;
1050
+ gitBase: z.ZodOptional<z.ZodString>;
1051
+ gitBundle: z.ZodString;
1052
+ indexPatch: z.ZodString;
1053
+ files: z.ZodArray<z.ZodObject<{
1054
+ path: z.ZodString;
1055
+ content: z.ZodString;
1056
+ executable: z.ZodBoolean;
1057
+ }, z.core.$strict>>;
1058
+ deleted: z.ZodArray<z.ZodString>;
1059
+ sessionRows: z.ZodArray<z.ZodObject<{
1060
+ kind: z.ZodString;
1061
+ id: z.ZodString;
1062
+ payload: z.ZodString;
1063
+ }, z.core.$strict>>;
1064
+ history: z.ZodArray<z.ZodObject<{
1065
+ seq: z.ZodNumber;
1066
+ record: z.ZodObject<{
1067
+ eventId: z.ZodString;
1068
+ attemptId: z.ZodString;
1069
+ emittedAt: z.ZodISODateTime;
1070
+ kind: z.ZodString;
1071
+ data: z.ZodJSONSchema;
1072
+ }, z.core.$strict>;
1073
+ }, z.core.$strict>>;
1074
+ }, z.core.$strict>;
1075
+ type Checkpoint = z.infer<typeof checkpointSchema>;
1076
+ /**
1077
+ * Connect (root ADR-0005): a member asks for a short, one-use Connect code bound to them and their Team, and a
1078
+ * machine redeems it for a Runner credential. Codes use an alphabet without look-alike characters and are
1079
+ * shown as `XXXX-XXXX`; redemption accepts either form.
1080
+ */
1081
+ declare const connectCodeAlphabet = "ABCDEFGHJKMNPQRSTUVWXYZ23456789";
1082
+ declare const connectCodeSchema: z.ZodString;
1083
+ declare const connectCodeRequestSchema: z.ZodObject<{
1084
+ hubEpoch: z.ZodString;
1085
+ }, z.core.$strict>;
1086
+ declare const connectCodeResponseSchema: z.ZodObject<{
1087
+ code: z.ZodString;
1088
+ expiresAt: z.ZodNumber;
1089
+ }, z.core.$strict>;
1090
+ /** What a machine presents when it redeems a Connect code. The Hub uses it to name the Runner, never for authority. */
1091
+ declare const connectRedeemRequestSchema: z.ZodObject<{
1092
+ code: z.ZodString;
1093
+ installationId: z.ZodString;
1094
+ hostname: z.ZodString;
1095
+ os: z.ZodString;
1096
+ softwareVersion: z.ZodString;
1097
+ }, z.core.$strict>;
1098
+ /** Everything the machine needs to run as this Runner; `token` is the only copy of the credential. */
1099
+ declare const connectRedeemResponseSchema: z.ZodObject<{
1100
+ orgId: z.ZodString;
1101
+ hubEpoch: z.ZodString;
1102
+ runnerId: z.ZodString;
1103
+ installationId: z.ZodString;
1104
+ name: z.ZodString;
1105
+ token: z.ZodString;
1106
+ credentialId: z.ZodString;
1107
+ expiresAt: z.ZodNumber;
1108
+ }, z.core.$strict>;
1109
+ /**
1110
+ * One Runner per machine per Team (root ADR-0005): redeeming from an installation that already has a Runner in the
1111
+ * code's Team is refused with `409` and this body, naming the Runner it already has. No credential is minted and
1112
+ * the code is not spent.
1113
+ */
1114
+ declare const connectAlreadyConnectedSchema: z.ZodObject<{
1115
+ error: z.ZodLiteral<"runner_already_connected">;
1116
+ orgId: z.ZodString;
1117
+ runnerId: z.ZodString;
1118
+ name: z.ZodString;
1119
+ }, z.core.$strict>;
1120
+ /** Personal: serves only the member who connected it. Team: serves every member (only an admin widens it). */
1121
+ declare const audienceSchema: z.ZodEnum<{
1122
+ personal: "personal";
1123
+ team: "team";
1124
+ }>;
1125
+ /** One entry of `GET /runners`. Runners enrolled before Connect, and managed Runners, carry no owner fields. */
1126
+ declare const runnerListEntrySchema: z.ZodObject<{
1127
+ id: z.ZodString;
1128
+ online: z.ZodNumber;
1129
+ capacity: z.ZodNumber;
1130
+ managed: z.ZodNumber;
1131
+ draining: z.ZodNumber;
1132
+ stopped: z.ZodNumber;
1133
+ name: z.ZodNullable<z.ZodString>;
1134
+ connectedBy: z.ZodNullable<z.ZodString>;
1135
+ audience: z.ZodNullable<z.ZodEnum<{
1136
+ personal: "personal";
1137
+ team: "team";
1138
+ }>>;
1139
+ softwareVersion: z.ZodNullable<z.ZodString>;
1140
+ lastSeen: z.ZodNullable<z.ZodNumber>;
1141
+ workflows: z.ZodOptional<z.ZodArray<z.ZodObject<{
1142
+ name: z.ZodString;
1143
+ version: z.ZodOptional<z.ZodString>;
1144
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
1145
+ kind: z.ZodLiteral<"builtin">;
1146
+ }, z.core.$strip>, z.ZodObject<{
1147
+ kind: z.ZodLiteral<"marketplace-remote">;
1148
+ ref: z.ZodString;
1149
+ }, z.core.$strip>, z.ZodObject<{
1150
+ kind: z.ZodLiteral<"marketplace-local">;
1151
+ repoDir: z.ZodString;
1152
+ workflowName: z.ZodString;
1153
+ }, z.core.$strip>, z.ZodObject<{
1154
+ kind: z.ZodLiteral<"filesystem">;
1155
+ path: z.ZodString;
1156
+ }, z.core.$strip>, z.ZodObject<{
1157
+ kind: z.ZodLiteral<"unknown">;
1158
+ }, z.core.$strip>], "kind">;
1159
+ }, z.core.$strip>>>;
1160
+ readOnly: z.ZodOptional<z.ZodBoolean>;
1161
+ readiness: z.ZodOptional<z.ZodObject<{
1162
+ 'claude-code': z.ZodOptional<z.ZodObject<{
1163
+ installed: z.ZodBoolean;
1164
+ signedIn: z.ZodBoolean;
1165
+ }, z.core.$strict>>;
1166
+ codex: z.ZodOptional<z.ZodObject<{
1167
+ installed: z.ZodBoolean;
1168
+ signedIn: z.ZodBoolean;
1169
+ }, z.core.$strict>>;
1170
+ }, z.core.$strict>>;
1171
+ updateRequired: z.ZodOptional<z.ZodBoolean>;
1172
+ needsOwner: z.ZodOptional<z.ZodBoolean>;
1173
+ }, z.core.$strip>;
1174
+ /** Where a member's Runs go when nothing else decides: a Team-audience Runner or a cloud compute profile. */
1175
+ declare const teamDefaultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1176
+ kind: z.ZodLiteral<"runner">;
1177
+ runnerId: z.ZodString;
1178
+ }, z.core.$strict>, z.ZodObject<{
1179
+ kind: z.ZodLiteral<"profile">;
1180
+ profileId: z.ZodString;
1181
+ }, z.core.$strict>], "kind">;
1182
+ /** `POST /team-default` (admin only); `null` clears it. */
1183
+ declare const teamDefaultRequestSchema: z.ZodObject<{
1184
+ hubEpoch: z.ZodString;
1185
+ teamDefault: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1186
+ kind: z.ZodLiteral<"runner">;
1187
+ runnerId: z.ZodString;
1188
+ }, z.core.$strict>, z.ZodObject<{
1189
+ kind: z.ZodLiteral<"profile">;
1190
+ profileId: z.ZodString;
1191
+ }, z.core.$strict>], "kind">>;
1192
+ }, z.core.$strict>;
1193
+ /**
1194
+ * `POST /runners/<id>`: rename, set how many Runs it takes in parallel, or change its Audience. Its connected-by
1195
+ * member may rename it, set its capacity and narrow it to Personal; only an admin may widen it to Team.
1196
+ */
1197
+ declare const runnerUpdateRequestSchema: z.ZodObject<{
1198
+ hubEpoch: z.ZodString;
1199
+ name: z.ZodOptional<z.ZodString>;
1200
+ capacity: z.ZodOptional<z.ZodNumber>;
1201
+ audience: z.ZodOptional<z.ZodEnum<{
1202
+ personal: "personal";
1203
+ team: "team";
1204
+ }>>;
1205
+ }, z.core.$strict>;
1206
+ /** Where the viewer's next Run goes when it names no Runner (root ADR-0005), or why it cannot start. */
1207
+ declare const runsGoToSchema: z.ZodUnion<readonly [z.ZodObject<{
1208
+ via: z.ZodLiteral<"personal">;
1209
+ runnerId: z.ZodString;
1210
+ }, z.core.$strict>, z.ZodObject<{
1211
+ via: z.ZodLiteral<"team_default">;
1212
+ runnerId: z.ZodString;
1213
+ }, z.core.$strict>, z.ZodObject<{
1214
+ via: z.ZodLiteral<"team_default">;
1215
+ profileId: z.ZodString;
1216
+ }, z.core.$strict>, z.ZodObject<{
1217
+ via: z.ZodLiteral<"none">;
1218
+ reason: z.ZodEnum<{
1219
+ runner_needs_owner: "runner_needs_owner";
1220
+ no_runner_available: "no_runner_available";
1221
+ }>;
1222
+ }, z.core.$strict>]>;
1223
+ declare const runnerListSchema: z.ZodObject<{
1224
+ capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
1225
+ historyRetentionDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1226
+ viewer: z.ZodOptional<z.ZodObject<{
1227
+ userId: z.ZodString;
1228
+ admin: z.ZodBoolean;
1229
+ }, z.core.$strip>>;
1230
+ teamDefault: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1231
+ kind: z.ZodLiteral<"runner">;
1232
+ runnerId: z.ZodString;
1233
+ }, z.core.$strict>, z.ZodObject<{
1234
+ kind: z.ZodLiteral<"profile">;
1235
+ profileId: z.ZodString;
1236
+ }, z.core.$strict>], "kind">>>;
1237
+ runsGoTo: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1238
+ via: z.ZodLiteral<"personal">;
1239
+ runnerId: z.ZodString;
1240
+ }, z.core.$strict>, z.ZodObject<{
1241
+ via: z.ZodLiteral<"team_default">;
1242
+ runnerId: z.ZodString;
1243
+ }, z.core.$strict>, z.ZodObject<{
1244
+ via: z.ZodLiteral<"team_default">;
1245
+ profileId: z.ZodString;
1246
+ }, z.core.$strict>, z.ZodObject<{
1247
+ via: z.ZodLiteral<"none">;
1248
+ reason: z.ZodEnum<{
1249
+ runner_needs_owner: "runner_needs_owner";
1250
+ no_runner_available: "no_runner_available";
1251
+ }>;
1252
+ }, z.core.$strict>]>>;
1253
+ minimumRunnerVersion: z.ZodOptional<z.ZodString>;
1254
+ runners: z.ZodArray<z.ZodObject<{
1255
+ id: z.ZodString;
1256
+ online: z.ZodNumber;
1257
+ capacity: z.ZodNumber;
1258
+ managed: z.ZodNumber;
1259
+ draining: z.ZodNumber;
1260
+ stopped: z.ZodNumber;
1261
+ name: z.ZodNullable<z.ZodString>;
1262
+ connectedBy: z.ZodNullable<z.ZodString>;
1263
+ audience: z.ZodNullable<z.ZodEnum<{
1264
+ personal: "personal";
1265
+ team: "team";
1266
+ }>>;
1267
+ softwareVersion: z.ZodNullable<z.ZodString>;
1268
+ lastSeen: z.ZodNullable<z.ZodNumber>;
1269
+ workflows: z.ZodOptional<z.ZodArray<z.ZodObject<{
1270
+ name: z.ZodString;
1271
+ version: z.ZodOptional<z.ZodString>;
1272
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
1273
+ kind: z.ZodLiteral<"builtin">;
1274
+ }, z.core.$strip>, z.ZodObject<{
1275
+ kind: z.ZodLiteral<"marketplace-remote">;
1276
+ ref: z.ZodString;
1277
+ }, z.core.$strip>, z.ZodObject<{
1278
+ kind: z.ZodLiteral<"marketplace-local">;
1279
+ repoDir: z.ZodString;
1280
+ workflowName: z.ZodString;
1281
+ }, z.core.$strip>, z.ZodObject<{
1282
+ kind: z.ZodLiteral<"filesystem">;
1283
+ path: z.ZodString;
1284
+ }, z.core.$strip>, z.ZodObject<{
1285
+ kind: z.ZodLiteral<"unknown">;
1286
+ }, z.core.$strip>], "kind">;
1287
+ }, z.core.$strip>>>;
1288
+ readOnly: z.ZodOptional<z.ZodBoolean>;
1289
+ readiness: z.ZodOptional<z.ZodObject<{
1290
+ 'claude-code': z.ZodOptional<z.ZodObject<{
1291
+ installed: z.ZodBoolean;
1292
+ signedIn: z.ZodBoolean;
1293
+ }, z.core.$strict>>;
1294
+ codex: z.ZodOptional<z.ZodObject<{
1295
+ installed: z.ZodBoolean;
1296
+ signedIn: z.ZodBoolean;
1297
+ }, z.core.$strict>>;
1298
+ }, z.core.$strict>>;
1299
+ updateRequired: z.ZodOptional<z.ZodBoolean>;
1300
+ needsOwner: z.ZodOptional<z.ZodBoolean>;
1301
+ }, z.core.$strip>>;
1302
+ profiles: z.ZodArray<z.ZodObject<{
1303
+ id: z.ZodString;
1304
+ label: z.ZodString;
1305
+ projectDir: z.ZodString;
1306
+ repositoryRequired: z.ZodOptional<z.ZodBoolean>;
1307
+ workflows: z.ZodOptional<z.ZodArray<z.ZodString>>;
1308
+ workflowSources: z.ZodOptional<z.ZodArray<z.ZodString>>;
1309
+ }, z.core.$strip>>;
1310
+ }, z.core.$strip>;
1311
+ type ConnectRedeemRequest = z.infer<typeof connectRedeemRequestSchema>;
1312
+ /**
1313
+ * Disconnect (root ADR-0005) ends a Runner's membership in its Team. From Settings, a member posts it for a Runner
1314
+ * they connected (an admin, for any Runner) to `/runners/{id}/disconnect`; from the machine, the Runner posts it
1315
+ * with its own credential to `/runner/disconnect`. A Disconnected Runner's next contact is refused with
1316
+ * `runner_disconnected` (HTTP 410, or an `error` frame on a live instance socket).
1317
+ */
1318
+ declare const runnerDisconnectRequestSchema: z.ZodObject<{
1319
+ hubEpoch: z.ZodString;
1320
+ }, z.core.$strict>;
1321
+ /** A body that carries only the Hub epoch it was made against: Disconnect and adopt. */
1322
+ declare const hubEpochRequestSchema: z.ZodObject<{
1323
+ hubEpoch: z.ZodString;
1324
+ }, z.core.$strict>;
1325
+ /** What a Disconnect will stop, for its confirmation. Runs the viewer cannot see are counted, never named. */
1326
+ declare const runnerDisconnectPreviewSchema: z.ZodObject<{
1327
+ runnerId: z.ZodString;
1328
+ name: z.ZodNullable<z.ZodString>;
1329
+ runs: z.ZodArray<z.ZodObject<{
1330
+ runId: z.ZodString;
1331
+ label: z.ZodOptional<z.ZodString>;
1332
+ state: z.ZodEnum<{
1333
+ parked: "parked";
1334
+ queued: "queued";
1335
+ working: "working";
1336
+ }>;
1337
+ }, z.core.$strip>>;
1338
+ hiddenRuns: z.ZodNumber;
1339
+ }, z.core.$strip>;
1340
+ declare const runnerDisconnectResponseSchema: z.ZodObject<{
1341
+ disconnected: z.ZodLiteral<true>;
1342
+ stoppedRuns: z.ZodNumber;
1343
+ }, z.core.$strip>;
1344
+ /**
1345
+ * `POST /runners/{id}/adopt` (admin only): take over a Runner paused as "Needs an owner" as its connected-by
1346
+ * member, so it serves again with its Audience, name and capacity unchanged. Answers the updated Runner-list
1347
+ * entry; a Runner that is not paused answers `runner_not_paused`.
1348
+ */
1349
+ declare const runnerAdoptRequestSchema: z.ZodObject<{
1350
+ hubEpoch: z.ZodString;
1351
+ }, z.core.$strict>;
1352
+ type RunnerAdoptRequest = z.infer<typeof runnerAdoptRequestSchema>;
1353
+ type RunnerDisconnectPreview = z.infer<typeof runnerDisconnectPreviewSchema>;
1354
+ type RunnerDisconnectResponse = z.infer<typeof runnerDisconnectResponseSchema>;
1355
+ type ConnectRedeemResponse = z.infer<typeof connectRedeemResponseSchema>;
1356
+ type ConnectAlreadyConnected = z.infer<typeof connectAlreadyConnectedSchema>;
1357
+ type RunnerListEntry = z.infer<typeof runnerListEntrySchema>;
1358
+ type RunnerList = z.infer<typeof runnerListSchema>;
1359
+ /**
1360
+ * The machine-initiated door of Connect (root ADR-0005). A machine with no credential asks for a Connect code
1361
+ * (`connectStart`), prints it with the approval URL and polls with its secret `deviceCode` (`connectPoll`). A
1362
+ * signed-in member sees what is asking (`connectPending`) and approves it into one of their Teams with an
1363
+ * Audience (`connectApprove`), or denies it (`connectDeny`). The approved poll answers a `connectRedeem` credential.
1364
+ */
1365
+ declare const connectStartRequestSchema: z.ZodObject<{
1366
+ installationId: z.ZodString;
1367
+ softwareVersion: z.ZodString;
1368
+ hostname: z.ZodString;
1369
+ os: z.ZodString;
1370
+ }, z.core.$strict>;
1371
+ declare const connectStartResponseSchema: z.ZodObject<{
1372
+ deviceCode: z.ZodString;
1373
+ code: z.ZodString;
1374
+ expiresAt: z.ZodNumber;
1375
+ intervalSec: z.ZodNumber;
1376
+ verificationUrl: z.ZodString;
1377
+ }, z.core.$strict>;
1378
+ declare const connectPollRequestSchema: z.ZodObject<{
1379
+ deviceCode: z.ZodString;
1380
+ }, z.core.$strict>;
1381
+ /** What the approval page shows about the machine: what the machine says about itself, never authority. */
1382
+ declare const connectPendingResponseSchema: z.ZodObject<{
1383
+ hostname: z.ZodString;
1384
+ os: z.ZodString;
1385
+ softwareVersion: z.ZodString;
1386
+ requestedAt: z.ZodNumber;
1387
+ expiresAt: z.ZodNumber;
1388
+ }, z.core.$strict>;
1389
+ declare const connectApproveRequestSchema: z.ZodObject<{
1390
+ code: z.ZodString;
1391
+ audience: z.ZodEnum<{
1392
+ personal: "personal";
1393
+ team: "team";
1394
+ }>;
1395
+ hubEpoch: z.ZodOptional<z.ZodString>;
1396
+ }, z.core.$strict>;
1397
+ declare const connectDenyRequestSchema: z.ZodObject<{
1398
+ code: z.ZodString;
1399
+ }, z.core.$strict>;
1400
+ type Audience = z.infer<typeof audienceSchema>;
1401
+ type ConnectStartRequest = z.infer<typeof connectStartRequestSchema>;
1402
+ type ConnectStartResponse = z.infer<typeof connectStartResponseSchema>;
1403
+ type ConnectPendingResponse = z.infer<typeof connectPendingResponseSchema>;
1404
+ type TeamDefault = z.infer<typeof teamDefaultSchema>;
1405
+ type RunsGoTo = z.infer<typeof runsGoToSchema>;
1406
+
1407
+ export { type Audience, type BuildCloseReason, type Checkpoint, type Command, type ConnectAlreadyConnected, type ConnectPendingResponse, type ConnectRedeemRequest, type ConnectRedeemResponse, type ConnectStartRequest, type ConnectStartResponse, type ControlRecord, type Delegation, type ExecutionFact, type Grant, type Harness, type HarnessReadiness, type HistoryRecord, type InstalledWorkflow, type RepositoryBinding, type RepositorySource, type RunCloseReason, type RunParent, type RunView, type RunnerAdoptRequest, type RunnerDisconnectPreview, type RunnerDisconnectResponse, type RunnerFrame, type RunnerList, type RunnerListEntry, type RunnerReadiness, type RunsGoTo, type Scope, type TeamDefault, type WorkflowIdentity, type WorkflowInstallReference, type WorkflowReference, abandonedConversationContinuationCapability, audienceSchema, buildCloseReasonSchema, canonicalJson, checkpointPathSchema, checkpointSchema, clientFrameSchema, commandSchema, connectAlreadyConnectedSchema, connectApproveRequestSchema, connectCodeAlphabet, connectCodeRequestSchema, connectCodeResponseSchema, connectCodeSchema, connectDenyRequestSchema, connectPendingResponseSchema, connectPollRequestSchema, connectRedeemRequestSchema, connectRedeemResponseSchema, connectStartRequestSchema, connectStartResponseSchema, controlRecordSchema, conversationContinuationCapability, delegationSchema, delegationTokenPrefix, grantSchema, harnessReadinessSchema, harnessSchema, historyRecordSchema, hubEpochRequestSchema, installReference, installedWorkflowsSchema, interruptionSchema, permissionAnswerSchema, protocolVersion, readableHistory, readinessFixCommand, repositoryAccessCapability, repositoryBindingSchema, repositoryRefSchema, repositorySourceSchema, repositoryWorkingDirectorySchema, runArtifactMaxBytes, runArtifactNameSchema, runCloseReasonSchema, runDelegationCapability, runKeySchema, runParentIntentSchema, runParentSchema, runSpecSchema, runViewSchema, runnerAdoptRequestSchema, runnerDisconnectPreviewSchema, runnerDisconnectRequestSchema, runnerDisconnectResponseSchema, runnerFrameSchema, runnerListEntrySchema, runnerListSchema, runnerReadinessSchema, runnerUpdateCommand, runnerUpdateRequestSchema, runsGoToSchema, sameWorkflow, scopeSchema, secretEnvironmentSchema, sequence, teamDefaultRequestSchema, teamDefaultSchema, workflowIdentitySchema, workflowInstallCapability, workflowName, workflowReferenceSchema, workflowSourceSchema };