@stitchmux/client 0.0.0-stage → 0.96.1

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-wddwdvbj.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,258 @@
1
+ /**
2
+ * The search of every stored conversation, as a contract of its own.
3
+ *
4
+ * It is one operation of the event streams a client reads, and it is the one the daemon does not
5
+ * answer in its own loop: a process started for the call implements exactly this contract.
6
+ */
7
+ export declare const searchContract: import("stitchkit").ContractDef<{
8
+ readonly search: {
9
+ readonly method: "POST";
10
+ readonly path: "/search";
11
+ readonly desc: "Search every stored conversation of the fleet; the answer arrives in frames and ends with what was searched and what was not";
12
+ readonly input: import("zod").ZodObject<{
13
+ pattern: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodString>>;
14
+ fixed: import("zod").ZodDefault<import("zod").ZodBoolean>;
15
+ caseMode: import("zod").ZodDefault<import("zod").ZodEnum<{
16
+ ignore: "ignore";
17
+ sensitive: "sensitive";
18
+ smart: "smart";
19
+ }>>;
20
+ roles: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodEnum<{
21
+ assistant: "assistant";
22
+ system: "system";
23
+ tool: "tool";
24
+ unknown: "unknown";
25
+ user: "user";
26
+ }>>>>;
27
+ kinds: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodEnum<{
28
+ event: "event";
29
+ image: "image";
30
+ message: "message";
31
+ thinking: "thinking";
32
+ tool_call: "tool_call";
33
+ tool_result: "tool_result";
34
+ unknown: "unknown";
35
+ }>>>>;
36
+ providers: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodEnum<{
37
+ claude: "claude";
38
+ codex: "codex";
39
+ }>>>>;
40
+ project: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodString>>;
41
+ since: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodString>>;
42
+ until: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodString>>;
43
+ limit: import("zod").ZodDefault<import("zod").ZodInt>;
44
+ full: import("zod").ZodDefault<import("zod").ZodBoolean>;
45
+ receipts: import("zod").ZodDefault<import("zod").ZodBoolean>;
46
+ machines: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString>>>;
47
+ }, import("zod/v4/core").$strict>;
48
+ readonly stream: {
49
+ readonly item: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
50
+ frame: import("zod").ZodLiteral<"match">;
51
+ match: import("zod").ZodObject<{
52
+ address: import("zod").ZodString;
53
+ provider: import("zod").ZodEnum<{
54
+ claude: "claude";
55
+ codex: "codex";
56
+ }>;
57
+ threadId: import("zod").ZodString;
58
+ session: import("zod").ZodNullable<import("zod").ZodString>;
59
+ ofSession: import("zod").ZodNullable<import("zod").ZodString>;
60
+ dir: import("zod").ZodNullable<import("zod").ZodString>;
61
+ repository: import("zod").ZodNullable<import("zod").ZodString>;
62
+ project: import("zod").ZodOptional<import("zod").ZodString>;
63
+ lines: import("zod").ZodBoolean;
64
+ seq: import("zod").ZodInt;
65
+ createdAt: import("zod").ZodNullable<import("zod").ZodString>;
66
+ role: import("zod").ZodEnum<{
67
+ assistant: "assistant";
68
+ system: "system";
69
+ tool: "tool";
70
+ unknown: "unknown";
71
+ user: "user";
72
+ }>;
73
+ kind: import("zod").ZodEnum<{
74
+ event: "event";
75
+ image: "image";
76
+ message: "message";
77
+ thinking: "thinking";
78
+ tool_call: "tool_call";
79
+ tool_result: "tool_result";
80
+ unknown: "unknown";
81
+ }>;
82
+ toolName: import("zod").ZodNullable<import("zod").ZodString>;
83
+ field: import("zod").ZodEnum<{
84
+ input: "input";
85
+ output: "output";
86
+ text: "text";
87
+ }>;
88
+ count: import("zod").ZodInt;
89
+ excerpt: import("zod").ZodObject<{
90
+ before: import("zod").ZodString;
91
+ match: import("zod").ZodString;
92
+ after: import("zod").ZodString;
93
+ }, import("zod/v4/core").$strip>;
94
+ text: import("zod").ZodNullable<import("zod").ZodString>;
95
+ machine: import("zod").ZodString;
96
+ }, import("zod/v4/core").$strip>;
97
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
98
+ frame: import("zod").ZodLiteral<"conversation">;
99
+ conversation: import("zod").ZodObject<{
100
+ address: import("zod").ZodString;
101
+ provider: import("zod").ZodEnum<{
102
+ claude: "claude";
103
+ codex: "codex";
104
+ }>;
105
+ threadId: import("zod").ZodString;
106
+ session: import("zod").ZodNullable<import("zod").ZodString>;
107
+ ofSession: import("zod").ZodNullable<import("zod").ZodString>;
108
+ dir: import("zod").ZodNullable<import("zod").ZodString>;
109
+ repository: import("zod").ZodNullable<import("zod").ZodString>;
110
+ project: import("zod").ZodOptional<import("zod").ZodString>;
111
+ total: import("zod").ZodInt;
112
+ user: import("zod").ZodInt;
113
+ assistant: import("zod").ZodInt;
114
+ firstAt: import("zod").ZodNullable<import("zod").ZodString>;
115
+ lastAt: import("zod").ZodNullable<import("zod").ZodString>;
116
+ sample: import("zod").ZodObject<{
117
+ address: import("zod").ZodString;
118
+ provider: import("zod").ZodEnum<{
119
+ claude: "claude";
120
+ codex: "codex";
121
+ }>;
122
+ threadId: import("zod").ZodString;
123
+ session: import("zod").ZodNullable<import("zod").ZodString>;
124
+ ofSession: import("zod").ZodNullable<import("zod").ZodString>;
125
+ dir: import("zod").ZodNullable<import("zod").ZodString>;
126
+ repository: import("zod").ZodNullable<import("zod").ZodString>;
127
+ project: import("zod").ZodOptional<import("zod").ZodString>;
128
+ lines: import("zod").ZodBoolean;
129
+ seq: import("zod").ZodInt;
130
+ createdAt: import("zod").ZodNullable<import("zod").ZodString>;
131
+ role: import("zod").ZodEnum<{
132
+ assistant: "assistant";
133
+ system: "system";
134
+ tool: "tool";
135
+ unknown: "unknown";
136
+ user: "user";
137
+ }>;
138
+ kind: import("zod").ZodEnum<{
139
+ event: "event";
140
+ image: "image";
141
+ message: "message";
142
+ thinking: "thinking";
143
+ tool_call: "tool_call";
144
+ tool_result: "tool_result";
145
+ unknown: "unknown";
146
+ }>;
147
+ toolName: import("zod").ZodNullable<import("zod").ZodString>;
148
+ field: import("zod").ZodEnum<{
149
+ input: "input";
150
+ output: "output";
151
+ text: "text";
152
+ }>;
153
+ count: import("zod").ZodInt;
154
+ excerpt: import("zod").ZodObject<{
155
+ before: import("zod").ZodString;
156
+ match: import("zod").ZodString;
157
+ after: import("zod").ZodString;
158
+ }, import("zod/v4/core").$strip>;
159
+ text: import("zod").ZodNullable<import("zod").ZodString>;
160
+ }, import("zod/v4/core").$strip>;
161
+ machine: import("zod").ZodString;
162
+ }, import("zod/v4/core").$strip>;
163
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
164
+ frame: import("zod").ZodLiteral<"mark">;
165
+ mark: import("zod").ZodString;
166
+ deliveries: import("zod").ZodArray<import("zod").ZodObject<{
167
+ address: import("zod").ZodString;
168
+ provider: import("zod").ZodEnum<{
169
+ claude: "claude";
170
+ codex: "codex";
171
+ }>;
172
+ threadId: import("zod").ZodString;
173
+ session: import("zod").ZodNullable<import("zod").ZodString>;
174
+ ofSession: import("zod").ZodNullable<import("zod").ZodString>;
175
+ dir: import("zod").ZodNullable<import("zod").ZodString>;
176
+ repository: import("zod").ZodNullable<import("zod").ZodString>;
177
+ project: import("zod").ZodOptional<import("zod").ZodString>;
178
+ lines: import("zod").ZodBoolean;
179
+ seq: import("zod").ZodInt;
180
+ receivedAt: import("zod").ZodNullable<import("zod").ZodString>;
181
+ role: import("zod").ZodEnum<{
182
+ assistant: "assistant";
183
+ system: "system";
184
+ tool: "tool";
185
+ unknown: "unknown";
186
+ user: "user";
187
+ }>;
188
+ messageId: import("zod").ZodString;
189
+ sender: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
190
+ verdict: import("zod").ZodEnum<{
191
+ harness: "harness";
192
+ person: "person";
193
+ "routed-input": "routed-input";
194
+ "session-letter": "session-letter";
195
+ "stitchmux-keys": "stitchmux-keys";
196
+ unverifiable: "unverifiable";
197
+ }>;
198
+ reason: import("zod").ZodString;
199
+ }, import("zod/v4/core").$strict>>>;
200
+ machine: import("zod").ZodString;
201
+ }, import("zod/v4/core").$strip>>;
202
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
203
+ query: import("zod").ZodObject<{
204
+ pattern: import("zod").ZodNullable<import("zod").ZodString>;
205
+ flags: import("zod").ZodString;
206
+ roles: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodEnum<{
207
+ assistant: "assistant";
208
+ system: "system";
209
+ tool: "tool";
210
+ unknown: "unknown";
211
+ user: "user";
212
+ }>>>;
213
+ kinds: import("zod").ZodArray<import("zod").ZodEnum<{
214
+ event: "event";
215
+ image: "image";
216
+ message: "message";
217
+ thinking: "thinking";
218
+ tool_call: "tool_call";
219
+ tool_result: "tool_result";
220
+ unknown: "unknown";
221
+ }>>;
222
+ providers: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodEnum<{
223
+ claude: "claude";
224
+ codex: "codex";
225
+ }>>>;
226
+ project: import("zod").ZodNullable<import("zod").ZodString>;
227
+ since: import("zod").ZodNullable<import("zod").ZodString>;
228
+ until: import("zod").ZodNullable<import("zod").ZodString>;
229
+ limit: import("zod").ZodInt;
230
+ full: import("zod").ZodBoolean;
231
+ receipts: import("zod").ZodOptional<import("zod").ZodBoolean>;
232
+ }, import("zod/v4/core").$strip>;
233
+ machines: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
234
+ machine: import("zod").ZodString;
235
+ status: import("zod").ZodLiteral<"searched">;
236
+ elapsedMs: import("zod").ZodInt;
237
+ conversations: import("zod").ZodInt;
238
+ files: import("zod").ZodInt;
239
+ bytes: import("zod").ZodInt;
240
+ skippedFiles: import("zod").ZodInt;
241
+ unreadableFiles: import("zod").ZodInt;
242
+ total: import("zod").ZodInt;
243
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
244
+ machine: import("zod").ZodString;
245
+ status: import("zod").ZodLiteral<"unavailable">;
246
+ error: import("zod").ZodString;
247
+ }, import("zod/v4/core").$strip>]>>;
248
+ total: import("zod").ZodInt;
249
+ truncated: import("zod").ZodBoolean;
250
+ frame: import("zod").ZodLiteral<"end">;
251
+ marksTruncated: import("zod").ZodOptional<import("zod").ZodBoolean>;
252
+ }, import("zod/v4/core").$strip>], "frame">;
253
+ readonly format: "ndjson";
254
+ readonly maxFrameBytes: number;
255
+ readonly heartbeatMs: 2000;
256
+ };
257
+ };
258
+ }, "local">;
@@ -0,0 +1,124 @@
1
+ import { z } from 'zod';
2
+ export declare const SelectionReadSchema: z.ZodObject<{
3
+ target: z.ZodObject<{
4
+ kind: z.ZodLiteral<"managed">;
5
+ source: z.ZodLiteral<"stitchmux">;
6
+ machine: z.ZodString;
7
+ agent: z.ZodEnum<{
8
+ antigravity: "antigravity";
9
+ claude: "claude";
10
+ codex: "codex";
11
+ custom: "custom";
12
+ opencode: "opencode";
13
+ }>;
14
+ session: z.ZodString;
15
+ threadId: z.ZodUUID;
16
+ }, z.core.$strict>;
17
+ registrationGeneration: z.ZodUUID;
18
+ }, z.core.$strict>;
19
+ export declare const SelectionResultSchema: z.ZodObject<{
20
+ protocol: z.ZodLiteral<1>;
21
+ registrationGeneration: z.ZodUUID;
22
+ current: z.ZodObject<{
23
+ revision: z.ZodNumber;
24
+ options: z.ZodDiscriminatedUnion<[z.ZodObject<{
25
+ runtime: z.ZodLiteral<"custom">;
26
+ model: z.ZodObject<{
27
+ provider: z.ZodString;
28
+ model: z.ZodString;
29
+ }, z.core.$strict>;
30
+ }, z.core.$strict>, z.ZodObject<{
31
+ runtime: z.ZodLiteral<"claude">;
32
+ model: z.ZodObject<{
33
+ provider: z.ZodString;
34
+ model: z.ZodString;
35
+ }, z.core.$strict>;
36
+ effort: z.ZodOptional<z.ZodString>;
37
+ }, z.core.$strict>, z.ZodObject<{
38
+ runtime: z.ZodLiteral<"codex">;
39
+ model: z.ZodObject<{
40
+ provider: z.ZodString;
41
+ model: z.ZodString;
42
+ }, z.core.$strict>;
43
+ mode: z.ZodEnum<{
44
+ default: "default";
45
+ plan: "plan";
46
+ }>;
47
+ effort: z.ZodOptional<z.ZodString>;
48
+ }, z.core.$strict>, z.ZodObject<{
49
+ runtime: z.ZodLiteral<"opencode">;
50
+ model: z.ZodObject<{
51
+ provider: z.ZodString;
52
+ model: z.ZodString;
53
+ }, z.core.$strict>;
54
+ agent: z.ZodOptional<z.ZodString>;
55
+ variant: z.ZodOptional<z.ZodString>;
56
+ }, z.core.$strict>, z.ZodObject<{
57
+ runtime: z.ZodLiteral<"antigravity">;
58
+ model: z.ZodObject<{
59
+ provider: z.ZodString;
60
+ model: z.ZodString;
61
+ }, z.core.$strict>;
62
+ effort: z.ZodOptional<z.ZodString>;
63
+ }, z.core.$strict>], "runtime">;
64
+ }, z.core.$strict>;
65
+ }, z.core.$strict>;
66
+ export declare const SelectionUpdateSchema: z.ZodObject<{
67
+ target: z.ZodObject<{
68
+ kind: z.ZodLiteral<"managed">;
69
+ source: z.ZodLiteral<"stitchmux">;
70
+ machine: z.ZodString;
71
+ agent: z.ZodEnum<{
72
+ antigravity: "antigravity";
73
+ claude: "claude";
74
+ codex: "codex";
75
+ custom: "custom";
76
+ opencode: "opencode";
77
+ }>;
78
+ session: z.ZodString;
79
+ threadId: z.ZodUUID;
80
+ }, z.core.$strict>;
81
+ registrationGeneration: z.ZodUUID;
82
+ operationId: z.ZodUUID;
83
+ expectedRevision: z.ZodNumber;
84
+ options: z.ZodDiscriminatedUnion<[z.ZodObject<{
85
+ runtime: z.ZodLiteral<"custom">;
86
+ model: z.ZodObject<{
87
+ provider: z.ZodString;
88
+ model: z.ZodString;
89
+ }, z.core.$strict>;
90
+ }, z.core.$strict>, z.ZodObject<{
91
+ runtime: z.ZodLiteral<"claude">;
92
+ model: z.ZodObject<{
93
+ provider: z.ZodString;
94
+ model: z.ZodString;
95
+ }, z.core.$strict>;
96
+ effort: z.ZodOptional<z.ZodString>;
97
+ }, z.core.$strict>, z.ZodObject<{
98
+ runtime: z.ZodLiteral<"codex">;
99
+ model: z.ZodObject<{
100
+ provider: z.ZodString;
101
+ model: z.ZodString;
102
+ }, z.core.$strict>;
103
+ mode: z.ZodEnum<{
104
+ default: "default";
105
+ plan: "plan";
106
+ }>;
107
+ effort: z.ZodOptional<z.ZodString>;
108
+ }, z.core.$strict>, z.ZodObject<{
109
+ runtime: z.ZodLiteral<"opencode">;
110
+ model: z.ZodObject<{
111
+ provider: z.ZodString;
112
+ model: z.ZodString;
113
+ }, z.core.$strict>;
114
+ agent: z.ZodOptional<z.ZodString>;
115
+ variant: z.ZodOptional<z.ZodString>;
116
+ }, z.core.$strict>, z.ZodObject<{
117
+ runtime: z.ZodLiteral<"antigravity">;
118
+ model: z.ZodObject<{
119
+ provider: z.ZodString;
120
+ model: z.ZodString;
121
+ }, z.core.$strict>;
122
+ effort: z.ZodOptional<z.ZodString>;
123
+ }, z.core.$strict>], "runtime">;
124
+ }, z.core.$strict>;
@@ -0,0 +1,272 @@
1
+ import { z } from 'zod';
2
+ export declare const ControlCreateSchema: z.ZodObject<{
3
+ runtime: z.ZodOptional<z.ZodEnum<{
4
+ antigravity: "antigravity";
5
+ claude: "claude";
6
+ codex: "codex";
7
+ custom: "custom";
8
+ opencode: "opencode";
9
+ }>>;
10
+ mode: z.ZodOptional<z.ZodEnum<{
11
+ native: "native";
12
+ tui: "tui";
13
+ }>>;
14
+ initialization: z.ZodOptional<z.ZodEnum<{
15
+ "allow-inference": "allow-inference";
16
+ "no-inference": "no-inference";
17
+ }>>;
18
+ requestId: z.ZodUUID;
19
+ name: z.ZodString;
20
+ workspace: z.ZodString;
21
+ flags: z.ZodDefault<z.ZodArray<z.ZodString>>;
22
+ launchRecipe: z.ZodOptional<z.ZodObject<{
23
+ id: z.ZodString;
24
+ revision: z.ZodString;
25
+ }, z.core.$strict>>;
26
+ profile: z.ZodOptional<z.ZodString>;
27
+ modelSelection: z.ZodOptional<z.ZodObject<{
28
+ provider: z.ZodString;
29
+ model: z.ZodString;
30
+ }, z.core.$strict>>;
31
+ applicationPolicy: z.ZodOptional<z.ZodObject<{
32
+ id: z.ZodString;
33
+ revision: z.ZodString;
34
+ }, z.core.$strict>>;
35
+ delegation: z.ZodOptional<z.ZodObject<{
36
+ parent: z.ZodObject<{
37
+ target: z.ZodUnion<readonly [z.ZodObject<{
38
+ kind: z.ZodLiteral<"managed">;
39
+ source: z.ZodLiteral<"stitchmux">;
40
+ machine: z.ZodString;
41
+ agent: z.ZodEnum<{
42
+ antigravity: "antigravity";
43
+ claude: "claude";
44
+ codex: "codex";
45
+ custom: "custom";
46
+ opencode: "opencode";
47
+ }>;
48
+ session: z.ZodString;
49
+ threadId: z.ZodUUID;
50
+ }, z.core.$strict>, z.ZodObject<{
51
+ kind: z.ZodLiteral<"application">;
52
+ machine: z.ZodString;
53
+ applicationId: z.ZodString;
54
+ authorityId: z.ZodUUID;
55
+ }, z.core.$strict>]>;
56
+ registrationGeneration: z.ZodUUID;
57
+ }, z.core.$strict>;
58
+ policy: z.ZodObject<{
59
+ access: z.ZodEnum<{
60
+ "full-access": "full-access";
61
+ "read-only": "read-only";
62
+ "workspace-write": "workspace-write";
63
+ }>;
64
+ readScope: z.ZodLiteral<"host">;
65
+ workspace: z.ZodString;
66
+ network: z.ZodLiteral<false>;
67
+ }, z.core.$strict>;
68
+ deadlineAt: z.ZodOptional<z.ZodISODateTime>;
69
+ }, z.core.$strict>>;
70
+ }, z.core.$strict>;
71
+ export type ControlCreate = z.input<typeof ControlCreateSchema>;
72
+ export declare const ControlCreateReceiptSchema: z.ZodObject<{
73
+ requestId: z.ZodUUID;
74
+ target: z.ZodObject<{
75
+ kind: z.ZodLiteral<"managed">;
76
+ source: z.ZodLiteral<"stitchmux">;
77
+ machine: z.ZodString;
78
+ agent: z.ZodEnum<{
79
+ antigravity: "antigravity";
80
+ claude: "claude";
81
+ codex: "codex";
82
+ custom: "custom";
83
+ opencode: "opencode";
84
+ }>;
85
+ session: z.ZodString;
86
+ threadId: z.ZodUUID;
87
+ }, z.core.$strict>;
88
+ workspace: z.ZodString;
89
+ registrationGeneration: z.ZodUUID;
90
+ duplicate: z.ZodBoolean;
91
+ profile: z.ZodOptional<z.ZodString>;
92
+ launchRecipe: z.ZodOptional<z.ZodObject<{
93
+ id: z.ZodString;
94
+ revision: z.ZodString;
95
+ digest: z.ZodString;
96
+ capabilities: z.ZodArray<z.ZodString>;
97
+ collaborationMode: z.ZodOptional<z.ZodEnum<{
98
+ default: "default";
99
+ plan: "plan";
100
+ }>>;
101
+ }, z.core.$strict>>;
102
+ modelSelection: z.ZodOptional<z.ZodObject<{
103
+ provider: z.ZodString;
104
+ model: z.ZodString;
105
+ }, z.core.$strict>>;
106
+ applicationPolicy: z.ZodOptional<z.ZodObject<{
107
+ policy: z.ZodObject<{
108
+ id: z.ZodString;
109
+ revision: z.ZodString;
110
+ digest: z.ZodString;
111
+ runtime: z.ZodEnum<{
112
+ codex: "codex";
113
+ opencode: "opencode";
114
+ }>;
115
+ sources: z.ZodArray<z.ZodObject<{
116
+ id: z.ZodString;
117
+ digest: z.ZodString;
118
+ kind: z.ZodEnum<{
119
+ agent: "agent";
120
+ instructions: "instructions";
121
+ skill: "skill";
122
+ }>;
123
+ }, z.core.$strict>>;
124
+ capabilities: z.ZodArray<z.ZodEnum<{
125
+ "developer-instructions": "developer-instructions";
126
+ "native-agent": "native-agent";
127
+ "native-skills": "native-skills";
128
+ "tool-denials": "tool-denials";
129
+ }>>;
130
+ }, z.core.$strict>;
131
+ state: z.ZodEnum<{
132
+ applied: "applied";
133
+ desired: "desired";
134
+ unavailable: "unavailable";
135
+ }>;
136
+ reason: z.ZodOptional<z.ZodString>;
137
+ }, z.core.$strict>>;
138
+ delegation: z.ZodOptional<z.ZodObject<{
139
+ delegation: z.ZodObject<{
140
+ parent: z.ZodObject<{
141
+ target: z.ZodUnion<readonly [z.ZodObject<{
142
+ kind: z.ZodLiteral<"managed">;
143
+ source: z.ZodLiteral<"stitchmux">;
144
+ machine: z.ZodString;
145
+ agent: z.ZodEnum<{
146
+ antigravity: "antigravity";
147
+ claude: "claude";
148
+ codex: "codex";
149
+ custom: "custom";
150
+ opencode: "opencode";
151
+ }>;
152
+ session: z.ZodString;
153
+ threadId: z.ZodUUID;
154
+ }, z.core.$strict>, z.ZodObject<{
155
+ kind: z.ZodLiteral<"application">;
156
+ machine: z.ZodString;
157
+ applicationId: z.ZodString;
158
+ authorityId: z.ZodUUID;
159
+ }, z.core.$strict>]>;
160
+ registrationGeneration: z.ZodUUID;
161
+ }, z.core.$strict>;
162
+ policy: z.ZodObject<{
163
+ access: z.ZodEnum<{
164
+ "full-access": "full-access";
165
+ "read-only": "read-only";
166
+ "workspace-write": "workspace-write";
167
+ }>;
168
+ readScope: z.ZodLiteral<"host">;
169
+ workspace: z.ZodString;
170
+ network: z.ZodLiteral<false>;
171
+ }, z.core.$strict>;
172
+ deadlineAt: z.ZodOptional<z.ZodISODateTime>;
173
+ requestId: z.ZodUUID;
174
+ applicationAuthority: z.ZodOptional<z.ZodObject<{
175
+ target: z.ZodObject<{
176
+ kind: z.ZodLiteral<"application">;
177
+ machine: z.ZodString;
178
+ applicationId: z.ZodString;
179
+ authorityId: z.ZodUUID;
180
+ }, z.core.$strict>;
181
+ registrationGeneration: z.ZodUUID;
182
+ }, z.core.$strict>>;
183
+ policyDigest: z.ZodString;
184
+ }, z.core.$strict>;
185
+ state: z.ZodEnum<{
186
+ applied: "applied";
187
+ unavailable: "unavailable";
188
+ }>;
189
+ generation: z.ZodNullable<z.ZodUUID>;
190
+ observedAt: z.ZodISODateTime;
191
+ }, z.core.$strict>>;
192
+ nativeSession: z.ZodOptional<z.ZodObject<{
193
+ runtime: z.ZodEnum<{
194
+ antigravity: "antigravity";
195
+ claude: "claude";
196
+ custom: "custom";
197
+ opencode: "opencode";
198
+ }>;
199
+ id: z.ZodString;
200
+ version: z.ZodString;
201
+ }, z.core.$strict>>;
202
+ driverCapabilities: z.ZodOptional<z.ZodObject<{
203
+ runtime: z.ZodEnum<{
204
+ antigravity: "antigravity";
205
+ claude: "claude";
206
+ codex: "codex";
207
+ custom: "custom";
208
+ opencode: "opencode";
209
+ }>;
210
+ structured: z.ZodBoolean;
211
+ creation: z.ZodObject<{
212
+ noInference: z.ZodBoolean;
213
+ inference: z.ZodEnum<{
214
+ deferred: "deferred";
215
+ "not-guaranteed": "not-guaranteed";
216
+ required: "required";
217
+ }>;
218
+ requirements: z.ZodOptional<z.ZodArray<z.ZodEnum<{
219
+ delegation: "delegation";
220
+ "explicit-model": "explicit-model";
221
+ }>>>;
222
+ reason: z.ZodEnum<{
223
+ "delegated-input-only": "delegated-input-only";
224
+ "native-rollout-requires-bootstrap": "native-rollout-requires-bootstrap";
225
+ "provider-initialization-not-certified": "provider-initialization-not-certified";
226
+ }>;
227
+ }, z.core.$strict>;
228
+ delegation: z.ZodOptional<z.ZodBoolean>;
229
+ sleep: z.ZodOptional<z.ZodBoolean>;
230
+ modelCatalog: z.ZodBoolean;
231
+ modelSelection: z.ZodBoolean;
232
+ approval: z.ZodBoolean;
233
+ input: z.ZodBoolean;
234
+ nativeStream: z.ZodBoolean;
235
+ interrupt: z.ZodBoolean;
236
+ resume: z.ZodBoolean;
237
+ imageInput: z.ZodBoolean;
238
+ selectionDefaults: z.ZodBoolean;
239
+ turnOptions: z.ZodBoolean;
240
+ turnSteering: z.ZodBoolean;
241
+ history: z.ZodBoolean;
242
+ fork: z.ZodBoolean;
243
+ compaction: z.ZodBoolean;
244
+ rollback: z.ZodBoolean;
245
+ applicationPolicy: z.ZodBoolean;
246
+ commandCatalog: z.ZodBoolean;
247
+ permissionModes: z.ZodBoolean;
248
+ fileCheckpoints: z.ZodBoolean;
249
+ mcpControl: z.ZodBoolean;
250
+ }, z.core.$strict>>;
251
+ }, z.core.$strict>;
252
+ export type ControlCreateReceipt = z.infer<typeof ControlCreateReceiptSchema>;
253
+ export declare const ControlArchiveReceiptSchema: z.ZodObject<{
254
+ target: z.ZodObject<{
255
+ kind: z.ZodLiteral<"managed">;
256
+ source: z.ZodLiteral<"stitchmux">;
257
+ machine: z.ZodString;
258
+ agent: z.ZodEnum<{
259
+ antigravity: "antigravity";
260
+ claude: "claude";
261
+ codex: "codex";
262
+ custom: "custom";
263
+ opencode: "opencode";
264
+ }>;
265
+ session: z.ZodString;
266
+ threadId: z.ZodUUID;
267
+ }, z.core.$strict>;
268
+ archived: z.ZodLiteral<true>;
269
+ duplicate: z.ZodBoolean;
270
+ stopped: z.ZodBoolean;
271
+ }, z.core.$strict>;
272
+ export type ControlArchiveReceipt = z.infer<typeof ControlArchiveReceiptSchema>;