@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.
- package/README.md +1 -1
- package/dist/api-contracts.d.ts +85 -116
- package/dist/api-contracts.d.ts.map +1 -1
- package/dist/api-contracts.js +5 -5
- package/dist/api-contracts.js.map +1 -1
- package/dist/apiKeyScopes.d.ts +1 -1
- package/dist/apiKeyScopes.js +1 -1
- package/dist/attenuation.d.ts +4 -22
- package/dist/attenuation.d.ts.map +1 -1
- package/dist/auth.d.ts +44 -226
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +3 -3
- package/dist/auth.js.map +1 -1
- package/dist/chaos.d.ts +168 -1778
- package/dist/chaos.d.ts.map +1 -1
- package/dist/enums.d.ts +1 -1
- package/dist/enums.js +1 -1
- package/dist/governanceCoverage.d.ts +4 -4
- package/dist/governanceCoverage.js +3 -3
- package/dist/guardrailIr.d.ts +98 -421
- package/dist/guardrailIr.d.ts.map +1 -1
- package/dist/guardrailIr.js +2 -2
- package/dist/identity.d.ts +16 -29
- package/dist/identity.d.ts.map +1 -1
- package/dist/mcpBudgets.d.ts +14 -82
- package/dist/mcpBudgets.d.ts.map +1 -1
- package/dist/mcpToolRisk.d.ts +1 -1
- package/dist/mcpToolRisk.js +1 -1
- package/dist/modelCatalog.generated.d.ts +404 -66
- package/dist/modelCatalog.generated.d.ts.map +1 -1
- package/dist/modelCatalog.generated.js +62 -36
- package/dist/modelCatalog.generated.js.map +1 -1
- package/dist/piiDetectors.d.ts +11 -1
- package/dist/piiDetectors.d.ts.map +1 -1
- package/dist/piiDetectors.js +1 -1
- package/dist/piiDetectors.js.map +1 -1
- package/dist/policyGuardrails.d.ts +6 -30
- package/dist/policyGuardrails.d.ts.map +1 -1
- package/dist/policyGuardrails.js +1 -1
- package/dist/policyGuardrails.js.map +1 -1
- package/dist/providerVerification.d.ts +2 -2
- package/dist/providerVerification.js +2 -2
- package/dist/providers.d.ts +2 -2
- package/dist/providers.js +2 -2
- package/dist/responses/common.d.ts +8 -14
- package/dist/responses/common.d.ts.map +1 -1
- package/dist/responses/common.js +1 -1
- package/dist/responses/decide.d.ts +115 -1514
- package/dist/responses/decide.d.ts.map +1 -1
- package/dist/responses/decide.js +9 -9
- package/dist/responses/decide.js.map +1 -1
- package/dist/responses/gateways.d.ts +883 -5211
- package/dist/responses/gateways.d.ts.map +1 -1
- package/dist/responses/gateways.js +8 -8
- package/dist/responses/gateways.js.map +1 -1
- package/dist/responses/guardrails.d.ts +600 -5829
- package/dist/responses/guardrails.d.ts.map +1 -1
- package/dist/responses/guardrails.js +3 -3
- package/dist/responses/guardrails.js.map +1 -1
- package/dist/responses/identity.d.ts +217 -1296
- package/dist/responses/identity.d.ts.map +1 -1
- package/dist/responses/identity.js +1 -1
- package/dist/responses/identity.js.map +1 -1
- package/dist/responses/integrations.d.ts +717 -3709
- package/dist/responses/integrations.d.ts.map +1 -1
- package/dist/responses/integrations.js +6 -6
- package/dist/responses/integrations.js.map +1 -1
- package/dist/responses/observability.d.ts +386 -2597
- package/dist/responses/observability.d.ts.map +1 -1
- package/dist/responses/observability.js +5 -5
- package/dist/responses/observability.js.map +1 -1
- package/dist/responses/orgSops.d.ts +15 -79
- package/dist/responses/orgSops.d.ts.map +1 -1
- package/dist/responses/rules.d.ts +449 -2386
- package/dist/responses/rules.d.ts.map +1 -1
- package/dist/responses/rules.js +8 -8
- package/dist/responses/rules.js.map +1 -1
- package/dist/spendBudgets.d.ts +20 -38
- package/dist/spendBudgets.d.ts.map +1 -1
- package/dist/ssoGroupClearance.d.ts +4 -12
- package/dist/ssoGroupClearance.d.ts.map +1 -1
- package/dist/sync.d.ts +25 -124
- package/dist/sync.d.ts.map +1 -1
- package/dist/toon.d.ts +1 -1
- package/dist/toon.js +1 -1
- package/dist/upstreamRetry.d.ts +32 -61
- package/dist/upstreamRetry.d.ts.map +1 -1
- package/dist/workspaceSettings.d.ts +5 -5
- package/package.json +4 -4
|
@@ -10,41 +10,35 @@ export declare const IncidentResponse: z.ZodObject<{
|
|
|
10
10
|
workspace_id: z.ZodString;
|
|
11
11
|
trace_id: z.ZodNullable<z.ZodString>;
|
|
12
12
|
session_id: z.ZodNullable<z.ZodString>;
|
|
13
|
-
severity: z.ZodEnum<
|
|
14
|
-
|
|
13
|
+
severity: z.ZodEnum<{
|
|
14
|
+
LOW: "LOW";
|
|
15
|
+
MEDIUM: "MEDIUM";
|
|
16
|
+
HIGH: "HIGH";
|
|
17
|
+
CRITICAL: "CRITICAL";
|
|
18
|
+
}>;
|
|
19
|
+
anomaly_type: z.ZodEnum<{
|
|
20
|
+
WASM_RULE_REFUSED: "WASM_RULE_REFUSED";
|
|
21
|
+
SYSTEM_ANOMALY: "SYSTEM_ANOMALY";
|
|
22
|
+
TOOL_ABUSE: "TOOL_ABUSE";
|
|
23
|
+
TOKEN_WASTE: "TOKEN_WASTE";
|
|
24
|
+
LOOP_DETECTED: "LOOP_DETECTED";
|
|
25
|
+
UNAUTHORIZED_TOOL: "UNAUTHORIZED_TOOL";
|
|
26
|
+
DATA_EXFILTRATION: "DATA_EXFILTRATION";
|
|
27
|
+
PROMPT_INJECTION: "PROMPT_INJECTION";
|
|
28
|
+
HALLUCINATION: "HALLUCINATION";
|
|
29
|
+
SCOPE_VIOLATION: "SCOPE_VIOLATION";
|
|
30
|
+
BUDGET_BREACH: "BUDGET_BREACH";
|
|
31
|
+
SPAWN_BUDGET_BREACH: "SPAWN_BUDGET_BREACH";
|
|
32
|
+
WORKFLOW_BUDGET_BREACH: "WORKFLOW_BUDGET_BREACH";
|
|
33
|
+
WORKFLOW_GOAL_DRIFT: "WORKFLOW_GOAL_DRIFT";
|
|
34
|
+
}>;
|
|
15
35
|
description: z.ZodString;
|
|
16
36
|
resolution_status: z.ZodNullable<z.ZodString>;
|
|
17
37
|
resolved_by: z.ZodNullable<z.ZodString>;
|
|
18
38
|
resolved_at: z.ZodNullable<z.ZodString>;
|
|
19
39
|
escalation_chain: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
20
40
|
created_at: z.ZodString;
|
|
21
|
-
},
|
|
22
|
-
description: string;
|
|
23
|
-
severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
|
|
24
|
-
workspace_id: string;
|
|
25
|
-
session_id: string | null;
|
|
26
|
-
created_at: string;
|
|
27
|
-
trace_id: string | null;
|
|
28
|
-
incident_id: string;
|
|
29
|
-
anomaly_type: import("../enums.js").IncidentType;
|
|
30
|
-
resolution_status: string | null;
|
|
31
|
-
resolved_by: string | null;
|
|
32
|
-
resolved_at: string | null;
|
|
33
|
-
escalation_chain: Record<string, unknown> | null;
|
|
34
|
-
}, {
|
|
35
|
-
description: string;
|
|
36
|
-
severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
|
|
37
|
-
workspace_id: string;
|
|
38
|
-
session_id: string | null;
|
|
39
|
-
created_at: string;
|
|
40
|
-
trace_id: string | null;
|
|
41
|
-
incident_id: string;
|
|
42
|
-
anomaly_type: import("../enums.js").IncidentType;
|
|
43
|
-
resolution_status: string | null;
|
|
44
|
-
resolved_by: string | null;
|
|
45
|
-
resolved_at: string | null;
|
|
46
|
-
escalation_chain: Record<string, unknown> | null;
|
|
47
|
-
}>;
|
|
41
|
+
}, z.core.$strip>;
|
|
48
42
|
export type IncidentResponse = z.infer<typeof IncidentResponse>;
|
|
49
43
|
/** `GET /api/v1/incidents/:id`. */
|
|
50
44
|
export declare const IncidentDetailResponse: z.ZodObject<{
|
|
@@ -53,72 +47,36 @@ export declare const IncidentDetailResponse: z.ZodObject<{
|
|
|
53
47
|
workspace_id: z.ZodString;
|
|
54
48
|
trace_id: z.ZodNullable<z.ZodString>;
|
|
55
49
|
session_id: z.ZodNullable<z.ZodString>;
|
|
56
|
-
severity: z.ZodEnum<
|
|
57
|
-
|
|
50
|
+
severity: z.ZodEnum<{
|
|
51
|
+
LOW: "LOW";
|
|
52
|
+
MEDIUM: "MEDIUM";
|
|
53
|
+
HIGH: "HIGH";
|
|
54
|
+
CRITICAL: "CRITICAL";
|
|
55
|
+
}>;
|
|
56
|
+
anomaly_type: z.ZodEnum<{
|
|
57
|
+
WASM_RULE_REFUSED: "WASM_RULE_REFUSED";
|
|
58
|
+
SYSTEM_ANOMALY: "SYSTEM_ANOMALY";
|
|
59
|
+
TOOL_ABUSE: "TOOL_ABUSE";
|
|
60
|
+
TOKEN_WASTE: "TOKEN_WASTE";
|
|
61
|
+
LOOP_DETECTED: "LOOP_DETECTED";
|
|
62
|
+
UNAUTHORIZED_TOOL: "UNAUTHORIZED_TOOL";
|
|
63
|
+
DATA_EXFILTRATION: "DATA_EXFILTRATION";
|
|
64
|
+
PROMPT_INJECTION: "PROMPT_INJECTION";
|
|
65
|
+
HALLUCINATION: "HALLUCINATION";
|
|
66
|
+
SCOPE_VIOLATION: "SCOPE_VIOLATION";
|
|
67
|
+
BUDGET_BREACH: "BUDGET_BREACH";
|
|
68
|
+
SPAWN_BUDGET_BREACH: "SPAWN_BUDGET_BREACH";
|
|
69
|
+
WORKFLOW_BUDGET_BREACH: "WORKFLOW_BUDGET_BREACH";
|
|
70
|
+
WORKFLOW_GOAL_DRIFT: "WORKFLOW_GOAL_DRIFT";
|
|
71
|
+
}>;
|
|
58
72
|
description: z.ZodString;
|
|
59
73
|
resolution_status: z.ZodNullable<z.ZodString>;
|
|
60
74
|
resolved_by: z.ZodNullable<z.ZodString>;
|
|
61
75
|
resolved_at: z.ZodNullable<z.ZodString>;
|
|
62
76
|
escalation_chain: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
63
77
|
created_at: z.ZodString;
|
|
64
|
-
},
|
|
65
|
-
|
|
66
|
-
severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
|
|
67
|
-
workspace_id: string;
|
|
68
|
-
session_id: string | null;
|
|
69
|
-
created_at: string;
|
|
70
|
-
trace_id: string | null;
|
|
71
|
-
incident_id: string;
|
|
72
|
-
anomaly_type: import("../enums.js").IncidentType;
|
|
73
|
-
resolution_status: string | null;
|
|
74
|
-
resolved_by: string | null;
|
|
75
|
-
resolved_at: string | null;
|
|
76
|
-
escalation_chain: Record<string, unknown> | null;
|
|
77
|
-
}, {
|
|
78
|
-
description: string;
|
|
79
|
-
severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
|
|
80
|
-
workspace_id: string;
|
|
81
|
-
session_id: string | null;
|
|
82
|
-
created_at: string;
|
|
83
|
-
trace_id: string | null;
|
|
84
|
-
incident_id: string;
|
|
85
|
-
anomaly_type: import("../enums.js").IncidentType;
|
|
86
|
-
resolution_status: string | null;
|
|
87
|
-
resolved_by: string | null;
|
|
88
|
-
resolved_at: string | null;
|
|
89
|
-
escalation_chain: Record<string, unknown> | null;
|
|
90
|
-
}>;
|
|
91
|
-
}, "strip", z.ZodTypeAny, {
|
|
92
|
-
data: {
|
|
93
|
-
description: string;
|
|
94
|
-
severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
|
|
95
|
-
workspace_id: string;
|
|
96
|
-
session_id: string | null;
|
|
97
|
-
created_at: string;
|
|
98
|
-
trace_id: string | null;
|
|
99
|
-
incident_id: string;
|
|
100
|
-
anomaly_type: import("../enums.js").IncidentType;
|
|
101
|
-
resolution_status: string | null;
|
|
102
|
-
resolved_by: string | null;
|
|
103
|
-
resolved_at: string | null;
|
|
104
|
-
escalation_chain: Record<string, unknown> | null;
|
|
105
|
-
};
|
|
106
|
-
}, {
|
|
107
|
-
data: {
|
|
108
|
-
description: string;
|
|
109
|
-
severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
|
|
110
|
-
workspace_id: string;
|
|
111
|
-
session_id: string | null;
|
|
112
|
-
created_at: string;
|
|
113
|
-
trace_id: string | null;
|
|
114
|
-
incident_id: string;
|
|
115
|
-
anomaly_type: import("../enums.js").IncidentType;
|
|
116
|
-
resolution_status: string | null;
|
|
117
|
-
resolved_by: string | null;
|
|
118
|
-
resolved_at: string | null;
|
|
119
|
-
escalation_chain: Record<string, unknown> | null;
|
|
120
|
-
};
|
|
121
|
-
}>;
|
|
78
|
+
}, z.core.$strip>;
|
|
79
|
+
}, z.core.$strip>;
|
|
122
80
|
export type IncidentDetailResponse = z.infer<typeof IncidentDetailResponse>;
|
|
123
81
|
/** How much of a ranked review queue the audit budget covers (`services/reviewPriority.ts` `describeBudget`). */
|
|
124
82
|
export declare const ReviewBudgetResponse: z.ZodObject<{
|
|
@@ -126,17 +84,7 @@ export declare const ReviewBudgetResponse: z.ZodObject<{
|
|
|
126
84
|
matched: z.ZodNumber;
|
|
127
85
|
withheld: z.ZodNumber;
|
|
128
86
|
overBudget: z.ZodBoolean;
|
|
129
|
-
},
|
|
130
|
-
budget: number;
|
|
131
|
-
overBudget: boolean;
|
|
132
|
-
matched: number;
|
|
133
|
-
withheld: number;
|
|
134
|
-
}, {
|
|
135
|
-
budget: number;
|
|
136
|
-
overBudget: boolean;
|
|
137
|
-
matched: number;
|
|
138
|
-
withheld: number;
|
|
139
|
-
}>;
|
|
87
|
+
}, z.core.$strip>;
|
|
140
88
|
export type ReviewBudgetResponse = z.infer<typeof ReviewBudgetResponse>;
|
|
141
89
|
/** One row of the incident list: the incident with its rank. */
|
|
142
90
|
export declare const IncidentListRowResponse: z.ZodObject<{
|
|
@@ -144,55 +92,45 @@ export declare const IncidentListRowResponse: z.ZodObject<{
|
|
|
144
92
|
workspace_id: z.ZodString;
|
|
145
93
|
trace_id: z.ZodNullable<z.ZodString>;
|
|
146
94
|
session_id: z.ZodNullable<z.ZodString>;
|
|
147
|
-
severity: z.ZodEnum<
|
|
148
|
-
|
|
95
|
+
severity: z.ZodEnum<{
|
|
96
|
+
LOW: "LOW";
|
|
97
|
+
MEDIUM: "MEDIUM";
|
|
98
|
+
HIGH: "HIGH";
|
|
99
|
+
CRITICAL: "CRITICAL";
|
|
100
|
+
}>;
|
|
101
|
+
anomaly_type: z.ZodEnum<{
|
|
102
|
+
WASM_RULE_REFUSED: "WASM_RULE_REFUSED";
|
|
103
|
+
SYSTEM_ANOMALY: "SYSTEM_ANOMALY";
|
|
104
|
+
TOOL_ABUSE: "TOOL_ABUSE";
|
|
105
|
+
TOKEN_WASTE: "TOKEN_WASTE";
|
|
106
|
+
LOOP_DETECTED: "LOOP_DETECTED";
|
|
107
|
+
UNAUTHORIZED_TOOL: "UNAUTHORIZED_TOOL";
|
|
108
|
+
DATA_EXFILTRATION: "DATA_EXFILTRATION";
|
|
109
|
+
PROMPT_INJECTION: "PROMPT_INJECTION";
|
|
110
|
+
HALLUCINATION: "HALLUCINATION";
|
|
111
|
+
SCOPE_VIOLATION: "SCOPE_VIOLATION";
|
|
112
|
+
BUDGET_BREACH: "BUDGET_BREACH";
|
|
113
|
+
SPAWN_BUDGET_BREACH: "SPAWN_BUDGET_BREACH";
|
|
114
|
+
WORKFLOW_BUDGET_BREACH: "WORKFLOW_BUDGET_BREACH";
|
|
115
|
+
WORKFLOW_GOAL_DRIFT: "WORKFLOW_GOAL_DRIFT";
|
|
116
|
+
}>;
|
|
149
117
|
description: z.ZodString;
|
|
150
118
|
resolution_status: z.ZodNullable<z.ZodString>;
|
|
151
119
|
resolved_by: z.ZodNullable<z.ZodString>;
|
|
152
120
|
resolved_at: z.ZodNullable<z.ZodString>;
|
|
153
121
|
escalation_chain: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
154
122
|
created_at: z.ZodString;
|
|
155
|
-
} & {
|
|
156
123
|
review_priority: z.ZodNumber;
|
|
157
|
-
},
|
|
158
|
-
description: string;
|
|
159
|
-
severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
|
|
160
|
-
workspace_id: string;
|
|
161
|
-
session_id: string | null;
|
|
162
|
-
created_at: string;
|
|
163
|
-
trace_id: string | null;
|
|
164
|
-
incident_id: string;
|
|
165
|
-
anomaly_type: import("../enums.js").IncidentType;
|
|
166
|
-
resolution_status: string | null;
|
|
167
|
-
resolved_by: string | null;
|
|
168
|
-
resolved_at: string | null;
|
|
169
|
-
escalation_chain: Record<string, unknown> | null;
|
|
170
|
-
review_priority: number;
|
|
171
|
-
}, {
|
|
172
|
-
description: string;
|
|
173
|
-
severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
|
|
174
|
-
workspace_id: string;
|
|
175
|
-
session_id: string | null;
|
|
176
|
-
created_at: string;
|
|
177
|
-
trace_id: string | null;
|
|
178
|
-
incident_id: string;
|
|
179
|
-
anomaly_type: import("../enums.js").IncidentType;
|
|
180
|
-
resolution_status: string | null;
|
|
181
|
-
resolved_by: string | null;
|
|
182
|
-
resolved_at: string | null;
|
|
183
|
-
escalation_chain: Record<string, unknown> | null;
|
|
184
|
-
review_priority: number;
|
|
185
|
-
}>;
|
|
124
|
+
}, z.core.$strip>;
|
|
186
125
|
export type IncidentListRowResponse = z.infer<typeof IncidentListRowResponse>;
|
|
187
126
|
/**
|
|
188
127
|
* `GET /api/v1/incidents`. A page of 20 or more rows is TOON-encoded: the rows
|
|
189
128
|
* are one string under `data`, and `listProperty` names where a decoder puts
|
|
190
129
|
* them (`data` again).
|
|
191
130
|
*/
|
|
192
|
-
export declare const IncidentListResponse: z.ZodUnion<[z.ZodObject<{
|
|
131
|
+
export declare const IncidentListResponse: z.ZodUnion<readonly [z.ZodObject<{
|
|
193
132
|
listProperty: z.ZodLiteral<"data">;
|
|
194
133
|
rowCase: z.ZodLiteral<"snake">;
|
|
195
|
-
} & {
|
|
196
134
|
format: z.ZodLiteral<"toon">;
|
|
197
135
|
data: z.ZodString;
|
|
198
136
|
meta: z.ZodObject<{
|
|
@@ -204,118 +142,46 @@ export declare const IncidentListResponse: z.ZodUnion<[z.ZodObject<{
|
|
|
204
142
|
matched: z.ZodNumber;
|
|
205
143
|
withheld: z.ZodNumber;
|
|
206
144
|
overBudget: z.ZodBoolean;
|
|
207
|
-
},
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
matched: number;
|
|
211
|
-
withheld: number;
|
|
212
|
-
}, {
|
|
213
|
-
budget: number;
|
|
214
|
-
overBudget: boolean;
|
|
215
|
-
matched: number;
|
|
216
|
-
withheld: number;
|
|
217
|
-
}>;
|
|
218
|
-
}, "strip", z.ZodTypeAny, {
|
|
219
|
-
total: number;
|
|
220
|
-
limit: number;
|
|
221
|
-
audit: {
|
|
222
|
-
budget: number;
|
|
223
|
-
overBudget: boolean;
|
|
224
|
-
matched: number;
|
|
225
|
-
withheld: number;
|
|
226
|
-
};
|
|
227
|
-
page: number;
|
|
228
|
-
}, {
|
|
229
|
-
total: number;
|
|
230
|
-
limit: number;
|
|
231
|
-
audit: {
|
|
232
|
-
budget: number;
|
|
233
|
-
overBudget: boolean;
|
|
234
|
-
matched: number;
|
|
235
|
-
withheld: number;
|
|
236
|
-
};
|
|
237
|
-
page: number;
|
|
238
|
-
}>;
|
|
239
|
-
}, "strip", z.ZodTypeAny, {
|
|
240
|
-
data: string;
|
|
241
|
-
listProperty: "data";
|
|
242
|
-
rowCase: "snake";
|
|
243
|
-
format: "toon";
|
|
244
|
-
meta: {
|
|
245
|
-
total: number;
|
|
246
|
-
limit: number;
|
|
247
|
-
audit: {
|
|
248
|
-
budget: number;
|
|
249
|
-
overBudget: boolean;
|
|
250
|
-
matched: number;
|
|
251
|
-
withheld: number;
|
|
252
|
-
};
|
|
253
|
-
page: number;
|
|
254
|
-
};
|
|
255
|
-
}, {
|
|
256
|
-
data: string;
|
|
257
|
-
listProperty: "data";
|
|
258
|
-
rowCase: "snake";
|
|
259
|
-
format: "toon";
|
|
260
|
-
meta: {
|
|
261
|
-
total: number;
|
|
262
|
-
limit: number;
|
|
263
|
-
audit: {
|
|
264
|
-
budget: number;
|
|
265
|
-
overBudget: boolean;
|
|
266
|
-
matched: number;
|
|
267
|
-
withheld: number;
|
|
268
|
-
};
|
|
269
|
-
page: number;
|
|
270
|
-
};
|
|
271
|
-
}>, z.ZodObject<{
|
|
145
|
+
}, z.core.$strip>;
|
|
146
|
+
}, z.core.$strip>;
|
|
147
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
272
148
|
listProperty: z.ZodLiteral<"data">;
|
|
273
149
|
rowCase: z.ZodLiteral<"snake">;
|
|
274
|
-
} & {
|
|
275
150
|
data: z.ZodArray<z.ZodObject<{
|
|
276
151
|
incident_id: z.ZodString;
|
|
277
152
|
workspace_id: z.ZodString;
|
|
278
153
|
trace_id: z.ZodNullable<z.ZodString>;
|
|
279
154
|
session_id: z.ZodNullable<z.ZodString>;
|
|
280
|
-
severity: z.ZodEnum<
|
|
281
|
-
|
|
155
|
+
severity: z.ZodEnum<{
|
|
156
|
+
LOW: "LOW";
|
|
157
|
+
MEDIUM: "MEDIUM";
|
|
158
|
+
HIGH: "HIGH";
|
|
159
|
+
CRITICAL: "CRITICAL";
|
|
160
|
+
}>;
|
|
161
|
+
anomaly_type: z.ZodEnum<{
|
|
162
|
+
WASM_RULE_REFUSED: "WASM_RULE_REFUSED";
|
|
163
|
+
SYSTEM_ANOMALY: "SYSTEM_ANOMALY";
|
|
164
|
+
TOOL_ABUSE: "TOOL_ABUSE";
|
|
165
|
+
TOKEN_WASTE: "TOKEN_WASTE";
|
|
166
|
+
LOOP_DETECTED: "LOOP_DETECTED";
|
|
167
|
+
UNAUTHORIZED_TOOL: "UNAUTHORIZED_TOOL";
|
|
168
|
+
DATA_EXFILTRATION: "DATA_EXFILTRATION";
|
|
169
|
+
PROMPT_INJECTION: "PROMPT_INJECTION";
|
|
170
|
+
HALLUCINATION: "HALLUCINATION";
|
|
171
|
+
SCOPE_VIOLATION: "SCOPE_VIOLATION";
|
|
172
|
+
BUDGET_BREACH: "BUDGET_BREACH";
|
|
173
|
+
SPAWN_BUDGET_BREACH: "SPAWN_BUDGET_BREACH";
|
|
174
|
+
WORKFLOW_BUDGET_BREACH: "WORKFLOW_BUDGET_BREACH";
|
|
175
|
+
WORKFLOW_GOAL_DRIFT: "WORKFLOW_GOAL_DRIFT";
|
|
176
|
+
}>;
|
|
282
177
|
description: z.ZodString;
|
|
283
178
|
resolution_status: z.ZodNullable<z.ZodString>;
|
|
284
179
|
resolved_by: z.ZodNullable<z.ZodString>;
|
|
285
180
|
resolved_at: z.ZodNullable<z.ZodString>;
|
|
286
181
|
escalation_chain: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
287
182
|
created_at: z.ZodString;
|
|
288
|
-
} & {
|
|
289
183
|
review_priority: z.ZodNumber;
|
|
290
|
-
},
|
|
291
|
-
description: string;
|
|
292
|
-
severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
|
|
293
|
-
workspace_id: string;
|
|
294
|
-
session_id: string | null;
|
|
295
|
-
created_at: string;
|
|
296
|
-
trace_id: string | null;
|
|
297
|
-
incident_id: string;
|
|
298
|
-
anomaly_type: import("../enums.js").IncidentType;
|
|
299
|
-
resolution_status: string | null;
|
|
300
|
-
resolved_by: string | null;
|
|
301
|
-
resolved_at: string | null;
|
|
302
|
-
escalation_chain: Record<string, unknown> | null;
|
|
303
|
-
review_priority: number;
|
|
304
|
-
}, {
|
|
305
|
-
description: string;
|
|
306
|
-
severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
|
|
307
|
-
workspace_id: string;
|
|
308
|
-
session_id: string | null;
|
|
309
|
-
created_at: string;
|
|
310
|
-
trace_id: string | null;
|
|
311
|
-
incident_id: string;
|
|
312
|
-
anomaly_type: import("../enums.js").IncidentType;
|
|
313
|
-
resolution_status: string | null;
|
|
314
|
-
resolved_by: string | null;
|
|
315
|
-
resolved_at: string | null;
|
|
316
|
-
escalation_chain: Record<string, unknown> | null;
|
|
317
|
-
review_priority: number;
|
|
318
|
-
}>, "many">;
|
|
184
|
+
}, z.core.$strip>>;
|
|
319
185
|
meta: z.ZodObject<{
|
|
320
186
|
total: z.ZodNumber;
|
|
321
187
|
page: z.ZodNumber;
|
|
@@ -325,97 +191,9 @@ export declare const IncidentListResponse: z.ZodUnion<[z.ZodObject<{
|
|
|
325
191
|
matched: z.ZodNumber;
|
|
326
192
|
withheld: z.ZodNumber;
|
|
327
193
|
overBudget: z.ZodBoolean;
|
|
328
|
-
},
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
matched: number;
|
|
332
|
-
withheld: number;
|
|
333
|
-
}, {
|
|
334
|
-
budget: number;
|
|
335
|
-
overBudget: boolean;
|
|
336
|
-
matched: number;
|
|
337
|
-
withheld: number;
|
|
338
|
-
}>;
|
|
339
|
-
}, "strip", z.ZodTypeAny, {
|
|
340
|
-
total: number;
|
|
341
|
-
limit: number;
|
|
342
|
-
audit: {
|
|
343
|
-
budget: number;
|
|
344
|
-
overBudget: boolean;
|
|
345
|
-
matched: number;
|
|
346
|
-
withheld: number;
|
|
347
|
-
};
|
|
348
|
-
page: number;
|
|
349
|
-
}, {
|
|
350
|
-
total: number;
|
|
351
|
-
limit: number;
|
|
352
|
-
audit: {
|
|
353
|
-
budget: number;
|
|
354
|
-
overBudget: boolean;
|
|
355
|
-
matched: number;
|
|
356
|
-
withheld: number;
|
|
357
|
-
};
|
|
358
|
-
page: number;
|
|
359
|
-
}>;
|
|
360
|
-
}, "strip", z.ZodTypeAny, {
|
|
361
|
-
data: {
|
|
362
|
-
description: string;
|
|
363
|
-
severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
|
|
364
|
-
workspace_id: string;
|
|
365
|
-
session_id: string | null;
|
|
366
|
-
created_at: string;
|
|
367
|
-
trace_id: string | null;
|
|
368
|
-
incident_id: string;
|
|
369
|
-
anomaly_type: import("../enums.js").IncidentType;
|
|
370
|
-
resolution_status: string | null;
|
|
371
|
-
resolved_by: string | null;
|
|
372
|
-
resolved_at: string | null;
|
|
373
|
-
escalation_chain: Record<string, unknown> | null;
|
|
374
|
-
review_priority: number;
|
|
375
|
-
}[];
|
|
376
|
-
listProperty: "data";
|
|
377
|
-
rowCase: "snake";
|
|
378
|
-
meta: {
|
|
379
|
-
total: number;
|
|
380
|
-
limit: number;
|
|
381
|
-
audit: {
|
|
382
|
-
budget: number;
|
|
383
|
-
overBudget: boolean;
|
|
384
|
-
matched: number;
|
|
385
|
-
withheld: number;
|
|
386
|
-
};
|
|
387
|
-
page: number;
|
|
388
|
-
};
|
|
389
|
-
}, {
|
|
390
|
-
data: {
|
|
391
|
-
description: string;
|
|
392
|
-
severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
|
|
393
|
-
workspace_id: string;
|
|
394
|
-
session_id: string | null;
|
|
395
|
-
created_at: string;
|
|
396
|
-
trace_id: string | null;
|
|
397
|
-
incident_id: string;
|
|
398
|
-
anomaly_type: import("../enums.js").IncidentType;
|
|
399
|
-
resolution_status: string | null;
|
|
400
|
-
resolved_by: string | null;
|
|
401
|
-
resolved_at: string | null;
|
|
402
|
-
escalation_chain: Record<string, unknown> | null;
|
|
403
|
-
review_priority: number;
|
|
404
|
-
}[];
|
|
405
|
-
listProperty: "data";
|
|
406
|
-
rowCase: "snake";
|
|
407
|
-
meta: {
|
|
408
|
-
total: number;
|
|
409
|
-
limit: number;
|
|
410
|
-
audit: {
|
|
411
|
-
budget: number;
|
|
412
|
-
overBudget: boolean;
|
|
413
|
-
matched: number;
|
|
414
|
-
withheld: number;
|
|
415
|
-
};
|
|
416
|
-
page: number;
|
|
417
|
-
};
|
|
418
|
-
}>]>;
|
|
194
|
+
}, z.core.$strip>;
|
|
195
|
+
}, z.core.$strip>;
|
|
196
|
+
}, z.core.$strip>]>;
|
|
419
197
|
export type IncidentListResponse = z.infer<typeof IncidentListResponse>;
|
|
420
198
|
/**
|
|
421
199
|
* One trace in the list (`traceQueryService.ts` `listTraces`). `breakGlass` and
|
|
@@ -433,58 +211,22 @@ export declare const TraceSummaryResponse: z.ZodObject<{
|
|
|
433
211
|
anomalyDetected: z.ZodNullable<z.ZodString>;
|
|
434
212
|
breakGlass: z.ZodOptional<z.ZodBoolean>;
|
|
435
213
|
breakGlassRequestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
436
|
-
},
|
|
437
|
-
requestedModel: string;
|
|
438
|
-
actualModelRouted: string;
|
|
439
|
-
actualCostUsd: number;
|
|
440
|
-
complianceScore: number;
|
|
441
|
-
enforcementAction: string;
|
|
442
|
-
anomalyDetected: string | null;
|
|
443
|
-
timestamp: string;
|
|
444
|
-
traceId: string;
|
|
445
|
-
breakGlass?: boolean | undefined;
|
|
446
|
-
breakGlassRequestId?: string | null | undefined;
|
|
447
|
-
}, {
|
|
448
|
-
requestedModel: string;
|
|
449
|
-
actualModelRouted: string;
|
|
450
|
-
actualCostUsd: number;
|
|
451
|
-
complianceScore: number;
|
|
452
|
-
enforcementAction: string;
|
|
453
|
-
anomalyDetected: string | null;
|
|
454
|
-
timestamp: string;
|
|
455
|
-
traceId: string;
|
|
456
|
-
breakGlass?: boolean | undefined;
|
|
457
|
-
breakGlassRequestId?: string | null | undefined;
|
|
458
|
-
}>;
|
|
214
|
+
}, z.core.$strip>;
|
|
459
215
|
export type TraceSummaryResponse = z.infer<typeof TraceSummaryResponse>;
|
|
460
216
|
/**
|
|
461
217
|
* `GET /api/v1/traces`. A page of 20 or more rows is TOON-encoded: the rows are
|
|
462
218
|
* one string under `data`, and `listProperty: 'traces'` names where a decoder
|
|
463
219
|
* puts them.
|
|
464
220
|
*/
|
|
465
|
-
export declare const TraceListResponse: z.ZodUnion<[z.ZodObject<{
|
|
221
|
+
export declare const TraceListResponse: z.ZodUnion<readonly [z.ZodObject<{
|
|
466
222
|
listProperty: z.ZodLiteral<"traces">;
|
|
467
223
|
rowCase: z.ZodLiteral<"camel">;
|
|
468
|
-
} & {
|
|
469
224
|
format: z.ZodLiteral<"toon">;
|
|
470
225
|
data: z.ZodString;
|
|
471
226
|
total: z.ZodNumber;
|
|
472
|
-
},
|
|
473
|
-
data: string;
|
|
474
|
-
total: number;
|
|
475
|
-
listProperty: "traces";
|
|
476
|
-
rowCase: "camel";
|
|
477
|
-
format: "toon";
|
|
478
|
-
}, {
|
|
479
|
-
data: string;
|
|
480
|
-
total: number;
|
|
481
|
-
listProperty: "traces";
|
|
482
|
-
rowCase: "camel";
|
|
483
|
-
format: "toon";
|
|
484
|
-
}>, z.ZodObject<{
|
|
227
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
485
228
|
listProperty: z.ZodLiteral<"traces">;
|
|
486
229
|
rowCase: z.ZodLiteral<"camel">;
|
|
487
|
-
} & {
|
|
488
230
|
traces: z.ZodArray<z.ZodObject<{
|
|
489
231
|
traceId: z.ZodString;
|
|
490
232
|
timestamp: z.ZodString;
|
|
@@ -496,69 +238,11 @@ export declare const TraceListResponse: z.ZodUnion<[z.ZodObject<{
|
|
|
496
238
|
anomalyDetected: z.ZodNullable<z.ZodString>;
|
|
497
239
|
breakGlass: z.ZodOptional<z.ZodBoolean>;
|
|
498
240
|
breakGlassRequestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
499
|
-
},
|
|
500
|
-
requestedModel: string;
|
|
501
|
-
actualModelRouted: string;
|
|
502
|
-
actualCostUsd: number;
|
|
503
|
-
complianceScore: number;
|
|
504
|
-
enforcementAction: string;
|
|
505
|
-
anomalyDetected: string | null;
|
|
506
|
-
timestamp: string;
|
|
507
|
-
traceId: string;
|
|
508
|
-
breakGlass?: boolean | undefined;
|
|
509
|
-
breakGlassRequestId?: string | null | undefined;
|
|
510
|
-
}, {
|
|
511
|
-
requestedModel: string;
|
|
512
|
-
actualModelRouted: string;
|
|
513
|
-
actualCostUsd: number;
|
|
514
|
-
complianceScore: number;
|
|
515
|
-
enforcementAction: string;
|
|
516
|
-
anomalyDetected: string | null;
|
|
517
|
-
timestamp: string;
|
|
518
|
-
traceId: string;
|
|
519
|
-
breakGlass?: boolean | undefined;
|
|
520
|
-
breakGlassRequestId?: string | null | undefined;
|
|
521
|
-
}>, "many">;
|
|
241
|
+
}, z.core.$strip>>;
|
|
522
242
|
total: z.ZodNumber;
|
|
523
243
|
limit: z.ZodNumber;
|
|
524
244
|
offset: z.ZodNumber;
|
|
525
|
-
},
|
|
526
|
-
traces: {
|
|
527
|
-
requestedModel: string;
|
|
528
|
-
actualModelRouted: string;
|
|
529
|
-
actualCostUsd: number;
|
|
530
|
-
complianceScore: number;
|
|
531
|
-
enforcementAction: string;
|
|
532
|
-
anomalyDetected: string | null;
|
|
533
|
-
timestamp: string;
|
|
534
|
-
traceId: string;
|
|
535
|
-
breakGlass?: boolean | undefined;
|
|
536
|
-
breakGlassRequestId?: string | null | undefined;
|
|
537
|
-
}[];
|
|
538
|
-
total: number;
|
|
539
|
-
limit: number;
|
|
540
|
-
offset: number;
|
|
541
|
-
listProperty: "traces";
|
|
542
|
-
rowCase: "camel";
|
|
543
|
-
}, {
|
|
544
|
-
traces: {
|
|
545
|
-
requestedModel: string;
|
|
546
|
-
actualModelRouted: string;
|
|
547
|
-
actualCostUsd: number;
|
|
548
|
-
complianceScore: number;
|
|
549
|
-
enforcementAction: string;
|
|
550
|
-
anomalyDetected: string | null;
|
|
551
|
-
timestamp: string;
|
|
552
|
-
traceId: string;
|
|
553
|
-
breakGlass?: boolean | undefined;
|
|
554
|
-
breakGlassRequestId?: string | null | undefined;
|
|
555
|
-
}[];
|
|
556
|
-
total: number;
|
|
557
|
-
limit: number;
|
|
558
|
-
offset: number;
|
|
559
|
-
listProperty: "traces";
|
|
560
|
-
rowCase: "camel";
|
|
561
|
-
}>]>;
|
|
245
|
+
}, z.core.$strip>]>;
|
|
562
246
|
export type TraceListResponse = z.infer<typeof TraceListResponse>;
|
|
563
247
|
/**
|
|
564
248
|
* `GET /api/v1/traces/:id` (`traceQueryService.ts` `getTraceById`). Every field
|
|
@@ -588,35 +272,35 @@ export declare const TraceDetailResponse: z.ZodObject<{
|
|
|
588
272
|
enforcementAction: z.ZodString;
|
|
589
273
|
anomalyDetected: z.ZodNullable<z.ZodString>;
|
|
590
274
|
anomalyConfidenceScore: z.ZodNullable<z.ZodNumber>;
|
|
591
|
-
taxonomyMetadata: z.ZodUnknown
|
|
592
|
-
rootCauseAttribution: z.ZodUnknown
|
|
593
|
-
correctivePromptCard: z.ZodUnknown
|
|
275
|
+
taxonomyMetadata: z.ZodOptional<z.ZodUnknown>;
|
|
276
|
+
rootCauseAttribution: z.ZodOptional<z.ZodUnknown>;
|
|
277
|
+
correctivePromptCard: z.ZodOptional<z.ZodUnknown>;
|
|
594
278
|
reasoningTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
595
279
|
cacheReadInputTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
596
280
|
cacheCreationInputTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
597
281
|
toolCallMetrics: z.ZodOptional<z.ZodUnknown>;
|
|
598
282
|
changeManifest: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
599
283
|
tool: z.ZodString;
|
|
600
|
-
op: z.ZodEnum<
|
|
284
|
+
op: z.ZodEnum<{
|
|
285
|
+
unknown: "unknown";
|
|
286
|
+
read: "read";
|
|
287
|
+
write: "write";
|
|
288
|
+
edit: "edit";
|
|
289
|
+
delete: "delete";
|
|
290
|
+
move: "move";
|
|
291
|
+
execute: "execute";
|
|
292
|
+
fetch: "fetch";
|
|
293
|
+
}>;
|
|
601
294
|
target: z.ZodString;
|
|
602
|
-
target_kind: z.ZodEnum<
|
|
603
|
-
|
|
295
|
+
target_kind: z.ZodEnum<{
|
|
296
|
+
path: "path";
|
|
297
|
+
url: "url";
|
|
298
|
+
command: "command";
|
|
299
|
+
opaque: "opaque";
|
|
300
|
+
}>;
|
|
301
|
+
risk: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
604
302
|
bytes: z.ZodOptional<z.ZodNumber>;
|
|
605
|
-
},
|
|
606
|
-
tool: string;
|
|
607
|
-
target: string;
|
|
608
|
-
op: "unknown" | "read" | "write" | "edit" | "delete" | "move" | "execute" | "fetch";
|
|
609
|
-
target_kind: "path" | "url" | "command" | "opaque";
|
|
610
|
-
risk?: string[] | undefined;
|
|
611
|
-
bytes?: number | undefined;
|
|
612
|
-
}, {
|
|
613
|
-
tool: string;
|
|
614
|
-
target: string;
|
|
615
|
-
op: "unknown" | "read" | "write" | "edit" | "delete" | "move" | "execute" | "fetch";
|
|
616
|
-
target_kind: "path" | "url" | "command" | "opaque";
|
|
617
|
-
risk?: string[] | undefined;
|
|
618
|
-
bytes?: number | undefined;
|
|
619
|
-
}>, "many">>>;
|
|
303
|
+
}, z.core.$strip>>>>;
|
|
620
304
|
responseIntegrity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
621
305
|
qualityFault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
622
306
|
routingShadowModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -629,47 +313,19 @@ export declare const TraceDetailResponse: z.ZodObject<{
|
|
|
629
313
|
backoffMs: z.ZodOptional<z.ZodNumber>;
|
|
630
314
|
serverDelay: z.ZodOptional<z.ZodBoolean>;
|
|
631
315
|
stopped: z.ZodOptional<z.ZodString>;
|
|
632
|
-
},
|
|
633
|
-
model: string;
|
|
634
|
-
outcome: string;
|
|
635
|
-
latencyMs: number;
|
|
636
|
-
provider: string;
|
|
637
|
-
status?: number | undefined;
|
|
638
|
-
stopped?: string | undefined;
|
|
639
|
-
backoffMs?: number | undefined;
|
|
640
|
-
serverDelay?: boolean | undefined;
|
|
641
|
-
}, {
|
|
642
|
-
model: string;
|
|
643
|
-
outcome: string;
|
|
644
|
-
latencyMs: number;
|
|
645
|
-
provider: string;
|
|
646
|
-
status?: number | undefined;
|
|
647
|
-
stopped?: string | undefined;
|
|
648
|
-
backoffMs?: number | undefined;
|
|
649
|
-
serverDelay?: boolean | undefined;
|
|
650
|
-
}>, "many">>>;
|
|
316
|
+
}, z.core.$strip>>>>;
|
|
651
317
|
upstreamFallback: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
652
318
|
fromModel: z.ZodString;
|
|
653
319
|
toModel: z.ZodString;
|
|
654
320
|
toProvider: z.ZodString;
|
|
655
321
|
cacheAffinityBroken: z.ZodOptional<z.ZodBoolean>;
|
|
656
|
-
},
|
|
657
|
-
fromModel: string;
|
|
658
|
-
toModel: string;
|
|
659
|
-
toProvider: string;
|
|
660
|
-
cacheAffinityBroken?: boolean | undefined;
|
|
661
|
-
}, {
|
|
662
|
-
fromModel: string;
|
|
663
|
-
toModel: string;
|
|
664
|
-
toProvider: string;
|
|
665
|
-
cacheAffinityBroken?: boolean | undefined;
|
|
666
|
-
}>>>;
|
|
322
|
+
}, z.core.$strip>>>;
|
|
667
323
|
breakGlass: z.ZodOptional<z.ZodBoolean>;
|
|
668
324
|
breakGlassRequestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
669
325
|
steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
670
326
|
logId: z.ZodString;
|
|
671
327
|
toolName: z.ZodString;
|
|
672
|
-
toolArguments: z.ZodUnknown
|
|
328
|
+
toolArguments: z.ZodOptional<z.ZodUnknown>;
|
|
673
329
|
riskCategory: z.ZodNullable<z.ZodString>;
|
|
674
330
|
verdict: z.ZodString;
|
|
675
331
|
confidence: z.ZodNumber;
|
|
@@ -677,29 +333,7 @@ export declare const TraceDetailResponse: z.ZodObject<{
|
|
|
677
333
|
loopDetected: z.ZodBoolean;
|
|
678
334
|
latencyMs: z.ZodNullable<z.ZodNumber>;
|
|
679
335
|
timestamp: z.ZodString;
|
|
680
|
-
},
|
|
681
|
-
confidence: number;
|
|
682
|
-
reason: string;
|
|
683
|
-
latencyMs: number | null;
|
|
684
|
-
toolName: string;
|
|
685
|
-
verdict: string;
|
|
686
|
-
timestamp: string;
|
|
687
|
-
logId: string;
|
|
688
|
-
riskCategory: string | null;
|
|
689
|
-
loopDetected: boolean;
|
|
690
|
-
toolArguments?: unknown;
|
|
691
|
-
}, {
|
|
692
|
-
confidence: number;
|
|
693
|
-
reason: string;
|
|
694
|
-
latencyMs: number | null;
|
|
695
|
-
toolName: string;
|
|
696
|
-
verdict: string;
|
|
697
|
-
timestamp: string;
|
|
698
|
-
logId: string;
|
|
699
|
-
riskCategory: string | null;
|
|
700
|
-
loopDetected: boolean;
|
|
701
|
-
toolArguments?: unknown;
|
|
702
|
-
}>, "many">>;
|
|
336
|
+
}, z.core.$strip>>>;
|
|
703
337
|
findings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
704
338
|
findingId: z.ZodString;
|
|
705
339
|
detectorId: z.ZodString;
|
|
@@ -709,188 +343,8 @@ export declare const TraceDetailResponse: z.ZodObject<{
|
|
|
709
343
|
confidence: z.ZodNumber;
|
|
710
344
|
reason: z.ZodString;
|
|
711
345
|
shadowed: z.ZodBoolean;
|
|
712
|
-
},
|
|
713
|
-
|
|
714
|
-
reason: string;
|
|
715
|
-
severity: string;
|
|
716
|
-
findingId: string;
|
|
717
|
-
detectorId: string;
|
|
718
|
-
anomalyKind: string;
|
|
719
|
-
disposition: string;
|
|
720
|
-
shadowed: boolean;
|
|
721
|
-
}, {
|
|
722
|
-
confidence: number;
|
|
723
|
-
reason: string;
|
|
724
|
-
severity: string;
|
|
725
|
-
findingId: string;
|
|
726
|
-
detectorId: string;
|
|
727
|
-
anomalyKind: string;
|
|
728
|
-
disposition: string;
|
|
729
|
-
shadowed: boolean;
|
|
730
|
-
}>, "many">>;
|
|
731
|
-
}, "strip", z.ZodTypeAny, {
|
|
732
|
-
sessionId: string;
|
|
733
|
-
requestId: string;
|
|
734
|
-
sopEffectiveDate: string;
|
|
735
|
-
requestedModel: string;
|
|
736
|
-
actualModelRouted: string;
|
|
737
|
-
routingTier: string;
|
|
738
|
-
complexityScore: number;
|
|
739
|
-
rawInputTokens: number;
|
|
740
|
-
compressedInputTokens: number;
|
|
741
|
-
outputTokens: number;
|
|
742
|
-
rawCostUsd: number;
|
|
743
|
-
actualCostUsd: number;
|
|
744
|
-
tokenUtility: string | null;
|
|
745
|
-
tokenUtilityScore: number | null;
|
|
746
|
-
complianceScore: number;
|
|
747
|
-
enforcementAction: string;
|
|
748
|
-
anomalyDetected: string | null;
|
|
749
|
-
anomalyConfidenceScore: number | null;
|
|
750
|
-
timestamp: string;
|
|
751
|
-
traceId: string;
|
|
752
|
-
savingsUsd: number;
|
|
753
|
-
taxonomyMetadata?: unknown;
|
|
754
|
-
rootCauseAttribution?: unknown;
|
|
755
|
-
correctivePromptCard?: unknown;
|
|
756
|
-
findings?: {
|
|
757
|
-
confidence: number;
|
|
758
|
-
reason: string;
|
|
759
|
-
severity: string;
|
|
760
|
-
findingId: string;
|
|
761
|
-
detectorId: string;
|
|
762
|
-
anomalyKind: string;
|
|
763
|
-
disposition: string;
|
|
764
|
-
shadowed: boolean;
|
|
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;
|
|
778
|
-
breakGlass?: boolean | undefined;
|
|
779
|
-
breakGlassRequestId?: string | null | undefined;
|
|
780
|
-
tokenUtilityClassifiedBy?: string | null | undefined;
|
|
781
|
-
reasoningTokens?: number | null | undefined;
|
|
782
|
-
cacheReadInputTokens?: number | null | undefined;
|
|
783
|
-
cacheCreationInputTokens?: number | null | undefined;
|
|
784
|
-
toolCallMetrics?: unknown;
|
|
785
|
-
changeManifest?: {
|
|
786
|
-
tool: string;
|
|
787
|
-
target: string;
|
|
788
|
-
op: "unknown" | "read" | "write" | "edit" | "delete" | "move" | "execute" | "fetch";
|
|
789
|
-
target_kind: "path" | "url" | "command" | "opaque";
|
|
790
|
-
risk?: string[] | undefined;
|
|
791
|
-
bytes?: number | undefined;
|
|
792
|
-
}[] | null | undefined;
|
|
793
|
-
responseIntegrity?: number | null | undefined;
|
|
794
|
-
qualityFault?: string | null | undefined;
|
|
795
|
-
routingShadowModel?: string | null | undefined;
|
|
796
|
-
upstreamAttempts?: {
|
|
797
|
-
model: string;
|
|
798
|
-
outcome: string;
|
|
799
|
-
latencyMs: number;
|
|
800
|
-
provider: string;
|
|
801
|
-
status?: number | undefined;
|
|
802
|
-
stopped?: string | undefined;
|
|
803
|
-
backoffMs?: number | undefined;
|
|
804
|
-
serverDelay?: boolean | undefined;
|
|
805
|
-
}[] | null | undefined;
|
|
806
|
-
upstreamFallback?: {
|
|
807
|
-
fromModel: string;
|
|
808
|
-
toModel: string;
|
|
809
|
-
toProvider: string;
|
|
810
|
-
cacheAffinityBroken?: boolean | undefined;
|
|
811
|
-
} | null | undefined;
|
|
812
|
-
}, {
|
|
813
|
-
sessionId: string;
|
|
814
|
-
requestId: string;
|
|
815
|
-
sopEffectiveDate: string;
|
|
816
|
-
requestedModel: string;
|
|
817
|
-
actualModelRouted: string;
|
|
818
|
-
routingTier: string;
|
|
819
|
-
complexityScore: number;
|
|
820
|
-
rawInputTokens: number;
|
|
821
|
-
compressedInputTokens: number;
|
|
822
|
-
outputTokens: number;
|
|
823
|
-
rawCostUsd: number;
|
|
824
|
-
actualCostUsd: number;
|
|
825
|
-
tokenUtility: string | null;
|
|
826
|
-
tokenUtilityScore: number | null;
|
|
827
|
-
complianceScore: number;
|
|
828
|
-
enforcementAction: string;
|
|
829
|
-
anomalyDetected: string | null;
|
|
830
|
-
anomalyConfidenceScore: number | null;
|
|
831
|
-
timestamp: string;
|
|
832
|
-
traceId: string;
|
|
833
|
-
savingsUsd: number;
|
|
834
|
-
taxonomyMetadata?: unknown;
|
|
835
|
-
rootCauseAttribution?: unknown;
|
|
836
|
-
correctivePromptCard?: unknown;
|
|
837
|
-
findings?: {
|
|
838
|
-
confidence: number;
|
|
839
|
-
reason: string;
|
|
840
|
-
severity: string;
|
|
841
|
-
findingId: string;
|
|
842
|
-
detectorId: string;
|
|
843
|
-
anomalyKind: string;
|
|
844
|
-
disposition: string;
|
|
845
|
-
shadowed: boolean;
|
|
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;
|
|
859
|
-
breakGlass?: boolean | undefined;
|
|
860
|
-
breakGlassRequestId?: string | null | undefined;
|
|
861
|
-
tokenUtilityClassifiedBy?: string | null | undefined;
|
|
862
|
-
reasoningTokens?: number | null | undefined;
|
|
863
|
-
cacheReadInputTokens?: number | null | undefined;
|
|
864
|
-
cacheCreationInputTokens?: number | null | undefined;
|
|
865
|
-
toolCallMetrics?: unknown;
|
|
866
|
-
changeManifest?: {
|
|
867
|
-
tool: string;
|
|
868
|
-
target: string;
|
|
869
|
-
op: "unknown" | "read" | "write" | "edit" | "delete" | "move" | "execute" | "fetch";
|
|
870
|
-
target_kind: "path" | "url" | "command" | "opaque";
|
|
871
|
-
risk?: string[] | undefined;
|
|
872
|
-
bytes?: number | undefined;
|
|
873
|
-
}[] | null | undefined;
|
|
874
|
-
responseIntegrity?: number | null | undefined;
|
|
875
|
-
qualityFault?: string | null | undefined;
|
|
876
|
-
routingShadowModel?: string | null | undefined;
|
|
877
|
-
upstreamAttempts?: {
|
|
878
|
-
model: string;
|
|
879
|
-
outcome: string;
|
|
880
|
-
latencyMs: number;
|
|
881
|
-
provider: string;
|
|
882
|
-
status?: number | undefined;
|
|
883
|
-
stopped?: string | undefined;
|
|
884
|
-
backoffMs?: number | undefined;
|
|
885
|
-
serverDelay?: boolean | undefined;
|
|
886
|
-
}[] | null | undefined;
|
|
887
|
-
upstreamFallback?: {
|
|
888
|
-
fromModel: string;
|
|
889
|
-
toModel: string;
|
|
890
|
-
toProvider: string;
|
|
891
|
-
cacheAffinityBroken?: boolean | undefined;
|
|
892
|
-
} | null | undefined;
|
|
893
|
-
}>;
|
|
346
|
+
}, z.core.$strip>>>;
|
|
347
|
+
}, z.core.$strip>;
|
|
894
348
|
export type TraceDetailResponse = z.infer<typeof TraceDetailResponse>;
|
|
895
349
|
/** One detector finding (`detector_findings`), snake_cased by the list route. */
|
|
896
350
|
export declare const FindingResponse: z.ZodObject<{
|
|
@@ -907,50 +361,15 @@ export declare const FindingResponse: z.ZodObject<{
|
|
|
907
361
|
harness: z.ZodNullable<z.ZodString>;
|
|
908
362
|
shadowed: z.ZodBoolean;
|
|
909
363
|
suppressed: z.ZodBoolean;
|
|
910
|
-
outcome: z.ZodNullable<z.ZodEnum<
|
|
364
|
+
outcome: z.ZodNullable<z.ZodEnum<{
|
|
365
|
+
FALSE_POSITIVE: "FALSE_POSITIVE";
|
|
366
|
+
TRUE_POSITIVE: "TRUE_POSITIVE";
|
|
367
|
+
}>>;
|
|
911
368
|
outcome_by: z.ZodNullable<z.ZodString>;
|
|
912
369
|
outcome_at: z.ZodNullable<z.ZodString>;
|
|
913
370
|
outcome_note: z.ZodNullable<z.ZodString>;
|
|
914
371
|
created_at: z.ZodString;
|
|
915
|
-
},
|
|
916
|
-
confidence: number;
|
|
917
|
-
reason: string;
|
|
918
|
-
outcome: "FALSE_POSITIVE" | "TRUE_POSITIVE" | null;
|
|
919
|
-
harness: string | null;
|
|
920
|
-
severity: string;
|
|
921
|
-
session_id: string | null;
|
|
922
|
-
created_at: string;
|
|
923
|
-
trace_id: string;
|
|
924
|
-
disposition: string;
|
|
925
|
-
shadowed: boolean;
|
|
926
|
-
finding_id: string;
|
|
927
|
-
loop_run_id: string | null;
|
|
928
|
-
detector_id: string;
|
|
929
|
-
anomaly_kind: string;
|
|
930
|
-
suppressed: boolean;
|
|
931
|
-
outcome_by: string | null;
|
|
932
|
-
outcome_at: string | null;
|
|
933
|
-
outcome_note: string | null;
|
|
934
|
-
}, {
|
|
935
|
-
confidence: number;
|
|
936
|
-
reason: string;
|
|
937
|
-
outcome: "FALSE_POSITIVE" | "TRUE_POSITIVE" | null;
|
|
938
|
-
harness: string | null;
|
|
939
|
-
severity: string;
|
|
940
|
-
session_id: string | null;
|
|
941
|
-
created_at: string;
|
|
942
|
-
trace_id: string;
|
|
943
|
-
disposition: string;
|
|
944
|
-
shadowed: boolean;
|
|
945
|
-
finding_id: string;
|
|
946
|
-
loop_run_id: string | null;
|
|
947
|
-
detector_id: string;
|
|
948
|
-
anomaly_kind: string;
|
|
949
|
-
suppressed: boolean;
|
|
950
|
-
outcome_by: string | null;
|
|
951
|
-
outcome_at: string | null;
|
|
952
|
-
outcome_note: string | null;
|
|
953
|
-
}>;
|
|
372
|
+
}, z.core.$strip>;
|
|
954
373
|
export type FindingResponse = z.infer<typeof FindingResponse>;
|
|
955
374
|
/** `GET /api/v1/findings`. */
|
|
956
375
|
export declare const FindingListResponse: z.ZodObject<{
|
|
@@ -968,105 +387,25 @@ export declare const FindingListResponse: z.ZodObject<{
|
|
|
968
387
|
harness: z.ZodNullable<z.ZodString>;
|
|
969
388
|
shadowed: z.ZodBoolean;
|
|
970
389
|
suppressed: z.ZodBoolean;
|
|
971
|
-
outcome: z.ZodNullable<z.ZodEnum<
|
|
390
|
+
outcome: z.ZodNullable<z.ZodEnum<{
|
|
391
|
+
FALSE_POSITIVE: "FALSE_POSITIVE";
|
|
392
|
+
TRUE_POSITIVE: "TRUE_POSITIVE";
|
|
393
|
+
}>>;
|
|
972
394
|
outcome_by: z.ZodNullable<z.ZodString>;
|
|
973
395
|
outcome_at: z.ZodNullable<z.ZodString>;
|
|
974
396
|
outcome_note: z.ZodNullable<z.ZodString>;
|
|
975
397
|
created_at: z.ZodString;
|
|
976
|
-
},
|
|
977
|
-
|
|
978
|
-
reason: string;
|
|
979
|
-
outcome: "FALSE_POSITIVE" | "TRUE_POSITIVE" | null;
|
|
980
|
-
harness: string | null;
|
|
981
|
-
severity: string;
|
|
982
|
-
session_id: string | null;
|
|
983
|
-
created_at: string;
|
|
984
|
-
trace_id: string;
|
|
985
|
-
disposition: string;
|
|
986
|
-
shadowed: boolean;
|
|
987
|
-
finding_id: string;
|
|
988
|
-
loop_run_id: string | null;
|
|
989
|
-
detector_id: string;
|
|
990
|
-
anomaly_kind: string;
|
|
991
|
-
suppressed: boolean;
|
|
992
|
-
outcome_by: string | null;
|
|
993
|
-
outcome_at: string | null;
|
|
994
|
-
outcome_note: string | null;
|
|
995
|
-
}, {
|
|
996
|
-
confidence: number;
|
|
997
|
-
reason: string;
|
|
998
|
-
outcome: "FALSE_POSITIVE" | "TRUE_POSITIVE" | null;
|
|
999
|
-
harness: string | null;
|
|
1000
|
-
severity: string;
|
|
1001
|
-
session_id: string | null;
|
|
1002
|
-
created_at: string;
|
|
1003
|
-
trace_id: string;
|
|
1004
|
-
disposition: string;
|
|
1005
|
-
shadowed: boolean;
|
|
1006
|
-
finding_id: string;
|
|
1007
|
-
loop_run_id: string | null;
|
|
1008
|
-
detector_id: string;
|
|
1009
|
-
anomaly_kind: string;
|
|
1010
|
-
suppressed: boolean;
|
|
1011
|
-
outcome_by: string | null;
|
|
1012
|
-
outcome_at: string | null;
|
|
1013
|
-
outcome_note: string | null;
|
|
1014
|
-
}>, "many">;
|
|
1015
|
-
}, "strip", z.ZodTypeAny, {
|
|
1016
|
-
findings: {
|
|
1017
|
-
confidence: number;
|
|
1018
|
-
reason: string;
|
|
1019
|
-
outcome: "FALSE_POSITIVE" | "TRUE_POSITIVE" | null;
|
|
1020
|
-
harness: string | null;
|
|
1021
|
-
severity: string;
|
|
1022
|
-
session_id: string | null;
|
|
1023
|
-
created_at: string;
|
|
1024
|
-
trace_id: string;
|
|
1025
|
-
disposition: string;
|
|
1026
|
-
shadowed: boolean;
|
|
1027
|
-
finding_id: string;
|
|
1028
|
-
loop_run_id: string | null;
|
|
1029
|
-
detector_id: string;
|
|
1030
|
-
anomaly_kind: string;
|
|
1031
|
-
suppressed: boolean;
|
|
1032
|
-
outcome_by: string | null;
|
|
1033
|
-
outcome_at: string | null;
|
|
1034
|
-
outcome_note: string | null;
|
|
1035
|
-
}[];
|
|
1036
|
-
}, {
|
|
1037
|
-
findings: {
|
|
1038
|
-
confidence: number;
|
|
1039
|
-
reason: string;
|
|
1040
|
-
outcome: "FALSE_POSITIVE" | "TRUE_POSITIVE" | null;
|
|
1041
|
-
harness: string | null;
|
|
1042
|
-
severity: string;
|
|
1043
|
-
session_id: string | null;
|
|
1044
|
-
created_at: string;
|
|
1045
|
-
trace_id: string;
|
|
1046
|
-
disposition: string;
|
|
1047
|
-
shadowed: boolean;
|
|
1048
|
-
finding_id: string;
|
|
1049
|
-
loop_run_id: string | null;
|
|
1050
|
-
detector_id: string;
|
|
1051
|
-
anomaly_kind: string;
|
|
1052
|
-
suppressed: boolean;
|
|
1053
|
-
outcome_by: string | null;
|
|
1054
|
-
outcome_at: string | null;
|
|
1055
|
-
outcome_note: string | null;
|
|
1056
|
-
}[];
|
|
1057
|
-
}>;
|
|
398
|
+
}, z.core.$strip>>;
|
|
399
|
+
}, z.core.$strip>;
|
|
1058
400
|
export type FindingListResponse = z.infer<typeof FindingListResponse>;
|
|
1059
401
|
/** `POST /api/v1/findings/:findingId/adjudicate`. */
|
|
1060
402
|
export declare const FindingAdjudicationResponse: z.ZodObject<{
|
|
1061
403
|
finding_id: z.ZodString;
|
|
1062
|
-
outcome: z.ZodEnum<
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
},
|
|
1067
|
-
outcome: "FALSE_POSITIVE" | "TRUE_POSITIVE";
|
|
1068
|
-
finding_id: string;
|
|
1069
|
-
}>;
|
|
404
|
+
outcome: z.ZodEnum<{
|
|
405
|
+
FALSE_POSITIVE: "FALSE_POSITIVE";
|
|
406
|
+
TRUE_POSITIVE: "TRUE_POSITIVE";
|
|
407
|
+
}>;
|
|
408
|
+
}, z.core.$strip>;
|
|
1070
409
|
export type FindingAdjudicationResponse = z.infer<typeof FindingAdjudicationResponse>;
|
|
1071
410
|
/** `GET /api/v1/findings/stats`: precision per detector, over adjudicated findings. */
|
|
1072
411
|
export declare const FindingStatsResponse: z.ZodObject<{
|
|
@@ -1078,120 +417,34 @@ export declare const FindingStatsResponse: z.ZodObject<{
|
|
|
1078
417
|
adjudicated: z.ZodNumber;
|
|
1079
418
|
false_positives: z.ZodNumber;
|
|
1080
419
|
false_positive_rate: z.ZodNullable<z.ZodNumber>;
|
|
1081
|
-
},
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
detector_id: string;
|
|
1085
|
-
anomaly_kind: string;
|
|
1086
|
-
total_findings: number;
|
|
1087
|
-
false_positives: number;
|
|
1088
|
-
false_positive_rate: number | null;
|
|
1089
|
-
}, {
|
|
1090
|
-
adjudicated: number;
|
|
1091
|
-
shadowed: boolean;
|
|
1092
|
-
detector_id: string;
|
|
1093
|
-
anomaly_kind: string;
|
|
1094
|
-
total_findings: number;
|
|
1095
|
-
false_positives: number;
|
|
1096
|
-
false_positive_rate: number | null;
|
|
1097
|
-
}>, "many">;
|
|
1098
|
-
caveats: z.ZodArray<z.ZodString, "many">;
|
|
1099
|
-
}, "strip", z.ZodTypeAny, {
|
|
1100
|
-
detectors: {
|
|
1101
|
-
adjudicated: number;
|
|
1102
|
-
shadowed: boolean;
|
|
1103
|
-
detector_id: string;
|
|
1104
|
-
anomaly_kind: string;
|
|
1105
|
-
total_findings: number;
|
|
1106
|
-
false_positives: number;
|
|
1107
|
-
false_positive_rate: number | null;
|
|
1108
|
-
}[];
|
|
1109
|
-
caveats: string[];
|
|
1110
|
-
}, {
|
|
1111
|
-
detectors: {
|
|
1112
|
-
adjudicated: number;
|
|
1113
|
-
shadowed: boolean;
|
|
1114
|
-
detector_id: string;
|
|
1115
|
-
anomaly_kind: string;
|
|
1116
|
-
total_findings: number;
|
|
1117
|
-
false_positives: number;
|
|
1118
|
-
false_positive_rate: number | null;
|
|
1119
|
-
}[];
|
|
1120
|
-
caveats: string[];
|
|
1121
|
-
}>;
|
|
420
|
+
}, z.core.$strip>>;
|
|
421
|
+
caveats: z.ZodArray<z.ZodString>;
|
|
422
|
+
}, z.core.$strip>;
|
|
1122
423
|
export type FindingStatsResponse = z.infer<typeof FindingStatsResponse>;
|
|
1123
424
|
/** `GET /api/v1/findings/response-echo/report` (`responseInjectionCorpusService.ts`). */
|
|
1124
425
|
export declare const ResponseEchoReportResponse: z.ZodObject<{
|
|
1125
426
|
window: z.ZodObject<{
|
|
1126
427
|
since: z.ZodString;
|
|
1127
428
|
until: z.ZodString;
|
|
1128
|
-
},
|
|
1129
|
-
since: string;
|
|
1130
|
-
until: string;
|
|
1131
|
-
}, {
|
|
1132
|
-
since: string;
|
|
1133
|
-
until: string;
|
|
1134
|
-
}>;
|
|
429
|
+
}, z.core.$strip>;
|
|
1135
430
|
tracesIngested: z.ZodNumber;
|
|
1136
431
|
refusal: z.ZodNullable<z.ZodString>;
|
|
1137
432
|
patterns: z.ZodArray<z.ZodObject<{
|
|
1138
|
-
pattern: z.ZodEnum<
|
|
433
|
+
pattern: z.ZodEnum<{
|
|
434
|
+
"override-instructions": "override-instructions";
|
|
435
|
+
"reveal-system-prompt": "reveal-system-prompt";
|
|
436
|
+
"role-reassignment": "role-reassignment";
|
|
437
|
+
"guardrail-bypass": "guardrail-bypass";
|
|
438
|
+
"instruction-boundary-forgery": "instruction-boundary-forgery";
|
|
439
|
+
}>;
|
|
1139
440
|
findings: z.ZodNumber;
|
|
1140
441
|
adjudicated: z.ZodNumber;
|
|
1141
442
|
truePositives: z.ZodNumber;
|
|
1142
443
|
falsePositives: z.ZodNumber;
|
|
1143
444
|
falsePositiveRate: z.ZodNullable<z.ZodNumber>;
|
|
1144
445
|
refusal: z.ZodNullable<z.ZodString>;
|
|
1145
|
-
},
|
|
1146
|
-
|
|
1147
|
-
refusal: string | null;
|
|
1148
|
-
pattern: "override-instructions" | "reveal-system-prompt" | "role-reassignment" | "guardrail-bypass" | "instruction-boundary-forgery";
|
|
1149
|
-
adjudicated: number;
|
|
1150
|
-
falsePositives: number;
|
|
1151
|
-
falsePositiveRate: number | null;
|
|
1152
|
-
truePositives: number;
|
|
1153
|
-
}, {
|
|
1154
|
-
findings: number;
|
|
1155
|
-
refusal: string | null;
|
|
1156
|
-
pattern: "override-instructions" | "reveal-system-prompt" | "role-reassignment" | "guardrail-bypass" | "instruction-boundary-forgery";
|
|
1157
|
-
adjudicated: number;
|
|
1158
|
-
falsePositives: number;
|
|
1159
|
-
falsePositiveRate: number | null;
|
|
1160
|
-
truePositives: number;
|
|
1161
|
-
}>, "many">;
|
|
1162
|
-
}, "strip", z.ZodTypeAny, {
|
|
1163
|
-
refusal: string | null;
|
|
1164
|
-
window: {
|
|
1165
|
-
since: string;
|
|
1166
|
-
until: string;
|
|
1167
|
-
};
|
|
1168
|
-
tracesIngested: number;
|
|
1169
|
-
patterns: {
|
|
1170
|
-
findings: number;
|
|
1171
|
-
refusal: string | null;
|
|
1172
|
-
pattern: "override-instructions" | "reveal-system-prompt" | "role-reassignment" | "guardrail-bypass" | "instruction-boundary-forgery";
|
|
1173
|
-
adjudicated: number;
|
|
1174
|
-
falsePositives: number;
|
|
1175
|
-
falsePositiveRate: number | null;
|
|
1176
|
-
truePositives: number;
|
|
1177
|
-
}[];
|
|
1178
|
-
}, {
|
|
1179
|
-
refusal: string | null;
|
|
1180
|
-
window: {
|
|
1181
|
-
since: string;
|
|
1182
|
-
until: string;
|
|
1183
|
-
};
|
|
1184
|
-
tracesIngested: number;
|
|
1185
|
-
patterns: {
|
|
1186
|
-
findings: number;
|
|
1187
|
-
refusal: string | null;
|
|
1188
|
-
pattern: "override-instructions" | "reveal-system-prompt" | "role-reassignment" | "guardrail-bypass" | "instruction-boundary-forgery";
|
|
1189
|
-
adjudicated: number;
|
|
1190
|
-
falsePositives: number;
|
|
1191
|
-
falsePositiveRate: number | null;
|
|
1192
|
-
truePositives: number;
|
|
1193
|
-
}[];
|
|
1194
|
-
}>;
|
|
446
|
+
}, z.core.$strip>>;
|
|
447
|
+
}, z.core.$strip>;
|
|
1195
448
|
export type ResponseEchoReportResponse = z.infer<typeof ResponseEchoReportResponse>;
|
|
1196
449
|
/** A sealed Merkle root as `GET /api/v1/integrity/roots` selects it (raw SQL, so snake_case and Postgres timestamp text). */
|
|
1197
450
|
export declare const IntegrityRootSummaryResponse: z.ZodObject<{
|
|
@@ -1205,35 +458,12 @@ export declare const IntegrityRootSummaryResponse: z.ZodObject<{
|
|
|
1205
458
|
signature_alg: z.ZodNullable<z.ZodString>;
|
|
1206
459
|
signing_key_id: z.ZodNullable<z.ZodString>;
|
|
1207
460
|
sealed_at: z.ZodString;
|
|
1208
|
-
},
|
|
1209
|
-
loop_run_id: string | null;
|
|
1210
|
-
root_id: string;
|
|
1211
|
-
leaf_schema_version: number;
|
|
1212
|
-
merkle_root: string;
|
|
1213
|
-
leaf_count: number;
|
|
1214
|
-
first_trace_at: string;
|
|
1215
|
-
last_trace_at: string;
|
|
1216
|
-
signature_alg: string | null;
|
|
1217
|
-
signing_key_id: string | null;
|
|
1218
|
-
sealed_at: string;
|
|
1219
|
-
}, {
|
|
1220
|
-
loop_run_id: string | null;
|
|
1221
|
-
root_id: string;
|
|
1222
|
-
leaf_schema_version: number;
|
|
1223
|
-
merkle_root: string;
|
|
1224
|
-
leaf_count: number;
|
|
1225
|
-
first_trace_at: string;
|
|
1226
|
-
last_trace_at: string;
|
|
1227
|
-
signature_alg: string | null;
|
|
1228
|
-
signing_key_id: string | null;
|
|
1229
|
-
sealed_at: string;
|
|
1230
|
-
}>;
|
|
461
|
+
}, z.core.$strip>;
|
|
1231
462
|
export type IntegrityRootSummaryResponse = z.infer<typeof IntegrityRootSummaryResponse>;
|
|
1232
463
|
/** `GET /api/v1/integrity/roots`: the workspace's sealed roots, newest first (at most 50). */
|
|
1233
464
|
export declare const IntegrityRootListResponse: z.ZodObject<{
|
|
1234
465
|
listProperty: z.ZodLiteral<"data">;
|
|
1235
466
|
rowCase: z.ZodLiteral<"snake">;
|
|
1236
|
-
} & {
|
|
1237
467
|
ok: z.ZodLiteral<true>;
|
|
1238
468
|
data: z.ZodArray<z.ZodObject<{
|
|
1239
469
|
root_id: z.ZodString;
|
|
@@ -1246,65 +476,9 @@ export declare const IntegrityRootListResponse: z.ZodObject<{
|
|
|
1246
476
|
signature_alg: z.ZodNullable<z.ZodString>;
|
|
1247
477
|
signing_key_id: z.ZodNullable<z.ZodString>;
|
|
1248
478
|
sealed_at: z.ZodString;
|
|
1249
|
-
},
|
|
1250
|
-
loop_run_id: string | null;
|
|
1251
|
-
root_id: string;
|
|
1252
|
-
leaf_schema_version: number;
|
|
1253
|
-
merkle_root: string;
|
|
1254
|
-
leaf_count: number;
|
|
1255
|
-
first_trace_at: string;
|
|
1256
|
-
last_trace_at: string;
|
|
1257
|
-
signature_alg: string | null;
|
|
1258
|
-
signing_key_id: string | null;
|
|
1259
|
-
sealed_at: string;
|
|
1260
|
-
}, {
|
|
1261
|
-
loop_run_id: string | null;
|
|
1262
|
-
root_id: string;
|
|
1263
|
-
leaf_schema_version: number;
|
|
1264
|
-
merkle_root: string;
|
|
1265
|
-
leaf_count: number;
|
|
1266
|
-
first_trace_at: string;
|
|
1267
|
-
last_trace_at: string;
|
|
1268
|
-
signature_alg: string | null;
|
|
1269
|
-
signing_key_id: string | null;
|
|
1270
|
-
sealed_at: string;
|
|
1271
|
-
}>, "many">;
|
|
479
|
+
}, z.core.$strip>>;
|
|
1272
480
|
leafSchemaVersion: z.ZodNumber;
|
|
1273
|
-
},
|
|
1274
|
-
ok: true;
|
|
1275
|
-
data: {
|
|
1276
|
-
loop_run_id: string | null;
|
|
1277
|
-
root_id: string;
|
|
1278
|
-
leaf_schema_version: number;
|
|
1279
|
-
merkle_root: string;
|
|
1280
|
-
leaf_count: number;
|
|
1281
|
-
first_trace_at: string;
|
|
1282
|
-
last_trace_at: string;
|
|
1283
|
-
signature_alg: string | null;
|
|
1284
|
-
signing_key_id: string | null;
|
|
1285
|
-
sealed_at: string;
|
|
1286
|
-
}[];
|
|
1287
|
-
listProperty: "data";
|
|
1288
|
-
rowCase: "snake";
|
|
1289
|
-
leafSchemaVersion: number;
|
|
1290
|
-
}, {
|
|
1291
|
-
ok: true;
|
|
1292
|
-
data: {
|
|
1293
|
-
loop_run_id: string | null;
|
|
1294
|
-
root_id: string;
|
|
1295
|
-
leaf_schema_version: number;
|
|
1296
|
-
merkle_root: string;
|
|
1297
|
-
leaf_count: number;
|
|
1298
|
-
first_trace_at: string;
|
|
1299
|
-
last_trace_at: string;
|
|
1300
|
-
signature_alg: string | null;
|
|
1301
|
-
signing_key_id: string | null;
|
|
1302
|
-
sealed_at: string;
|
|
1303
|
-
}[];
|
|
1304
|
-
listProperty: "data";
|
|
1305
|
-
rowCase: "snake";
|
|
1306
|
-
leafSchemaVersion: number;
|
|
1307
|
-
}>;
|
|
481
|
+
}, z.core.$strip>;
|
|
1308
482
|
export type IntegrityRootListResponse = z.infer<typeof IntegrityRootListResponse>;
|
|
1309
483
|
/** Every column of a `trace_merkle_roots` row (`SELECT *`). */
|
|
1310
484
|
export declare const IntegrityRootRowResponse: z.ZodObject<{
|
|
@@ -1318,66 +492,24 @@ export declare const IntegrityRootRowResponse: z.ZodObject<{
|
|
|
1318
492
|
signature_alg: z.ZodNullable<z.ZodString>;
|
|
1319
493
|
signing_key_id: z.ZodNullable<z.ZodString>;
|
|
1320
494
|
sealed_at: z.ZodString;
|
|
1321
|
-
} & {
|
|
1322
495
|
workspace_id: z.ZodString;
|
|
1323
496
|
sample_preimage: z.ZodString;
|
|
1324
497
|
signature: z.ZodNullable<z.ZodString>;
|
|
1325
498
|
previous_root: z.ZodNullable<z.ZodString>;
|
|
1326
499
|
signing_preimage_version: z.ZodNumber;
|
|
1327
|
-
},
|
|
1328
|
-
workspace_id: string;
|
|
1329
|
-
loop_run_id: string | null;
|
|
1330
|
-
root_id: string;
|
|
1331
|
-
leaf_schema_version: number;
|
|
1332
|
-
merkle_root: string;
|
|
1333
|
-
leaf_count: number;
|
|
1334
|
-
first_trace_at: string;
|
|
1335
|
-
last_trace_at: string;
|
|
1336
|
-
signature_alg: string | null;
|
|
1337
|
-
signing_key_id: string | null;
|
|
1338
|
-
sealed_at: string;
|
|
1339
|
-
sample_preimage: string;
|
|
1340
|
-
signature: string | null;
|
|
1341
|
-
previous_root: string | null;
|
|
1342
|
-
signing_preimage_version: number;
|
|
1343
|
-
}, {
|
|
1344
|
-
workspace_id: string;
|
|
1345
|
-
loop_run_id: string | null;
|
|
1346
|
-
root_id: string;
|
|
1347
|
-
leaf_schema_version: number;
|
|
1348
|
-
merkle_root: string;
|
|
1349
|
-
leaf_count: number;
|
|
1350
|
-
first_trace_at: string;
|
|
1351
|
-
last_trace_at: string;
|
|
1352
|
-
signature_alg: string | null;
|
|
1353
|
-
signing_key_id: string | null;
|
|
1354
|
-
sealed_at: string;
|
|
1355
|
-
sample_preimage: string;
|
|
1356
|
-
signature: string | null;
|
|
1357
|
-
previous_root: string | null;
|
|
1358
|
-
signing_preimage_version: number;
|
|
1359
|
-
}>;
|
|
500
|
+
}, z.core.$strip>;
|
|
1360
501
|
export type IntegrityRootRowResponse = z.infer<typeof IntegrityRootRowResponse>;
|
|
1361
502
|
/** One leaf of a sealed root. */
|
|
1362
503
|
export declare const IntegrityLeafResponse: z.ZodObject<{
|
|
1363
504
|
trace_id: z.ZodString;
|
|
1364
505
|
leaf_index: z.ZodNumber;
|
|
1365
506
|
leaf_hash: z.ZodString;
|
|
1366
|
-
},
|
|
1367
|
-
trace_id: string;
|
|
1368
|
-
leaf_index: number;
|
|
1369
|
-
leaf_hash: string;
|
|
1370
|
-
}, {
|
|
1371
|
-
trace_id: string;
|
|
1372
|
-
leaf_index: number;
|
|
1373
|
-
leaf_hash: string;
|
|
1374
|
-
}>;
|
|
507
|
+
}, z.core.$strip>;
|
|
1375
508
|
export type IntegrityLeafResponse = z.infer<typeof IntegrityLeafResponse>;
|
|
1376
509
|
/** `GET /api/v1/integrity/roots/:rootId`: the root and the leaves it covers, in order. */
|
|
1377
510
|
export declare const IntegrityRootDetailResponse: z.ZodObject<{
|
|
1378
511
|
listProperty: z.ZodLiteral<"leaves">;
|
|
1379
512
|
rowCase: z.ZodLiteral<"snake">;
|
|
1380
|
-
} & {
|
|
1381
513
|
ok: z.ZodLiteral<true>;
|
|
1382
514
|
root: z.ZodObject<{
|
|
1383
515
|
root_id: z.ZodString;
|
|
@@ -1390,141 +522,34 @@ export declare const IntegrityRootDetailResponse: z.ZodObject<{
|
|
|
1390
522
|
signature_alg: z.ZodNullable<z.ZodString>;
|
|
1391
523
|
signing_key_id: z.ZodNullable<z.ZodString>;
|
|
1392
524
|
sealed_at: z.ZodString;
|
|
1393
|
-
} & {
|
|
1394
525
|
workspace_id: z.ZodString;
|
|
1395
526
|
sample_preimage: z.ZodString;
|
|
1396
527
|
signature: z.ZodNullable<z.ZodString>;
|
|
1397
528
|
previous_root: z.ZodNullable<z.ZodString>;
|
|
1398
529
|
signing_preimage_version: z.ZodNumber;
|
|
1399
|
-
},
|
|
1400
|
-
workspace_id: string;
|
|
1401
|
-
loop_run_id: string | null;
|
|
1402
|
-
root_id: string;
|
|
1403
|
-
leaf_schema_version: number;
|
|
1404
|
-
merkle_root: string;
|
|
1405
|
-
leaf_count: number;
|
|
1406
|
-
first_trace_at: string;
|
|
1407
|
-
last_trace_at: string;
|
|
1408
|
-
signature_alg: string | null;
|
|
1409
|
-
signing_key_id: string | null;
|
|
1410
|
-
sealed_at: string;
|
|
1411
|
-
sample_preimage: string;
|
|
1412
|
-
signature: string | null;
|
|
1413
|
-
previous_root: string | null;
|
|
1414
|
-
signing_preimage_version: number;
|
|
1415
|
-
}, {
|
|
1416
|
-
workspace_id: string;
|
|
1417
|
-
loop_run_id: string | null;
|
|
1418
|
-
root_id: string;
|
|
1419
|
-
leaf_schema_version: number;
|
|
1420
|
-
merkle_root: string;
|
|
1421
|
-
leaf_count: number;
|
|
1422
|
-
first_trace_at: string;
|
|
1423
|
-
last_trace_at: string;
|
|
1424
|
-
signature_alg: string | null;
|
|
1425
|
-
signing_key_id: string | null;
|
|
1426
|
-
sealed_at: string;
|
|
1427
|
-
sample_preimage: string;
|
|
1428
|
-
signature: string | null;
|
|
1429
|
-
previous_root: string | null;
|
|
1430
|
-
signing_preimage_version: number;
|
|
1431
|
-
}>;
|
|
530
|
+
}, z.core.$strip>;
|
|
1432
531
|
leaves: z.ZodArray<z.ZodObject<{
|
|
1433
532
|
trace_id: z.ZodString;
|
|
1434
533
|
leaf_index: z.ZodNumber;
|
|
1435
534
|
leaf_hash: z.ZodString;
|
|
1436
|
-
},
|
|
1437
|
-
|
|
1438
|
-
leaf_index: number;
|
|
1439
|
-
leaf_hash: string;
|
|
1440
|
-
}, {
|
|
1441
|
-
trace_id: string;
|
|
1442
|
-
leaf_index: number;
|
|
1443
|
-
leaf_hash: string;
|
|
1444
|
-
}>, "many">;
|
|
1445
|
-
}, "strip", z.ZodTypeAny, {
|
|
1446
|
-
ok: true;
|
|
1447
|
-
listProperty: "leaves";
|
|
1448
|
-
rowCase: "snake";
|
|
1449
|
-
leaves: {
|
|
1450
|
-
trace_id: string;
|
|
1451
|
-
leaf_index: number;
|
|
1452
|
-
leaf_hash: string;
|
|
1453
|
-
}[];
|
|
1454
|
-
root: {
|
|
1455
|
-
workspace_id: string;
|
|
1456
|
-
loop_run_id: string | null;
|
|
1457
|
-
root_id: string;
|
|
1458
|
-
leaf_schema_version: number;
|
|
1459
|
-
merkle_root: string;
|
|
1460
|
-
leaf_count: number;
|
|
1461
|
-
first_trace_at: string;
|
|
1462
|
-
last_trace_at: string;
|
|
1463
|
-
signature_alg: string | null;
|
|
1464
|
-
signing_key_id: string | null;
|
|
1465
|
-
sealed_at: string;
|
|
1466
|
-
sample_preimage: string;
|
|
1467
|
-
signature: string | null;
|
|
1468
|
-
previous_root: string | null;
|
|
1469
|
-
signing_preimage_version: number;
|
|
1470
|
-
};
|
|
1471
|
-
}, {
|
|
1472
|
-
ok: true;
|
|
1473
|
-
listProperty: "leaves";
|
|
1474
|
-
rowCase: "snake";
|
|
1475
|
-
leaves: {
|
|
1476
|
-
trace_id: string;
|
|
1477
|
-
leaf_index: number;
|
|
1478
|
-
leaf_hash: string;
|
|
1479
|
-
}[];
|
|
1480
|
-
root: {
|
|
1481
|
-
workspace_id: string;
|
|
1482
|
-
loop_run_id: string | null;
|
|
1483
|
-
root_id: string;
|
|
1484
|
-
leaf_schema_version: number;
|
|
1485
|
-
merkle_root: string;
|
|
1486
|
-
leaf_count: number;
|
|
1487
|
-
first_trace_at: string;
|
|
1488
|
-
last_trace_at: string;
|
|
1489
|
-
signature_alg: string | null;
|
|
1490
|
-
signing_key_id: string | null;
|
|
1491
|
-
sealed_at: string;
|
|
1492
|
-
sample_preimage: string;
|
|
1493
|
-
signature: string | null;
|
|
1494
|
-
previous_root: string | null;
|
|
1495
|
-
signing_preimage_version: number;
|
|
1496
|
-
};
|
|
1497
|
-
}>;
|
|
535
|
+
}, z.core.$strip>>;
|
|
536
|
+
}, z.core.$strip>;
|
|
1498
537
|
export type IntegrityRootDetailResponse = z.infer<typeof IntegrityRootDetailResponse>;
|
|
1499
538
|
/** `POST /api/v1/integrity/roots/:rootId/recompute` (`traceRootSweep.ts` `recomputeRoot`). A mismatch is an answer, so every verdict is a 200. */
|
|
1500
539
|
export declare const IntegrityRecomputeResponse: z.ZodObject<{
|
|
1501
540
|
ok: z.ZodLiteral<true>;
|
|
1502
|
-
verdict: z.ZodEnum<
|
|
541
|
+
verdict: z.ZodEnum<{
|
|
542
|
+
match: "match";
|
|
543
|
+
mismatch: "mismatch";
|
|
544
|
+
missing_traces: "missing_traces";
|
|
545
|
+
}>;
|
|
1503
546
|
storedRoot: z.ZodString;
|
|
1504
547
|
recomputedRoot: z.ZodNullable<z.ZodString>;
|
|
1505
|
-
changedTraceIds: z.ZodArray<z.ZodString
|
|
1506
|
-
missingTraceIds: z.ZodArray<z.ZodString
|
|
1507
|
-
redactedTraceIds: z.ZodArray<z.ZodString
|
|
548
|
+
changedTraceIds: z.ZodArray<z.ZodString>;
|
|
549
|
+
missingTraceIds: z.ZodArray<z.ZodString>;
|
|
550
|
+
redactedTraceIds: z.ZodArray<z.ZodString>;
|
|
1508
551
|
retentionExpired: z.ZodBoolean;
|
|
1509
|
-
},
|
|
1510
|
-
ok: true;
|
|
1511
|
-
verdict: "match" | "mismatch" | "missing_traces";
|
|
1512
|
-
storedRoot: string;
|
|
1513
|
-
recomputedRoot: string | null;
|
|
1514
|
-
changedTraceIds: string[];
|
|
1515
|
-
missingTraceIds: string[];
|
|
1516
|
-
redactedTraceIds: string[];
|
|
1517
|
-
retentionExpired: boolean;
|
|
1518
|
-
}, {
|
|
1519
|
-
ok: true;
|
|
1520
|
-
verdict: "match" | "mismatch" | "missing_traces";
|
|
1521
|
-
storedRoot: string;
|
|
1522
|
-
recomputedRoot: string | null;
|
|
1523
|
-
changedTraceIds: string[];
|
|
1524
|
-
missingTraceIds: string[];
|
|
1525
|
-
redactedTraceIds: string[];
|
|
1526
|
-
retentionExpired: boolean;
|
|
1527
|
-
}>;
|
|
552
|
+
}, z.core.$strip>;
|
|
1528
553
|
export type IntegrityRecomputeResponse = z.infer<typeof IntegrityRecomputeResponse>;
|
|
1529
554
|
/**
|
|
1530
555
|
* `GET /api/v1/integrity/chain` (`traceRootSweep.ts` `verifyRootChain`). A
|
|
@@ -1536,51 +561,15 @@ export declare const IntegrityChainResponse: z.ZodObject<{
|
|
|
1536
561
|
workspaceId: z.ZodString;
|
|
1537
562
|
rootsWalked: z.ZodNumber;
|
|
1538
563
|
rootsNotWalked: z.ZodNumber;
|
|
1539
|
-
unchainedRootIds: z.ZodArray<z.ZodString
|
|
564
|
+
unchainedRootIds: z.ZodArray<z.ZodString>;
|
|
1540
565
|
breaks: z.ZodArray<z.ZodObject<{
|
|
1541
566
|
rootId: z.ZodString;
|
|
1542
567
|
namedPrevious: z.ZodString;
|
|
1543
568
|
precedingRootId: z.ZodString;
|
|
1544
569
|
precedingMerkleRoot: z.ZodString;
|
|
1545
|
-
},
|
|
1546
|
-
rootId: string;
|
|
1547
|
-
namedPrevious: string;
|
|
1548
|
-
precedingRootId: string;
|
|
1549
|
-
precedingMerkleRoot: string;
|
|
1550
|
-
}, {
|
|
1551
|
-
rootId: string;
|
|
1552
|
-
namedPrevious: string;
|
|
1553
|
-
precedingRootId: string;
|
|
1554
|
-
precedingMerkleRoot: string;
|
|
1555
|
-
}>, "many">;
|
|
570
|
+
}, z.core.$strip>>;
|
|
1556
571
|
intact: z.ZodBoolean;
|
|
1557
|
-
},
|
|
1558
|
-
workspaceId: string;
|
|
1559
|
-
ok: boolean;
|
|
1560
|
-
rootsWalked: number;
|
|
1561
|
-
rootsNotWalked: number;
|
|
1562
|
-
unchainedRootIds: string[];
|
|
1563
|
-
breaks: {
|
|
1564
|
-
rootId: string;
|
|
1565
|
-
namedPrevious: string;
|
|
1566
|
-
precedingRootId: string;
|
|
1567
|
-
precedingMerkleRoot: string;
|
|
1568
|
-
}[];
|
|
1569
|
-
intact: boolean;
|
|
1570
|
-
}, {
|
|
1571
|
-
workspaceId: string;
|
|
1572
|
-
ok: boolean;
|
|
1573
|
-
rootsWalked: number;
|
|
1574
|
-
rootsNotWalked: number;
|
|
1575
|
-
unchainedRootIds: string[];
|
|
1576
|
-
breaks: {
|
|
1577
|
-
rootId: string;
|
|
1578
|
-
namedPrevious: string;
|
|
1579
|
-
precedingRootId: string;
|
|
1580
|
-
precedingMerkleRoot: string;
|
|
1581
|
-
}[];
|
|
1582
|
-
intact: boolean;
|
|
1583
|
-
}>;
|
|
572
|
+
}, z.core.$strip>;
|
|
1584
573
|
export type IntegrityChainResponse = z.infer<typeof IntegrityChainResponse>;
|
|
1585
574
|
/**
|
|
1586
575
|
* `GET /api/v1/integrity/config-chain` (`harnessConfigService.ts`
|
|
@@ -1593,7 +582,7 @@ export declare const IntegrityConfigChainResponse: z.ZodObject<{
|
|
|
1593
582
|
harnessType: z.ZodNullable<z.ZodString>;
|
|
1594
583
|
snapshotsWalked: z.ZodNumber;
|
|
1595
584
|
snapshotsNotWalked: z.ZodNumber;
|
|
1596
|
-
unchainedSnapshotIds: z.ZodArray<z.ZodString
|
|
585
|
+
unchainedSnapshotIds: z.ZodArray<z.ZodString>;
|
|
1597
586
|
breaks: z.ZodArray<z.ZodObject<{
|
|
1598
587
|
snapshotId: z.ZodString;
|
|
1599
588
|
harnessType: z.ZodString;
|
|
@@ -1601,91 +590,17 @@ export declare const IntegrityConfigChainResponse: z.ZodObject<{
|
|
|
1601
590
|
namedPrevious: z.ZodString;
|
|
1602
591
|
precedingSnapshotId: z.ZodString;
|
|
1603
592
|
precedingContentHash: z.ZodString;
|
|
1604
|
-
},
|
|
1605
|
-
harnessType: string;
|
|
1606
|
-
filePath: string;
|
|
1607
|
-
namedPrevious: string;
|
|
1608
|
-
snapshotId: string;
|
|
1609
|
-
precedingSnapshotId: string;
|
|
1610
|
-
precedingContentHash: string;
|
|
1611
|
-
}, {
|
|
1612
|
-
harnessType: string;
|
|
1613
|
-
filePath: string;
|
|
1614
|
-
namedPrevious: string;
|
|
1615
|
-
snapshotId: string;
|
|
1616
|
-
precedingSnapshotId: string;
|
|
1617
|
-
precedingContentHash: string;
|
|
1618
|
-
}>, "many">;
|
|
593
|
+
}, z.core.$strip>>;
|
|
1619
594
|
contentMismatches: z.ZodArray<z.ZodObject<{
|
|
1620
595
|
snapshotId: z.ZodString;
|
|
1621
596
|
harnessType: z.ZodString;
|
|
1622
597
|
filePath: z.ZodString;
|
|
1623
598
|
storedHash: z.ZodString;
|
|
1624
599
|
recomputedHash: z.ZodString;
|
|
1625
|
-
},
|
|
1626
|
-
harnessType: string;
|
|
1627
|
-
filePath: string;
|
|
1628
|
-
snapshotId: string;
|
|
1629
|
-
storedHash: string;
|
|
1630
|
-
recomputedHash: string;
|
|
1631
|
-
}, {
|
|
1632
|
-
harnessType: string;
|
|
1633
|
-
filePath: string;
|
|
1634
|
-
snapshotId: string;
|
|
1635
|
-
storedHash: string;
|
|
1636
|
-
recomputedHash: string;
|
|
1637
|
-
}>, "many">;
|
|
600
|
+
}, z.core.$strip>>;
|
|
1638
601
|
snapshotsWithoutContent: z.ZodNumber;
|
|
1639
602
|
intact: z.ZodBoolean;
|
|
1640
|
-
},
|
|
1641
|
-
workspaceId: string;
|
|
1642
|
-
harnessType: string | null;
|
|
1643
|
-
ok: boolean;
|
|
1644
|
-
breaks: {
|
|
1645
|
-
harnessType: string;
|
|
1646
|
-
filePath: string;
|
|
1647
|
-
namedPrevious: string;
|
|
1648
|
-
snapshotId: string;
|
|
1649
|
-
precedingSnapshotId: string;
|
|
1650
|
-
precedingContentHash: string;
|
|
1651
|
-
}[];
|
|
1652
|
-
intact: boolean;
|
|
1653
|
-
snapshotsWalked: number;
|
|
1654
|
-
snapshotsNotWalked: number;
|
|
1655
|
-
unchainedSnapshotIds: string[];
|
|
1656
|
-
contentMismatches: {
|
|
1657
|
-
harnessType: string;
|
|
1658
|
-
filePath: string;
|
|
1659
|
-
snapshotId: string;
|
|
1660
|
-
storedHash: string;
|
|
1661
|
-
recomputedHash: string;
|
|
1662
|
-
}[];
|
|
1663
|
-
snapshotsWithoutContent: number;
|
|
1664
|
-
}, {
|
|
1665
|
-
workspaceId: string;
|
|
1666
|
-
harnessType: string | null;
|
|
1667
|
-
ok: boolean;
|
|
1668
|
-
breaks: {
|
|
1669
|
-
harnessType: string;
|
|
1670
|
-
filePath: string;
|
|
1671
|
-
namedPrevious: string;
|
|
1672
|
-
snapshotId: string;
|
|
1673
|
-
precedingSnapshotId: string;
|
|
1674
|
-
precedingContentHash: string;
|
|
1675
|
-
}[];
|
|
1676
|
-
intact: boolean;
|
|
1677
|
-
snapshotsWalked: number;
|
|
1678
|
-
snapshotsNotWalked: number;
|
|
1679
|
-
unchainedSnapshotIds: string[];
|
|
1680
|
-
contentMismatches: {
|
|
1681
|
-
harnessType: string;
|
|
1682
|
-
filePath: string;
|
|
1683
|
-
snapshotId: string;
|
|
1684
|
-
storedHash: string;
|
|
1685
|
-
recomputedHash: string;
|
|
1686
|
-
}[];
|
|
1687
|
-
snapshotsWithoutContent: number;
|
|
1688
|
-
}>;
|
|
603
|
+
}, z.core.$strip>;
|
|
1689
604
|
export type IntegrityConfigChainResponse = z.infer<typeof IntegrityConfigChainResponse>;
|
|
1690
605
|
/** `GET /api/v1/inventory/summary` (`devInventoryService.ts` `summarize`). */
|
|
1691
606
|
export declare const InventorySummaryResponse: z.ZodObject<{
|
|
@@ -1701,60 +616,8 @@ export declare const InventorySummaryResponse: z.ZodObject<{
|
|
|
1701
616
|
mcpServers: z.ZodNumber;
|
|
1702
617
|
ungovernedMcpServers: z.ZodNumber;
|
|
1703
618
|
skills: z.ZodNumber;
|
|
1704
|
-
},
|
|
1705
|
-
|
|
1706
|
-
devices: number;
|
|
1707
|
-
staleDevices: number;
|
|
1708
|
-
governedHarnesses: number;
|
|
1709
|
-
governedPercent: number | null;
|
|
1710
|
-
ungovernedHarnesses: number;
|
|
1711
|
-
staleGates: number;
|
|
1712
|
-
unverifiedHarnesses: number;
|
|
1713
|
-
mcpServers: number;
|
|
1714
|
-
ungovernedMcpServers: number;
|
|
1715
|
-
skills: number;
|
|
1716
|
-
}, {
|
|
1717
|
-
harnesses: number;
|
|
1718
|
-
devices: number;
|
|
1719
|
-
staleDevices: number;
|
|
1720
|
-
governedHarnesses: number;
|
|
1721
|
-
governedPercent: number | null;
|
|
1722
|
-
ungovernedHarnesses: number;
|
|
1723
|
-
staleGates: number;
|
|
1724
|
-
unverifiedHarnesses: number;
|
|
1725
|
-
mcpServers: number;
|
|
1726
|
-
ungovernedMcpServers: number;
|
|
1727
|
-
skills: number;
|
|
1728
|
-
}>;
|
|
1729
|
-
}, "strip", z.ZodTypeAny, {
|
|
1730
|
-
data: {
|
|
1731
|
-
harnesses: number;
|
|
1732
|
-
devices: number;
|
|
1733
|
-
staleDevices: number;
|
|
1734
|
-
governedHarnesses: number;
|
|
1735
|
-
governedPercent: number | null;
|
|
1736
|
-
ungovernedHarnesses: number;
|
|
1737
|
-
staleGates: number;
|
|
1738
|
-
unverifiedHarnesses: number;
|
|
1739
|
-
mcpServers: number;
|
|
1740
|
-
ungovernedMcpServers: number;
|
|
1741
|
-
skills: number;
|
|
1742
|
-
};
|
|
1743
|
-
}, {
|
|
1744
|
-
data: {
|
|
1745
|
-
harnesses: number;
|
|
1746
|
-
devices: number;
|
|
1747
|
-
staleDevices: number;
|
|
1748
|
-
governedHarnesses: number;
|
|
1749
|
-
governedPercent: number | null;
|
|
1750
|
-
ungovernedHarnesses: number;
|
|
1751
|
-
staleGates: number;
|
|
1752
|
-
unverifiedHarnesses: number;
|
|
1753
|
-
mcpServers: number;
|
|
1754
|
-
ungovernedMcpServers: number;
|
|
1755
|
-
skills: number;
|
|
1756
|
-
};
|
|
1757
|
-
}>;
|
|
619
|
+
}, z.core.$strip>;
|
|
620
|
+
}, z.core.$strip>;
|
|
1758
621
|
export type InventorySummaryResponse = z.infer<typeof InventorySummaryResponse>;
|
|
1759
622
|
/** One machine (`devInventoryService.ts` `InventoryDeviceRow`). */
|
|
1760
623
|
export declare const InventoryDeviceResponse: z.ZodObject<{
|
|
@@ -1768,15 +631,7 @@ export declare const InventoryDeviceResponse: z.ZodObject<{
|
|
|
1768
631
|
total: z.ZodNumber;
|
|
1769
632
|
failed: z.ZodNumber;
|
|
1770
633
|
ranAt: z.ZodNumber;
|
|
1771
|
-
},
|
|
1772
|
-
failed: number;
|
|
1773
|
-
total: number;
|
|
1774
|
-
ranAt: number;
|
|
1775
|
-
}, {
|
|
1776
|
-
failed: number;
|
|
1777
|
-
total: number;
|
|
1778
|
-
ranAt: number;
|
|
1779
|
-
}>>;
|
|
634
|
+
}, z.core.$strip>>;
|
|
1780
635
|
firstSeenAt: z.ZodString;
|
|
1781
636
|
lastSeenAt: z.ZodString;
|
|
1782
637
|
stale: z.ZodBoolean;
|
|
@@ -1787,51 +642,7 @@ export declare const InventoryDeviceResponse: z.ZodObject<{
|
|
|
1787
642
|
mcpServers: z.ZodNumber;
|
|
1788
643
|
ungovernedMcpServers: z.ZodNumber;
|
|
1789
644
|
skills: z.ZodNumber;
|
|
1790
|
-
},
|
|
1791
|
-
workspace: string | null;
|
|
1792
|
-
stale: boolean;
|
|
1793
|
-
harnesses: number;
|
|
1794
|
-
deviceId: string;
|
|
1795
|
-
platform: string;
|
|
1796
|
-
ungovernedHarnesses: number;
|
|
1797
|
-
staleGates: number;
|
|
1798
|
-
mcpServers: number;
|
|
1799
|
-
ungovernedMcpServers: number;
|
|
1800
|
-
skills: number;
|
|
1801
|
-
hostname: string;
|
|
1802
|
-
cliVersion: string | null;
|
|
1803
|
-
reportedBy: string | null;
|
|
1804
|
-
guardProbes: {
|
|
1805
|
-
failed: number;
|
|
1806
|
-
total: number;
|
|
1807
|
-
ranAt: number;
|
|
1808
|
-
} | null;
|
|
1809
|
-
firstSeenAt: string;
|
|
1810
|
-
lastSeenAt: string;
|
|
1811
|
-
disconnectedAt: string | null;
|
|
1812
|
-
}, {
|
|
1813
|
-
workspace: string | null;
|
|
1814
|
-
stale: boolean;
|
|
1815
|
-
harnesses: number;
|
|
1816
|
-
deviceId: string;
|
|
1817
|
-
platform: string;
|
|
1818
|
-
ungovernedHarnesses: number;
|
|
1819
|
-
staleGates: number;
|
|
1820
|
-
mcpServers: number;
|
|
1821
|
-
ungovernedMcpServers: number;
|
|
1822
|
-
skills: number;
|
|
1823
|
-
hostname: string;
|
|
1824
|
-
cliVersion: string | null;
|
|
1825
|
-
reportedBy: string | null;
|
|
1826
|
-
guardProbes: {
|
|
1827
|
-
failed: number;
|
|
1828
|
-
total: number;
|
|
1829
|
-
ranAt: number;
|
|
1830
|
-
} | null;
|
|
1831
|
-
firstSeenAt: string;
|
|
1832
|
-
lastSeenAt: string;
|
|
1833
|
-
disconnectedAt: string | null;
|
|
1834
|
-
}>;
|
|
645
|
+
}, z.core.$strip>;
|
|
1835
646
|
export type InventoryDeviceResponse = z.infer<typeof InventoryDeviceResponse>;
|
|
1836
647
|
/** One harness on one machine (`InventoryHarnessRow`). */
|
|
1837
648
|
export declare const InventoryHarnessResponse: z.ZodObject<{
|
|
@@ -1841,52 +652,37 @@ export declare const InventoryHarnessResponse: z.ZodObject<{
|
|
|
1841
652
|
deviceStale: z.ZodBoolean;
|
|
1842
653
|
firstSeenAt: z.ZodString;
|
|
1843
654
|
lastSeenAt: z.ZodString;
|
|
1844
|
-
} & {
|
|
1845
655
|
harness: z.ZodString;
|
|
1846
656
|
version: z.ZodNullable<z.ZodString>;
|
|
1847
657
|
configured: z.ZodBoolean;
|
|
1848
|
-
gateKind: z.ZodEnum<
|
|
658
|
+
gateKind: z.ZodEnum<{
|
|
659
|
+
none: "none";
|
|
660
|
+
sdk: "sdk";
|
|
661
|
+
hook: "hook";
|
|
662
|
+
delegated: "delegated";
|
|
663
|
+
bridge: "bridge";
|
|
664
|
+
}>;
|
|
1849
665
|
gateInstalled: z.ZodNullable<z.ZodBoolean>;
|
|
1850
666
|
gateFile: z.ZodNullable<z.ZodString>;
|
|
1851
667
|
lastHookEventAt: z.ZodNullable<z.ZodString>;
|
|
1852
|
-
status: z.ZodEnum<
|
|
1853
|
-
|
|
668
|
+
status: z.ZodEnum<{
|
|
669
|
+
governed: "governed";
|
|
670
|
+
ungoverned: "ungoverned";
|
|
671
|
+
gate_stale: "gate_stale";
|
|
672
|
+
unverified: "unverified";
|
|
673
|
+
}>;
|
|
674
|
+
reason: z.ZodNullable<z.ZodEnum<{
|
|
675
|
+
guards_disabled: "guards_disabled";
|
|
676
|
+
no_gate_mechanism: "no_gate_mechanism";
|
|
677
|
+
not_connected: "not_connected";
|
|
678
|
+
gate_missing: "gate_missing";
|
|
679
|
+
gate_silent: "gate_silent";
|
|
680
|
+
awaiting_first_event: "awaiting_first_event";
|
|
681
|
+
gate_not_observable: "gate_not_observable";
|
|
682
|
+
disconnected: "disconnected";
|
|
683
|
+
}>>;
|
|
1854
684
|
reasonText: z.ZodNullable<z.ZodString>;
|
|
1855
|
-
},
|
|
1856
|
-
status: "governed" | "ungoverned" | "gate_stale" | "unverified";
|
|
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;
|
|
1859
|
-
harness: string;
|
|
1860
|
-
deviceId: string;
|
|
1861
|
-
hostname: string;
|
|
1862
|
-
firstSeenAt: string;
|
|
1863
|
-
lastSeenAt: string;
|
|
1864
|
-
itemId: string;
|
|
1865
|
-
deviceStale: boolean;
|
|
1866
|
-
configured: boolean;
|
|
1867
|
-
gateKind: "none" | "sdk" | "hook" | "delegated" | "bridge";
|
|
1868
|
-
gateInstalled: boolean | null;
|
|
1869
|
-
gateFile: string | null;
|
|
1870
|
-
lastHookEventAt: string | null;
|
|
1871
|
-
reasonText: string | null;
|
|
1872
|
-
}, {
|
|
1873
|
-
status: "governed" | "ungoverned" | "gate_stale" | "unverified";
|
|
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;
|
|
1876
|
-
harness: string;
|
|
1877
|
-
deviceId: string;
|
|
1878
|
-
hostname: string;
|
|
1879
|
-
firstSeenAt: string;
|
|
1880
|
-
lastSeenAt: string;
|
|
1881
|
-
itemId: string;
|
|
1882
|
-
deviceStale: boolean;
|
|
1883
|
-
configured: boolean;
|
|
1884
|
-
gateKind: "none" | "sdk" | "hook" | "delegated" | "bridge";
|
|
1885
|
-
gateInstalled: boolean | null;
|
|
1886
|
-
gateFile: string | null;
|
|
1887
|
-
lastHookEventAt: string | null;
|
|
1888
|
-
reasonText: string | null;
|
|
1889
|
-
}>;
|
|
685
|
+
}, z.core.$strip>;
|
|
1890
686
|
export type InventoryHarnessResponse = z.infer<typeof InventoryHarnessResponse>;
|
|
1891
687
|
/** One MCP server on one machine (`InventoryMcpServerRow`). */
|
|
1892
688
|
export declare const InventoryMcpServerResponse: z.ZodObject<{
|
|
@@ -1896,40 +692,21 @@ export declare const InventoryMcpServerResponse: z.ZodObject<{
|
|
|
1896
692
|
deviceStale: z.ZodBoolean;
|
|
1897
693
|
firstSeenAt: z.ZodString;
|
|
1898
694
|
lastSeenAt: z.ZodString;
|
|
1899
|
-
} & {
|
|
1900
695
|
server: z.ZodString;
|
|
1901
696
|
harness: z.ZodString;
|
|
1902
|
-
transport: z.ZodEnum<
|
|
697
|
+
transport: z.ZodEnum<{
|
|
698
|
+
unknown: "unknown";
|
|
699
|
+
stdio: "stdio";
|
|
700
|
+
http: "http";
|
|
701
|
+
sse: "sse";
|
|
702
|
+
}>;
|
|
1903
703
|
endpoint: z.ZodNullable<z.ZodString>;
|
|
1904
|
-
status: z.ZodEnum<
|
|
704
|
+
status: z.ZodEnum<{
|
|
705
|
+
governed: "governed";
|
|
706
|
+
ungoverned: "ungoverned";
|
|
707
|
+
}>;
|
|
1905
708
|
reason: z.ZodNullable<z.ZodString>;
|
|
1906
|
-
},
|
|
1907
|
-
status: "governed" | "ungoverned";
|
|
1908
|
-
reason: string | null;
|
|
1909
|
-
endpoint: string | null;
|
|
1910
|
-
server: string;
|
|
1911
|
-
harness: string;
|
|
1912
|
-
deviceId: string;
|
|
1913
|
-
hostname: string;
|
|
1914
|
-
firstSeenAt: string;
|
|
1915
|
-
lastSeenAt: string;
|
|
1916
|
-
itemId: string;
|
|
1917
|
-
deviceStale: boolean;
|
|
1918
|
-
transport: "unknown" | "stdio" | "http" | "sse";
|
|
1919
|
-
}, {
|
|
1920
|
-
status: "governed" | "ungoverned";
|
|
1921
|
-
reason: string | null;
|
|
1922
|
-
endpoint: string | null;
|
|
1923
|
-
server: string;
|
|
1924
|
-
harness: string;
|
|
1925
|
-
deviceId: string;
|
|
1926
|
-
hostname: string;
|
|
1927
|
-
firstSeenAt: string;
|
|
1928
|
-
lastSeenAt: string;
|
|
1929
|
-
itemId: string;
|
|
1930
|
-
deviceStale: boolean;
|
|
1931
|
-
transport: "unknown" | "stdio" | "http" | "sse";
|
|
1932
|
-
}>;
|
|
709
|
+
}, z.core.$strip>;
|
|
1933
710
|
export type InventoryMcpServerResponse = z.infer<typeof InventoryMcpServerResponse>;
|
|
1934
711
|
/** One skill bundle on one machine (`InventorySkillRow`). */
|
|
1935
712
|
export declare const InventorySkillResponse: z.ZodObject<{
|
|
@@ -1939,7 +716,6 @@ export declare const InventorySkillResponse: z.ZodObject<{
|
|
|
1939
716
|
deviceStale: z.ZodBoolean;
|
|
1940
717
|
firstSeenAt: z.ZodString;
|
|
1941
718
|
lastSeenAt: z.ZodString;
|
|
1942
|
-
} & {
|
|
1943
719
|
name: z.ZodString;
|
|
1944
720
|
source: z.ZodString;
|
|
1945
721
|
sha256: z.ZodNullable<z.ZodString>;
|
|
@@ -1947,71 +723,27 @@ export declare const InventorySkillResponse: z.ZodObject<{
|
|
|
1947
723
|
clean: z.ZodBoolean;
|
|
1948
724
|
findingsCount: z.ZodNumber;
|
|
1949
725
|
scriptCount: z.ZodNumber;
|
|
1950
|
-
},
|
|
1951
|
-
name: string;
|
|
1952
|
-
source: string;
|
|
1953
|
-
sha256: string | null;
|
|
1954
|
-
clean: boolean;
|
|
1955
|
-
deviceId: string;
|
|
1956
|
-
hostname: string;
|
|
1957
|
-
firstSeenAt: string;
|
|
1958
|
-
lastSeenAt: string;
|
|
1959
|
-
itemId: string;
|
|
1960
|
-
deviceStale: boolean;
|
|
1961
|
-
scanned: boolean;
|
|
1962
|
-
findingsCount: number;
|
|
1963
|
-
scriptCount: number;
|
|
1964
|
-
}, {
|
|
1965
|
-
name: string;
|
|
1966
|
-
source: string;
|
|
1967
|
-
sha256: string | null;
|
|
1968
|
-
clean: boolean;
|
|
1969
|
-
deviceId: string;
|
|
1970
|
-
hostname: string;
|
|
1971
|
-
firstSeenAt: string;
|
|
1972
|
-
lastSeenAt: string;
|
|
1973
|
-
itemId: string;
|
|
1974
|
-
deviceStale: boolean;
|
|
1975
|
-
scanned: boolean;
|
|
1976
|
-
findingsCount: number;
|
|
1977
|
-
scriptCount: number;
|
|
1978
|
-
}>;
|
|
726
|
+
}, z.core.$strip>;
|
|
1979
727
|
export type InventorySkillResponse = z.infer<typeof InventorySkillResponse>;
|
|
1980
728
|
/** One `intutic disconnect` a machine reported (`deviceDisconnectService.ts` `DeviceDisconnectRow`). */
|
|
1981
729
|
export declare const DeviceDisconnectRowResponse: z.ZodObject<{
|
|
1982
730
|
disconnectId: z.ZodString;
|
|
1983
731
|
hostname: z.ZodString;
|
|
1984
732
|
fingerprint: z.ZodString;
|
|
1985
|
-
scope: z.ZodEnum<
|
|
1986
|
-
|
|
733
|
+
scope: z.ZodEnum<{
|
|
734
|
+
harness: "harness";
|
|
735
|
+
machine: "machine";
|
|
736
|
+
}>;
|
|
737
|
+
harnesses: z.ZodArray<z.ZodString>;
|
|
1987
738
|
memberId: z.ZodNullable<z.ZodString>;
|
|
1988
739
|
reportedBy: z.ZodNullable<z.ZodString>;
|
|
1989
740
|
createdAt: z.ZodString;
|
|
1990
|
-
},
|
|
1991
|
-
scope: "harness" | "machine";
|
|
1992
|
-
memberId: string | null;
|
|
1993
|
-
harnesses: string[];
|
|
1994
|
-
createdAt: string;
|
|
1995
|
-
disconnectId: string;
|
|
1996
|
-
hostname: string;
|
|
1997
|
-
reportedBy: string | null;
|
|
1998
|
-
fingerprint: string;
|
|
1999
|
-
}, {
|
|
2000
|
-
scope: "harness" | "machine";
|
|
2001
|
-
memberId: string | null;
|
|
2002
|
-
harnesses: string[];
|
|
2003
|
-
createdAt: string;
|
|
2004
|
-
disconnectId: string;
|
|
2005
|
-
hostname: string;
|
|
2006
|
-
reportedBy: string | null;
|
|
2007
|
-
fingerprint: string;
|
|
2008
|
-
}>;
|
|
741
|
+
}, z.core.$strip>;
|
|
2009
742
|
export type DeviceDisconnectRowResponse = z.infer<typeof DeviceDisconnectRowResponse>;
|
|
2010
743
|
/** `GET /api/v1/inventory/devices`. */
|
|
2011
744
|
export declare const InventoryDeviceListResponse: z.ZodObject<{
|
|
2012
745
|
listProperty: z.ZodLiteral<"data">;
|
|
2013
746
|
rowCase: z.ZodLiteral<"camel">;
|
|
2014
|
-
} & {
|
|
2015
747
|
data: z.ZodArray<z.ZodObject<{
|
|
2016
748
|
deviceId: z.ZodString;
|
|
2017
749
|
hostname: z.ZodString;
|
|
@@ -2023,15 +755,7 @@ export declare const InventoryDeviceListResponse: z.ZodObject<{
|
|
|
2023
755
|
total: z.ZodNumber;
|
|
2024
756
|
failed: z.ZodNumber;
|
|
2025
757
|
ranAt: z.ZodNumber;
|
|
2026
|
-
},
|
|
2027
|
-
failed: number;
|
|
2028
|
-
total: number;
|
|
2029
|
-
ranAt: number;
|
|
2030
|
-
}, {
|
|
2031
|
-
failed: number;
|
|
2032
|
-
total: number;
|
|
2033
|
-
ranAt: number;
|
|
2034
|
-
}>>;
|
|
758
|
+
}, z.core.$strip>>;
|
|
2035
759
|
firstSeenAt: z.ZodString;
|
|
2036
760
|
lastSeenAt: z.ZodString;
|
|
2037
761
|
stale: z.ZodBoolean;
|
|
@@ -2042,110 +766,13 @@ export declare const InventoryDeviceListResponse: z.ZodObject<{
|
|
|
2042
766
|
mcpServers: z.ZodNumber;
|
|
2043
767
|
ungovernedMcpServers: z.ZodNumber;
|
|
2044
768
|
skills: z.ZodNumber;
|
|
2045
|
-
},
|
|
2046
|
-
|
|
2047
|
-
stale: boolean;
|
|
2048
|
-
harnesses: number;
|
|
2049
|
-
deviceId: string;
|
|
2050
|
-
platform: string;
|
|
2051
|
-
ungovernedHarnesses: number;
|
|
2052
|
-
staleGates: number;
|
|
2053
|
-
mcpServers: number;
|
|
2054
|
-
ungovernedMcpServers: number;
|
|
2055
|
-
skills: number;
|
|
2056
|
-
hostname: string;
|
|
2057
|
-
cliVersion: string | null;
|
|
2058
|
-
reportedBy: string | null;
|
|
2059
|
-
guardProbes: {
|
|
2060
|
-
failed: number;
|
|
2061
|
-
total: number;
|
|
2062
|
-
ranAt: number;
|
|
2063
|
-
} | null;
|
|
2064
|
-
firstSeenAt: string;
|
|
2065
|
-
lastSeenAt: string;
|
|
2066
|
-
disconnectedAt: string | null;
|
|
2067
|
-
}, {
|
|
2068
|
-
workspace: string | null;
|
|
2069
|
-
stale: boolean;
|
|
2070
|
-
harnesses: number;
|
|
2071
|
-
deviceId: string;
|
|
2072
|
-
platform: string;
|
|
2073
|
-
ungovernedHarnesses: number;
|
|
2074
|
-
staleGates: number;
|
|
2075
|
-
mcpServers: number;
|
|
2076
|
-
ungovernedMcpServers: number;
|
|
2077
|
-
skills: number;
|
|
2078
|
-
hostname: string;
|
|
2079
|
-
cliVersion: string | null;
|
|
2080
|
-
reportedBy: string | null;
|
|
2081
|
-
guardProbes: {
|
|
2082
|
-
failed: number;
|
|
2083
|
-
total: number;
|
|
2084
|
-
ranAt: number;
|
|
2085
|
-
} | null;
|
|
2086
|
-
firstSeenAt: string;
|
|
2087
|
-
lastSeenAt: string;
|
|
2088
|
-
disconnectedAt: string | null;
|
|
2089
|
-
}>, "many">;
|
|
2090
|
-
}, "strip", z.ZodTypeAny, {
|
|
2091
|
-
data: {
|
|
2092
|
-
workspace: string | null;
|
|
2093
|
-
stale: boolean;
|
|
2094
|
-
harnesses: number;
|
|
2095
|
-
deviceId: string;
|
|
2096
|
-
platform: string;
|
|
2097
|
-
ungovernedHarnesses: number;
|
|
2098
|
-
staleGates: number;
|
|
2099
|
-
mcpServers: number;
|
|
2100
|
-
ungovernedMcpServers: number;
|
|
2101
|
-
skills: number;
|
|
2102
|
-
hostname: string;
|
|
2103
|
-
cliVersion: string | null;
|
|
2104
|
-
reportedBy: string | null;
|
|
2105
|
-
guardProbes: {
|
|
2106
|
-
failed: number;
|
|
2107
|
-
total: number;
|
|
2108
|
-
ranAt: number;
|
|
2109
|
-
} | null;
|
|
2110
|
-
firstSeenAt: string;
|
|
2111
|
-
lastSeenAt: string;
|
|
2112
|
-
disconnectedAt: string | null;
|
|
2113
|
-
}[];
|
|
2114
|
-
listProperty: "data";
|
|
2115
|
-
rowCase: "camel";
|
|
2116
|
-
}, {
|
|
2117
|
-
data: {
|
|
2118
|
-
workspace: string | null;
|
|
2119
|
-
stale: boolean;
|
|
2120
|
-
harnesses: number;
|
|
2121
|
-
deviceId: string;
|
|
2122
|
-
platform: string;
|
|
2123
|
-
ungovernedHarnesses: number;
|
|
2124
|
-
staleGates: number;
|
|
2125
|
-
mcpServers: number;
|
|
2126
|
-
ungovernedMcpServers: number;
|
|
2127
|
-
skills: number;
|
|
2128
|
-
hostname: string;
|
|
2129
|
-
cliVersion: string | null;
|
|
2130
|
-
reportedBy: string | null;
|
|
2131
|
-
guardProbes: {
|
|
2132
|
-
failed: number;
|
|
2133
|
-
total: number;
|
|
2134
|
-
ranAt: number;
|
|
2135
|
-
} | null;
|
|
2136
|
-
firstSeenAt: string;
|
|
2137
|
-
lastSeenAt: string;
|
|
2138
|
-
disconnectedAt: string | null;
|
|
2139
|
-
}[];
|
|
2140
|
-
listProperty: "data";
|
|
2141
|
-
rowCase: "camel";
|
|
2142
|
-
}>;
|
|
769
|
+
}, z.core.$strip>>;
|
|
770
|
+
}, z.core.$strip>;
|
|
2143
771
|
export type InventoryDeviceListResponse = z.infer<typeof InventoryDeviceListResponse>;
|
|
2144
772
|
/** `GET /api/v1/inventory/harnesses` (JSON; `?format=csv` answers text). */
|
|
2145
773
|
export declare const InventoryHarnessListResponse: z.ZodObject<{
|
|
2146
774
|
listProperty: z.ZodLiteral<"data">;
|
|
2147
775
|
rowCase: z.ZodLiteral<"camel">;
|
|
2148
|
-
} & {
|
|
2149
776
|
data: z.ZodArray<z.ZodObject<{
|
|
2150
777
|
itemId: z.ZodString;
|
|
2151
778
|
deviceId: z.ZodString;
|
|
@@ -2153,101 +780,43 @@ export declare const InventoryHarnessListResponse: z.ZodObject<{
|
|
|
2153
780
|
deviceStale: z.ZodBoolean;
|
|
2154
781
|
firstSeenAt: z.ZodString;
|
|
2155
782
|
lastSeenAt: z.ZodString;
|
|
2156
|
-
} & {
|
|
2157
783
|
harness: z.ZodString;
|
|
2158
784
|
version: z.ZodNullable<z.ZodString>;
|
|
2159
785
|
configured: z.ZodBoolean;
|
|
2160
|
-
gateKind: z.ZodEnum<
|
|
786
|
+
gateKind: z.ZodEnum<{
|
|
787
|
+
none: "none";
|
|
788
|
+
sdk: "sdk";
|
|
789
|
+
hook: "hook";
|
|
790
|
+
delegated: "delegated";
|
|
791
|
+
bridge: "bridge";
|
|
792
|
+
}>;
|
|
2161
793
|
gateInstalled: z.ZodNullable<z.ZodBoolean>;
|
|
2162
794
|
gateFile: z.ZodNullable<z.ZodString>;
|
|
2163
795
|
lastHookEventAt: z.ZodNullable<z.ZodString>;
|
|
2164
|
-
status: z.ZodEnum<
|
|
2165
|
-
|
|
796
|
+
status: z.ZodEnum<{
|
|
797
|
+
governed: "governed";
|
|
798
|
+
ungoverned: "ungoverned";
|
|
799
|
+
gate_stale: "gate_stale";
|
|
800
|
+
unverified: "unverified";
|
|
801
|
+
}>;
|
|
802
|
+
reason: z.ZodNullable<z.ZodEnum<{
|
|
803
|
+
guards_disabled: "guards_disabled";
|
|
804
|
+
no_gate_mechanism: "no_gate_mechanism";
|
|
805
|
+
not_connected: "not_connected";
|
|
806
|
+
gate_missing: "gate_missing";
|
|
807
|
+
gate_silent: "gate_silent";
|
|
808
|
+
awaiting_first_event: "awaiting_first_event";
|
|
809
|
+
gate_not_observable: "gate_not_observable";
|
|
810
|
+
disconnected: "disconnected";
|
|
811
|
+
}>>;
|
|
2166
812
|
reasonText: z.ZodNullable<z.ZodString>;
|
|
2167
|
-
},
|
|
2168
|
-
|
|
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;
|
|
2171
|
-
harness: string;
|
|
2172
|
-
deviceId: string;
|
|
2173
|
-
hostname: string;
|
|
2174
|
-
firstSeenAt: string;
|
|
2175
|
-
lastSeenAt: string;
|
|
2176
|
-
itemId: string;
|
|
2177
|
-
deviceStale: boolean;
|
|
2178
|
-
configured: boolean;
|
|
2179
|
-
gateKind: "none" | "sdk" | "hook" | "delegated" | "bridge";
|
|
2180
|
-
gateInstalled: boolean | null;
|
|
2181
|
-
gateFile: string | null;
|
|
2182
|
-
lastHookEventAt: string | null;
|
|
2183
|
-
reasonText: string | null;
|
|
2184
|
-
}, {
|
|
2185
|
-
status: "governed" | "ungoverned" | "gate_stale" | "unverified";
|
|
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;
|
|
2188
|
-
harness: string;
|
|
2189
|
-
deviceId: string;
|
|
2190
|
-
hostname: string;
|
|
2191
|
-
firstSeenAt: string;
|
|
2192
|
-
lastSeenAt: string;
|
|
2193
|
-
itemId: string;
|
|
2194
|
-
deviceStale: boolean;
|
|
2195
|
-
configured: boolean;
|
|
2196
|
-
gateKind: "none" | "sdk" | "hook" | "delegated" | "bridge";
|
|
2197
|
-
gateInstalled: boolean | null;
|
|
2198
|
-
gateFile: string | null;
|
|
2199
|
-
lastHookEventAt: string | null;
|
|
2200
|
-
reasonText: string | null;
|
|
2201
|
-
}>, "many">;
|
|
2202
|
-
}, "strip", z.ZodTypeAny, {
|
|
2203
|
-
data: {
|
|
2204
|
-
status: "governed" | "ungoverned" | "gate_stale" | "unverified";
|
|
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;
|
|
2207
|
-
harness: string;
|
|
2208
|
-
deviceId: string;
|
|
2209
|
-
hostname: string;
|
|
2210
|
-
firstSeenAt: string;
|
|
2211
|
-
lastSeenAt: string;
|
|
2212
|
-
itemId: string;
|
|
2213
|
-
deviceStale: boolean;
|
|
2214
|
-
configured: boolean;
|
|
2215
|
-
gateKind: "none" | "sdk" | "hook" | "delegated" | "bridge";
|
|
2216
|
-
gateInstalled: boolean | null;
|
|
2217
|
-
gateFile: string | null;
|
|
2218
|
-
lastHookEventAt: string | null;
|
|
2219
|
-
reasonText: string | null;
|
|
2220
|
-
}[];
|
|
2221
|
-
listProperty: "data";
|
|
2222
|
-
rowCase: "camel";
|
|
2223
|
-
}, {
|
|
2224
|
-
data: {
|
|
2225
|
-
status: "governed" | "ungoverned" | "gate_stale" | "unverified";
|
|
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;
|
|
2228
|
-
harness: string;
|
|
2229
|
-
deviceId: string;
|
|
2230
|
-
hostname: string;
|
|
2231
|
-
firstSeenAt: string;
|
|
2232
|
-
lastSeenAt: string;
|
|
2233
|
-
itemId: string;
|
|
2234
|
-
deviceStale: boolean;
|
|
2235
|
-
configured: boolean;
|
|
2236
|
-
gateKind: "none" | "sdk" | "hook" | "delegated" | "bridge";
|
|
2237
|
-
gateInstalled: boolean | null;
|
|
2238
|
-
gateFile: string | null;
|
|
2239
|
-
lastHookEventAt: string | null;
|
|
2240
|
-
reasonText: string | null;
|
|
2241
|
-
}[];
|
|
2242
|
-
listProperty: "data";
|
|
2243
|
-
rowCase: "camel";
|
|
2244
|
-
}>;
|
|
813
|
+
}, z.core.$strip>>;
|
|
814
|
+
}, z.core.$strip>;
|
|
2245
815
|
export type InventoryHarnessListResponse = z.infer<typeof InventoryHarnessListResponse>;
|
|
2246
816
|
/** `GET /api/v1/inventory/mcp-servers` (JSON; `?format=csv` answers text). */
|
|
2247
817
|
export declare const InventoryMcpServerListResponse: z.ZodObject<{
|
|
2248
818
|
listProperty: z.ZodLiteral<"data">;
|
|
2249
819
|
rowCase: z.ZodLiteral<"camel">;
|
|
2250
|
-
} & {
|
|
2251
820
|
data: z.ZodArray<z.ZodObject<{
|
|
2252
821
|
itemId: z.ZodString;
|
|
2253
822
|
deviceId: z.ZodString;
|
|
@@ -2255,81 +824,27 @@ export declare const InventoryMcpServerListResponse: z.ZodObject<{
|
|
|
2255
824
|
deviceStale: z.ZodBoolean;
|
|
2256
825
|
firstSeenAt: z.ZodString;
|
|
2257
826
|
lastSeenAt: z.ZodString;
|
|
2258
|
-
} & {
|
|
2259
827
|
server: z.ZodString;
|
|
2260
828
|
harness: z.ZodString;
|
|
2261
|
-
transport: z.ZodEnum<
|
|
829
|
+
transport: z.ZodEnum<{
|
|
830
|
+
unknown: "unknown";
|
|
831
|
+
stdio: "stdio";
|
|
832
|
+
http: "http";
|
|
833
|
+
sse: "sse";
|
|
834
|
+
}>;
|
|
2262
835
|
endpoint: z.ZodNullable<z.ZodString>;
|
|
2263
|
-
status: z.ZodEnum<
|
|
836
|
+
status: z.ZodEnum<{
|
|
837
|
+
governed: "governed";
|
|
838
|
+
ungoverned: "ungoverned";
|
|
839
|
+
}>;
|
|
2264
840
|
reason: z.ZodNullable<z.ZodString>;
|
|
2265
|
-
},
|
|
2266
|
-
|
|
2267
|
-
reason: string | null;
|
|
2268
|
-
endpoint: string | null;
|
|
2269
|
-
server: string;
|
|
2270
|
-
harness: string;
|
|
2271
|
-
deviceId: string;
|
|
2272
|
-
hostname: string;
|
|
2273
|
-
firstSeenAt: string;
|
|
2274
|
-
lastSeenAt: string;
|
|
2275
|
-
itemId: string;
|
|
2276
|
-
deviceStale: boolean;
|
|
2277
|
-
transport: "unknown" | "stdio" | "http" | "sse";
|
|
2278
|
-
}, {
|
|
2279
|
-
status: "governed" | "ungoverned";
|
|
2280
|
-
reason: string | null;
|
|
2281
|
-
endpoint: string | null;
|
|
2282
|
-
server: string;
|
|
2283
|
-
harness: string;
|
|
2284
|
-
deviceId: string;
|
|
2285
|
-
hostname: string;
|
|
2286
|
-
firstSeenAt: string;
|
|
2287
|
-
lastSeenAt: string;
|
|
2288
|
-
itemId: string;
|
|
2289
|
-
deviceStale: boolean;
|
|
2290
|
-
transport: "unknown" | "stdio" | "http" | "sse";
|
|
2291
|
-
}>, "many">;
|
|
2292
|
-
}, "strip", z.ZodTypeAny, {
|
|
2293
|
-
data: {
|
|
2294
|
-
status: "governed" | "ungoverned";
|
|
2295
|
-
reason: string | null;
|
|
2296
|
-
endpoint: string | null;
|
|
2297
|
-
server: string;
|
|
2298
|
-
harness: string;
|
|
2299
|
-
deviceId: string;
|
|
2300
|
-
hostname: string;
|
|
2301
|
-
firstSeenAt: string;
|
|
2302
|
-
lastSeenAt: string;
|
|
2303
|
-
itemId: string;
|
|
2304
|
-
deviceStale: boolean;
|
|
2305
|
-
transport: "unknown" | "stdio" | "http" | "sse";
|
|
2306
|
-
}[];
|
|
2307
|
-
listProperty: "data";
|
|
2308
|
-
rowCase: "camel";
|
|
2309
|
-
}, {
|
|
2310
|
-
data: {
|
|
2311
|
-
status: "governed" | "ungoverned";
|
|
2312
|
-
reason: string | null;
|
|
2313
|
-
endpoint: string | null;
|
|
2314
|
-
server: string;
|
|
2315
|
-
harness: string;
|
|
2316
|
-
deviceId: string;
|
|
2317
|
-
hostname: string;
|
|
2318
|
-
firstSeenAt: string;
|
|
2319
|
-
lastSeenAt: string;
|
|
2320
|
-
itemId: string;
|
|
2321
|
-
deviceStale: boolean;
|
|
2322
|
-
transport: "unknown" | "stdio" | "http" | "sse";
|
|
2323
|
-
}[];
|
|
2324
|
-
listProperty: "data";
|
|
2325
|
-
rowCase: "camel";
|
|
2326
|
-
}>;
|
|
841
|
+
}, z.core.$strip>>;
|
|
842
|
+
}, z.core.$strip>;
|
|
2327
843
|
export type InventoryMcpServerListResponse = z.infer<typeof InventoryMcpServerListResponse>;
|
|
2328
844
|
/** `GET /api/v1/inventory/skills`. */
|
|
2329
845
|
export declare const InventorySkillListResponse: z.ZodObject<{
|
|
2330
846
|
listProperty: z.ZodLiteral<"data">;
|
|
2331
847
|
rowCase: z.ZodLiteral<"camel">;
|
|
2332
|
-
} & {
|
|
2333
848
|
data: z.ZodArray<z.ZodObject<{
|
|
2334
849
|
itemId: z.ZodString;
|
|
2335
850
|
deviceId: z.ZodString;
|
|
@@ -2337,7 +852,6 @@ export declare const InventorySkillListResponse: z.ZodObject<{
|
|
|
2337
852
|
deviceStale: z.ZodBoolean;
|
|
2338
853
|
firstSeenAt: z.ZodString;
|
|
2339
854
|
lastSeenAt: z.ZodString;
|
|
2340
|
-
} & {
|
|
2341
855
|
name: z.ZodString;
|
|
2342
856
|
source: z.ZodString;
|
|
2343
857
|
sha256: z.ZodNullable<z.ZodString>;
|
|
@@ -2345,137 +859,31 @@ export declare const InventorySkillListResponse: z.ZodObject<{
|
|
|
2345
859
|
clean: z.ZodBoolean;
|
|
2346
860
|
findingsCount: z.ZodNumber;
|
|
2347
861
|
scriptCount: z.ZodNumber;
|
|
2348
|
-
},
|
|
2349
|
-
|
|
2350
|
-
source: string;
|
|
2351
|
-
sha256: string | null;
|
|
2352
|
-
clean: boolean;
|
|
2353
|
-
deviceId: string;
|
|
2354
|
-
hostname: string;
|
|
2355
|
-
firstSeenAt: string;
|
|
2356
|
-
lastSeenAt: string;
|
|
2357
|
-
itemId: string;
|
|
2358
|
-
deviceStale: boolean;
|
|
2359
|
-
scanned: boolean;
|
|
2360
|
-
findingsCount: number;
|
|
2361
|
-
scriptCount: number;
|
|
2362
|
-
}, {
|
|
2363
|
-
name: string;
|
|
2364
|
-
source: string;
|
|
2365
|
-
sha256: string | null;
|
|
2366
|
-
clean: boolean;
|
|
2367
|
-
deviceId: string;
|
|
2368
|
-
hostname: string;
|
|
2369
|
-
firstSeenAt: string;
|
|
2370
|
-
lastSeenAt: string;
|
|
2371
|
-
itemId: string;
|
|
2372
|
-
deviceStale: boolean;
|
|
2373
|
-
scanned: boolean;
|
|
2374
|
-
findingsCount: number;
|
|
2375
|
-
scriptCount: number;
|
|
2376
|
-
}>, "many">;
|
|
2377
|
-
}, "strip", z.ZodTypeAny, {
|
|
2378
|
-
data: {
|
|
2379
|
-
name: string;
|
|
2380
|
-
source: string;
|
|
2381
|
-
sha256: string | null;
|
|
2382
|
-
clean: boolean;
|
|
2383
|
-
deviceId: string;
|
|
2384
|
-
hostname: string;
|
|
2385
|
-
firstSeenAt: string;
|
|
2386
|
-
lastSeenAt: string;
|
|
2387
|
-
itemId: string;
|
|
2388
|
-
deviceStale: boolean;
|
|
2389
|
-
scanned: boolean;
|
|
2390
|
-
findingsCount: number;
|
|
2391
|
-
scriptCount: number;
|
|
2392
|
-
}[];
|
|
2393
|
-
listProperty: "data";
|
|
2394
|
-
rowCase: "camel";
|
|
2395
|
-
}, {
|
|
2396
|
-
data: {
|
|
2397
|
-
name: string;
|
|
2398
|
-
source: string;
|
|
2399
|
-
sha256: string | null;
|
|
2400
|
-
clean: boolean;
|
|
2401
|
-
deviceId: string;
|
|
2402
|
-
hostname: string;
|
|
2403
|
-
firstSeenAt: string;
|
|
2404
|
-
lastSeenAt: string;
|
|
2405
|
-
itemId: string;
|
|
2406
|
-
deviceStale: boolean;
|
|
2407
|
-
scanned: boolean;
|
|
2408
|
-
findingsCount: number;
|
|
2409
|
-
scriptCount: number;
|
|
2410
|
-
}[];
|
|
2411
|
-
listProperty: "data";
|
|
2412
|
-
rowCase: "camel";
|
|
2413
|
-
}>;
|
|
862
|
+
}, z.core.$strip>>;
|
|
863
|
+
}, z.core.$strip>;
|
|
2414
864
|
export type InventorySkillListResponse = z.infer<typeof InventorySkillListResponse>;
|
|
2415
865
|
/** `GET /api/v1/inventory/disconnects`, newest first. */
|
|
2416
866
|
export declare const DeviceDisconnectListResponse: z.ZodObject<{
|
|
2417
867
|
listProperty: z.ZodLiteral<"data">;
|
|
2418
868
|
rowCase: z.ZodLiteral<"camel">;
|
|
2419
|
-
} & {
|
|
2420
869
|
data: z.ZodArray<z.ZodObject<{
|
|
2421
870
|
disconnectId: z.ZodString;
|
|
2422
871
|
hostname: z.ZodString;
|
|
2423
872
|
fingerprint: z.ZodString;
|
|
2424
|
-
scope: z.ZodEnum<
|
|
2425
|
-
|
|
873
|
+
scope: z.ZodEnum<{
|
|
874
|
+
harness: "harness";
|
|
875
|
+
machine: "machine";
|
|
876
|
+
}>;
|
|
877
|
+
harnesses: z.ZodArray<z.ZodString>;
|
|
2426
878
|
memberId: z.ZodNullable<z.ZodString>;
|
|
2427
879
|
reportedBy: z.ZodNullable<z.ZodString>;
|
|
2428
880
|
createdAt: z.ZodString;
|
|
2429
|
-
},
|
|
2430
|
-
|
|
2431
|
-
memberId: string | null;
|
|
2432
|
-
harnesses: string[];
|
|
2433
|
-
createdAt: string;
|
|
2434
|
-
disconnectId: string;
|
|
2435
|
-
hostname: string;
|
|
2436
|
-
reportedBy: string | null;
|
|
2437
|
-
fingerprint: string;
|
|
2438
|
-
}, {
|
|
2439
|
-
scope: "harness" | "machine";
|
|
2440
|
-
memberId: string | null;
|
|
2441
|
-
harnesses: string[];
|
|
2442
|
-
createdAt: string;
|
|
2443
|
-
disconnectId: string;
|
|
2444
|
-
hostname: string;
|
|
2445
|
-
reportedBy: string | null;
|
|
2446
|
-
fingerprint: string;
|
|
2447
|
-
}>, "many">;
|
|
2448
|
-
}, "strip", z.ZodTypeAny, {
|
|
2449
|
-
data: {
|
|
2450
|
-
scope: "harness" | "machine";
|
|
2451
|
-
memberId: string | null;
|
|
2452
|
-
harnesses: string[];
|
|
2453
|
-
createdAt: string;
|
|
2454
|
-
disconnectId: string;
|
|
2455
|
-
hostname: string;
|
|
2456
|
-
reportedBy: string | null;
|
|
2457
|
-
fingerprint: string;
|
|
2458
|
-
}[];
|
|
2459
|
-
listProperty: "data";
|
|
2460
|
-
rowCase: "camel";
|
|
2461
|
-
}, {
|
|
2462
|
-
data: {
|
|
2463
|
-
scope: "harness" | "machine";
|
|
2464
|
-
memberId: string | null;
|
|
2465
|
-
harnesses: string[];
|
|
2466
|
-
createdAt: string;
|
|
2467
|
-
disconnectId: string;
|
|
2468
|
-
hostname: string;
|
|
2469
|
-
reportedBy: string | null;
|
|
2470
|
-
fingerprint: string;
|
|
2471
|
-
}[];
|
|
2472
|
-
listProperty: "data";
|
|
2473
|
-
rowCase: "camel";
|
|
2474
|
-
}>;
|
|
881
|
+
}, z.core.$strip>>;
|
|
882
|
+
}, z.core.$strip>;
|
|
2475
883
|
export type DeviceDisconnectListResponse = z.infer<typeof DeviceDisconnectListResponse>;
|
|
2476
884
|
/** One member's usage (`finopsService.ts` `getMemberUsage`). */
|
|
2477
885
|
export declare const MemberUsageRowResponse: z.ZodObject<{
|
|
2478
|
-
models: z.ZodArray<z.ZodString
|
|
886
|
+
models: z.ZodArray<z.ZodString>;
|
|
2479
887
|
activeDays: z.ZodNumber;
|
|
2480
888
|
totalCostUsd: z.ZodNumber;
|
|
2481
889
|
totalRawCostUsd: z.ZodNumber;
|
|
@@ -2485,38 +893,18 @@ export declare const MemberUsageRowResponse: z.ZodObject<{
|
|
|
2485
893
|
memberId: z.ZodNullable<z.ZodString>;
|
|
2486
894
|
displayName: z.ZodNullable<z.ZodString>;
|
|
2487
895
|
email: z.ZodNullable<z.ZodString>;
|
|
2488
|
-
},
|
|
2489
|
-
email: string | null;
|
|
2490
|
-
displayName: string | null;
|
|
2491
|
-
models: string[];
|
|
2492
|
-
memberId: string | null;
|
|
2493
|
-
activeDays: number;
|
|
2494
|
-
totalCostUsd: number;
|
|
2495
|
-
totalRawCostUsd: number;
|
|
2496
|
-
totalInputTokens: number;
|
|
2497
|
-
totalOutputTokens: number;
|
|
2498
|
-
traceCount: number;
|
|
2499
|
-
}, {
|
|
2500
|
-
email: string | null;
|
|
2501
|
-
displayName: string | null;
|
|
2502
|
-
models: string[];
|
|
2503
|
-
memberId: string | null;
|
|
2504
|
-
activeDays: number;
|
|
2505
|
-
totalCostUsd: number;
|
|
2506
|
-
totalRawCostUsd: number;
|
|
2507
|
-
totalInputTokens: number;
|
|
2508
|
-
totalOutputTokens: number;
|
|
2509
|
-
traceCount: number;
|
|
2510
|
-
}>;
|
|
896
|
+
}, z.core.$strip>;
|
|
2511
897
|
export type MemberUsageRowResponse = z.infer<typeof MemberUsageRowResponse>;
|
|
2512
898
|
/** `GET /api/v1/usage/members`. */
|
|
2513
899
|
export declare const MemberUsageListResponse: z.ZodObject<{
|
|
2514
900
|
listProperty: z.ZodLiteral<"members">;
|
|
2515
901
|
rowCase: z.ZodLiteral<"camel">;
|
|
2516
|
-
|
|
2517
|
-
|
|
902
|
+
scope: z.ZodEnum<{
|
|
903
|
+
workspace: "workspace";
|
|
904
|
+
self: "self";
|
|
905
|
+
}>;
|
|
2518
906
|
members: z.ZodArray<z.ZodObject<{
|
|
2519
|
-
models: z.ZodArray<z.ZodString
|
|
907
|
+
models: z.ZodArray<z.ZodString>;
|
|
2520
908
|
activeDays: z.ZodNumber;
|
|
2521
909
|
totalCostUsd: z.ZodNumber;
|
|
2522
910
|
totalRawCostUsd: z.ZodNumber;
|
|
@@ -2526,68 +914,13 @@ export declare const MemberUsageListResponse: z.ZodObject<{
|
|
|
2526
914
|
memberId: z.ZodNullable<z.ZodString>;
|
|
2527
915
|
displayName: z.ZodNullable<z.ZodString>;
|
|
2528
916
|
email: z.ZodNullable<z.ZodString>;
|
|
2529
|
-
},
|
|
2530
|
-
|
|
2531
|
-
displayName: string | null;
|
|
2532
|
-
models: string[];
|
|
2533
|
-
memberId: string | null;
|
|
2534
|
-
activeDays: number;
|
|
2535
|
-
totalCostUsd: number;
|
|
2536
|
-
totalRawCostUsd: number;
|
|
2537
|
-
totalInputTokens: number;
|
|
2538
|
-
totalOutputTokens: number;
|
|
2539
|
-
traceCount: number;
|
|
2540
|
-
}, {
|
|
2541
|
-
email: string | null;
|
|
2542
|
-
displayName: string | null;
|
|
2543
|
-
models: string[];
|
|
2544
|
-
memberId: string | null;
|
|
2545
|
-
activeDays: number;
|
|
2546
|
-
totalCostUsd: number;
|
|
2547
|
-
totalRawCostUsd: number;
|
|
2548
|
-
totalInputTokens: number;
|
|
2549
|
-
totalOutputTokens: number;
|
|
2550
|
-
traceCount: number;
|
|
2551
|
-
}>, "many">;
|
|
2552
|
-
}, "strip", z.ZodTypeAny, {
|
|
2553
|
-
members: {
|
|
2554
|
-
email: string | null;
|
|
2555
|
-
displayName: string | null;
|
|
2556
|
-
models: string[];
|
|
2557
|
-
memberId: string | null;
|
|
2558
|
-
activeDays: number;
|
|
2559
|
-
totalCostUsd: number;
|
|
2560
|
-
totalRawCostUsd: number;
|
|
2561
|
-
totalInputTokens: number;
|
|
2562
|
-
totalOutputTokens: number;
|
|
2563
|
-
traceCount: number;
|
|
2564
|
-
}[];
|
|
2565
|
-
scope: "workspace" | "self";
|
|
2566
|
-
listProperty: "members";
|
|
2567
|
-
rowCase: "camel";
|
|
2568
|
-
}, {
|
|
2569
|
-
members: {
|
|
2570
|
-
email: string | null;
|
|
2571
|
-
displayName: string | null;
|
|
2572
|
-
models: string[];
|
|
2573
|
-
memberId: string | null;
|
|
2574
|
-
activeDays: number;
|
|
2575
|
-
totalCostUsd: number;
|
|
2576
|
-
totalRawCostUsd: number;
|
|
2577
|
-
totalInputTokens: number;
|
|
2578
|
-
totalOutputTokens: number;
|
|
2579
|
-
traceCount: number;
|
|
2580
|
-
}[];
|
|
2581
|
-
scope: "workspace" | "self";
|
|
2582
|
-
listProperty: "members";
|
|
2583
|
-
rowCase: "camel";
|
|
2584
|
-
}>;
|
|
917
|
+
}, z.core.$strip>>;
|
|
918
|
+
}, z.core.$strip>;
|
|
2585
919
|
export type MemberUsageListResponse = z.infer<typeof MemberUsageListResponse>;
|
|
2586
920
|
/** `GET /api/v1/usage/teams` (`getTeamUsage`): per SCIM group. */
|
|
2587
921
|
export declare const TeamUsageListResponse: z.ZodObject<{
|
|
2588
922
|
listProperty: z.ZodLiteral<"teams">;
|
|
2589
923
|
rowCase: z.ZodLiteral<"camel">;
|
|
2590
|
-
} & {
|
|
2591
924
|
scimGroups: z.ZodBoolean;
|
|
2592
925
|
teams: z.ZodArray<z.ZodObject<{
|
|
2593
926
|
totalCostUsd: z.ZodNumber;
|
|
@@ -2599,65 +932,17 @@ export declare const TeamUsageListResponse: z.ZodObject<{
|
|
|
2599
932
|
displayName: z.ZodString;
|
|
2600
933
|
memberCount: z.ZodNumber;
|
|
2601
934
|
activeMembers: z.ZodNumber;
|
|
2602
|
-
},
|
|
2603
|
-
|
|
2604
|
-
totalCostUsd: number;
|
|
2605
|
-
totalRawCostUsd: number;
|
|
2606
|
-
totalInputTokens: number;
|
|
2607
|
-
totalOutputTokens: number;
|
|
2608
|
-
traceCount: number;
|
|
2609
|
-
groupId: string;
|
|
2610
|
-
memberCount: number;
|
|
2611
|
-
activeMembers: number;
|
|
2612
|
-
}, {
|
|
2613
|
-
displayName: string;
|
|
2614
|
-
totalCostUsd: number;
|
|
2615
|
-
totalRawCostUsd: number;
|
|
2616
|
-
totalInputTokens: number;
|
|
2617
|
-
totalOutputTokens: number;
|
|
2618
|
-
traceCount: number;
|
|
2619
|
-
groupId: string;
|
|
2620
|
-
memberCount: number;
|
|
2621
|
-
activeMembers: number;
|
|
2622
|
-
}>, "many">;
|
|
2623
|
-
}, "strip", z.ZodTypeAny, {
|
|
2624
|
-
listProperty: "teams";
|
|
2625
|
-
rowCase: "camel";
|
|
2626
|
-
teams: {
|
|
2627
|
-
displayName: string;
|
|
2628
|
-
totalCostUsd: number;
|
|
2629
|
-
totalRawCostUsd: number;
|
|
2630
|
-
totalInputTokens: number;
|
|
2631
|
-
totalOutputTokens: number;
|
|
2632
|
-
traceCount: number;
|
|
2633
|
-
groupId: string;
|
|
2634
|
-
memberCount: number;
|
|
2635
|
-
activeMembers: number;
|
|
2636
|
-
}[];
|
|
2637
|
-
scimGroups: boolean;
|
|
2638
|
-
}, {
|
|
2639
|
-
listProperty: "teams";
|
|
2640
|
-
rowCase: "camel";
|
|
2641
|
-
teams: {
|
|
2642
|
-
displayName: string;
|
|
2643
|
-
totalCostUsd: number;
|
|
2644
|
-
totalRawCostUsd: number;
|
|
2645
|
-
totalInputTokens: number;
|
|
2646
|
-
totalOutputTokens: number;
|
|
2647
|
-
traceCount: number;
|
|
2648
|
-
groupId: string;
|
|
2649
|
-
memberCount: number;
|
|
2650
|
-
activeMembers: number;
|
|
2651
|
-
}[];
|
|
2652
|
-
scimGroups: boolean;
|
|
2653
|
-
}>;
|
|
935
|
+
}, z.core.$strip>>;
|
|
936
|
+
}, z.core.$strip>;
|
|
2654
937
|
export type TeamUsageListResponse = z.infer<typeof TeamUsageListResponse>;
|
|
2655
938
|
/** `GET /api/v1/usage/branches` (`getBranchUsage`). */
|
|
2656
939
|
export declare const BranchUsageListResponse: z.ZodObject<{
|
|
2657
940
|
listProperty: z.ZodLiteral<"branches">;
|
|
2658
941
|
rowCase: z.ZodLiteral<"camel">;
|
|
2659
|
-
|
|
2660
|
-
|
|
942
|
+
scope: z.ZodEnum<{
|
|
943
|
+
workspace: "workspace";
|
|
944
|
+
self: "self";
|
|
945
|
+
}>;
|
|
2661
946
|
branches: z.ZodArray<z.ZodObject<{
|
|
2662
947
|
lastCallAt: z.ZodString;
|
|
2663
948
|
totalCostUsd: z.ZodNumber;
|
|
@@ -2668,65 +953,17 @@ export declare const BranchUsageListResponse: z.ZodObject<{
|
|
|
2668
953
|
repo: z.ZodNullable<z.ZodString>;
|
|
2669
954
|
branch: z.ZodNullable<z.ZodString>;
|
|
2670
955
|
commitCount: z.ZodNumber;
|
|
2671
|
-
},
|
|
2672
|
-
|
|
2673
|
-
totalCostUsd: number;
|
|
2674
|
-
totalRawCostUsd: number;
|
|
2675
|
-
totalInputTokens: number;
|
|
2676
|
-
totalOutputTokens: number;
|
|
2677
|
-
traceCount: number;
|
|
2678
|
-
repo: string | null;
|
|
2679
|
-
commitCount: number;
|
|
2680
|
-
lastCallAt: string;
|
|
2681
|
-
}, {
|
|
2682
|
-
branch: string | null;
|
|
2683
|
-
totalCostUsd: number;
|
|
2684
|
-
totalRawCostUsd: number;
|
|
2685
|
-
totalInputTokens: number;
|
|
2686
|
-
totalOutputTokens: number;
|
|
2687
|
-
traceCount: number;
|
|
2688
|
-
repo: string | null;
|
|
2689
|
-
commitCount: number;
|
|
2690
|
-
lastCallAt: string;
|
|
2691
|
-
}>, "many">;
|
|
2692
|
-
}, "strip", z.ZodTypeAny, {
|
|
2693
|
-
scope: "workspace" | "self";
|
|
2694
|
-
listProperty: "branches";
|
|
2695
|
-
rowCase: "camel";
|
|
2696
|
-
branches: {
|
|
2697
|
-
branch: string | null;
|
|
2698
|
-
totalCostUsd: number;
|
|
2699
|
-
totalRawCostUsd: number;
|
|
2700
|
-
totalInputTokens: number;
|
|
2701
|
-
totalOutputTokens: number;
|
|
2702
|
-
traceCount: number;
|
|
2703
|
-
repo: string | null;
|
|
2704
|
-
commitCount: number;
|
|
2705
|
-
lastCallAt: string;
|
|
2706
|
-
}[];
|
|
2707
|
-
}, {
|
|
2708
|
-
scope: "workspace" | "self";
|
|
2709
|
-
listProperty: "branches";
|
|
2710
|
-
rowCase: "camel";
|
|
2711
|
-
branches: {
|
|
2712
|
-
branch: string | null;
|
|
2713
|
-
totalCostUsd: number;
|
|
2714
|
-
totalRawCostUsd: number;
|
|
2715
|
-
totalInputTokens: number;
|
|
2716
|
-
totalOutputTokens: number;
|
|
2717
|
-
traceCount: number;
|
|
2718
|
-
repo: string | null;
|
|
2719
|
-
commitCount: number;
|
|
2720
|
-
lastCallAt: string;
|
|
2721
|
-
}[];
|
|
2722
|
-
}>;
|
|
956
|
+
}, z.core.$strip>>;
|
|
957
|
+
}, z.core.$strip>;
|
|
2723
958
|
export type BranchUsageListResponse = z.infer<typeof BranchUsageListResponse>;
|
|
2724
959
|
/** `GET /api/v1/usage/commits` (`getCommitUsage`). */
|
|
2725
960
|
export declare const CommitUsageListResponse: z.ZodObject<{
|
|
2726
961
|
listProperty: z.ZodLiteral<"commits">;
|
|
2727
962
|
rowCase: z.ZodLiteral<"camel">;
|
|
2728
|
-
|
|
2729
|
-
|
|
963
|
+
scope: z.ZodEnum<{
|
|
964
|
+
workspace: "workspace";
|
|
965
|
+
self: "self";
|
|
966
|
+
}>;
|
|
2730
967
|
commits: z.ZodArray<z.ZodObject<{
|
|
2731
968
|
firstCallAt: z.ZodString;
|
|
2732
969
|
lastCallAt: z.ZodString;
|
|
@@ -2738,91 +975,25 @@ export declare const CommitUsageListResponse: z.ZodObject<{
|
|
|
2738
975
|
repo: z.ZodNullable<z.ZodString>;
|
|
2739
976
|
branch: z.ZodNullable<z.ZodString>;
|
|
2740
977
|
commit: z.ZodNullable<z.ZodString>;
|
|
2741
|
-
},
|
|
2742
|
-
|
|
2743
|
-
branch: string | null;
|
|
2744
|
-
totalCostUsd: number;
|
|
2745
|
-
totalRawCostUsd: number;
|
|
2746
|
-
totalInputTokens: number;
|
|
2747
|
-
totalOutputTokens: number;
|
|
2748
|
-
traceCount: number;
|
|
2749
|
-
repo: string | null;
|
|
2750
|
-
lastCallAt: string;
|
|
2751
|
-
firstCallAt: string;
|
|
2752
|
-
}, {
|
|
2753
|
-
commit: string | null;
|
|
2754
|
-
branch: string | null;
|
|
2755
|
-
totalCostUsd: number;
|
|
2756
|
-
totalRawCostUsd: number;
|
|
2757
|
-
totalInputTokens: number;
|
|
2758
|
-
totalOutputTokens: number;
|
|
2759
|
-
traceCount: number;
|
|
2760
|
-
repo: string | null;
|
|
2761
|
-
lastCallAt: string;
|
|
2762
|
-
firstCallAt: string;
|
|
2763
|
-
}>, "many">;
|
|
2764
|
-
}, "strip", z.ZodTypeAny, {
|
|
2765
|
-
scope: "workspace" | "self";
|
|
2766
|
-
listProperty: "commits";
|
|
2767
|
-
rowCase: "camel";
|
|
2768
|
-
commits: {
|
|
2769
|
-
commit: string | null;
|
|
2770
|
-
branch: string | null;
|
|
2771
|
-
totalCostUsd: number;
|
|
2772
|
-
totalRawCostUsd: number;
|
|
2773
|
-
totalInputTokens: number;
|
|
2774
|
-
totalOutputTokens: number;
|
|
2775
|
-
traceCount: number;
|
|
2776
|
-
repo: string | null;
|
|
2777
|
-
lastCallAt: string;
|
|
2778
|
-
firstCallAt: string;
|
|
2779
|
-
}[];
|
|
2780
|
-
}, {
|
|
2781
|
-
scope: "workspace" | "self";
|
|
2782
|
-
listProperty: "commits";
|
|
2783
|
-
rowCase: "camel";
|
|
2784
|
-
commits: {
|
|
2785
|
-
commit: string | null;
|
|
2786
|
-
branch: string | null;
|
|
2787
|
-
totalCostUsd: number;
|
|
2788
|
-
totalRawCostUsd: number;
|
|
2789
|
-
totalInputTokens: number;
|
|
2790
|
-
totalOutputTokens: number;
|
|
2791
|
-
traceCount: number;
|
|
2792
|
-
repo: string | null;
|
|
2793
|
-
lastCallAt: string;
|
|
2794
|
-
firstCallAt: string;
|
|
2795
|
-
}[];
|
|
2796
|
-
}>;
|
|
978
|
+
}, z.core.$strip>>;
|
|
979
|
+
}, z.core.$strip>;
|
|
2797
980
|
export type CommitUsageListResponse = z.infer<typeof CommitUsageListResponse>;
|
|
2798
981
|
/** `GET /api/v1/usage/pull-requests` (`getPullRequestUsage`, `getPullRequestSources`). */
|
|
2799
982
|
export declare const PullRequestUsageListResponse: z.ZodObject<{
|
|
2800
983
|
listProperty: z.ZodLiteral<"pullRequests">;
|
|
2801
984
|
rowCase: z.ZodLiteral<"camel">;
|
|
2802
|
-
|
|
2803
|
-
|
|
985
|
+
scope: z.ZodEnum<{
|
|
986
|
+
workspace: "workspace";
|
|
987
|
+
self: "self";
|
|
988
|
+
}>;
|
|
2804
989
|
github: z.ZodObject<{
|
|
2805
990
|
connector: z.ZodBoolean;
|
|
2806
991
|
webhook: z.ZodBoolean;
|
|
2807
992
|
apiHost: z.ZodString;
|
|
2808
|
-
noAccessRepos: z.ZodArray<z.ZodString
|
|
993
|
+
noAccessRepos: z.ZodArray<z.ZodString>;
|
|
2809
994
|
mappedPullRequests: z.ZodNumber;
|
|
2810
995
|
lastCheckedAt: z.ZodNullable<z.ZodString>;
|
|
2811
|
-
},
|
|
2812
|
-
webhook: boolean;
|
|
2813
|
-
connector: boolean;
|
|
2814
|
-
apiHost: string;
|
|
2815
|
-
noAccessRepos: string[];
|
|
2816
|
-
mappedPullRequests: number;
|
|
2817
|
-
lastCheckedAt: string | null;
|
|
2818
|
-
}, {
|
|
2819
|
-
webhook: boolean;
|
|
2820
|
-
connector: boolean;
|
|
2821
|
-
apiHost: string;
|
|
2822
|
-
noAccessRepos: string[];
|
|
2823
|
-
mappedPullRequests: number;
|
|
2824
|
-
lastCheckedAt: string | null;
|
|
2825
|
-
}>;
|
|
996
|
+
}, z.core.$strip>;
|
|
2826
997
|
pullRequests: z.ZodArray<z.ZodObject<{
|
|
2827
998
|
memberCount: z.ZodNumber;
|
|
2828
999
|
firstCallAt: z.ZodString;
|
|
@@ -2836,121 +1007,19 @@ export declare const PullRequestUsageListResponse: z.ZodObject<{
|
|
|
2836
1007
|
number: z.ZodNumber;
|
|
2837
1008
|
title: z.ZodString;
|
|
2838
1009
|
author: z.ZodNullable<z.ZodString>;
|
|
2839
|
-
state: z.ZodEnum<
|
|
1010
|
+
state: z.ZodEnum<{
|
|
1011
|
+
open: "open";
|
|
1012
|
+
closed: "closed";
|
|
1013
|
+
merged: "merged";
|
|
1014
|
+
}>;
|
|
2840
1015
|
headBranch: z.ZodString;
|
|
2841
1016
|
baseBranch: z.ZodNullable<z.ZodString>;
|
|
2842
1017
|
url: z.ZodString;
|
|
2843
1018
|
openedAt: z.ZodString;
|
|
2844
1019
|
mergedAt: z.ZodNullable<z.ZodString>;
|
|
2845
1020
|
closedAt: z.ZodNullable<z.ZodString>;
|
|
2846
|
-
},
|
|
2847
|
-
|
|
2848
|
-
url: string;
|
|
2849
|
-
title: string;
|
|
2850
|
-
state: "open" | "closed" | "merged";
|
|
2851
|
-
totalCostUsd: number;
|
|
2852
|
-
totalRawCostUsd: number;
|
|
2853
|
-
totalInputTokens: number;
|
|
2854
|
-
totalOutputTokens: number;
|
|
2855
|
-
traceCount: number;
|
|
2856
|
-
memberCount: number;
|
|
2857
|
-
repo: string;
|
|
2858
|
-
lastCallAt: string;
|
|
2859
|
-
firstCallAt: string;
|
|
2860
|
-
author: string | null;
|
|
2861
|
-
headBranch: string;
|
|
2862
|
-
baseBranch: string | null;
|
|
2863
|
-
openedAt: string;
|
|
2864
|
-
mergedAt: string | null;
|
|
2865
|
-
closedAt: string | null;
|
|
2866
|
-
}, {
|
|
2867
|
-
number: number;
|
|
2868
|
-
url: string;
|
|
2869
|
-
title: string;
|
|
2870
|
-
state: "open" | "closed" | "merged";
|
|
2871
|
-
totalCostUsd: number;
|
|
2872
|
-
totalRawCostUsd: number;
|
|
2873
|
-
totalInputTokens: number;
|
|
2874
|
-
totalOutputTokens: number;
|
|
2875
|
-
traceCount: number;
|
|
2876
|
-
memberCount: number;
|
|
2877
|
-
repo: string;
|
|
2878
|
-
lastCallAt: string;
|
|
2879
|
-
firstCallAt: string;
|
|
2880
|
-
author: string | null;
|
|
2881
|
-
headBranch: string;
|
|
2882
|
-
baseBranch: string | null;
|
|
2883
|
-
openedAt: string;
|
|
2884
|
-
mergedAt: string | null;
|
|
2885
|
-
closedAt: string | null;
|
|
2886
|
-
}>, "many">;
|
|
2887
|
-
}, "strip", z.ZodTypeAny, {
|
|
2888
|
-
scope: "workspace" | "self";
|
|
2889
|
-
github: {
|
|
2890
|
-
webhook: boolean;
|
|
2891
|
-
connector: boolean;
|
|
2892
|
-
apiHost: string;
|
|
2893
|
-
noAccessRepos: string[];
|
|
2894
|
-
mappedPullRequests: number;
|
|
2895
|
-
lastCheckedAt: string | null;
|
|
2896
|
-
};
|
|
2897
|
-
listProperty: "pullRequests";
|
|
2898
|
-
rowCase: "camel";
|
|
2899
|
-
pullRequests: {
|
|
2900
|
-
number: number;
|
|
2901
|
-
url: string;
|
|
2902
|
-
title: string;
|
|
2903
|
-
state: "open" | "closed" | "merged";
|
|
2904
|
-
totalCostUsd: number;
|
|
2905
|
-
totalRawCostUsd: number;
|
|
2906
|
-
totalInputTokens: number;
|
|
2907
|
-
totalOutputTokens: number;
|
|
2908
|
-
traceCount: number;
|
|
2909
|
-
memberCount: number;
|
|
2910
|
-
repo: string;
|
|
2911
|
-
lastCallAt: string;
|
|
2912
|
-
firstCallAt: string;
|
|
2913
|
-
author: string | null;
|
|
2914
|
-
headBranch: string;
|
|
2915
|
-
baseBranch: string | null;
|
|
2916
|
-
openedAt: string;
|
|
2917
|
-
mergedAt: string | null;
|
|
2918
|
-
closedAt: string | null;
|
|
2919
|
-
}[];
|
|
2920
|
-
}, {
|
|
2921
|
-
scope: "workspace" | "self";
|
|
2922
|
-
github: {
|
|
2923
|
-
webhook: boolean;
|
|
2924
|
-
connector: boolean;
|
|
2925
|
-
apiHost: string;
|
|
2926
|
-
noAccessRepos: string[];
|
|
2927
|
-
mappedPullRequests: number;
|
|
2928
|
-
lastCheckedAt: string | null;
|
|
2929
|
-
};
|
|
2930
|
-
listProperty: "pullRequests";
|
|
2931
|
-
rowCase: "camel";
|
|
2932
|
-
pullRequests: {
|
|
2933
|
-
number: number;
|
|
2934
|
-
url: string;
|
|
2935
|
-
title: string;
|
|
2936
|
-
state: "open" | "closed" | "merged";
|
|
2937
|
-
totalCostUsd: number;
|
|
2938
|
-
totalRawCostUsd: number;
|
|
2939
|
-
totalInputTokens: number;
|
|
2940
|
-
totalOutputTokens: number;
|
|
2941
|
-
traceCount: number;
|
|
2942
|
-
memberCount: number;
|
|
2943
|
-
repo: string;
|
|
2944
|
-
lastCallAt: string;
|
|
2945
|
-
firstCallAt: string;
|
|
2946
|
-
author: string | null;
|
|
2947
|
-
headBranch: string;
|
|
2948
|
-
baseBranch: string | null;
|
|
2949
|
-
openedAt: string;
|
|
2950
|
-
mergedAt: string | null;
|
|
2951
|
-
closedAt: string | null;
|
|
2952
|
-
}[];
|
|
2953
|
-
}>;
|
|
1021
|
+
}, z.core.$strip>>;
|
|
1022
|
+
}, z.core.$strip>;
|
|
2954
1023
|
export type PullRequestUsageListResponse = z.infer<typeof PullRequestUsageListResponse>;
|
|
2955
1024
|
/** `POST /api/v1/usage/pull-requests/refresh` (`syncWorkspacePullRequests`). */
|
|
2956
1025
|
export declare const PullRequestRefreshResponse: z.ZodObject<{
|
|
@@ -2959,26 +1028,20 @@ export declare const PullRequestRefreshResponse: z.ZodObject<{
|
|
|
2959
1028
|
pullRequests: z.ZodNumber;
|
|
2960
1029
|
noAccess: z.ZodNumber;
|
|
2961
1030
|
rateLimited: z.ZodBoolean;
|
|
2962
|
-
},
|
|
2963
|
-
pullRequests: number;
|
|
2964
|
-
checked: number;
|
|
2965
|
-
notModified: number;
|
|
2966
|
-
noAccess: number;
|
|
2967
|
-
rateLimited: boolean;
|
|
2968
|
-
}, {
|
|
2969
|
-
pullRequests: number;
|
|
2970
|
-
checked: number;
|
|
2971
|
-
notModified: number;
|
|
2972
|
-
noAccess: number;
|
|
2973
|
-
rateLimited: boolean;
|
|
2974
|
-
}>;
|
|
1031
|
+
}, z.core.$strip>;
|
|
2975
1032
|
export type PullRequestRefreshResponse = z.infer<typeof PullRequestRefreshResponse>;
|
|
2976
1033
|
/** A `loop_runs` row. */
|
|
2977
1034
|
export declare const LoopRunResponse: z.ZodObject<{
|
|
2978
1035
|
loopRunId: z.ZodString;
|
|
2979
1036
|
workspaceId: z.ZodString;
|
|
2980
1037
|
name: z.ZodString;
|
|
2981
|
-
status: z.ZodEnum<
|
|
1038
|
+
status: z.ZodEnum<{
|
|
1039
|
+
COMPLETED: "COMPLETED";
|
|
1040
|
+
FAILED: "FAILED";
|
|
1041
|
+
PENDING_REVIEW: "PENDING_REVIEW";
|
|
1042
|
+
ACTIVE: "ACTIVE";
|
|
1043
|
+
KILLED: "KILLED";
|
|
1044
|
+
}>;
|
|
2982
1045
|
startedBy: z.ZodNullable<z.ZodString>;
|
|
2983
1046
|
reviewReason: z.ZodNullable<z.ZodString>;
|
|
2984
1047
|
reviewedBy: z.ZodNullable<z.ZodString>;
|
|
@@ -2988,35 +1051,7 @@ export declare const LoopRunResponse: z.ZodObject<{
|
|
|
2988
1051
|
budgetLimitUsd: z.ZodString;
|
|
2989
1052
|
createdAt: z.ZodString;
|
|
2990
1053
|
updatedAt: z.ZodString;
|
|
2991
|
-
},
|
|
2992
|
-
workspaceId: string;
|
|
2993
|
-
status: "COMPLETED" | "FAILED" | "PENDING_REVIEW" | "ACTIVE" | "KILLED";
|
|
2994
|
-
name: string;
|
|
2995
|
-
createdAt: string;
|
|
2996
|
-
updatedAt: string;
|
|
2997
|
-
loopRunId: string;
|
|
2998
|
-
startedBy: string | null;
|
|
2999
|
-
reviewReason: string | null;
|
|
3000
|
-
reviewedBy: string | null;
|
|
3001
|
-
reviewedAt: string | null;
|
|
3002
|
-
reviewNote: string | null;
|
|
3003
|
-
totalTokenCostUsd: string;
|
|
3004
|
-
budgetLimitUsd: string;
|
|
3005
|
-
}, {
|
|
3006
|
-
workspaceId: string;
|
|
3007
|
-
status: "COMPLETED" | "FAILED" | "PENDING_REVIEW" | "ACTIVE" | "KILLED";
|
|
3008
|
-
name: string;
|
|
3009
|
-
createdAt: string;
|
|
3010
|
-
updatedAt: string;
|
|
3011
|
-
loopRunId: string;
|
|
3012
|
-
startedBy: string | null;
|
|
3013
|
-
reviewReason: string | null;
|
|
3014
|
-
reviewedBy: string | null;
|
|
3015
|
-
reviewedAt: string | null;
|
|
3016
|
-
reviewNote: string | null;
|
|
3017
|
-
totalTokenCostUsd: string;
|
|
3018
|
-
budgetLimitUsd: string;
|
|
3019
|
-
}>;
|
|
1054
|
+
}, z.core.$strip>;
|
|
3020
1055
|
export type LoopRunResponse = z.infer<typeof LoopRunResponse>;
|
|
3021
1056
|
/** `POST /api/v1/loops/start` and `GET /api/v1/loops/:loopRunId`. */
|
|
3022
1057
|
export declare const LoopRunEnvelopeResponse: z.ZodObject<{
|
|
@@ -3025,7 +1060,13 @@ export declare const LoopRunEnvelopeResponse: z.ZodObject<{
|
|
|
3025
1060
|
loopRunId: z.ZodString;
|
|
3026
1061
|
workspaceId: z.ZodString;
|
|
3027
1062
|
name: z.ZodString;
|
|
3028
|
-
status: z.ZodEnum<
|
|
1063
|
+
status: z.ZodEnum<{
|
|
1064
|
+
COMPLETED: "COMPLETED";
|
|
1065
|
+
FAILED: "FAILED";
|
|
1066
|
+
PENDING_REVIEW: "PENDING_REVIEW";
|
|
1067
|
+
ACTIVE: "ACTIVE";
|
|
1068
|
+
KILLED: "KILLED";
|
|
1069
|
+
}>;
|
|
3029
1070
|
startedBy: z.ZodNullable<z.ZodString>;
|
|
3030
1071
|
reviewReason: z.ZodNullable<z.ZodString>;
|
|
3031
1072
|
reviewedBy: z.ZodNullable<z.ZodString>;
|
|
@@ -3035,70 +1076,8 @@ export declare const LoopRunEnvelopeResponse: z.ZodObject<{
|
|
|
3035
1076
|
budgetLimitUsd: z.ZodString;
|
|
3036
1077
|
createdAt: z.ZodString;
|
|
3037
1078
|
updatedAt: z.ZodString;
|
|
3038
|
-
},
|
|
3039
|
-
|
|
3040
|
-
status: "COMPLETED" | "FAILED" | "PENDING_REVIEW" | "ACTIVE" | "KILLED";
|
|
3041
|
-
name: string;
|
|
3042
|
-
createdAt: string;
|
|
3043
|
-
updatedAt: string;
|
|
3044
|
-
loopRunId: string;
|
|
3045
|
-
startedBy: string | null;
|
|
3046
|
-
reviewReason: string | null;
|
|
3047
|
-
reviewedBy: string | null;
|
|
3048
|
-
reviewedAt: string | null;
|
|
3049
|
-
reviewNote: string | null;
|
|
3050
|
-
totalTokenCostUsd: string;
|
|
3051
|
-
budgetLimitUsd: string;
|
|
3052
|
-
}, {
|
|
3053
|
-
workspaceId: string;
|
|
3054
|
-
status: "COMPLETED" | "FAILED" | "PENDING_REVIEW" | "ACTIVE" | "KILLED";
|
|
3055
|
-
name: string;
|
|
3056
|
-
createdAt: string;
|
|
3057
|
-
updatedAt: string;
|
|
3058
|
-
loopRunId: string;
|
|
3059
|
-
startedBy: string | null;
|
|
3060
|
-
reviewReason: string | null;
|
|
3061
|
-
reviewedBy: string | null;
|
|
3062
|
-
reviewedAt: string | null;
|
|
3063
|
-
reviewNote: string | null;
|
|
3064
|
-
totalTokenCostUsd: string;
|
|
3065
|
-
budgetLimitUsd: string;
|
|
3066
|
-
}>;
|
|
3067
|
-
}, "strip", z.ZodTypeAny, {
|
|
3068
|
-
ok: true;
|
|
3069
|
-
loop: {
|
|
3070
|
-
workspaceId: string;
|
|
3071
|
-
status: "COMPLETED" | "FAILED" | "PENDING_REVIEW" | "ACTIVE" | "KILLED";
|
|
3072
|
-
name: string;
|
|
3073
|
-
createdAt: string;
|
|
3074
|
-
updatedAt: string;
|
|
3075
|
-
loopRunId: string;
|
|
3076
|
-
startedBy: string | null;
|
|
3077
|
-
reviewReason: string | null;
|
|
3078
|
-
reviewedBy: string | null;
|
|
3079
|
-
reviewedAt: string | null;
|
|
3080
|
-
reviewNote: string | null;
|
|
3081
|
-
totalTokenCostUsd: string;
|
|
3082
|
-
budgetLimitUsd: string;
|
|
3083
|
-
};
|
|
3084
|
-
}, {
|
|
3085
|
-
ok: true;
|
|
3086
|
-
loop: {
|
|
3087
|
-
workspaceId: string;
|
|
3088
|
-
status: "COMPLETED" | "FAILED" | "PENDING_REVIEW" | "ACTIVE" | "KILLED";
|
|
3089
|
-
name: string;
|
|
3090
|
-
createdAt: string;
|
|
3091
|
-
updatedAt: string;
|
|
3092
|
-
loopRunId: string;
|
|
3093
|
-
startedBy: string | null;
|
|
3094
|
-
reviewReason: string | null;
|
|
3095
|
-
reviewedBy: string | null;
|
|
3096
|
-
reviewedAt: string | null;
|
|
3097
|
-
reviewNote: string | null;
|
|
3098
|
-
totalTokenCostUsd: string;
|
|
3099
|
-
budgetLimitUsd: string;
|
|
3100
|
-
};
|
|
3101
|
-
}>;
|
|
1079
|
+
}, z.core.$strip>;
|
|
1080
|
+
}, z.core.$strip>;
|
|
3102
1081
|
export type LoopRunEnvelopeResponse = z.infer<typeof LoopRunEnvelopeResponse>;
|
|
3103
1082
|
/** `GET /api/v1/loops/:loopRunId`: the run, and whether completing it needs a passing verify. */
|
|
3104
1083
|
export declare const LoopRunDetailResponse: z.ZodObject<{
|
|
@@ -3107,7 +1086,13 @@ export declare const LoopRunDetailResponse: z.ZodObject<{
|
|
|
3107
1086
|
loopRunId: z.ZodString;
|
|
3108
1087
|
workspaceId: z.ZodString;
|
|
3109
1088
|
name: z.ZodString;
|
|
3110
|
-
status: z.ZodEnum<
|
|
1089
|
+
status: z.ZodEnum<{
|
|
1090
|
+
COMPLETED: "COMPLETED";
|
|
1091
|
+
FAILED: "FAILED";
|
|
1092
|
+
PENDING_REVIEW: "PENDING_REVIEW";
|
|
1093
|
+
ACTIVE: "ACTIVE";
|
|
1094
|
+
KILLED: "KILLED";
|
|
1095
|
+
}>;
|
|
3111
1096
|
startedBy: z.ZodNullable<z.ZodString>;
|
|
3112
1097
|
reviewReason: z.ZodNullable<z.ZodString>;
|
|
3113
1098
|
reviewedBy: z.ZodNullable<z.ZodString>;
|
|
@@ -3117,180 +1102,60 @@ export declare const LoopRunDetailResponse: z.ZodObject<{
|
|
|
3117
1102
|
budgetLimitUsd: z.ZodString;
|
|
3118
1103
|
createdAt: z.ZodString;
|
|
3119
1104
|
updatedAt: z.ZodString;
|
|
3120
|
-
},
|
|
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
|
-
} & {
|
|
1105
|
+
}, z.core.$strip>;
|
|
3150
1106
|
requiresVerifiedCompletion: z.ZodNullable<z.ZodBoolean>;
|
|
3151
|
-
},
|
|
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
|
-
}>;
|
|
1107
|
+
}, z.core.$strip>;
|
|
3188
1108
|
export type LoopRunDetailResponse = z.infer<typeof LoopRunDetailResponse>;
|
|
3189
1109
|
/** `POST /api/v1/loops/:loopRunId/verify`. `ok`, `score`, `findings` and `unverified` keep their meaning. */
|
|
3190
1110
|
export declare const LoopVerifyResponse: z.ZodObject<{
|
|
3191
1111
|
ok: z.ZodBoolean;
|
|
3192
1112
|
score: z.ZodNumber;
|
|
3193
|
-
findings: z.ZodArray<z.ZodString
|
|
1113
|
+
findings: z.ZodArray<z.ZodString>;
|
|
3194
1114
|
unverified: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3195
1115
|
verificationId: z.ZodString;
|
|
3196
|
-
stage: z.ZodEnum<
|
|
1116
|
+
stage: z.ZodEnum<{
|
|
1117
|
+
deterministic: "deterministic";
|
|
1118
|
+
judge: "judge";
|
|
1119
|
+
}>;
|
|
3197
1120
|
checks: z.ZodArray<z.ZodObject<{
|
|
3198
|
-
id: z.ZodEnum<
|
|
3199
|
-
|
|
3200
|
-
|
|
1121
|
+
id: z.ZodEnum<{
|
|
1122
|
+
scope_paths: "scope_paths";
|
|
1123
|
+
plan_steps: "plan_steps";
|
|
1124
|
+
judge: "judge";
|
|
1125
|
+
}>;
|
|
1126
|
+
status: z.ZodEnum<{
|
|
1127
|
+
unavailable: "unavailable";
|
|
1128
|
+
pass: "pass";
|
|
1129
|
+
fail: "fail";
|
|
1130
|
+
not_applicable: "not_applicable";
|
|
1131
|
+
}>;
|
|
1132
|
+
findings: z.ZodArray<z.ZodString>;
|
|
3201
1133
|
scope: z.ZodOptional<z.ZodObject<{
|
|
3202
|
-
paths: z.ZodOptional<z.ZodArray<z.ZodString
|
|
3203
|
-
tools: z.ZodOptional<z.ZodArray<z.ZodString
|
|
1134
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1135
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3204
1136
|
step: z.ZodOptional<z.ZodString>;
|
|
3205
1137
|
detector: z.ZodOptional<z.ZodString>;
|
|
3206
1138
|
rule: z.ZodOptional<z.ZodString>;
|
|
3207
|
-
},
|
|
3208
|
-
|
|
3209
|
-
|
|
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
|
-
}>;
|
|
1139
|
+
}, z.core.$strip>>;
|
|
1140
|
+
}, z.core.$strip>>;
|
|
1141
|
+
}, z.core.$strip>;
|
|
3282
1142
|
export type LoopVerifyResponse = z.infer<typeof LoopVerifyResponse>;
|
|
3283
1143
|
/** `GET /api/v1/loops`, newest first. */
|
|
3284
1144
|
export declare const LoopRunListResponse: z.ZodObject<{
|
|
3285
1145
|
listProperty: z.ZodLiteral<"loops">;
|
|
3286
1146
|
rowCase: z.ZodLiteral<"camel">;
|
|
3287
|
-
} & {
|
|
3288
1147
|
ok: z.ZodLiteral<true>;
|
|
3289
1148
|
loops: z.ZodArray<z.ZodObject<{
|
|
3290
1149
|
loopRunId: z.ZodString;
|
|
3291
1150
|
workspaceId: z.ZodString;
|
|
3292
1151
|
name: z.ZodString;
|
|
3293
|
-
status: z.ZodEnum<
|
|
1152
|
+
status: z.ZodEnum<{
|
|
1153
|
+
COMPLETED: "COMPLETED";
|
|
1154
|
+
FAILED: "FAILED";
|
|
1155
|
+
PENDING_REVIEW: "PENDING_REVIEW";
|
|
1156
|
+
ACTIVE: "ACTIVE";
|
|
1157
|
+
KILLED: "KILLED";
|
|
1158
|
+
}>;
|
|
3294
1159
|
startedBy: z.ZodNullable<z.ZodString>;
|
|
3295
1160
|
reviewReason: z.ZodNullable<z.ZodString>;
|
|
3296
1161
|
reviewedBy: z.ZodNullable<z.ZodString>;
|
|
@@ -3300,106 +1165,30 @@ export declare const LoopRunListResponse: z.ZodObject<{
|
|
|
3300
1165
|
budgetLimitUsd: z.ZodString;
|
|
3301
1166
|
createdAt: z.ZodString;
|
|
3302
1167
|
updatedAt: z.ZodString;
|
|
3303
|
-
},
|
|
3304
|
-
|
|
3305
|
-
status: "COMPLETED" | "FAILED" | "PENDING_REVIEW" | "ACTIVE" | "KILLED";
|
|
3306
|
-
name: string;
|
|
3307
|
-
createdAt: string;
|
|
3308
|
-
updatedAt: string;
|
|
3309
|
-
loopRunId: string;
|
|
3310
|
-
startedBy: string | null;
|
|
3311
|
-
reviewReason: string | null;
|
|
3312
|
-
reviewedBy: string | null;
|
|
3313
|
-
reviewedAt: string | null;
|
|
3314
|
-
reviewNote: string | null;
|
|
3315
|
-
totalTokenCostUsd: string;
|
|
3316
|
-
budgetLimitUsd: string;
|
|
3317
|
-
}, {
|
|
3318
|
-
workspaceId: string;
|
|
3319
|
-
status: "COMPLETED" | "FAILED" | "PENDING_REVIEW" | "ACTIVE" | "KILLED";
|
|
3320
|
-
name: string;
|
|
3321
|
-
createdAt: string;
|
|
3322
|
-
updatedAt: string;
|
|
3323
|
-
loopRunId: string;
|
|
3324
|
-
startedBy: string | null;
|
|
3325
|
-
reviewReason: string | null;
|
|
3326
|
-
reviewedBy: string | null;
|
|
3327
|
-
reviewedAt: string | null;
|
|
3328
|
-
reviewNote: string | null;
|
|
3329
|
-
totalTokenCostUsd: string;
|
|
3330
|
-
budgetLimitUsd: string;
|
|
3331
|
-
}>, "many">;
|
|
3332
|
-
}, "strip", z.ZodTypeAny, {
|
|
3333
|
-
ok: true;
|
|
3334
|
-
listProperty: "loops";
|
|
3335
|
-
rowCase: "camel";
|
|
3336
|
-
loops: {
|
|
3337
|
-
workspaceId: string;
|
|
3338
|
-
status: "COMPLETED" | "FAILED" | "PENDING_REVIEW" | "ACTIVE" | "KILLED";
|
|
3339
|
-
name: string;
|
|
3340
|
-
createdAt: string;
|
|
3341
|
-
updatedAt: string;
|
|
3342
|
-
loopRunId: string;
|
|
3343
|
-
startedBy: string | null;
|
|
3344
|
-
reviewReason: string | null;
|
|
3345
|
-
reviewedBy: string | null;
|
|
3346
|
-
reviewedAt: string | null;
|
|
3347
|
-
reviewNote: string | null;
|
|
3348
|
-
totalTokenCostUsd: string;
|
|
3349
|
-
budgetLimitUsd: string;
|
|
3350
|
-
}[];
|
|
3351
|
-
}, {
|
|
3352
|
-
ok: true;
|
|
3353
|
-
listProperty: "loops";
|
|
3354
|
-
rowCase: "camel";
|
|
3355
|
-
loops: {
|
|
3356
|
-
workspaceId: string;
|
|
3357
|
-
status: "COMPLETED" | "FAILED" | "PENDING_REVIEW" | "ACTIVE" | "KILLED";
|
|
3358
|
-
name: string;
|
|
3359
|
-
createdAt: string;
|
|
3360
|
-
updatedAt: string;
|
|
3361
|
-
loopRunId: string;
|
|
3362
|
-
startedBy: string | null;
|
|
3363
|
-
reviewReason: string | null;
|
|
3364
|
-
reviewedBy: string | null;
|
|
3365
|
-
reviewedAt: string | null;
|
|
3366
|
-
reviewNote: string | null;
|
|
3367
|
-
totalTokenCostUsd: string;
|
|
3368
|
-
budgetLimitUsd: string;
|
|
3369
|
-
}[];
|
|
3370
|
-
}>;
|
|
1168
|
+
}, z.core.$strip>>;
|
|
1169
|
+
}, z.core.$strip>;
|
|
3371
1170
|
export type LoopRunListResponse = z.infer<typeof LoopRunListResponse>;
|
|
3372
1171
|
/** `POST /api/v1/loops/:loopRunId/complete`. */
|
|
3373
1172
|
export declare const LoopRunCompleteResponse: z.ZodObject<{
|
|
3374
1173
|
ok: z.ZodLiteral<true>;
|
|
3375
|
-
outcome: z.ZodEnum<
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
},
|
|
3380
|
-
ok: true;
|
|
3381
|
-
outcome: "FAILED" | "SUCCEEDED";
|
|
3382
|
-
}>;
|
|
1174
|
+
outcome: z.ZodEnum<{
|
|
1175
|
+
FAILED: "FAILED";
|
|
1176
|
+
SUCCEEDED: "SUCCEEDED";
|
|
1177
|
+
}>;
|
|
1178
|
+
}, z.core.$strip>;
|
|
3383
1179
|
export type LoopRunCompleteResponse = z.infer<typeof LoopRunCompleteResponse>;
|
|
3384
1180
|
/** `POST /api/v1/loops/:loopRunId/kill`. */
|
|
3385
1181
|
export declare const LoopRunKillResponse: z.ZodObject<{
|
|
3386
1182
|
ok: z.ZodLiteral<true>;
|
|
3387
|
-
},
|
|
3388
|
-
ok: true;
|
|
3389
|
-
}, {
|
|
3390
|
-
ok: true;
|
|
3391
|
-
}>;
|
|
1183
|
+
}, z.core.$strip>;
|
|
3392
1184
|
export type LoopRunKillResponse = z.infer<typeof LoopRunKillResponse>;
|
|
3393
1185
|
/** `POST /api/v1/loops/:loopRunId/review`: the run's status after the review. */
|
|
3394
1186
|
export declare const LoopRunReviewResponse: z.ZodObject<{
|
|
3395
1187
|
ok: z.ZodLiteral<true>;
|
|
3396
|
-
status: z.ZodEnum<
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
},
|
|
3401
|
-
status: "ACTIVE" | "KILLED";
|
|
3402
|
-
ok: true;
|
|
3403
|
-
}>;
|
|
1188
|
+
status: z.ZodEnum<{
|
|
1189
|
+
ACTIVE: "ACTIVE";
|
|
1190
|
+
KILLED: "KILLED";
|
|
1191
|
+
}>;
|
|
1192
|
+
}, z.core.$strip>;
|
|
3404
1193
|
export type LoopRunReviewResponse = z.infer<typeof LoopRunReviewResponse>;
|
|
3405
1194
|
//# sourceMappingURL=observability.d.ts.map
|