@sixb/server 0.1.1 → 0.1.3
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 +3 -3
- package/dist/auth/application-access.d.ts +2 -2
- package/dist/auth/application-access.d.ts.map +1 -1
- package/dist/auth/connector-callback-cookie.d.ts +12 -0
- package/dist/auth/connector-callback-cookie.d.ts.map +1 -0
- package/dist/auth/experience.d.ts +33 -0
- package/dist/auth/experience.d.ts.map +1 -0
- package/dist/auth/guard.d.ts +3 -3
- package/dist/auth/guard.d.ts.map +1 -1
- package/dist/auth/public-routes.d.ts.map +1 -1
- package/dist/auth/scope.d.ts +13 -27
- package/dist/auth/scope.d.ts.map +1 -1
- package/dist/auth/session-cookies.d.ts +2 -2
- package/dist/auth/session-cookies.d.ts.map +1 -1
- package/dist/connectors/http.d.ts +16 -0
- package/dist/connectors/http.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3903 -2760
- package/dist/index.js.map +58 -50
- package/dist/openapi/tags.d.ts +15 -3
- package/dist/openapi/tags.d.ts.map +1 -1
- package/dist/registerRoutes.d.ts +6 -2
- package/dist/registerRoutes.d.ts.map +1 -1
- package/dist/routes/action-runs.d.ts +21 -31
- package/dist/routes/action-runs.d.ts.map +1 -1
- package/dist/routes/actions.d.ts +12 -11
- package/dist/routes/actions.d.ts.map +1 -1
- package/dist/routes/agent-api-gateway.d.ts +2 -2
- package/dist/routes/agent-api-gateway.d.ts.map +1 -1
- package/dist/routes/agents.d.ts +230 -159
- package/dist/routes/agents.d.ts.map +1 -1
- package/dist/routes/ai-accounting.d.ts +31 -0
- package/dist/routes/ai-accounting.d.ts.map +1 -0
- package/dist/routes/auth.d.ts +149 -92
- package/dist/routes/auth.d.ts.map +1 -1
- package/dist/routes/connector-connection-runs.d.ts +794 -0
- package/dist/routes/connector-connection-runs.d.ts.map +1 -0
- package/dist/routes/connector-connections.d.ts +219 -0
- package/dist/routes/connector-connections.d.ts.map +1 -0
- package/dist/routes/connectors.d.ts +10 -4
- package/dist/routes/connectors.d.ts.map +1 -1
- package/dist/routes/datasets.d.ts +16 -12
- package/dist/routes/datasets.d.ts.map +1 -1
- package/dist/routes/events.d.ts +9 -9
- package/dist/routes/events.d.ts.map +1 -1
- package/dist/routes/files.d.ts +19 -18
- package/dist/routes/files.d.ts.map +1 -1
- package/dist/routes/links.d.ts +11 -11
- package/dist/routes/links.d.ts.map +1 -1
- package/dist/routes/logs.d.ts +5 -5
- package/dist/routes/logs.d.ts.map +1 -1
- package/dist/routes/objects.d.ts +37 -37
- package/dist/routes/objects.d.ts.map +1 -1
- package/dist/routes/ontology.d.ts +50 -50
- package/dist/routes/ontology.d.ts.map +1 -1
- package/dist/routes/pipelines.d.ts +28 -38
- package/dist/routes/pipelines.d.ts.map +1 -1
- package/dist/routes/project.d.ts +2 -2
- package/dist/routes/project.d.ts.map +1 -1
- package/dist/routes/projections.d.ts +145 -85
- package/dist/routes/projections.d.ts.map +1 -1
- package/dist/routes/rules.d.ts +6 -6
- package/dist/routes/rules.d.ts.map +1 -1
- package/dist/routes/status.d.ts +2 -2
- package/dist/routes/status.d.ts.map +1 -1
- package/dist/routes/syncs.d.ts +23 -28
- package/dist/routes/syncs.d.ts.map +1 -1
- package/dist/routes/telemetry.d.ts +9 -9
- package/dist/routes/telemetry.d.ts.map +1 -1
- package/dist/routes/webhook-runs.d.ts +9 -9
- package/dist/routes/webhook-runs.d.ts.map +1 -1
- package/dist/routes/webhooks.d.ts +2 -2
- package/dist/routes/webhooks.d.ts.map +1 -1
- package/dist/routes/workflows.d.ts +177 -66
- package/dist/routes/workflows.d.ts.map +1 -1
- package/dist/routes/ws/agents.d.ts +11 -5
- package/dist/routes/ws/agents.d.ts.map +1 -1
- package/dist/routes/ws/events.d.ts +8 -8
- package/dist/routes/ws/events.d.ts.map +1 -1
- package/dist/routes/ws/log-subscription-hub.d.ts +6 -3
- package/dist/routes/ws/log-subscription-hub.d.ts.map +1 -1
- package/dist/routes/ws/logs.d.ts +10 -10
- package/dist/routes/ws/logs.d.ts.map +1 -1
- package/dist/schemas/actions.d.ts +89 -194
- package/dist/schemas/actions.d.ts.map +1 -1
- package/dist/schemas/agents.d.ts +791 -471
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/ai-accounting.d.ts +2393 -0
- package/dist/schemas/ai-accounting.d.ts.map +1 -0
- package/dist/schemas/ai-usage.d.ts +34 -0
- package/dist/schemas/ai-usage.d.ts.map +1 -0
- package/dist/schemas/auth.d.ts +102 -102
- package/dist/schemas/common.d.ts +37 -0
- package/dist/schemas/common.d.ts.map +1 -1
- package/dist/schemas/connectors.d.ts +713 -2
- package/dist/schemas/connectors.d.ts.map +1 -1
- package/dist/schemas/datasets.d.ts +2 -2
- package/dist/schemas/event-payloads.d.ts +12 -12
- package/dist/schemas/events.d.ts +40 -40
- package/dist/schemas/links.d.ts +2 -2
- package/dist/schemas/logs.d.ts +22 -22
- package/dist/schemas/objects.d.ts +10 -10
- package/dist/schemas/ontology.d.ts +118 -118
- package/dist/schemas/pipelines.d.ts +89 -184
- package/dist/schemas/pipelines.d.ts.map +1 -1
- package/dist/schemas/projections.d.ts +1030 -563
- package/dist/schemas/projections.d.ts.map +1 -1
- package/dist/schemas/rules.d.ts +6 -6
- package/dist/schemas/syncs.d.ts +65 -108
- package/dist/schemas/syncs.d.ts.map +1 -1
- package/dist/schemas/webhook-runs.d.ts +41 -41
- package/dist/schemas/webhook-runs.d.ts.map +1 -1
- package/dist/schemas/workflows.d.ts +1189 -185
- package/dist/schemas/workflows.d.ts.map +1 -1
- package/dist/server.d.ts +11 -6
- package/dist/server.d.ts.map +1 -1
- package/dist/utils/http.d.ts +2 -0
- package/dist/utils/http.d.ts.map +1 -1
- package/dist/utils/ws.d.ts +4 -3
- package/dist/utils/ws.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/auth/access-token-boundary.ts +4 -4
- package/src/auth/application-access.ts +8 -9
- package/src/auth/connector-callback-cookie.ts +95 -0
- package/src/auth/experience.ts +190 -0
- package/src/auth/guard.ts +11 -11
- package/src/auth/public-routes.ts +20 -0
- package/src/auth/scope.ts +26 -36
- package/src/auth/session-cookies.ts +3 -3
- package/src/connectors/http.ts +110 -0
- package/src/index.ts +1 -0
- package/src/openapi/tags.ts +13 -1
- package/src/registerRoutes.ts +36 -23
- package/src/routes/action-runs.ts +39 -39
- package/src/routes/actions.ts +7 -13
- package/src/routes/agent-api-gateway.ts +41 -38
- package/src/routes/agents.ts +90 -200
- package/src/routes/ai-accounting.ts +166 -0
- package/src/routes/auth.ts +274 -122
- package/src/routes/connector-connection-runs.ts +346 -0
- package/src/routes/connector-connections.ts +135 -0
- package/src/routes/connectors.ts +24 -12
- package/src/routes/datasets.ts +55 -54
- package/src/routes/events.ts +5 -5
- package/src/routes/files.ts +22 -30
- package/src/routes/links.ts +31 -35
- package/src/routes/logs.ts +6 -11
- package/src/routes/objects.ts +51 -114
- package/src/routes/ontology.ts +27 -38
- package/src/routes/pipelines.ts +28 -62
- package/src/routes/project.ts +3 -3
- package/src/routes/projections.ts +44 -42
- package/src/routes/rules.ts +11 -25
- package/src/routes/status.ts +5 -5
- package/src/routes/syncs.ts +19 -45
- package/src/routes/telemetry.ts +18 -29
- package/src/routes/webhook-runs.ts +5 -5
- package/src/routes/webhooks.ts +259 -341
- package/src/routes/workflows.ts +242 -248
- package/src/routes/ws/agents.ts +196 -66
- package/src/routes/ws/events.ts +11 -10
- package/src/routes/ws/log-subscription-hub.ts +6 -12
- package/src/routes/ws/logs.ts +13 -5
- package/src/schemas/actions.ts +58 -25
- package/src/schemas/agents.ts +23 -23
- package/src/schemas/ai-accounting.ts +182 -0
- package/src/schemas/ai-usage.ts +16 -0
- package/src/schemas/common.ts +24 -0
- package/src/schemas/connectors.ts +164 -0
- package/src/schemas/pipelines.ts +23 -15
- package/src/schemas/projections.ts +23 -3
- package/src/schemas/syncs.ts +13 -8
- package/src/schemas/webhook-runs.ts +10 -5
- package/src/schemas/workflows.ts +23 -8
- package/src/server.ts +75 -26
- package/src/utils/http.ts +34 -6
- package/src/utils/ws.ts +10 -5
package/dist/schemas/agents.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { type AgentRunFailureCode, type SixbFailure } from "@sixb/core/storage";
|
|
1
2
|
import { z } from "zod";
|
|
3
|
+
export declare const AgentRunFailureSchema: z.ZodType<SixbFailure<AgentRunFailureCode>>;
|
|
2
4
|
export declare const AgentIdParamsSchema: z.ZodObject<{
|
|
3
5
|
agentId: z.ZodString;
|
|
4
6
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -35,11 +37,21 @@ export declare const AgentPrincipalSchema: z.ZodObject<{
|
|
|
35
37
|
type: z.ZodEnum<["user", "serviceAccount", "system"]>;
|
|
36
38
|
id: z.ZodString;
|
|
37
39
|
}, "strip", z.ZodTypeAny, {
|
|
38
|
-
type: "user" | "serviceAccount" | "system";
|
|
39
40
|
id: string;
|
|
41
|
+
type: "user" | "serviceAccount" | "system";
|
|
40
42
|
}, {
|
|
43
|
+
id: string;
|
|
41
44
|
type: "user" | "serviceAccount" | "system";
|
|
45
|
+
}>;
|
|
46
|
+
export declare const AgentAuthorizablePrincipalSchema: z.ZodObject<{
|
|
47
|
+
type: z.ZodEnum<["user", "serviceAccount"]>;
|
|
48
|
+
id: z.ZodString;
|
|
49
|
+
}, "strip", z.ZodTypeAny, {
|
|
50
|
+
id: string;
|
|
51
|
+
type: "user" | "serviceAccount";
|
|
52
|
+
}, {
|
|
42
53
|
id: string;
|
|
54
|
+
type: "user" | "serviceAccount";
|
|
43
55
|
}>;
|
|
44
56
|
export declare const AgentObjectContextSchema: z.ZodObject<{
|
|
45
57
|
kind: z.ZodLiteral<"object">;
|
|
@@ -73,16 +85,16 @@ export declare const AgentAppStateContextSchema: z.ZodObject<{
|
|
|
73
85
|
description: z.ZodString;
|
|
74
86
|
value: z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>;
|
|
75
87
|
}, "strip", z.ZodTypeAny, {
|
|
88
|
+
id: string;
|
|
76
89
|
kind: "app-state";
|
|
77
90
|
description: string;
|
|
78
91
|
value: import("./common").JsonValue;
|
|
79
|
-
id: string;
|
|
80
92
|
label: string;
|
|
81
93
|
}, {
|
|
94
|
+
id: string;
|
|
82
95
|
kind: "app-state";
|
|
83
96
|
description: string;
|
|
84
97
|
value: import("./common").JsonValue;
|
|
85
|
-
id: string;
|
|
86
98
|
label: string;
|
|
87
99
|
}>;
|
|
88
100
|
export declare const AgentContextInputSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
@@ -116,16 +128,16 @@ export declare const AgentContextInputSchema: z.ZodDiscriminatedUnion<"kind", [z
|
|
|
116
128
|
description: z.ZodString;
|
|
117
129
|
value: z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>;
|
|
118
130
|
}, "strip", z.ZodTypeAny, {
|
|
131
|
+
id: string;
|
|
119
132
|
kind: "app-state";
|
|
120
133
|
description: string;
|
|
121
134
|
value: import("./common").JsonValue;
|
|
122
|
-
id: string;
|
|
123
135
|
label: string;
|
|
124
136
|
}, {
|
|
137
|
+
id: string;
|
|
125
138
|
kind: "app-state";
|
|
126
139
|
description: string;
|
|
127
140
|
value: import("./common").JsonValue;
|
|
128
|
-
id: string;
|
|
129
141
|
label: string;
|
|
130
142
|
}>]>;
|
|
131
143
|
export declare const AgentContextOriginSchema: z.ZodEnum<["ambient", "explicit"]>;
|
|
@@ -161,16 +173,16 @@ export declare const AgentContextEntryInputSchema: z.ZodObject<{
|
|
|
161
173
|
description: z.ZodString;
|
|
162
174
|
value: z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>;
|
|
163
175
|
}, "strip", z.ZodTypeAny, {
|
|
176
|
+
id: string;
|
|
164
177
|
kind: "app-state";
|
|
165
178
|
description: string;
|
|
166
179
|
value: import("./common").JsonValue;
|
|
167
|
-
id: string;
|
|
168
180
|
label: string;
|
|
169
181
|
}, {
|
|
182
|
+
id: string;
|
|
170
183
|
kind: "app-state";
|
|
171
184
|
description: string;
|
|
172
185
|
value: import("./common").JsonValue;
|
|
173
|
-
id: string;
|
|
174
186
|
label: string;
|
|
175
187
|
}>]>;
|
|
176
188
|
origin: z.ZodEnum<["ambient", "explicit"]>;
|
|
@@ -183,10 +195,10 @@ export declare const AgentContextEntryInputSchema: z.ZodObject<{
|
|
|
183
195
|
primaryId: string;
|
|
184
196
|
};
|
|
185
197
|
} | {
|
|
198
|
+
id: string;
|
|
186
199
|
kind: "app-state";
|
|
187
200
|
description: string;
|
|
188
201
|
value: import("./common").JsonValue;
|
|
189
|
-
id: string;
|
|
190
202
|
label: string;
|
|
191
203
|
};
|
|
192
204
|
}, {
|
|
@@ -198,10 +210,10 @@ export declare const AgentContextEntryInputSchema: z.ZodObject<{
|
|
|
198
210
|
primaryId: string;
|
|
199
211
|
};
|
|
200
212
|
} | {
|
|
213
|
+
id: string;
|
|
201
214
|
kind: "app-state";
|
|
202
215
|
description: string;
|
|
203
216
|
value: import("./common").JsonValue;
|
|
204
|
-
id: string;
|
|
205
217
|
label: string;
|
|
206
218
|
};
|
|
207
219
|
}>;
|
|
@@ -237,16 +249,16 @@ export declare const AgentContextPartSchema: z.ZodObject<{
|
|
|
237
249
|
description: z.ZodString;
|
|
238
250
|
value: z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>;
|
|
239
251
|
}, "strip", z.ZodTypeAny, {
|
|
252
|
+
id: string;
|
|
240
253
|
kind: "app-state";
|
|
241
254
|
description: string;
|
|
242
255
|
value: import("./common").JsonValue;
|
|
243
|
-
id: string;
|
|
244
256
|
label: string;
|
|
245
257
|
}, {
|
|
258
|
+
id: string;
|
|
246
259
|
kind: "app-state";
|
|
247
260
|
description: string;
|
|
248
261
|
value: import("./common").JsonValue;
|
|
249
|
-
id: string;
|
|
250
262
|
label: string;
|
|
251
263
|
}>]>;
|
|
252
264
|
origin: z.ZodEnum<["ambient", "explicit"]>;
|
|
@@ -262,10 +274,10 @@ export declare const AgentContextPartSchema: z.ZodObject<{
|
|
|
262
274
|
primaryId: string;
|
|
263
275
|
};
|
|
264
276
|
} | {
|
|
277
|
+
id: string;
|
|
265
278
|
kind: "app-state";
|
|
266
279
|
description: string;
|
|
267
280
|
value: import("./common").JsonValue;
|
|
268
|
-
id: string;
|
|
269
281
|
label: string;
|
|
270
282
|
};
|
|
271
283
|
}, {
|
|
@@ -278,10 +290,10 @@ export declare const AgentContextPartSchema: z.ZodObject<{
|
|
|
278
290
|
primaryId: string;
|
|
279
291
|
};
|
|
280
292
|
} | {
|
|
293
|
+
id: string;
|
|
281
294
|
kind: "app-state";
|
|
282
295
|
description: string;
|
|
283
296
|
value: import("./common").JsonValue;
|
|
284
|
-
id: string;
|
|
285
297
|
label: string;
|
|
286
298
|
};
|
|
287
299
|
}>;
|
|
@@ -328,8 +340,8 @@ export declare const AgentCatalogItemSchema: z.ZodObject<{
|
|
|
328
340
|
} | undefined;
|
|
329
341
|
}>>;
|
|
330
342
|
}, "strip", z.ZodTypeAny, {
|
|
331
|
-
name: string;
|
|
332
343
|
id: string;
|
|
344
|
+
name: string;
|
|
333
345
|
groupIds: string[];
|
|
334
346
|
description?: string | undefined;
|
|
335
347
|
modelId?: string | undefined;
|
|
@@ -340,8 +352,8 @@ export declare const AgentCatalogItemSchema: z.ZodObject<{
|
|
|
340
352
|
} | undefined;
|
|
341
353
|
} | undefined;
|
|
342
354
|
}, {
|
|
343
|
-
name: string;
|
|
344
355
|
id: string;
|
|
356
|
+
name: string;
|
|
345
357
|
groupIds: string[];
|
|
346
358
|
description?: string | undefined;
|
|
347
359
|
modelId?: string | undefined;
|
|
@@ -361,16 +373,16 @@ export declare const AgentThreadListQuerySchema: z.ZodObject<{
|
|
|
361
373
|
order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
|
|
362
374
|
}, "strip", z.ZodTypeAny, {
|
|
363
375
|
status?: "active" | "archived" | undefined;
|
|
364
|
-
agentId?: string | undefined;
|
|
365
376
|
limit?: string | undefined;
|
|
366
377
|
offset?: string | undefined;
|
|
367
378
|
order?: "asc" | "desc" | undefined;
|
|
379
|
+
agentId?: string | undefined;
|
|
368
380
|
}, {
|
|
369
381
|
status?: "active" | "archived" | undefined;
|
|
370
|
-
agentId?: string | undefined;
|
|
371
382
|
limit?: string | undefined;
|
|
372
383
|
offset?: string | undefined;
|
|
373
384
|
order?: "asc" | "desc" | undefined;
|
|
385
|
+
agentId?: string | undefined;
|
|
374
386
|
}>;
|
|
375
387
|
export declare const CreateAgentThreadBodySchema: z.ZodObject<{
|
|
376
388
|
agentId: z.ZodString;
|
|
@@ -393,11 +405,11 @@ export declare const AgentThreadSchema: z.ZodObject<{
|
|
|
393
405
|
type: z.ZodEnum<["user", "serviceAccount", "system"]>;
|
|
394
406
|
id: z.ZodString;
|
|
395
407
|
}, "strip", z.ZodTypeAny, {
|
|
396
|
-
type: "user" | "serviceAccount" | "system";
|
|
397
408
|
id: string;
|
|
398
|
-
}, {
|
|
399
409
|
type: "user" | "serviceAccount" | "system";
|
|
410
|
+
}, {
|
|
400
411
|
id: string;
|
|
412
|
+
type: "user" | "serviceAccount" | "system";
|
|
401
413
|
}>;
|
|
402
414
|
title: z.ZodOptional<z.ZodString>;
|
|
403
415
|
status: z.ZodEnum<["active", "archived"]>;
|
|
@@ -409,12 +421,12 @@ export declare const AgentThreadSchema: z.ZodObject<{
|
|
|
409
421
|
}, "strip", z.ZodTypeAny, {
|
|
410
422
|
status: "active" | "archived";
|
|
411
423
|
projectId: string;
|
|
424
|
+
id: string;
|
|
425
|
+
agentId: string;
|
|
412
426
|
ownerPrincipal: {
|
|
413
|
-
type: "user" | "serviceAccount" | "system";
|
|
414
427
|
id: string;
|
|
428
|
+
type: "user" | "serviceAccount" | "system";
|
|
415
429
|
};
|
|
416
|
-
agentId: string;
|
|
417
|
-
id: string;
|
|
418
430
|
activeRunId: string | null;
|
|
419
431
|
messageCount: number;
|
|
420
432
|
createdAt: string;
|
|
@@ -424,12 +436,12 @@ export declare const AgentThreadSchema: z.ZodObject<{
|
|
|
424
436
|
}, {
|
|
425
437
|
status: "active" | "archived";
|
|
426
438
|
projectId: string;
|
|
439
|
+
id: string;
|
|
440
|
+
agentId: string;
|
|
427
441
|
ownerPrincipal: {
|
|
428
|
-
type: "user" | "serviceAccount" | "system";
|
|
429
442
|
id: string;
|
|
443
|
+
type: "user" | "serviceAccount" | "system";
|
|
430
444
|
};
|
|
431
|
-
agentId: string;
|
|
432
|
-
id: string;
|
|
433
445
|
activeRunId: string | null;
|
|
434
446
|
messageCount: number;
|
|
435
447
|
createdAt: string;
|
|
@@ -446,11 +458,11 @@ export declare const AgentThreadListResponseSchema: z.ZodObject<{
|
|
|
446
458
|
type: z.ZodEnum<["user", "serviceAccount", "system"]>;
|
|
447
459
|
id: z.ZodString;
|
|
448
460
|
}, "strip", z.ZodTypeAny, {
|
|
449
|
-
type: "user" | "serviceAccount" | "system";
|
|
450
461
|
id: string;
|
|
451
|
-
}, {
|
|
452
462
|
type: "user" | "serviceAccount" | "system";
|
|
463
|
+
}, {
|
|
453
464
|
id: string;
|
|
465
|
+
type: "user" | "serviceAccount" | "system";
|
|
454
466
|
}>;
|
|
455
467
|
title: z.ZodOptional<z.ZodString>;
|
|
456
468
|
status: z.ZodEnum<["active", "archived"]>;
|
|
@@ -462,12 +474,12 @@ export declare const AgentThreadListResponseSchema: z.ZodObject<{
|
|
|
462
474
|
}, "strip", z.ZodTypeAny, {
|
|
463
475
|
status: "active" | "archived";
|
|
464
476
|
projectId: string;
|
|
477
|
+
id: string;
|
|
478
|
+
agentId: string;
|
|
465
479
|
ownerPrincipal: {
|
|
466
|
-
type: "user" | "serviceAccount" | "system";
|
|
467
480
|
id: string;
|
|
481
|
+
type: "user" | "serviceAccount" | "system";
|
|
468
482
|
};
|
|
469
|
-
agentId: string;
|
|
470
|
-
id: string;
|
|
471
483
|
activeRunId: string | null;
|
|
472
484
|
messageCount: number;
|
|
473
485
|
createdAt: string;
|
|
@@ -477,12 +489,12 @@ export declare const AgentThreadListResponseSchema: z.ZodObject<{
|
|
|
477
489
|
}, {
|
|
478
490
|
status: "active" | "archived";
|
|
479
491
|
projectId: string;
|
|
492
|
+
id: string;
|
|
493
|
+
agentId: string;
|
|
480
494
|
ownerPrincipal: {
|
|
481
|
-
type: "user" | "serviceAccount" | "system";
|
|
482
495
|
id: string;
|
|
496
|
+
type: "user" | "serviceAccount" | "system";
|
|
483
497
|
};
|
|
484
|
-
agentId: string;
|
|
485
|
-
id: string;
|
|
486
498
|
activeRunId: string | null;
|
|
487
499
|
messageCount: number;
|
|
488
500
|
createdAt: string;
|
|
@@ -498,12 +510,12 @@ export declare const AgentThreadListResponseSchema: z.ZodObject<{
|
|
|
498
510
|
threads: {
|
|
499
511
|
status: "active" | "archived";
|
|
500
512
|
projectId: string;
|
|
513
|
+
id: string;
|
|
514
|
+
agentId: string;
|
|
501
515
|
ownerPrincipal: {
|
|
502
|
-
type: "user" | "serviceAccount" | "system";
|
|
503
516
|
id: string;
|
|
517
|
+
type: "user" | "serviceAccount" | "system";
|
|
504
518
|
};
|
|
505
|
-
agentId: string;
|
|
506
|
-
id: string;
|
|
507
519
|
activeRunId: string | null;
|
|
508
520
|
messageCount: number;
|
|
509
521
|
createdAt: string;
|
|
@@ -517,12 +529,12 @@ export declare const AgentThreadListResponseSchema: z.ZodObject<{
|
|
|
517
529
|
threads: {
|
|
518
530
|
status: "active" | "archived";
|
|
519
531
|
projectId: string;
|
|
532
|
+
id: string;
|
|
533
|
+
agentId: string;
|
|
520
534
|
ownerPrincipal: {
|
|
521
|
-
type: "user" | "serviceAccount" | "system";
|
|
522
535
|
id: string;
|
|
536
|
+
type: "user" | "serviceAccount" | "system";
|
|
523
537
|
};
|
|
524
|
-
agentId: string;
|
|
525
|
-
id: string;
|
|
526
538
|
activeRunId: string | null;
|
|
527
539
|
messageCount: number;
|
|
528
540
|
createdAt: string;
|
|
@@ -540,11 +552,11 @@ export declare const CreateAgentThreadResponseSchema: z.ZodObject<{
|
|
|
540
552
|
type: z.ZodEnum<["user", "serviceAccount", "system"]>;
|
|
541
553
|
id: z.ZodString;
|
|
542
554
|
}, "strip", z.ZodTypeAny, {
|
|
543
|
-
type: "user" | "serviceAccount" | "system";
|
|
544
555
|
id: string;
|
|
545
|
-
}, {
|
|
546
556
|
type: "user" | "serviceAccount" | "system";
|
|
557
|
+
}, {
|
|
547
558
|
id: string;
|
|
559
|
+
type: "user" | "serviceAccount" | "system";
|
|
548
560
|
}>;
|
|
549
561
|
title: z.ZodOptional<z.ZodString>;
|
|
550
562
|
status: z.ZodEnum<["active", "archived"]>;
|
|
@@ -556,12 +568,12 @@ export declare const CreateAgentThreadResponseSchema: z.ZodObject<{
|
|
|
556
568
|
}, "strip", z.ZodTypeAny, {
|
|
557
569
|
status: "active" | "archived";
|
|
558
570
|
projectId: string;
|
|
571
|
+
id: string;
|
|
572
|
+
agentId: string;
|
|
559
573
|
ownerPrincipal: {
|
|
560
|
-
type: "user" | "serviceAccount" | "system";
|
|
561
574
|
id: string;
|
|
575
|
+
type: "user" | "serviceAccount" | "system";
|
|
562
576
|
};
|
|
563
|
-
agentId: string;
|
|
564
|
-
id: string;
|
|
565
577
|
activeRunId: string | null;
|
|
566
578
|
messageCount: number;
|
|
567
579
|
createdAt: string;
|
|
@@ -571,12 +583,12 @@ export declare const CreateAgentThreadResponseSchema: z.ZodObject<{
|
|
|
571
583
|
}, {
|
|
572
584
|
status: "active" | "archived";
|
|
573
585
|
projectId: string;
|
|
586
|
+
id: string;
|
|
587
|
+
agentId: string;
|
|
574
588
|
ownerPrincipal: {
|
|
575
|
-
type: "user" | "serviceAccount" | "system";
|
|
576
589
|
id: string;
|
|
590
|
+
type: "user" | "serviceAccount" | "system";
|
|
577
591
|
};
|
|
578
|
-
agentId: string;
|
|
579
|
-
id: string;
|
|
580
592
|
activeRunId: string | null;
|
|
581
593
|
messageCount: number;
|
|
582
594
|
createdAt: string;
|
|
@@ -588,12 +600,12 @@ export declare const CreateAgentThreadResponseSchema: z.ZodObject<{
|
|
|
588
600
|
thread: {
|
|
589
601
|
status: "active" | "archived";
|
|
590
602
|
projectId: string;
|
|
603
|
+
id: string;
|
|
604
|
+
agentId: string;
|
|
591
605
|
ownerPrincipal: {
|
|
592
|
-
type: "user" | "serviceAccount" | "system";
|
|
593
606
|
id: string;
|
|
607
|
+
type: "user" | "serviceAccount" | "system";
|
|
594
608
|
};
|
|
595
|
-
agentId: string;
|
|
596
|
-
id: string;
|
|
597
609
|
activeRunId: string | null;
|
|
598
610
|
messageCount: number;
|
|
599
611
|
createdAt: string;
|
|
@@ -605,12 +617,12 @@ export declare const CreateAgentThreadResponseSchema: z.ZodObject<{
|
|
|
605
617
|
thread: {
|
|
606
618
|
status: "active" | "archived";
|
|
607
619
|
projectId: string;
|
|
620
|
+
id: string;
|
|
621
|
+
agentId: string;
|
|
608
622
|
ownerPrincipal: {
|
|
609
|
-
type: "user" | "serviceAccount" | "system";
|
|
610
623
|
id: string;
|
|
624
|
+
type: "user" | "serviceAccount" | "system";
|
|
611
625
|
};
|
|
612
|
-
agentId: string;
|
|
613
|
-
id: string;
|
|
614
626
|
activeRunId: string | null;
|
|
615
627
|
messageCount: number;
|
|
616
628
|
createdAt: string;
|
|
@@ -729,16 +741,16 @@ export declare const AgentMessagePartSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
729
741
|
description: z.ZodString;
|
|
730
742
|
value: z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>;
|
|
731
743
|
}, "strip", z.ZodTypeAny, {
|
|
744
|
+
id: string;
|
|
732
745
|
kind: "app-state";
|
|
733
746
|
description: string;
|
|
734
747
|
value: import("./common").JsonValue;
|
|
735
|
-
id: string;
|
|
736
748
|
label: string;
|
|
737
749
|
}, {
|
|
750
|
+
id: string;
|
|
738
751
|
kind: "app-state";
|
|
739
752
|
description: string;
|
|
740
753
|
value: import("./common").JsonValue;
|
|
741
|
-
id: string;
|
|
742
754
|
label: string;
|
|
743
755
|
}>]>;
|
|
744
756
|
origin: z.ZodEnum<["ambient", "explicit"]>;
|
|
@@ -754,10 +766,10 @@ export declare const AgentMessagePartSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
754
766
|
primaryId: string;
|
|
755
767
|
};
|
|
756
768
|
} | {
|
|
769
|
+
id: string;
|
|
757
770
|
kind: "app-state";
|
|
758
771
|
description: string;
|
|
759
772
|
value: import("./common").JsonValue;
|
|
760
|
-
id: string;
|
|
761
773
|
label: string;
|
|
762
774
|
};
|
|
763
775
|
}, {
|
|
@@ -770,10 +782,10 @@ export declare const AgentMessagePartSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
770
782
|
primaryId: string;
|
|
771
783
|
};
|
|
772
784
|
} | {
|
|
785
|
+
id: string;
|
|
773
786
|
kind: "app-state";
|
|
774
787
|
description: string;
|
|
775
788
|
value: import("./common").JsonValue;
|
|
776
|
-
id: string;
|
|
777
789
|
label: string;
|
|
778
790
|
};
|
|
779
791
|
}>, z.ZodObject<{
|
|
@@ -868,11 +880,11 @@ export declare const AgentMessageSchema: z.ZodObject<{
|
|
|
868
880
|
type: z.ZodEnum<["user", "serviceAccount", "system"]>;
|
|
869
881
|
id: z.ZodString;
|
|
870
882
|
}, "strip", z.ZodTypeAny, {
|
|
871
|
-
type: "user" | "serviceAccount" | "system";
|
|
872
883
|
id: string;
|
|
873
|
-
}, {
|
|
874
884
|
type: "user" | "serviceAccount" | "system";
|
|
885
|
+
}, {
|
|
875
886
|
id: string;
|
|
887
|
+
type: "user" | "serviceAccount" | "system";
|
|
876
888
|
}>>;
|
|
877
889
|
seq: z.ZodNumber;
|
|
878
890
|
parts: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
@@ -984,16 +996,16 @@ export declare const AgentMessageSchema: z.ZodObject<{
|
|
|
984
996
|
description: z.ZodString;
|
|
985
997
|
value: z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>;
|
|
986
998
|
}, "strip", z.ZodTypeAny, {
|
|
999
|
+
id: string;
|
|
987
1000
|
kind: "app-state";
|
|
988
1001
|
description: string;
|
|
989
1002
|
value: import("./common").JsonValue;
|
|
990
|
-
id: string;
|
|
991
1003
|
label: string;
|
|
992
1004
|
}, {
|
|
1005
|
+
id: string;
|
|
993
1006
|
kind: "app-state";
|
|
994
1007
|
description: string;
|
|
995
1008
|
value: import("./common").JsonValue;
|
|
996
|
-
id: string;
|
|
997
1009
|
label: string;
|
|
998
1010
|
}>]>;
|
|
999
1011
|
origin: z.ZodEnum<["ambient", "explicit"]>;
|
|
@@ -1009,10 +1021,10 @@ export declare const AgentMessageSchema: z.ZodObject<{
|
|
|
1009
1021
|
primaryId: string;
|
|
1010
1022
|
};
|
|
1011
1023
|
} | {
|
|
1024
|
+
id: string;
|
|
1012
1025
|
kind: "app-state";
|
|
1013
1026
|
description: string;
|
|
1014
1027
|
value: import("./common").JsonValue;
|
|
1015
|
-
id: string;
|
|
1016
1028
|
label: string;
|
|
1017
1029
|
};
|
|
1018
1030
|
}, {
|
|
@@ -1025,10 +1037,10 @@ export declare const AgentMessageSchema: z.ZodObject<{
|
|
|
1025
1037
|
primaryId: string;
|
|
1026
1038
|
};
|
|
1027
1039
|
} | {
|
|
1040
|
+
id: string;
|
|
1028
1041
|
kind: "app-state";
|
|
1029
1042
|
description: string;
|
|
1030
1043
|
value: import("./common").JsonValue;
|
|
1031
|
-
id: string;
|
|
1032
1044
|
label: string;
|
|
1033
1045
|
};
|
|
1034
1046
|
}>, z.ZodObject<{
|
|
@@ -1132,10 +1144,10 @@ export declare const AgentMessageSchema: z.ZodObject<{
|
|
|
1132
1144
|
primaryId: string;
|
|
1133
1145
|
};
|
|
1134
1146
|
} | {
|
|
1147
|
+
id: string;
|
|
1135
1148
|
kind: "app-state";
|
|
1136
1149
|
description: string;
|
|
1137
1150
|
value: import("./common").JsonValue;
|
|
1138
|
-
id: string;
|
|
1139
1151
|
label: string;
|
|
1140
1152
|
};
|
|
1141
1153
|
} | {
|
|
@@ -1194,8 +1206,8 @@ export declare const AgentMessageSchema: z.ZodObject<{
|
|
|
1194
1206
|
contentVersion: number;
|
|
1195
1207
|
completedAt?: string | undefined;
|
|
1196
1208
|
authorPrincipal?: {
|
|
1197
|
-
type: "user" | "serviceAccount" | "system";
|
|
1198
1209
|
id: string;
|
|
1210
|
+
type: "user" | "serviceAccount" | "system";
|
|
1199
1211
|
} | undefined;
|
|
1200
1212
|
metadata?: import("./common").JsonValue | undefined;
|
|
1201
1213
|
}, {
|
|
@@ -1212,10 +1224,10 @@ export declare const AgentMessageSchema: z.ZodObject<{
|
|
|
1212
1224
|
primaryId: string;
|
|
1213
1225
|
};
|
|
1214
1226
|
} | {
|
|
1227
|
+
id: string;
|
|
1215
1228
|
kind: "app-state";
|
|
1216
1229
|
description: string;
|
|
1217
1230
|
value: import("./common").JsonValue;
|
|
1218
|
-
id: string;
|
|
1219
1231
|
label: string;
|
|
1220
1232
|
};
|
|
1221
1233
|
} | {
|
|
@@ -1274,8 +1286,8 @@ export declare const AgentMessageSchema: z.ZodObject<{
|
|
|
1274
1286
|
contentVersion: number;
|
|
1275
1287
|
completedAt?: string | undefined;
|
|
1276
1288
|
authorPrincipal?: {
|
|
1277
|
-
type: "user" | "serviceAccount" | "system";
|
|
1278
1289
|
id: string;
|
|
1290
|
+
type: "user" | "serviceAccount" | "system";
|
|
1279
1291
|
} | undefined;
|
|
1280
1292
|
metadata?: import("./common").JsonValue | undefined;
|
|
1281
1293
|
}>;
|
|
@@ -1306,11 +1318,11 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
|
|
|
1306
1318
|
type: z.ZodEnum<["user", "serviceAccount", "system"]>;
|
|
1307
1319
|
id: z.ZodString;
|
|
1308
1320
|
}, "strip", z.ZodTypeAny, {
|
|
1309
|
-
type: "user" | "serviceAccount" | "system";
|
|
1310
1321
|
id: string;
|
|
1311
|
-
}, {
|
|
1312
1322
|
type: "user" | "serviceAccount" | "system";
|
|
1323
|
+
}, {
|
|
1313
1324
|
id: string;
|
|
1325
|
+
type: "user" | "serviceAccount" | "system";
|
|
1314
1326
|
}>>;
|
|
1315
1327
|
seq: z.ZodNumber;
|
|
1316
1328
|
parts: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
@@ -1422,16 +1434,16 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
|
|
|
1422
1434
|
description: z.ZodString;
|
|
1423
1435
|
value: z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>;
|
|
1424
1436
|
}, "strip", z.ZodTypeAny, {
|
|
1437
|
+
id: string;
|
|
1425
1438
|
kind: "app-state";
|
|
1426
1439
|
description: string;
|
|
1427
1440
|
value: import("./common").JsonValue;
|
|
1428
|
-
id: string;
|
|
1429
1441
|
label: string;
|
|
1430
1442
|
}, {
|
|
1443
|
+
id: string;
|
|
1431
1444
|
kind: "app-state";
|
|
1432
1445
|
description: string;
|
|
1433
1446
|
value: import("./common").JsonValue;
|
|
1434
|
-
id: string;
|
|
1435
1447
|
label: string;
|
|
1436
1448
|
}>]>;
|
|
1437
1449
|
origin: z.ZodEnum<["ambient", "explicit"]>;
|
|
@@ -1447,10 +1459,10 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
|
|
|
1447
1459
|
primaryId: string;
|
|
1448
1460
|
};
|
|
1449
1461
|
} | {
|
|
1462
|
+
id: string;
|
|
1450
1463
|
kind: "app-state";
|
|
1451
1464
|
description: string;
|
|
1452
1465
|
value: import("./common").JsonValue;
|
|
1453
|
-
id: string;
|
|
1454
1466
|
label: string;
|
|
1455
1467
|
};
|
|
1456
1468
|
}, {
|
|
@@ -1463,10 +1475,10 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
|
|
|
1463
1475
|
primaryId: string;
|
|
1464
1476
|
};
|
|
1465
1477
|
} | {
|
|
1478
|
+
id: string;
|
|
1466
1479
|
kind: "app-state";
|
|
1467
1480
|
description: string;
|
|
1468
1481
|
value: import("./common").JsonValue;
|
|
1469
|
-
id: string;
|
|
1470
1482
|
label: string;
|
|
1471
1483
|
};
|
|
1472
1484
|
}>, z.ZodObject<{
|
|
@@ -1570,10 +1582,10 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
|
|
|
1570
1582
|
primaryId: string;
|
|
1571
1583
|
};
|
|
1572
1584
|
} | {
|
|
1585
|
+
id: string;
|
|
1573
1586
|
kind: "app-state";
|
|
1574
1587
|
description: string;
|
|
1575
1588
|
value: import("./common").JsonValue;
|
|
1576
|
-
id: string;
|
|
1577
1589
|
label: string;
|
|
1578
1590
|
};
|
|
1579
1591
|
} | {
|
|
@@ -1632,8 +1644,8 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
|
|
|
1632
1644
|
contentVersion: number;
|
|
1633
1645
|
completedAt?: string | undefined;
|
|
1634
1646
|
authorPrincipal?: {
|
|
1635
|
-
type: "user" | "serviceAccount" | "system";
|
|
1636
1647
|
id: string;
|
|
1648
|
+
type: "user" | "serviceAccount" | "system";
|
|
1637
1649
|
} | undefined;
|
|
1638
1650
|
metadata?: import("./common").JsonValue | undefined;
|
|
1639
1651
|
}, {
|
|
@@ -1650,10 +1662,10 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
|
|
|
1650
1662
|
primaryId: string;
|
|
1651
1663
|
};
|
|
1652
1664
|
} | {
|
|
1665
|
+
id: string;
|
|
1653
1666
|
kind: "app-state";
|
|
1654
1667
|
description: string;
|
|
1655
1668
|
value: import("./common").JsonValue;
|
|
1656
|
-
id: string;
|
|
1657
1669
|
label: string;
|
|
1658
1670
|
};
|
|
1659
1671
|
} | {
|
|
@@ -1712,8 +1724,8 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
|
|
|
1712
1724
|
contentVersion: number;
|
|
1713
1725
|
completedAt?: string | undefined;
|
|
1714
1726
|
authorPrincipal?: {
|
|
1715
|
-
type: "user" | "serviceAccount" | "system";
|
|
1716
1727
|
id: string;
|
|
1728
|
+
type: "user" | "serviceAccount" | "system";
|
|
1717
1729
|
} | undefined;
|
|
1718
1730
|
metadata?: import("./common").JsonValue | undefined;
|
|
1719
1731
|
}>, "many">;
|
|
@@ -1736,10 +1748,10 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
|
|
|
1736
1748
|
primaryId: string;
|
|
1737
1749
|
};
|
|
1738
1750
|
} | {
|
|
1751
|
+
id: string;
|
|
1739
1752
|
kind: "app-state";
|
|
1740
1753
|
description: string;
|
|
1741
1754
|
value: import("./common").JsonValue;
|
|
1742
|
-
id: string;
|
|
1743
1755
|
label: string;
|
|
1744
1756
|
};
|
|
1745
1757
|
} | {
|
|
@@ -1798,8 +1810,8 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
|
|
|
1798
1810
|
contentVersion: number;
|
|
1799
1811
|
completedAt?: string | undefined;
|
|
1800
1812
|
authorPrincipal?: {
|
|
1801
|
-
type: "user" | "serviceAccount" | "system";
|
|
1802
1813
|
id: string;
|
|
1814
|
+
type: "user" | "serviceAccount" | "system";
|
|
1803
1815
|
} | undefined;
|
|
1804
1816
|
metadata?: import("./common").JsonValue | undefined;
|
|
1805
1817
|
}[];
|
|
@@ -1820,10 +1832,10 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
|
|
|
1820
1832
|
primaryId: string;
|
|
1821
1833
|
};
|
|
1822
1834
|
} | {
|
|
1835
|
+
id: string;
|
|
1823
1836
|
kind: "app-state";
|
|
1824
1837
|
description: string;
|
|
1825
1838
|
value: import("./common").JsonValue;
|
|
1826
|
-
id: string;
|
|
1827
1839
|
label: string;
|
|
1828
1840
|
};
|
|
1829
1841
|
} | {
|
|
@@ -1882,8 +1894,8 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
|
|
|
1882
1894
|
contentVersion: number;
|
|
1883
1895
|
completedAt?: string | undefined;
|
|
1884
1896
|
authorPrincipal?: {
|
|
1885
|
-
type: "user" | "serviceAccount" | "system";
|
|
1886
1897
|
id: string;
|
|
1898
|
+
type: "user" | "serviceAccount" | "system";
|
|
1887
1899
|
} | undefined;
|
|
1888
1900
|
metadata?: import("./common").JsonValue | undefined;
|
|
1889
1901
|
}[];
|
|
@@ -1944,16 +1956,16 @@ export declare const PostAgentMessageBodySchema: z.ZodObject<{
|
|
|
1944
1956
|
description: z.ZodString;
|
|
1945
1957
|
value: z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>;
|
|
1946
1958
|
}, "strip", z.ZodTypeAny, {
|
|
1959
|
+
id: string;
|
|
1947
1960
|
kind: "app-state";
|
|
1948
1961
|
description: string;
|
|
1949
1962
|
value: import("./common").JsonValue;
|
|
1950
|
-
id: string;
|
|
1951
1963
|
label: string;
|
|
1952
1964
|
}, {
|
|
1965
|
+
id: string;
|
|
1953
1966
|
kind: "app-state";
|
|
1954
1967
|
description: string;
|
|
1955
1968
|
value: import("./common").JsonValue;
|
|
1956
|
-
id: string;
|
|
1957
1969
|
label: string;
|
|
1958
1970
|
}>]>;
|
|
1959
1971
|
origin: z.ZodEnum<["ambient", "explicit"]>;
|
|
@@ -1966,10 +1978,10 @@ export declare const PostAgentMessageBodySchema: z.ZodObject<{
|
|
|
1966
1978
|
primaryId: string;
|
|
1967
1979
|
};
|
|
1968
1980
|
} | {
|
|
1981
|
+
id: string;
|
|
1969
1982
|
kind: "app-state";
|
|
1970
1983
|
description: string;
|
|
1971
1984
|
value: import("./common").JsonValue;
|
|
1972
|
-
id: string;
|
|
1973
1985
|
label: string;
|
|
1974
1986
|
};
|
|
1975
1987
|
}, {
|
|
@@ -1981,17 +1993,16 @@ export declare const PostAgentMessageBodySchema: z.ZodObject<{
|
|
|
1981
1993
|
primaryId: string;
|
|
1982
1994
|
};
|
|
1983
1995
|
} | {
|
|
1996
|
+
id: string;
|
|
1984
1997
|
kind: "app-state";
|
|
1985
1998
|
description: string;
|
|
1986
1999
|
value: import("./common").JsonValue;
|
|
1987
|
-
id: string;
|
|
1988
2000
|
label: string;
|
|
1989
2001
|
};
|
|
1990
2002
|
}>, "many">>;
|
|
1991
2003
|
messageId: z.ZodOptional<z.ZodString>;
|
|
1992
2004
|
}, "strip", z.ZodTypeAny, {
|
|
1993
2005
|
text: string;
|
|
1994
|
-
messageId?: string | undefined;
|
|
1995
2006
|
context?: {
|
|
1996
2007
|
origin: "ambient" | "explicit";
|
|
1997
2008
|
context: {
|
|
@@ -2001,13 +2012,14 @@ export declare const PostAgentMessageBodySchema: z.ZodObject<{
|
|
|
2001
2012
|
primaryId: string;
|
|
2002
2013
|
};
|
|
2003
2014
|
} | {
|
|
2015
|
+
id: string;
|
|
2004
2016
|
kind: "app-state";
|
|
2005
2017
|
description: string;
|
|
2006
2018
|
value: import("./common").JsonValue;
|
|
2007
|
-
id: string;
|
|
2008
2019
|
label: string;
|
|
2009
2020
|
};
|
|
2010
2021
|
}[] | undefined;
|
|
2022
|
+
messageId?: string | undefined;
|
|
2011
2023
|
attachments?: {
|
|
2012
2024
|
blobId: string;
|
|
2013
2025
|
digest: string;
|
|
@@ -2018,7 +2030,6 @@ export declare const PostAgentMessageBodySchema: z.ZodObject<{
|
|
|
2018
2030
|
}[] | undefined;
|
|
2019
2031
|
}, {
|
|
2020
2032
|
text: string;
|
|
2021
|
-
messageId?: string | undefined;
|
|
2022
2033
|
context?: {
|
|
2023
2034
|
origin: "ambient" | "explicit";
|
|
2024
2035
|
context: {
|
|
@@ -2028,13 +2039,14 @@ export declare const PostAgentMessageBodySchema: z.ZodObject<{
|
|
|
2028
2039
|
primaryId: string;
|
|
2029
2040
|
};
|
|
2030
2041
|
} | {
|
|
2042
|
+
id: string;
|
|
2031
2043
|
kind: "app-state";
|
|
2032
2044
|
description: string;
|
|
2033
2045
|
value: import("./common").JsonValue;
|
|
2034
|
-
id: string;
|
|
2035
2046
|
label: string;
|
|
2036
2047
|
};
|
|
2037
2048
|
}[] | undefined;
|
|
2049
|
+
messageId?: string | undefined;
|
|
2038
2050
|
attachments?: {
|
|
2039
2051
|
blobId: string;
|
|
2040
2052
|
digest: string;
|
|
@@ -2052,73 +2064,87 @@ export declare const CancelAgentRunBodySchema: z.ZodObject<{
|
|
|
2052
2064
|
runId: string;
|
|
2053
2065
|
}>;
|
|
2054
2066
|
export declare const AgentRunStatusSchema: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
|
|
2055
|
-
export declare const AgentRunFinishReasonSchema: z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "error", "other", "unknown"]>;
|
|
2056
|
-
export declare const AgentRunUsageSchema: z.ZodObject<{
|
|
2057
|
-
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2058
|
-
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2059
|
-
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
2060
|
-
reasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
2061
|
-
cachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2062
|
-
}, "strip", z.ZodTypeAny, {
|
|
2063
|
-
inputTokens?: number | undefined;
|
|
2064
|
-
outputTokens?: number | undefined;
|
|
2065
|
-
totalTokens?: number | undefined;
|
|
2066
|
-
reasoningTokens?: number | undefined;
|
|
2067
|
-
cachedInputTokens?: number | undefined;
|
|
2068
|
-
}, {
|
|
2069
|
-
inputTokens?: number | undefined;
|
|
2070
|
-
outputTokens?: number | undefined;
|
|
2071
|
-
totalTokens?: number | undefined;
|
|
2072
|
-
reasoningTokens?: number | undefined;
|
|
2073
|
-
cachedInputTokens?: number | undefined;
|
|
2074
|
-
}>;
|
|
2067
|
+
export declare const AgentRunFinishReasonSchema: z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "error", "other", "unknown"]>;
|
|
2075
2068
|
export declare const AgentRunSchema: z.ZodObject<{
|
|
2076
2069
|
id: z.ZodString;
|
|
2077
2070
|
projectId: z.ZodString;
|
|
2078
2071
|
threadId: z.ZodString;
|
|
2079
2072
|
agentId: z.ZodString;
|
|
2080
2073
|
triggerMessageId: z.ZodString;
|
|
2081
|
-
|
|
2082
|
-
type: z.ZodEnum<["user", "serviceAccount"
|
|
2083
|
-
id: z.ZodString;
|
|
2084
|
-
}, "strip", z.ZodTypeAny, {
|
|
2085
|
-
type: "user" | "serviceAccount" | "system";
|
|
2086
|
-
id: string;
|
|
2087
|
-
}, {
|
|
2088
|
-
type: "user" | "serviceAccount" | "system";
|
|
2089
|
-
id: string;
|
|
2090
|
-
}>;
|
|
2091
|
-
executionPrincipal: z.ZodOptional<z.ZodObject<{
|
|
2092
|
-
type: z.ZodEnum<["user", "serviceAccount", "system"]>;
|
|
2074
|
+
requestedBy: z.ZodOptional<z.ZodObject<{
|
|
2075
|
+
type: z.ZodEnum<["user", "serviceAccount"]>;
|
|
2093
2076
|
id: z.ZodString;
|
|
2094
2077
|
}, "strip", z.ZodTypeAny, {
|
|
2095
|
-
type: "user" | "serviceAccount" | "system";
|
|
2096
2078
|
id: string;
|
|
2079
|
+
type: "user" | "serviceAccount";
|
|
2097
2080
|
}, {
|
|
2098
|
-
type: "user" | "serviceAccount" | "system";
|
|
2099
2081
|
id: string;
|
|
2082
|
+
type: "user" | "serviceAccount";
|
|
2100
2083
|
}>>;
|
|
2101
2084
|
status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
|
|
2102
2085
|
modelId: z.ZodOptional<z.ZodString>;
|
|
2103
|
-
finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "error", "other", "unknown"]>>;
|
|
2086
|
+
finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "error", "other", "unknown"]>>;
|
|
2104
2087
|
usage: z.ZodOptional<z.ZodObject<{
|
|
2105
2088
|
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2106
2089
|
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2107
2090
|
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
2108
|
-
|
|
2109
|
-
|
|
2091
|
+
uncachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2092
|
+
cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2093
|
+
cacheWriteInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2094
|
+
textOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2095
|
+
reasoningOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2096
|
+
reportingStatus: z.ZodEnum<["complete", "partial", "unavailable"]>;
|
|
2110
2097
|
}, "strip", z.ZodTypeAny, {
|
|
2098
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2111
2099
|
inputTokens?: number | undefined;
|
|
2112
2100
|
outputTokens?: number | undefined;
|
|
2113
2101
|
totalTokens?: number | undefined;
|
|
2114
|
-
|
|
2115
|
-
|
|
2102
|
+
uncachedInputTokens?: number | undefined;
|
|
2103
|
+
cacheReadInputTokens?: number | undefined;
|
|
2104
|
+
cacheWriteInputTokens?: number | undefined;
|
|
2105
|
+
textOutputTokens?: number | undefined;
|
|
2106
|
+
reasoningOutputTokens?: number | undefined;
|
|
2116
2107
|
}, {
|
|
2108
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2117
2109
|
inputTokens?: number | undefined;
|
|
2118
2110
|
outputTokens?: number | undefined;
|
|
2119
2111
|
totalTokens?: number | undefined;
|
|
2120
|
-
|
|
2121
|
-
|
|
2112
|
+
uncachedInputTokens?: number | undefined;
|
|
2113
|
+
cacheReadInputTokens?: number | undefined;
|
|
2114
|
+
cacheWriteInputTokens?: number | undefined;
|
|
2115
|
+
textOutputTokens?: number | undefined;
|
|
2116
|
+
reasoningOutputTokens?: number | undefined;
|
|
2117
|
+
}>>;
|
|
2118
|
+
cost: z.ZodOptional<z.ZodObject<{
|
|
2119
|
+
amounts: z.ZodArray<z.ZodObject<{
|
|
2120
|
+
currency: z.ZodString;
|
|
2121
|
+
amountNanos: z.ZodString;
|
|
2122
|
+
}, "strip", z.ZodTypeAny, {
|
|
2123
|
+
currency: string;
|
|
2124
|
+
amountNanos: string;
|
|
2125
|
+
}, {
|
|
2126
|
+
currency: string;
|
|
2127
|
+
amountNanos: string;
|
|
2128
|
+
}>, "many">;
|
|
2129
|
+
ratedCallCount: z.ZodNumber;
|
|
2130
|
+
unpriceableCallCount: z.ZodNumber;
|
|
2131
|
+
unvaluedCallCount: z.ZodNumber;
|
|
2132
|
+
}, "strip", z.ZodTypeAny, {
|
|
2133
|
+
amounts: {
|
|
2134
|
+
currency: string;
|
|
2135
|
+
amountNanos: string;
|
|
2136
|
+
}[];
|
|
2137
|
+
ratedCallCount: number;
|
|
2138
|
+
unpriceableCallCount: number;
|
|
2139
|
+
unvaluedCallCount: number;
|
|
2140
|
+
}, {
|
|
2141
|
+
amounts: {
|
|
2142
|
+
currency: string;
|
|
2143
|
+
amountNanos: string;
|
|
2144
|
+
}[];
|
|
2145
|
+
ratedCallCount: number;
|
|
2146
|
+
unpriceableCallCount: number;
|
|
2147
|
+
unvaluedCallCount: number;
|
|
2122
2148
|
}>>;
|
|
2123
2149
|
diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2124
2150
|
code: z.ZodEnum<["output_file_limit_exceeded", "output_file_too_large", "output_budget_exhausted", "output_collection_failed", "output_file_changed", "output_storage_failed"]>;
|
|
@@ -2139,7 +2165,7 @@ export declare const AgentRunSchema: z.ZodObject<{
|
|
|
2139
2165
|
scope: "output";
|
|
2140
2166
|
path?: string | undefined;
|
|
2141
2167
|
}>, "many">>;
|
|
2142
|
-
error: z.ZodOptional<z.
|
|
2168
|
+
error: z.ZodOptional<z.ZodType<SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled">, z.ZodTypeDef, SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled">>>;
|
|
2143
2169
|
attempt: z.ZodNumber;
|
|
2144
2170
|
streamId: z.ZodString;
|
|
2145
2171
|
createdAt: z.ZodString;
|
|
@@ -2148,33 +2174,42 @@ export declare const AgentRunSchema: z.ZodObject<{
|
|
|
2148
2174
|
}, "strip", z.ZodTypeAny, {
|
|
2149
2175
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2150
2176
|
projectId: string;
|
|
2151
|
-
agentId: string;
|
|
2152
2177
|
id: string;
|
|
2178
|
+
agentId: string;
|
|
2179
|
+
attempt: number;
|
|
2153
2180
|
threadId: string;
|
|
2154
2181
|
createdAt: string;
|
|
2155
2182
|
triggerMessageId: string;
|
|
2156
|
-
requestedByPrincipal: {
|
|
2157
|
-
type: "user" | "serviceAccount" | "system";
|
|
2158
|
-
id: string;
|
|
2159
|
-
};
|
|
2160
|
-
attempt: number;
|
|
2161
2183
|
streamId: string;
|
|
2162
|
-
error?:
|
|
2184
|
+
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
2163
2185
|
startedAt?: string | undefined;
|
|
2164
2186
|
completedAt?: string | undefined;
|
|
2165
|
-
executionPrincipal?: {
|
|
2166
|
-
type: "user" | "serviceAccount" | "system";
|
|
2167
|
-
id: string;
|
|
2168
|
-
} | undefined;
|
|
2169
2187
|
modelId?: string | undefined;
|
|
2170
|
-
finishReason?: "length" | "error" | "unknown" | "stop" | "content-filter" | "tool-calls" | "other" | undefined;
|
|
2171
2188
|
usage?: {
|
|
2189
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2172
2190
|
inputTokens?: number | undefined;
|
|
2173
2191
|
outputTokens?: number | undefined;
|
|
2174
2192
|
totalTokens?: number | undefined;
|
|
2175
|
-
|
|
2176
|
-
|
|
2193
|
+
uncachedInputTokens?: number | undefined;
|
|
2194
|
+
cacheReadInputTokens?: number | undefined;
|
|
2195
|
+
cacheWriteInputTokens?: number | undefined;
|
|
2196
|
+
textOutputTokens?: number | undefined;
|
|
2197
|
+
reasoningOutputTokens?: number | undefined;
|
|
2198
|
+
} | undefined;
|
|
2199
|
+
cost?: {
|
|
2200
|
+
amounts: {
|
|
2201
|
+
currency: string;
|
|
2202
|
+
amountNanos: string;
|
|
2203
|
+
}[];
|
|
2204
|
+
ratedCallCount: number;
|
|
2205
|
+
unpriceableCallCount: number;
|
|
2206
|
+
unvaluedCallCount: number;
|
|
2207
|
+
} | undefined;
|
|
2208
|
+
requestedBy?: {
|
|
2209
|
+
id: string;
|
|
2210
|
+
type: "user" | "serviceAccount";
|
|
2177
2211
|
} | undefined;
|
|
2212
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
2178
2213
|
diagnostics?: {
|
|
2179
2214
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2180
2215
|
message: string;
|
|
@@ -2185,33 +2220,42 @@ export declare const AgentRunSchema: z.ZodObject<{
|
|
|
2185
2220
|
}, {
|
|
2186
2221
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2187
2222
|
projectId: string;
|
|
2188
|
-
agentId: string;
|
|
2189
2223
|
id: string;
|
|
2224
|
+
agentId: string;
|
|
2225
|
+
attempt: number;
|
|
2190
2226
|
threadId: string;
|
|
2191
2227
|
createdAt: string;
|
|
2192
2228
|
triggerMessageId: string;
|
|
2193
|
-
requestedByPrincipal: {
|
|
2194
|
-
type: "user" | "serviceAccount" | "system";
|
|
2195
|
-
id: string;
|
|
2196
|
-
};
|
|
2197
|
-
attempt: number;
|
|
2198
2229
|
streamId: string;
|
|
2199
|
-
error?:
|
|
2230
|
+
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
2200
2231
|
startedAt?: string | undefined;
|
|
2201
2232
|
completedAt?: string | undefined;
|
|
2202
|
-
executionPrincipal?: {
|
|
2203
|
-
type: "user" | "serviceAccount" | "system";
|
|
2204
|
-
id: string;
|
|
2205
|
-
} | undefined;
|
|
2206
2233
|
modelId?: string | undefined;
|
|
2207
|
-
finishReason?: "length" | "error" | "unknown" | "stop" | "content-filter" | "tool-calls" | "other" | undefined;
|
|
2208
2234
|
usage?: {
|
|
2235
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2209
2236
|
inputTokens?: number | undefined;
|
|
2210
2237
|
outputTokens?: number | undefined;
|
|
2211
2238
|
totalTokens?: number | undefined;
|
|
2212
|
-
|
|
2213
|
-
|
|
2239
|
+
uncachedInputTokens?: number | undefined;
|
|
2240
|
+
cacheReadInputTokens?: number | undefined;
|
|
2241
|
+
cacheWriteInputTokens?: number | undefined;
|
|
2242
|
+
textOutputTokens?: number | undefined;
|
|
2243
|
+
reasoningOutputTokens?: number | undefined;
|
|
2244
|
+
} | undefined;
|
|
2245
|
+
cost?: {
|
|
2246
|
+
amounts: {
|
|
2247
|
+
currency: string;
|
|
2248
|
+
amountNanos: string;
|
|
2249
|
+
}[];
|
|
2250
|
+
ratedCallCount: number;
|
|
2251
|
+
unpriceableCallCount: number;
|
|
2252
|
+
unvaluedCallCount: number;
|
|
2253
|
+
} | undefined;
|
|
2254
|
+
requestedBy?: {
|
|
2255
|
+
id: string;
|
|
2256
|
+
type: "user" | "serviceAccount";
|
|
2214
2257
|
} | undefined;
|
|
2258
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
2215
2259
|
diagnostics?: {
|
|
2216
2260
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2217
2261
|
message: string;
|
|
@@ -2227,47 +2271,80 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
|
|
|
2227
2271
|
threadId: z.ZodString;
|
|
2228
2272
|
agentId: z.ZodString;
|
|
2229
2273
|
triggerMessageId: z.ZodString;
|
|
2230
|
-
|
|
2231
|
-
type: z.ZodEnum<["user", "serviceAccount"
|
|
2232
|
-
id: z.ZodString;
|
|
2233
|
-
}, "strip", z.ZodTypeAny, {
|
|
2234
|
-
type: "user" | "serviceAccount" | "system";
|
|
2235
|
-
id: string;
|
|
2236
|
-
}, {
|
|
2237
|
-
type: "user" | "serviceAccount" | "system";
|
|
2238
|
-
id: string;
|
|
2239
|
-
}>;
|
|
2240
|
-
executionPrincipal: z.ZodOptional<z.ZodObject<{
|
|
2241
|
-
type: z.ZodEnum<["user", "serviceAccount", "system"]>;
|
|
2274
|
+
requestedBy: z.ZodOptional<z.ZodObject<{
|
|
2275
|
+
type: z.ZodEnum<["user", "serviceAccount"]>;
|
|
2242
2276
|
id: z.ZodString;
|
|
2243
2277
|
}, "strip", z.ZodTypeAny, {
|
|
2244
|
-
type: "user" | "serviceAccount" | "system";
|
|
2245
2278
|
id: string;
|
|
2279
|
+
type: "user" | "serviceAccount";
|
|
2246
2280
|
}, {
|
|
2247
|
-
type: "user" | "serviceAccount" | "system";
|
|
2248
2281
|
id: string;
|
|
2282
|
+
type: "user" | "serviceAccount";
|
|
2249
2283
|
}>>;
|
|
2250
2284
|
status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
|
|
2251
2285
|
modelId: z.ZodOptional<z.ZodString>;
|
|
2252
|
-
finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "error", "other", "unknown"]>>;
|
|
2286
|
+
finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "error", "other", "unknown"]>>;
|
|
2253
2287
|
usage: z.ZodOptional<z.ZodObject<{
|
|
2254
2288
|
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2255
2289
|
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2256
2290
|
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
2257
|
-
|
|
2258
|
-
|
|
2291
|
+
uncachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2292
|
+
cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2293
|
+
cacheWriteInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2294
|
+
textOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2295
|
+
reasoningOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2296
|
+
reportingStatus: z.ZodEnum<["complete", "partial", "unavailable"]>;
|
|
2259
2297
|
}, "strip", z.ZodTypeAny, {
|
|
2298
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2260
2299
|
inputTokens?: number | undefined;
|
|
2261
2300
|
outputTokens?: number | undefined;
|
|
2262
2301
|
totalTokens?: number | undefined;
|
|
2263
|
-
|
|
2264
|
-
|
|
2302
|
+
uncachedInputTokens?: number | undefined;
|
|
2303
|
+
cacheReadInputTokens?: number | undefined;
|
|
2304
|
+
cacheWriteInputTokens?: number | undefined;
|
|
2305
|
+
textOutputTokens?: number | undefined;
|
|
2306
|
+
reasoningOutputTokens?: number | undefined;
|
|
2265
2307
|
}, {
|
|
2308
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2266
2309
|
inputTokens?: number | undefined;
|
|
2267
2310
|
outputTokens?: number | undefined;
|
|
2268
2311
|
totalTokens?: number | undefined;
|
|
2269
|
-
|
|
2270
|
-
|
|
2312
|
+
uncachedInputTokens?: number | undefined;
|
|
2313
|
+
cacheReadInputTokens?: number | undefined;
|
|
2314
|
+
cacheWriteInputTokens?: number | undefined;
|
|
2315
|
+
textOutputTokens?: number | undefined;
|
|
2316
|
+
reasoningOutputTokens?: number | undefined;
|
|
2317
|
+
}>>;
|
|
2318
|
+
cost: z.ZodOptional<z.ZodObject<{
|
|
2319
|
+
amounts: z.ZodArray<z.ZodObject<{
|
|
2320
|
+
currency: z.ZodString;
|
|
2321
|
+
amountNanos: z.ZodString;
|
|
2322
|
+
}, "strip", z.ZodTypeAny, {
|
|
2323
|
+
currency: string;
|
|
2324
|
+
amountNanos: string;
|
|
2325
|
+
}, {
|
|
2326
|
+
currency: string;
|
|
2327
|
+
amountNanos: string;
|
|
2328
|
+
}>, "many">;
|
|
2329
|
+
ratedCallCount: z.ZodNumber;
|
|
2330
|
+
unpriceableCallCount: z.ZodNumber;
|
|
2331
|
+
unvaluedCallCount: z.ZodNumber;
|
|
2332
|
+
}, "strip", z.ZodTypeAny, {
|
|
2333
|
+
amounts: {
|
|
2334
|
+
currency: string;
|
|
2335
|
+
amountNanos: string;
|
|
2336
|
+
}[];
|
|
2337
|
+
ratedCallCount: number;
|
|
2338
|
+
unpriceableCallCount: number;
|
|
2339
|
+
unvaluedCallCount: number;
|
|
2340
|
+
}, {
|
|
2341
|
+
amounts: {
|
|
2342
|
+
currency: string;
|
|
2343
|
+
amountNanos: string;
|
|
2344
|
+
}[];
|
|
2345
|
+
ratedCallCount: number;
|
|
2346
|
+
unpriceableCallCount: number;
|
|
2347
|
+
unvaluedCallCount: number;
|
|
2271
2348
|
}>>;
|
|
2272
2349
|
diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2273
2350
|
code: z.ZodEnum<["output_file_limit_exceeded", "output_file_too_large", "output_budget_exhausted", "output_collection_failed", "output_file_changed", "output_storage_failed"]>;
|
|
@@ -2288,7 +2365,7 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
|
|
|
2288
2365
|
scope: "output";
|
|
2289
2366
|
path?: string | undefined;
|
|
2290
2367
|
}>, "many">>;
|
|
2291
|
-
error: z.ZodOptional<z.
|
|
2368
|
+
error: z.ZodOptional<z.ZodType<SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled">, z.ZodTypeDef, SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled">>>;
|
|
2292
2369
|
attempt: z.ZodNumber;
|
|
2293
2370
|
streamId: z.ZodString;
|
|
2294
2371
|
createdAt: z.ZodString;
|
|
@@ -2297,33 +2374,42 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
|
|
|
2297
2374
|
}, "strip", z.ZodTypeAny, {
|
|
2298
2375
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2299
2376
|
projectId: string;
|
|
2300
|
-
agentId: string;
|
|
2301
2377
|
id: string;
|
|
2378
|
+
agentId: string;
|
|
2379
|
+
attempt: number;
|
|
2302
2380
|
threadId: string;
|
|
2303
2381
|
createdAt: string;
|
|
2304
2382
|
triggerMessageId: string;
|
|
2305
|
-
requestedByPrincipal: {
|
|
2306
|
-
type: "user" | "serviceAccount" | "system";
|
|
2307
|
-
id: string;
|
|
2308
|
-
};
|
|
2309
|
-
attempt: number;
|
|
2310
2383
|
streamId: string;
|
|
2311
|
-
error?:
|
|
2384
|
+
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
2312
2385
|
startedAt?: string | undefined;
|
|
2313
2386
|
completedAt?: string | undefined;
|
|
2314
|
-
executionPrincipal?: {
|
|
2315
|
-
type: "user" | "serviceAccount" | "system";
|
|
2316
|
-
id: string;
|
|
2317
|
-
} | undefined;
|
|
2318
2387
|
modelId?: string | undefined;
|
|
2319
|
-
finishReason?: "length" | "error" | "unknown" | "stop" | "content-filter" | "tool-calls" | "other" | undefined;
|
|
2320
2388
|
usage?: {
|
|
2389
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2321
2390
|
inputTokens?: number | undefined;
|
|
2322
2391
|
outputTokens?: number | undefined;
|
|
2323
2392
|
totalTokens?: number | undefined;
|
|
2324
|
-
|
|
2325
|
-
|
|
2393
|
+
uncachedInputTokens?: number | undefined;
|
|
2394
|
+
cacheReadInputTokens?: number | undefined;
|
|
2395
|
+
cacheWriteInputTokens?: number | undefined;
|
|
2396
|
+
textOutputTokens?: number | undefined;
|
|
2397
|
+
reasoningOutputTokens?: number | undefined;
|
|
2398
|
+
} | undefined;
|
|
2399
|
+
cost?: {
|
|
2400
|
+
amounts: {
|
|
2401
|
+
currency: string;
|
|
2402
|
+
amountNanos: string;
|
|
2403
|
+
}[];
|
|
2404
|
+
ratedCallCount: number;
|
|
2405
|
+
unpriceableCallCount: number;
|
|
2406
|
+
unvaluedCallCount: number;
|
|
2407
|
+
} | undefined;
|
|
2408
|
+
requestedBy?: {
|
|
2409
|
+
id: string;
|
|
2410
|
+
type: "user" | "serviceAccount";
|
|
2326
2411
|
} | undefined;
|
|
2412
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
2327
2413
|
diagnostics?: {
|
|
2328
2414
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2329
2415
|
message: string;
|
|
@@ -2334,33 +2420,42 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
|
|
|
2334
2420
|
}, {
|
|
2335
2421
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2336
2422
|
projectId: string;
|
|
2337
|
-
agentId: string;
|
|
2338
2423
|
id: string;
|
|
2424
|
+
agentId: string;
|
|
2425
|
+
attempt: number;
|
|
2339
2426
|
threadId: string;
|
|
2340
2427
|
createdAt: string;
|
|
2341
2428
|
triggerMessageId: string;
|
|
2342
|
-
requestedByPrincipal: {
|
|
2343
|
-
type: "user" | "serviceAccount" | "system";
|
|
2344
|
-
id: string;
|
|
2345
|
-
};
|
|
2346
|
-
attempt: number;
|
|
2347
2429
|
streamId: string;
|
|
2348
|
-
error?:
|
|
2430
|
+
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
2349
2431
|
startedAt?: string | undefined;
|
|
2350
2432
|
completedAt?: string | undefined;
|
|
2351
|
-
executionPrincipal?: {
|
|
2352
|
-
type: "user" | "serviceAccount" | "system";
|
|
2353
|
-
id: string;
|
|
2354
|
-
} | undefined;
|
|
2355
2433
|
modelId?: string | undefined;
|
|
2356
|
-
finishReason?: "length" | "error" | "unknown" | "stop" | "content-filter" | "tool-calls" | "other" | undefined;
|
|
2357
2434
|
usage?: {
|
|
2435
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2358
2436
|
inputTokens?: number | undefined;
|
|
2359
2437
|
outputTokens?: number | undefined;
|
|
2360
2438
|
totalTokens?: number | undefined;
|
|
2361
|
-
|
|
2362
|
-
|
|
2439
|
+
uncachedInputTokens?: number | undefined;
|
|
2440
|
+
cacheReadInputTokens?: number | undefined;
|
|
2441
|
+
cacheWriteInputTokens?: number | undefined;
|
|
2442
|
+
textOutputTokens?: number | undefined;
|
|
2443
|
+
reasoningOutputTokens?: number | undefined;
|
|
2444
|
+
} | undefined;
|
|
2445
|
+
cost?: {
|
|
2446
|
+
amounts: {
|
|
2447
|
+
currency: string;
|
|
2448
|
+
amountNanos: string;
|
|
2449
|
+
}[];
|
|
2450
|
+
ratedCallCount: number;
|
|
2451
|
+
unpriceableCallCount: number;
|
|
2452
|
+
unvaluedCallCount: number;
|
|
2363
2453
|
} | undefined;
|
|
2454
|
+
requestedBy?: {
|
|
2455
|
+
id: string;
|
|
2456
|
+
type: "user" | "serviceAccount";
|
|
2457
|
+
} | undefined;
|
|
2458
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
2364
2459
|
diagnostics?: {
|
|
2365
2460
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2366
2461
|
message: string;
|
|
@@ -2373,33 +2468,42 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
|
|
|
2373
2468
|
run: {
|
|
2374
2469
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2375
2470
|
projectId: string;
|
|
2376
|
-
agentId: string;
|
|
2377
2471
|
id: string;
|
|
2472
|
+
agentId: string;
|
|
2473
|
+
attempt: number;
|
|
2378
2474
|
threadId: string;
|
|
2379
2475
|
createdAt: string;
|
|
2380
2476
|
triggerMessageId: string;
|
|
2381
|
-
requestedByPrincipal: {
|
|
2382
|
-
type: "user" | "serviceAccount" | "system";
|
|
2383
|
-
id: string;
|
|
2384
|
-
};
|
|
2385
|
-
attempt: number;
|
|
2386
2477
|
streamId: string;
|
|
2387
|
-
error?:
|
|
2478
|
+
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
2388
2479
|
startedAt?: string | undefined;
|
|
2389
2480
|
completedAt?: string | undefined;
|
|
2390
|
-
executionPrincipal?: {
|
|
2391
|
-
type: "user" | "serviceAccount" | "system";
|
|
2392
|
-
id: string;
|
|
2393
|
-
} | undefined;
|
|
2394
2481
|
modelId?: string | undefined;
|
|
2395
|
-
finishReason?: "length" | "error" | "unknown" | "stop" | "content-filter" | "tool-calls" | "other" | undefined;
|
|
2396
2482
|
usage?: {
|
|
2483
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2397
2484
|
inputTokens?: number | undefined;
|
|
2398
2485
|
outputTokens?: number | undefined;
|
|
2399
2486
|
totalTokens?: number | undefined;
|
|
2400
|
-
|
|
2401
|
-
|
|
2487
|
+
uncachedInputTokens?: number | undefined;
|
|
2488
|
+
cacheReadInputTokens?: number | undefined;
|
|
2489
|
+
cacheWriteInputTokens?: number | undefined;
|
|
2490
|
+
textOutputTokens?: number | undefined;
|
|
2491
|
+
reasoningOutputTokens?: number | undefined;
|
|
2402
2492
|
} | undefined;
|
|
2493
|
+
cost?: {
|
|
2494
|
+
amounts: {
|
|
2495
|
+
currency: string;
|
|
2496
|
+
amountNanos: string;
|
|
2497
|
+
}[];
|
|
2498
|
+
ratedCallCount: number;
|
|
2499
|
+
unpriceableCallCount: number;
|
|
2500
|
+
unvaluedCallCount: number;
|
|
2501
|
+
} | undefined;
|
|
2502
|
+
requestedBy?: {
|
|
2503
|
+
id: string;
|
|
2504
|
+
type: "user" | "serviceAccount";
|
|
2505
|
+
} | undefined;
|
|
2506
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
2403
2507
|
diagnostics?: {
|
|
2404
2508
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2405
2509
|
message: string;
|
|
@@ -2412,33 +2516,42 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
|
|
|
2412
2516
|
run: {
|
|
2413
2517
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2414
2518
|
projectId: string;
|
|
2415
|
-
agentId: string;
|
|
2416
2519
|
id: string;
|
|
2520
|
+
agentId: string;
|
|
2521
|
+
attempt: number;
|
|
2417
2522
|
threadId: string;
|
|
2418
2523
|
createdAt: string;
|
|
2419
2524
|
triggerMessageId: string;
|
|
2420
|
-
requestedByPrincipal: {
|
|
2421
|
-
type: "user" | "serviceAccount" | "system";
|
|
2422
|
-
id: string;
|
|
2423
|
-
};
|
|
2424
|
-
attempt: number;
|
|
2425
2525
|
streamId: string;
|
|
2426
|
-
error?:
|
|
2526
|
+
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
2427
2527
|
startedAt?: string | undefined;
|
|
2428
2528
|
completedAt?: string | undefined;
|
|
2429
|
-
executionPrincipal?: {
|
|
2430
|
-
type: "user" | "serviceAccount" | "system";
|
|
2431
|
-
id: string;
|
|
2432
|
-
} | undefined;
|
|
2433
2529
|
modelId?: string | undefined;
|
|
2434
|
-
finishReason?: "length" | "error" | "unknown" | "stop" | "content-filter" | "tool-calls" | "other" | undefined;
|
|
2435
2530
|
usage?: {
|
|
2531
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2436
2532
|
inputTokens?: number | undefined;
|
|
2437
2533
|
outputTokens?: number | undefined;
|
|
2438
2534
|
totalTokens?: number | undefined;
|
|
2439
|
-
|
|
2440
|
-
|
|
2535
|
+
uncachedInputTokens?: number | undefined;
|
|
2536
|
+
cacheReadInputTokens?: number | undefined;
|
|
2537
|
+
cacheWriteInputTokens?: number | undefined;
|
|
2538
|
+
textOutputTokens?: number | undefined;
|
|
2539
|
+
reasoningOutputTokens?: number | undefined;
|
|
2540
|
+
} | undefined;
|
|
2541
|
+
cost?: {
|
|
2542
|
+
amounts: {
|
|
2543
|
+
currency: string;
|
|
2544
|
+
amountNanos: string;
|
|
2545
|
+
}[];
|
|
2546
|
+
ratedCallCount: number;
|
|
2547
|
+
unpriceableCallCount: number;
|
|
2548
|
+
unvaluedCallCount: number;
|
|
2549
|
+
} | undefined;
|
|
2550
|
+
requestedBy?: {
|
|
2551
|
+
id: string;
|
|
2552
|
+
type: "user" | "serviceAccount";
|
|
2441
2553
|
} | undefined;
|
|
2554
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
2442
2555
|
diagnostics?: {
|
|
2443
2556
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2444
2557
|
message: string;
|
|
@@ -2455,47 +2568,80 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
|
|
|
2455
2568
|
threadId: z.ZodString;
|
|
2456
2569
|
agentId: z.ZodString;
|
|
2457
2570
|
triggerMessageId: z.ZodString;
|
|
2458
|
-
|
|
2459
|
-
type: z.ZodEnum<["user", "serviceAccount"
|
|
2460
|
-
id: z.ZodString;
|
|
2461
|
-
}, "strip", z.ZodTypeAny, {
|
|
2462
|
-
type: "user" | "serviceAccount" | "system";
|
|
2463
|
-
id: string;
|
|
2464
|
-
}, {
|
|
2465
|
-
type: "user" | "serviceAccount" | "system";
|
|
2466
|
-
id: string;
|
|
2467
|
-
}>;
|
|
2468
|
-
executionPrincipal: z.ZodOptional<z.ZodObject<{
|
|
2469
|
-
type: z.ZodEnum<["user", "serviceAccount", "system"]>;
|
|
2571
|
+
requestedBy: z.ZodOptional<z.ZodObject<{
|
|
2572
|
+
type: z.ZodEnum<["user", "serviceAccount"]>;
|
|
2470
2573
|
id: z.ZodString;
|
|
2471
2574
|
}, "strip", z.ZodTypeAny, {
|
|
2472
|
-
type: "user" | "serviceAccount" | "system";
|
|
2473
2575
|
id: string;
|
|
2576
|
+
type: "user" | "serviceAccount";
|
|
2474
2577
|
}, {
|
|
2475
|
-
type: "user" | "serviceAccount" | "system";
|
|
2476
2578
|
id: string;
|
|
2579
|
+
type: "user" | "serviceAccount";
|
|
2477
2580
|
}>>;
|
|
2478
2581
|
status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
|
|
2479
2582
|
modelId: z.ZodOptional<z.ZodString>;
|
|
2480
|
-
finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "error", "other", "unknown"]>>;
|
|
2583
|
+
finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "error", "other", "unknown"]>>;
|
|
2481
2584
|
usage: z.ZodOptional<z.ZodObject<{
|
|
2482
2585
|
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2483
2586
|
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2484
2587
|
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
2485
|
-
|
|
2486
|
-
|
|
2588
|
+
uncachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2589
|
+
cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2590
|
+
cacheWriteInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2591
|
+
textOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2592
|
+
reasoningOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2593
|
+
reportingStatus: z.ZodEnum<["complete", "partial", "unavailable"]>;
|
|
2487
2594
|
}, "strip", z.ZodTypeAny, {
|
|
2595
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2488
2596
|
inputTokens?: number | undefined;
|
|
2489
2597
|
outputTokens?: number | undefined;
|
|
2490
2598
|
totalTokens?: number | undefined;
|
|
2491
|
-
|
|
2492
|
-
|
|
2599
|
+
uncachedInputTokens?: number | undefined;
|
|
2600
|
+
cacheReadInputTokens?: number | undefined;
|
|
2601
|
+
cacheWriteInputTokens?: number | undefined;
|
|
2602
|
+
textOutputTokens?: number | undefined;
|
|
2603
|
+
reasoningOutputTokens?: number | undefined;
|
|
2493
2604
|
}, {
|
|
2605
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2494
2606
|
inputTokens?: number | undefined;
|
|
2495
2607
|
outputTokens?: number | undefined;
|
|
2496
2608
|
totalTokens?: number | undefined;
|
|
2497
|
-
|
|
2498
|
-
|
|
2609
|
+
uncachedInputTokens?: number | undefined;
|
|
2610
|
+
cacheReadInputTokens?: number | undefined;
|
|
2611
|
+
cacheWriteInputTokens?: number | undefined;
|
|
2612
|
+
textOutputTokens?: number | undefined;
|
|
2613
|
+
reasoningOutputTokens?: number | undefined;
|
|
2614
|
+
}>>;
|
|
2615
|
+
cost: z.ZodOptional<z.ZodObject<{
|
|
2616
|
+
amounts: z.ZodArray<z.ZodObject<{
|
|
2617
|
+
currency: z.ZodString;
|
|
2618
|
+
amountNanos: z.ZodString;
|
|
2619
|
+
}, "strip", z.ZodTypeAny, {
|
|
2620
|
+
currency: string;
|
|
2621
|
+
amountNanos: string;
|
|
2622
|
+
}, {
|
|
2623
|
+
currency: string;
|
|
2624
|
+
amountNanos: string;
|
|
2625
|
+
}>, "many">;
|
|
2626
|
+
ratedCallCount: z.ZodNumber;
|
|
2627
|
+
unpriceableCallCount: z.ZodNumber;
|
|
2628
|
+
unvaluedCallCount: z.ZodNumber;
|
|
2629
|
+
}, "strip", z.ZodTypeAny, {
|
|
2630
|
+
amounts: {
|
|
2631
|
+
currency: string;
|
|
2632
|
+
amountNanos: string;
|
|
2633
|
+
}[];
|
|
2634
|
+
ratedCallCount: number;
|
|
2635
|
+
unpriceableCallCount: number;
|
|
2636
|
+
unvaluedCallCount: number;
|
|
2637
|
+
}, {
|
|
2638
|
+
amounts: {
|
|
2639
|
+
currency: string;
|
|
2640
|
+
amountNanos: string;
|
|
2641
|
+
}[];
|
|
2642
|
+
ratedCallCount: number;
|
|
2643
|
+
unpriceableCallCount: number;
|
|
2644
|
+
unvaluedCallCount: number;
|
|
2499
2645
|
}>>;
|
|
2500
2646
|
diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2501
2647
|
code: z.ZodEnum<["output_file_limit_exceeded", "output_file_too_large", "output_budget_exhausted", "output_collection_failed", "output_file_changed", "output_storage_failed"]>;
|
|
@@ -2516,7 +2662,7 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
|
|
|
2516
2662
|
scope: "output";
|
|
2517
2663
|
path?: string | undefined;
|
|
2518
2664
|
}>, "many">>;
|
|
2519
|
-
error: z.ZodOptional<z.
|
|
2665
|
+
error: z.ZodOptional<z.ZodType<SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled">, z.ZodTypeDef, SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled">>>;
|
|
2520
2666
|
attempt: z.ZodNumber;
|
|
2521
2667
|
streamId: z.ZodString;
|
|
2522
2668
|
createdAt: z.ZodString;
|
|
@@ -2525,33 +2671,42 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
|
|
|
2525
2671
|
}, "strip", z.ZodTypeAny, {
|
|
2526
2672
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2527
2673
|
projectId: string;
|
|
2528
|
-
agentId: string;
|
|
2529
2674
|
id: string;
|
|
2675
|
+
agentId: string;
|
|
2676
|
+
attempt: number;
|
|
2530
2677
|
threadId: string;
|
|
2531
2678
|
createdAt: string;
|
|
2532
2679
|
triggerMessageId: string;
|
|
2533
|
-
requestedByPrincipal: {
|
|
2534
|
-
type: "user" | "serviceAccount" | "system";
|
|
2535
|
-
id: string;
|
|
2536
|
-
};
|
|
2537
|
-
attempt: number;
|
|
2538
2680
|
streamId: string;
|
|
2539
|
-
error?:
|
|
2681
|
+
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
2540
2682
|
startedAt?: string | undefined;
|
|
2541
2683
|
completedAt?: string | undefined;
|
|
2542
|
-
executionPrincipal?: {
|
|
2543
|
-
type: "user" | "serviceAccount" | "system";
|
|
2544
|
-
id: string;
|
|
2545
|
-
} | undefined;
|
|
2546
2684
|
modelId?: string | undefined;
|
|
2547
|
-
finishReason?: "length" | "error" | "unknown" | "stop" | "content-filter" | "tool-calls" | "other" | undefined;
|
|
2548
2685
|
usage?: {
|
|
2686
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2549
2687
|
inputTokens?: number | undefined;
|
|
2550
2688
|
outputTokens?: number | undefined;
|
|
2551
2689
|
totalTokens?: number | undefined;
|
|
2552
|
-
|
|
2553
|
-
|
|
2690
|
+
uncachedInputTokens?: number | undefined;
|
|
2691
|
+
cacheReadInputTokens?: number | undefined;
|
|
2692
|
+
cacheWriteInputTokens?: number | undefined;
|
|
2693
|
+
textOutputTokens?: number | undefined;
|
|
2694
|
+
reasoningOutputTokens?: number | undefined;
|
|
2695
|
+
} | undefined;
|
|
2696
|
+
cost?: {
|
|
2697
|
+
amounts: {
|
|
2698
|
+
currency: string;
|
|
2699
|
+
amountNanos: string;
|
|
2700
|
+
}[];
|
|
2701
|
+
ratedCallCount: number;
|
|
2702
|
+
unpriceableCallCount: number;
|
|
2703
|
+
unvaluedCallCount: number;
|
|
2554
2704
|
} | undefined;
|
|
2705
|
+
requestedBy?: {
|
|
2706
|
+
id: string;
|
|
2707
|
+
type: "user" | "serviceAccount";
|
|
2708
|
+
} | undefined;
|
|
2709
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
2555
2710
|
diagnostics?: {
|
|
2556
2711
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2557
2712
|
message: string;
|
|
@@ -2562,33 +2717,42 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
|
|
|
2562
2717
|
}, {
|
|
2563
2718
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2564
2719
|
projectId: string;
|
|
2565
|
-
agentId: string;
|
|
2566
2720
|
id: string;
|
|
2721
|
+
agentId: string;
|
|
2722
|
+
attempt: number;
|
|
2567
2723
|
threadId: string;
|
|
2568
2724
|
createdAt: string;
|
|
2569
2725
|
triggerMessageId: string;
|
|
2570
|
-
requestedByPrincipal: {
|
|
2571
|
-
type: "user" | "serviceAccount" | "system";
|
|
2572
|
-
id: string;
|
|
2573
|
-
};
|
|
2574
|
-
attempt: number;
|
|
2575
2726
|
streamId: string;
|
|
2576
|
-
error?:
|
|
2727
|
+
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
2577
2728
|
startedAt?: string | undefined;
|
|
2578
2729
|
completedAt?: string | undefined;
|
|
2579
|
-
executionPrincipal?: {
|
|
2580
|
-
type: "user" | "serviceAccount" | "system";
|
|
2581
|
-
id: string;
|
|
2582
|
-
} | undefined;
|
|
2583
2730
|
modelId?: string | undefined;
|
|
2584
|
-
finishReason?: "length" | "error" | "unknown" | "stop" | "content-filter" | "tool-calls" | "other" | undefined;
|
|
2585
2731
|
usage?: {
|
|
2732
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2586
2733
|
inputTokens?: number | undefined;
|
|
2587
2734
|
outputTokens?: number | undefined;
|
|
2588
2735
|
totalTokens?: number | undefined;
|
|
2589
|
-
|
|
2590
|
-
|
|
2736
|
+
uncachedInputTokens?: number | undefined;
|
|
2737
|
+
cacheReadInputTokens?: number | undefined;
|
|
2738
|
+
cacheWriteInputTokens?: number | undefined;
|
|
2739
|
+
textOutputTokens?: number | undefined;
|
|
2740
|
+
reasoningOutputTokens?: number | undefined;
|
|
2591
2741
|
} | undefined;
|
|
2742
|
+
cost?: {
|
|
2743
|
+
amounts: {
|
|
2744
|
+
currency: string;
|
|
2745
|
+
amountNanos: string;
|
|
2746
|
+
}[];
|
|
2747
|
+
ratedCallCount: number;
|
|
2748
|
+
unpriceableCallCount: number;
|
|
2749
|
+
unvaluedCallCount: number;
|
|
2750
|
+
} | undefined;
|
|
2751
|
+
requestedBy?: {
|
|
2752
|
+
id: string;
|
|
2753
|
+
type: "user" | "serviceAccount";
|
|
2754
|
+
} | undefined;
|
|
2755
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
2592
2756
|
diagnostics?: {
|
|
2593
2757
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2594
2758
|
message: string;
|
|
@@ -2601,33 +2765,42 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
|
|
|
2601
2765
|
run: {
|
|
2602
2766
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2603
2767
|
projectId: string;
|
|
2604
|
-
agentId: string;
|
|
2605
2768
|
id: string;
|
|
2769
|
+
agentId: string;
|
|
2770
|
+
attempt: number;
|
|
2606
2771
|
threadId: string;
|
|
2607
2772
|
createdAt: string;
|
|
2608
2773
|
triggerMessageId: string;
|
|
2609
|
-
requestedByPrincipal: {
|
|
2610
|
-
type: "user" | "serviceAccount" | "system";
|
|
2611
|
-
id: string;
|
|
2612
|
-
};
|
|
2613
|
-
attempt: number;
|
|
2614
2774
|
streamId: string;
|
|
2615
|
-
error?:
|
|
2775
|
+
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
2616
2776
|
startedAt?: string | undefined;
|
|
2617
2777
|
completedAt?: string | undefined;
|
|
2618
|
-
executionPrincipal?: {
|
|
2619
|
-
type: "user" | "serviceAccount" | "system";
|
|
2620
|
-
id: string;
|
|
2621
|
-
} | undefined;
|
|
2622
2778
|
modelId?: string | undefined;
|
|
2623
|
-
finishReason?: "length" | "error" | "unknown" | "stop" | "content-filter" | "tool-calls" | "other" | undefined;
|
|
2624
2779
|
usage?: {
|
|
2780
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2625
2781
|
inputTokens?: number | undefined;
|
|
2626
2782
|
outputTokens?: number | undefined;
|
|
2627
2783
|
totalTokens?: number | undefined;
|
|
2628
|
-
|
|
2629
|
-
|
|
2784
|
+
uncachedInputTokens?: number | undefined;
|
|
2785
|
+
cacheReadInputTokens?: number | undefined;
|
|
2786
|
+
cacheWriteInputTokens?: number | undefined;
|
|
2787
|
+
textOutputTokens?: number | undefined;
|
|
2788
|
+
reasoningOutputTokens?: number | undefined;
|
|
2789
|
+
} | undefined;
|
|
2790
|
+
cost?: {
|
|
2791
|
+
amounts: {
|
|
2792
|
+
currency: string;
|
|
2793
|
+
amountNanos: string;
|
|
2794
|
+
}[];
|
|
2795
|
+
ratedCallCount: number;
|
|
2796
|
+
unpriceableCallCount: number;
|
|
2797
|
+
unvaluedCallCount: number;
|
|
2798
|
+
} | undefined;
|
|
2799
|
+
requestedBy?: {
|
|
2800
|
+
id: string;
|
|
2801
|
+
type: "user" | "serviceAccount";
|
|
2630
2802
|
} | undefined;
|
|
2803
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
2631
2804
|
diagnostics?: {
|
|
2632
2805
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2633
2806
|
message: string;
|
|
@@ -2640,33 +2813,42 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
|
|
|
2640
2813
|
run: {
|
|
2641
2814
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2642
2815
|
projectId: string;
|
|
2643
|
-
agentId: string;
|
|
2644
2816
|
id: string;
|
|
2817
|
+
agentId: string;
|
|
2818
|
+
attempt: number;
|
|
2645
2819
|
threadId: string;
|
|
2646
2820
|
createdAt: string;
|
|
2647
2821
|
triggerMessageId: string;
|
|
2648
|
-
requestedByPrincipal: {
|
|
2649
|
-
type: "user" | "serviceAccount" | "system";
|
|
2650
|
-
id: string;
|
|
2651
|
-
};
|
|
2652
|
-
attempt: number;
|
|
2653
2822
|
streamId: string;
|
|
2654
|
-
error?:
|
|
2823
|
+
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
2655
2824
|
startedAt?: string | undefined;
|
|
2656
2825
|
completedAt?: string | undefined;
|
|
2657
|
-
executionPrincipal?: {
|
|
2658
|
-
type: "user" | "serviceAccount" | "system";
|
|
2659
|
-
id: string;
|
|
2660
|
-
} | undefined;
|
|
2661
2826
|
modelId?: string | undefined;
|
|
2662
|
-
finishReason?: "length" | "error" | "unknown" | "stop" | "content-filter" | "tool-calls" | "other" | undefined;
|
|
2663
2827
|
usage?: {
|
|
2828
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2664
2829
|
inputTokens?: number | undefined;
|
|
2665
2830
|
outputTokens?: number | undefined;
|
|
2666
2831
|
totalTokens?: number | undefined;
|
|
2667
|
-
|
|
2668
|
-
|
|
2832
|
+
uncachedInputTokens?: number | undefined;
|
|
2833
|
+
cacheReadInputTokens?: number | undefined;
|
|
2834
|
+
cacheWriteInputTokens?: number | undefined;
|
|
2835
|
+
textOutputTokens?: number | undefined;
|
|
2836
|
+
reasoningOutputTokens?: number | undefined;
|
|
2837
|
+
} | undefined;
|
|
2838
|
+
cost?: {
|
|
2839
|
+
amounts: {
|
|
2840
|
+
currency: string;
|
|
2841
|
+
amountNanos: string;
|
|
2842
|
+
}[];
|
|
2843
|
+
ratedCallCount: number;
|
|
2844
|
+
unpriceableCallCount: number;
|
|
2845
|
+
unvaluedCallCount: number;
|
|
2846
|
+
} | undefined;
|
|
2847
|
+
requestedBy?: {
|
|
2848
|
+
id: string;
|
|
2849
|
+
type: "user" | "serviceAccount";
|
|
2669
2850
|
} | undefined;
|
|
2851
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
2670
2852
|
diagnostics?: {
|
|
2671
2853
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2672
2854
|
message: string;
|
|
@@ -2683,47 +2865,80 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
|
|
|
2683
2865
|
threadId: z.ZodString;
|
|
2684
2866
|
agentId: z.ZodString;
|
|
2685
2867
|
triggerMessageId: z.ZodString;
|
|
2686
|
-
|
|
2687
|
-
type: z.ZodEnum<["user", "serviceAccount"
|
|
2868
|
+
requestedBy: z.ZodOptional<z.ZodObject<{
|
|
2869
|
+
type: z.ZodEnum<["user", "serviceAccount"]>;
|
|
2688
2870
|
id: z.ZodString;
|
|
2689
2871
|
}, "strip", z.ZodTypeAny, {
|
|
2690
|
-
type: "user" | "serviceAccount" | "system";
|
|
2691
2872
|
id: string;
|
|
2873
|
+
type: "user" | "serviceAccount";
|
|
2692
2874
|
}, {
|
|
2693
|
-
type: "user" | "serviceAccount" | "system";
|
|
2694
|
-
id: string;
|
|
2695
|
-
}>;
|
|
2696
|
-
executionPrincipal: z.ZodOptional<z.ZodObject<{
|
|
2697
|
-
type: z.ZodEnum<["user", "serviceAccount", "system"]>;
|
|
2698
|
-
id: z.ZodString;
|
|
2699
|
-
}, "strip", z.ZodTypeAny, {
|
|
2700
|
-
type: "user" | "serviceAccount" | "system";
|
|
2701
|
-
id: string;
|
|
2702
|
-
}, {
|
|
2703
|
-
type: "user" | "serviceAccount" | "system";
|
|
2704
2875
|
id: string;
|
|
2876
|
+
type: "user" | "serviceAccount";
|
|
2705
2877
|
}>>;
|
|
2706
2878
|
status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
|
|
2707
2879
|
modelId: z.ZodOptional<z.ZodString>;
|
|
2708
|
-
finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "error", "other", "unknown"]>>;
|
|
2880
|
+
finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "error", "other", "unknown"]>>;
|
|
2709
2881
|
usage: z.ZodOptional<z.ZodObject<{
|
|
2710
2882
|
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2711
2883
|
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2712
2884
|
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
2713
|
-
|
|
2714
|
-
|
|
2885
|
+
uncachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2886
|
+
cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2887
|
+
cacheWriteInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2888
|
+
textOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2889
|
+
reasoningOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2890
|
+
reportingStatus: z.ZodEnum<["complete", "partial", "unavailable"]>;
|
|
2715
2891
|
}, "strip", z.ZodTypeAny, {
|
|
2892
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2716
2893
|
inputTokens?: number | undefined;
|
|
2717
2894
|
outputTokens?: number | undefined;
|
|
2718
2895
|
totalTokens?: number | undefined;
|
|
2719
|
-
|
|
2720
|
-
|
|
2896
|
+
uncachedInputTokens?: number | undefined;
|
|
2897
|
+
cacheReadInputTokens?: number | undefined;
|
|
2898
|
+
cacheWriteInputTokens?: number | undefined;
|
|
2899
|
+
textOutputTokens?: number | undefined;
|
|
2900
|
+
reasoningOutputTokens?: number | undefined;
|
|
2721
2901
|
}, {
|
|
2902
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2722
2903
|
inputTokens?: number | undefined;
|
|
2723
2904
|
outputTokens?: number | undefined;
|
|
2724
2905
|
totalTokens?: number | undefined;
|
|
2725
|
-
|
|
2726
|
-
|
|
2906
|
+
uncachedInputTokens?: number | undefined;
|
|
2907
|
+
cacheReadInputTokens?: number | undefined;
|
|
2908
|
+
cacheWriteInputTokens?: number | undefined;
|
|
2909
|
+
textOutputTokens?: number | undefined;
|
|
2910
|
+
reasoningOutputTokens?: number | undefined;
|
|
2911
|
+
}>>;
|
|
2912
|
+
cost: z.ZodOptional<z.ZodObject<{
|
|
2913
|
+
amounts: z.ZodArray<z.ZodObject<{
|
|
2914
|
+
currency: z.ZodString;
|
|
2915
|
+
amountNanos: z.ZodString;
|
|
2916
|
+
}, "strip", z.ZodTypeAny, {
|
|
2917
|
+
currency: string;
|
|
2918
|
+
amountNanos: string;
|
|
2919
|
+
}, {
|
|
2920
|
+
currency: string;
|
|
2921
|
+
amountNanos: string;
|
|
2922
|
+
}>, "many">;
|
|
2923
|
+
ratedCallCount: z.ZodNumber;
|
|
2924
|
+
unpriceableCallCount: z.ZodNumber;
|
|
2925
|
+
unvaluedCallCount: z.ZodNumber;
|
|
2926
|
+
}, "strip", z.ZodTypeAny, {
|
|
2927
|
+
amounts: {
|
|
2928
|
+
currency: string;
|
|
2929
|
+
amountNanos: string;
|
|
2930
|
+
}[];
|
|
2931
|
+
ratedCallCount: number;
|
|
2932
|
+
unpriceableCallCount: number;
|
|
2933
|
+
unvaluedCallCount: number;
|
|
2934
|
+
}, {
|
|
2935
|
+
amounts: {
|
|
2936
|
+
currency: string;
|
|
2937
|
+
amountNanos: string;
|
|
2938
|
+
}[];
|
|
2939
|
+
ratedCallCount: number;
|
|
2940
|
+
unpriceableCallCount: number;
|
|
2941
|
+
unvaluedCallCount: number;
|
|
2727
2942
|
}>>;
|
|
2728
2943
|
diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2729
2944
|
code: z.ZodEnum<["output_file_limit_exceeded", "output_file_too_large", "output_budget_exhausted", "output_collection_failed", "output_file_changed", "output_storage_failed"]>;
|
|
@@ -2744,7 +2959,7 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
|
|
|
2744
2959
|
scope: "output";
|
|
2745
2960
|
path?: string | undefined;
|
|
2746
2961
|
}>, "many">>;
|
|
2747
|
-
error: z.ZodOptional<z.
|
|
2962
|
+
error: z.ZodOptional<z.ZodType<SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled">, z.ZodTypeDef, SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled">>>;
|
|
2748
2963
|
attempt: z.ZodNumber;
|
|
2749
2964
|
streamId: z.ZodString;
|
|
2750
2965
|
createdAt: z.ZodString;
|
|
@@ -2753,33 +2968,42 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
|
|
|
2753
2968
|
}, "strip", z.ZodTypeAny, {
|
|
2754
2969
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2755
2970
|
projectId: string;
|
|
2756
|
-
agentId: string;
|
|
2757
2971
|
id: string;
|
|
2972
|
+
agentId: string;
|
|
2973
|
+
attempt: number;
|
|
2758
2974
|
threadId: string;
|
|
2759
2975
|
createdAt: string;
|
|
2760
2976
|
triggerMessageId: string;
|
|
2761
|
-
requestedByPrincipal: {
|
|
2762
|
-
type: "user" | "serviceAccount" | "system";
|
|
2763
|
-
id: string;
|
|
2764
|
-
};
|
|
2765
|
-
attempt: number;
|
|
2766
2977
|
streamId: string;
|
|
2767
|
-
error?:
|
|
2978
|
+
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
2768
2979
|
startedAt?: string | undefined;
|
|
2769
2980
|
completedAt?: string | undefined;
|
|
2770
|
-
executionPrincipal?: {
|
|
2771
|
-
type: "user" | "serviceAccount" | "system";
|
|
2772
|
-
id: string;
|
|
2773
|
-
} | undefined;
|
|
2774
2981
|
modelId?: string | undefined;
|
|
2775
|
-
finishReason?: "length" | "error" | "unknown" | "stop" | "content-filter" | "tool-calls" | "other" | undefined;
|
|
2776
2982
|
usage?: {
|
|
2983
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2777
2984
|
inputTokens?: number | undefined;
|
|
2778
2985
|
outputTokens?: number | undefined;
|
|
2779
2986
|
totalTokens?: number | undefined;
|
|
2780
|
-
|
|
2781
|
-
|
|
2987
|
+
uncachedInputTokens?: number | undefined;
|
|
2988
|
+
cacheReadInputTokens?: number | undefined;
|
|
2989
|
+
cacheWriteInputTokens?: number | undefined;
|
|
2990
|
+
textOutputTokens?: number | undefined;
|
|
2991
|
+
reasoningOutputTokens?: number | undefined;
|
|
2782
2992
|
} | undefined;
|
|
2993
|
+
cost?: {
|
|
2994
|
+
amounts: {
|
|
2995
|
+
currency: string;
|
|
2996
|
+
amountNanos: string;
|
|
2997
|
+
}[];
|
|
2998
|
+
ratedCallCount: number;
|
|
2999
|
+
unpriceableCallCount: number;
|
|
3000
|
+
unvaluedCallCount: number;
|
|
3001
|
+
} | undefined;
|
|
3002
|
+
requestedBy?: {
|
|
3003
|
+
id: string;
|
|
3004
|
+
type: "user" | "serviceAccount";
|
|
3005
|
+
} | undefined;
|
|
3006
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
2783
3007
|
diagnostics?: {
|
|
2784
3008
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2785
3009
|
message: string;
|
|
@@ -2790,33 +3014,42 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
|
|
|
2790
3014
|
}, {
|
|
2791
3015
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2792
3016
|
projectId: string;
|
|
2793
|
-
agentId: string;
|
|
2794
3017
|
id: string;
|
|
3018
|
+
agentId: string;
|
|
3019
|
+
attempt: number;
|
|
2795
3020
|
threadId: string;
|
|
2796
3021
|
createdAt: string;
|
|
2797
3022
|
triggerMessageId: string;
|
|
2798
|
-
requestedByPrincipal: {
|
|
2799
|
-
type: "user" | "serviceAccount" | "system";
|
|
2800
|
-
id: string;
|
|
2801
|
-
};
|
|
2802
|
-
attempt: number;
|
|
2803
3023
|
streamId: string;
|
|
2804
|
-
error?:
|
|
3024
|
+
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
2805
3025
|
startedAt?: string | undefined;
|
|
2806
3026
|
completedAt?: string | undefined;
|
|
2807
|
-
executionPrincipal?: {
|
|
2808
|
-
type: "user" | "serviceAccount" | "system";
|
|
2809
|
-
id: string;
|
|
2810
|
-
} | undefined;
|
|
2811
3027
|
modelId?: string | undefined;
|
|
2812
|
-
finishReason?: "length" | "error" | "unknown" | "stop" | "content-filter" | "tool-calls" | "other" | undefined;
|
|
2813
3028
|
usage?: {
|
|
3029
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2814
3030
|
inputTokens?: number | undefined;
|
|
2815
3031
|
outputTokens?: number | undefined;
|
|
2816
3032
|
totalTokens?: number | undefined;
|
|
2817
|
-
|
|
2818
|
-
|
|
3033
|
+
uncachedInputTokens?: number | undefined;
|
|
3034
|
+
cacheReadInputTokens?: number | undefined;
|
|
3035
|
+
cacheWriteInputTokens?: number | undefined;
|
|
3036
|
+
textOutputTokens?: number | undefined;
|
|
3037
|
+
reasoningOutputTokens?: number | undefined;
|
|
3038
|
+
} | undefined;
|
|
3039
|
+
cost?: {
|
|
3040
|
+
amounts: {
|
|
3041
|
+
currency: string;
|
|
3042
|
+
amountNanos: string;
|
|
3043
|
+
}[];
|
|
3044
|
+
ratedCallCount: number;
|
|
3045
|
+
unpriceableCallCount: number;
|
|
3046
|
+
unvaluedCallCount: number;
|
|
3047
|
+
} | undefined;
|
|
3048
|
+
requestedBy?: {
|
|
3049
|
+
id: string;
|
|
3050
|
+
type: "user" | "serviceAccount";
|
|
2819
3051
|
} | undefined;
|
|
3052
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
2820
3053
|
diagnostics?: {
|
|
2821
3054
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2822
3055
|
message: string;
|
|
@@ -2829,33 +3062,42 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
|
|
|
2829
3062
|
run: {
|
|
2830
3063
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2831
3064
|
projectId: string;
|
|
2832
|
-
agentId: string;
|
|
2833
3065
|
id: string;
|
|
3066
|
+
agentId: string;
|
|
3067
|
+
attempt: number;
|
|
2834
3068
|
threadId: string;
|
|
2835
3069
|
createdAt: string;
|
|
2836
3070
|
triggerMessageId: string;
|
|
2837
|
-
requestedByPrincipal: {
|
|
2838
|
-
type: "user" | "serviceAccount" | "system";
|
|
2839
|
-
id: string;
|
|
2840
|
-
};
|
|
2841
|
-
attempt: number;
|
|
2842
3071
|
streamId: string;
|
|
2843
|
-
error?:
|
|
3072
|
+
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
2844
3073
|
startedAt?: string | undefined;
|
|
2845
3074
|
completedAt?: string | undefined;
|
|
2846
|
-
executionPrincipal?: {
|
|
2847
|
-
type: "user" | "serviceAccount" | "system";
|
|
2848
|
-
id: string;
|
|
2849
|
-
} | undefined;
|
|
2850
3075
|
modelId?: string | undefined;
|
|
2851
|
-
finishReason?: "length" | "error" | "unknown" | "stop" | "content-filter" | "tool-calls" | "other" | undefined;
|
|
2852
3076
|
usage?: {
|
|
3077
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2853
3078
|
inputTokens?: number | undefined;
|
|
2854
3079
|
outputTokens?: number | undefined;
|
|
2855
3080
|
totalTokens?: number | undefined;
|
|
2856
|
-
|
|
2857
|
-
|
|
3081
|
+
uncachedInputTokens?: number | undefined;
|
|
3082
|
+
cacheReadInputTokens?: number | undefined;
|
|
3083
|
+
cacheWriteInputTokens?: number | undefined;
|
|
3084
|
+
textOutputTokens?: number | undefined;
|
|
3085
|
+
reasoningOutputTokens?: number | undefined;
|
|
3086
|
+
} | undefined;
|
|
3087
|
+
cost?: {
|
|
3088
|
+
amounts: {
|
|
3089
|
+
currency: string;
|
|
3090
|
+
amountNanos: string;
|
|
3091
|
+
}[];
|
|
3092
|
+
ratedCallCount: number;
|
|
3093
|
+
unpriceableCallCount: number;
|
|
3094
|
+
unvaluedCallCount: number;
|
|
3095
|
+
} | undefined;
|
|
3096
|
+
requestedBy?: {
|
|
3097
|
+
id: string;
|
|
3098
|
+
type: "user" | "serviceAccount";
|
|
2858
3099
|
} | undefined;
|
|
3100
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
2859
3101
|
diagnostics?: {
|
|
2860
3102
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2861
3103
|
message: string;
|
|
@@ -2868,33 +3110,42 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
|
|
|
2868
3110
|
run: {
|
|
2869
3111
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2870
3112
|
projectId: string;
|
|
2871
|
-
agentId: string;
|
|
2872
3113
|
id: string;
|
|
3114
|
+
agentId: string;
|
|
3115
|
+
attempt: number;
|
|
2873
3116
|
threadId: string;
|
|
2874
3117
|
createdAt: string;
|
|
2875
3118
|
triggerMessageId: string;
|
|
2876
|
-
requestedByPrincipal: {
|
|
2877
|
-
type: "user" | "serviceAccount" | "system";
|
|
2878
|
-
id: string;
|
|
2879
|
-
};
|
|
2880
|
-
attempt: number;
|
|
2881
3119
|
streamId: string;
|
|
2882
|
-
error?:
|
|
3120
|
+
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
2883
3121
|
startedAt?: string | undefined;
|
|
2884
3122
|
completedAt?: string | undefined;
|
|
2885
|
-
executionPrincipal?: {
|
|
2886
|
-
type: "user" | "serviceAccount" | "system";
|
|
2887
|
-
id: string;
|
|
2888
|
-
} | undefined;
|
|
2889
3123
|
modelId?: string | undefined;
|
|
2890
|
-
finishReason?: "length" | "error" | "unknown" | "stop" | "content-filter" | "tool-calls" | "other" | undefined;
|
|
2891
3124
|
usage?: {
|
|
3125
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2892
3126
|
inputTokens?: number | undefined;
|
|
2893
3127
|
outputTokens?: number | undefined;
|
|
2894
3128
|
totalTokens?: number | undefined;
|
|
2895
|
-
|
|
2896
|
-
|
|
3129
|
+
uncachedInputTokens?: number | undefined;
|
|
3130
|
+
cacheReadInputTokens?: number | undefined;
|
|
3131
|
+
cacheWriteInputTokens?: number | undefined;
|
|
3132
|
+
textOutputTokens?: number | undefined;
|
|
3133
|
+
reasoningOutputTokens?: number | undefined;
|
|
3134
|
+
} | undefined;
|
|
3135
|
+
cost?: {
|
|
3136
|
+
amounts: {
|
|
3137
|
+
currency: string;
|
|
3138
|
+
amountNanos: string;
|
|
3139
|
+
}[];
|
|
3140
|
+
ratedCallCount: number;
|
|
3141
|
+
unpriceableCallCount: number;
|
|
3142
|
+
unvaluedCallCount: number;
|
|
2897
3143
|
} | undefined;
|
|
3144
|
+
requestedBy?: {
|
|
3145
|
+
id: string;
|
|
3146
|
+
type: "user" | "serviceAccount";
|
|
3147
|
+
} | undefined;
|
|
3148
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
2898
3149
|
diagnostics?: {
|
|
2899
3150
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2900
3151
|
message: string;
|
|
@@ -2927,47 +3178,80 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
|
|
|
2927
3178
|
threadId: z.ZodString;
|
|
2928
3179
|
agentId: z.ZodString;
|
|
2929
3180
|
triggerMessageId: z.ZodString;
|
|
2930
|
-
|
|
2931
|
-
type: z.ZodEnum<["user", "serviceAccount"
|
|
3181
|
+
requestedBy: z.ZodOptional<z.ZodObject<{
|
|
3182
|
+
type: z.ZodEnum<["user", "serviceAccount"]>;
|
|
2932
3183
|
id: z.ZodString;
|
|
2933
3184
|
}, "strip", z.ZodTypeAny, {
|
|
2934
|
-
type: "user" | "serviceAccount" | "system";
|
|
2935
3185
|
id: string;
|
|
3186
|
+
type: "user" | "serviceAccount";
|
|
2936
3187
|
}, {
|
|
2937
|
-
type: "user" | "serviceAccount" | "system";
|
|
2938
|
-
id: string;
|
|
2939
|
-
}>;
|
|
2940
|
-
executionPrincipal: z.ZodOptional<z.ZodObject<{
|
|
2941
|
-
type: z.ZodEnum<["user", "serviceAccount", "system"]>;
|
|
2942
|
-
id: z.ZodString;
|
|
2943
|
-
}, "strip", z.ZodTypeAny, {
|
|
2944
|
-
type: "user" | "serviceAccount" | "system";
|
|
2945
|
-
id: string;
|
|
2946
|
-
}, {
|
|
2947
|
-
type: "user" | "serviceAccount" | "system";
|
|
2948
3188
|
id: string;
|
|
3189
|
+
type: "user" | "serviceAccount";
|
|
2949
3190
|
}>>;
|
|
2950
3191
|
status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
|
|
2951
3192
|
modelId: z.ZodOptional<z.ZodString>;
|
|
2952
|
-
finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "error", "other", "unknown"]>>;
|
|
3193
|
+
finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "error", "other", "unknown"]>>;
|
|
2953
3194
|
usage: z.ZodOptional<z.ZodObject<{
|
|
2954
3195
|
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2955
3196
|
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2956
3197
|
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
2957
|
-
|
|
2958
|
-
|
|
3198
|
+
uncachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
3199
|
+
cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
3200
|
+
cacheWriteInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
3201
|
+
textOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
3202
|
+
reasoningOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
3203
|
+
reportingStatus: z.ZodEnum<["complete", "partial", "unavailable"]>;
|
|
2959
3204
|
}, "strip", z.ZodTypeAny, {
|
|
3205
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2960
3206
|
inputTokens?: number | undefined;
|
|
2961
3207
|
outputTokens?: number | undefined;
|
|
2962
3208
|
totalTokens?: number | undefined;
|
|
2963
|
-
|
|
2964
|
-
|
|
3209
|
+
uncachedInputTokens?: number | undefined;
|
|
3210
|
+
cacheReadInputTokens?: number | undefined;
|
|
3211
|
+
cacheWriteInputTokens?: number | undefined;
|
|
3212
|
+
textOutputTokens?: number | undefined;
|
|
3213
|
+
reasoningOutputTokens?: number | undefined;
|
|
2965
3214
|
}, {
|
|
3215
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2966
3216
|
inputTokens?: number | undefined;
|
|
2967
3217
|
outputTokens?: number | undefined;
|
|
2968
3218
|
totalTokens?: number | undefined;
|
|
2969
|
-
|
|
2970
|
-
|
|
3219
|
+
uncachedInputTokens?: number | undefined;
|
|
3220
|
+
cacheReadInputTokens?: number | undefined;
|
|
3221
|
+
cacheWriteInputTokens?: number | undefined;
|
|
3222
|
+
textOutputTokens?: number | undefined;
|
|
3223
|
+
reasoningOutputTokens?: number | undefined;
|
|
3224
|
+
}>>;
|
|
3225
|
+
cost: z.ZodOptional<z.ZodObject<{
|
|
3226
|
+
amounts: z.ZodArray<z.ZodObject<{
|
|
3227
|
+
currency: z.ZodString;
|
|
3228
|
+
amountNanos: z.ZodString;
|
|
3229
|
+
}, "strip", z.ZodTypeAny, {
|
|
3230
|
+
currency: string;
|
|
3231
|
+
amountNanos: string;
|
|
3232
|
+
}, {
|
|
3233
|
+
currency: string;
|
|
3234
|
+
amountNanos: string;
|
|
3235
|
+
}>, "many">;
|
|
3236
|
+
ratedCallCount: z.ZodNumber;
|
|
3237
|
+
unpriceableCallCount: z.ZodNumber;
|
|
3238
|
+
unvaluedCallCount: z.ZodNumber;
|
|
3239
|
+
}, "strip", z.ZodTypeAny, {
|
|
3240
|
+
amounts: {
|
|
3241
|
+
currency: string;
|
|
3242
|
+
amountNanos: string;
|
|
3243
|
+
}[];
|
|
3244
|
+
ratedCallCount: number;
|
|
3245
|
+
unpriceableCallCount: number;
|
|
3246
|
+
unvaluedCallCount: number;
|
|
3247
|
+
}, {
|
|
3248
|
+
amounts: {
|
|
3249
|
+
currency: string;
|
|
3250
|
+
amountNanos: string;
|
|
3251
|
+
}[];
|
|
3252
|
+
ratedCallCount: number;
|
|
3253
|
+
unpriceableCallCount: number;
|
|
3254
|
+
unvaluedCallCount: number;
|
|
2971
3255
|
}>>;
|
|
2972
3256
|
diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2973
3257
|
code: z.ZodEnum<["output_file_limit_exceeded", "output_file_too_large", "output_budget_exhausted", "output_collection_failed", "output_file_changed", "output_storage_failed"]>;
|
|
@@ -2988,7 +3272,7 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
|
|
|
2988
3272
|
scope: "output";
|
|
2989
3273
|
path?: string | undefined;
|
|
2990
3274
|
}>, "many">>;
|
|
2991
|
-
error: z.ZodOptional<z.
|
|
3275
|
+
error: z.ZodOptional<z.ZodType<SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled">, z.ZodTypeDef, SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled">>>;
|
|
2992
3276
|
attempt: z.ZodNumber;
|
|
2993
3277
|
streamId: z.ZodString;
|
|
2994
3278
|
createdAt: z.ZodString;
|
|
@@ -2997,33 +3281,42 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
|
|
|
2997
3281
|
}, "strip", z.ZodTypeAny, {
|
|
2998
3282
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2999
3283
|
projectId: string;
|
|
3000
|
-
agentId: string;
|
|
3001
3284
|
id: string;
|
|
3285
|
+
agentId: string;
|
|
3286
|
+
attempt: number;
|
|
3002
3287
|
threadId: string;
|
|
3003
3288
|
createdAt: string;
|
|
3004
3289
|
triggerMessageId: string;
|
|
3005
|
-
requestedByPrincipal: {
|
|
3006
|
-
type: "user" | "serviceAccount" | "system";
|
|
3007
|
-
id: string;
|
|
3008
|
-
};
|
|
3009
|
-
attempt: number;
|
|
3010
3290
|
streamId: string;
|
|
3011
|
-
error?:
|
|
3291
|
+
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
3012
3292
|
startedAt?: string | undefined;
|
|
3013
3293
|
completedAt?: string | undefined;
|
|
3014
|
-
executionPrincipal?: {
|
|
3015
|
-
type: "user" | "serviceAccount" | "system";
|
|
3016
|
-
id: string;
|
|
3017
|
-
} | undefined;
|
|
3018
3294
|
modelId?: string | undefined;
|
|
3019
|
-
finishReason?: "length" | "error" | "unknown" | "stop" | "content-filter" | "tool-calls" | "other" | undefined;
|
|
3020
3295
|
usage?: {
|
|
3296
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
3021
3297
|
inputTokens?: number | undefined;
|
|
3022
3298
|
outputTokens?: number | undefined;
|
|
3023
3299
|
totalTokens?: number | undefined;
|
|
3024
|
-
|
|
3025
|
-
|
|
3300
|
+
uncachedInputTokens?: number | undefined;
|
|
3301
|
+
cacheReadInputTokens?: number | undefined;
|
|
3302
|
+
cacheWriteInputTokens?: number | undefined;
|
|
3303
|
+
textOutputTokens?: number | undefined;
|
|
3304
|
+
reasoningOutputTokens?: number | undefined;
|
|
3305
|
+
} | undefined;
|
|
3306
|
+
cost?: {
|
|
3307
|
+
amounts: {
|
|
3308
|
+
currency: string;
|
|
3309
|
+
amountNanos: string;
|
|
3310
|
+
}[];
|
|
3311
|
+
ratedCallCount: number;
|
|
3312
|
+
unpriceableCallCount: number;
|
|
3313
|
+
unvaluedCallCount: number;
|
|
3314
|
+
} | undefined;
|
|
3315
|
+
requestedBy?: {
|
|
3316
|
+
id: string;
|
|
3317
|
+
type: "user" | "serviceAccount";
|
|
3026
3318
|
} | undefined;
|
|
3319
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
3027
3320
|
diagnostics?: {
|
|
3028
3321
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
3029
3322
|
message: string;
|
|
@@ -3034,33 +3327,42 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
|
|
|
3034
3327
|
}, {
|
|
3035
3328
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
3036
3329
|
projectId: string;
|
|
3037
|
-
agentId: string;
|
|
3038
3330
|
id: string;
|
|
3331
|
+
agentId: string;
|
|
3332
|
+
attempt: number;
|
|
3039
3333
|
threadId: string;
|
|
3040
3334
|
createdAt: string;
|
|
3041
3335
|
triggerMessageId: string;
|
|
3042
|
-
requestedByPrincipal: {
|
|
3043
|
-
type: "user" | "serviceAccount" | "system";
|
|
3044
|
-
id: string;
|
|
3045
|
-
};
|
|
3046
|
-
attempt: number;
|
|
3047
3336
|
streamId: string;
|
|
3048
|
-
error?:
|
|
3337
|
+
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
3049
3338
|
startedAt?: string | undefined;
|
|
3050
3339
|
completedAt?: string | undefined;
|
|
3051
|
-
executionPrincipal?: {
|
|
3052
|
-
type: "user" | "serviceAccount" | "system";
|
|
3053
|
-
id: string;
|
|
3054
|
-
} | undefined;
|
|
3055
3340
|
modelId?: string | undefined;
|
|
3056
|
-
finishReason?: "length" | "error" | "unknown" | "stop" | "content-filter" | "tool-calls" | "other" | undefined;
|
|
3057
3341
|
usage?: {
|
|
3342
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
3058
3343
|
inputTokens?: number | undefined;
|
|
3059
3344
|
outputTokens?: number | undefined;
|
|
3060
3345
|
totalTokens?: number | undefined;
|
|
3061
|
-
|
|
3062
|
-
|
|
3346
|
+
uncachedInputTokens?: number | undefined;
|
|
3347
|
+
cacheReadInputTokens?: number | undefined;
|
|
3348
|
+
cacheWriteInputTokens?: number | undefined;
|
|
3349
|
+
textOutputTokens?: number | undefined;
|
|
3350
|
+
reasoningOutputTokens?: number | undefined;
|
|
3351
|
+
} | undefined;
|
|
3352
|
+
cost?: {
|
|
3353
|
+
amounts: {
|
|
3354
|
+
currency: string;
|
|
3355
|
+
amountNanos: string;
|
|
3356
|
+
}[];
|
|
3357
|
+
ratedCallCount: number;
|
|
3358
|
+
unpriceableCallCount: number;
|
|
3359
|
+
unvaluedCallCount: number;
|
|
3360
|
+
} | undefined;
|
|
3361
|
+
requestedBy?: {
|
|
3362
|
+
id: string;
|
|
3363
|
+
type: "user" | "serviceAccount";
|
|
3063
3364
|
} | undefined;
|
|
3365
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
3064
3366
|
diagnostics?: {
|
|
3065
3367
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
3066
3368
|
message: string;
|
|
@@ -3075,33 +3377,42 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
|
|
|
3075
3377
|
runs: {
|
|
3076
3378
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
3077
3379
|
projectId: string;
|
|
3078
|
-
agentId: string;
|
|
3079
3380
|
id: string;
|
|
3381
|
+
agentId: string;
|
|
3382
|
+
attempt: number;
|
|
3080
3383
|
threadId: string;
|
|
3081
3384
|
createdAt: string;
|
|
3082
3385
|
triggerMessageId: string;
|
|
3083
|
-
requestedByPrincipal: {
|
|
3084
|
-
type: "user" | "serviceAccount" | "system";
|
|
3085
|
-
id: string;
|
|
3086
|
-
};
|
|
3087
|
-
attempt: number;
|
|
3088
3386
|
streamId: string;
|
|
3089
|
-
error?:
|
|
3387
|
+
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
3090
3388
|
startedAt?: string | undefined;
|
|
3091
3389
|
completedAt?: string | undefined;
|
|
3092
|
-
executionPrincipal?: {
|
|
3093
|
-
type: "user" | "serviceAccount" | "system";
|
|
3094
|
-
id: string;
|
|
3095
|
-
} | undefined;
|
|
3096
3390
|
modelId?: string | undefined;
|
|
3097
|
-
finishReason?: "length" | "error" | "unknown" | "stop" | "content-filter" | "tool-calls" | "other" | undefined;
|
|
3098
3391
|
usage?: {
|
|
3392
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
3099
3393
|
inputTokens?: number | undefined;
|
|
3100
3394
|
outputTokens?: number | undefined;
|
|
3101
3395
|
totalTokens?: number | undefined;
|
|
3102
|
-
|
|
3103
|
-
|
|
3396
|
+
uncachedInputTokens?: number | undefined;
|
|
3397
|
+
cacheReadInputTokens?: number | undefined;
|
|
3398
|
+
cacheWriteInputTokens?: number | undefined;
|
|
3399
|
+
textOutputTokens?: number | undefined;
|
|
3400
|
+
reasoningOutputTokens?: number | undefined;
|
|
3401
|
+
} | undefined;
|
|
3402
|
+
cost?: {
|
|
3403
|
+
amounts: {
|
|
3404
|
+
currency: string;
|
|
3405
|
+
amountNanos: string;
|
|
3406
|
+
}[];
|
|
3407
|
+
ratedCallCount: number;
|
|
3408
|
+
unpriceableCallCount: number;
|
|
3409
|
+
unvaluedCallCount: number;
|
|
3104
3410
|
} | undefined;
|
|
3411
|
+
requestedBy?: {
|
|
3412
|
+
id: string;
|
|
3413
|
+
type: "user" | "serviceAccount";
|
|
3414
|
+
} | undefined;
|
|
3415
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
3105
3416
|
diagnostics?: {
|
|
3106
3417
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
3107
3418
|
message: string;
|
|
@@ -3116,33 +3427,42 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
|
|
|
3116
3427
|
runs: {
|
|
3117
3428
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
3118
3429
|
projectId: string;
|
|
3119
|
-
agentId: string;
|
|
3120
3430
|
id: string;
|
|
3431
|
+
agentId: string;
|
|
3432
|
+
attempt: number;
|
|
3121
3433
|
threadId: string;
|
|
3122
3434
|
createdAt: string;
|
|
3123
3435
|
triggerMessageId: string;
|
|
3124
|
-
requestedByPrincipal: {
|
|
3125
|
-
type: "user" | "serviceAccount" | "system";
|
|
3126
|
-
id: string;
|
|
3127
|
-
};
|
|
3128
|
-
attempt: number;
|
|
3129
3436
|
streamId: string;
|
|
3130
|
-
error?:
|
|
3437
|
+
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
3131
3438
|
startedAt?: string | undefined;
|
|
3132
3439
|
completedAt?: string | undefined;
|
|
3133
|
-
executionPrincipal?: {
|
|
3134
|
-
type: "user" | "serviceAccount" | "system";
|
|
3135
|
-
id: string;
|
|
3136
|
-
} | undefined;
|
|
3137
3440
|
modelId?: string | undefined;
|
|
3138
|
-
finishReason?: "length" | "error" | "unknown" | "stop" | "content-filter" | "tool-calls" | "other" | undefined;
|
|
3139
3441
|
usage?: {
|
|
3442
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
3140
3443
|
inputTokens?: number | undefined;
|
|
3141
3444
|
outputTokens?: number | undefined;
|
|
3142
3445
|
totalTokens?: number | undefined;
|
|
3143
|
-
|
|
3144
|
-
|
|
3446
|
+
uncachedInputTokens?: number | undefined;
|
|
3447
|
+
cacheReadInputTokens?: number | undefined;
|
|
3448
|
+
cacheWriteInputTokens?: number | undefined;
|
|
3449
|
+
textOutputTokens?: number | undefined;
|
|
3450
|
+
reasoningOutputTokens?: number | undefined;
|
|
3451
|
+
} | undefined;
|
|
3452
|
+
cost?: {
|
|
3453
|
+
amounts: {
|
|
3454
|
+
currency: string;
|
|
3455
|
+
amountNanos: string;
|
|
3456
|
+
}[];
|
|
3457
|
+
ratedCallCount: number;
|
|
3458
|
+
unpriceableCallCount: number;
|
|
3459
|
+
unvaluedCallCount: number;
|
|
3460
|
+
} | undefined;
|
|
3461
|
+
requestedBy?: {
|
|
3462
|
+
id: string;
|
|
3463
|
+
type: "user" | "serviceAccount";
|
|
3145
3464
|
} | undefined;
|
|
3465
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
3146
3466
|
diagnostics?: {
|
|
3147
3467
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
3148
3468
|
message: string;
|