@inhuman.tools/harness-contract 0.0.0-stage → 0.1.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 (53) hide show
  1. package/LICENSE.md +7 -0
  2. package/dist/contract.d.ts +1910 -0
  3. package/dist/contract.d.ts.map +1 -0
  4. package/dist/contract.js +353 -0
  5. package/dist/contract.js.map +1 -0
  6. package/dist/index.d.ts +7 -0
  7. package/dist/index.d.ts.map +1 -0
  8. package/dist/index.js +7 -0
  9. package/dist/index.js.map +1 -0
  10. package/dist/jsonrpc.d.ts +18 -0
  11. package/dist/jsonrpc.d.ts.map +1 -0
  12. package/dist/jsonrpc.js +34 -0
  13. package/dist/jsonrpc.js.map +1 -0
  14. package/dist/schemas/authorization.d.ts +1721 -0
  15. package/dist/schemas/authorization.d.ts.map +1 -0
  16. package/dist/schemas/authorization.js +289 -0
  17. package/dist/schemas/authorization.js.map +1 -0
  18. package/dist/schemas/connection.d.ts +133 -0
  19. package/dist/schemas/connection.d.ts.map +1 -0
  20. package/dist/schemas/connection.js +55 -0
  21. package/dist/schemas/connection.js.map +1 -0
  22. package/dist/schemas/rpc.d.ts +86 -0
  23. package/dist/schemas/rpc.d.ts.map +1 -0
  24. package/dist/schemas/rpc.js +66 -0
  25. package/dist/schemas/rpc.js.map +1 -0
  26. package/dist/schemas/shapes.d.ts +514 -0
  27. package/dist/schemas/shapes.d.ts.map +1 -0
  28. package/dist/schemas/shapes.js +342 -0
  29. package/dist/schemas/shapes.js.map +1 -0
  30. package/dist/spec/cli.d.ts +3 -0
  31. package/dist/spec/cli.d.ts.map +1 -0
  32. package/dist/spec/cli.js +40 -0
  33. package/dist/spec/cli.js.map +1 -0
  34. package/dist/spec/generate.d.ts +21 -0
  35. package/dist/spec/generate.d.ts.map +1 -0
  36. package/dist/spec/generate.js +100 -0
  37. package/dist/spec/generate.js.map +1 -0
  38. package/dist/spec/readme.d.ts +4 -0
  39. package/dist/spec/readme.d.ts.map +1 -0
  40. package/dist/spec/readme.js +124 -0
  41. package/dist/spec/readme.js.map +1 -0
  42. package/package.json +57 -3
  43. package/src/contract.ts +418 -0
  44. package/src/index.ts +6 -0
  45. package/src/jsonrpc.ts +42 -0
  46. package/src/schemas/authorization.ts +312 -0
  47. package/src/schemas/connection.ts +68 -0
  48. package/src/schemas/rpc.ts +88 -0
  49. package/src/schemas/shapes.ts +379 -0
  50. package/src/spec/cli.ts +45 -0
  51. package/src/spec/generate.ts +115 -0
  52. package/src/spec/readme.ts +126 -0
  53. package/README.md +0 -3
@@ -0,0 +1,1721 @@
1
+ /**
2
+ * Wire shapes of the policy v2 engine: grants (a stored human "yes" to an ask), the extended
3
+ * `ask/answer`, `policy/explain`, the session overlay.
4
+ *
5
+ * The class ids are the closed taxonomy owned by `@inhuman.tools/policy` (classes.ts); a test in
6
+ * `@inhuman.tools/harness` pins that this list equals it. Tier names on the wire are "soft-deny" and
7
+ * "ask"; the engine names `deny` / `ask` appear only where a tier is a disposition.
8
+ */
9
+ import { z } from "zod";
10
+ export declare const CLASS_IDS: readonly ["destroy-catastrophic", "destroy-local", "vcs-history", "privilege", "credential", "control-plane", "attack-shape", "policy-fault", "package-install", "publish", "remote-write", "network-egress", "exec-unknown", "unmodelled", "envelope-read", "envelope-write", "protected-file", "workspace-write", "mcp-lookup", "mcp-action"];
11
+ export declare const classIdSchema: z.ZodEnum<{
12
+ "destroy-catastrophic": "destroy-catastrophic";
13
+ "destroy-local": "destroy-local";
14
+ "vcs-history": "vcs-history";
15
+ privilege: "privilege";
16
+ credential: "credential";
17
+ "control-plane": "control-plane";
18
+ "attack-shape": "attack-shape";
19
+ "policy-fault": "policy-fault";
20
+ "package-install": "package-install";
21
+ publish: "publish";
22
+ "remote-write": "remote-write";
23
+ "network-egress": "network-egress";
24
+ "exec-unknown": "exec-unknown";
25
+ unmodelled: "unmodelled";
26
+ "envelope-read": "envelope-read";
27
+ "envelope-write": "envelope-write";
28
+ "protected-file": "protected-file";
29
+ "workspace-write": "workspace-write";
30
+ "mcp-lookup": "mcp-lookup";
31
+ "mcp-action": "mcp-action";
32
+ }>;
33
+ export declare const GRANT_SCOPES: readonly ["session", "project", "bot", "global"];
34
+ export declare const grantScopeSchema: z.ZodEnum<{
35
+ session: "session";
36
+ project: "project";
37
+ bot: "bot";
38
+ global: "global";
39
+ }>;
40
+ /** What a grant covers. Commands are families: program + subcommand spine + `family_args`. */
41
+ export declare const grantSubjectSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
42
+ kind: z.ZodLiteral<"command">;
43
+ argv0: z.ZodString;
44
+ spine: z.ZodArray<z.ZodString>;
45
+ args: z.ZodArray<z.ZodString>;
46
+ }, z.core.$strict>, z.ZodObject<{
47
+ kind: z.ZodLiteral<"path">;
48
+ cluster: z.ZodEnum<{
49
+ read: "read";
50
+ write: "write";
51
+ }>;
52
+ path: z.ZodString;
53
+ depth: z.ZodEnum<{
54
+ exact: "exact";
55
+ subtree: "subtree";
56
+ }>;
57
+ }, z.core.$strict>, z.ZodObject<{
58
+ kind: z.ZodLiteral<"mcp">;
59
+ server: z.ZodString;
60
+ account: z.ZodOptional<z.ZodString>;
61
+ tool: z.ZodOptional<z.ZodString>;
62
+ }, z.core.$strict>, z.ZodObject<{
63
+ kind: z.ZodLiteral<"tool">;
64
+ name: z.ZodString;
65
+ }, z.core.$strict>, z.ZodObject<{
66
+ kind: z.ZodLiteral<"class">;
67
+ class: z.ZodEnum<{
68
+ "destroy-catastrophic": "destroy-catastrophic";
69
+ "destroy-local": "destroy-local";
70
+ "vcs-history": "vcs-history";
71
+ privilege: "privilege";
72
+ credential: "credential";
73
+ "control-plane": "control-plane";
74
+ "attack-shape": "attack-shape";
75
+ "policy-fault": "policy-fault";
76
+ "package-install": "package-install";
77
+ publish: "publish";
78
+ "remote-write": "remote-write";
79
+ "network-egress": "network-egress";
80
+ "exec-unknown": "exec-unknown";
81
+ unmodelled: "unmodelled";
82
+ "envelope-read": "envelope-read";
83
+ "envelope-write": "envelope-write";
84
+ "protected-file": "protected-file";
85
+ "workspace-write": "workspace-write";
86
+ "mcp-lookup": "mcp-lookup";
87
+ "mcp-action": "mcp-action";
88
+ }>;
89
+ }, z.core.$strict>], "kind">;
90
+ export declare const grantRowSchema: z.ZodObject<{
91
+ id: z.ZodString;
92
+ kind: z.ZodOptional<z.ZodEnum<{
93
+ grant: "grant";
94
+ ack: "ack";
95
+ }>>;
96
+ scope: z.ZodEnum<{
97
+ session: "session";
98
+ project: "project";
99
+ bot: "bot";
100
+ global: "global";
101
+ }>;
102
+ scopeKey: z.ZodString;
103
+ subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
104
+ kind: z.ZodLiteral<"command">;
105
+ argv0: z.ZodString;
106
+ spine: z.ZodArray<z.ZodString>;
107
+ args: z.ZodArray<z.ZodString>;
108
+ }, z.core.$strict>, z.ZodObject<{
109
+ kind: z.ZodLiteral<"path">;
110
+ cluster: z.ZodEnum<{
111
+ read: "read";
112
+ write: "write";
113
+ }>;
114
+ path: z.ZodString;
115
+ depth: z.ZodEnum<{
116
+ exact: "exact";
117
+ subtree: "subtree";
118
+ }>;
119
+ }, z.core.$strict>, z.ZodObject<{
120
+ kind: z.ZodLiteral<"mcp">;
121
+ server: z.ZodString;
122
+ account: z.ZodOptional<z.ZodString>;
123
+ tool: z.ZodOptional<z.ZodString>;
124
+ }, z.core.$strict>, z.ZodObject<{
125
+ kind: z.ZodLiteral<"tool">;
126
+ name: z.ZodString;
127
+ }, z.core.$strict>, z.ZodObject<{
128
+ kind: z.ZodLiteral<"class">;
129
+ class: z.ZodEnum<{
130
+ "destroy-catastrophic": "destroy-catastrophic";
131
+ "destroy-local": "destroy-local";
132
+ "vcs-history": "vcs-history";
133
+ privilege: "privilege";
134
+ credential: "credential";
135
+ "control-plane": "control-plane";
136
+ "attack-shape": "attack-shape";
137
+ "policy-fault": "policy-fault";
138
+ "package-install": "package-install";
139
+ publish: "publish";
140
+ "remote-write": "remote-write";
141
+ "network-egress": "network-egress";
142
+ "exec-unknown": "exec-unknown";
143
+ unmodelled: "unmodelled";
144
+ "envelope-read": "envelope-read";
145
+ "envelope-write": "envelope-write";
146
+ "protected-file": "protected-file";
147
+ "workspace-write": "workspace-write";
148
+ "mcp-lookup": "mcp-lookup";
149
+ "mcp-action": "mcp-action";
150
+ }>;
151
+ }, z.core.$strict>], "kind">;
152
+ createdAtMs: z.ZodNumber;
153
+ expiresAtMs: z.ZodNullable<z.ZodNumber>;
154
+ source: z.ZodEnum<{
155
+ prompt: "prompt";
156
+ settings: "settings";
157
+ }>;
158
+ label: z.ZodString;
159
+ }, z.core.$strict>;
160
+ export declare const grantListInput: z.ZodObject<{
161
+ kind: z.ZodOptional<z.ZodEnum<{
162
+ grant: "grant";
163
+ ack: "ack";
164
+ }>>;
165
+ scope: z.ZodOptional<z.ZodEnum<{
166
+ session: "session";
167
+ project: "project";
168
+ bot: "bot";
169
+ global: "global";
170
+ }>>;
171
+ sessionId: z.ZodOptional<z.ZodString>;
172
+ projectPath: z.ZodOptional<z.ZodString>;
173
+ bot: z.ZodOptional<z.ZodString>;
174
+ includeExpired: z.ZodOptional<z.ZodBoolean>;
175
+ }, z.core.$strict>;
176
+ export declare const grantListOutput: z.ZodObject<{
177
+ rows: z.ZodArray<z.ZodObject<{
178
+ id: z.ZodString;
179
+ kind: z.ZodOptional<z.ZodEnum<{
180
+ grant: "grant";
181
+ ack: "ack";
182
+ }>>;
183
+ scope: z.ZodEnum<{
184
+ session: "session";
185
+ project: "project";
186
+ bot: "bot";
187
+ global: "global";
188
+ }>;
189
+ scopeKey: z.ZodString;
190
+ subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
191
+ kind: z.ZodLiteral<"command">;
192
+ argv0: z.ZodString;
193
+ spine: z.ZodArray<z.ZodString>;
194
+ args: z.ZodArray<z.ZodString>;
195
+ }, z.core.$strict>, z.ZodObject<{
196
+ kind: z.ZodLiteral<"path">;
197
+ cluster: z.ZodEnum<{
198
+ read: "read";
199
+ write: "write";
200
+ }>;
201
+ path: z.ZodString;
202
+ depth: z.ZodEnum<{
203
+ exact: "exact";
204
+ subtree: "subtree";
205
+ }>;
206
+ }, z.core.$strict>, z.ZodObject<{
207
+ kind: z.ZodLiteral<"mcp">;
208
+ server: z.ZodString;
209
+ account: z.ZodOptional<z.ZodString>;
210
+ tool: z.ZodOptional<z.ZodString>;
211
+ }, z.core.$strict>, z.ZodObject<{
212
+ kind: z.ZodLiteral<"tool">;
213
+ name: z.ZodString;
214
+ }, z.core.$strict>, z.ZodObject<{
215
+ kind: z.ZodLiteral<"class">;
216
+ class: z.ZodEnum<{
217
+ "destroy-catastrophic": "destroy-catastrophic";
218
+ "destroy-local": "destroy-local";
219
+ "vcs-history": "vcs-history";
220
+ privilege: "privilege";
221
+ credential: "credential";
222
+ "control-plane": "control-plane";
223
+ "attack-shape": "attack-shape";
224
+ "policy-fault": "policy-fault";
225
+ "package-install": "package-install";
226
+ publish: "publish";
227
+ "remote-write": "remote-write";
228
+ "network-egress": "network-egress";
229
+ "exec-unknown": "exec-unknown";
230
+ unmodelled: "unmodelled";
231
+ "envelope-read": "envelope-read";
232
+ "envelope-write": "envelope-write";
233
+ "protected-file": "protected-file";
234
+ "workspace-write": "workspace-write";
235
+ "mcp-lookup": "mcp-lookup";
236
+ "mcp-action": "mcp-action";
237
+ }>;
238
+ }, z.core.$strict>], "kind">;
239
+ createdAtMs: z.ZodNumber;
240
+ expiresAtMs: z.ZodNullable<z.ZodNumber>;
241
+ source: z.ZodEnum<{
242
+ prompt: "prompt";
243
+ settings: "settings";
244
+ }>;
245
+ label: z.ZodString;
246
+ }, z.core.$strict>>;
247
+ }, z.core.$strip>;
248
+ export declare const grantAddInput: z.ZodObject<{
249
+ kind: z.ZodOptional<z.ZodEnum<{
250
+ grant: "grant";
251
+ ack: "ack";
252
+ }>>;
253
+ scope: z.ZodEnum<{
254
+ session: "session";
255
+ project: "project";
256
+ bot: "bot";
257
+ global: "global";
258
+ }>;
259
+ scopeKey: z.ZodOptional<z.ZodString>;
260
+ subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
261
+ kind: z.ZodLiteral<"command">;
262
+ argv0: z.ZodString;
263
+ spine: z.ZodArray<z.ZodString>;
264
+ args: z.ZodArray<z.ZodString>;
265
+ }, z.core.$strict>, z.ZodObject<{
266
+ kind: z.ZodLiteral<"path">;
267
+ cluster: z.ZodEnum<{
268
+ read: "read";
269
+ write: "write";
270
+ }>;
271
+ path: z.ZodString;
272
+ depth: z.ZodEnum<{
273
+ exact: "exact";
274
+ subtree: "subtree";
275
+ }>;
276
+ }, z.core.$strict>, z.ZodObject<{
277
+ kind: z.ZodLiteral<"mcp">;
278
+ server: z.ZodString;
279
+ account: z.ZodOptional<z.ZodString>;
280
+ tool: z.ZodOptional<z.ZodString>;
281
+ }, z.core.$strict>, z.ZodObject<{
282
+ kind: z.ZodLiteral<"tool">;
283
+ name: z.ZodString;
284
+ }, z.core.$strict>, z.ZodObject<{
285
+ kind: z.ZodLiteral<"class">;
286
+ class: z.ZodEnum<{
287
+ "destroy-catastrophic": "destroy-catastrophic";
288
+ "destroy-local": "destroy-local";
289
+ "vcs-history": "vcs-history";
290
+ privilege: "privilege";
291
+ credential: "credential";
292
+ "control-plane": "control-plane";
293
+ "attack-shape": "attack-shape";
294
+ "policy-fault": "policy-fault";
295
+ "package-install": "package-install";
296
+ publish: "publish";
297
+ "remote-write": "remote-write";
298
+ "network-egress": "network-egress";
299
+ "exec-unknown": "exec-unknown";
300
+ unmodelled: "unmodelled";
301
+ "envelope-read": "envelope-read";
302
+ "envelope-write": "envelope-write";
303
+ "protected-file": "protected-file";
304
+ "workspace-write": "workspace-write";
305
+ "mcp-lookup": "mcp-lookup";
306
+ "mcp-action": "mcp-action";
307
+ }>;
308
+ }, z.core.$strict>], "kind">;
309
+ ttlMs: z.ZodOptional<z.ZodNumber>;
310
+ }, z.core.$strict>;
311
+ export declare const grantAddOutput: z.ZodUnion<readonly [z.ZodObject<{
312
+ ok: z.ZodLiteral<true>;
313
+ row: z.ZodObject<{
314
+ id: z.ZodString;
315
+ kind: z.ZodOptional<z.ZodEnum<{
316
+ grant: "grant";
317
+ ack: "ack";
318
+ }>>;
319
+ scope: z.ZodEnum<{
320
+ session: "session";
321
+ project: "project";
322
+ bot: "bot";
323
+ global: "global";
324
+ }>;
325
+ scopeKey: z.ZodString;
326
+ subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
327
+ kind: z.ZodLiteral<"command">;
328
+ argv0: z.ZodString;
329
+ spine: z.ZodArray<z.ZodString>;
330
+ args: z.ZodArray<z.ZodString>;
331
+ }, z.core.$strict>, z.ZodObject<{
332
+ kind: z.ZodLiteral<"path">;
333
+ cluster: z.ZodEnum<{
334
+ read: "read";
335
+ write: "write";
336
+ }>;
337
+ path: z.ZodString;
338
+ depth: z.ZodEnum<{
339
+ exact: "exact";
340
+ subtree: "subtree";
341
+ }>;
342
+ }, z.core.$strict>, z.ZodObject<{
343
+ kind: z.ZodLiteral<"mcp">;
344
+ server: z.ZodString;
345
+ account: z.ZodOptional<z.ZodString>;
346
+ tool: z.ZodOptional<z.ZodString>;
347
+ }, z.core.$strict>, z.ZodObject<{
348
+ kind: z.ZodLiteral<"tool">;
349
+ name: z.ZodString;
350
+ }, z.core.$strict>, z.ZodObject<{
351
+ kind: z.ZodLiteral<"class">;
352
+ class: z.ZodEnum<{
353
+ "destroy-catastrophic": "destroy-catastrophic";
354
+ "destroy-local": "destroy-local";
355
+ "vcs-history": "vcs-history";
356
+ privilege: "privilege";
357
+ credential: "credential";
358
+ "control-plane": "control-plane";
359
+ "attack-shape": "attack-shape";
360
+ "policy-fault": "policy-fault";
361
+ "package-install": "package-install";
362
+ publish: "publish";
363
+ "remote-write": "remote-write";
364
+ "network-egress": "network-egress";
365
+ "exec-unknown": "exec-unknown";
366
+ unmodelled: "unmodelled";
367
+ "envelope-read": "envelope-read";
368
+ "envelope-write": "envelope-write";
369
+ "protected-file": "protected-file";
370
+ "workspace-write": "workspace-write";
371
+ "mcp-lookup": "mcp-lookup";
372
+ "mcp-action": "mcp-action";
373
+ }>;
374
+ }, z.core.$strict>], "kind">;
375
+ createdAtMs: z.ZodNumber;
376
+ expiresAtMs: z.ZodNullable<z.ZodNumber>;
377
+ source: z.ZodEnum<{
378
+ prompt: "prompt";
379
+ settings: "settings";
380
+ }>;
381
+ label: z.ZodString;
382
+ }, z.core.$strict>;
383
+ }, z.core.$strip>, z.ZodObject<{
384
+ ok: z.ZodLiteral<false>;
385
+ reason: z.ZodEnum<{
386
+ "fenced-path": "fenced-path";
387
+ "invalid-scope": "invalid-scope";
388
+ "unknown-session": "unknown-session";
389
+ "subject-not-allowed": "subject-not-allowed";
390
+ }>;
391
+ }, z.core.$strip>]>;
392
+ export declare const grantRevokeInput: z.ZodObject<{
393
+ id: z.ZodString;
394
+ sessionId: z.ZodOptional<z.ZodString>;
395
+ }, z.core.$strict>;
396
+ export declare const grantRevokeOutput: z.ZodObject<{
397
+ ok: z.ZodBoolean;
398
+ }, z.core.$strip>;
399
+ /** Remember a human "yes" to an ask. Never for a soft-deny, never for a block. */
400
+ export declare const askStoreInput: z.ZodObject<{
401
+ scope: z.ZodEnum<{
402
+ session: "session";
403
+ project: "project";
404
+ bot: "bot";
405
+ global: "global";
406
+ }>;
407
+ subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
408
+ kind: z.ZodLiteral<"command">;
409
+ argv0: z.ZodString;
410
+ spine: z.ZodArray<z.ZodString>;
411
+ args: z.ZodArray<z.ZodString>;
412
+ }, z.core.$strict>, z.ZodObject<{
413
+ kind: z.ZodLiteral<"path">;
414
+ cluster: z.ZodEnum<{
415
+ read: "read";
416
+ write: "write";
417
+ }>;
418
+ path: z.ZodString;
419
+ depth: z.ZodEnum<{
420
+ exact: "exact";
421
+ subtree: "subtree";
422
+ }>;
423
+ }, z.core.$strict>, z.ZodObject<{
424
+ kind: z.ZodLiteral<"mcp">;
425
+ server: z.ZodString;
426
+ account: z.ZodOptional<z.ZodString>;
427
+ tool: z.ZodOptional<z.ZodString>;
428
+ }, z.core.$strict>, z.ZodObject<{
429
+ kind: z.ZodLiteral<"tool">;
430
+ name: z.ZodString;
431
+ }, z.core.$strict>, z.ZodObject<{
432
+ kind: z.ZodLiteral<"class">;
433
+ class: z.ZodEnum<{
434
+ "destroy-catastrophic": "destroy-catastrophic";
435
+ "destroy-local": "destroy-local";
436
+ "vcs-history": "vcs-history";
437
+ privilege: "privilege";
438
+ credential: "credential";
439
+ "control-plane": "control-plane";
440
+ "attack-shape": "attack-shape";
441
+ "policy-fault": "policy-fault";
442
+ "package-install": "package-install";
443
+ publish: "publish";
444
+ "remote-write": "remote-write";
445
+ "network-egress": "network-egress";
446
+ "exec-unknown": "exec-unknown";
447
+ unmodelled: "unmodelled";
448
+ "envelope-read": "envelope-read";
449
+ "envelope-write": "envelope-write";
450
+ "protected-file": "protected-file";
451
+ "workspace-write": "workspace-write";
452
+ "mcp-lookup": "mcp-lookup";
453
+ "mcp-action": "mcp-action";
454
+ }>;
455
+ }, z.core.$strict>], "kind">;
456
+ ttlMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
457
+ }, z.core.$strict>;
458
+ export declare const askAnswerInput: z.ZodObject<{
459
+ sessionId: z.ZodString;
460
+ jobId: z.ZodString;
461
+ allow: z.ZodBoolean;
462
+ comment: z.ZodOptional<z.ZodString>;
463
+ widen: z.ZodOptional<z.ZodString>;
464
+ store: z.ZodOptional<z.ZodObject<{
465
+ scope: z.ZodEnum<{
466
+ session: "session";
467
+ project: "project";
468
+ bot: "bot";
469
+ global: "global";
470
+ }>;
471
+ subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
472
+ kind: z.ZodLiteral<"command">;
473
+ argv0: z.ZodString;
474
+ spine: z.ZodArray<z.ZodString>;
475
+ args: z.ZodArray<z.ZodString>;
476
+ }, z.core.$strict>, z.ZodObject<{
477
+ kind: z.ZodLiteral<"path">;
478
+ cluster: z.ZodEnum<{
479
+ read: "read";
480
+ write: "write";
481
+ }>;
482
+ path: z.ZodString;
483
+ depth: z.ZodEnum<{
484
+ exact: "exact";
485
+ subtree: "subtree";
486
+ }>;
487
+ }, z.core.$strict>, z.ZodObject<{
488
+ kind: z.ZodLiteral<"mcp">;
489
+ server: z.ZodString;
490
+ account: z.ZodOptional<z.ZodString>;
491
+ tool: z.ZodOptional<z.ZodString>;
492
+ }, z.core.$strict>, z.ZodObject<{
493
+ kind: z.ZodLiteral<"tool">;
494
+ name: z.ZodString;
495
+ }, z.core.$strict>, z.ZodObject<{
496
+ kind: z.ZodLiteral<"class">;
497
+ class: z.ZodEnum<{
498
+ "destroy-catastrophic": "destroy-catastrophic";
499
+ "destroy-local": "destroy-local";
500
+ "vcs-history": "vcs-history";
501
+ privilege: "privilege";
502
+ credential: "credential";
503
+ "control-plane": "control-plane";
504
+ "attack-shape": "attack-shape";
505
+ "policy-fault": "policy-fault";
506
+ "package-install": "package-install";
507
+ publish: "publish";
508
+ "remote-write": "remote-write";
509
+ "network-egress": "network-egress";
510
+ "exec-unknown": "exec-unknown";
511
+ unmodelled: "unmodelled";
512
+ "envelope-read": "envelope-read";
513
+ "envelope-write": "envelope-write";
514
+ "protected-file": "protected-file";
515
+ "workspace-write": "workspace-write";
516
+ "mcp-lookup": "mcp-lookup";
517
+ "mcp-action": "mcp-action";
518
+ }>;
519
+ }, z.core.$strict>], "kind">;
520
+ ttlMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
521
+ }, z.core.$strict>>;
522
+ ackStore: z.ZodOptional<z.ZodObject<{
523
+ scope: z.ZodEnum<{
524
+ session: "session";
525
+ project: "project";
526
+ bot: "bot";
527
+ global: "global";
528
+ }>;
529
+ subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
530
+ kind: z.ZodLiteral<"command">;
531
+ argv0: z.ZodString;
532
+ spine: z.ZodArray<z.ZodString>;
533
+ args: z.ZodArray<z.ZodString>;
534
+ }, z.core.$strict>, z.ZodObject<{
535
+ kind: z.ZodLiteral<"path">;
536
+ cluster: z.ZodEnum<{
537
+ read: "read";
538
+ write: "write";
539
+ }>;
540
+ path: z.ZodString;
541
+ depth: z.ZodEnum<{
542
+ exact: "exact";
543
+ subtree: "subtree";
544
+ }>;
545
+ }, z.core.$strict>, z.ZodObject<{
546
+ kind: z.ZodLiteral<"mcp">;
547
+ server: z.ZodString;
548
+ account: z.ZodOptional<z.ZodString>;
549
+ tool: z.ZodOptional<z.ZodString>;
550
+ }, z.core.$strict>, z.ZodObject<{
551
+ kind: z.ZodLiteral<"tool">;
552
+ name: z.ZodString;
553
+ }, z.core.$strict>, z.ZodObject<{
554
+ kind: z.ZodLiteral<"class">;
555
+ class: z.ZodEnum<{
556
+ "destroy-catastrophic": "destroy-catastrophic";
557
+ "destroy-local": "destroy-local";
558
+ "vcs-history": "vcs-history";
559
+ privilege: "privilege";
560
+ credential: "credential";
561
+ "control-plane": "control-plane";
562
+ "attack-shape": "attack-shape";
563
+ "policy-fault": "policy-fault";
564
+ "package-install": "package-install";
565
+ publish: "publish";
566
+ "remote-write": "remote-write";
567
+ "network-egress": "network-egress";
568
+ "exec-unknown": "exec-unknown";
569
+ unmodelled: "unmodelled";
570
+ "envelope-read": "envelope-read";
571
+ "envelope-write": "envelope-write";
572
+ "protected-file": "protected-file";
573
+ "workspace-write": "workspace-write";
574
+ "mcp-lookup": "mcp-lookup";
575
+ "mcp-action": "mcp-action";
576
+ }>;
577
+ }, z.core.$strict>], "kind">;
578
+ ttlMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
579
+ }, z.core.$strict>>;
580
+ persist: z.ZodOptional<z.ZodEnum<{
581
+ session: "session";
582
+ always: "always";
583
+ }>>;
584
+ }, z.core.$strip>;
585
+ export declare const askAnswerOutput: z.ZodObject<{
586
+ ok: z.ZodBoolean;
587
+ reason: z.ZodOptional<z.ZodEnum<{
588
+ "not-pending": "not-pending";
589
+ block: "block";
590
+ "soft-deny-not-storable": "soft-deny-not-storable";
591
+ "subject-not-offered": "subject-not-offered";
592
+ "folder-not-allowed": "folder-not-allowed";
593
+ "scope-unavailable": "scope-unavailable";
594
+ }>>;
595
+ grant: z.ZodOptional<z.ZodObject<{
596
+ id: z.ZodString;
597
+ kind: z.ZodOptional<z.ZodEnum<{
598
+ grant: "grant";
599
+ ack: "ack";
600
+ }>>;
601
+ scope: z.ZodEnum<{
602
+ session: "session";
603
+ project: "project";
604
+ bot: "bot";
605
+ global: "global";
606
+ }>;
607
+ scopeKey: z.ZodString;
608
+ subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
609
+ kind: z.ZodLiteral<"command">;
610
+ argv0: z.ZodString;
611
+ spine: z.ZodArray<z.ZodString>;
612
+ args: z.ZodArray<z.ZodString>;
613
+ }, z.core.$strict>, z.ZodObject<{
614
+ kind: z.ZodLiteral<"path">;
615
+ cluster: z.ZodEnum<{
616
+ read: "read";
617
+ write: "write";
618
+ }>;
619
+ path: z.ZodString;
620
+ depth: z.ZodEnum<{
621
+ exact: "exact";
622
+ subtree: "subtree";
623
+ }>;
624
+ }, z.core.$strict>, z.ZodObject<{
625
+ kind: z.ZodLiteral<"mcp">;
626
+ server: z.ZodString;
627
+ account: z.ZodOptional<z.ZodString>;
628
+ tool: z.ZodOptional<z.ZodString>;
629
+ }, z.core.$strict>, z.ZodObject<{
630
+ kind: z.ZodLiteral<"tool">;
631
+ name: z.ZodString;
632
+ }, z.core.$strict>, z.ZodObject<{
633
+ kind: z.ZodLiteral<"class">;
634
+ class: z.ZodEnum<{
635
+ "destroy-catastrophic": "destroy-catastrophic";
636
+ "destroy-local": "destroy-local";
637
+ "vcs-history": "vcs-history";
638
+ privilege: "privilege";
639
+ credential: "credential";
640
+ "control-plane": "control-plane";
641
+ "attack-shape": "attack-shape";
642
+ "policy-fault": "policy-fault";
643
+ "package-install": "package-install";
644
+ publish: "publish";
645
+ "remote-write": "remote-write";
646
+ "network-egress": "network-egress";
647
+ "exec-unknown": "exec-unknown";
648
+ unmodelled: "unmodelled";
649
+ "envelope-read": "envelope-read";
650
+ "envelope-write": "envelope-write";
651
+ "protected-file": "protected-file";
652
+ "workspace-write": "workspace-write";
653
+ "mcp-lookup": "mcp-lookup";
654
+ "mcp-action": "mcp-action";
655
+ }>;
656
+ }, z.core.$strict>], "kind">;
657
+ createdAtMs: z.ZodNumber;
658
+ expiresAtMs: z.ZodNullable<z.ZodNumber>;
659
+ source: z.ZodEnum<{
660
+ prompt: "prompt";
661
+ settings: "settings";
662
+ }>;
663
+ label: z.ZodString;
664
+ }, z.core.$strict>>;
665
+ }, z.core.$strip>;
666
+ /**
667
+ * A call that is allowed but waits for the user's acknowledgement (a `needsAcknowledgement` flag). The
668
+ * daemon holds the ledger; it is never a job, a transcript entry or a model-visible field.
669
+ */
670
+ export declare const ackStoreOptionSchema: z.ZodObject<{
671
+ scope: z.ZodEnum<{
672
+ session: "session";
673
+ project: "project";
674
+ bot: "bot";
675
+ global: "global";
676
+ }>;
677
+ subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
678
+ kind: z.ZodLiteral<"command">;
679
+ argv0: z.ZodString;
680
+ spine: z.ZodArray<z.ZodString>;
681
+ args: z.ZodArray<z.ZodString>;
682
+ }, z.core.$strict>, z.ZodObject<{
683
+ kind: z.ZodLiteral<"path">;
684
+ cluster: z.ZodEnum<{
685
+ read: "read";
686
+ write: "write";
687
+ }>;
688
+ path: z.ZodString;
689
+ depth: z.ZodEnum<{
690
+ exact: "exact";
691
+ subtree: "subtree";
692
+ }>;
693
+ }, z.core.$strict>, z.ZodObject<{
694
+ kind: z.ZodLiteral<"mcp">;
695
+ server: z.ZodString;
696
+ account: z.ZodOptional<z.ZodString>;
697
+ tool: z.ZodOptional<z.ZodString>;
698
+ }, z.core.$strict>, z.ZodObject<{
699
+ kind: z.ZodLiteral<"tool">;
700
+ name: z.ZodString;
701
+ }, z.core.$strict>, z.ZodObject<{
702
+ kind: z.ZodLiteral<"class">;
703
+ class: z.ZodEnum<{
704
+ "destroy-catastrophic": "destroy-catastrophic";
705
+ "destroy-local": "destroy-local";
706
+ "vcs-history": "vcs-history";
707
+ privilege: "privilege";
708
+ credential: "credential";
709
+ "control-plane": "control-plane";
710
+ "attack-shape": "attack-shape";
711
+ "policy-fault": "policy-fault";
712
+ "package-install": "package-install";
713
+ publish: "publish";
714
+ "remote-write": "remote-write";
715
+ "network-egress": "network-egress";
716
+ "exec-unknown": "exec-unknown";
717
+ unmodelled: "unmodelled";
718
+ "envelope-read": "envelope-read";
719
+ "envelope-write": "envelope-write";
720
+ "protected-file": "protected-file";
721
+ "workspace-write": "workspace-write";
722
+ "mcp-lookup": "mcp-lookup";
723
+ "mcp-action": "mcp-action";
724
+ }>;
725
+ }, z.core.$strict>], "kind">;
726
+ label: z.ZodString;
727
+ defaultTtlMs: z.ZodNullable<z.ZodNumber>;
728
+ }, z.core.$strip>;
729
+ export declare const ackRequestSchema: z.ZodObject<{
730
+ ackId: z.ZodString;
731
+ sessionId: z.ZodString;
732
+ jobId: z.ZodString;
733
+ tool: z.ZodString;
734
+ summary: z.ZodString;
735
+ detail: z.ZodString;
736
+ flags: z.ZodArray<z.ZodObject<{
737
+ label: z.ZodString;
738
+ why: z.ZodOptional<z.ZodString>;
739
+ layer: z.ZodEnum<{
740
+ session: "session";
741
+ project: "project";
742
+ dist: "dist";
743
+ managed: "managed";
744
+ user: "user";
745
+ }>;
746
+ }, z.core.$strip>>;
747
+ verdict: z.ZodObject<{
748
+ tier: z.ZodEnum<{
749
+ allow: "allow";
750
+ ask: "ask";
751
+ "soft-deny": "soft-deny";
752
+ }>;
753
+ classes: z.ZodArray<z.ZodEnum<{
754
+ "destroy-catastrophic": "destroy-catastrophic";
755
+ "destroy-local": "destroy-local";
756
+ "vcs-history": "vcs-history";
757
+ privilege: "privilege";
758
+ credential: "credential";
759
+ "control-plane": "control-plane";
760
+ "attack-shape": "attack-shape";
761
+ "policy-fault": "policy-fault";
762
+ "package-install": "package-install";
763
+ publish: "publish";
764
+ "remote-write": "remote-write";
765
+ "network-egress": "network-egress";
766
+ "exec-unknown": "exec-unknown";
767
+ unmodelled: "unmodelled";
768
+ "envelope-read": "envelope-read";
769
+ "envelope-write": "envelope-write";
770
+ "protected-file": "protected-file";
771
+ "workspace-write": "workspace-write";
772
+ "mcp-lookup": "mcp-lookup";
773
+ "mcp-action": "mcp-action";
774
+ }>>;
775
+ licensedBy: z.ZodEnum<{
776
+ grant: "grant";
777
+ floor: "floor";
778
+ judge: "judge";
779
+ resolver: "resolver";
780
+ pending: "pending";
781
+ }>;
782
+ }, z.core.$strip>;
783
+ storeOptions: z.ZodArray<z.ZodObject<{
784
+ scope: z.ZodEnum<{
785
+ session: "session";
786
+ project: "project";
787
+ bot: "bot";
788
+ global: "global";
789
+ }>;
790
+ subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
791
+ kind: z.ZodLiteral<"command">;
792
+ argv0: z.ZodString;
793
+ spine: z.ZodArray<z.ZodString>;
794
+ args: z.ZodArray<z.ZodString>;
795
+ }, z.core.$strict>, z.ZodObject<{
796
+ kind: z.ZodLiteral<"path">;
797
+ cluster: z.ZodEnum<{
798
+ read: "read";
799
+ write: "write";
800
+ }>;
801
+ path: z.ZodString;
802
+ depth: z.ZodEnum<{
803
+ exact: "exact";
804
+ subtree: "subtree";
805
+ }>;
806
+ }, z.core.$strict>, z.ZodObject<{
807
+ kind: z.ZodLiteral<"mcp">;
808
+ server: z.ZodString;
809
+ account: z.ZodOptional<z.ZodString>;
810
+ tool: z.ZodOptional<z.ZodString>;
811
+ }, z.core.$strict>, z.ZodObject<{
812
+ kind: z.ZodLiteral<"tool">;
813
+ name: z.ZodString;
814
+ }, z.core.$strict>, z.ZodObject<{
815
+ kind: z.ZodLiteral<"class">;
816
+ class: z.ZodEnum<{
817
+ "destroy-catastrophic": "destroy-catastrophic";
818
+ "destroy-local": "destroy-local";
819
+ "vcs-history": "vcs-history";
820
+ privilege: "privilege";
821
+ credential: "credential";
822
+ "control-plane": "control-plane";
823
+ "attack-shape": "attack-shape";
824
+ "policy-fault": "policy-fault";
825
+ "package-install": "package-install";
826
+ publish: "publish";
827
+ "remote-write": "remote-write";
828
+ "network-egress": "network-egress";
829
+ "exec-unknown": "exec-unknown";
830
+ unmodelled: "unmodelled";
831
+ "envelope-read": "envelope-read";
832
+ "envelope-write": "envelope-write";
833
+ "protected-file": "protected-file";
834
+ "workspace-write": "workspace-write";
835
+ "mcp-lookup": "mcp-lookup";
836
+ "mcp-action": "mcp-action";
837
+ }>;
838
+ }, z.core.$strict>], "kind">;
839
+ label: z.ZodString;
840
+ defaultTtlMs: z.ZodNullable<z.ZodNumber>;
841
+ }, z.core.$strip>>;
842
+ createdAtMs: z.ZodNumber;
843
+ }, z.core.$strip>;
844
+ export declare const ackPendingInput: z.ZodObject<{
845
+ sessionId: z.ZodOptional<z.ZodString>;
846
+ }, z.core.$strict>;
847
+ export declare const ackPendingOutput: z.ZodObject<{
848
+ acks: z.ZodArray<z.ZodObject<{
849
+ ackId: z.ZodString;
850
+ sessionId: z.ZodString;
851
+ jobId: z.ZodString;
852
+ tool: z.ZodString;
853
+ summary: z.ZodString;
854
+ detail: z.ZodString;
855
+ flags: z.ZodArray<z.ZodObject<{
856
+ label: z.ZodString;
857
+ why: z.ZodOptional<z.ZodString>;
858
+ layer: z.ZodEnum<{
859
+ session: "session";
860
+ project: "project";
861
+ dist: "dist";
862
+ managed: "managed";
863
+ user: "user";
864
+ }>;
865
+ }, z.core.$strip>>;
866
+ verdict: z.ZodObject<{
867
+ tier: z.ZodEnum<{
868
+ allow: "allow";
869
+ ask: "ask";
870
+ "soft-deny": "soft-deny";
871
+ }>;
872
+ classes: z.ZodArray<z.ZodEnum<{
873
+ "destroy-catastrophic": "destroy-catastrophic";
874
+ "destroy-local": "destroy-local";
875
+ "vcs-history": "vcs-history";
876
+ privilege: "privilege";
877
+ credential: "credential";
878
+ "control-plane": "control-plane";
879
+ "attack-shape": "attack-shape";
880
+ "policy-fault": "policy-fault";
881
+ "package-install": "package-install";
882
+ publish: "publish";
883
+ "remote-write": "remote-write";
884
+ "network-egress": "network-egress";
885
+ "exec-unknown": "exec-unknown";
886
+ unmodelled: "unmodelled";
887
+ "envelope-read": "envelope-read";
888
+ "envelope-write": "envelope-write";
889
+ "protected-file": "protected-file";
890
+ "workspace-write": "workspace-write";
891
+ "mcp-lookup": "mcp-lookup";
892
+ "mcp-action": "mcp-action";
893
+ }>>;
894
+ licensedBy: z.ZodEnum<{
895
+ grant: "grant";
896
+ floor: "floor";
897
+ judge: "judge";
898
+ resolver: "resolver";
899
+ pending: "pending";
900
+ }>;
901
+ }, z.core.$strip>;
902
+ storeOptions: z.ZodArray<z.ZodObject<{
903
+ scope: z.ZodEnum<{
904
+ session: "session";
905
+ project: "project";
906
+ bot: "bot";
907
+ global: "global";
908
+ }>;
909
+ subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
910
+ kind: z.ZodLiteral<"command">;
911
+ argv0: z.ZodString;
912
+ spine: z.ZodArray<z.ZodString>;
913
+ args: z.ZodArray<z.ZodString>;
914
+ }, z.core.$strict>, z.ZodObject<{
915
+ kind: z.ZodLiteral<"path">;
916
+ cluster: z.ZodEnum<{
917
+ read: "read";
918
+ write: "write";
919
+ }>;
920
+ path: z.ZodString;
921
+ depth: z.ZodEnum<{
922
+ exact: "exact";
923
+ subtree: "subtree";
924
+ }>;
925
+ }, z.core.$strict>, z.ZodObject<{
926
+ kind: z.ZodLiteral<"mcp">;
927
+ server: z.ZodString;
928
+ account: z.ZodOptional<z.ZodString>;
929
+ tool: z.ZodOptional<z.ZodString>;
930
+ }, z.core.$strict>, z.ZodObject<{
931
+ kind: z.ZodLiteral<"tool">;
932
+ name: z.ZodString;
933
+ }, z.core.$strict>, z.ZodObject<{
934
+ kind: z.ZodLiteral<"class">;
935
+ class: z.ZodEnum<{
936
+ "destroy-catastrophic": "destroy-catastrophic";
937
+ "destroy-local": "destroy-local";
938
+ "vcs-history": "vcs-history";
939
+ privilege: "privilege";
940
+ credential: "credential";
941
+ "control-plane": "control-plane";
942
+ "attack-shape": "attack-shape";
943
+ "policy-fault": "policy-fault";
944
+ "package-install": "package-install";
945
+ publish: "publish";
946
+ "remote-write": "remote-write";
947
+ "network-egress": "network-egress";
948
+ "exec-unknown": "exec-unknown";
949
+ unmodelled: "unmodelled";
950
+ "envelope-read": "envelope-read";
951
+ "envelope-write": "envelope-write";
952
+ "protected-file": "protected-file";
953
+ "workspace-write": "workspace-write";
954
+ "mcp-lookup": "mcp-lookup";
955
+ "mcp-action": "mcp-action";
956
+ }>;
957
+ }, z.core.$strict>], "kind">;
958
+ label: z.ZodString;
959
+ defaultTtlMs: z.ZodNullable<z.ZodNumber>;
960
+ }, z.core.$strip>>;
961
+ createdAtMs: z.ZodNumber;
962
+ }, z.core.$strip>>;
963
+ }, z.core.$strip>;
964
+ export declare const ackAnswerInput: z.ZodObject<{
965
+ sessionId: z.ZodString;
966
+ jobId: z.ZodString;
967
+ ackId: z.ZodString;
968
+ accept: z.ZodBoolean;
969
+ store: z.ZodOptional<z.ZodObject<{
970
+ scope: z.ZodEnum<{
971
+ session: "session";
972
+ project: "project";
973
+ bot: "bot";
974
+ global: "global";
975
+ }>;
976
+ subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
977
+ kind: z.ZodLiteral<"command">;
978
+ argv0: z.ZodString;
979
+ spine: z.ZodArray<z.ZodString>;
980
+ args: z.ZodArray<z.ZodString>;
981
+ }, z.core.$strict>, z.ZodObject<{
982
+ kind: z.ZodLiteral<"path">;
983
+ cluster: z.ZodEnum<{
984
+ read: "read";
985
+ write: "write";
986
+ }>;
987
+ path: z.ZodString;
988
+ depth: z.ZodEnum<{
989
+ exact: "exact";
990
+ subtree: "subtree";
991
+ }>;
992
+ }, z.core.$strict>, z.ZodObject<{
993
+ kind: z.ZodLiteral<"mcp">;
994
+ server: z.ZodString;
995
+ account: z.ZodOptional<z.ZodString>;
996
+ tool: z.ZodOptional<z.ZodString>;
997
+ }, z.core.$strict>, z.ZodObject<{
998
+ kind: z.ZodLiteral<"tool">;
999
+ name: z.ZodString;
1000
+ }, z.core.$strict>, z.ZodObject<{
1001
+ kind: z.ZodLiteral<"class">;
1002
+ class: z.ZodEnum<{
1003
+ "destroy-catastrophic": "destroy-catastrophic";
1004
+ "destroy-local": "destroy-local";
1005
+ "vcs-history": "vcs-history";
1006
+ privilege: "privilege";
1007
+ credential: "credential";
1008
+ "control-plane": "control-plane";
1009
+ "attack-shape": "attack-shape";
1010
+ "policy-fault": "policy-fault";
1011
+ "package-install": "package-install";
1012
+ publish: "publish";
1013
+ "remote-write": "remote-write";
1014
+ "network-egress": "network-egress";
1015
+ "exec-unknown": "exec-unknown";
1016
+ unmodelled: "unmodelled";
1017
+ "envelope-read": "envelope-read";
1018
+ "envelope-write": "envelope-write";
1019
+ "protected-file": "protected-file";
1020
+ "workspace-write": "workspace-write";
1021
+ "mcp-lookup": "mcp-lookup";
1022
+ "mcp-action": "mcp-action";
1023
+ }>;
1024
+ }, z.core.$strict>], "kind">;
1025
+ ttlMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1026
+ }, z.core.$strict>>;
1027
+ comment: z.ZodOptional<z.ZodString>;
1028
+ }, z.core.$strict>;
1029
+ export declare const ackAnswerOutput: z.ZodObject<{
1030
+ ok: z.ZodBoolean;
1031
+ reason: z.ZodOptional<z.ZodEnum<{
1032
+ "not-pending": "not-pending";
1033
+ "subject-not-offered": "subject-not-offered";
1034
+ "scope-unavailable": "scope-unavailable";
1035
+ }>>;
1036
+ ack: z.ZodOptional<z.ZodObject<{
1037
+ id: z.ZodString;
1038
+ kind: z.ZodOptional<z.ZodEnum<{
1039
+ grant: "grant";
1040
+ ack: "ack";
1041
+ }>>;
1042
+ scope: z.ZodEnum<{
1043
+ session: "session";
1044
+ project: "project";
1045
+ bot: "bot";
1046
+ global: "global";
1047
+ }>;
1048
+ scopeKey: z.ZodString;
1049
+ subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
1050
+ kind: z.ZodLiteral<"command">;
1051
+ argv0: z.ZodString;
1052
+ spine: z.ZodArray<z.ZodString>;
1053
+ args: z.ZodArray<z.ZodString>;
1054
+ }, z.core.$strict>, z.ZodObject<{
1055
+ kind: z.ZodLiteral<"path">;
1056
+ cluster: z.ZodEnum<{
1057
+ read: "read";
1058
+ write: "write";
1059
+ }>;
1060
+ path: z.ZodString;
1061
+ depth: z.ZodEnum<{
1062
+ exact: "exact";
1063
+ subtree: "subtree";
1064
+ }>;
1065
+ }, z.core.$strict>, z.ZodObject<{
1066
+ kind: z.ZodLiteral<"mcp">;
1067
+ server: z.ZodString;
1068
+ account: z.ZodOptional<z.ZodString>;
1069
+ tool: z.ZodOptional<z.ZodString>;
1070
+ }, z.core.$strict>, z.ZodObject<{
1071
+ kind: z.ZodLiteral<"tool">;
1072
+ name: z.ZodString;
1073
+ }, z.core.$strict>, z.ZodObject<{
1074
+ kind: z.ZodLiteral<"class">;
1075
+ class: z.ZodEnum<{
1076
+ "destroy-catastrophic": "destroy-catastrophic";
1077
+ "destroy-local": "destroy-local";
1078
+ "vcs-history": "vcs-history";
1079
+ privilege: "privilege";
1080
+ credential: "credential";
1081
+ "control-plane": "control-plane";
1082
+ "attack-shape": "attack-shape";
1083
+ "policy-fault": "policy-fault";
1084
+ "package-install": "package-install";
1085
+ publish: "publish";
1086
+ "remote-write": "remote-write";
1087
+ "network-egress": "network-egress";
1088
+ "exec-unknown": "exec-unknown";
1089
+ unmodelled: "unmodelled";
1090
+ "envelope-read": "envelope-read";
1091
+ "envelope-write": "envelope-write";
1092
+ "protected-file": "protected-file";
1093
+ "workspace-write": "workspace-write";
1094
+ "mcp-lookup": "mcp-lookup";
1095
+ "mcp-action": "mcp-action";
1096
+ }>;
1097
+ }, z.core.$strict>], "kind">;
1098
+ createdAtMs: z.ZodNumber;
1099
+ expiresAtMs: z.ZodNullable<z.ZodNumber>;
1100
+ source: z.ZodEnum<{
1101
+ prompt: "prompt";
1102
+ settings: "settings";
1103
+ }>;
1104
+ label: z.ZodString;
1105
+ }, z.core.$strict>>;
1106
+ }, z.core.$strip>;
1107
+ export declare const ackListInput: z.ZodObject<{
1108
+ bot: z.ZodOptional<z.ZodString>;
1109
+ scope: z.ZodOptional<z.ZodEnum<{
1110
+ session: "session";
1111
+ project: "project";
1112
+ bot: "bot";
1113
+ global: "global";
1114
+ }>>;
1115
+ sessionId: z.ZodOptional<z.ZodString>;
1116
+ projectPath: z.ZodOptional<z.ZodString>;
1117
+ includeExpired: z.ZodOptional<z.ZodBoolean>;
1118
+ }, z.core.$strict>;
1119
+ export declare const ackListOutput: z.ZodObject<{
1120
+ rows: z.ZodArray<z.ZodObject<{
1121
+ id: z.ZodString;
1122
+ kind: z.ZodOptional<z.ZodEnum<{
1123
+ grant: "grant";
1124
+ ack: "ack";
1125
+ }>>;
1126
+ scope: z.ZodEnum<{
1127
+ session: "session";
1128
+ project: "project";
1129
+ bot: "bot";
1130
+ global: "global";
1131
+ }>;
1132
+ scopeKey: z.ZodString;
1133
+ subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
1134
+ kind: z.ZodLiteral<"command">;
1135
+ argv0: z.ZodString;
1136
+ spine: z.ZodArray<z.ZodString>;
1137
+ args: z.ZodArray<z.ZodString>;
1138
+ }, z.core.$strict>, z.ZodObject<{
1139
+ kind: z.ZodLiteral<"path">;
1140
+ cluster: z.ZodEnum<{
1141
+ read: "read";
1142
+ write: "write";
1143
+ }>;
1144
+ path: z.ZodString;
1145
+ depth: z.ZodEnum<{
1146
+ exact: "exact";
1147
+ subtree: "subtree";
1148
+ }>;
1149
+ }, z.core.$strict>, z.ZodObject<{
1150
+ kind: z.ZodLiteral<"mcp">;
1151
+ server: z.ZodString;
1152
+ account: z.ZodOptional<z.ZodString>;
1153
+ tool: z.ZodOptional<z.ZodString>;
1154
+ }, z.core.$strict>, z.ZodObject<{
1155
+ kind: z.ZodLiteral<"tool">;
1156
+ name: z.ZodString;
1157
+ }, z.core.$strict>, z.ZodObject<{
1158
+ kind: z.ZodLiteral<"class">;
1159
+ class: z.ZodEnum<{
1160
+ "destroy-catastrophic": "destroy-catastrophic";
1161
+ "destroy-local": "destroy-local";
1162
+ "vcs-history": "vcs-history";
1163
+ privilege: "privilege";
1164
+ credential: "credential";
1165
+ "control-plane": "control-plane";
1166
+ "attack-shape": "attack-shape";
1167
+ "policy-fault": "policy-fault";
1168
+ "package-install": "package-install";
1169
+ publish: "publish";
1170
+ "remote-write": "remote-write";
1171
+ "network-egress": "network-egress";
1172
+ "exec-unknown": "exec-unknown";
1173
+ unmodelled: "unmodelled";
1174
+ "envelope-read": "envelope-read";
1175
+ "envelope-write": "envelope-write";
1176
+ "protected-file": "protected-file";
1177
+ "workspace-write": "workspace-write";
1178
+ "mcp-lookup": "mcp-lookup";
1179
+ "mcp-action": "mcp-action";
1180
+ }>;
1181
+ }, z.core.$strict>], "kind">;
1182
+ createdAtMs: z.ZodNumber;
1183
+ expiresAtMs: z.ZodNullable<z.ZodNumber>;
1184
+ source: z.ZodEnum<{
1185
+ prompt: "prompt";
1186
+ settings: "settings";
1187
+ }>;
1188
+ label: z.ZodString;
1189
+ }, z.core.$strict>>;
1190
+ }, z.core.$strip>;
1191
+ export declare const ackAddInput: z.ZodObject<{
1192
+ scope: z.ZodEnum<{
1193
+ session: "session";
1194
+ project: "project";
1195
+ bot: "bot";
1196
+ global: "global";
1197
+ }>;
1198
+ subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
1199
+ kind: z.ZodLiteral<"command">;
1200
+ argv0: z.ZodString;
1201
+ spine: z.ZodArray<z.ZodString>;
1202
+ args: z.ZodArray<z.ZodString>;
1203
+ }, z.core.$strict>, z.ZodObject<{
1204
+ kind: z.ZodLiteral<"path">;
1205
+ cluster: z.ZodEnum<{
1206
+ read: "read";
1207
+ write: "write";
1208
+ }>;
1209
+ path: z.ZodString;
1210
+ depth: z.ZodEnum<{
1211
+ exact: "exact";
1212
+ subtree: "subtree";
1213
+ }>;
1214
+ }, z.core.$strict>, z.ZodObject<{
1215
+ kind: z.ZodLiteral<"mcp">;
1216
+ server: z.ZodString;
1217
+ account: z.ZodOptional<z.ZodString>;
1218
+ tool: z.ZodOptional<z.ZodString>;
1219
+ }, z.core.$strict>, z.ZodObject<{
1220
+ kind: z.ZodLiteral<"tool">;
1221
+ name: z.ZodString;
1222
+ }, z.core.$strict>, z.ZodObject<{
1223
+ kind: z.ZodLiteral<"class">;
1224
+ class: z.ZodEnum<{
1225
+ "destroy-catastrophic": "destroy-catastrophic";
1226
+ "destroy-local": "destroy-local";
1227
+ "vcs-history": "vcs-history";
1228
+ privilege: "privilege";
1229
+ credential: "credential";
1230
+ "control-plane": "control-plane";
1231
+ "attack-shape": "attack-shape";
1232
+ "policy-fault": "policy-fault";
1233
+ "package-install": "package-install";
1234
+ publish: "publish";
1235
+ "remote-write": "remote-write";
1236
+ "network-egress": "network-egress";
1237
+ "exec-unknown": "exec-unknown";
1238
+ unmodelled: "unmodelled";
1239
+ "envelope-read": "envelope-read";
1240
+ "envelope-write": "envelope-write";
1241
+ "protected-file": "protected-file";
1242
+ "workspace-write": "workspace-write";
1243
+ "mcp-lookup": "mcp-lookup";
1244
+ "mcp-action": "mcp-action";
1245
+ }>;
1246
+ }, z.core.$strict>], "kind">;
1247
+ scopeKey: z.ZodOptional<z.ZodString>;
1248
+ ttlMs: z.ZodOptional<z.ZodNumber>;
1249
+ }, z.core.$strict>;
1250
+ export declare const ackAddOutput: z.ZodUnion<readonly [z.ZodObject<{
1251
+ ok: z.ZodLiteral<true>;
1252
+ row: z.ZodObject<{
1253
+ id: z.ZodString;
1254
+ kind: z.ZodOptional<z.ZodEnum<{
1255
+ grant: "grant";
1256
+ ack: "ack";
1257
+ }>>;
1258
+ scope: z.ZodEnum<{
1259
+ session: "session";
1260
+ project: "project";
1261
+ bot: "bot";
1262
+ global: "global";
1263
+ }>;
1264
+ scopeKey: z.ZodString;
1265
+ subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
1266
+ kind: z.ZodLiteral<"command">;
1267
+ argv0: z.ZodString;
1268
+ spine: z.ZodArray<z.ZodString>;
1269
+ args: z.ZodArray<z.ZodString>;
1270
+ }, z.core.$strict>, z.ZodObject<{
1271
+ kind: z.ZodLiteral<"path">;
1272
+ cluster: z.ZodEnum<{
1273
+ read: "read";
1274
+ write: "write";
1275
+ }>;
1276
+ path: z.ZodString;
1277
+ depth: z.ZodEnum<{
1278
+ exact: "exact";
1279
+ subtree: "subtree";
1280
+ }>;
1281
+ }, z.core.$strict>, z.ZodObject<{
1282
+ kind: z.ZodLiteral<"mcp">;
1283
+ server: z.ZodString;
1284
+ account: z.ZodOptional<z.ZodString>;
1285
+ tool: z.ZodOptional<z.ZodString>;
1286
+ }, z.core.$strict>, z.ZodObject<{
1287
+ kind: z.ZodLiteral<"tool">;
1288
+ name: z.ZodString;
1289
+ }, z.core.$strict>, z.ZodObject<{
1290
+ kind: z.ZodLiteral<"class">;
1291
+ class: z.ZodEnum<{
1292
+ "destroy-catastrophic": "destroy-catastrophic";
1293
+ "destroy-local": "destroy-local";
1294
+ "vcs-history": "vcs-history";
1295
+ privilege: "privilege";
1296
+ credential: "credential";
1297
+ "control-plane": "control-plane";
1298
+ "attack-shape": "attack-shape";
1299
+ "policy-fault": "policy-fault";
1300
+ "package-install": "package-install";
1301
+ publish: "publish";
1302
+ "remote-write": "remote-write";
1303
+ "network-egress": "network-egress";
1304
+ "exec-unknown": "exec-unknown";
1305
+ unmodelled: "unmodelled";
1306
+ "envelope-read": "envelope-read";
1307
+ "envelope-write": "envelope-write";
1308
+ "protected-file": "protected-file";
1309
+ "workspace-write": "workspace-write";
1310
+ "mcp-lookup": "mcp-lookup";
1311
+ "mcp-action": "mcp-action";
1312
+ }>;
1313
+ }, z.core.$strict>], "kind">;
1314
+ createdAtMs: z.ZodNumber;
1315
+ expiresAtMs: z.ZodNullable<z.ZodNumber>;
1316
+ source: z.ZodEnum<{
1317
+ prompt: "prompt";
1318
+ settings: "settings";
1319
+ }>;
1320
+ label: z.ZodString;
1321
+ }, z.core.$strict>;
1322
+ }, z.core.$strip>, z.ZodObject<{
1323
+ ok: z.ZodLiteral<false>;
1324
+ reason: z.ZodEnum<{
1325
+ "fenced-path": "fenced-path";
1326
+ "invalid-scope": "invalid-scope";
1327
+ "unknown-session": "unknown-session";
1328
+ "subject-not-allowed": "subject-not-allowed";
1329
+ }>;
1330
+ }, z.core.$strip>]>;
1331
+ export declare const ackRevokeInput: z.ZodObject<{
1332
+ id: z.ZodString;
1333
+ sessionId: z.ZodOptional<z.ZodString>;
1334
+ }, z.core.$strict>;
1335
+ export declare const ackRevokeOutput: z.ZodObject<{
1336
+ ok: z.ZodBoolean;
1337
+ }, z.core.$strip>;
1338
+ /** What a call is, for `policy/explain`. */
1339
+ export declare const policyProbeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1340
+ kind: z.ZodLiteral<"shell">;
1341
+ command: z.ZodString;
1342
+ cwd: z.ZodOptional<z.ZodString>;
1343
+ }, z.core.$strict>, z.ZodObject<{
1344
+ kind: z.ZodLiteral<"path">;
1345
+ cluster: z.ZodEnum<{
1346
+ read: "read";
1347
+ write: "write";
1348
+ }>;
1349
+ path: z.ZodString;
1350
+ }, z.core.$strict>, z.ZodObject<{
1351
+ kind: z.ZodLiteral<"mcp">;
1352
+ server: z.ZodString;
1353
+ account: z.ZodOptional<z.ZodString>;
1354
+ tool: z.ZodString;
1355
+ }, z.core.$strict>, z.ZodObject<{
1356
+ kind: z.ZodLiteral<"tool">;
1357
+ name: z.ZodString;
1358
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1359
+ }, z.core.$strict>], "kind">;
1360
+ export declare const policyExplainInput: z.ZodObject<{
1361
+ probe: z.ZodDiscriminatedUnion<[z.ZodObject<{
1362
+ kind: z.ZodLiteral<"shell">;
1363
+ command: z.ZodString;
1364
+ cwd: z.ZodOptional<z.ZodString>;
1365
+ }, z.core.$strict>, z.ZodObject<{
1366
+ kind: z.ZodLiteral<"path">;
1367
+ cluster: z.ZodEnum<{
1368
+ read: "read";
1369
+ write: "write";
1370
+ }>;
1371
+ path: z.ZodString;
1372
+ }, z.core.$strict>, z.ZodObject<{
1373
+ kind: z.ZodLiteral<"mcp">;
1374
+ server: z.ZodString;
1375
+ account: z.ZodOptional<z.ZodString>;
1376
+ tool: z.ZodString;
1377
+ }, z.core.$strict>, z.ZodObject<{
1378
+ kind: z.ZodLiteral<"tool">;
1379
+ name: z.ZodString;
1380
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1381
+ }, z.core.$strict>], "kind">;
1382
+ mode: z.ZodOptional<z.ZodEnum<{
1383
+ manual: "manual";
1384
+ auto: "auto";
1385
+ yolo: "yolo";
1386
+ }>>;
1387
+ unattended: z.ZodOptional<z.ZodBoolean>;
1388
+ }, z.core.$strict>;
1389
+ export declare const explainResolverSchema: z.ZodObject<{
1390
+ kind: z.ZodEnum<{
1391
+ allow: "allow";
1392
+ judge: "judge";
1393
+ human: "human";
1394
+ deny: "deny";
1395
+ }>;
1396
+ layer: z.ZodEnum<{
1397
+ session: "session";
1398
+ project: "project";
1399
+ dist: "dist";
1400
+ managed: "managed";
1401
+ user: "user";
1402
+ }>;
1403
+ onDeny: z.ZodOptional<z.ZodEnum<{
1404
+ human: "human";
1405
+ deny: "deny";
1406
+ }>>;
1407
+ onFail: z.ZodOptional<z.ZodEnum<{
1408
+ human: "human";
1409
+ deny: "deny";
1410
+ }>>;
1411
+ }, z.core.$strip>;
1412
+ export declare const policyExplainOutput: z.ZodObject<{
1413
+ tier: z.ZodEnum<{
1414
+ allow: "allow";
1415
+ block: "block";
1416
+ ask: "ask";
1417
+ "soft-deny": "soft-deny";
1418
+ }>;
1419
+ classes: z.ZodArray<z.ZodObject<{
1420
+ id: z.ZodEnum<{
1421
+ "destroy-catastrophic": "destroy-catastrophic";
1422
+ "destroy-local": "destroy-local";
1423
+ "vcs-history": "vcs-history";
1424
+ privilege: "privilege";
1425
+ credential: "credential";
1426
+ "control-plane": "control-plane";
1427
+ "attack-shape": "attack-shape";
1428
+ "policy-fault": "policy-fault";
1429
+ "package-install": "package-install";
1430
+ publish: "publish";
1431
+ "remote-write": "remote-write";
1432
+ "network-egress": "network-egress";
1433
+ "exec-unknown": "exec-unknown";
1434
+ unmodelled: "unmodelled";
1435
+ "envelope-read": "envelope-read";
1436
+ "envelope-write": "envelope-write";
1437
+ "protected-file": "protected-file";
1438
+ "workspace-write": "workspace-write";
1439
+ "mcp-lookup": "mcp-lookup";
1440
+ "mcp-action": "mcp-action";
1441
+ }>;
1442
+ label: z.ZodString;
1443
+ }, z.core.$strip>>;
1444
+ votes: z.ZodArray<z.ZodObject<{
1445
+ tier: z.ZodEnum<{
1446
+ allow: "allow";
1447
+ block: "block";
1448
+ ask: "ask";
1449
+ "soft-deny": "soft-deny";
1450
+ }>;
1451
+ class: z.ZodEnum<{
1452
+ "destroy-catastrophic": "destroy-catastrophic";
1453
+ "destroy-local": "destroy-local";
1454
+ "vcs-history": "vcs-history";
1455
+ privilege: "privilege";
1456
+ credential: "credential";
1457
+ "control-plane": "control-plane";
1458
+ "attack-shape": "attack-shape";
1459
+ "policy-fault": "policy-fault";
1460
+ "package-install": "package-install";
1461
+ publish: "publish";
1462
+ "remote-write": "remote-write";
1463
+ "network-egress": "network-egress";
1464
+ "exec-unknown": "exec-unknown";
1465
+ unmodelled: "unmodelled";
1466
+ "envelope-read": "envelope-read";
1467
+ "envelope-write": "envelope-write";
1468
+ "protected-file": "protected-file";
1469
+ "workspace-write": "workspace-write";
1470
+ "mcp-lookup": "mcp-lookup";
1471
+ "mcp-action": "mcp-action";
1472
+ }>;
1473
+ ruleId: z.ZodString;
1474
+ lift: z.ZodOptional<z.ZodString>;
1475
+ }, z.core.$strip>>;
1476
+ resolver: z.ZodNullable<z.ZodObject<{
1477
+ kind: z.ZodEnum<{
1478
+ allow: "allow";
1479
+ judge: "judge";
1480
+ human: "human";
1481
+ deny: "deny";
1482
+ }>;
1483
+ layer: z.ZodEnum<{
1484
+ session: "session";
1485
+ project: "project";
1486
+ dist: "dist";
1487
+ managed: "managed";
1488
+ user: "user";
1489
+ }>;
1490
+ onDeny: z.ZodOptional<z.ZodEnum<{
1491
+ human: "human";
1492
+ deny: "deny";
1493
+ }>>;
1494
+ onFail: z.ZodOptional<z.ZodEnum<{
1495
+ human: "human";
1496
+ deny: "deny";
1497
+ }>>;
1498
+ }, z.core.$strip>>;
1499
+ grant: z.ZodNullable<z.ZodObject<{
1500
+ id: z.ZodString;
1501
+ kind: z.ZodOptional<z.ZodEnum<{
1502
+ grant: "grant";
1503
+ ack: "ack";
1504
+ }>>;
1505
+ scope: z.ZodEnum<{
1506
+ session: "session";
1507
+ project: "project";
1508
+ bot: "bot";
1509
+ global: "global";
1510
+ }>;
1511
+ scopeKey: z.ZodString;
1512
+ subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
1513
+ kind: z.ZodLiteral<"command">;
1514
+ argv0: z.ZodString;
1515
+ spine: z.ZodArray<z.ZodString>;
1516
+ args: z.ZodArray<z.ZodString>;
1517
+ }, z.core.$strict>, z.ZodObject<{
1518
+ kind: z.ZodLiteral<"path">;
1519
+ cluster: z.ZodEnum<{
1520
+ read: "read";
1521
+ write: "write";
1522
+ }>;
1523
+ path: z.ZodString;
1524
+ depth: z.ZodEnum<{
1525
+ exact: "exact";
1526
+ subtree: "subtree";
1527
+ }>;
1528
+ }, z.core.$strict>, z.ZodObject<{
1529
+ kind: z.ZodLiteral<"mcp">;
1530
+ server: z.ZodString;
1531
+ account: z.ZodOptional<z.ZodString>;
1532
+ tool: z.ZodOptional<z.ZodString>;
1533
+ }, z.core.$strict>, z.ZodObject<{
1534
+ kind: z.ZodLiteral<"tool">;
1535
+ name: z.ZodString;
1536
+ }, z.core.$strict>, z.ZodObject<{
1537
+ kind: z.ZodLiteral<"class">;
1538
+ class: z.ZodEnum<{
1539
+ "destroy-catastrophic": "destroy-catastrophic";
1540
+ "destroy-local": "destroy-local";
1541
+ "vcs-history": "vcs-history";
1542
+ privilege: "privilege";
1543
+ credential: "credential";
1544
+ "control-plane": "control-plane";
1545
+ "attack-shape": "attack-shape";
1546
+ "policy-fault": "policy-fault";
1547
+ "package-install": "package-install";
1548
+ publish: "publish";
1549
+ "remote-write": "remote-write";
1550
+ "network-egress": "network-egress";
1551
+ "exec-unknown": "exec-unknown";
1552
+ unmodelled: "unmodelled";
1553
+ "envelope-read": "envelope-read";
1554
+ "envelope-write": "envelope-write";
1555
+ "protected-file": "protected-file";
1556
+ "workspace-write": "workspace-write";
1557
+ "mcp-lookup": "mcp-lookup";
1558
+ "mcp-action": "mcp-action";
1559
+ }>;
1560
+ }, z.core.$strict>], "kind">;
1561
+ createdAtMs: z.ZodNumber;
1562
+ expiresAtMs: z.ZodNullable<z.ZodNumber>;
1563
+ source: z.ZodEnum<{
1564
+ prompt: "prompt";
1565
+ settings: "settings";
1566
+ }>;
1567
+ label: z.ZodString;
1568
+ }, z.core.$strict>>;
1569
+ grantable: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1570
+ kind: z.ZodLiteral<"command">;
1571
+ argv0: z.ZodString;
1572
+ spine: z.ZodArray<z.ZodString>;
1573
+ args: z.ZodArray<z.ZodString>;
1574
+ }, z.core.$strict>, z.ZodObject<{
1575
+ kind: z.ZodLiteral<"path">;
1576
+ cluster: z.ZodEnum<{
1577
+ read: "read";
1578
+ write: "write";
1579
+ }>;
1580
+ path: z.ZodString;
1581
+ depth: z.ZodEnum<{
1582
+ exact: "exact";
1583
+ subtree: "subtree";
1584
+ }>;
1585
+ }, z.core.$strict>, z.ZodObject<{
1586
+ kind: z.ZodLiteral<"mcp">;
1587
+ server: z.ZodString;
1588
+ account: z.ZodOptional<z.ZodString>;
1589
+ tool: z.ZodOptional<z.ZodString>;
1590
+ }, z.core.$strict>, z.ZodObject<{
1591
+ kind: z.ZodLiteral<"tool">;
1592
+ name: z.ZodString;
1593
+ }, z.core.$strict>, z.ZodObject<{
1594
+ kind: z.ZodLiteral<"class">;
1595
+ class: z.ZodEnum<{
1596
+ "destroy-catastrophic": "destroy-catastrophic";
1597
+ "destroy-local": "destroy-local";
1598
+ "vcs-history": "vcs-history";
1599
+ privilege: "privilege";
1600
+ credential: "credential";
1601
+ "control-plane": "control-plane";
1602
+ "attack-shape": "attack-shape";
1603
+ "policy-fault": "policy-fault";
1604
+ "package-install": "package-install";
1605
+ publish: "publish";
1606
+ "remote-write": "remote-write";
1607
+ "network-egress": "network-egress";
1608
+ "exec-unknown": "exec-unknown";
1609
+ unmodelled: "unmodelled";
1610
+ "envelope-read": "envelope-read";
1611
+ "envelope-write": "envelope-write";
1612
+ "protected-file": "protected-file";
1613
+ "workspace-write": "workspace-write";
1614
+ "mcp-lookup": "mcp-lookup";
1615
+ "mcp-action": "mcp-action";
1616
+ }>;
1617
+ }, z.core.$strict>], "kind">>;
1618
+ outcome: z.ZodEnum<{
1619
+ runs: "runs";
1620
+ "judge-ask": "judge-ask";
1621
+ "judge-soft-deny": "judge-soft-deny";
1622
+ "prompts-you": "prompts-you";
1623
+ denied: "denied";
1624
+ blocked: "blocked";
1625
+ }>;
1626
+ ack: z.ZodNullable<z.ZodObject<{
1627
+ flags: z.ZodArray<z.ZodObject<{
1628
+ label: z.ZodString;
1629
+ why: z.ZodOptional<z.ZodString>;
1630
+ layer: z.ZodString;
1631
+ }, z.core.$strip>>;
1632
+ satisfiedBy: z.ZodNullable<z.ZodObject<{
1633
+ id: z.ZodString;
1634
+ kind: z.ZodOptional<z.ZodEnum<{
1635
+ grant: "grant";
1636
+ ack: "ack";
1637
+ }>>;
1638
+ scope: z.ZodEnum<{
1639
+ session: "session";
1640
+ project: "project";
1641
+ bot: "bot";
1642
+ global: "global";
1643
+ }>;
1644
+ scopeKey: z.ZodString;
1645
+ subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
1646
+ kind: z.ZodLiteral<"command">;
1647
+ argv0: z.ZodString;
1648
+ spine: z.ZodArray<z.ZodString>;
1649
+ args: z.ZodArray<z.ZodString>;
1650
+ }, z.core.$strict>, z.ZodObject<{
1651
+ kind: z.ZodLiteral<"path">;
1652
+ cluster: z.ZodEnum<{
1653
+ read: "read";
1654
+ write: "write";
1655
+ }>;
1656
+ path: z.ZodString;
1657
+ depth: z.ZodEnum<{
1658
+ exact: "exact";
1659
+ subtree: "subtree";
1660
+ }>;
1661
+ }, z.core.$strict>, z.ZodObject<{
1662
+ kind: z.ZodLiteral<"mcp">;
1663
+ server: z.ZodString;
1664
+ account: z.ZodOptional<z.ZodString>;
1665
+ tool: z.ZodOptional<z.ZodString>;
1666
+ }, z.core.$strict>, z.ZodObject<{
1667
+ kind: z.ZodLiteral<"tool">;
1668
+ name: z.ZodString;
1669
+ }, z.core.$strict>, z.ZodObject<{
1670
+ kind: z.ZodLiteral<"class">;
1671
+ class: z.ZodEnum<{
1672
+ "destroy-catastrophic": "destroy-catastrophic";
1673
+ "destroy-local": "destroy-local";
1674
+ "vcs-history": "vcs-history";
1675
+ privilege: "privilege";
1676
+ credential: "credential";
1677
+ "control-plane": "control-plane";
1678
+ "attack-shape": "attack-shape";
1679
+ "policy-fault": "policy-fault";
1680
+ "package-install": "package-install";
1681
+ publish: "publish";
1682
+ "remote-write": "remote-write";
1683
+ "network-egress": "network-egress";
1684
+ "exec-unknown": "exec-unknown";
1685
+ unmodelled: "unmodelled";
1686
+ "envelope-read": "envelope-read";
1687
+ "envelope-write": "envelope-write";
1688
+ "protected-file": "protected-file";
1689
+ "workspace-write": "workspace-write";
1690
+ "mcp-lookup": "mcp-lookup";
1691
+ "mcp-action": "mcp-action";
1692
+ }>;
1693
+ }, z.core.$strict>], "kind">;
1694
+ createdAtMs: z.ZodNumber;
1695
+ expiresAtMs: z.ZodNullable<z.ZodNumber>;
1696
+ source: z.ZodEnum<{
1697
+ prompt: "prompt";
1698
+ settings: "settings";
1699
+ }>;
1700
+ label: z.ZodString;
1701
+ }, z.core.$strict>>;
1702
+ }, z.core.$strip>>;
1703
+ reason: z.ZodString;
1704
+ }, z.core.$strip>;
1705
+ export declare const policyOverlayInput: z.ZodObject<{
1706
+ overlay: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1707
+ }, z.core.$strict>;
1708
+ export declare const policyOverlayOutput: z.ZodObject<{
1709
+ ok: z.ZodBoolean;
1710
+ errors: z.ZodArray<z.ZodString>;
1711
+ }, z.core.$strip>;
1712
+ export declare const policyConfigGetInput: z.ZodObject<{}, z.core.$strict>;
1713
+ export declare const policyConfigGetOutput: z.ZodObject<{
1714
+ layers: z.ZodObject<{
1715
+ user: z.ZodString;
1716
+ project: z.ZodString;
1717
+ session: z.ZodString;
1718
+ }, z.core.$strip>;
1719
+ warnings: z.ZodArray<z.ZodString>;
1720
+ }, z.core.$strip>;
1721
+ //# sourceMappingURL=authorization.d.ts.map