@intutic/shared-types 3.0.5 → 3.0.7

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 (89) hide show
  1. package/README.md +1 -1
  2. package/dist/api-contracts.d.ts +85 -116
  3. package/dist/api-contracts.d.ts.map +1 -1
  4. package/dist/api-contracts.js +5 -5
  5. package/dist/api-contracts.js.map +1 -1
  6. package/dist/apiKeyScopes.d.ts +1 -1
  7. package/dist/apiKeyScopes.js +1 -1
  8. package/dist/attenuation.d.ts +4 -22
  9. package/dist/attenuation.d.ts.map +1 -1
  10. package/dist/auth.d.ts +44 -226
  11. package/dist/auth.d.ts.map +1 -1
  12. package/dist/auth.js +3 -3
  13. package/dist/auth.js.map +1 -1
  14. package/dist/chaos.d.ts +168 -1778
  15. package/dist/chaos.d.ts.map +1 -1
  16. package/dist/enums.d.ts +1 -1
  17. package/dist/enums.js +1 -1
  18. package/dist/governanceCoverage.d.ts +4 -4
  19. package/dist/governanceCoverage.js +3 -3
  20. package/dist/guardrailIr.d.ts +98 -421
  21. package/dist/guardrailIr.d.ts.map +1 -1
  22. package/dist/guardrailIr.js +2 -2
  23. package/dist/identity.d.ts +16 -29
  24. package/dist/identity.d.ts.map +1 -1
  25. package/dist/mcpBudgets.d.ts +14 -82
  26. package/dist/mcpBudgets.d.ts.map +1 -1
  27. package/dist/mcpToolRisk.d.ts +1 -1
  28. package/dist/mcpToolRisk.js +1 -1
  29. package/dist/modelCatalog.generated.d.ts +404 -66
  30. package/dist/modelCatalog.generated.d.ts.map +1 -1
  31. package/dist/modelCatalog.generated.js +62 -36
  32. package/dist/modelCatalog.generated.js.map +1 -1
  33. package/dist/piiDetectors.d.ts +11 -1
  34. package/dist/piiDetectors.d.ts.map +1 -1
  35. package/dist/piiDetectors.js +1 -1
  36. package/dist/piiDetectors.js.map +1 -1
  37. package/dist/policyGuardrails.d.ts +6 -30
  38. package/dist/policyGuardrails.d.ts.map +1 -1
  39. package/dist/policyGuardrails.js +1 -1
  40. package/dist/policyGuardrails.js.map +1 -1
  41. package/dist/providerVerification.d.ts +2 -2
  42. package/dist/providerVerification.js +2 -2
  43. package/dist/providers.d.ts +2 -2
  44. package/dist/providers.js +2 -2
  45. package/dist/responses/common.d.ts +8 -14
  46. package/dist/responses/common.d.ts.map +1 -1
  47. package/dist/responses/common.js +1 -1
  48. package/dist/responses/decide.d.ts +115 -1514
  49. package/dist/responses/decide.d.ts.map +1 -1
  50. package/dist/responses/decide.js +9 -9
  51. package/dist/responses/decide.js.map +1 -1
  52. package/dist/responses/gateways.d.ts +883 -5211
  53. package/dist/responses/gateways.d.ts.map +1 -1
  54. package/dist/responses/gateways.js +8 -8
  55. package/dist/responses/gateways.js.map +1 -1
  56. package/dist/responses/guardrails.d.ts +600 -5829
  57. package/dist/responses/guardrails.d.ts.map +1 -1
  58. package/dist/responses/guardrails.js +3 -3
  59. package/dist/responses/guardrails.js.map +1 -1
  60. package/dist/responses/identity.d.ts +217 -1296
  61. package/dist/responses/identity.d.ts.map +1 -1
  62. package/dist/responses/identity.js +1 -1
  63. package/dist/responses/identity.js.map +1 -1
  64. package/dist/responses/integrations.d.ts +717 -3709
  65. package/dist/responses/integrations.d.ts.map +1 -1
  66. package/dist/responses/integrations.js +6 -6
  67. package/dist/responses/integrations.js.map +1 -1
  68. package/dist/responses/observability.d.ts +386 -2597
  69. package/dist/responses/observability.d.ts.map +1 -1
  70. package/dist/responses/observability.js +5 -5
  71. package/dist/responses/observability.js.map +1 -1
  72. package/dist/responses/orgSops.d.ts +15 -79
  73. package/dist/responses/orgSops.d.ts.map +1 -1
  74. package/dist/responses/rules.d.ts +449 -2386
  75. package/dist/responses/rules.d.ts.map +1 -1
  76. package/dist/responses/rules.js +8 -8
  77. package/dist/responses/rules.js.map +1 -1
  78. package/dist/spendBudgets.d.ts +20 -38
  79. package/dist/spendBudgets.d.ts.map +1 -1
  80. package/dist/ssoGroupClearance.d.ts +4 -12
  81. package/dist/ssoGroupClearance.d.ts.map +1 -1
  82. package/dist/sync.d.ts +25 -124
  83. package/dist/sync.d.ts.map +1 -1
  84. package/dist/toon.d.ts +1 -1
  85. package/dist/toon.js +1 -1
  86. package/dist/upstreamRetry.d.ts +32 -61
  87. package/dist/upstreamRetry.d.ts.map +1 -1
  88. package/dist/workspaceSettings.d.ts +5 -5
  89. package/package.json +4 -4
@@ -12,37 +12,12 @@ export declare const WasmRuleResponse: z.ZodObject<{
12
12
  description: z.ZodString;
13
13
  bundleSha256: z.ZodString;
14
14
  isActive: z.ZodBoolean;
15
- /** Ascending; lower runs first. */
16
15
  priority: z.ZodNumber;
17
16
  mode: z.ZodString;
18
17
  version: z.ZodNumber;
19
18
  createdAt: z.ZodString;
20
19
  updatedAt: z.ZodString;
21
- }, "strip", z.ZodTypeAny, {
22
- workspaceId: string;
23
- name: string;
24
- mode: string;
25
- ruleId: string;
26
- description: string;
27
- version: number;
28
- priority: number;
29
- isActive: boolean;
30
- createdAt: string;
31
- updatedAt: string;
32
- bundleSha256: string;
33
- }, {
34
- workspaceId: string;
35
- name: string;
36
- mode: string;
37
- ruleId: string;
38
- description: string;
39
- version: number;
40
- priority: number;
41
- isActive: boolean;
42
- createdAt: string;
43
- updatedAt: string;
44
- bundleSha256: string;
45
- }>;
20
+ }, z.core.$strip>;
46
21
  export type WasmRuleResponse = z.infer<typeof WasmRuleResponse>;
47
22
  /** `GET /api/v1/wasm-rules`: every rule of the workspace, as a bare array. */
48
23
  export declare const WasmRuleListResponse: z.ZodArray<z.ZodObject<{
@@ -52,55 +27,22 @@ export declare const WasmRuleListResponse: z.ZodArray<z.ZodObject<{
52
27
  description: z.ZodString;
53
28
  bundleSha256: z.ZodString;
54
29
  isActive: z.ZodBoolean;
55
- /** Ascending; lower runs first. */
56
30
  priority: z.ZodNumber;
57
31
  mode: z.ZodString;
58
32
  version: z.ZodNumber;
59
33
  createdAt: z.ZodString;
60
34
  updatedAt: z.ZodString;
61
- }, "strip", z.ZodTypeAny, {
62
- workspaceId: string;
63
- name: string;
64
- mode: string;
65
- ruleId: string;
66
- description: string;
67
- version: number;
68
- priority: number;
69
- isActive: boolean;
70
- createdAt: string;
71
- updatedAt: string;
72
- bundleSha256: string;
73
- }, {
74
- workspaceId: string;
75
- name: string;
76
- mode: string;
77
- ruleId: string;
78
- description: string;
79
- version: number;
80
- priority: number;
81
- isActive: boolean;
82
- createdAt: string;
83
- updatedAt: string;
84
- bundleSha256: string;
85
- }>, "many">;
35
+ }, z.core.$strip>>;
86
36
  export type WasmRuleListResponse = z.infer<typeof WasmRuleListResponse>;
87
37
  /** `PUT /api/v1/wasm-rules/:ruleId`. */
88
38
  export declare const WasmRuleUpdatedResponse: z.ZodObject<{
89
39
  updated: z.ZodLiteral<true>;
90
- }, "strip", z.ZodTypeAny, {
91
- updated: true;
92
- }, {
93
- updated: true;
94
- }>;
40
+ }, z.core.$strip>;
95
41
  export type WasmRuleUpdatedResponse = z.infer<typeof WasmRuleUpdatedResponse>;
96
42
  /** `DELETE /api/v1/wasm-rules/:ruleId`. */
97
43
  export declare const WasmRuleDeletedResponse: z.ZodObject<{
98
44
  deleted: z.ZodLiteral<true>;
99
- }, "strip", z.ZodTypeAny, {
100
- deleted: true;
101
- }, {
102
- deleted: true;
103
- }>;
45
+ }, z.core.$strip>;
104
46
  export type WasmRuleDeletedResponse = z.infer<typeof WasmRuleDeletedResponse>;
105
47
  /** `POST /api/v1/wasm-rules/:ruleId/replay`: the rule run over sampled request contexts (`summarizeReplay`). */
106
48
  export declare const WasmRuleReplayResponse: z.ZodObject<{
@@ -110,30 +52,10 @@ export declare const WasmRuleReplayResponse: z.ZodObject<{
110
52
  wouldActCount: z.ZodNumber;
111
53
  wouldActRate: z.ZodNumber;
112
54
  verdictCounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
113
- sampleMatches: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
55
+ sampleMatches: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
114
56
  argumentsWithheld: z.ZodNumber;
115
57
  argumentsNote: z.ZodOptional<z.ZodString>;
116
- }, "strip", z.ZodTypeAny, {
117
- ruleId: string;
118
- wouldActRate: number;
119
- since: string | null;
120
- contextCount: number;
121
- wouldActCount: number;
122
- verdictCounts: Record<string, number>;
123
- sampleMatches: Record<string, unknown>[];
124
- argumentsWithheld: number;
125
- argumentsNote?: string | undefined;
126
- }, {
127
- ruleId: string;
128
- wouldActRate: number;
129
- since: string | null;
130
- contextCount: number;
131
- wouldActCount: number;
132
- verdictCounts: Record<string, number>;
133
- sampleMatches: Record<string, unknown>[];
134
- argumentsWithheld: number;
135
- argumentsNote?: string | undefined;
136
- }>;
58
+ }, z.core.$strip>;
137
59
  export type WasmRuleReplayResponse = z.infer<typeof WasmRuleReplayResponse>;
138
60
  /** A SOP as `sopService.ts` returns it. Which optional fields are present depends on the route. */
139
61
  export declare const SopResponse: z.ZodObject<{
@@ -142,20 +64,19 @@ export declare const SopResponse: z.ZodObject<{
142
64
  title: z.ZodString;
143
65
  version: z.ZodString;
144
66
  markdownContent: z.ZodString;
145
- /** Null for a SOP written without one (the `sop_registry` view applies no column default; the SOP health cron writes none). */
146
- riskTier: z.ZodNullable<z.ZodNativeEnum<{
67
+ riskTier: z.ZodNullable<z.ZodEnum<{
147
68
  readonly LOW: "LOW";
148
69
  readonly MEDIUM: "MEDIUM";
149
70
  readonly HIGH: "HIGH";
150
71
  readonly CRITICAL: "CRITICAL";
151
72
  }>>;
152
- complexityTier: z.ZodNullable<z.ZodNativeEnum<{
73
+ complexityTier: z.ZodNullable<z.ZodEnum<{
153
74
  readonly TIER_0: "TIER_0";
154
75
  readonly TIER_1: "TIER_1";
155
76
  readonly TIER_2: "TIER_2";
156
77
  }>>;
157
78
  isActive: z.ZodBoolean;
158
- lifecycleState: z.ZodNativeEnum<{
79
+ lifecycleState: z.ZodEnum<{
159
80
  readonly DRAFT: "DRAFT";
160
81
  readonly PENDING_REVIEW: "PENDING_REVIEW";
161
82
  readonly GENERATED: "GENERATED";
@@ -167,7 +88,7 @@ export declare const SopResponse: z.ZodObject<{
167
88
  createdAt: z.ZodOptional<z.ZodString>;
168
89
  updatedAt: z.ZodOptional<z.ZodString>;
169
90
  contentHash: z.ZodOptional<z.ZodString>;
170
- dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
91
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
171
92
  createdBy: z.ZodOptional<z.ZodString>;
172
93
  versionCounter: z.ZodOptional<z.ZodNumber>;
173
94
  priorVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -175,52 +96,12 @@ export declare const SopResponse: z.ZodObject<{
175
96
  shadowWouldBlock: z.ZodOptional<z.ZodNumber>;
176
97
  gitDriftStatus: z.ZodOptional<z.ZodString>;
177
98
  gitDriftCheckedAt: z.ZodOptional<z.ZodString>;
178
- sslCompileState: z.ZodOptional<z.ZodEnum<["compiled", "stale", "uncompiled"]>>;
179
- }, "strip", z.ZodTypeAny, {
180
- workspaceId: string;
181
- title: string;
182
- version: string;
183
- lifecycleState: "DRAFT" | "PENDING_REVIEW" | "GENERATED" | "HYPOTHESIZED" | "REFINED" | "VALIDATED" | "INVALIDATED";
184
- riskTier: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL" | null;
185
- markdownContent: string;
186
- isActive: boolean;
187
- sopId: string;
188
- complexityTier: "TIER_0" | "TIER_1" | "TIER_2" | null;
189
- contentHash?: string | undefined;
190
- shadowEvaluations?: number | undefined;
191
- shadowWouldBlock?: number | undefined;
192
- createdAt?: string | undefined;
193
- updatedAt?: string | undefined;
194
- dependencies?: string[] | undefined;
195
- createdBy?: string | undefined;
196
- versionCounter?: number | undefined;
197
- priorVersionId?: string | null | undefined;
198
- gitDriftStatus?: string | undefined;
199
- gitDriftCheckedAt?: string | undefined;
200
- sslCompileState?: "compiled" | "stale" | "uncompiled" | undefined;
201
- }, {
202
- workspaceId: string;
203
- title: string;
204
- version: string;
205
- lifecycleState: "DRAFT" | "PENDING_REVIEW" | "GENERATED" | "HYPOTHESIZED" | "REFINED" | "VALIDATED" | "INVALIDATED";
206
- riskTier: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL" | null;
207
- markdownContent: string;
208
- isActive: boolean;
209
- sopId: string;
210
- complexityTier: "TIER_0" | "TIER_1" | "TIER_2" | null;
211
- contentHash?: string | undefined;
212
- shadowEvaluations?: number | undefined;
213
- shadowWouldBlock?: number | undefined;
214
- createdAt?: string | undefined;
215
- updatedAt?: string | undefined;
216
- dependencies?: string[] | undefined;
217
- createdBy?: string | undefined;
218
- versionCounter?: number | undefined;
219
- priorVersionId?: string | null | undefined;
220
- gitDriftStatus?: string | undefined;
221
- gitDriftCheckedAt?: string | undefined;
222
- sslCompileState?: "compiled" | "stale" | "uncompiled" | undefined;
223
- }>;
99
+ sslCompileState: z.ZodOptional<z.ZodEnum<{
100
+ compiled: "compiled";
101
+ stale: "stale";
102
+ uncompiled: "uncompiled";
103
+ }>>;
104
+ }, z.core.$strip>;
224
105
  export type SopResponse = z.infer<typeof SopResponse>;
225
106
  /**
226
107
  * A SOP uses front-matter keys that some of the org's registered gateways are
@@ -233,51 +114,13 @@ export declare const SopGatewayWarning: z.ZodObject<{
233
114
  keys: z.ZodArray<z.ZodObject<{
234
115
  key: z.ZodString;
235
116
  since: z.ZodString;
236
- }, "strip", z.ZodTypeAny, {
237
- key: string;
238
- since: string;
239
- }, {
240
- key: string;
241
- since: string;
242
- }>, "many">;
117
+ }, z.core.$strip>>;
243
118
  gateways: z.ZodArray<z.ZodObject<{
244
119
  gatewayId: z.ZodString;
245
120
  name: z.ZodString;
246
121
  proxyVersion: z.ZodNullable<z.ZodString>;
247
- }, "strip", z.ZodTypeAny, {
248
- name: string;
249
- gatewayId: string;
250
- proxyVersion: string | null;
251
- }, {
252
- name: string;
253
- gatewayId: string;
254
- proxyVersion: string | null;
255
- }>, "many">;
256
- }, "strip", z.ZodTypeAny, {
257
- keys: {
258
- key: string;
259
- since: string;
260
- }[];
261
- code: "sop_key_needs_newer_gateway";
262
- message: string;
263
- gateways: {
264
- name: string;
265
- gatewayId: string;
266
- proxyVersion: string | null;
267
- }[];
268
- }, {
269
- keys: {
270
- key: string;
271
- since: string;
272
- }[];
273
- code: "sop_key_needs_newer_gateway";
274
- message: string;
275
- gateways: {
276
- name: string;
277
- gatewayId: string;
278
- proxyVersion: string | null;
279
- }[];
280
- }>;
122
+ }, z.core.$strip>>;
123
+ }, z.core.$strip>;
281
124
  export type SopGatewayWarning = z.infer<typeof SopGatewayWarning>;
282
125
  /** `POST /api/v1/sops`: the created SOP; its tiers are the ones the request named. */
283
126
  export declare const SopCreatedResponse: z.ZodObject<{
@@ -287,7 +130,7 @@ export declare const SopCreatedResponse: z.ZodObject<{
287
130
  version: z.ZodString;
288
131
  markdownContent: z.ZodString;
289
132
  isActive: z.ZodBoolean;
290
- lifecycleState: z.ZodNativeEnum<{
133
+ lifecycleState: z.ZodEnum<{
291
134
  readonly DRAFT: "DRAFT";
292
135
  readonly PENDING_REVIEW: "PENDING_REVIEW";
293
136
  readonly GENERATED: "GENERATED";
@@ -299,7 +142,7 @@ export declare const SopCreatedResponse: z.ZodObject<{
299
142
  createdAt: z.ZodOptional<z.ZodString>;
300
143
  updatedAt: z.ZodOptional<z.ZodString>;
301
144
  contentHash: z.ZodOptional<z.ZodString>;
302
- dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
145
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
303
146
  createdBy: z.ZodOptional<z.ZodString>;
304
147
  versionCounter: z.ZodOptional<z.ZodNumber>;
305
148
  priorVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -307,15 +150,18 @@ export declare const SopCreatedResponse: z.ZodObject<{
307
150
  shadowWouldBlock: z.ZodOptional<z.ZodNumber>;
308
151
  gitDriftStatus: z.ZodOptional<z.ZodString>;
309
152
  gitDriftCheckedAt: z.ZodOptional<z.ZodString>;
310
- sslCompileState: z.ZodOptional<z.ZodEnum<["compiled", "stale", "uncompiled"]>>;
311
- } & {
312
- riskTier: z.ZodNativeEnum<{
153
+ sslCompileState: z.ZodOptional<z.ZodEnum<{
154
+ compiled: "compiled";
155
+ stale: "stale";
156
+ uncompiled: "uncompiled";
157
+ }>>;
158
+ riskTier: z.ZodEnum<{
313
159
  readonly LOW: "LOW";
314
160
  readonly MEDIUM: "MEDIUM";
315
161
  readonly HIGH: "HIGH";
316
162
  readonly CRITICAL: "CRITICAL";
317
163
  }>;
318
- complexityTier: z.ZodNativeEnum<{
164
+ complexityTier: z.ZodEnum<{
319
165
  readonly TIER_0: "TIER_0";
320
166
  readonly TIER_1: "TIER_1";
321
167
  readonly TIER_2: "TIER_2";
@@ -326,148 +172,38 @@ export declare const SopCreatedResponse: z.ZodObject<{
326
172
  keys: z.ZodArray<z.ZodObject<{
327
173
  key: z.ZodString;
328
174
  since: z.ZodString;
329
- }, "strip", z.ZodTypeAny, {
330
- key: string;
331
- since: string;
332
- }, {
333
- key: string;
334
- since: string;
335
- }>, "many">;
175
+ }, z.core.$strip>>;
336
176
  gateways: z.ZodArray<z.ZodObject<{
337
177
  gatewayId: z.ZodString;
338
178
  name: z.ZodString;
339
179
  proxyVersion: z.ZodNullable<z.ZodString>;
340
- }, "strip", z.ZodTypeAny, {
341
- name: string;
342
- gatewayId: string;
343
- proxyVersion: string | null;
344
- }, {
345
- name: string;
346
- gatewayId: string;
347
- proxyVersion: string | null;
348
- }>, "many">;
349
- }, "strip", z.ZodTypeAny, {
350
- keys: {
351
- key: string;
352
- since: string;
353
- }[];
354
- code: "sop_key_needs_newer_gateway";
355
- message: string;
356
- gateways: {
357
- name: string;
358
- gatewayId: string;
359
- proxyVersion: string | null;
360
- }[];
361
- }, {
362
- keys: {
363
- key: string;
364
- since: string;
365
- }[];
366
- code: "sop_key_needs_newer_gateway";
367
- message: string;
368
- gateways: {
369
- name: string;
370
- gatewayId: string;
371
- proxyVersion: string | null;
372
- }[];
373
- }>, "many">>;
374
- }, "strip", z.ZodTypeAny, {
375
- workspaceId: string;
376
- title: string;
377
- version: string;
378
- lifecycleState: "DRAFT" | "PENDING_REVIEW" | "GENERATED" | "HYPOTHESIZED" | "REFINED" | "VALIDATED" | "INVALIDATED";
379
- riskTier: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
380
- markdownContent: string;
381
- isActive: boolean;
382
- sopId: string;
383
- complexityTier: "TIER_0" | "TIER_1" | "TIER_2";
384
- contentHash?: string | undefined;
385
- shadowEvaluations?: number | undefined;
386
- shadowWouldBlock?: number | undefined;
387
- createdAt?: string | undefined;
388
- updatedAt?: string | undefined;
389
- dependencies?: string[] | undefined;
390
- createdBy?: string | undefined;
391
- versionCounter?: number | undefined;
392
- priorVersionId?: string | null | undefined;
393
- gitDriftStatus?: string | undefined;
394
- gitDriftCheckedAt?: string | undefined;
395
- sslCompileState?: "compiled" | "stale" | "uncompiled" | undefined;
396
- warnings?: {
397
- keys: {
398
- key: string;
399
- since: string;
400
- }[];
401
- code: "sop_key_needs_newer_gateway";
402
- message: string;
403
- gateways: {
404
- name: string;
405
- gatewayId: string;
406
- proxyVersion: string | null;
407
- }[];
408
- }[] | undefined;
409
- }, {
410
- workspaceId: string;
411
- title: string;
412
- version: string;
413
- lifecycleState: "DRAFT" | "PENDING_REVIEW" | "GENERATED" | "HYPOTHESIZED" | "REFINED" | "VALIDATED" | "INVALIDATED";
414
- riskTier: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
415
- markdownContent: string;
416
- isActive: boolean;
417
- sopId: string;
418
- complexityTier: "TIER_0" | "TIER_1" | "TIER_2";
419
- contentHash?: string | undefined;
420
- shadowEvaluations?: number | undefined;
421
- shadowWouldBlock?: number | undefined;
422
- createdAt?: string | undefined;
423
- updatedAt?: string | undefined;
424
- dependencies?: string[] | undefined;
425
- createdBy?: string | undefined;
426
- versionCounter?: number | undefined;
427
- priorVersionId?: string | null | undefined;
428
- gitDriftStatus?: string | undefined;
429
- gitDriftCheckedAt?: string | undefined;
430
- sslCompileState?: "compiled" | "stale" | "uncompiled" | undefined;
431
- warnings?: {
432
- keys: {
433
- key: string;
434
- since: string;
435
- }[];
436
- code: "sop_key_needs_newer_gateway";
437
- message: string;
438
- gateways: {
439
- name: string;
440
- gatewayId: string;
441
- proxyVersion: string | null;
442
- }[];
443
- }[] | undefined;
444
- }>;
180
+ }, z.core.$strip>>;
181
+ }, z.core.$strip>>>;
182
+ }, z.core.$strip>;
445
183
  export type SopCreatedResponse = z.infer<typeof SopCreatedResponse>;
446
184
  /** `GET /api/v1/sops`: one page of SOPs. */
447
185
  export declare const SopListResponse: z.ZodObject<{
448
186
  listProperty: z.ZodLiteral<"items">;
449
187
  rowCase: z.ZodLiteral<"camel">;
450
- } & {
451
188
  items: z.ZodArray<z.ZodObject<{
452
189
  sopId: z.ZodString;
453
190
  workspaceId: z.ZodString;
454
191
  title: z.ZodString;
455
192
  version: z.ZodString;
456
193
  markdownContent: z.ZodString;
457
- /** Null for a SOP written without one (the `sop_registry` view applies no column default; the SOP health cron writes none). */
458
- riskTier: z.ZodNullable<z.ZodNativeEnum<{
194
+ riskTier: z.ZodNullable<z.ZodEnum<{
459
195
  readonly LOW: "LOW";
460
196
  readonly MEDIUM: "MEDIUM";
461
197
  readonly HIGH: "HIGH";
462
198
  readonly CRITICAL: "CRITICAL";
463
199
  }>>;
464
- complexityTier: z.ZodNullable<z.ZodNativeEnum<{
200
+ complexityTier: z.ZodNullable<z.ZodEnum<{
465
201
  readonly TIER_0: "TIER_0";
466
202
  readonly TIER_1: "TIER_1";
467
203
  readonly TIER_2: "TIER_2";
468
204
  }>>;
469
205
  isActive: z.ZodBoolean;
470
- lifecycleState: z.ZodNativeEnum<{
206
+ lifecycleState: z.ZodEnum<{
471
207
  readonly DRAFT: "DRAFT";
472
208
  readonly PENDING_REVIEW: "PENDING_REVIEW";
473
209
  readonly GENERATED: "GENERATED";
@@ -479,7 +215,7 @@ export declare const SopListResponse: z.ZodObject<{
479
215
  createdAt: z.ZodOptional<z.ZodString>;
480
216
  updatedAt: z.ZodOptional<z.ZodString>;
481
217
  contentHash: z.ZodOptional<z.ZodString>;
482
- dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
218
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
483
219
  createdBy: z.ZodOptional<z.ZodString>;
484
220
  versionCounter: z.ZodOptional<z.ZodNumber>;
485
221
  priorVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -487,114 +223,16 @@ export declare const SopListResponse: z.ZodObject<{
487
223
  shadowWouldBlock: z.ZodOptional<z.ZodNumber>;
488
224
  gitDriftStatus: z.ZodOptional<z.ZodString>;
489
225
  gitDriftCheckedAt: z.ZodOptional<z.ZodString>;
490
- sslCompileState: z.ZodOptional<z.ZodEnum<["compiled", "stale", "uncompiled"]>>;
491
- }, "strip", z.ZodTypeAny, {
492
- workspaceId: string;
493
- title: string;
494
- version: string;
495
- lifecycleState: "DRAFT" | "PENDING_REVIEW" | "GENERATED" | "HYPOTHESIZED" | "REFINED" | "VALIDATED" | "INVALIDATED";
496
- riskTier: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL" | null;
497
- markdownContent: string;
498
- isActive: boolean;
499
- sopId: string;
500
- complexityTier: "TIER_0" | "TIER_1" | "TIER_2" | null;
501
- contentHash?: string | undefined;
502
- shadowEvaluations?: number | undefined;
503
- shadowWouldBlock?: number | undefined;
504
- createdAt?: string | undefined;
505
- updatedAt?: string | undefined;
506
- dependencies?: string[] | undefined;
507
- createdBy?: string | undefined;
508
- versionCounter?: number | undefined;
509
- priorVersionId?: string | null | undefined;
510
- gitDriftStatus?: string | undefined;
511
- gitDriftCheckedAt?: string | undefined;
512
- sslCompileState?: "compiled" | "stale" | "uncompiled" | undefined;
513
- }, {
514
- workspaceId: string;
515
- title: string;
516
- version: string;
517
- lifecycleState: "DRAFT" | "PENDING_REVIEW" | "GENERATED" | "HYPOTHESIZED" | "REFINED" | "VALIDATED" | "INVALIDATED";
518
- riskTier: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL" | null;
519
- markdownContent: string;
520
- isActive: boolean;
521
- sopId: string;
522
- complexityTier: "TIER_0" | "TIER_1" | "TIER_2" | null;
523
- contentHash?: string | undefined;
524
- shadowEvaluations?: number | undefined;
525
- shadowWouldBlock?: number | undefined;
526
- createdAt?: string | undefined;
527
- updatedAt?: string | undefined;
528
- dependencies?: string[] | undefined;
529
- createdBy?: string | undefined;
530
- versionCounter?: number | undefined;
531
- priorVersionId?: string | null | undefined;
532
- gitDriftStatus?: string | undefined;
533
- gitDriftCheckedAt?: string | undefined;
534
- sslCompileState?: "compiled" | "stale" | "uncompiled" | undefined;
535
- }>, "many">;
226
+ sslCompileState: z.ZodOptional<z.ZodEnum<{
227
+ compiled: "compiled";
228
+ stale: "stale";
229
+ uncompiled: "uncompiled";
230
+ }>>;
231
+ }, z.core.$strip>>;
536
232
  total: z.ZodNumber;
537
233
  page: z.ZodNumber;
538
234
  limit: z.ZodNumber;
539
- }, "strip", z.ZodTypeAny, {
540
- total: number;
541
- limit: number;
542
- items: {
543
- workspaceId: string;
544
- title: string;
545
- version: string;
546
- lifecycleState: "DRAFT" | "PENDING_REVIEW" | "GENERATED" | "HYPOTHESIZED" | "REFINED" | "VALIDATED" | "INVALIDATED";
547
- riskTier: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL" | null;
548
- markdownContent: string;
549
- isActive: boolean;
550
- sopId: string;
551
- complexityTier: "TIER_0" | "TIER_1" | "TIER_2" | null;
552
- contentHash?: string | undefined;
553
- shadowEvaluations?: number | undefined;
554
- shadowWouldBlock?: number | undefined;
555
- createdAt?: string | undefined;
556
- updatedAt?: string | undefined;
557
- dependencies?: string[] | undefined;
558
- createdBy?: string | undefined;
559
- versionCounter?: number | undefined;
560
- priorVersionId?: string | null | undefined;
561
- gitDriftStatus?: string | undefined;
562
- gitDriftCheckedAt?: string | undefined;
563
- sslCompileState?: "compiled" | "stale" | "uncompiled" | undefined;
564
- }[];
565
- listProperty: "items";
566
- rowCase: "camel";
567
- page: number;
568
- }, {
569
- total: number;
570
- limit: number;
571
- items: {
572
- workspaceId: string;
573
- title: string;
574
- version: string;
575
- lifecycleState: "DRAFT" | "PENDING_REVIEW" | "GENERATED" | "HYPOTHESIZED" | "REFINED" | "VALIDATED" | "INVALIDATED";
576
- riskTier: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL" | null;
577
- markdownContent: string;
578
- isActive: boolean;
579
- sopId: string;
580
- complexityTier: "TIER_0" | "TIER_1" | "TIER_2" | null;
581
- contentHash?: string | undefined;
582
- shadowEvaluations?: number | undefined;
583
- shadowWouldBlock?: number | undefined;
584
- createdAt?: string | undefined;
585
- updatedAt?: string | undefined;
586
- dependencies?: string[] | undefined;
587
- createdBy?: string | undefined;
588
- versionCounter?: number | undefined;
589
- priorVersionId?: string | null | undefined;
590
- gitDriftStatus?: string | undefined;
591
- gitDriftCheckedAt?: string | undefined;
592
- sslCompileState?: "compiled" | "stale" | "uncompiled" | undefined;
593
- }[];
594
- listProperty: "items";
595
- rowCase: "camel";
596
- page: number;
597
- }>;
235
+ }, z.core.$strip>;
598
236
  export type SopListResponse = z.infer<typeof SopListResponse>;
599
237
  /** `PUT /api/v1/sops/:sopId`: the updated SOP (a new DRAFT version when the SOP was not a DRAFT), and the anti-gaming analysis when the content changed. */
600
238
  export declare const SopUpdatedResponse: z.ZodObject<{
@@ -604,20 +242,19 @@ export declare const SopUpdatedResponse: z.ZodObject<{
604
242
  title: z.ZodString;
605
243
  version: z.ZodString;
606
244
  markdownContent: z.ZodString;
607
- /** Null for a SOP written without one (the `sop_registry` view applies no column default; the SOP health cron writes none). */
608
- riskTier: z.ZodNullable<z.ZodNativeEnum<{
245
+ riskTier: z.ZodNullable<z.ZodEnum<{
609
246
  readonly LOW: "LOW";
610
247
  readonly MEDIUM: "MEDIUM";
611
248
  readonly HIGH: "HIGH";
612
249
  readonly CRITICAL: "CRITICAL";
613
250
  }>>;
614
- complexityTier: z.ZodNullable<z.ZodNativeEnum<{
251
+ complexityTier: z.ZodNullable<z.ZodEnum<{
615
252
  readonly TIER_0: "TIER_0";
616
253
  readonly TIER_1: "TIER_1";
617
254
  readonly TIER_2: "TIER_2";
618
255
  }>>;
619
256
  isActive: z.ZodBoolean;
620
- lifecycleState: z.ZodNativeEnum<{
257
+ lifecycleState: z.ZodEnum<{
621
258
  readonly DRAFT: "DRAFT";
622
259
  readonly PENDING_REVIEW: "PENDING_REVIEW";
623
260
  readonly GENERATED: "GENERATED";
@@ -629,7 +266,7 @@ export declare const SopUpdatedResponse: z.ZodObject<{
629
266
  createdAt: z.ZodOptional<z.ZodString>;
630
267
  updatedAt: z.ZodOptional<z.ZodString>;
631
268
  contentHash: z.ZodOptional<z.ZodString>;
632
- dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
269
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
633
270
  createdBy: z.ZodOptional<z.ZodString>;
634
271
  versionCounter: z.ZodOptional<z.ZodNumber>;
635
272
  priorVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -637,54 +274,14 @@ export declare const SopUpdatedResponse: z.ZodObject<{
637
274
  shadowWouldBlock: z.ZodOptional<z.ZodNumber>;
638
275
  gitDriftStatus: z.ZodOptional<z.ZodString>;
639
276
  gitDriftCheckedAt: z.ZodOptional<z.ZodString>;
640
- sslCompileState: z.ZodOptional<z.ZodEnum<["compiled", "stale", "uncompiled"]>>;
641
- }, "strip", z.ZodTypeAny, {
642
- workspaceId: string;
643
- title: string;
644
- version: string;
645
- lifecycleState: "DRAFT" | "PENDING_REVIEW" | "GENERATED" | "HYPOTHESIZED" | "REFINED" | "VALIDATED" | "INVALIDATED";
646
- riskTier: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL" | null;
647
- markdownContent: string;
648
- isActive: boolean;
649
- sopId: string;
650
- complexityTier: "TIER_0" | "TIER_1" | "TIER_2" | null;
651
- contentHash?: string | undefined;
652
- shadowEvaluations?: number | undefined;
653
- shadowWouldBlock?: number | undefined;
654
- createdAt?: string | undefined;
655
- updatedAt?: string | undefined;
656
- dependencies?: string[] | undefined;
657
- createdBy?: string | undefined;
658
- versionCounter?: number | undefined;
659
- priorVersionId?: string | null | undefined;
660
- gitDriftStatus?: string | undefined;
661
- gitDriftCheckedAt?: string | undefined;
662
- sslCompileState?: "compiled" | "stale" | "uncompiled" | undefined;
663
- }, {
664
- workspaceId: string;
665
- title: string;
666
- version: string;
667
- lifecycleState: "DRAFT" | "PENDING_REVIEW" | "GENERATED" | "HYPOTHESIZED" | "REFINED" | "VALIDATED" | "INVALIDATED";
668
- riskTier: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL" | null;
669
- markdownContent: string;
670
- isActive: boolean;
671
- sopId: string;
672
- complexityTier: "TIER_0" | "TIER_1" | "TIER_2" | null;
673
- contentHash?: string | undefined;
674
- shadowEvaluations?: number | undefined;
675
- shadowWouldBlock?: number | undefined;
676
- createdAt?: string | undefined;
677
- updatedAt?: string | undefined;
678
- dependencies?: string[] | undefined;
679
- createdBy?: string | undefined;
680
- versionCounter?: number | undefined;
681
- priorVersionId?: string | null | undefined;
682
- gitDriftStatus?: string | undefined;
683
- gitDriftCheckedAt?: string | undefined;
684
- sslCompileState?: "compiled" | "stale" | "uncompiled" | undefined;
685
- }>;
277
+ sslCompileState: z.ZodOptional<z.ZodEnum<{
278
+ compiled: "compiled";
279
+ stale: "stale";
280
+ uncompiled: "uncompiled";
281
+ }>>;
282
+ }, z.core.$strip>;
686
283
  antiGaming: z.ZodOptional<z.ZodObject<{
687
- changeClassification: z.ZodNativeEnum<{
284
+ changeClassification: z.ZodEnum<{
688
285
  readonly STRENGTHEN: "STRENGTHEN";
689
286
  readonly CLARIFY: "CLARIFY";
690
287
  readonly NARROW: "NARROW";
@@ -692,481 +289,157 @@ export declare const SopUpdatedResponse: z.ZodObject<{
692
289
  }>;
693
290
  requiresElevatedApproval: z.ZodBoolean;
694
291
  impactSummary: z.ZodString;
695
- }, "strip", z.ZodTypeAny, {
696
- changeClassification: "STRENGTHEN" | "CLARIFY" | "NARROW" | "WEAKEN";
697
- requiresElevatedApproval: boolean;
698
- impactSummary: string;
699
- }, {
700
- changeClassification: "STRENGTHEN" | "CLARIFY" | "NARROW" | "WEAKEN";
701
- requiresElevatedApproval: boolean;
702
- impactSummary: string;
703
- }>>;
292
+ }, z.core.$strip>>;
704
293
  warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
705
294
  code: z.ZodLiteral<"sop_key_needs_newer_gateway">;
706
295
  message: z.ZodString;
707
296
  keys: z.ZodArray<z.ZodObject<{
708
297
  key: z.ZodString;
709
298
  since: z.ZodString;
710
- }, "strip", z.ZodTypeAny, {
711
- key: string;
712
- since: string;
713
- }, {
714
- key: string;
715
- since: string;
716
- }>, "many">;
299
+ }, z.core.$strip>>;
717
300
  gateways: z.ZodArray<z.ZodObject<{
718
301
  gatewayId: z.ZodString;
719
302
  name: z.ZodString;
720
303
  proxyVersion: z.ZodNullable<z.ZodString>;
721
- }, "strip", z.ZodTypeAny, {
722
- name: string;
723
- gatewayId: string;
724
- proxyVersion: string | null;
725
- }, {
726
- name: string;
727
- gatewayId: string;
728
- proxyVersion: string | null;
729
- }>, "many">;
730
- }, "strip", z.ZodTypeAny, {
731
- keys: {
732
- key: string;
733
- since: string;
734
- }[];
735
- code: "sop_key_needs_newer_gateway";
736
- message: string;
737
- gateways: {
738
- name: string;
739
- gatewayId: string;
740
- proxyVersion: string | null;
741
- }[];
742
- }, {
743
- keys: {
744
- key: string;
745
- since: string;
746
- }[];
747
- code: "sop_key_needs_newer_gateway";
748
- message: string;
749
- gateways: {
750
- name: string;
751
- gatewayId: string;
752
- proxyVersion: string | null;
753
- }[];
754
- }>, "many">>;
755
- }, "strip", z.ZodTypeAny, {
756
- sop: {
757
- workspaceId: string;
758
- title: string;
759
- version: string;
760
- lifecycleState: "DRAFT" | "PENDING_REVIEW" | "GENERATED" | "HYPOTHESIZED" | "REFINED" | "VALIDATED" | "INVALIDATED";
761
- riskTier: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL" | null;
762
- markdownContent: string;
763
- isActive: boolean;
764
- sopId: string;
765
- complexityTier: "TIER_0" | "TIER_1" | "TIER_2" | null;
766
- contentHash?: string | undefined;
767
- shadowEvaluations?: number | undefined;
768
- shadowWouldBlock?: number | undefined;
769
- createdAt?: string | undefined;
770
- updatedAt?: string | undefined;
771
- dependencies?: string[] | undefined;
772
- createdBy?: string | undefined;
773
- versionCounter?: number | undefined;
774
- priorVersionId?: string | null | undefined;
775
- gitDriftStatus?: string | undefined;
776
- gitDriftCheckedAt?: string | undefined;
777
- sslCompileState?: "compiled" | "stale" | "uncompiled" | undefined;
778
- };
779
- warnings?: {
780
- keys: {
781
- key: string;
782
- since: string;
783
- }[];
784
- code: "sop_key_needs_newer_gateway";
785
- message: string;
786
- gateways: {
787
- name: string;
788
- gatewayId: string;
789
- proxyVersion: string | null;
790
- }[];
791
- }[] | undefined;
792
- antiGaming?: {
793
- changeClassification: "STRENGTHEN" | "CLARIFY" | "NARROW" | "WEAKEN";
794
- requiresElevatedApproval: boolean;
795
- impactSummary: string;
796
- } | undefined;
797
- }, {
798
- sop: {
799
- workspaceId: string;
800
- title: string;
801
- version: string;
802
- lifecycleState: "DRAFT" | "PENDING_REVIEW" | "GENERATED" | "HYPOTHESIZED" | "REFINED" | "VALIDATED" | "INVALIDATED";
803
- riskTier: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL" | null;
804
- markdownContent: string;
805
- isActive: boolean;
806
- sopId: string;
807
- complexityTier: "TIER_0" | "TIER_1" | "TIER_2" | null;
808
- contentHash?: string | undefined;
809
- shadowEvaluations?: number | undefined;
810
- shadowWouldBlock?: number | undefined;
811
- createdAt?: string | undefined;
812
- updatedAt?: string | undefined;
813
- dependencies?: string[] | undefined;
814
- createdBy?: string | undefined;
815
- versionCounter?: number | undefined;
816
- priorVersionId?: string | null | undefined;
817
- gitDriftStatus?: string | undefined;
818
- gitDriftCheckedAt?: string | undefined;
819
- sslCompileState?: "compiled" | "stale" | "uncompiled" | undefined;
820
- };
821
- warnings?: {
822
- keys: {
823
- key: string;
824
- since: string;
825
- }[];
826
- code: "sop_key_needs_newer_gateway";
827
- message: string;
828
- gateways: {
829
- name: string;
830
- gatewayId: string;
831
- proxyVersion: string | null;
832
- }[];
833
- }[] | undefined;
834
- antiGaming?: {
835
- changeClassification: "STRENGTHEN" | "CLARIFY" | "NARROW" | "WEAKEN";
836
- requiresElevatedApproval: boolean;
837
- impactSummary: string;
838
- } | undefined;
839
- }>;
304
+ }, z.core.$strip>>;
305
+ }, z.core.$strip>>>;
306
+ }, z.core.$strip>;
840
307
  export type SopUpdatedResponse = z.infer<typeof SopUpdatedResponse>;
841
308
  /** `DELETE /api/v1/sops/:sopId`: soft-deleted. */
842
309
  export declare const SopDeletedResponse: z.ZodObject<{
843
310
  deleted: z.ZodLiteral<true>;
844
- }, "strip", z.ZodTypeAny, {
845
- deleted: true;
846
- }, {
847
- deleted: true;
848
- }>;
311
+ }, z.core.$strip>;
849
312
  export type SopDeletedResponse = z.infer<typeof SopDeletedResponse>;
850
313
  /** `POST /api/v1/sops/git-drift-report`. */
851
314
  export declare const SopGitDriftReportResponse: z.ZodObject<{
852
315
  ok: z.ZodLiteral<true>;
853
316
  recorded: z.ZodNumber;
854
- }, "strip", z.ZodTypeAny, {
855
- ok: true;
856
- recorded: number;
857
- }, {
858
- ok: true;
859
- recorded: number;
860
- }>;
317
+ }, z.core.$strip>;
861
318
  export type SopGitDriftReportResponse = z.infer<typeof SopGitDriftReportResponse>;
862
319
  /** A rule the MCP proxy and the hook gate enforce: from a SOP title, or projected from a hook-rule guardrail (`origin: 'guardrail'`). */
863
320
  export declare const SopRuleResponse: z.ZodObject<{
864
321
  id: z.ZodString;
865
322
  toolPattern: z.ZodString;
866
323
  argPattern: z.ZodOptional<z.ZodString>;
867
- action: z.ZodEnum<["block", "warn", "require_approval"]>;
324
+ action: z.ZodEnum<{
325
+ block: "block";
326
+ warn: "warn";
327
+ require_approval: "require_approval";
328
+ }>;
868
329
  reason: z.ZodString;
869
330
  origin: z.ZodOptional<z.ZodLiteral<"guardrail">>;
870
- roles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
871
- }, "strip", z.ZodTypeAny, {
872
- action: "block" | "warn" | "require_approval";
873
- reason: string;
874
- id: string;
875
- toolPattern: string;
876
- roles?: string[] | undefined;
877
- argPattern?: string | undefined;
878
- origin?: "guardrail" | undefined;
879
- }, {
880
- action: "block" | "warn" | "require_approval";
881
- reason: string;
882
- id: string;
883
- toolPattern: string;
884
- roles?: string[] | undefined;
885
- argPattern?: string | undefined;
886
- origin?: "guardrail" | undefined;
887
- }>;
331
+ roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
332
+ }, z.core.$strip>;
888
333
  export type SopRuleResponse = z.infer<typeof SopRuleResponse>;
889
334
  /** `GET /api/v1/sop/rules`: the rule set and MCP curation the MCP proxy polls. */
890
335
  export declare const SopRulesResponse: z.ZodObject<{
891
336
  listProperty: z.ZodLiteral<"rules">;
892
337
  rowCase: z.ZodLiteral<"camel">;
893
- } & {
894
338
  ok: z.ZodLiteral<true>;
895
339
  rules: z.ZodArray<z.ZodObject<{
896
340
  id: z.ZodString;
897
341
  toolPattern: z.ZodString;
898
342
  argPattern: z.ZodOptional<z.ZodString>;
899
- action: z.ZodEnum<["block", "warn", "require_approval"]>;
343
+ action: z.ZodEnum<{
344
+ block: "block";
345
+ warn: "warn";
346
+ require_approval: "require_approval";
347
+ }>;
900
348
  reason: z.ZodString;
901
349
  origin: z.ZodOptional<z.ZodLiteral<"guardrail">>;
902
- roles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
903
- }, "strip", z.ZodTypeAny, {
904
- action: "block" | "warn" | "require_approval";
905
- reason: string;
906
- id: string;
907
- toolPattern: string;
908
- roles?: string[] | undefined;
909
- argPattern?: string | undefined;
910
- origin?: "guardrail" | undefined;
911
- }, {
912
- action: "block" | "warn" | "require_approval";
913
- reason: string;
914
- id: string;
915
- toolPattern: string;
916
- roles?: string[] | undefined;
917
- argPattern?: string | undefined;
918
- origin?: "guardrail" | undefined;
919
- }>, "many">;
920
- } & {
921
- allowedTools: z.ZodArray<z.ZodString, "many">;
350
+ roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
351
+ }, z.core.$strip>>;
352
+ allowedTools: z.ZodArray<z.ZodString>;
922
353
  toolDescriptionOverrides: z.ZodRecord<z.ZodString, z.ZodString>;
923
- allowedServers: z.ZodArray<z.ZodString, "many">;
924
- mcpInjectionPatterns: z.ZodArray<z.ZodString, "many">;
354
+ allowedServers: z.ZodArray<z.ZodString>;
355
+ mcpInjectionPatterns: z.ZodArray<z.ZodString>;
925
356
  mcpRegistry: z.ZodObject<{
926
- defaultPolicy: z.ZodEnum<["allow", "deny"]>;
927
- approvedServers: z.ZodArray<z.ZodString, "many">;
928
- blockedServers: z.ZodArray<z.ZodString, "many">;
929
- heldServers: z.ZodArray<z.ZodString, "many">;
930
- disabledTools: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
931
- }, "strip", z.ZodTypeAny, {
932
- disabledTools: Record<string, string[]>;
933
- defaultPolicy: "deny" | "allow";
934
- approvedServers: string[];
935
- blockedServers: string[];
936
- heldServers: string[];
937
- }, {
938
- disabledTools: Record<string, string[]>;
939
- defaultPolicy: "deny" | "allow";
940
- approvedServers: string[];
941
- blockedServers: string[];
942
- heldServers: string[];
943
- }>;
357
+ defaultPolicy: z.ZodEnum<{
358
+ deny: "deny";
359
+ allow: "allow";
360
+ }>;
361
+ approvedServers: z.ZodArray<z.ZodString>;
362
+ blockedServers: z.ZodArray<z.ZodString>;
363
+ heldServers: z.ZodArray<z.ZodString>;
364
+ disabledTools: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
365
+ }, z.core.$strip>;
944
366
  mcpBudgets: z.ZodObject<{
945
367
  budgets: z.ZodArray<z.ZodObject<{
946
368
  id: z.ZodString;
947
- scope: z.ZodEnum<["server", "tool", "member", "member_server"]>;
369
+ scope: z.ZodEnum<{
370
+ member: "member";
371
+ tool: "tool";
372
+ server: "server";
373
+ member_server: "member_server";
374
+ }>;
948
375
  server: z.ZodOptional<z.ZodString>;
949
376
  tool: z.ZodOptional<z.ZodString>;
950
377
  memberId: z.ZodOptional<z.ZodString>;
951
- period: z.ZodEnum<["hour", "day"]>;
378
+ period: z.ZodEnum<{
379
+ day: "day";
380
+ hour: "hour";
381
+ }>;
952
382
  limit: z.ZodNumber;
953
- }, "strip", z.ZodTypeAny, {
954
- period: "day" | "hour";
955
- id: string;
956
- scope: "member" | "tool" | "server" | "member_server";
957
- limit: number;
958
- tool?: string | undefined;
959
- server?: string | undefined;
960
- memberId?: string | undefined;
961
- }, {
962
- period: "day" | "hour";
963
- id: string;
964
- scope: "member" | "tool" | "server" | "member_server";
965
- limit: number;
966
- tool?: string | undefined;
967
- server?: string | undefined;
968
- memberId?: string | undefined;
969
- }>, "many">;
383
+ }, z.core.$strip>>;
970
384
  warnAtPct: z.ZodNumber;
971
- }, "strip", z.ZodTypeAny, {
972
- budgets: {
973
- period: "day" | "hour";
974
- id: string;
975
- scope: "member" | "tool" | "server" | "member_server";
976
- limit: number;
977
- tool?: string | undefined;
978
- server?: string | undefined;
979
- memberId?: string | undefined;
980
- }[];
981
- warnAtPct: number;
982
- }, {
983
- budgets: {
984
- period: "day" | "hour";
985
- id: string;
986
- scope: "member" | "tool" | "server" | "member_server";
987
- limit: number;
988
- tool?: string | undefined;
989
- server?: string | undefined;
990
- memberId?: string | undefined;
991
- }[];
992
- warnAtPct: number;
993
- }>;
994
- piiDetectors: z.ZodNullable<z.ZodRecord<z.ZodEnum<["pii.card", "pii.iban", "pii.ssn", "pii.email", "pii.phone"]>, z.ZodEnum<["off", "redact", "block"]>>>;
385
+ }, z.core.$strip>;
386
+ piiDetectors: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
387
+ "pii.card": "pii.card";
388
+ "pii.iban": "pii.iban";
389
+ "pii.ssn": "pii.ssn";
390
+ "pii.email": "pii.email";
391
+ "pii.phone": "pii.phone";
392
+ }> & z.core.$partial, z.ZodEnum<{
393
+ redact: "redact";
394
+ off: "off";
395
+ block: "block";
396
+ }>>>;
995
397
  wasmRules: z.ZodArray<z.ZodObject<{
996
398
  ruleId: z.ZodString;
997
399
  name: z.ZodString;
998
400
  sha256: z.ZodString;
999
401
  priority: z.ZodNumber;
1000
- mode: z.ZodEnum<["ENFORCE", "SHADOW"]>;
1001
- }, "strip", z.ZodTypeAny, {
1002
- name: string;
1003
- mode: "SHADOW" | "ENFORCE";
1004
- ruleId: string;
1005
- sha256: string;
1006
- priority: number;
1007
- }, {
1008
- name: string;
1009
- mode: "SHADOW" | "ENFORCE";
1010
- ruleId: string;
1011
- sha256: string;
1012
- priority: number;
1013
- }>, "many">;
402
+ mode: z.ZodEnum<{
403
+ SHADOW: "SHADOW";
404
+ ENFORCE: "ENFORCE";
405
+ }>;
406
+ }, z.core.$strip>>;
1014
407
  ssoGroupPolicy: z.ZodNullable<z.ZodObject<{
1015
- highRiskTools: z.ZodArray<z.ZodString, "many">;
1016
- requiredGroups: z.ZodArray<z.ZodString, "many">;
1017
- requireOboFor: z.ZodArray<z.ZodString, "many">;
1018
- }, "strip", z.ZodTypeAny, {
1019
- highRiskTools: string[];
1020
- requiredGroups: string[];
1021
- requireOboFor: string[];
1022
- }, {
1023
- highRiskTools: string[];
1024
- requiredGroups: string[];
1025
- requireOboFor: string[];
1026
- }>>;
408
+ highRiskTools: z.ZodArray<z.ZodString>;
409
+ requiredGroups: z.ZodArray<z.ZodString>;
410
+ requireOboFor: z.ZodArray<z.ZodString>;
411
+ }, z.core.$strip>>;
1027
412
  principal: z.ZodNullable<z.ZodObject<{
1028
413
  memberId: z.ZodString;
1029
414
  email: z.ZodString;
1030
415
  role: z.ZodString;
1031
- ssoGroups: z.ZodArray<z.ZodString, "many">;
1032
- }, "strip", z.ZodTypeAny, {
1033
- email: string;
1034
- role: string;
1035
- memberId: string;
1036
- ssoGroups: string[];
1037
- }, {
1038
- email: string;
1039
- role: string;
1040
- memberId: string;
1041
- ssoGroups: string[];
416
+ ssoGroups: z.ZodArray<z.ZodString>;
417
+ }, z.core.$strip>>;
418
+ mcpProxyFailBehavior: z.ZodOptional<z.ZodEnum<{
419
+ open: "open";
420
+ closed: "closed";
421
+ }>>;
422
+ mcpInjectionAction: z.ZodOptional<z.ZodEnum<{
423
+ block: "block";
424
+ warn: "warn";
425
+ }>>;
426
+ mcpAnomalyMode: z.ZodOptional<z.ZodEnum<{
427
+ enforce: "enforce";
428
+ off: "off";
429
+ warn: "warn";
1042
430
  }>>;
1043
- mcpProxyFailBehavior: z.ZodOptional<z.ZodEnum<["open", "closed"]>>;
1044
- mcpInjectionAction: z.ZodOptional<z.ZodEnum<["warn", "block"]>>;
1045
- mcpAnomalyMode: z.ZodOptional<z.ZodEnum<["enforce", "warn", "off"]>>;
1046
- mcpAnomalyOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<["steer", "reask", "kill", "off"]>>>;
1047
- } & {
1048
- interventionMode: z.ZodEnum<["TRANSPARENT", "OPAQUE", "SILENT_LOG"]>;
1049
- }, "strip", z.ZodTypeAny, {
1050
- ok: true;
1051
- rules: {
1052
- action: "block" | "warn" | "require_approval";
1053
- reason: string;
1054
- id: string;
1055
- toolPattern: string;
1056
- roles?: string[] | undefined;
1057
- argPattern?: string | undefined;
1058
- origin?: "guardrail" | undefined;
1059
- }[];
1060
- piiDetectors: Partial<Record<"pii.card" | "pii.iban" | "pii.ssn" | "pii.email" | "pii.phone", "redact" | "off" | "block">> | null;
1061
- mcpInjectionPatterns: string[];
1062
- mcpBudgets: {
1063
- budgets: {
1064
- period: "day" | "hour";
1065
- id: string;
1066
- scope: "member" | "tool" | "server" | "member_server";
1067
- limit: number;
1068
- tool?: string | undefined;
1069
- server?: string | undefined;
1070
- memberId?: string | undefined;
1071
- }[];
1072
- warnAtPct: number;
1073
- };
1074
- interventionMode: "OPAQUE" | "TRANSPARENT" | "SILENT_LOG";
1075
- listProperty: "rules";
1076
- rowCase: "camel";
1077
- allowedTools: string[];
1078
- toolDescriptionOverrides: Record<string, string>;
1079
- allowedServers: string[];
1080
- mcpRegistry: {
1081
- disabledTools: Record<string, string[]>;
1082
- defaultPolicy: "deny" | "allow";
1083
- approvedServers: string[];
1084
- blockedServers: string[];
1085
- heldServers: string[];
1086
- };
1087
- wasmRules: {
1088
- name: string;
1089
- mode: "SHADOW" | "ENFORCE";
1090
- ruleId: string;
1091
- sha256: string;
1092
- priority: number;
1093
- }[];
1094
- ssoGroupPolicy: {
1095
- highRiskTools: string[];
1096
- requiredGroups: string[];
1097
- requireOboFor: string[];
1098
- } | null;
1099
- principal: {
1100
- email: string;
1101
- role: string;
1102
- memberId: string;
1103
- ssoGroups: string[];
1104
- } | null;
1105
- mcpProxyFailBehavior?: "open" | "closed" | undefined;
1106
- mcpInjectionAction?: "block" | "warn" | undefined;
1107
- mcpAnomalyMode?: "enforce" | "off" | "warn" | undefined;
1108
- mcpAnomalyOverrides?: Record<string, "off" | "steer" | "reask" | "kill"> | undefined;
1109
- }, {
1110
- ok: true;
1111
- rules: {
1112
- action: "block" | "warn" | "require_approval";
1113
- reason: string;
1114
- id: string;
1115
- toolPattern: string;
1116
- roles?: string[] | undefined;
1117
- argPattern?: string | undefined;
1118
- origin?: "guardrail" | undefined;
1119
- }[];
1120
- piiDetectors: Partial<Record<"pii.card" | "pii.iban" | "pii.ssn" | "pii.email" | "pii.phone", "redact" | "off" | "block">> | null;
1121
- mcpInjectionPatterns: string[];
1122
- mcpBudgets: {
1123
- budgets: {
1124
- period: "day" | "hour";
1125
- id: string;
1126
- scope: "member" | "tool" | "server" | "member_server";
1127
- limit: number;
1128
- tool?: string | undefined;
1129
- server?: string | undefined;
1130
- memberId?: string | undefined;
1131
- }[];
1132
- warnAtPct: number;
1133
- };
1134
- interventionMode: "OPAQUE" | "TRANSPARENT" | "SILENT_LOG";
1135
- listProperty: "rules";
1136
- rowCase: "camel";
1137
- allowedTools: string[];
1138
- toolDescriptionOverrides: Record<string, string>;
1139
- allowedServers: string[];
1140
- mcpRegistry: {
1141
- disabledTools: Record<string, string[]>;
1142
- defaultPolicy: "deny" | "allow";
1143
- approvedServers: string[];
1144
- blockedServers: string[];
1145
- heldServers: string[];
1146
- };
1147
- wasmRules: {
1148
- name: string;
1149
- mode: "SHADOW" | "ENFORCE";
1150
- ruleId: string;
1151
- sha256: string;
1152
- priority: number;
1153
- }[];
1154
- ssoGroupPolicy: {
1155
- highRiskTools: string[];
1156
- requiredGroups: string[];
1157
- requireOboFor: string[];
1158
- } | null;
1159
- principal: {
1160
- email: string;
1161
- role: string;
1162
- memberId: string;
1163
- ssoGroups: string[];
1164
- } | null;
1165
- mcpProxyFailBehavior?: "open" | "closed" | undefined;
1166
- mcpInjectionAction?: "block" | "warn" | undefined;
1167
- mcpAnomalyMode?: "enforce" | "off" | "warn" | undefined;
1168
- mcpAnomalyOverrides?: Record<string, "off" | "steer" | "reask" | "kill"> | undefined;
1169
- }>;
431
+ mcpAnomalyOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
432
+ off: "off";
433
+ steer: "steer";
434
+ reask: "reask";
435
+ kill: "kill";
436
+ }>>>;
437
+ interventionMode: z.ZodEnum<{
438
+ OPAQUE: "OPAQUE";
439
+ TRANSPARENT: "TRANSPARENT";
440
+ SILENT_LOG: "SILENT_LOG";
441
+ }>;
442
+ }, z.core.$strip>;
1170
443
  export type SopRulesResponse = z.infer<typeof SopRulesResponse>;
1171
444
  /**
1172
445
  * `GET /api/v1/policy/resolve`: the same rules and curation as
@@ -1174,160 +447,110 @@ export type SopRulesResponse = z.infer<typeof SopRulesResponse>;
1174
447
  * cache them, plus the flags the daemon's policy snapshot carries.
1175
448
  */
1176
449
  export declare const PolicyResolveResponse: z.ZodObject<{
1177
- allowedTools: z.ZodArray<z.ZodString, "many">;
450
+ allowedTools: z.ZodArray<z.ZodString>;
1178
451
  toolDescriptionOverrides: z.ZodRecord<z.ZodString, z.ZodString>;
1179
- allowedServers: z.ZodArray<z.ZodString, "many">;
1180
- mcpInjectionPatterns: z.ZodArray<z.ZodString, "many">;
452
+ allowedServers: z.ZodArray<z.ZodString>;
453
+ mcpInjectionPatterns: z.ZodArray<z.ZodString>;
1181
454
  mcpRegistry: z.ZodObject<{
1182
- defaultPolicy: z.ZodEnum<["allow", "deny"]>;
1183
- approvedServers: z.ZodArray<z.ZodString, "many">;
1184
- blockedServers: z.ZodArray<z.ZodString, "many">;
1185
- heldServers: z.ZodArray<z.ZodString, "many">;
1186
- disabledTools: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
1187
- }, "strip", z.ZodTypeAny, {
1188
- disabledTools: Record<string, string[]>;
1189
- defaultPolicy: "deny" | "allow";
1190
- approvedServers: string[];
1191
- blockedServers: string[];
1192
- heldServers: string[];
1193
- }, {
1194
- disabledTools: Record<string, string[]>;
1195
- defaultPolicy: "deny" | "allow";
1196
- approvedServers: string[];
1197
- blockedServers: string[];
1198
- heldServers: string[];
1199
- }>;
455
+ defaultPolicy: z.ZodEnum<{
456
+ deny: "deny";
457
+ allow: "allow";
458
+ }>;
459
+ approvedServers: z.ZodArray<z.ZodString>;
460
+ blockedServers: z.ZodArray<z.ZodString>;
461
+ heldServers: z.ZodArray<z.ZodString>;
462
+ disabledTools: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
463
+ }, z.core.$strip>;
1200
464
  mcpBudgets: z.ZodObject<{
1201
465
  budgets: z.ZodArray<z.ZodObject<{
1202
466
  id: z.ZodString;
1203
- scope: z.ZodEnum<["server", "tool", "member", "member_server"]>;
467
+ scope: z.ZodEnum<{
468
+ member: "member";
469
+ tool: "tool";
470
+ server: "server";
471
+ member_server: "member_server";
472
+ }>;
1204
473
  server: z.ZodOptional<z.ZodString>;
1205
474
  tool: z.ZodOptional<z.ZodString>;
1206
475
  memberId: z.ZodOptional<z.ZodString>;
1207
- period: z.ZodEnum<["hour", "day"]>;
476
+ period: z.ZodEnum<{
477
+ day: "day";
478
+ hour: "hour";
479
+ }>;
1208
480
  limit: z.ZodNumber;
1209
- }, "strip", z.ZodTypeAny, {
1210
- period: "day" | "hour";
1211
- id: string;
1212
- scope: "member" | "tool" | "server" | "member_server";
1213
- limit: number;
1214
- tool?: string | undefined;
1215
- server?: string | undefined;
1216
- memberId?: string | undefined;
1217
- }, {
1218
- period: "day" | "hour";
1219
- id: string;
1220
- scope: "member" | "tool" | "server" | "member_server";
1221
- limit: number;
1222
- tool?: string | undefined;
1223
- server?: string | undefined;
1224
- memberId?: string | undefined;
1225
- }>, "many">;
481
+ }, z.core.$strip>>;
1226
482
  warnAtPct: z.ZodNumber;
1227
- }, "strip", z.ZodTypeAny, {
1228
- budgets: {
1229
- period: "day" | "hour";
1230
- id: string;
1231
- scope: "member" | "tool" | "server" | "member_server";
1232
- limit: number;
1233
- tool?: string | undefined;
1234
- server?: string | undefined;
1235
- memberId?: string | undefined;
1236
- }[];
1237
- warnAtPct: number;
1238
- }, {
1239
- budgets: {
1240
- period: "day" | "hour";
1241
- id: string;
1242
- scope: "member" | "tool" | "server" | "member_server";
1243
- limit: number;
1244
- tool?: string | undefined;
1245
- server?: string | undefined;
1246
- memberId?: string | undefined;
1247
- }[];
1248
- warnAtPct: number;
1249
- }>;
1250
- piiDetectors: z.ZodNullable<z.ZodRecord<z.ZodEnum<["pii.card", "pii.iban", "pii.ssn", "pii.email", "pii.phone"]>, z.ZodEnum<["off", "redact", "block"]>>>;
483
+ }, z.core.$strip>;
484
+ piiDetectors: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
485
+ "pii.card": "pii.card";
486
+ "pii.iban": "pii.iban";
487
+ "pii.ssn": "pii.ssn";
488
+ "pii.email": "pii.email";
489
+ "pii.phone": "pii.phone";
490
+ }> & z.core.$partial, z.ZodEnum<{
491
+ redact: "redact";
492
+ off: "off";
493
+ block: "block";
494
+ }>>>;
1251
495
  wasmRules: z.ZodArray<z.ZodObject<{
1252
496
  ruleId: z.ZodString;
1253
497
  name: z.ZodString;
1254
498
  sha256: z.ZodString;
1255
499
  priority: z.ZodNumber;
1256
- mode: z.ZodEnum<["ENFORCE", "SHADOW"]>;
1257
- }, "strip", z.ZodTypeAny, {
1258
- name: string;
1259
- mode: "SHADOW" | "ENFORCE";
1260
- ruleId: string;
1261
- sha256: string;
1262
- priority: number;
1263
- }, {
1264
- name: string;
1265
- mode: "SHADOW" | "ENFORCE";
1266
- ruleId: string;
1267
- sha256: string;
1268
- priority: number;
1269
- }>, "many">;
500
+ mode: z.ZodEnum<{
501
+ SHADOW: "SHADOW";
502
+ ENFORCE: "ENFORCE";
503
+ }>;
504
+ }, z.core.$strip>>;
1270
505
  ssoGroupPolicy: z.ZodNullable<z.ZodObject<{
1271
- highRiskTools: z.ZodArray<z.ZodString, "many">;
1272
- requiredGroups: z.ZodArray<z.ZodString, "many">;
1273
- requireOboFor: z.ZodArray<z.ZodString, "many">;
1274
- }, "strip", z.ZodTypeAny, {
1275
- highRiskTools: string[];
1276
- requiredGroups: string[];
1277
- requireOboFor: string[];
1278
- }, {
1279
- highRiskTools: string[];
1280
- requiredGroups: string[];
1281
- requireOboFor: string[];
1282
- }>>;
506
+ highRiskTools: z.ZodArray<z.ZodString>;
507
+ requiredGroups: z.ZodArray<z.ZodString>;
508
+ requireOboFor: z.ZodArray<z.ZodString>;
509
+ }, z.core.$strip>>;
1283
510
  principal: z.ZodNullable<z.ZodObject<{
1284
511
  memberId: z.ZodString;
1285
512
  email: z.ZodString;
1286
513
  role: z.ZodString;
1287
- ssoGroups: z.ZodArray<z.ZodString, "many">;
1288
- }, "strip", z.ZodTypeAny, {
1289
- email: string;
1290
- role: string;
1291
- memberId: string;
1292
- ssoGroups: string[];
1293
- }, {
1294
- email: string;
1295
- role: string;
1296
- memberId: string;
1297
- ssoGroups: string[];
514
+ ssoGroups: z.ZodArray<z.ZodString>;
515
+ }, z.core.$strip>>;
516
+ mcpProxyFailBehavior: z.ZodOptional<z.ZodEnum<{
517
+ open: "open";
518
+ closed: "closed";
519
+ }>>;
520
+ mcpInjectionAction: z.ZodOptional<z.ZodEnum<{
521
+ block: "block";
522
+ warn: "warn";
1298
523
  }>>;
1299
- mcpProxyFailBehavior: z.ZodOptional<z.ZodEnum<["open", "closed"]>>;
1300
- mcpInjectionAction: z.ZodOptional<z.ZodEnum<["warn", "block"]>>;
1301
- mcpAnomalyMode: z.ZodOptional<z.ZodEnum<["enforce", "warn", "off"]>>;
1302
- mcpAnomalyOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<["steer", "reask", "kill", "off"]>>>;
1303
- } & {
524
+ mcpAnomalyMode: z.ZodOptional<z.ZodEnum<{
525
+ enforce: "enforce";
526
+ off: "off";
527
+ warn: "warn";
528
+ }>>;
529
+ mcpAnomalyOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
530
+ off: "off";
531
+ steer: "steer";
532
+ reask: "reask";
533
+ kill: "kill";
534
+ }>>>;
1304
535
  workspaceId: z.ZodString;
1305
536
  sopRules: z.ZodArray<z.ZodObject<{
1306
537
  id: z.ZodString;
1307
538
  toolPattern: z.ZodString;
1308
539
  argPattern: z.ZodOptional<z.ZodString>;
1309
- action: z.ZodEnum<["block", "warn", "require_approval"]>;
540
+ action: z.ZodEnum<{
541
+ block: "block";
542
+ warn: "warn";
543
+ require_approval: "require_approval";
544
+ }>;
1310
545
  reason: z.ZodString;
1311
546
  origin: z.ZodOptional<z.ZodLiteral<"guardrail">>;
1312
- roles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1313
- }, "strip", z.ZodTypeAny, {
1314
- action: "block" | "warn" | "require_approval";
1315
- reason: string;
1316
- id: string;
1317
- toolPattern: string;
1318
- roles?: string[] | undefined;
1319
- argPattern?: string | undefined;
1320
- origin?: "guardrail" | undefined;
1321
- }, {
1322
- action: "block" | "warn" | "require_approval";
1323
- reason: string;
1324
- id: string;
1325
- toolPattern: string;
1326
- roles?: string[] | undefined;
1327
- argPattern?: string | undefined;
1328
- origin?: "guardrail" | undefined;
1329
- }>, "many">;
1330
- interventionMode: z.ZodEnum<["TRANSPARENT", "OPAQUE", "SILENT_LOG"]>;
547
+ roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
548
+ }, z.core.$strip>>;
549
+ interventionMode: z.ZodEnum<{
550
+ OPAQUE: "OPAQUE";
551
+ TRANSPARENT: "TRANSPARENT";
552
+ SILENT_LOG: "SILENT_LOG";
553
+ }>;
1331
554
  sqlDropStrictBlock: z.ZodBoolean;
1332
555
  decideRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
1333
556
  sopId: z.ZodString;
@@ -1342,487 +565,163 @@ export declare const PolicyResolveResponse: z.ZodObject<{
1342
565
  band: z.ZodOptional<z.ZodObject<{
1343
566
  yes_at: z.ZodNumber;
1344
567
  no_below: z.ZodNumber;
1345
- }, "strip", z.ZodTypeAny, {
1346
- yes_at: number;
1347
- no_below: number;
1348
- }, {
1349
- yes_at: number;
1350
- no_below: number;
1351
- }>>;
568
+ }, z.core.$strip>>;
1352
569
  combiner: z.ZodOptional<z.ZodObject<{
1353
570
  bias: z.ZodNumber;
1354
571
  weights: z.ZodRecord<z.ZodString, z.ZodNumber>;
1355
- }, "strip", z.ZodTypeAny, {
1356
- bias: number;
1357
- weights: Record<string, number>;
1358
- }, {
1359
- bias: number;
1360
- weights: Record<string, number>;
1361
- }>>;
572
+ }, z.core.$strip>>;
1362
573
  evalRunId: z.ZodString;
1363
- source: z.ZodEnum<["local", "server"]>;
1364
- }, "strip", z.ZodTypeAny, {
1365
- modelDigest: string;
1366
- evalRunId: string;
1367
- source: "local" | "server";
1368
- band?: {
1369
- yes_at: number;
1370
- no_below: number;
1371
- } | undefined;
1372
- temperature?: Record<string, number> | undefined;
1373
- combiner?: {
1374
- bias: number;
1375
- weights: Record<string, number>;
1376
- } | undefined;
1377
- }, {
1378
- modelDigest: string;
1379
- evalRunId: string;
1380
- source: "local" | "server";
1381
- band?: {
1382
- yes_at: number;
1383
- no_below: number;
1384
- } | undefined;
1385
- temperature?: Record<string, number> | undefined;
1386
- combiner?: {
1387
- bias: number;
1388
- weights: Record<string, number>;
1389
- } | undefined;
1390
- }>, "many">;
1391
- }, "strip", z.ZodTypeAny, {
1392
- ir: string;
1393
- pins: {
1394
- modelDigest: string;
1395
- evalRunId: string;
1396
- source: "local" | "server";
1397
- band?: {
1398
- yes_at: number;
1399
- no_below: number;
1400
- } | undefined;
1401
- temperature?: Record<string, number> | undefined;
1402
- combiner?: {
1403
- bias: number;
1404
- weights: Record<string, number>;
1405
- } | undefined;
1406
- }[];
1407
- ruleText: string;
1408
- sopTitle: string;
1409
- sopId: string;
1410
- rollout?: "shadow" | undefined;
1411
- ruleHash?: string | undefined;
1412
- }, {
1413
- ir: string;
1414
- pins: {
1415
- modelDigest: string;
1416
- evalRunId: string;
1417
- source: "local" | "server";
1418
- band?: {
1419
- yes_at: number;
1420
- no_below: number;
1421
- } | undefined;
1422
- temperature?: Record<string, number> | undefined;
1423
- combiner?: {
1424
- bias: number;
1425
- weights: Record<string, number>;
1426
- } | undefined;
1427
- }[];
1428
- ruleText: string;
1429
- sopTitle: string;
1430
- sopId: string;
1431
- rollout?: "shadow" | undefined;
1432
- ruleHash?: string | undefined;
1433
- }>, "many">>;
1434
- }, "strip", z.ZodTypeAny, {
1435
- workspaceId: string;
1436
- piiDetectors: Partial<Record<"pii.card" | "pii.iban" | "pii.ssn" | "pii.email" | "pii.phone", "redact" | "off" | "block">> | null;
1437
- mcpInjectionPatterns: string[];
1438
- mcpBudgets: {
1439
- budgets: {
1440
- period: "day" | "hour";
1441
- id: string;
1442
- scope: "member" | "tool" | "server" | "member_server";
1443
- limit: number;
1444
- tool?: string | undefined;
1445
- server?: string | undefined;
1446
- memberId?: string | undefined;
1447
- }[];
1448
- warnAtPct: number;
1449
- };
1450
- interventionMode: "OPAQUE" | "TRANSPARENT" | "SILENT_LOG";
1451
- allowedTools: string[];
1452
- toolDescriptionOverrides: Record<string, string>;
1453
- allowedServers: string[];
1454
- mcpRegistry: {
1455
- disabledTools: Record<string, string[]>;
1456
- defaultPolicy: "deny" | "allow";
1457
- approvedServers: string[];
1458
- blockedServers: string[];
1459
- heldServers: string[];
1460
- };
1461
- wasmRules: {
1462
- name: string;
1463
- mode: "SHADOW" | "ENFORCE";
1464
- ruleId: string;
1465
- sha256: string;
1466
- priority: number;
1467
- }[];
1468
- ssoGroupPolicy: {
1469
- highRiskTools: string[];
1470
- requiredGroups: string[];
1471
- requireOboFor: string[];
1472
- } | null;
1473
- principal: {
1474
- email: string;
1475
- role: string;
1476
- memberId: string;
1477
- ssoGroups: string[];
1478
- } | null;
1479
- sopRules: {
1480
- action: "block" | "warn" | "require_approval";
1481
- reason: string;
1482
- id: string;
1483
- toolPattern: string;
1484
- roles?: string[] | undefined;
1485
- argPattern?: string | undefined;
1486
- origin?: "guardrail" | undefined;
1487
- }[];
1488
- sqlDropStrictBlock: boolean;
1489
- mcpProxyFailBehavior?: "open" | "closed" | undefined;
1490
- mcpInjectionAction?: "block" | "warn" | undefined;
1491
- mcpAnomalyMode?: "enforce" | "off" | "warn" | undefined;
1492
- mcpAnomalyOverrides?: Record<string, "off" | "steer" | "reask" | "kill"> | undefined;
1493
- decideRules?: {
1494
- ir: string;
1495
- pins: {
1496
- modelDigest: string;
1497
- evalRunId: string;
1498
- source: "local" | "server";
1499
- band?: {
1500
- yes_at: number;
1501
- no_below: number;
1502
- } | undefined;
1503
- temperature?: Record<string, number> | undefined;
1504
- combiner?: {
1505
- bias: number;
1506
- weights: Record<string, number>;
1507
- } | undefined;
1508
- }[];
1509
- ruleText: string;
1510
- sopTitle: string;
1511
- sopId: string;
1512
- rollout?: "shadow" | undefined;
1513
- ruleHash?: string | undefined;
1514
- }[] | undefined;
1515
- }, {
1516
- workspaceId: string;
1517
- piiDetectors: Partial<Record<"pii.card" | "pii.iban" | "pii.ssn" | "pii.email" | "pii.phone", "redact" | "off" | "block">> | null;
1518
- mcpInjectionPatterns: string[];
1519
- mcpBudgets: {
1520
- budgets: {
1521
- period: "day" | "hour";
1522
- id: string;
1523
- scope: "member" | "tool" | "server" | "member_server";
1524
- limit: number;
1525
- tool?: string | undefined;
1526
- server?: string | undefined;
1527
- memberId?: string | undefined;
1528
- }[];
1529
- warnAtPct: number;
1530
- };
1531
- interventionMode: "OPAQUE" | "TRANSPARENT" | "SILENT_LOG";
1532
- allowedTools: string[];
1533
- toolDescriptionOverrides: Record<string, string>;
1534
- allowedServers: string[];
1535
- mcpRegistry: {
1536
- disabledTools: Record<string, string[]>;
1537
- defaultPolicy: "deny" | "allow";
1538
- approvedServers: string[];
1539
- blockedServers: string[];
1540
- heldServers: string[];
1541
- };
1542
- wasmRules: {
1543
- name: string;
1544
- mode: "SHADOW" | "ENFORCE";
1545
- ruleId: string;
1546
- sha256: string;
1547
- priority: number;
1548
- }[];
1549
- ssoGroupPolicy: {
1550
- highRiskTools: string[];
1551
- requiredGroups: string[];
1552
- requireOboFor: string[];
1553
- } | null;
1554
- principal: {
1555
- email: string;
1556
- role: string;
1557
- memberId: string;
1558
- ssoGroups: string[];
1559
- } | null;
1560
- sopRules: {
1561
- action: "block" | "warn" | "require_approval";
1562
- reason: string;
1563
- id: string;
1564
- toolPattern: string;
1565
- roles?: string[] | undefined;
1566
- argPattern?: string | undefined;
1567
- origin?: "guardrail" | undefined;
1568
- }[];
1569
- sqlDropStrictBlock: boolean;
1570
- mcpProxyFailBehavior?: "open" | "closed" | undefined;
1571
- mcpInjectionAction?: "block" | "warn" | undefined;
1572
- mcpAnomalyMode?: "enforce" | "off" | "warn" | undefined;
1573
- mcpAnomalyOverrides?: Record<string, "off" | "steer" | "reask" | "kill"> | undefined;
1574
- decideRules?: {
1575
- ir: string;
1576
- pins: {
1577
- modelDigest: string;
1578
- evalRunId: string;
1579
- source: "local" | "server";
1580
- band?: {
1581
- yes_at: number;
1582
- no_below: number;
1583
- } | undefined;
1584
- temperature?: Record<string, number> | undefined;
1585
- combiner?: {
1586
- bias: number;
1587
- weights: Record<string, number>;
1588
- } | undefined;
1589
- }[];
1590
- ruleText: string;
1591
- sopTitle: string;
1592
- sopId: string;
1593
- rollout?: "shadow" | undefined;
1594
- ruleHash?: string | undefined;
1595
- }[] | undefined;
1596
- }>;
574
+ source: z.ZodEnum<{
575
+ local: "local";
576
+ server: "server";
577
+ }>;
578
+ }, z.core.$strip>>;
579
+ }, z.core.$strip>>>;
580
+ }, z.core.$strip>;
1597
581
  export type PolicyResolveResponse = z.infer<typeof PolicyResolveResponse>;
1598
582
  /** A hold rule policy resolve compiles, in the snapshot's rule shape. */
1599
583
  export declare const ServedHoldRuleResponse: z.ZodObject<{
1600
584
  id: z.ZodString;
1601
585
  source: z.ZodString;
1602
- subject: z.ZodEnum<["phrase", "action"]>;
586
+ subject: z.ZodEnum<{
587
+ action: "action";
588
+ phrase: "phrase";
589
+ }>;
1603
590
  ignoreCase: z.ZodLiteral<true>;
1604
- severity: z.ZodEnum<["hold", "shadow"]>;
591
+ severity: z.ZodEnum<{
592
+ hold: "hold";
593
+ shadow: "shadow";
594
+ }>;
1605
595
  reason: z.ZodString;
1606
596
  rationale: z.ZodString;
1607
- }, "strip", z.ZodTypeAny, {
1608
- reason: string;
1609
- id: string;
1610
- source: string;
1611
- subject: "action" | "phrase";
1612
- ignoreCase: true;
1613
- rationale: string;
1614
- severity: "hold" | "shadow";
1615
- }, {
1616
- reason: string;
1617
- id: string;
1618
- source: string;
1619
- subject: "action" | "phrase";
1620
- ignoreCase: true;
1621
- rationale: string;
1622
- severity: "hold" | "shadow";
1623
- }>;
597
+ }, z.core.$strip>;
1624
598
  export type ServedHoldRuleResponse = z.infer<typeof ServedHoldRuleResponse>;
1625
599
  /** A `@rule` record a workspace SOP compiles to; the daemon encodes the line and its fallback. */
1626
600
  export declare const ServedGateRecordResponse: z.ZodObject<{
1627
601
  sopId: z.ZodString;
1628
- kind: z.ZodEnum<["requires_outcome", "scope_paths", "plan_approval"]>;
1629
- rollout: z.ZodEnum<["shadow", "enforce"]>;
602
+ kind: z.ZodEnum<{
603
+ requires_outcome: "requires_outcome";
604
+ scope_paths: "scope_paths";
605
+ plan_approval: "plan_approval";
606
+ }>;
607
+ rollout: z.ZodEnum<{
608
+ shadow: "shadow";
609
+ enforce: "enforce";
610
+ }>;
1630
611
  fallbackId: z.ZodNullable<z.ZodString>;
1631
612
  payload: z.ZodObject<{
1632
613
  v: z.ZodLiteral<1>;
1633
614
  ref: z.ZodString;
1634
615
  sopTitle: z.ZodString;
1635
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1636
- v: z.ZodLiteral<1>;
1637
- ref: z.ZodString;
1638
- sopTitle: z.ZodString;
1639
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1640
- v: z.ZodLiteral<1>;
1641
- ref: z.ZodString;
1642
- sopTitle: z.ZodString;
1643
- }, z.ZodTypeAny, "passthrough">>;
1644
- }, "strip", z.ZodTypeAny, {
1645
- payload: {
1646
- v: 1;
1647
- ref: string;
1648
- sopTitle: string;
1649
- } & {
1650
- [k: string]: unknown;
1651
- };
1652
- kind: "requires_outcome" | "scope_paths" | "plan_approval";
1653
- rollout: "shadow" | "enforce";
1654
- fallbackId: string | null;
1655
- sopId: string;
1656
- }, {
1657
- payload: {
1658
- v: 1;
1659
- ref: string;
1660
- sopTitle: string;
1661
- } & {
1662
- [k: string]: unknown;
1663
- };
1664
- kind: "requires_outcome" | "scope_paths" | "plan_approval";
1665
- rollout: "shadow" | "enforce";
1666
- fallbackId: string | null;
1667
- sopId: string;
1668
- }>;
616
+ }, z.core.$loose>;
617
+ }, z.core.$strip>;
1669
618
  export type ServedGateRecordResponse = z.infer<typeof ServedGateRecordResponse>;
1670
619
  /** `GET /api/v1/policy/resolve`, with the 3.0 fields. */
1671
620
  export declare const PolicyResolveGatesResponse: z.ZodObject<{
1672
- allowedTools: z.ZodArray<z.ZodString, "many">;
621
+ allowedTools: z.ZodArray<z.ZodString>;
1673
622
  toolDescriptionOverrides: z.ZodRecord<z.ZodString, z.ZodString>;
1674
- allowedServers: z.ZodArray<z.ZodString, "many">;
1675
- mcpInjectionPatterns: z.ZodArray<z.ZodString, "many">;
623
+ allowedServers: z.ZodArray<z.ZodString>;
624
+ mcpInjectionPatterns: z.ZodArray<z.ZodString>;
1676
625
  mcpRegistry: z.ZodObject<{
1677
- defaultPolicy: z.ZodEnum<["allow", "deny"]>;
1678
- approvedServers: z.ZodArray<z.ZodString, "many">;
1679
- blockedServers: z.ZodArray<z.ZodString, "many">;
1680
- heldServers: z.ZodArray<z.ZodString, "many">;
1681
- disabledTools: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
1682
- }, "strip", z.ZodTypeAny, {
1683
- disabledTools: Record<string, string[]>;
1684
- defaultPolicy: "deny" | "allow";
1685
- approvedServers: string[];
1686
- blockedServers: string[];
1687
- heldServers: string[];
1688
- }, {
1689
- disabledTools: Record<string, string[]>;
1690
- defaultPolicy: "deny" | "allow";
1691
- approvedServers: string[];
1692
- blockedServers: string[];
1693
- heldServers: string[];
1694
- }>;
626
+ defaultPolicy: z.ZodEnum<{
627
+ deny: "deny";
628
+ allow: "allow";
629
+ }>;
630
+ approvedServers: z.ZodArray<z.ZodString>;
631
+ blockedServers: z.ZodArray<z.ZodString>;
632
+ heldServers: z.ZodArray<z.ZodString>;
633
+ disabledTools: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
634
+ }, z.core.$strip>;
1695
635
  mcpBudgets: z.ZodObject<{
1696
636
  budgets: z.ZodArray<z.ZodObject<{
1697
637
  id: z.ZodString;
1698
- scope: z.ZodEnum<["server", "tool", "member", "member_server"]>;
638
+ scope: z.ZodEnum<{
639
+ member: "member";
640
+ tool: "tool";
641
+ server: "server";
642
+ member_server: "member_server";
643
+ }>;
1699
644
  server: z.ZodOptional<z.ZodString>;
1700
645
  tool: z.ZodOptional<z.ZodString>;
1701
646
  memberId: z.ZodOptional<z.ZodString>;
1702
- period: z.ZodEnum<["hour", "day"]>;
647
+ period: z.ZodEnum<{
648
+ day: "day";
649
+ hour: "hour";
650
+ }>;
1703
651
  limit: z.ZodNumber;
1704
- }, "strip", z.ZodTypeAny, {
1705
- period: "day" | "hour";
1706
- id: string;
1707
- scope: "member" | "tool" | "server" | "member_server";
1708
- limit: number;
1709
- tool?: string | undefined;
1710
- server?: string | undefined;
1711
- memberId?: string | undefined;
1712
- }, {
1713
- period: "day" | "hour";
1714
- id: string;
1715
- scope: "member" | "tool" | "server" | "member_server";
1716
- limit: number;
1717
- tool?: string | undefined;
1718
- server?: string | undefined;
1719
- memberId?: string | undefined;
1720
- }>, "many">;
652
+ }, z.core.$strip>>;
1721
653
  warnAtPct: z.ZodNumber;
1722
- }, "strip", z.ZodTypeAny, {
1723
- budgets: {
1724
- period: "day" | "hour";
1725
- id: string;
1726
- scope: "member" | "tool" | "server" | "member_server";
1727
- limit: number;
1728
- tool?: string | undefined;
1729
- server?: string | undefined;
1730
- memberId?: string | undefined;
1731
- }[];
1732
- warnAtPct: number;
1733
- }, {
1734
- budgets: {
1735
- period: "day" | "hour";
1736
- id: string;
1737
- scope: "member" | "tool" | "server" | "member_server";
1738
- limit: number;
1739
- tool?: string | undefined;
1740
- server?: string | undefined;
1741
- memberId?: string | undefined;
1742
- }[];
1743
- warnAtPct: number;
1744
- }>;
1745
- piiDetectors: z.ZodNullable<z.ZodRecord<z.ZodEnum<["pii.card", "pii.iban", "pii.ssn", "pii.email", "pii.phone"]>, z.ZodEnum<["off", "redact", "block"]>>>;
654
+ }, z.core.$strip>;
655
+ piiDetectors: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
656
+ "pii.card": "pii.card";
657
+ "pii.iban": "pii.iban";
658
+ "pii.ssn": "pii.ssn";
659
+ "pii.email": "pii.email";
660
+ "pii.phone": "pii.phone";
661
+ }> & z.core.$partial, z.ZodEnum<{
662
+ redact: "redact";
663
+ off: "off";
664
+ block: "block";
665
+ }>>>;
1746
666
  wasmRules: z.ZodArray<z.ZodObject<{
1747
667
  ruleId: z.ZodString;
1748
668
  name: z.ZodString;
1749
669
  sha256: z.ZodString;
1750
670
  priority: z.ZodNumber;
1751
- mode: z.ZodEnum<["ENFORCE", "SHADOW"]>;
1752
- }, "strip", z.ZodTypeAny, {
1753
- name: string;
1754
- mode: "SHADOW" | "ENFORCE";
1755
- ruleId: string;
1756
- sha256: string;
1757
- priority: number;
1758
- }, {
1759
- name: string;
1760
- mode: "SHADOW" | "ENFORCE";
1761
- ruleId: string;
1762
- sha256: string;
1763
- priority: number;
1764
- }>, "many">;
671
+ mode: z.ZodEnum<{
672
+ SHADOW: "SHADOW";
673
+ ENFORCE: "ENFORCE";
674
+ }>;
675
+ }, z.core.$strip>>;
1765
676
  ssoGroupPolicy: z.ZodNullable<z.ZodObject<{
1766
- highRiskTools: z.ZodArray<z.ZodString, "many">;
1767
- requiredGroups: z.ZodArray<z.ZodString, "many">;
1768
- requireOboFor: z.ZodArray<z.ZodString, "many">;
1769
- }, "strip", z.ZodTypeAny, {
1770
- highRiskTools: string[];
1771
- requiredGroups: string[];
1772
- requireOboFor: string[];
1773
- }, {
1774
- highRiskTools: string[];
1775
- requiredGroups: string[];
1776
- requireOboFor: string[];
1777
- }>>;
677
+ highRiskTools: z.ZodArray<z.ZodString>;
678
+ requiredGroups: z.ZodArray<z.ZodString>;
679
+ requireOboFor: z.ZodArray<z.ZodString>;
680
+ }, z.core.$strip>>;
1778
681
  principal: z.ZodNullable<z.ZodObject<{
1779
682
  memberId: z.ZodString;
1780
683
  email: z.ZodString;
1781
684
  role: z.ZodString;
1782
- ssoGroups: z.ZodArray<z.ZodString, "many">;
1783
- }, "strip", z.ZodTypeAny, {
1784
- email: string;
1785
- role: string;
1786
- memberId: string;
1787
- ssoGroups: string[];
1788
- }, {
1789
- email: string;
1790
- role: string;
1791
- memberId: string;
1792
- ssoGroups: string[];
685
+ ssoGroups: z.ZodArray<z.ZodString>;
686
+ }, z.core.$strip>>;
687
+ mcpProxyFailBehavior: z.ZodOptional<z.ZodEnum<{
688
+ open: "open";
689
+ closed: "closed";
690
+ }>>;
691
+ mcpInjectionAction: z.ZodOptional<z.ZodEnum<{
692
+ block: "block";
693
+ warn: "warn";
1793
694
  }>>;
1794
- mcpProxyFailBehavior: z.ZodOptional<z.ZodEnum<["open", "closed"]>>;
1795
- mcpInjectionAction: z.ZodOptional<z.ZodEnum<["warn", "block"]>>;
1796
- mcpAnomalyMode: z.ZodOptional<z.ZodEnum<["enforce", "warn", "off"]>>;
1797
- mcpAnomalyOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<["steer", "reask", "kill", "off"]>>>;
1798
- } & {
695
+ mcpAnomalyMode: z.ZodOptional<z.ZodEnum<{
696
+ enforce: "enforce";
697
+ off: "off";
698
+ warn: "warn";
699
+ }>>;
700
+ mcpAnomalyOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
701
+ off: "off";
702
+ steer: "steer";
703
+ reask: "reask";
704
+ kill: "kill";
705
+ }>>>;
1799
706
  workspaceId: z.ZodString;
1800
707
  sopRules: z.ZodArray<z.ZodObject<{
1801
708
  id: z.ZodString;
1802
709
  toolPattern: z.ZodString;
1803
710
  argPattern: z.ZodOptional<z.ZodString>;
1804
- action: z.ZodEnum<["block", "warn", "require_approval"]>;
711
+ action: z.ZodEnum<{
712
+ block: "block";
713
+ warn: "warn";
714
+ require_approval: "require_approval";
715
+ }>;
1805
716
  reason: z.ZodString;
1806
717
  origin: z.ZodOptional<z.ZodLiteral<"guardrail">>;
1807
- roles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1808
- }, "strip", z.ZodTypeAny, {
1809
- action: "block" | "warn" | "require_approval";
1810
- reason: string;
1811
- id: string;
1812
- toolPattern: string;
1813
- roles?: string[] | undefined;
1814
- argPattern?: string | undefined;
1815
- origin?: "guardrail" | undefined;
1816
- }, {
1817
- action: "block" | "warn" | "require_approval";
1818
- reason: string;
1819
- id: string;
1820
- toolPattern: string;
1821
- roles?: string[] | undefined;
1822
- argPattern?: string | undefined;
1823
- origin?: "guardrail" | undefined;
1824
- }>, "many">;
1825
- interventionMode: z.ZodEnum<["TRANSPARENT", "OPAQUE", "SILENT_LOG"]>;
718
+ roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
719
+ }, z.core.$strip>>;
720
+ interventionMode: z.ZodEnum<{
721
+ OPAQUE: "OPAQUE";
722
+ TRANSPARENT: "TRANSPARENT";
723
+ SILENT_LOG: "SILENT_LOG";
724
+ }>;
1826
725
  sqlDropStrictBlock: z.ZodBoolean;
1827
726
  decideRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
1828
727
  sopId: z.ZodString;
@@ -1837,448 +736,78 @@ export declare const PolicyResolveGatesResponse: z.ZodObject<{
1837
736
  band: z.ZodOptional<z.ZodObject<{
1838
737
  yes_at: z.ZodNumber;
1839
738
  no_below: z.ZodNumber;
1840
- }, "strip", z.ZodTypeAny, {
1841
- yes_at: number;
1842
- no_below: number;
1843
- }, {
1844
- yes_at: number;
1845
- no_below: number;
1846
- }>>;
739
+ }, z.core.$strip>>;
1847
740
  combiner: z.ZodOptional<z.ZodObject<{
1848
741
  bias: z.ZodNumber;
1849
742
  weights: z.ZodRecord<z.ZodString, z.ZodNumber>;
1850
- }, "strip", z.ZodTypeAny, {
1851
- bias: number;
1852
- weights: Record<string, number>;
1853
- }, {
1854
- bias: number;
1855
- weights: Record<string, number>;
1856
- }>>;
743
+ }, z.core.$strip>>;
1857
744
  evalRunId: z.ZodString;
1858
- source: z.ZodEnum<["local", "server"]>;
1859
- }, "strip", z.ZodTypeAny, {
1860
- modelDigest: string;
1861
- evalRunId: string;
1862
- source: "local" | "server";
1863
- band?: {
1864
- yes_at: number;
1865
- no_below: number;
1866
- } | undefined;
1867
- temperature?: Record<string, number> | undefined;
1868
- combiner?: {
1869
- bias: number;
1870
- weights: Record<string, number>;
1871
- } | undefined;
1872
- }, {
1873
- modelDigest: string;
1874
- evalRunId: string;
1875
- source: "local" | "server";
1876
- band?: {
1877
- yes_at: number;
1878
- no_below: number;
1879
- } | undefined;
1880
- temperature?: Record<string, number> | undefined;
1881
- combiner?: {
1882
- bias: number;
1883
- weights: Record<string, number>;
1884
- } | undefined;
1885
- }>, "many">;
1886
- }, "strip", z.ZodTypeAny, {
1887
- ir: string;
1888
- pins: {
1889
- modelDigest: string;
1890
- evalRunId: string;
1891
- source: "local" | "server";
1892
- band?: {
1893
- yes_at: number;
1894
- no_below: number;
1895
- } | undefined;
1896
- temperature?: Record<string, number> | undefined;
1897
- combiner?: {
1898
- bias: number;
1899
- weights: Record<string, number>;
1900
- } | undefined;
1901
- }[];
1902
- ruleText: string;
1903
- sopTitle: string;
1904
- sopId: string;
1905
- rollout?: "shadow" | undefined;
1906
- ruleHash?: string | undefined;
1907
- }, {
1908
- ir: string;
1909
- pins: {
1910
- modelDigest: string;
1911
- evalRunId: string;
1912
- source: "local" | "server";
1913
- band?: {
1914
- yes_at: number;
1915
- no_below: number;
1916
- } | undefined;
1917
- temperature?: Record<string, number> | undefined;
1918
- combiner?: {
1919
- bias: number;
1920
- weights: Record<string, number>;
1921
- } | undefined;
1922
- }[];
1923
- ruleText: string;
1924
- sopTitle: string;
1925
- sopId: string;
1926
- rollout?: "shadow" | undefined;
1927
- ruleHash?: string | undefined;
1928
- }>, "many">>;
1929
- } & {
745
+ source: z.ZodEnum<{
746
+ local: "local";
747
+ server: "server";
748
+ }>;
749
+ }, z.core.$strip>>;
750
+ }, z.core.$strip>>>;
1930
751
  gateRecords: z.ZodArray<z.ZodObject<{
1931
752
  sopId: z.ZodString;
1932
- kind: z.ZodEnum<["requires_outcome", "scope_paths", "plan_approval"]>;
1933
- rollout: z.ZodEnum<["shadow", "enforce"]>;
753
+ kind: z.ZodEnum<{
754
+ requires_outcome: "requires_outcome";
755
+ scope_paths: "scope_paths";
756
+ plan_approval: "plan_approval";
757
+ }>;
758
+ rollout: z.ZodEnum<{
759
+ shadow: "shadow";
760
+ enforce: "enforce";
761
+ }>;
1934
762
  fallbackId: z.ZodNullable<z.ZodString>;
1935
763
  payload: z.ZodObject<{
1936
764
  v: z.ZodLiteral<1>;
1937
765
  ref: z.ZodString;
1938
766
  sopTitle: z.ZodString;
1939
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1940
- v: z.ZodLiteral<1>;
1941
- ref: z.ZodString;
1942
- sopTitle: z.ZodString;
1943
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1944
- v: z.ZodLiteral<1>;
1945
- ref: z.ZodString;
1946
- sopTitle: z.ZodString;
1947
- }, z.ZodTypeAny, "passthrough">>;
1948
- }, "strip", z.ZodTypeAny, {
1949
- payload: {
1950
- v: 1;
1951
- ref: string;
1952
- sopTitle: string;
1953
- } & {
1954
- [k: string]: unknown;
1955
- };
1956
- kind: "requires_outcome" | "scope_paths" | "plan_approval";
1957
- rollout: "shadow" | "enforce";
1958
- fallbackId: string | null;
1959
- sopId: string;
1960
- }, {
1961
- payload: {
1962
- v: 1;
1963
- ref: string;
1964
- sopTitle: string;
1965
- } & {
1966
- [k: string]: unknown;
1967
- };
1968
- kind: "requires_outcome" | "scope_paths" | "plan_approval";
1969
- rollout: "shadow" | "enforce";
1970
- fallbackId: string | null;
1971
- sopId: string;
1972
- }>, "many">;
767
+ }, z.core.$loose>;
768
+ }, z.core.$strip>>;
1973
769
  holdRules: z.ZodArray<z.ZodObject<{
1974
770
  id: z.ZodString;
1975
771
  source: z.ZodString;
1976
- subject: z.ZodEnum<["phrase", "action"]>;
772
+ subject: z.ZodEnum<{
773
+ action: "action";
774
+ phrase: "phrase";
775
+ }>;
1977
776
  ignoreCase: z.ZodLiteral<true>;
1978
- severity: z.ZodEnum<["hold", "shadow"]>;
777
+ severity: z.ZodEnum<{
778
+ hold: "hold";
779
+ shadow: "shadow";
780
+ }>;
1979
781
  reason: z.ZodString;
1980
782
  rationale: z.ZodString;
1981
- }, "strip", z.ZodTypeAny, {
1982
- reason: string;
1983
- id: string;
1984
- source: string;
1985
- subject: "action" | "phrase";
1986
- ignoreCase: true;
1987
- rationale: string;
1988
- severity: "hold" | "shadow";
1989
- }, {
1990
- reason: string;
1991
- id: string;
1992
- source: string;
1993
- subject: "action" | "phrase";
1994
- ignoreCase: true;
1995
- rationale: string;
1996
- severity: "hold" | "shadow";
1997
- }>, "many">;
783
+ }, z.core.$strip>>;
1998
784
  revertHolds: z.ZodArray<z.ZodObject<{
1999
785
  subject: z.ZodString;
2000
786
  revertRate: z.ZodNullable<z.ZodNumber>;
2001
787
  rejectionRate: z.ZodNullable<z.ZodNumber>;
2002
- }, "strip", z.ZodTypeAny, {
2003
- revertRate: number | null;
2004
- subject: string;
2005
- rejectionRate: number | null;
2006
- }, {
2007
- revertRate: number | null;
2008
- subject: string;
2009
- rejectionRate: number | null;
2010
- }>, "many">;
2011
- }, "strip", z.ZodTypeAny, {
2012
- workspaceId: string;
2013
- piiDetectors: Partial<Record<"pii.card" | "pii.iban" | "pii.ssn" | "pii.email" | "pii.phone", "redact" | "off" | "block">> | null;
2014
- mcpInjectionPatterns: string[];
2015
- mcpBudgets: {
2016
- budgets: {
2017
- period: "day" | "hour";
2018
- id: string;
2019
- scope: "member" | "tool" | "server" | "member_server";
2020
- limit: number;
2021
- tool?: string | undefined;
2022
- server?: string | undefined;
2023
- memberId?: string | undefined;
2024
- }[];
2025
- warnAtPct: number;
2026
- };
2027
- interventionMode: "OPAQUE" | "TRANSPARENT" | "SILENT_LOG";
2028
- allowedTools: string[];
2029
- toolDescriptionOverrides: Record<string, string>;
2030
- allowedServers: string[];
2031
- mcpRegistry: {
2032
- disabledTools: Record<string, string[]>;
2033
- defaultPolicy: "deny" | "allow";
2034
- approvedServers: string[];
2035
- blockedServers: string[];
2036
- heldServers: string[];
2037
- };
2038
- wasmRules: {
2039
- name: string;
2040
- mode: "SHADOW" | "ENFORCE";
2041
- ruleId: string;
2042
- sha256: string;
2043
- priority: number;
2044
- }[];
2045
- ssoGroupPolicy: {
2046
- highRiskTools: string[];
2047
- requiredGroups: string[];
2048
- requireOboFor: string[];
2049
- } | null;
2050
- principal: {
2051
- email: string;
2052
- role: string;
2053
- memberId: string;
2054
- ssoGroups: string[];
2055
- } | null;
2056
- sopRules: {
2057
- action: "block" | "warn" | "require_approval";
2058
- reason: string;
2059
- id: string;
2060
- toolPattern: string;
2061
- roles?: string[] | undefined;
2062
- argPattern?: string | undefined;
2063
- origin?: "guardrail" | undefined;
2064
- }[];
2065
- sqlDropStrictBlock: boolean;
2066
- gateRecords: {
2067
- payload: {
2068
- v: 1;
2069
- ref: string;
2070
- sopTitle: string;
2071
- } & {
2072
- [k: string]: unknown;
2073
- };
2074
- kind: "requires_outcome" | "scope_paths" | "plan_approval";
2075
- rollout: "shadow" | "enforce";
2076
- fallbackId: string | null;
2077
- sopId: string;
2078
- }[];
2079
- holdRules: {
2080
- reason: string;
2081
- id: string;
2082
- source: string;
2083
- subject: "action" | "phrase";
2084
- ignoreCase: true;
2085
- rationale: string;
2086
- severity: "hold" | "shadow";
2087
- }[];
2088
- revertHolds: {
2089
- revertRate: number | null;
2090
- subject: string;
2091
- rejectionRate: number | null;
2092
- }[];
2093
- mcpProxyFailBehavior?: "open" | "closed" | undefined;
2094
- mcpInjectionAction?: "block" | "warn" | undefined;
2095
- mcpAnomalyMode?: "enforce" | "off" | "warn" | undefined;
2096
- mcpAnomalyOverrides?: Record<string, "off" | "steer" | "reask" | "kill"> | undefined;
2097
- decideRules?: {
2098
- ir: string;
2099
- pins: {
2100
- modelDigest: string;
2101
- evalRunId: string;
2102
- source: "local" | "server";
2103
- band?: {
2104
- yes_at: number;
2105
- no_below: number;
2106
- } | undefined;
2107
- temperature?: Record<string, number> | undefined;
2108
- combiner?: {
2109
- bias: number;
2110
- weights: Record<string, number>;
2111
- } | undefined;
2112
- }[];
2113
- ruleText: string;
2114
- sopTitle: string;
2115
- sopId: string;
2116
- rollout?: "shadow" | undefined;
2117
- ruleHash?: string | undefined;
2118
- }[] | undefined;
2119
- }, {
2120
- workspaceId: string;
2121
- piiDetectors: Partial<Record<"pii.card" | "pii.iban" | "pii.ssn" | "pii.email" | "pii.phone", "redact" | "off" | "block">> | null;
2122
- mcpInjectionPatterns: string[];
2123
- mcpBudgets: {
2124
- budgets: {
2125
- period: "day" | "hour";
2126
- id: string;
2127
- scope: "member" | "tool" | "server" | "member_server";
2128
- limit: number;
2129
- tool?: string | undefined;
2130
- server?: string | undefined;
2131
- memberId?: string | undefined;
2132
- }[];
2133
- warnAtPct: number;
2134
- };
2135
- interventionMode: "OPAQUE" | "TRANSPARENT" | "SILENT_LOG";
2136
- allowedTools: string[];
2137
- toolDescriptionOverrides: Record<string, string>;
2138
- allowedServers: string[];
2139
- mcpRegistry: {
2140
- disabledTools: Record<string, string[]>;
2141
- defaultPolicy: "deny" | "allow";
2142
- approvedServers: string[];
2143
- blockedServers: string[];
2144
- heldServers: string[];
2145
- };
2146
- wasmRules: {
2147
- name: string;
2148
- mode: "SHADOW" | "ENFORCE";
2149
- ruleId: string;
2150
- sha256: string;
2151
- priority: number;
2152
- }[];
2153
- ssoGroupPolicy: {
2154
- highRiskTools: string[];
2155
- requiredGroups: string[];
2156
- requireOboFor: string[];
2157
- } | null;
2158
- principal: {
2159
- email: string;
2160
- role: string;
2161
- memberId: string;
2162
- ssoGroups: string[];
2163
- } | null;
2164
- sopRules: {
2165
- action: "block" | "warn" | "require_approval";
2166
- reason: string;
2167
- id: string;
2168
- toolPattern: string;
2169
- roles?: string[] | undefined;
2170
- argPattern?: string | undefined;
2171
- origin?: "guardrail" | undefined;
2172
- }[];
2173
- sqlDropStrictBlock: boolean;
2174
- gateRecords: {
2175
- payload: {
2176
- v: 1;
2177
- ref: string;
2178
- sopTitle: string;
2179
- } & {
2180
- [k: string]: unknown;
2181
- };
2182
- kind: "requires_outcome" | "scope_paths" | "plan_approval";
2183
- rollout: "shadow" | "enforce";
2184
- fallbackId: string | null;
2185
- sopId: string;
2186
- }[];
2187
- holdRules: {
2188
- reason: string;
2189
- id: string;
2190
- source: string;
2191
- subject: "action" | "phrase";
2192
- ignoreCase: true;
2193
- rationale: string;
2194
- severity: "hold" | "shadow";
2195
- }[];
2196
- revertHolds: {
2197
- revertRate: number | null;
2198
- subject: string;
2199
- rejectionRate: number | null;
2200
- }[];
2201
- mcpProxyFailBehavior?: "open" | "closed" | undefined;
2202
- mcpInjectionAction?: "block" | "warn" | undefined;
2203
- mcpAnomalyMode?: "enforce" | "off" | "warn" | undefined;
2204
- mcpAnomalyOverrides?: Record<string, "off" | "steer" | "reask" | "kill"> | undefined;
2205
- decideRules?: {
2206
- ir: string;
2207
- pins: {
2208
- modelDigest: string;
2209
- evalRunId: string;
2210
- source: "local" | "server";
2211
- band?: {
2212
- yes_at: number;
2213
- no_below: number;
2214
- } | undefined;
2215
- temperature?: Record<string, number> | undefined;
2216
- combiner?: {
2217
- bias: number;
2218
- weights: Record<string, number>;
2219
- } | undefined;
2220
- }[];
2221
- ruleText: string;
2222
- sopTitle: string;
2223
- sopId: string;
2224
- rollout?: "shadow" | undefined;
2225
- ruleHash?: string | undefined;
2226
- }[] | undefined;
2227
- }>;
788
+ }, z.core.$strip>>;
789
+ }, z.core.$strip>;
2228
790
  export type PolicyResolveGatesResponse = z.infer<typeof PolicyResolveGatesResponse>;
2229
791
  /** `GET /api/v1/plans/approved`: the plans hook gates may treat as approved. */
2230
792
  export declare const ApprovedPlansResponse: z.ZodObject<{
2231
793
  plans: z.ZodArray<z.ZodObject<{
2232
794
  sessionId: z.ZodString;
2233
795
  planId: z.ZodString;
2234
- state: z.ZodEnum<["APPROVED", "EXECUTING"]>;
2235
- tools: z.ZodArray<z.ZodString, "many">;
796
+ state: z.ZodEnum<{
797
+ APPROVED: "APPROVED";
798
+ EXECUTING: "EXECUTING";
799
+ }>;
800
+ tools: z.ZodArray<z.ZodString>;
2236
801
  updatedAt: z.ZodString;
2237
- }, "strip", z.ZodTypeAny, {
2238
- sessionId: string;
2239
- tools: string[];
2240
- state: "APPROVED" | "EXECUTING";
2241
- updatedAt: string;
2242
- planId: string;
2243
- }, {
2244
- sessionId: string;
2245
- tools: string[];
2246
- state: "APPROVED" | "EXECUTING";
2247
- updatedAt: string;
2248
- planId: string;
2249
- }>, "many">;
2250
- }, "strip", z.ZodTypeAny, {
2251
- plans: {
2252
- sessionId: string;
2253
- tools: string[];
2254
- state: "APPROVED" | "EXECUTING";
2255
- updatedAt: string;
2256
- planId: string;
2257
- }[];
2258
- }, {
2259
- plans: {
2260
- sessionId: string;
2261
- tools: string[];
2262
- state: "APPROVED" | "EXECUTING";
2263
- updatedAt: string;
2264
- planId: string;
2265
- }[];
2266
- }>;
802
+ }, z.core.$strip>>;
803
+ }, z.core.$strip>;
2267
804
  export type ApprovedPlansResponse = z.infer<typeof ApprovedPlansResponse>;
2268
805
  /** `POST /api/v1/decisions`: how many holds became queue entries. */
2269
806
  export declare const DecisionIngestResponse: z.ZodObject<{
2270
807
  accepted: z.ZodNumber;
2271
808
  dropped: z.ZodNumber;
2272
- entryIds: z.ZodArray<z.ZodString, "many">;
2273
- }, "strip", z.ZodTypeAny, {
2274
- dropped: number;
2275
- accepted: number;
2276
- entryIds: string[];
2277
- }, {
2278
- dropped: number;
2279
- accepted: number;
2280
- entryIds: string[];
2281
- }>;
809
+ entryIds: z.ZodArray<z.ZodString>;
810
+ }, z.core.$strip>;
2282
811
  export type DecisionIngestResponse = z.infer<typeof DecisionIngestResponse>;
2283
812
  /** One approved bypass as `maybeWriteReviewHoldBypass` writes it to Valkey. */
2284
813
  export declare const ApprovedBypassResponse: z.ZodObject<{
@@ -2290,25 +819,7 @@ export declare const ApprovedBypassResponse: z.ZodObject<{
2290
819
  decidedBy: z.ZodString;
2291
820
  decidedAt: z.ZodString;
2292
821
  expiresAt: z.ZodString;
2293
- }, "strip", z.ZodTypeAny, {
2294
- workspaceId: string;
2295
- expiresAt: string;
2296
- sopRuleId: string;
2297
- toolNameNormalized: string;
2298
- targetHash: string;
2299
- holdId: string;
2300
- decidedBy: string;
2301
- decidedAt: string;
2302
- }, {
2303
- workspaceId: string;
2304
- expiresAt: string;
2305
- sopRuleId: string;
2306
- toolNameNormalized: string;
2307
- targetHash: string;
2308
- holdId: string;
2309
- decidedBy: string;
2310
- decidedAt: string;
2311
- }>;
822
+ }, z.core.$strip>;
2312
823
  export type ApprovedBypassResponse = z.infer<typeof ApprovedBypassResponse>;
2313
824
  /** `GET /api/v1/decisions/approved-bypasses`. */
2314
825
  export declare const ApprovedBypassListResponse: z.ZodObject<{
@@ -2322,50 +833,8 @@ export declare const ApprovedBypassListResponse: z.ZodObject<{
2322
833
  decidedBy: z.ZodString;
2323
834
  decidedAt: z.ZodString;
2324
835
  expiresAt: z.ZodString;
2325
- }, "strip", z.ZodTypeAny, {
2326
- workspaceId: string;
2327
- expiresAt: string;
2328
- sopRuleId: string;
2329
- toolNameNormalized: string;
2330
- targetHash: string;
2331
- holdId: string;
2332
- decidedBy: string;
2333
- decidedAt: string;
2334
- }, {
2335
- workspaceId: string;
2336
- expiresAt: string;
2337
- sopRuleId: string;
2338
- toolNameNormalized: string;
2339
- targetHash: string;
2340
- holdId: string;
2341
- decidedBy: string;
2342
- decidedAt: string;
2343
- }>, "many">;
2344
- }, "strip", z.ZodTypeAny, {
2345
- ok: true;
2346
- bypasses: {
2347
- workspaceId: string;
2348
- expiresAt: string;
2349
- sopRuleId: string;
2350
- toolNameNormalized: string;
2351
- targetHash: string;
2352
- holdId: string;
2353
- decidedBy: string;
2354
- decidedAt: string;
2355
- }[];
2356
- }, {
2357
- ok: true;
2358
- bypasses: {
2359
- workspaceId: string;
2360
- expiresAt: string;
2361
- sopRuleId: string;
2362
- toolNameNormalized: string;
2363
- targetHash: string;
2364
- holdId: string;
2365
- decidedBy: string;
2366
- decidedAt: string;
2367
- }[];
2368
- }>;
836
+ }, z.core.$strip>>;
837
+ }, z.core.$strip>;
2369
838
  export type ApprovedBypassListResponse = z.infer<typeof ApprovedBypassListResponse>;
2370
839
  /**
2371
840
  * `GET /api/v1/decisions/:entryId`: one decision-queue entry, found by its
@@ -2376,51 +845,24 @@ export declare const DecisionDetailResponse: z.ZodObject<{
2376
845
  entry_id: z.ZodString;
2377
846
  session_id: z.ZodNullable<z.ZodString>;
2378
847
  workspace_id: z.ZodString;
2379
- original_tool_call: z.ZodUnknown;
2380
- hijacked_tool_call: z.ZodUnknown;
848
+ original_tool_call: z.ZodOptional<z.ZodUnknown>;
849
+ hijacked_tool_call: z.ZodOptional<z.ZodUnknown>;
2381
850
  outcome: z.ZodString;
2382
851
  trace_id: z.ZodNullable<z.ZodString>;
2383
852
  rationale: z.ZodNullable<z.ZodString>;
2384
853
  status: z.ZodNullable<z.ZodString>;
2385
854
  created_at: z.ZodNullable<z.ZodString>;
2386
- }, "strip", z.ZodTypeAny, {
2387
- status: string | null;
2388
- outcome: string;
2389
- rationale: string | null;
2390
- workspace_id: string;
2391
- session_id: string | null;
2392
- created_at: string | null;
2393
- entry_id: string;
2394
- trace_id: string | null;
2395
- original_tool_call?: unknown;
2396
- hijacked_tool_call?: unknown;
2397
- }, {
2398
- status: string | null;
2399
- outcome: string;
2400
- rationale: string | null;
2401
- workspace_id: string;
2402
- session_id: string | null;
2403
- created_at: string | null;
2404
- entry_id: string;
2405
- trace_id: string | null;
2406
- original_tool_call?: unknown;
2407
- hijacked_tool_call?: unknown;
2408
- }>;
855
+ }, z.core.$strip>;
2409
856
  export type DecisionDetailResponse = z.infer<typeof DecisionDetailResponse>;
2410
857
  /** `POST /api/v1/decisions/:entryId/review`. */
2411
858
  export declare const DecisionReviewResponse: z.ZodObject<{
2412
859
  ok: z.ZodLiteral<true>;
2413
- status: z.ZodEnum<["APPROVED", "REJECTED"]>;
860
+ status: z.ZodEnum<{
861
+ APPROVED: "APPROVED";
862
+ REJECTED: "REJECTED";
863
+ }>;
2414
864
  bypassWritten: z.ZodBoolean;
2415
- }, "strip", z.ZodTypeAny, {
2416
- status: "APPROVED" | "REJECTED";
2417
- ok: true;
2418
- bypassWritten: boolean;
2419
- }, {
2420
- status: "APPROVED" | "REJECTED";
2421
- ok: true;
2422
- bypassWritten: boolean;
2423
- }>;
865
+ }, z.core.$strip>;
2424
866
  export type DecisionReviewResponse = z.infer<typeof DecisionReviewResponse>;
2425
867
  /** `GET /api/v1/rule-candidates/:candidateId/source`: the AssemblyScript a candidate renders to. */
2426
868
  export declare const RuleCandidateSourceResponse: z.ZodObject<{
@@ -2429,171 +871,76 @@ export declare const RuleCandidateSourceResponse: z.ZodObject<{
2429
871
  status: z.ZodString;
2430
872
  source: z.ZodString;
2431
873
  sourceSha256: z.ZodString;
2432
- }, "strip", z.ZodTypeAny, {
2433
- status: string;
2434
- source: string;
2435
- guardrailId: string | null;
2436
- candidateId: string;
2437
- sourceSha256: string;
2438
- }, {
2439
- status: string;
2440
- source: string;
2441
- guardrailId: string | null;
2442
- candidateId: string;
2443
- sourceSha256: string;
2444
- }>;
874
+ }, z.core.$strip>;
2445
875
  export type RuleCandidateSourceResponse = z.infer<typeof RuleCandidateSourceResponse>;
2446
876
  /** `POST /api/v1/rule-candidates/:candidateId/bundle`: 201 with the SHADOW rule when every gate passed, else 200 with the gates. */
2447
- export declare const RuleCandidateBundleResponse: z.ZodUnion<[z.ZodObject<{
877
+ export declare const RuleCandidateBundleResponse: z.ZodUnion<readonly [z.ZodObject<{
2448
878
  accepted: z.ZodLiteral<true>;
2449
879
  ruleId: z.ZodString;
2450
880
  mode: z.ZodLiteral<"SHADOW">;
2451
881
  gates: z.ZodArray<z.ZodObject<{
2452
- gate: z.ZodEnum<["predicate_valid", "mocks_from_history", "compiles_and_links", "default_allow", "discriminates", "historical_replay"]>;
882
+ gate: z.ZodEnum<{
883
+ predicate_valid: "predicate_valid";
884
+ mocks_from_history: "mocks_from_history";
885
+ compiles_and_links: "compiles_and_links";
886
+ default_allow: "default_allow";
887
+ discriminates: "discriminates";
888
+ historical_replay: "historical_replay";
889
+ }>;
2453
890
  passed: z.ZodBoolean;
2454
891
  detail: z.ZodString;
2455
- }, "strip", z.ZodTypeAny, {
2456
- gate: "predicate_valid" | "mocks_from_history" | "compiles_and_links" | "default_allow" | "discriminates" | "historical_replay";
2457
- passed: boolean;
2458
- detail: string;
2459
- }, {
2460
- gate: "predicate_valid" | "mocks_from_history" | "compiles_and_links" | "default_allow" | "discriminates" | "historical_replay";
2461
- passed: boolean;
2462
- detail: string;
2463
- }>, "many">;
2464
- }, "strip", z.ZodTypeAny, {
2465
- mode: "SHADOW";
2466
- ruleId: string;
2467
- accepted: true;
2468
- gates: {
2469
- gate: "predicate_valid" | "mocks_from_history" | "compiles_and_links" | "default_allow" | "discriminates" | "historical_replay";
2470
- passed: boolean;
2471
- detail: string;
2472
- }[];
2473
- }, {
2474
- mode: "SHADOW";
2475
- ruleId: string;
2476
- accepted: true;
2477
- gates: {
2478
- gate: "predicate_valid" | "mocks_from_history" | "compiles_and_links" | "default_allow" | "discriminates" | "historical_replay";
2479
- passed: boolean;
2480
- detail: string;
2481
- }[];
2482
- }>, z.ZodObject<{
892
+ }, z.core.$strip>>;
893
+ }, z.core.$strip>, z.ZodObject<{
2483
894
  accepted: z.ZodLiteral<false>;
2484
895
  gates: z.ZodArray<z.ZodObject<{
2485
- gate: z.ZodEnum<["predicate_valid", "mocks_from_history", "compiles_and_links", "default_allow", "discriminates", "historical_replay"]>;
896
+ gate: z.ZodEnum<{
897
+ predicate_valid: "predicate_valid";
898
+ mocks_from_history: "mocks_from_history";
899
+ compiles_and_links: "compiles_and_links";
900
+ default_allow: "default_allow";
901
+ discriminates: "discriminates";
902
+ historical_replay: "historical_replay";
903
+ }>;
2486
904
  passed: z.ZodBoolean;
2487
905
  detail: z.ZodString;
2488
- }, "strip", z.ZodTypeAny, {
2489
- gate: "predicate_valid" | "mocks_from_history" | "compiles_and_links" | "default_allow" | "discriminates" | "historical_replay";
2490
- passed: boolean;
2491
- detail: string;
2492
- }, {
2493
- gate: "predicate_valid" | "mocks_from_history" | "compiles_and_links" | "default_allow" | "discriminates" | "historical_replay";
2494
- passed: boolean;
2495
- detail: string;
2496
- }>, "many">;
2497
- }, "strip", z.ZodTypeAny, {
2498
- accepted: false;
2499
- gates: {
2500
- gate: "predicate_valid" | "mocks_from_history" | "compiles_and_links" | "default_allow" | "discriminates" | "historical_replay";
2501
- passed: boolean;
2502
- detail: string;
2503
- }[];
2504
- }, {
2505
- accepted: false;
2506
- gates: {
2507
- gate: "predicate_valid" | "mocks_from_history" | "compiles_and_links" | "default_allow" | "discriminates" | "historical_replay";
2508
- passed: boolean;
2509
- detail: string;
2510
- }[];
2511
- }>]>;
906
+ }, z.core.$strip>>;
907
+ }, z.core.$strip>]>;
2512
908
  export type RuleCandidateBundleResponse = z.infer<typeof RuleCandidateBundleResponse>;
2513
909
  /** `POST /api/v1/judge/chunk`: the verdict on one streamed segment of a response. */
2514
910
  export declare const JudgeChunkResponse: z.ZodObject<{
2515
- verdict: z.ZodEnum<["TRIGGERED", "PASS"]>;
911
+ verdict: z.ZodEnum<{
912
+ TRIGGERED: "TRIGGERED";
913
+ PASS: "PASS";
914
+ }>;
2516
915
  triggered: z.ZodBoolean;
2517
916
  personalTriggered: z.ZodBoolean;
2518
917
  explanation: z.ZodString;
2519
918
  cascade: z.ZodOptional<z.ZodObject<{
2520
- decision: z.ZodEnum<["clean", "violation", "review"]>;
919
+ decision: z.ZodEnum<{
920
+ review: "review";
921
+ clean: "clean";
922
+ violation: "violation";
923
+ }>;
2521
924
  score: z.ZodNullable<z.ZodNumber>;
2522
925
  band: z.ZodObject<{
2523
926
  lo: z.ZodNumber;
2524
927
  hi: z.ZodNumber;
2525
- }, "strip", z.ZodTypeAny, {
2526
- lo: number;
2527
- hi: number;
2528
- }, {
2529
- lo: number;
2530
- hi: number;
2531
- }>;
928
+ }, z.core.$strip>;
2532
929
  model: z.ZodString;
2533
930
  reviewId: z.ZodOptional<z.ZodString>;
2534
- }, "strip", z.ZodTypeAny, {
2535
- model: string;
2536
- decision: "review" | "clean" | "violation";
2537
- band: {
2538
- lo: number;
2539
- hi: number;
2540
- };
2541
- score: number | null;
2542
- reviewId?: string | undefined;
2543
- }, {
2544
- model: string;
2545
- decision: "review" | "clean" | "violation";
2546
- band: {
2547
- lo: number;
2548
- hi: number;
2549
- };
2550
- score: number | null;
2551
- reviewId?: string | undefined;
2552
- }>>;
931
+ }, z.core.$strip>>;
2553
932
  independent: z.ZodBoolean;
2554
933
  judgeSource: z.ZodLiteral<"platform">;
2555
934
  judgeModel: z.ZodString;
2556
- }, "strip", z.ZodTypeAny, {
2557
- verdict: "TRIGGERED" | "PASS";
2558
- triggered: boolean;
2559
- personalTriggered: boolean;
2560
- explanation: string;
2561
- independent: boolean;
2562
- judgeSource: "platform";
2563
- judgeModel: string;
2564
- cascade?: {
2565
- model: string;
2566
- decision: "review" | "clean" | "violation";
2567
- band: {
2568
- lo: number;
2569
- hi: number;
2570
- };
2571
- score: number | null;
2572
- reviewId?: string | undefined;
2573
- } | undefined;
2574
- }, {
2575
- verdict: "TRIGGERED" | "PASS";
2576
- triggered: boolean;
2577
- personalTriggered: boolean;
2578
- explanation: string;
2579
- independent: boolean;
2580
- judgeSource: "platform";
2581
- judgeModel: string;
2582
- cascade?: {
2583
- model: string;
2584
- decision: "review" | "clean" | "violation";
2585
- band: {
2586
- lo: number;
2587
- hi: number;
2588
- };
2589
- score: number | null;
2590
- reviewId?: string | undefined;
2591
- } | undefined;
2592
- }>;
935
+ }, z.core.$strip>;
2593
936
  export type JudgeChunkResponse = z.infer<typeof JudgeChunkResponse>;
2594
937
  /** `POST /api/v1/judge/finalize`: the final verdict on a response. */
2595
938
  export declare const JudgeFinalizeResponse: z.ZodObject<{
2596
- verdict: z.ZodEnum<["TRIGGERED", "REVIEW", "PASS"]>;
939
+ verdict: z.ZodEnum<{
940
+ TRIGGERED: "TRIGGERED";
941
+ PASS: "PASS";
942
+ REVIEW: "REVIEW";
943
+ }>;
2597
944
  triggered: z.ZodBoolean;
2598
945
  personalTriggered: z.ZodBoolean;
2599
946
  explanation: z.ZodOptional<z.ZodString>;
@@ -2607,147 +954,35 @@ export declare const JudgeFinalizeResponse: z.ZodObject<{
2607
954
  threshold: z.ZodNumber;
2608
955
  model: z.ZodString;
2609
956
  independent: z.ZodBoolean;
2610
- }, "strip", z.ZodTypeAny, {
2611
- model: string;
2612
- pViolation: number;
2613
- threshold: number;
2614
- violation: boolean;
2615
- independent: boolean;
2616
- }, {
2617
- model: string;
2618
- pViolation: number;
2619
- threshold: number;
2620
- violation: boolean;
2621
- independent: boolean;
2622
- }>>;
957
+ }, z.core.$strip>>;
2623
958
  cascade: z.ZodOptional<z.ZodObject<{
2624
- decision: z.ZodEnum<["clean", "violation", "review"]>;
959
+ decision: z.ZodEnum<{
960
+ review: "review";
961
+ clean: "clean";
962
+ violation: "violation";
963
+ }>;
2625
964
  score: z.ZodNullable<z.ZodNumber>;
2626
965
  band: z.ZodObject<{
2627
966
  lo: z.ZodNumber;
2628
967
  hi: z.ZodNumber;
2629
- }, "strip", z.ZodTypeAny, {
2630
- lo: number;
2631
- hi: number;
2632
- }, {
2633
- lo: number;
2634
- hi: number;
2635
- }>;
968
+ }, z.core.$strip>;
2636
969
  model: z.ZodString;
2637
970
  reviewId: z.ZodOptional<z.ZodString>;
2638
- }, "strip", z.ZodTypeAny, {
2639
- model: string;
2640
- decision: "review" | "clean" | "violation";
2641
- band: {
2642
- lo: number;
2643
- hi: number;
2644
- };
2645
- score: number | null;
2646
- reviewId?: string | undefined;
2647
- }, {
2648
- model: string;
2649
- decision: "review" | "clean" | "violation";
2650
- band: {
2651
- lo: number;
2652
- hi: number;
2653
- };
2654
- score: number | null;
2655
- reviewId?: string | undefined;
2656
- }>>;
971
+ }, z.core.$strip>>;
2657
972
  personalCascade: z.ZodOptional<z.ZodObject<{
2658
- decision: z.ZodEnum<["clean", "violation", "review"]>;
973
+ decision: z.ZodEnum<{
974
+ review: "review";
975
+ clean: "clean";
976
+ violation: "violation";
977
+ }>;
2659
978
  score: z.ZodNumber;
2660
- }, "strip", z.ZodTypeAny, {
2661
- decision: "review" | "clean" | "violation";
2662
- score: number;
2663
- }, {
2664
- decision: "review" | "clean" | "violation";
2665
- score: number;
2666
- }>>;
979
+ }, z.core.$strip>>;
2667
980
  deprecation: z.ZodOptional<z.ZodObject<{
2668
981
  code: z.ZodLiteral<"FREE_TEXT_VERDICT_DEPRECATED">;
2669
982
  removedIn: z.ZodLiteral<"4.0">;
2670
983
  message: z.ZodString;
2671
- }, "strip", z.ZodTypeAny, {
2672
- code: "FREE_TEXT_VERDICT_DEPRECATED";
2673
- message: string;
2674
- removedIn: "4.0";
2675
- }, {
2676
- code: "FREE_TEXT_VERDICT_DEPRECATED";
2677
- message: string;
2678
- removedIn: "4.0";
2679
- }>>;
2680
- }, "strip", z.ZodTypeAny, {
2681
- verdict: "TRIGGERED" | "PASS" | "REVIEW";
2682
- triggered: boolean;
2683
- personalTriggered: boolean;
2684
- independent: boolean;
2685
- judgeSource: "platform";
2686
- judgeModel: string;
2687
- correctionSummary: string;
2688
- explanation?: string | undefined;
2689
- cascade?: {
2690
- model: string;
2691
- decision: "review" | "clean" | "violation";
2692
- band: {
2693
- lo: number;
2694
- hi: number;
2695
- };
2696
- score: number | null;
2697
- reviewId?: string | undefined;
2698
- } | undefined;
2699
- typedAdvisory?: {
2700
- model: string;
2701
- pViolation: number;
2702
- threshold: number;
2703
- violation: boolean;
2704
- independent: boolean;
2705
- } | undefined;
2706
- personalCascade?: {
2707
- decision: "review" | "clean" | "violation";
2708
- score: number;
2709
- } | undefined;
2710
- deprecation?: {
2711
- code: "FREE_TEXT_VERDICT_DEPRECATED";
2712
- message: string;
2713
- removedIn: "4.0";
2714
- } | undefined;
2715
- }, {
2716
- verdict: "TRIGGERED" | "PASS" | "REVIEW";
2717
- triggered: boolean;
2718
- personalTriggered: boolean;
2719
- independent: boolean;
2720
- judgeSource: "platform";
2721
- judgeModel: string;
2722
- correctionSummary: string;
2723
- explanation?: string | undefined;
2724
- cascade?: {
2725
- model: string;
2726
- decision: "review" | "clean" | "violation";
2727
- band: {
2728
- lo: number;
2729
- hi: number;
2730
- };
2731
- score: number | null;
2732
- reviewId?: string | undefined;
2733
- } | undefined;
2734
- typedAdvisory?: {
2735
- model: string;
2736
- pViolation: number;
2737
- threshold: number;
2738
- violation: boolean;
2739
- independent: boolean;
2740
- } | undefined;
2741
- personalCascade?: {
2742
- decision: "review" | "clean" | "violation";
2743
- score: number;
2744
- } | undefined;
2745
- deprecation?: {
2746
- code: "FREE_TEXT_VERDICT_DEPRECATED";
2747
- message: string;
2748
- removedIn: "4.0";
2749
- } | undefined;
2750
- }>;
984
+ }, z.core.$strip>>;
985
+ }, z.core.$strip>;
2751
986
  export type JudgeFinalizeResponse = z.infer<typeof JudgeFinalizeResponse>;
2752
987
  /** `POST /api/v1/hook-events`: what the batch became. */
2753
988
  export declare const HookEventsResponse: z.ZodObject<{
@@ -2770,130 +1005,14 @@ export declare const HookEventsResponse: z.ZodObject<{
2770
1005
  findings: z.ZodNumber;
2771
1006
  guardrailsTouched: z.ZodNumber;
2772
1007
  errors: z.ZodNumber;
2773
- }, "strip", z.ZodTypeAny, {
2774
- findings: number;
2775
- errors: number;
2776
- evaluations: number;
2777
- replayed: boolean;
2778
- evidenceRows: number;
2779
- guardrailsTouched: number;
2780
- }, {
2781
- findings: number;
2782
- errors: number;
2783
- evaluations: number;
2784
- replayed: boolean;
2785
- evidenceRows: number;
2786
- guardrailsTouched: number;
2787
- }>;
1008
+ }, z.core.$strip>;
2788
1009
  snapshot_issues: z.ZodNumber;
2789
1010
  guards_disabled: z.ZodNumber;
2790
1011
  rejected: z.ZodNumber;
2791
1012
  replayed: z.ZodNumber;
2792
1013
  errors: z.ZodNumber;
2793
- }, "strip", z.ZodTypeAny, {
2794
- errors: number;
2795
- total: number;
2796
- rejected: number;
2797
- incidents_created: number;
2798
- tamper_alerts: number;
2799
- bypass_alerts: number;
2800
- allowed: number;
2801
- flagged: number;
2802
- skill_flagged: number;
2803
- would_block: number;
2804
- wasm_shadow_evaluations: number;
2805
- detector_findings: number;
2806
- guardrail_evidence: {
2807
- findings: number;
2808
- errors: number;
2809
- evaluations: number;
2810
- replayed: boolean;
2811
- evidenceRows: number;
2812
- guardrailsTouched: number;
2813
- };
2814
- replayed: number;
2815
- snapshot_issues: number;
2816
- guards_disabled: number;
2817
- }, {
2818
- errors: number;
2819
- total: number;
2820
- rejected: number;
2821
- incidents_created: number;
2822
- tamper_alerts: number;
2823
- bypass_alerts: number;
2824
- allowed: number;
2825
- flagged: number;
2826
- skill_flagged: number;
2827
- would_block: number;
2828
- wasm_shadow_evaluations: number;
2829
- detector_findings: number;
2830
- guardrail_evidence: {
2831
- findings: number;
2832
- errors: number;
2833
- evaluations: number;
2834
- replayed: boolean;
2835
- evidenceRows: number;
2836
- guardrailsTouched: number;
2837
- };
2838
- replayed: number;
2839
- snapshot_issues: number;
2840
- guards_disabled: number;
2841
- }>;
2842
- }, "strip", z.ZodTypeAny, {
2843
- ok: true;
2844
- summary: {
2845
- errors: number;
2846
- total: number;
2847
- rejected: number;
2848
- incidents_created: number;
2849
- tamper_alerts: number;
2850
- bypass_alerts: number;
2851
- allowed: number;
2852
- flagged: number;
2853
- skill_flagged: number;
2854
- would_block: number;
2855
- wasm_shadow_evaluations: number;
2856
- detector_findings: number;
2857
- guardrail_evidence: {
2858
- findings: number;
2859
- errors: number;
2860
- evaluations: number;
2861
- replayed: boolean;
2862
- evidenceRows: number;
2863
- guardrailsTouched: number;
2864
- };
2865
- replayed: number;
2866
- snapshot_issues: number;
2867
- guards_disabled: number;
2868
- };
2869
- }, {
2870
- ok: true;
2871
- summary: {
2872
- errors: number;
2873
- total: number;
2874
- rejected: number;
2875
- incidents_created: number;
2876
- tamper_alerts: number;
2877
- bypass_alerts: number;
2878
- allowed: number;
2879
- flagged: number;
2880
- skill_flagged: number;
2881
- would_block: number;
2882
- wasm_shadow_evaluations: number;
2883
- detector_findings: number;
2884
- guardrail_evidence: {
2885
- findings: number;
2886
- errors: number;
2887
- evaluations: number;
2888
- replayed: boolean;
2889
- evidenceRows: number;
2890
- guardrailsTouched: number;
2891
- };
2892
- replayed: number;
2893
- snapshot_issues: number;
2894
- guards_disabled: number;
2895
- };
2896
- }>;
1014
+ }, z.core.$strip>;
1015
+ }, z.core.$strip>;
2897
1016
  export type HookEventsResponse = z.infer<typeof HookEventsResponse>;
2898
1017
  /**
2899
1018
  * `POST /api/v1/hook-gate`: a verdict on one tool call, each naming its
@@ -2901,55 +1020,23 @@ export type HookEventsResponse = z.infer<typeof HookEventsResponse>;
2901
1020
  * `reason` and no `ruleId`), a degraded allow (a shadow workspace whose checks
2902
1021
  * could not run), or an allow.
2903
1022
  */
2904
- export declare const HookGateResponse: z.ZodUnion<[z.ZodObject<{
1023
+ export declare const HookGateResponse: z.ZodUnion<readonly [z.ZodObject<{
2905
1024
  allowed: z.ZodLiteral<false>;
2906
1025
  reason: z.ZodString;
2907
1026
  incidentId: z.ZodOptional<z.ZodString>;
2908
1027
  code: z.ZodOptional<z.ZodString>;
2909
1028
  ruleId: z.ZodOptional<z.ZodString>;
2910
1029
  decisionId: z.ZodString;
2911
- }, "strip", z.ZodTypeAny, {
2912
- reason: string;
2913
- allowed: false;
2914
- decisionId: string;
2915
- code?: string | undefined;
2916
- ruleId?: string | undefined;
2917
- incidentId?: string | undefined;
2918
- }, {
2919
- reason: string;
2920
- allowed: false;
2921
- decisionId: string;
2922
- code?: string | undefined;
2923
- ruleId?: string | undefined;
2924
- incidentId?: string | undefined;
2925
- }>, z.ZodObject<{
1030
+ }, z.core.$strip>, z.ZodObject<{
2926
1031
  allowed: z.ZodLiteral<true>;
2927
1032
  degraded: z.ZodLiteral<true>;
2928
1033
  code: z.ZodLiteral<"GOVERNANCE_UNAVAILABLE">;
2929
1034
  reason: z.ZodString;
2930
1035
  decisionId: z.ZodString;
2931
- }, "strip", z.ZodTypeAny, {
2932
- code: "GOVERNANCE_UNAVAILABLE";
2933
- reason: string;
2934
- degraded: true;
2935
- allowed: true;
2936
- decisionId: string;
2937
- }, {
2938
- code: "GOVERNANCE_UNAVAILABLE";
2939
- reason: string;
2940
- degraded: true;
2941
- allowed: true;
2942
- decisionId: string;
2943
- }>, z.ZodObject<{
1036
+ }, z.core.$strip>, z.ZodObject<{
2944
1037
  allowed: z.ZodLiteral<true>;
2945
1038
  decisionId: z.ZodString;
2946
- }, "strip", z.ZodTypeAny, {
2947
- allowed: true;
2948
- decisionId: string;
2949
- }, {
2950
- allowed: true;
2951
- decisionId: string;
2952
- }>]>;
1039
+ }, z.core.$strip>]>;
2953
1040
  export type HookGateResponse = z.infer<typeof HookGateResponse>;
2954
1041
  /**
2955
1042
  * The SOP Optimizer's approval mode, as `dreamCycleService.ts`
@@ -2958,48 +1045,24 @@ export type HookGateResponse = z.infer<typeof HookGateResponse>;
2958
1045
  */
2959
1046
  export declare const OptimizerSettingsResponse: z.ZodObject<{
2960
1047
  workspaceId: z.ZodString;
2961
- mode: z.ZodEnum<["manual", "auto"]>;
1048
+ mode: z.ZodEnum<{
1049
+ manual: "manual";
1050
+ auto: "auto";
1051
+ }>;
2962
1052
  autoThreshold: z.ZodNumber;
2963
- }, "strip", z.ZodTypeAny, {
2964
- workspaceId: string;
2965
- mode: "manual" | "auto";
2966
- autoThreshold: number;
2967
- }, {
2968
- workspaceId: string;
2969
- mode: "manual" | "auto";
2970
- autoThreshold: number;
2971
- }>;
1053
+ }, z.core.$strip>;
2972
1054
  export type OptimizerSettingsResponse = z.infer<typeof OptimizerSettingsResponse>;
2973
1055
  /** `GET /api/v1/dream-cycle/settings` and `PUT /api/v1/dream-cycle/settings`: the settings now in force. */
2974
1056
  export declare const DreamCycleSettingsResponse: z.ZodObject<{
2975
1057
  ok: z.ZodLiteral<true>;
2976
1058
  settings: z.ZodObject<{
2977
1059
  workspaceId: z.ZodString;
2978
- mode: z.ZodEnum<["manual", "auto"]>;
1060
+ mode: z.ZodEnum<{
1061
+ manual: "manual";
1062
+ auto: "auto";
1063
+ }>;
2979
1064
  autoThreshold: z.ZodNumber;
2980
- }, "strip", z.ZodTypeAny, {
2981
- workspaceId: string;
2982
- mode: "manual" | "auto";
2983
- autoThreshold: number;
2984
- }, {
2985
- workspaceId: string;
2986
- mode: "manual" | "auto";
2987
- autoThreshold: number;
2988
- }>;
2989
- }, "strip", z.ZodTypeAny, {
2990
- settings: {
2991
- workspaceId: string;
2992
- mode: "manual" | "auto";
2993
- autoThreshold: number;
2994
- };
2995
- ok: true;
2996
- }, {
2997
- settings: {
2998
- workspaceId: string;
2999
- mode: "manual" | "auto";
3000
- autoThreshold: number;
3001
- };
3002
- ok: true;
3003
- }>;
1065
+ }, z.core.$strip>;
1066
+ }, z.core.$strip>;
3004
1067
  export type DreamCycleSettingsResponse = z.infer<typeof DreamCycleSettingsResponse>;
3005
1068
  //# sourceMappingURL=rules.d.ts.map