@intutic/shared-types 2.9.1 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/decide.d.ts +269 -0
- package/dist/decide.d.ts.map +1 -0
- package/dist/decide.js +781 -0
- package/dist/decide.js.map +1 -0
- package/dist/decideEngine.d.ts +195 -0
- package/dist/decideEngine.d.ts.map +1 -0
- package/dist/decideEngine.js +720 -0
- package/dist/decideEngine.js.map +1 -0
- package/dist/decideEvaluate.d.ts +250 -0
- package/dist/decideEvaluate.d.ts.map +1 -0
- package/dist/decideEvaluate.js +518 -0
- package/dist/decideEvaluate.js.map +1 -0
- package/dist/decideHostGuard.d.ts +56 -0
- package/dist/decideHostGuard.d.ts.map +1 -0
- package/dist/decideHostGuard.js +200 -0
- package/dist/decideHostGuard.js.map +1 -0
- package/dist/decideLog.d.ts +287 -0
- package/dist/decideLog.d.ts.map +1 -0
- package/dist/decideLog.js +543 -0
- package/dist/decideLog.js.map +1 -0
- package/dist/decideLogRedaction.d.ts +12 -0
- package/dist/decideLogRedaction.d.ts.map +1 -0
- package/dist/decideLogRedaction.js +19 -0
- package/dist/decideLogRedaction.js.map +1 -0
- package/dist/decideRecord.d.ts +128 -0
- package/dist/decideRecord.d.ts.map +1 -0
- package/dist/decideRecord.js +266 -0
- package/dist/decideRecord.js.map +1 -0
- package/dist/decideSdk.d.ts +86 -0
- package/dist/decideSdk.d.ts.map +1 -0
- package/dist/decideSdk.js +151 -0
- package/dist/decideSdk.js.map +1 -0
- package/dist/errors.d.ts +11 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +12 -1
- package/dist/errors.js.map +1 -1
- package/dist/gateLimits.d.ts +27 -0
- package/dist/gateLimits.d.ts.map +1 -1
- package/dist/gateLimits.js +29 -1
- package/dist/gateLimits.js.map +1 -1
- package/dist/gateRuleRecord.d.ts +244 -0
- package/dist/gateRuleRecord.d.ts.map +1 -0
- package/dist/gateRuleRecord.js +474 -0
- package/dist/gateRuleRecord.js.map +1 -0
- package/dist/guardrailIr.d.ts +301 -10
- package/dist/guardrailIr.d.ts.map +1 -1
- package/dist/guardrailIr.js +86 -7
- package/dist/guardrailIr.js.map +1 -1
- package/dist/guardrailRender.d.ts +35 -2
- package/dist/guardrailRender.d.ts.map +1 -1
- package/dist/guardrailRender.js +133 -7
- package/dist/guardrailRender.js.map +1 -1
- package/dist/index.d.ts +28 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +162 -8
- package/dist/index.js.map +1 -1
- package/dist/lanes.d.ts +94 -0
- package/dist/lanes.d.ts.map +1 -0
- package/dist/lanes.js +160 -0
- package/dist/lanes.js.map +1 -0
- package/dist/loopVerify.d.ts +49 -0
- package/dist/loopVerify.d.ts.map +1 -0
- package/dist/loopVerify.js +77 -0
- package/dist/loopVerify.js.map +1 -0
- package/dist/mcpBudgets.d.ts +8 -8
- package/dist/notifications.d.ts +1 -1
- package/dist/notifications.d.ts.map +1 -1
- package/dist/notifications.js +14 -0
- package/dist/notifications.js.map +1 -1
- package/dist/providers.d.ts +13 -0
- package/dist/providers.d.ts.map +1 -1
- package/dist/providers.js +31 -0
- package/dist/providers.js.map +1 -1
- package/dist/refusalDetail.d.ts +58 -0
- package/dist/refusalDetail.d.ts.map +1 -0
- package/dist/refusalDetail.js +128 -0
- package/dist/refusalDetail.js.map +1 -0
- package/dist/responses/decide.d.ts +1858 -0
- package/dist/responses/decide.d.ts.map +1 -0
- package/dist/responses/decide.js +166 -0
- package/dist/responses/decide.js.map +1 -0
- package/dist/responses/gateways.d.ts +745 -101
- package/dist/responses/gateways.d.ts.map +1 -1
- package/dist/responses/gateways.js +34 -2
- package/dist/responses/gateways.js.map +1 -1
- package/dist/responses/guardrails.d.ts +1434 -144
- package/dist/responses/guardrails.d.ts.map +1 -1
- package/dist/responses/identity.d.ts +6 -6
- package/dist/responses/index.d.ts +1 -0
- package/dist/responses/index.d.ts.map +1 -1
- package/dist/responses/index.js +1 -0
- package/dist/responses/index.js.map +1 -1
- package/dist/responses/integrations.d.ts +84 -84
- package/dist/responses/observability.d.ts +272 -92
- package/dist/responses/observability.d.ts.map +1 -1
- package/dist/responses/observability.js +31 -1
- package/dist/responses/observability.js.map +1 -1
- package/dist/responses/rules.d.ts +1026 -187
- package/dist/responses/rules.d.ts.map +1 -1
- package/dist/responses/rules.js +47 -1
- package/dist/responses/rules.js.map +1 -1
- package/dist/scopeMatch.d.ts +156 -0
- package/dist/scopeMatch.d.ts.map +1 -0
- package/dist/scopeMatch.js +451 -0
- package/dist/scopeMatch.js.map +1 -0
- package/dist/sopKeySince.d.ts +41 -0
- package/dist/sopKeySince.d.ts.map +1 -0
- package/dist/sopKeySince.js +81 -0
- package/dist/sopKeySince.js.map +1 -0
- package/dist/testOutcome.d.ts +164 -0
- package/dist/testOutcome.d.ts.map +1 -0
- package/dist/testOutcome.js +454 -0
- package/dist/testOutcome.js.map +1 -0
- package/dist/upstreamRetry.d.ts +2 -2
- package/dist/workspaceSettings.d.ts +91 -0
- package/dist/workspaceSettings.d.ts.map +1 -1
- package/dist/workspaceSettings.js +48 -2
- package/dist/workspaceSettings.js.map +1 -1
- package/package.json +2 -2
|
@@ -128,14 +128,14 @@ export declare const ReviewBudgetResponse: z.ZodObject<{
|
|
|
128
128
|
overBudget: z.ZodBoolean;
|
|
129
129
|
}, "strip", z.ZodTypeAny, {
|
|
130
130
|
budget: number;
|
|
131
|
+
overBudget: boolean;
|
|
131
132
|
matched: number;
|
|
132
133
|
withheld: number;
|
|
133
|
-
overBudget: boolean;
|
|
134
134
|
}, {
|
|
135
135
|
budget: number;
|
|
136
|
+
overBudget: boolean;
|
|
136
137
|
matched: number;
|
|
137
138
|
withheld: number;
|
|
138
|
-
overBudget: boolean;
|
|
139
139
|
}>;
|
|
140
140
|
export type ReviewBudgetResponse = z.infer<typeof ReviewBudgetResponse>;
|
|
141
141
|
/** One row of the incident list: the incident with its rank. */
|
|
@@ -206,34 +206,34 @@ export declare const IncidentListResponse: z.ZodUnion<[z.ZodObject<{
|
|
|
206
206
|
overBudget: z.ZodBoolean;
|
|
207
207
|
}, "strip", z.ZodTypeAny, {
|
|
208
208
|
budget: number;
|
|
209
|
+
overBudget: boolean;
|
|
209
210
|
matched: number;
|
|
210
211
|
withheld: number;
|
|
211
|
-
overBudget: boolean;
|
|
212
212
|
}, {
|
|
213
213
|
budget: number;
|
|
214
|
+
overBudget: boolean;
|
|
214
215
|
matched: number;
|
|
215
216
|
withheld: number;
|
|
216
|
-
overBudget: boolean;
|
|
217
217
|
}>;
|
|
218
218
|
}, "strip", z.ZodTypeAny, {
|
|
219
|
+
total: number;
|
|
219
220
|
limit: number;
|
|
220
221
|
audit: {
|
|
221
222
|
budget: number;
|
|
223
|
+
overBudget: boolean;
|
|
222
224
|
matched: number;
|
|
223
225
|
withheld: number;
|
|
224
|
-
overBudget: boolean;
|
|
225
226
|
};
|
|
226
|
-
total: number;
|
|
227
227
|
page: number;
|
|
228
228
|
}, {
|
|
229
|
+
total: number;
|
|
229
230
|
limit: number;
|
|
230
231
|
audit: {
|
|
231
232
|
budget: number;
|
|
233
|
+
overBudget: boolean;
|
|
232
234
|
matched: number;
|
|
233
235
|
withheld: number;
|
|
234
|
-
overBudget: boolean;
|
|
235
236
|
};
|
|
236
|
-
total: number;
|
|
237
237
|
page: number;
|
|
238
238
|
}>;
|
|
239
239
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -242,14 +242,14 @@ export declare const IncidentListResponse: z.ZodUnion<[z.ZodObject<{
|
|
|
242
242
|
rowCase: "snake";
|
|
243
243
|
format: "toon";
|
|
244
244
|
meta: {
|
|
245
|
+
total: number;
|
|
245
246
|
limit: number;
|
|
246
247
|
audit: {
|
|
247
248
|
budget: number;
|
|
249
|
+
overBudget: boolean;
|
|
248
250
|
matched: number;
|
|
249
251
|
withheld: number;
|
|
250
|
-
overBudget: boolean;
|
|
251
252
|
};
|
|
252
|
-
total: number;
|
|
253
253
|
page: number;
|
|
254
254
|
};
|
|
255
255
|
}, {
|
|
@@ -258,14 +258,14 @@ export declare const IncidentListResponse: z.ZodUnion<[z.ZodObject<{
|
|
|
258
258
|
rowCase: "snake";
|
|
259
259
|
format: "toon";
|
|
260
260
|
meta: {
|
|
261
|
+
total: number;
|
|
261
262
|
limit: number;
|
|
262
263
|
audit: {
|
|
263
264
|
budget: number;
|
|
265
|
+
overBudget: boolean;
|
|
264
266
|
matched: number;
|
|
265
267
|
withheld: number;
|
|
266
|
-
overBudget: boolean;
|
|
267
268
|
};
|
|
268
|
-
total: number;
|
|
269
269
|
page: number;
|
|
270
270
|
};
|
|
271
271
|
}>, z.ZodObject<{
|
|
@@ -327,34 +327,34 @@ export declare const IncidentListResponse: z.ZodUnion<[z.ZodObject<{
|
|
|
327
327
|
overBudget: z.ZodBoolean;
|
|
328
328
|
}, "strip", z.ZodTypeAny, {
|
|
329
329
|
budget: number;
|
|
330
|
+
overBudget: boolean;
|
|
330
331
|
matched: number;
|
|
331
332
|
withheld: number;
|
|
332
|
-
overBudget: boolean;
|
|
333
333
|
}, {
|
|
334
334
|
budget: number;
|
|
335
|
+
overBudget: boolean;
|
|
335
336
|
matched: number;
|
|
336
337
|
withheld: number;
|
|
337
|
-
overBudget: boolean;
|
|
338
338
|
}>;
|
|
339
339
|
}, "strip", z.ZodTypeAny, {
|
|
340
|
+
total: number;
|
|
340
341
|
limit: number;
|
|
341
342
|
audit: {
|
|
342
343
|
budget: number;
|
|
344
|
+
overBudget: boolean;
|
|
343
345
|
matched: number;
|
|
344
346
|
withheld: number;
|
|
345
|
-
overBudget: boolean;
|
|
346
347
|
};
|
|
347
|
-
total: number;
|
|
348
348
|
page: number;
|
|
349
349
|
}, {
|
|
350
|
+
total: number;
|
|
350
351
|
limit: number;
|
|
351
352
|
audit: {
|
|
352
353
|
budget: number;
|
|
354
|
+
overBudget: boolean;
|
|
353
355
|
matched: number;
|
|
354
356
|
withheld: number;
|
|
355
|
-
overBudget: boolean;
|
|
356
357
|
};
|
|
357
|
-
total: number;
|
|
358
358
|
page: number;
|
|
359
359
|
}>;
|
|
360
360
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -376,14 +376,14 @@ export declare const IncidentListResponse: z.ZodUnion<[z.ZodObject<{
|
|
|
376
376
|
listProperty: "data";
|
|
377
377
|
rowCase: "snake";
|
|
378
378
|
meta: {
|
|
379
|
+
total: number;
|
|
379
380
|
limit: number;
|
|
380
381
|
audit: {
|
|
381
382
|
budget: number;
|
|
383
|
+
overBudget: boolean;
|
|
382
384
|
matched: number;
|
|
383
385
|
withheld: number;
|
|
384
|
-
overBudget: boolean;
|
|
385
386
|
};
|
|
386
|
-
total: number;
|
|
387
387
|
page: number;
|
|
388
388
|
};
|
|
389
389
|
}, {
|
|
@@ -405,14 +405,14 @@ export declare const IncidentListResponse: z.ZodUnion<[z.ZodObject<{
|
|
|
405
405
|
listProperty: "data";
|
|
406
406
|
rowCase: "snake";
|
|
407
407
|
meta: {
|
|
408
|
+
total: number;
|
|
408
409
|
limit: number;
|
|
409
410
|
audit: {
|
|
410
411
|
budget: number;
|
|
412
|
+
overBudget: boolean;
|
|
411
413
|
matched: number;
|
|
412
414
|
withheld: number;
|
|
413
|
-
overBudget: boolean;
|
|
414
415
|
};
|
|
415
|
-
total: number;
|
|
416
416
|
page: number;
|
|
417
417
|
};
|
|
418
418
|
}>]>;
|
|
@@ -471,15 +471,15 @@ export declare const TraceListResponse: z.ZodUnion<[z.ZodObject<{
|
|
|
471
471
|
total: z.ZodNumber;
|
|
472
472
|
}, "strip", z.ZodTypeAny, {
|
|
473
473
|
data: string;
|
|
474
|
+
total: number;
|
|
474
475
|
listProperty: "traces";
|
|
475
476
|
rowCase: "camel";
|
|
476
|
-
total: number;
|
|
477
477
|
format: "toon";
|
|
478
478
|
}, {
|
|
479
479
|
data: string;
|
|
480
|
+
total: number;
|
|
480
481
|
listProperty: "traces";
|
|
481
482
|
rowCase: "camel";
|
|
482
|
-
total: number;
|
|
483
483
|
format: "toon";
|
|
484
484
|
}>, z.ZodObject<{
|
|
485
485
|
listProperty: z.ZodLiteral<"traces">;
|
|
@@ -535,11 +535,11 @@ export declare const TraceListResponse: z.ZodUnion<[z.ZodObject<{
|
|
|
535
535
|
breakGlass?: boolean | undefined;
|
|
536
536
|
breakGlassRequestId?: string | null | undefined;
|
|
537
537
|
}[];
|
|
538
|
+
total: number;
|
|
538
539
|
limit: number;
|
|
539
540
|
offset: number;
|
|
540
541
|
listProperty: "traces";
|
|
541
542
|
rowCase: "camel";
|
|
542
|
-
total: number;
|
|
543
543
|
}, {
|
|
544
544
|
traces: {
|
|
545
545
|
requestedModel: string;
|
|
@@ -553,11 +553,11 @@ export declare const TraceListResponse: z.ZodUnion<[z.ZodObject<{
|
|
|
553
553
|
breakGlass?: boolean | undefined;
|
|
554
554
|
breakGlassRequestId?: string | null | undefined;
|
|
555
555
|
}[];
|
|
556
|
+
total: number;
|
|
556
557
|
limit: number;
|
|
557
558
|
offset: number;
|
|
558
559
|
listProperty: "traces";
|
|
559
560
|
rowCase: "camel";
|
|
560
|
-
total: number;
|
|
561
561
|
}>]>;
|
|
562
562
|
export type TraceListResponse = z.infer<typeof TraceListResponse>;
|
|
563
563
|
/**
|
|
@@ -631,18 +631,18 @@ export declare const TraceDetailResponse: z.ZodObject<{
|
|
|
631
631
|
stopped: z.ZodOptional<z.ZodString>;
|
|
632
632
|
}, "strip", z.ZodTypeAny, {
|
|
633
633
|
model: string;
|
|
634
|
-
provider: string;
|
|
635
634
|
outcome: string;
|
|
636
635
|
latencyMs: number;
|
|
636
|
+
provider: string;
|
|
637
637
|
status?: number | undefined;
|
|
638
638
|
stopped?: string | undefined;
|
|
639
639
|
backoffMs?: number | undefined;
|
|
640
640
|
serverDelay?: boolean | undefined;
|
|
641
641
|
}, {
|
|
642
642
|
model: string;
|
|
643
|
-
provider: string;
|
|
644
643
|
outcome: string;
|
|
645
644
|
latencyMs: number;
|
|
645
|
+
provider: string;
|
|
646
646
|
status?: number | undefined;
|
|
647
647
|
stopped?: string | undefined;
|
|
648
648
|
backoffMs?: number | undefined;
|
|
@@ -680,24 +680,24 @@ export declare const TraceDetailResponse: z.ZodObject<{
|
|
|
680
680
|
}, "strip", z.ZodTypeAny, {
|
|
681
681
|
confidence: number;
|
|
682
682
|
reason: string;
|
|
683
|
+
latencyMs: number | null;
|
|
684
|
+
toolName: string;
|
|
683
685
|
verdict: string;
|
|
684
686
|
timestamp: string;
|
|
685
|
-
toolName: string;
|
|
686
687
|
logId: string;
|
|
687
688
|
riskCategory: string | null;
|
|
688
689
|
loopDetected: boolean;
|
|
689
|
-
latencyMs: number | null;
|
|
690
690
|
toolArguments?: unknown;
|
|
691
691
|
}, {
|
|
692
692
|
confidence: number;
|
|
693
693
|
reason: string;
|
|
694
|
+
latencyMs: number | null;
|
|
695
|
+
toolName: string;
|
|
694
696
|
verdict: string;
|
|
695
697
|
timestamp: string;
|
|
696
|
-
toolName: string;
|
|
697
698
|
logId: string;
|
|
698
699
|
riskCategory: string | null;
|
|
699
700
|
loopDetected: boolean;
|
|
700
|
-
latencyMs: number | null;
|
|
701
701
|
toolArguments?: unknown;
|
|
702
702
|
}>, "many">>;
|
|
703
703
|
findings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -763,6 +763,18 @@ export declare const TraceDetailResponse: z.ZodObject<{
|
|
|
763
763
|
disposition: string;
|
|
764
764
|
shadowed: boolean;
|
|
765
765
|
}[] | undefined;
|
|
766
|
+
steps?: {
|
|
767
|
+
confidence: number;
|
|
768
|
+
reason: string;
|
|
769
|
+
latencyMs: number | null;
|
|
770
|
+
toolName: string;
|
|
771
|
+
verdict: string;
|
|
772
|
+
timestamp: string;
|
|
773
|
+
logId: string;
|
|
774
|
+
riskCategory: string | null;
|
|
775
|
+
loopDetected: boolean;
|
|
776
|
+
toolArguments?: unknown;
|
|
777
|
+
}[] | undefined;
|
|
766
778
|
breakGlass?: boolean | undefined;
|
|
767
779
|
breakGlassRequestId?: string | null | undefined;
|
|
768
780
|
tokenUtilityClassifiedBy?: string | null | undefined;
|
|
@@ -783,9 +795,9 @@ export declare const TraceDetailResponse: z.ZodObject<{
|
|
|
783
795
|
routingShadowModel?: string | null | undefined;
|
|
784
796
|
upstreamAttempts?: {
|
|
785
797
|
model: string;
|
|
786
|
-
provider: string;
|
|
787
798
|
outcome: string;
|
|
788
799
|
latencyMs: number;
|
|
800
|
+
provider: string;
|
|
789
801
|
status?: number | undefined;
|
|
790
802
|
stopped?: string | undefined;
|
|
791
803
|
backoffMs?: number | undefined;
|
|
@@ -797,18 +809,6 @@ export declare const TraceDetailResponse: z.ZodObject<{
|
|
|
797
809
|
toProvider: string;
|
|
798
810
|
cacheAffinityBroken?: boolean | undefined;
|
|
799
811
|
} | null | undefined;
|
|
800
|
-
steps?: {
|
|
801
|
-
confidence: number;
|
|
802
|
-
reason: string;
|
|
803
|
-
verdict: string;
|
|
804
|
-
timestamp: string;
|
|
805
|
-
toolName: string;
|
|
806
|
-
logId: string;
|
|
807
|
-
riskCategory: string | null;
|
|
808
|
-
loopDetected: boolean;
|
|
809
|
-
latencyMs: number | null;
|
|
810
|
-
toolArguments?: unknown;
|
|
811
|
-
}[] | undefined;
|
|
812
812
|
}, {
|
|
813
813
|
sessionId: string;
|
|
814
814
|
requestId: string;
|
|
@@ -844,6 +844,18 @@ export declare const TraceDetailResponse: z.ZodObject<{
|
|
|
844
844
|
disposition: string;
|
|
845
845
|
shadowed: boolean;
|
|
846
846
|
}[] | undefined;
|
|
847
|
+
steps?: {
|
|
848
|
+
confidence: number;
|
|
849
|
+
reason: string;
|
|
850
|
+
latencyMs: number | null;
|
|
851
|
+
toolName: string;
|
|
852
|
+
verdict: string;
|
|
853
|
+
timestamp: string;
|
|
854
|
+
logId: string;
|
|
855
|
+
riskCategory: string | null;
|
|
856
|
+
loopDetected: boolean;
|
|
857
|
+
toolArguments?: unknown;
|
|
858
|
+
}[] | undefined;
|
|
847
859
|
breakGlass?: boolean | undefined;
|
|
848
860
|
breakGlassRequestId?: string | null | undefined;
|
|
849
861
|
tokenUtilityClassifiedBy?: string | null | undefined;
|
|
@@ -864,9 +876,9 @@ export declare const TraceDetailResponse: z.ZodObject<{
|
|
|
864
876
|
routingShadowModel?: string | null | undefined;
|
|
865
877
|
upstreamAttempts?: {
|
|
866
878
|
model: string;
|
|
867
|
-
provider: string;
|
|
868
879
|
outcome: string;
|
|
869
880
|
latencyMs: number;
|
|
881
|
+
provider: string;
|
|
870
882
|
status?: number | undefined;
|
|
871
883
|
stopped?: string | undefined;
|
|
872
884
|
backoffMs?: number | undefined;
|
|
@@ -878,18 +890,6 @@ export declare const TraceDetailResponse: z.ZodObject<{
|
|
|
878
890
|
toProvider: string;
|
|
879
891
|
cacheAffinityBroken?: boolean | undefined;
|
|
880
892
|
} | null | undefined;
|
|
881
|
-
steps?: {
|
|
882
|
-
confidence: number;
|
|
883
|
-
reason: string;
|
|
884
|
-
verdict: string;
|
|
885
|
-
timestamp: string;
|
|
886
|
-
toolName: string;
|
|
887
|
-
logId: string;
|
|
888
|
-
riskCategory: string | null;
|
|
889
|
-
loopDetected: boolean;
|
|
890
|
-
latencyMs: number | null;
|
|
891
|
-
toolArguments?: unknown;
|
|
892
|
-
}[] | undefined;
|
|
893
893
|
}>;
|
|
894
894
|
export type TraceDetailResponse = z.infer<typeof TraceDetailResponse>;
|
|
895
895
|
/** One detector finding (`detector_findings`), snake_cased by the list route. */
|
|
@@ -915,11 +915,11 @@ export declare const FindingResponse: z.ZodObject<{
|
|
|
915
915
|
}, "strip", z.ZodTypeAny, {
|
|
916
916
|
confidence: number;
|
|
917
917
|
reason: string;
|
|
918
|
+
outcome: "FALSE_POSITIVE" | "TRUE_POSITIVE" | null;
|
|
918
919
|
harness: string | null;
|
|
919
920
|
severity: string;
|
|
920
921
|
session_id: string | null;
|
|
921
922
|
created_at: string;
|
|
922
|
-
outcome: "FALSE_POSITIVE" | "TRUE_POSITIVE" | null;
|
|
923
923
|
trace_id: string;
|
|
924
924
|
disposition: string;
|
|
925
925
|
shadowed: boolean;
|
|
@@ -934,11 +934,11 @@ export declare const FindingResponse: z.ZodObject<{
|
|
|
934
934
|
}, {
|
|
935
935
|
confidence: number;
|
|
936
936
|
reason: string;
|
|
937
|
+
outcome: "FALSE_POSITIVE" | "TRUE_POSITIVE" | null;
|
|
937
938
|
harness: string | null;
|
|
938
939
|
severity: string;
|
|
939
940
|
session_id: string | null;
|
|
940
941
|
created_at: string;
|
|
941
|
-
outcome: "FALSE_POSITIVE" | "TRUE_POSITIVE" | null;
|
|
942
942
|
trace_id: string;
|
|
943
943
|
disposition: string;
|
|
944
944
|
shadowed: boolean;
|
|
@@ -976,11 +976,11 @@ export declare const FindingListResponse: z.ZodObject<{
|
|
|
976
976
|
}, "strip", z.ZodTypeAny, {
|
|
977
977
|
confidence: number;
|
|
978
978
|
reason: string;
|
|
979
|
+
outcome: "FALSE_POSITIVE" | "TRUE_POSITIVE" | null;
|
|
979
980
|
harness: string | null;
|
|
980
981
|
severity: string;
|
|
981
982
|
session_id: string | null;
|
|
982
983
|
created_at: string;
|
|
983
|
-
outcome: "FALSE_POSITIVE" | "TRUE_POSITIVE" | null;
|
|
984
984
|
trace_id: string;
|
|
985
985
|
disposition: string;
|
|
986
986
|
shadowed: boolean;
|
|
@@ -995,11 +995,11 @@ export declare const FindingListResponse: z.ZodObject<{
|
|
|
995
995
|
}, {
|
|
996
996
|
confidence: number;
|
|
997
997
|
reason: string;
|
|
998
|
+
outcome: "FALSE_POSITIVE" | "TRUE_POSITIVE" | null;
|
|
998
999
|
harness: string | null;
|
|
999
1000
|
severity: string;
|
|
1000
1001
|
session_id: string | null;
|
|
1001
1002
|
created_at: string;
|
|
1002
|
-
outcome: "FALSE_POSITIVE" | "TRUE_POSITIVE" | null;
|
|
1003
1003
|
trace_id: string;
|
|
1004
1004
|
disposition: string;
|
|
1005
1005
|
shadowed: boolean;
|
|
@@ -1016,11 +1016,11 @@ export declare const FindingListResponse: z.ZodObject<{
|
|
|
1016
1016
|
findings: {
|
|
1017
1017
|
confidence: number;
|
|
1018
1018
|
reason: string;
|
|
1019
|
+
outcome: "FALSE_POSITIVE" | "TRUE_POSITIVE" | null;
|
|
1019
1020
|
harness: string | null;
|
|
1020
1021
|
severity: string;
|
|
1021
1022
|
session_id: string | null;
|
|
1022
1023
|
created_at: string;
|
|
1023
|
-
outcome: "FALSE_POSITIVE" | "TRUE_POSITIVE" | null;
|
|
1024
1024
|
trace_id: string;
|
|
1025
1025
|
disposition: string;
|
|
1026
1026
|
shadowed: boolean;
|
|
@@ -1037,11 +1037,11 @@ export declare const FindingListResponse: z.ZodObject<{
|
|
|
1037
1037
|
findings: {
|
|
1038
1038
|
confidence: number;
|
|
1039
1039
|
reason: string;
|
|
1040
|
+
outcome: "FALSE_POSITIVE" | "TRUE_POSITIVE" | null;
|
|
1040
1041
|
harness: string | null;
|
|
1041
1042
|
severity: string;
|
|
1042
1043
|
session_id: string | null;
|
|
1043
1044
|
created_at: string;
|
|
1044
|
-
outcome: "FALSE_POSITIVE" | "TRUE_POSITIVE" | null;
|
|
1045
1045
|
trace_id: string;
|
|
1046
1046
|
disposition: string;
|
|
1047
1047
|
shadowed: boolean;
|
|
@@ -1144,51 +1144,51 @@ export declare const ResponseEchoReportResponse: z.ZodObject<{
|
|
|
1144
1144
|
refusal: z.ZodNullable<z.ZodString>;
|
|
1145
1145
|
}, "strip", z.ZodTypeAny, {
|
|
1146
1146
|
findings: number;
|
|
1147
|
+
refusal: string | null;
|
|
1147
1148
|
pattern: "override-instructions" | "reveal-system-prompt" | "role-reassignment" | "guardrail-bypass" | "instruction-boundary-forgery";
|
|
1148
1149
|
adjudicated: number;
|
|
1149
1150
|
falsePositives: number;
|
|
1150
1151
|
falsePositiveRate: number | null;
|
|
1151
|
-
refusal: string | null;
|
|
1152
1152
|
truePositives: number;
|
|
1153
1153
|
}, {
|
|
1154
1154
|
findings: number;
|
|
1155
|
+
refusal: string | null;
|
|
1155
1156
|
pattern: "override-instructions" | "reveal-system-prompt" | "role-reassignment" | "guardrail-bypass" | "instruction-boundary-forgery";
|
|
1156
1157
|
adjudicated: number;
|
|
1157
1158
|
falsePositives: number;
|
|
1158
1159
|
falsePositiveRate: number | null;
|
|
1159
|
-
refusal: string | null;
|
|
1160
1160
|
truePositives: number;
|
|
1161
1161
|
}>, "many">;
|
|
1162
1162
|
}, "strip", z.ZodTypeAny, {
|
|
1163
|
+
refusal: string | null;
|
|
1163
1164
|
window: {
|
|
1164
1165
|
since: string;
|
|
1165
1166
|
until: string;
|
|
1166
1167
|
};
|
|
1167
1168
|
tracesIngested: number;
|
|
1168
|
-
refusal: string | null;
|
|
1169
1169
|
patterns: {
|
|
1170
1170
|
findings: number;
|
|
1171
|
+
refusal: string | null;
|
|
1171
1172
|
pattern: "override-instructions" | "reveal-system-prompt" | "role-reassignment" | "guardrail-bypass" | "instruction-boundary-forgery";
|
|
1172
1173
|
adjudicated: number;
|
|
1173
1174
|
falsePositives: number;
|
|
1174
1175
|
falsePositiveRate: number | null;
|
|
1175
|
-
refusal: string | null;
|
|
1176
1176
|
truePositives: number;
|
|
1177
1177
|
}[];
|
|
1178
1178
|
}, {
|
|
1179
|
+
refusal: string | null;
|
|
1179
1180
|
window: {
|
|
1180
1181
|
since: string;
|
|
1181
1182
|
until: string;
|
|
1182
1183
|
};
|
|
1183
1184
|
tracesIngested: number;
|
|
1184
|
-
refusal: string | null;
|
|
1185
1185
|
patterns: {
|
|
1186
1186
|
findings: number;
|
|
1187
|
+
refusal: string | null;
|
|
1187
1188
|
pattern: "override-instructions" | "reveal-system-prompt" | "role-reassignment" | "guardrail-bypass" | "instruction-boundary-forgery";
|
|
1188
1189
|
adjudicated: number;
|
|
1189
1190
|
falsePositives: number;
|
|
1190
1191
|
falsePositiveRate: number | null;
|
|
1191
|
-
refusal: string | null;
|
|
1192
1192
|
truePositives: number;
|
|
1193
1193
|
}[];
|
|
1194
1194
|
}>;
|
|
@@ -1855,16 +1855,16 @@ export declare const InventoryHarnessResponse: z.ZodObject<{
|
|
|
1855
1855
|
}, "strip", z.ZodTypeAny, {
|
|
1856
1856
|
status: "governed" | "ungoverned" | "gate_stale" | "unverified";
|
|
1857
1857
|
reason: "guards_disabled" | "no_gate_mechanism" | "not_connected" | "gate_missing" | "gate_silent" | "awaiting_first_event" | "gate_not_observable" | "disconnected" | null;
|
|
1858
|
+
version: string | null;
|
|
1858
1859
|
harness: string;
|
|
1859
1860
|
deviceId: string;
|
|
1860
|
-
version: string | null;
|
|
1861
1861
|
hostname: string;
|
|
1862
1862
|
firstSeenAt: string;
|
|
1863
1863
|
lastSeenAt: string;
|
|
1864
1864
|
itemId: string;
|
|
1865
1865
|
deviceStale: boolean;
|
|
1866
1866
|
configured: boolean;
|
|
1867
|
-
gateKind: "
|
|
1867
|
+
gateKind: "none" | "sdk" | "hook" | "delegated" | "bridge";
|
|
1868
1868
|
gateInstalled: boolean | null;
|
|
1869
1869
|
gateFile: string | null;
|
|
1870
1870
|
lastHookEventAt: string | null;
|
|
@@ -1872,16 +1872,16 @@ export declare const InventoryHarnessResponse: z.ZodObject<{
|
|
|
1872
1872
|
}, {
|
|
1873
1873
|
status: "governed" | "ungoverned" | "gate_stale" | "unverified";
|
|
1874
1874
|
reason: "guards_disabled" | "no_gate_mechanism" | "not_connected" | "gate_missing" | "gate_silent" | "awaiting_first_event" | "gate_not_observable" | "disconnected" | null;
|
|
1875
|
+
version: string | null;
|
|
1875
1876
|
harness: string;
|
|
1876
1877
|
deviceId: string;
|
|
1877
|
-
version: string | null;
|
|
1878
1878
|
hostname: string;
|
|
1879
1879
|
firstSeenAt: string;
|
|
1880
1880
|
lastSeenAt: string;
|
|
1881
1881
|
itemId: string;
|
|
1882
1882
|
deviceStale: boolean;
|
|
1883
1883
|
configured: boolean;
|
|
1884
|
-
gateKind: "
|
|
1884
|
+
gateKind: "none" | "sdk" | "hook" | "delegated" | "bridge";
|
|
1885
1885
|
gateInstalled: boolean | null;
|
|
1886
1886
|
gateFile: string | null;
|
|
1887
1887
|
lastHookEventAt: string | null;
|
|
@@ -1907,8 +1907,8 @@ export declare const InventoryMcpServerResponse: z.ZodObject<{
|
|
|
1907
1907
|
status: "governed" | "ungoverned";
|
|
1908
1908
|
reason: string | null;
|
|
1909
1909
|
endpoint: string | null;
|
|
1910
|
-
harness: string;
|
|
1911
1910
|
server: string;
|
|
1911
|
+
harness: string;
|
|
1912
1912
|
deviceId: string;
|
|
1913
1913
|
hostname: string;
|
|
1914
1914
|
firstSeenAt: string;
|
|
@@ -1920,8 +1920,8 @@ export declare const InventoryMcpServerResponse: z.ZodObject<{
|
|
|
1920
1920
|
status: "governed" | "ungoverned";
|
|
1921
1921
|
reason: string | null;
|
|
1922
1922
|
endpoint: string | null;
|
|
1923
|
-
harness: string;
|
|
1924
1923
|
server: string;
|
|
1924
|
+
harness: string;
|
|
1925
1925
|
deviceId: string;
|
|
1926
1926
|
hostname: string;
|
|
1927
1927
|
firstSeenAt: string;
|
|
@@ -2167,16 +2167,16 @@ export declare const InventoryHarnessListResponse: z.ZodObject<{
|
|
|
2167
2167
|
}, "strip", z.ZodTypeAny, {
|
|
2168
2168
|
status: "governed" | "ungoverned" | "gate_stale" | "unverified";
|
|
2169
2169
|
reason: "guards_disabled" | "no_gate_mechanism" | "not_connected" | "gate_missing" | "gate_silent" | "awaiting_first_event" | "gate_not_observable" | "disconnected" | null;
|
|
2170
|
+
version: string | null;
|
|
2170
2171
|
harness: string;
|
|
2171
2172
|
deviceId: string;
|
|
2172
|
-
version: string | null;
|
|
2173
2173
|
hostname: string;
|
|
2174
2174
|
firstSeenAt: string;
|
|
2175
2175
|
lastSeenAt: string;
|
|
2176
2176
|
itemId: string;
|
|
2177
2177
|
deviceStale: boolean;
|
|
2178
2178
|
configured: boolean;
|
|
2179
|
-
gateKind: "
|
|
2179
|
+
gateKind: "none" | "sdk" | "hook" | "delegated" | "bridge";
|
|
2180
2180
|
gateInstalled: boolean | null;
|
|
2181
2181
|
gateFile: string | null;
|
|
2182
2182
|
lastHookEventAt: string | null;
|
|
@@ -2184,16 +2184,16 @@ export declare const InventoryHarnessListResponse: z.ZodObject<{
|
|
|
2184
2184
|
}, {
|
|
2185
2185
|
status: "governed" | "ungoverned" | "gate_stale" | "unverified";
|
|
2186
2186
|
reason: "guards_disabled" | "no_gate_mechanism" | "not_connected" | "gate_missing" | "gate_silent" | "awaiting_first_event" | "gate_not_observable" | "disconnected" | null;
|
|
2187
|
+
version: string | null;
|
|
2187
2188
|
harness: string;
|
|
2188
2189
|
deviceId: string;
|
|
2189
|
-
version: string | null;
|
|
2190
2190
|
hostname: string;
|
|
2191
2191
|
firstSeenAt: string;
|
|
2192
2192
|
lastSeenAt: string;
|
|
2193
2193
|
itemId: string;
|
|
2194
2194
|
deviceStale: boolean;
|
|
2195
2195
|
configured: boolean;
|
|
2196
|
-
gateKind: "
|
|
2196
|
+
gateKind: "none" | "sdk" | "hook" | "delegated" | "bridge";
|
|
2197
2197
|
gateInstalled: boolean | null;
|
|
2198
2198
|
gateFile: string | null;
|
|
2199
2199
|
lastHookEventAt: string | null;
|
|
@@ -2203,16 +2203,16 @@ export declare const InventoryHarnessListResponse: z.ZodObject<{
|
|
|
2203
2203
|
data: {
|
|
2204
2204
|
status: "governed" | "ungoverned" | "gate_stale" | "unverified";
|
|
2205
2205
|
reason: "guards_disabled" | "no_gate_mechanism" | "not_connected" | "gate_missing" | "gate_silent" | "awaiting_first_event" | "gate_not_observable" | "disconnected" | null;
|
|
2206
|
+
version: string | null;
|
|
2206
2207
|
harness: string;
|
|
2207
2208
|
deviceId: string;
|
|
2208
|
-
version: string | null;
|
|
2209
2209
|
hostname: string;
|
|
2210
2210
|
firstSeenAt: string;
|
|
2211
2211
|
lastSeenAt: string;
|
|
2212
2212
|
itemId: string;
|
|
2213
2213
|
deviceStale: boolean;
|
|
2214
2214
|
configured: boolean;
|
|
2215
|
-
gateKind: "
|
|
2215
|
+
gateKind: "none" | "sdk" | "hook" | "delegated" | "bridge";
|
|
2216
2216
|
gateInstalled: boolean | null;
|
|
2217
2217
|
gateFile: string | null;
|
|
2218
2218
|
lastHookEventAt: string | null;
|
|
@@ -2224,16 +2224,16 @@ export declare const InventoryHarnessListResponse: z.ZodObject<{
|
|
|
2224
2224
|
data: {
|
|
2225
2225
|
status: "governed" | "ungoverned" | "gate_stale" | "unverified";
|
|
2226
2226
|
reason: "guards_disabled" | "no_gate_mechanism" | "not_connected" | "gate_missing" | "gate_silent" | "awaiting_first_event" | "gate_not_observable" | "disconnected" | null;
|
|
2227
|
+
version: string | null;
|
|
2227
2228
|
harness: string;
|
|
2228
2229
|
deviceId: string;
|
|
2229
|
-
version: string | null;
|
|
2230
2230
|
hostname: string;
|
|
2231
2231
|
firstSeenAt: string;
|
|
2232
2232
|
lastSeenAt: string;
|
|
2233
2233
|
itemId: string;
|
|
2234
2234
|
deviceStale: boolean;
|
|
2235
2235
|
configured: boolean;
|
|
2236
|
-
gateKind: "
|
|
2236
|
+
gateKind: "none" | "sdk" | "hook" | "delegated" | "bridge";
|
|
2237
2237
|
gateInstalled: boolean | null;
|
|
2238
2238
|
gateFile: string | null;
|
|
2239
2239
|
lastHookEventAt: string | null;
|
|
@@ -2266,8 +2266,8 @@ export declare const InventoryMcpServerListResponse: z.ZodObject<{
|
|
|
2266
2266
|
status: "governed" | "ungoverned";
|
|
2267
2267
|
reason: string | null;
|
|
2268
2268
|
endpoint: string | null;
|
|
2269
|
-
harness: string;
|
|
2270
2269
|
server: string;
|
|
2270
|
+
harness: string;
|
|
2271
2271
|
deviceId: string;
|
|
2272
2272
|
hostname: string;
|
|
2273
2273
|
firstSeenAt: string;
|
|
@@ -2279,8 +2279,8 @@ export declare const InventoryMcpServerListResponse: z.ZodObject<{
|
|
|
2279
2279
|
status: "governed" | "ungoverned";
|
|
2280
2280
|
reason: string | null;
|
|
2281
2281
|
endpoint: string | null;
|
|
2282
|
-
harness: string;
|
|
2283
2282
|
server: string;
|
|
2283
|
+
harness: string;
|
|
2284
2284
|
deviceId: string;
|
|
2285
2285
|
hostname: string;
|
|
2286
2286
|
firstSeenAt: string;
|
|
@@ -2294,8 +2294,8 @@ export declare const InventoryMcpServerListResponse: z.ZodObject<{
|
|
|
2294
2294
|
status: "governed" | "ungoverned";
|
|
2295
2295
|
reason: string | null;
|
|
2296
2296
|
endpoint: string | null;
|
|
2297
|
-
harness: string;
|
|
2298
2297
|
server: string;
|
|
2298
|
+
harness: string;
|
|
2299
2299
|
deviceId: string;
|
|
2300
2300
|
hostname: string;
|
|
2301
2301
|
firstSeenAt: string;
|
|
@@ -2311,8 +2311,8 @@ export declare const InventoryMcpServerListResponse: z.ZodObject<{
|
|
|
2311
2311
|
status: "governed" | "ungoverned";
|
|
2312
2312
|
reason: string | null;
|
|
2313
2313
|
endpoint: string | null;
|
|
2314
|
-
harness: string;
|
|
2315
2314
|
server: string;
|
|
2315
|
+
harness: string;
|
|
2316
2316
|
deviceId: string;
|
|
2317
2317
|
hostname: string;
|
|
2318
2318
|
firstSeenAt: string;
|
|
@@ -2847,6 +2847,7 @@ export declare const PullRequestUsageListResponse: z.ZodObject<{
|
|
|
2847
2847
|
number: number;
|
|
2848
2848
|
url: string;
|
|
2849
2849
|
title: string;
|
|
2850
|
+
state: "open" | "closed" | "merged";
|
|
2850
2851
|
totalCostUsd: number;
|
|
2851
2852
|
totalRawCostUsd: number;
|
|
2852
2853
|
totalInputTokens: number;
|
|
@@ -2857,7 +2858,6 @@ export declare const PullRequestUsageListResponse: z.ZodObject<{
|
|
|
2857
2858
|
lastCallAt: string;
|
|
2858
2859
|
firstCallAt: string;
|
|
2859
2860
|
author: string | null;
|
|
2860
|
-
state: "open" | "closed" | "merged";
|
|
2861
2861
|
headBranch: string;
|
|
2862
2862
|
baseBranch: string | null;
|
|
2863
2863
|
openedAt: string;
|
|
@@ -2867,6 +2867,7 @@ export declare const PullRequestUsageListResponse: z.ZodObject<{
|
|
|
2867
2867
|
number: number;
|
|
2868
2868
|
url: string;
|
|
2869
2869
|
title: string;
|
|
2870
|
+
state: "open" | "closed" | "merged";
|
|
2870
2871
|
totalCostUsd: number;
|
|
2871
2872
|
totalRawCostUsd: number;
|
|
2872
2873
|
totalInputTokens: number;
|
|
@@ -2877,7 +2878,6 @@ export declare const PullRequestUsageListResponse: z.ZodObject<{
|
|
|
2877
2878
|
lastCallAt: string;
|
|
2878
2879
|
firstCallAt: string;
|
|
2879
2880
|
author: string | null;
|
|
2880
|
-
state: "open" | "closed" | "merged";
|
|
2881
2881
|
headBranch: string;
|
|
2882
2882
|
baseBranch: string | null;
|
|
2883
2883
|
openedAt: string;
|
|
@@ -2900,6 +2900,7 @@ export declare const PullRequestUsageListResponse: z.ZodObject<{
|
|
|
2900
2900
|
number: number;
|
|
2901
2901
|
url: string;
|
|
2902
2902
|
title: string;
|
|
2903
|
+
state: "open" | "closed" | "merged";
|
|
2903
2904
|
totalCostUsd: number;
|
|
2904
2905
|
totalRawCostUsd: number;
|
|
2905
2906
|
totalInputTokens: number;
|
|
@@ -2910,7 +2911,6 @@ export declare const PullRequestUsageListResponse: z.ZodObject<{
|
|
|
2910
2911
|
lastCallAt: string;
|
|
2911
2912
|
firstCallAt: string;
|
|
2912
2913
|
author: string | null;
|
|
2913
|
-
state: "open" | "closed" | "merged";
|
|
2914
2914
|
headBranch: string;
|
|
2915
2915
|
baseBranch: string | null;
|
|
2916
2916
|
openedAt: string;
|
|
@@ -2933,6 +2933,7 @@ export declare const PullRequestUsageListResponse: z.ZodObject<{
|
|
|
2933
2933
|
number: number;
|
|
2934
2934
|
url: string;
|
|
2935
2935
|
title: string;
|
|
2936
|
+
state: "open" | "closed" | "merged";
|
|
2936
2937
|
totalCostUsd: number;
|
|
2937
2938
|
totalRawCostUsd: number;
|
|
2938
2939
|
totalInputTokens: number;
|
|
@@ -2943,7 +2944,6 @@ export declare const PullRequestUsageListResponse: z.ZodObject<{
|
|
|
2943
2944
|
lastCallAt: string;
|
|
2944
2945
|
firstCallAt: string;
|
|
2945
2946
|
author: string | null;
|
|
2946
|
-
state: "open" | "closed" | "merged";
|
|
2947
2947
|
headBranch: string;
|
|
2948
2948
|
baseBranch: string | null;
|
|
2949
2949
|
openedAt: string;
|
|
@@ -3100,6 +3100,186 @@ export declare const LoopRunEnvelopeResponse: z.ZodObject<{
|
|
|
3100
3100
|
};
|
|
3101
3101
|
}>;
|
|
3102
3102
|
export type LoopRunEnvelopeResponse = z.infer<typeof LoopRunEnvelopeResponse>;
|
|
3103
|
+
/** `GET /api/v1/loops/:loopRunId`: the run, and whether completing it needs a passing verify. */
|
|
3104
|
+
export declare const LoopRunDetailResponse: z.ZodObject<{
|
|
3105
|
+
ok: z.ZodLiteral<true>;
|
|
3106
|
+
loop: z.ZodObject<{
|
|
3107
|
+
loopRunId: z.ZodString;
|
|
3108
|
+
workspaceId: z.ZodString;
|
|
3109
|
+
name: z.ZodString;
|
|
3110
|
+
status: z.ZodEnum<["ACTIVE", "PENDING_REVIEW", "COMPLETED", "FAILED", "KILLED"]>;
|
|
3111
|
+
startedBy: z.ZodNullable<z.ZodString>;
|
|
3112
|
+
reviewReason: z.ZodNullable<z.ZodString>;
|
|
3113
|
+
reviewedBy: z.ZodNullable<z.ZodString>;
|
|
3114
|
+
reviewedAt: z.ZodNullable<z.ZodString>;
|
|
3115
|
+
reviewNote: z.ZodNullable<z.ZodString>;
|
|
3116
|
+
totalTokenCostUsd: z.ZodString;
|
|
3117
|
+
budgetLimitUsd: z.ZodString;
|
|
3118
|
+
createdAt: z.ZodString;
|
|
3119
|
+
updatedAt: z.ZodString;
|
|
3120
|
+
}, "strip", z.ZodTypeAny, {
|
|
3121
|
+
workspaceId: string;
|
|
3122
|
+
status: "COMPLETED" | "FAILED" | "PENDING_REVIEW" | "ACTIVE" | "KILLED";
|
|
3123
|
+
name: string;
|
|
3124
|
+
createdAt: string;
|
|
3125
|
+
updatedAt: string;
|
|
3126
|
+
loopRunId: string;
|
|
3127
|
+
startedBy: string | null;
|
|
3128
|
+
reviewReason: string | null;
|
|
3129
|
+
reviewedBy: string | null;
|
|
3130
|
+
reviewedAt: string | null;
|
|
3131
|
+
reviewNote: string | null;
|
|
3132
|
+
totalTokenCostUsd: string;
|
|
3133
|
+
budgetLimitUsd: string;
|
|
3134
|
+
}, {
|
|
3135
|
+
workspaceId: string;
|
|
3136
|
+
status: "COMPLETED" | "FAILED" | "PENDING_REVIEW" | "ACTIVE" | "KILLED";
|
|
3137
|
+
name: string;
|
|
3138
|
+
createdAt: string;
|
|
3139
|
+
updatedAt: string;
|
|
3140
|
+
loopRunId: string;
|
|
3141
|
+
startedBy: string | null;
|
|
3142
|
+
reviewReason: string | null;
|
|
3143
|
+
reviewedBy: string | null;
|
|
3144
|
+
reviewedAt: string | null;
|
|
3145
|
+
reviewNote: string | null;
|
|
3146
|
+
totalTokenCostUsd: string;
|
|
3147
|
+
budgetLimitUsd: string;
|
|
3148
|
+
}>;
|
|
3149
|
+
} & {
|
|
3150
|
+
requiresVerifiedCompletion: z.ZodNullable<z.ZodBoolean>;
|
|
3151
|
+
}, "strip", z.ZodTypeAny, {
|
|
3152
|
+
ok: true;
|
|
3153
|
+
loop: {
|
|
3154
|
+
workspaceId: string;
|
|
3155
|
+
status: "COMPLETED" | "FAILED" | "PENDING_REVIEW" | "ACTIVE" | "KILLED";
|
|
3156
|
+
name: string;
|
|
3157
|
+
createdAt: string;
|
|
3158
|
+
updatedAt: string;
|
|
3159
|
+
loopRunId: string;
|
|
3160
|
+
startedBy: string | null;
|
|
3161
|
+
reviewReason: string | null;
|
|
3162
|
+
reviewedBy: string | null;
|
|
3163
|
+
reviewedAt: string | null;
|
|
3164
|
+
reviewNote: string | null;
|
|
3165
|
+
totalTokenCostUsd: string;
|
|
3166
|
+
budgetLimitUsd: string;
|
|
3167
|
+
};
|
|
3168
|
+
requiresVerifiedCompletion: boolean | null;
|
|
3169
|
+
}, {
|
|
3170
|
+
ok: true;
|
|
3171
|
+
loop: {
|
|
3172
|
+
workspaceId: string;
|
|
3173
|
+
status: "COMPLETED" | "FAILED" | "PENDING_REVIEW" | "ACTIVE" | "KILLED";
|
|
3174
|
+
name: string;
|
|
3175
|
+
createdAt: string;
|
|
3176
|
+
updatedAt: string;
|
|
3177
|
+
loopRunId: string;
|
|
3178
|
+
startedBy: string | null;
|
|
3179
|
+
reviewReason: string | null;
|
|
3180
|
+
reviewedBy: string | null;
|
|
3181
|
+
reviewedAt: string | null;
|
|
3182
|
+
reviewNote: string | null;
|
|
3183
|
+
totalTokenCostUsd: string;
|
|
3184
|
+
budgetLimitUsd: string;
|
|
3185
|
+
};
|
|
3186
|
+
requiresVerifiedCompletion: boolean | null;
|
|
3187
|
+
}>;
|
|
3188
|
+
export type LoopRunDetailResponse = z.infer<typeof LoopRunDetailResponse>;
|
|
3189
|
+
/** `POST /api/v1/loops/:loopRunId/verify`. `ok`, `score`, `findings` and `unverified` keep their meaning. */
|
|
3190
|
+
export declare const LoopVerifyResponse: z.ZodObject<{
|
|
3191
|
+
ok: z.ZodBoolean;
|
|
3192
|
+
score: z.ZodNumber;
|
|
3193
|
+
findings: z.ZodArray<z.ZodString, "many">;
|
|
3194
|
+
unverified: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3195
|
+
verificationId: z.ZodString;
|
|
3196
|
+
stage: z.ZodEnum<["deterministic", "judge"]>;
|
|
3197
|
+
checks: z.ZodArray<z.ZodObject<{
|
|
3198
|
+
id: z.ZodEnum<["scope_paths", "plan_steps", "judge"]>;
|
|
3199
|
+
status: z.ZodEnum<["pass", "fail", "not_applicable", "unavailable"]>;
|
|
3200
|
+
findings: z.ZodArray<z.ZodString, "many">;
|
|
3201
|
+
scope: z.ZodOptional<z.ZodObject<{
|
|
3202
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3203
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3204
|
+
step: z.ZodOptional<z.ZodString>;
|
|
3205
|
+
detector: z.ZodOptional<z.ZodString>;
|
|
3206
|
+
rule: z.ZodOptional<z.ZodString>;
|
|
3207
|
+
}, "strip", z.ZodTypeAny, {
|
|
3208
|
+
rule?: string | undefined;
|
|
3209
|
+
tools?: string[] | undefined;
|
|
3210
|
+
paths?: string[] | undefined;
|
|
3211
|
+
step?: string | undefined;
|
|
3212
|
+
detector?: string | undefined;
|
|
3213
|
+
}, {
|
|
3214
|
+
rule?: string | undefined;
|
|
3215
|
+
tools?: string[] | undefined;
|
|
3216
|
+
paths?: string[] | undefined;
|
|
3217
|
+
step?: string | undefined;
|
|
3218
|
+
detector?: string | undefined;
|
|
3219
|
+
}>>;
|
|
3220
|
+
}, "strip", z.ZodTypeAny, {
|
|
3221
|
+
status: "unavailable" | "pass" | "fail" | "not_applicable";
|
|
3222
|
+
findings: string[];
|
|
3223
|
+
id: "scope_paths" | "plan_steps" | "judge";
|
|
3224
|
+
scope?: {
|
|
3225
|
+
rule?: string | undefined;
|
|
3226
|
+
tools?: string[] | undefined;
|
|
3227
|
+
paths?: string[] | undefined;
|
|
3228
|
+
step?: string | undefined;
|
|
3229
|
+
detector?: string | undefined;
|
|
3230
|
+
} | undefined;
|
|
3231
|
+
}, {
|
|
3232
|
+
status: "unavailable" | "pass" | "fail" | "not_applicable";
|
|
3233
|
+
findings: string[];
|
|
3234
|
+
id: "scope_paths" | "plan_steps" | "judge";
|
|
3235
|
+
scope?: {
|
|
3236
|
+
rule?: string | undefined;
|
|
3237
|
+
tools?: string[] | undefined;
|
|
3238
|
+
paths?: string[] | undefined;
|
|
3239
|
+
step?: string | undefined;
|
|
3240
|
+
detector?: string | undefined;
|
|
3241
|
+
} | undefined;
|
|
3242
|
+
}>, "many">;
|
|
3243
|
+
}, "strip", z.ZodTypeAny, {
|
|
3244
|
+
findings: string[];
|
|
3245
|
+
ok: boolean;
|
|
3246
|
+
verificationId: string;
|
|
3247
|
+
score: number;
|
|
3248
|
+
stage: "deterministic" | "judge";
|
|
3249
|
+
checks: {
|
|
3250
|
+
status: "unavailable" | "pass" | "fail" | "not_applicable";
|
|
3251
|
+
findings: string[];
|
|
3252
|
+
id: "scope_paths" | "plan_steps" | "judge";
|
|
3253
|
+
scope?: {
|
|
3254
|
+
rule?: string | undefined;
|
|
3255
|
+
tools?: string[] | undefined;
|
|
3256
|
+
paths?: string[] | undefined;
|
|
3257
|
+
step?: string | undefined;
|
|
3258
|
+
detector?: string | undefined;
|
|
3259
|
+
} | undefined;
|
|
3260
|
+
}[];
|
|
3261
|
+
unverified?: true | undefined;
|
|
3262
|
+
}, {
|
|
3263
|
+
findings: string[];
|
|
3264
|
+
ok: boolean;
|
|
3265
|
+
verificationId: string;
|
|
3266
|
+
score: number;
|
|
3267
|
+
stage: "deterministic" | "judge";
|
|
3268
|
+
checks: {
|
|
3269
|
+
status: "unavailable" | "pass" | "fail" | "not_applicable";
|
|
3270
|
+
findings: string[];
|
|
3271
|
+
id: "scope_paths" | "plan_steps" | "judge";
|
|
3272
|
+
scope?: {
|
|
3273
|
+
rule?: string | undefined;
|
|
3274
|
+
tools?: string[] | undefined;
|
|
3275
|
+
paths?: string[] | undefined;
|
|
3276
|
+
step?: string | undefined;
|
|
3277
|
+
detector?: string | undefined;
|
|
3278
|
+
} | undefined;
|
|
3279
|
+
}[];
|
|
3280
|
+
unverified?: true | undefined;
|
|
3281
|
+
}>;
|
|
3282
|
+
export type LoopVerifyResponse = z.infer<typeof LoopVerifyResponse>;
|
|
3103
3283
|
/** `GET /api/v1/loops`, newest first. */
|
|
3104
3284
|
export declare const LoopRunListResponse: z.ZodObject<{
|
|
3105
3285
|
listProperty: z.ZodLiteral<"loops">;
|