@stitchmux/client 0.0.0-stage → 0.96.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.
Files changed (103) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +45 -2
  3. package/dist/chunk-szdg2ww3.js +714 -0
  4. package/dist/index.js +4070 -0
  5. package/dist/monitoring.js +279 -0
  6. package/native-stream.json +8 -0
  7. package/package.json +36 -4
  8. package/types/src/agent/claude/native/commandSchema.d.ts +14 -0
  9. package/types/src/agent/custom/config.d.ts +159 -0
  10. package/types/src/agent/custom/endpoint.d.ts +26 -0
  11. package/types/src/agent/transcript/messageSchema.d.ts +153 -0
  12. package/types/src/attachments/reference.d.ts +56 -0
  13. package/types/src/attachments/schema.d.ts +512 -0
  14. package/types/src/chat/communicationAuthorizationSchema.d.ts +77 -0
  15. package/types/src/chat/communicationReceiptSchema.d.ts +82 -0
  16. package/types/src/chat/feedSchema.d.ts +641 -0
  17. package/types/src/chat/holdKind.d.ts +26 -0
  18. package/types/src/chat/identity.d.ts +55 -0
  19. package/types/src/chat/identitySchema.d.ts +121 -0
  20. package/types/src/chat/letterRequestSchema.d.ts +35 -0
  21. package/types/src/chat/messageOperationSchema.d.ts +277 -0
  22. package/types/src/chat/messageSchema.d.ts +284 -0
  23. package/types/src/chat/originSchema.d.ts +67 -0
  24. package/types/src/chat/sentLetterSchema.d.ts +79 -0
  25. package/types/src/client.d.ts +16 -0
  26. package/types/src/config/claudeProfileSchema.d.ts +22 -0
  27. package/types/src/config/launchSchema.d.ts +136 -0
  28. package/types/src/config/location.d.ts +6 -0
  29. package/types/src/config/machineSchema.d.ts +320 -0
  30. package/types/src/config/modelSelectionFlags.d.ts +4 -0
  31. package/types/src/config/paths.d.ts +87 -0
  32. package/types/src/config/remoteTransport.d.ts +12 -0
  33. package/types/src/content/schema.d.ts +312 -0
  34. package/types/src/content/toolSchema.d.ts +36 -0
  35. package/types/src/context/corpusSearchSchema.d.ts +578 -0
  36. package/types/src/context/exactMessageSchema.d.ts +54 -0
  37. package/types/src/context/messageSenderSchema.d.ts +14 -0
  38. package/types/src/context/schema.d.ts +176 -0
  39. package/types/src/context/searchFrames.d.ts +225 -0
  40. package/types/src/context/searchRequestSchema.d.ts +47 -0
  41. package/types/src/context/transcriptJsonSchema.d.ts +210 -0
  42. package/types/src/control/schema/context.d.ts +188 -0
  43. package/types/src/control/schema/contract.d.ts +7142 -0
  44. package/types/src/control/schema/core.d.ts +722 -0
  45. package/types/src/control/schema/directory.d.ts +34 -0
  46. package/types/src/control/schema/eventsContract.d.ts +1423 -0
  47. package/types/src/control/schema/externalList.d.ts +96 -0
  48. package/types/src/control/schema/message.d.ts +280 -0
  49. package/types/src/control/schema/model.d.ts +128 -0
  50. package/types/src/control/schema/native.d.ts +664 -0
  51. package/types/src/control/schema/nativeStreamContract.d.ts +155 -0
  52. package/types/src/control/schema/performance.d.ts +85 -0
  53. package/types/src/control/schema/public.d.ts +48 -0
  54. package/types/src/control/schema/reading.d.ts +24 -0
  55. package/types/src/control/schema/refusals.d.ts +433 -0
  56. package/types/src/control/schema/runtimeOps.d.ts +724 -0
  57. package/types/src/control/schema/searchContract.d.ts +258 -0
  58. package/types/src/control/schema/selection.d.ts +124 -0
  59. package/types/src/control/schema/session.d.ts +272 -0
  60. package/types/src/control/schema/terminalPrompt.d.ts +102 -0
  61. package/types/src/control/transport/boundary.d.ts +7137 -0
  62. package/types/src/control/transport/client.d.ts +10838 -0
  63. package/types/src/control/transport/connection.d.ts +13 -0
  64. package/types/src/control/transport/socketPath.d.ts +3 -0
  65. package/types/src/control-client.d.ts +9 -0
  66. package/types/src/delegation/applicationSchema.d.ts +132 -0
  67. package/types/src/delegation/schema.d.ts +267 -0
  68. package/types/src/events/schema.d.ts +155 -0
  69. package/types/src/external/contentSchema.d.ts +145 -0
  70. package/types/src/external/messageSchema.d.ts +131 -0
  71. package/types/src/external/residentFrames.d.ts +130 -0
  72. package/types/src/external/residentSchema.d.ts +144 -0
  73. package/types/src/external/sessionSchema.d.ts +427 -0
  74. package/types/src/external/turnSchema.d.ts +55 -0
  75. package/types/src/fleet/fleetSchema.d.ts +937 -0
  76. package/types/src/inventory/listSchema.d.ts +442 -0
  77. package/types/src/monitoring/nativeFile.d.ts +7 -0
  78. package/types/src/monitoring/nativeRead.d.ts +14 -0
  79. package/types/src/monitoring/performanceSchema.d.ts +28 -0
  80. package/types/src/monitoring/schema.d.ts +410 -0
  81. package/types/src/monitoring/validate.d.ts +5 -0
  82. package/types/src/monitoring-reader.d.ts +4 -0
  83. package/types/src/policy/reference.d.ts +93 -0
  84. package/types/src/policy/runtimeProfile.d.ts +24 -0
  85. package/types/src/policy/schema.d.ts +177 -0
  86. package/types/src/runtime/capabilities.d.ts +124 -0
  87. package/types/src/runtime/modes.d.ts +47 -0
  88. package/types/src/runtime/permissionScope.d.ts +22 -0
  89. package/types/src/runtime/planLimitsSchema.d.ts +55 -0
  90. package/types/src/runtime/projectionSchema.d.ts +539 -0
  91. package/types/src/runtime/rewindSchema.d.ts +16 -0
  92. package/types/src/runtime/selectionSchema.d.ts +158 -0
  93. package/types/src/runtime/workloadContract.d.ts +55 -0
  94. package/types/src/session/boundary.d.ts +43 -0
  95. package/types/src/session/identitySchema.d.ts +353 -0
  96. package/types/src/session/schema.d.ts +341 -0
  97. package/types/src/session/sleep/schema.d.ts +283 -0
  98. package/types/src/steering/schema.d.ts +197 -0
  99. package/types/src/types.d.ts +48 -0
  100. package/types/src/usage/schema.d.ts +978 -0
  101. package/types/src/util/home.d.ts +9 -0
  102. package/types/src/util/preview.d.ts +13 -0
  103. package/types/src/util/version.d.ts +3 -0
@@ -0,0 +1,664 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * A transcript window asked for over the control plane.
4
+ *
5
+ * The same three questions the command line accepts — the newest `tail`, everything after a
6
+ * `cursor`, a page `before` a line — because they are the same question, and a second vocabulary
7
+ * for it would mean two ways to page through one conversation.
8
+ *
9
+ * Bounded here rather than downstream: this answer travels a response budget, and a caller asking
10
+ * for two thousand messages at full text would be refused by the transport with a size error that
11
+ * says nothing about what to ask for instead.
12
+ */
13
+ export declare const ControlTranscriptReadSchema: z.ZodObject<{
14
+ target: z.ZodObject<{
15
+ kind: z.ZodLiteral<"managed">;
16
+ source: z.ZodLiteral<"stitchmux">;
17
+ machine: z.ZodString;
18
+ agent: z.ZodEnum<{
19
+ antigravity: "antigravity";
20
+ claude: "claude";
21
+ codex: "codex";
22
+ custom: "custom";
23
+ opencode: "opencode";
24
+ }>;
25
+ session: z.ZodString;
26
+ threadId: z.ZodUUID;
27
+ }, z.core.$strict>;
28
+ tail: z.ZodDefault<z.ZodNumber>;
29
+ cursor: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
30
+ before: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
31
+ limit: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
32
+ textLimit: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
33
+ agent: z.ZodDefault<z.ZodNullable<z.ZodString>>;
34
+ }, z.core.$strict>;
35
+ export declare const ControlTranscriptResultSchema: z.ZodObject<{
36
+ version: z.ZodString;
37
+ generatedAt: z.ZodString;
38
+ session: z.ZodObject<{
39
+ name: z.ZodString;
40
+ uuid: z.ZodString;
41
+ rc: z.ZodString;
42
+ dir: z.ZodString;
43
+ machine: z.ZodString;
44
+ }, z.core.$strip>;
45
+ source: z.ZodObject<{
46
+ kind: z.ZodString;
47
+ path: z.ZodString;
48
+ available: z.ZodBoolean;
49
+ error: z.ZodNullable<z.ZodString>;
50
+ }, z.core.$strip>;
51
+ cursor: z.ZodObject<{
52
+ opaque: z.ZodNullable<z.ZodString>;
53
+ line: z.ZodNullable<z.ZodNumber>;
54
+ byteOffset: z.ZodNull;
55
+ mtimeMs: z.ZodNullable<z.ZodNumber>;
56
+ }, z.core.$strip>;
57
+ window: z.ZodObject<{
58
+ firstLine: z.ZodNumber;
59
+ lastLine: z.ZodNumber;
60
+ reachedStart: z.ZodBoolean;
61
+ earlierFiles: z.ZodNumber;
62
+ }, z.core.$strip>;
63
+ stats: z.ZodObject<{
64
+ messages: z.ZodNumber;
65
+ user: z.ZodNumber;
66
+ assistant: z.ZodNumber;
67
+ toolCalls: z.ZodNumber;
68
+ thinking: z.ZodNumber;
69
+ usage: z.ZodOptional<z.ZodObject<{
70
+ values: z.ZodObject<{
71
+ inputTokens: z.ZodNullable<z.ZodInt>;
72
+ outputTokens: z.ZodNullable<z.ZodInt>;
73
+ cacheReadTokens: z.ZodNullable<z.ZodInt>;
74
+ cacheCreationTokens: z.ZodNullable<z.ZodInt>;
75
+ reasoningTokens: z.ZodNullable<z.ZodInt>;
76
+ totalTokens: z.ZodNullable<z.ZodInt>;
77
+ }, z.core.$strict>;
78
+ observations: z.ZodInt;
79
+ measured: z.ZodRecord<z.ZodEnum<{
80
+ cacheCreationTokens: "cacheCreationTokens";
81
+ cacheReadTokens: "cacheReadTokens";
82
+ inputTokens: "inputTokens";
83
+ outputTokens: "outputTokens";
84
+ reasoningTokens: "reasoningTokens";
85
+ totalTokens: "totalTokens";
86
+ }>, z.ZodInt>;
87
+ fieldCoverage: z.ZodRecord<z.ZodEnum<{
88
+ cacheCreationTokens: "cacheCreationTokens";
89
+ cacheReadTokens: "cacheReadTokens";
90
+ inputTokens: "inputTokens";
91
+ outputTokens: "outputTokens";
92
+ reasoningTokens: "reasoningTokens";
93
+ totalTokens: "totalTokens";
94
+ }>, z.ZodEnum<{
95
+ full: "full";
96
+ partial: "partial";
97
+ unknown: "unknown";
98
+ }>>;
99
+ coverage: z.ZodEnum<{
100
+ full: "full";
101
+ partial: "partial";
102
+ unknown: "unknown";
103
+ }>;
104
+ costs: z.ZodArray<z.ZodObject<{
105
+ currency: z.ZodString;
106
+ reported: z.ZodNumber;
107
+ observations: z.ZodInt;
108
+ provenance: z.ZodNullable<z.ZodString>;
109
+ }, z.core.$strict>>;
110
+ }, z.core.$strict>>;
111
+ }, z.core.$strip>;
112
+ messages: z.ZodArray<z.ZodObject<{
113
+ id: z.ZodString;
114
+ seq: z.ZodNumber;
115
+ createdAt: z.ZodNullable<z.ZodString>;
116
+ role: z.ZodEnum<{
117
+ assistant: "assistant";
118
+ system: "system";
119
+ tool: "tool";
120
+ unknown: "unknown";
121
+ user: "user";
122
+ }>;
123
+ kind: z.ZodEnum<{
124
+ event: "event";
125
+ image: "image";
126
+ message: "message";
127
+ thinking: "thinking";
128
+ tool_call: "tool_call";
129
+ tool_result: "tool_result";
130
+ unknown: "unknown";
131
+ }>;
132
+ text: z.ZodNullable<z.ZodString>;
133
+ title: z.ZodNullable<z.ZodString>;
134
+ toolName: z.ZodNullable<z.ZodString>;
135
+ toolCallId: z.ZodNullable<z.ZodString>;
136
+ status: z.ZodNullable<z.ZodEnum<{
137
+ error: "error";
138
+ }>>;
139
+ rawType: z.ZodNullable<z.ZodString>;
140
+ done: z.ZodBoolean;
141
+ result: z.ZodNullable<z.ZodString>;
142
+ input: z.ZodNullable<z.ZodString>;
143
+ image: z.ZodDefault<z.ZodNullable<z.ZodObject<{
144
+ address: z.ZodString;
145
+ mediaType: z.ZodNullable<z.ZodString>;
146
+ bytes: z.ZodNullable<z.ZodNumber>;
147
+ digest: z.ZodNullable<z.ZodString>;
148
+ unavailable: z.ZodNullable<z.ZodEnum<{
149
+ malformed: "malformed";
150
+ "too-large": "too-large";
151
+ "unsupported-source": "unsupported-source";
152
+ }>>;
153
+ }, z.core.$strip>>>;
154
+ resultImages: z.ZodOptional<z.ZodArray<z.ZodObject<{
155
+ address: z.ZodString;
156
+ mediaType: z.ZodNullable<z.ZodString>;
157
+ bytes: z.ZodNullable<z.ZodNumber>;
158
+ digest: z.ZodNullable<z.ZodString>;
159
+ unavailable: z.ZodNullable<z.ZodEnum<{
160
+ malformed: "malformed";
161
+ "too-large": "too-large";
162
+ "unsupported-source": "unsupported-source";
163
+ }>>;
164
+ }, z.core.$strip>>>;
165
+ usage: z.ZodDefault<z.ZodNullable<z.ZodObject<{
166
+ inputTokens: z.ZodNullable<z.ZodNumber>;
167
+ outputTokens: z.ZodNullable<z.ZodNumber>;
168
+ cacheReadTokens: z.ZodNullable<z.ZodNumber>;
169
+ cacheCreationTokens: z.ZodNullable<z.ZodNumber>;
170
+ }, z.core.$strip>>>;
171
+ resultText: z.ZodNullable<z.ZodString>;
172
+ doneAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
173
+ agent: z.ZodDefault<z.ZodNullable<z.ZodObject<{
174
+ id: z.ZodString;
175
+ type: z.ZodNullable<z.ZodString>;
176
+ description: z.ZodNullable<z.ZodString>;
177
+ model: z.ZodNullable<z.ZodString>;
178
+ state: z.ZodEnum<{
179
+ finished: "finished";
180
+ running: "running";
181
+ }>;
182
+ startedAt: z.ZodNullable<z.ZodString>;
183
+ finishedAt: z.ZodNullable<z.ZodString>;
184
+ toolCalls: z.ZodNullable<z.ZodNumber>;
185
+ usage: z.ZodNullable<z.ZodObject<{
186
+ inputTokens: z.ZodNullable<z.ZodNumber>;
187
+ outputTokens: z.ZodNullable<z.ZodNumber>;
188
+ cacheReadTokens: z.ZodNullable<z.ZodNumber>;
189
+ cacheCreationTokens: z.ZodNullable<z.ZodNumber>;
190
+ }, z.core.$strip>>;
191
+ available: z.ZodBoolean;
192
+ }, z.core.$strip>>>;
193
+ }, z.core.$strip>>;
194
+ target: z.ZodObject<{
195
+ kind: z.ZodLiteral<"managed">;
196
+ source: z.ZodLiteral<"stitchmux">;
197
+ machine: z.ZodString;
198
+ agent: z.ZodEnum<{
199
+ antigravity: "antigravity";
200
+ claude: "claude";
201
+ codex: "codex";
202
+ custom: "custom";
203
+ opencode: "opencode";
204
+ }>;
205
+ session: z.ZodString;
206
+ threadId: z.ZodUUID;
207
+ }, z.core.$strict>;
208
+ }, z.core.$strict>;
209
+ export declare const ControlNativeCursorSchema: z.ZodObject<{
210
+ generation: z.ZodUUID;
211
+ sequence: z.ZodNumber;
212
+ }, z.core.$strict>;
213
+ export declare const ControlNativeReadSchema: z.ZodObject<{
214
+ target: z.ZodObject<{
215
+ kind: z.ZodLiteral<"managed">;
216
+ source: z.ZodLiteral<"stitchmux">;
217
+ machine: z.ZodString;
218
+ agent: z.ZodEnum<{
219
+ antigravity: "antigravity";
220
+ claude: "claude";
221
+ codex: "codex";
222
+ custom: "custom";
223
+ opencode: "opencode";
224
+ }>;
225
+ session: z.ZodString;
226
+ threadId: z.ZodUUID;
227
+ }, z.core.$strict>;
228
+ cursor: z.ZodDefault<z.ZodNullable<z.ZodObject<{
229
+ generation: z.ZodUUID;
230
+ sequence: z.ZodNumber;
231
+ }, z.core.$strict>>>;
232
+ }, z.core.$strict>;
233
+ export declare const ControlNativeSnapshotSchema: z.ZodObject<{
234
+ protocol: z.ZodLiteral<1>;
235
+ target: z.ZodObject<{
236
+ kind: z.ZodLiteral<"managed">;
237
+ source: z.ZodLiteral<"stitchmux">;
238
+ machine: z.ZodString;
239
+ agent: z.ZodEnum<{
240
+ antigravity: "antigravity";
241
+ claude: "claude";
242
+ codex: "codex";
243
+ custom: "custom";
244
+ opencode: "opencode";
245
+ }>;
246
+ session: z.ZodString;
247
+ threadId: z.ZodUUID;
248
+ }, z.core.$strict>;
249
+ registrationGeneration: z.ZodNullable<z.ZodUUID>;
250
+ nativeId: z.ZodString;
251
+ generation: z.ZodUUID;
252
+ sequence: z.ZodNumber;
253
+ omittedRecords: z.ZodNumber;
254
+ status: z.ZodEnum<{
255
+ live: "live";
256
+ unavailable: "unavailable";
257
+ }>;
258
+ records: z.ZodArray<z.ZodObject<{
259
+ sequence: z.ZodNumber;
260
+ at: z.ZodISODateTime;
261
+ kind: z.ZodEnum<{
262
+ assistant: "assistant";
263
+ "reasoning-summary": "reasoning-summary";
264
+ request: "request";
265
+ terminal: "terminal";
266
+ tool: "tool";
267
+ usage: "usage";
268
+ }>;
269
+ operation: z.ZodEnum<{
270
+ append: "append";
271
+ lifecycle: "lifecycle";
272
+ replace: "replace";
273
+ }>;
274
+ turnId: z.ZodNullable<z.ZodString>;
275
+ itemId: z.ZodString;
276
+ revision: z.ZodNumber;
277
+ offsetBytes: z.ZodNumber;
278
+ prefixKnown: z.ZodBoolean;
279
+ text: z.ZodNullable<z.ZodString>;
280
+ totalBytes: z.ZodNumber;
281
+ omittedBytes: z.ZodNumber;
282
+ complete: z.ZodBoolean;
283
+ status: z.ZodNullable<z.ZodString>;
284
+ tool: z.ZodDefault<z.ZodNullable<z.ZodObject<{
285
+ callId: z.ZodNullable<z.ZodString>;
286
+ name: z.ZodNullable<z.ZodString>;
287
+ lifecycle: z.ZodEnum<{
288
+ completed: "completed";
289
+ pending: "pending";
290
+ running: "running";
291
+ unknown: "unknown";
292
+ }>;
293
+ outcome: z.ZodEnum<{
294
+ declined: "declined";
295
+ failed: "failed";
296
+ interrupted: "interrupted";
297
+ succeeded: "succeeded";
298
+ unknown: "unknown";
299
+ }>;
300
+ exitCode: z.ZodNullable<z.ZodNumber>;
301
+ }, z.core.$strict>>>;
302
+ }, z.core.$strict>>;
303
+ baseline: z.ZodArray<z.ZodObject<{
304
+ sequence: z.ZodNumber;
305
+ at: z.ZodISODateTime;
306
+ kind: z.ZodEnum<{
307
+ assistant: "assistant";
308
+ "reasoning-summary": "reasoning-summary";
309
+ request: "request";
310
+ terminal: "terminal";
311
+ tool: "tool";
312
+ usage: "usage";
313
+ }>;
314
+ operation: z.ZodEnum<{
315
+ append: "append";
316
+ lifecycle: "lifecycle";
317
+ replace: "replace";
318
+ }>;
319
+ turnId: z.ZodNullable<z.ZodString>;
320
+ itemId: z.ZodString;
321
+ revision: z.ZodNumber;
322
+ offsetBytes: z.ZodNumber;
323
+ prefixKnown: z.ZodBoolean;
324
+ text: z.ZodNullable<z.ZodString>;
325
+ totalBytes: z.ZodNumber;
326
+ omittedBytes: z.ZodNumber;
327
+ complete: z.ZodBoolean;
328
+ status: z.ZodNullable<z.ZodString>;
329
+ tool: z.ZodDefault<z.ZodNullable<z.ZodObject<{
330
+ callId: z.ZodNullable<z.ZodString>;
331
+ name: z.ZodNullable<z.ZodString>;
332
+ lifecycle: z.ZodEnum<{
333
+ completed: "completed";
334
+ pending: "pending";
335
+ running: "running";
336
+ unknown: "unknown";
337
+ }>;
338
+ outcome: z.ZodEnum<{
339
+ declined: "declined";
340
+ failed: "failed";
341
+ interrupted: "interrupted";
342
+ succeeded: "succeeded";
343
+ unknown: "unknown";
344
+ }>;
345
+ exitCode: z.ZodNullable<z.ZodNumber>;
346
+ }, z.core.$strict>>>;
347
+ }, z.core.$strict>>;
348
+ reset: z.ZodNullable<z.ZodEnum<{
349
+ context: "context";
350
+ gap: "gap";
351
+ generation: "generation";
352
+ initial: "initial";
353
+ }>>;
354
+ observedAt: z.ZodISODateTime;
355
+ expiresAt: z.ZodISODateTime;
356
+ pending: z.ZodArray<z.ZodObject<{
357
+ requestId: z.ZodString;
358
+ kind: z.ZodEnum<{
359
+ approval: "approval";
360
+ input: "input";
361
+ }>;
362
+ approvalKind: z.ZodNullable<z.ZodEnum<{
363
+ command: "command";
364
+ file: "file";
365
+ tool: "tool";
366
+ }>>;
367
+ turnId: z.ZodString;
368
+ itemId: z.ZodString;
369
+ reason: z.ZodNullable<z.ZodString>;
370
+ scope: z.ZodDefault<z.ZodNullable<z.ZodObject<{
371
+ operation: z.ZodString;
372
+ kind: z.ZodLiteral<"filesystem-patterns">;
373
+ requested: z.ZodObject<{
374
+ patterns: z.ZodArray<z.ZodString>;
375
+ omitted: z.ZodNumber;
376
+ complete: z.ZodBoolean;
377
+ }, z.core.$strict>;
378
+ session: z.ZodObject<{
379
+ patterns: z.ZodArray<z.ZodString>;
380
+ omitted: z.ZodNumber;
381
+ complete: z.ZodBoolean;
382
+ }, z.core.$strict>;
383
+ }, z.core.$strict>>>;
384
+ decisions: z.ZodArray<z.ZodEnum<{
385
+ accept: "accept";
386
+ acceptForSession: "acceptForSession";
387
+ cancel: "cancel";
388
+ decline: "decline";
389
+ }>>;
390
+ questions: z.ZodArray<z.ZodObject<{
391
+ id: z.ZodString;
392
+ header: z.ZodString;
393
+ question: z.ZodString;
394
+ isOther: z.ZodBoolean;
395
+ isSecret: z.ZodBoolean;
396
+ options: z.ZodNullable<z.ZodArray<z.ZodObject<{
397
+ label: z.ZodString;
398
+ description: z.ZodString;
399
+ }, z.core.$strict>>>;
400
+ multiple: z.ZodOptional<z.ZodBoolean>;
401
+ }, z.core.$strict>>;
402
+ requestedAt: z.ZodISODateTime;
403
+ }, z.core.$strict>>;
404
+ omittedPending: z.ZodNumber;
405
+ launchRecipe: z.ZodOptional<z.ZodObject<{
406
+ id: z.ZodString;
407
+ revision: z.ZodString;
408
+ digest: z.ZodString;
409
+ capabilities: z.ZodArray<z.ZodString>;
410
+ collaborationMode: z.ZodOptional<z.ZodEnum<{
411
+ default: "default";
412
+ plan: "plan";
413
+ }>>;
414
+ }, z.core.$strict>>;
415
+ selection: z.ZodNullable<z.ZodObject<{
416
+ revision: z.ZodNumber;
417
+ options: z.ZodDiscriminatedUnion<[z.ZodObject<{
418
+ runtime: z.ZodLiteral<"custom">;
419
+ model: z.ZodObject<{
420
+ provider: z.ZodString;
421
+ model: z.ZodString;
422
+ }, z.core.$strict>;
423
+ }, z.core.$strict>, z.ZodObject<{
424
+ runtime: z.ZodLiteral<"claude">;
425
+ model: z.ZodObject<{
426
+ provider: z.ZodString;
427
+ model: z.ZodString;
428
+ }, z.core.$strict>;
429
+ effort: z.ZodOptional<z.ZodString>;
430
+ }, z.core.$strict>, z.ZodObject<{
431
+ runtime: z.ZodLiteral<"codex">;
432
+ model: z.ZodObject<{
433
+ provider: z.ZodString;
434
+ model: z.ZodString;
435
+ }, z.core.$strict>;
436
+ mode: z.ZodEnum<{
437
+ default: "default";
438
+ plan: "plan";
439
+ }>;
440
+ effort: z.ZodOptional<z.ZodString>;
441
+ }, z.core.$strict>, z.ZodObject<{
442
+ runtime: z.ZodLiteral<"opencode">;
443
+ model: z.ZodObject<{
444
+ provider: z.ZodString;
445
+ model: z.ZodString;
446
+ }, z.core.$strict>;
447
+ agent: z.ZodOptional<z.ZodString>;
448
+ variant: z.ZodOptional<z.ZodString>;
449
+ }, z.core.$strict>, z.ZodObject<{
450
+ runtime: z.ZodLiteral<"antigravity">;
451
+ model: z.ZodObject<{
452
+ provider: z.ZodString;
453
+ model: z.ZodString;
454
+ }, z.core.$strict>;
455
+ effort: z.ZodOptional<z.ZodString>;
456
+ }, z.core.$strict>], "runtime">;
457
+ }, z.core.$strict>>;
458
+ nativeSelection: z.ZodNullable<z.ZodObject<{
459
+ model: z.ZodObject<{
460
+ provider: z.ZodString;
461
+ model: z.ZodString;
462
+ }, z.core.$strict>;
463
+ options: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
464
+ runtime: z.ZodLiteral<"custom">;
465
+ model: z.ZodObject<{
466
+ provider: z.ZodString;
467
+ model: z.ZodString;
468
+ }, z.core.$strict>;
469
+ }, z.core.$strict>, z.ZodObject<{
470
+ runtime: z.ZodLiteral<"claude">;
471
+ model: z.ZodObject<{
472
+ provider: z.ZodString;
473
+ model: z.ZodString;
474
+ }, z.core.$strict>;
475
+ effort: z.ZodOptional<z.ZodString>;
476
+ }, z.core.$strict>, z.ZodObject<{
477
+ runtime: z.ZodLiteral<"codex">;
478
+ model: z.ZodObject<{
479
+ provider: z.ZodString;
480
+ model: z.ZodString;
481
+ }, z.core.$strict>;
482
+ mode: z.ZodEnum<{
483
+ default: "default";
484
+ plan: "plan";
485
+ }>;
486
+ effort: z.ZodOptional<z.ZodString>;
487
+ }, z.core.$strict>, z.ZodObject<{
488
+ runtime: z.ZodLiteral<"opencode">;
489
+ model: z.ZodObject<{
490
+ provider: z.ZodString;
491
+ model: z.ZodString;
492
+ }, z.core.$strict>;
493
+ agent: z.ZodOptional<z.ZodString>;
494
+ variant: z.ZodOptional<z.ZodString>;
495
+ }, z.core.$strict>, z.ZodObject<{
496
+ runtime: z.ZodLiteral<"antigravity">;
497
+ model: z.ZodObject<{
498
+ provider: z.ZodString;
499
+ model: z.ZodString;
500
+ }, z.core.$strict>;
501
+ effort: z.ZodOptional<z.ZodString>;
502
+ }, z.core.$strict>], "runtime">>;
503
+ source: z.ZodEnum<{
504
+ admission: "admission";
505
+ assistant: "assistant";
506
+ reroute: "reroute";
507
+ settings: "settings";
508
+ }>;
509
+ turnId: z.ZodNullable<z.ZodString>;
510
+ }, z.core.$strict>>;
511
+ applicationPolicy: z.ZodOptional<z.ZodObject<{
512
+ policy: z.ZodObject<{
513
+ id: z.ZodString;
514
+ revision: z.ZodString;
515
+ digest: z.ZodString;
516
+ runtime: z.ZodEnum<{
517
+ codex: "codex";
518
+ opencode: "opencode";
519
+ }>;
520
+ sources: z.ZodArray<z.ZodObject<{
521
+ id: z.ZodString;
522
+ digest: z.ZodString;
523
+ kind: z.ZodEnum<{
524
+ agent: "agent";
525
+ instructions: "instructions";
526
+ skill: "skill";
527
+ }>;
528
+ }, z.core.$strict>>;
529
+ capabilities: z.ZodArray<z.ZodEnum<{
530
+ "developer-instructions": "developer-instructions";
531
+ "native-agent": "native-agent";
532
+ "native-skills": "native-skills";
533
+ "tool-denials": "tool-denials";
534
+ }>>;
535
+ }, z.core.$strict>;
536
+ state: z.ZodEnum<{
537
+ applied: "applied";
538
+ desired: "desired";
539
+ unavailable: "unavailable";
540
+ }>;
541
+ reason: z.ZodOptional<z.ZodString>;
542
+ }, z.core.$strict>>;
543
+ nativeSession: z.ZodOptional<z.ZodObject<{
544
+ runtime: z.ZodEnum<{
545
+ antigravity: "antigravity";
546
+ claude: "claude";
547
+ custom: "custom";
548
+ opencode: "opencode";
549
+ }>;
550
+ id: z.ZodString;
551
+ version: z.ZodString;
552
+ }, z.core.$strict>>;
553
+ nativeProfile: z.ZodOptional<z.ZodObject<{
554
+ runtime: z.ZodLiteral<"custom">;
555
+ turnId: z.ZodString;
556
+ observedAt: z.ZodISODateTime;
557
+ recipeDigest: z.ZodString;
558
+ model: z.ZodObject<{
559
+ provider: z.ZodString;
560
+ model: z.ZodString;
561
+ }, z.core.$strict>;
562
+ providerLabel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
563
+ tools: z.ZodArray<z.ZodString>;
564
+ resources: z.ZodArray<z.ZodObject<{
565
+ id: z.ZodString;
566
+ digest: z.ZodString;
567
+ kind: z.ZodEnum<{
568
+ instruction: "instruction";
569
+ resource: "resource";
570
+ skill: "skill";
571
+ }>;
572
+ }, z.core.$strict>>;
573
+ }, z.core.$strict>>;
574
+ driverCapabilities: z.ZodOptional<z.ZodObject<{
575
+ runtime: z.ZodEnum<{
576
+ antigravity: "antigravity";
577
+ claude: "claude";
578
+ codex: "codex";
579
+ custom: "custom";
580
+ opencode: "opencode";
581
+ }>;
582
+ structured: z.ZodBoolean;
583
+ creation: z.ZodObject<{
584
+ noInference: z.ZodBoolean;
585
+ inference: z.ZodEnum<{
586
+ deferred: "deferred";
587
+ "not-guaranteed": "not-guaranteed";
588
+ required: "required";
589
+ }>;
590
+ requirements: z.ZodOptional<z.ZodArray<z.ZodEnum<{
591
+ delegation: "delegation";
592
+ "explicit-model": "explicit-model";
593
+ }>>>;
594
+ reason: z.ZodEnum<{
595
+ "delegated-input-only": "delegated-input-only";
596
+ "native-rollout-requires-bootstrap": "native-rollout-requires-bootstrap";
597
+ "provider-initialization-not-certified": "provider-initialization-not-certified";
598
+ }>;
599
+ }, z.core.$strict>;
600
+ delegation: z.ZodOptional<z.ZodBoolean>;
601
+ sleep: z.ZodOptional<z.ZodBoolean>;
602
+ modelCatalog: z.ZodBoolean;
603
+ modelSelection: z.ZodBoolean;
604
+ approval: z.ZodBoolean;
605
+ input: z.ZodBoolean;
606
+ nativeStream: z.ZodBoolean;
607
+ interrupt: z.ZodBoolean;
608
+ resume: z.ZodBoolean;
609
+ imageInput: z.ZodBoolean;
610
+ selectionDefaults: z.ZodBoolean;
611
+ turnOptions: z.ZodBoolean;
612
+ turnSteering: z.ZodBoolean;
613
+ history: z.ZodBoolean;
614
+ fork: z.ZodBoolean;
615
+ compaction: z.ZodBoolean;
616
+ rollback: z.ZodBoolean;
617
+ applicationPolicy: z.ZodBoolean;
618
+ commandCatalog: z.ZodBoolean;
619
+ permissionModes: z.ZodBoolean;
620
+ fileCheckpoints: z.ZodBoolean;
621
+ mcpControl: z.ZodBoolean;
622
+ }, z.core.$strict>>;
623
+ }, z.core.$strict>;
624
+ export type ControlNativeSnapshot = z.infer<typeof ControlNativeSnapshotSchema>;
625
+ export declare const ControlNativeResponseSchema: z.ZodObject<{
626
+ target: z.ZodObject<{
627
+ kind: z.ZodLiteral<"managed">;
628
+ source: z.ZodLiteral<"stitchmux">;
629
+ machine: z.ZodString;
630
+ agent: z.ZodEnum<{
631
+ antigravity: "antigravity";
632
+ claude: "claude";
633
+ codex: "codex";
634
+ custom: "custom";
635
+ opencode: "opencode";
636
+ }>;
637
+ session: z.ZodString;
638
+ threadId: z.ZodUUID;
639
+ }, z.core.$strict>;
640
+ operationId: z.ZodUUID;
641
+ generation: z.ZodUUID;
642
+ requestId: z.ZodString;
643
+ kind: z.ZodEnum<{
644
+ approval: "approval";
645
+ input: "input";
646
+ }>;
647
+ decision: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
648
+ accept: "accept";
649
+ acceptForSession: "acceptForSession";
650
+ cancel: "cancel";
651
+ decline: "decline";
652
+ }>>>;
653
+ answers: z.ZodDefault<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>>;
654
+ }, z.core.$strict>;
655
+ export type ControlNativeResponse = z.input<typeof ControlNativeResponseSchema>;
656
+ export declare const ControlNativeResponseReceiptSchema: z.ZodObject<{
657
+ operationId: z.ZodUUID;
658
+ requestId: z.ZodString;
659
+ outcome: z.ZodEnum<{
660
+ submitted: "submitted";
661
+ uncertain: "uncertain";
662
+ }>;
663
+ }, z.core.$strict>;
664
+ export type ControlNativeResponseReceipt = z.infer<typeof ControlNativeResponseReceiptSchema>;