@sixb/server 0.1.18 → 0.1.19
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/actions/serialize.d.ts +7 -0
- package/dist/actions/serialize.d.ts.map +1 -0
- package/dist/index.js +660 -685
- package/dist/index.js.map +14 -13
- package/dist/routes/action-runs.d.ts +11 -13
- package/dist/routes/action-runs.d.ts.map +1 -1
- package/dist/routes/actions.d.ts +44 -13
- package/dist/routes/actions.d.ts.map +1 -1
- package/dist/routes/agent-api-gateway.d.ts.map +1 -1
- package/dist/routes/agents.d.ts +20 -20
- package/dist/routes/connector-connection-runs.d.ts +21 -21
- package/dist/routes/connector-connections.d.ts +8 -8
- package/dist/routes/connectors.d.ts +2 -2
- package/dist/routes/datasets.d.ts +5 -5
- package/dist/routes/events.d.ts +4 -4
- package/dist/routes/files.d.ts +15 -12
- package/dist/routes/files.d.ts.map +1 -1
- package/dist/routes/ontology.d.ts +6 -6
- package/dist/routes/pipelines.d.ts +16 -16
- package/dist/routes/projections.d.ts +49 -49
- package/dist/routes/syncs.d.ts +10 -10
- package/dist/routes/webhook-runs.d.ts +2 -2
- package/dist/routes/workflows.d.ts +48 -48
- package/dist/routes/ws/events.d.ts +6 -9
- package/dist/routes/ws/events.d.ts.map +1 -1
- package/dist/schemas/actions.d.ts +100 -84
- package/dist/schemas/actions.d.ts.map +1 -1
- package/dist/schemas/agents.d.ts +20 -20
- package/dist/schemas/ai-limits.d.ts +10 -10
- package/dist/schemas/connectors.d.ts +8 -8
- package/dist/schemas/datasets.d.ts +40 -40
- package/dist/schemas/events.d.ts +24 -24
- package/dist/schemas/events.d.ts.map +1 -1
- package/dist/schemas/files.d.ts +4 -4
- package/dist/schemas/ontology.d.ts +40 -40
- package/dist/schemas/pipelines.d.ts +92 -92
- package/dist/schemas/projections.d.ts +290 -290
- package/dist/schemas/syncs.d.ts +34 -34
- package/dist/schemas/webhook-runs.d.ts +8 -8
- package/dist/schemas/workflows.d.ts +160 -160
- package/dist/server.d.ts +1 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/utils/http.d.ts.map +1 -1
- package/dist/utils/request-body.d.ts +20 -6
- package/dist/utils/request-body.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/actions/serialize.ts +55 -0
- package/src/routes/action-runs.ts +1 -54
- package/src/routes/actions.ts +26 -8
- package/src/routes/agent-api-gateway.ts +18 -42
- package/src/routes/files.ts +15 -63
- package/src/routes/ws/events.ts +2 -12
- package/src/schemas/actions.ts +21 -18
- package/src/server.ts +21 -3
- package/src/utils/http.ts +2 -0
- package/src/utils/request-body.ts +55 -6
|
@@ -76,21 +76,44 @@ export declare const RequestActionBodySchema: z.ZodObject<{
|
|
|
76
76
|
primaryId: string;
|
|
77
77
|
} | undefined;
|
|
78
78
|
}>;
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
79
|
+
/** A request reused the run id of a run this server is still executing. */
|
|
80
|
+
export declare const ActionRunInProgressResponseSchema: z.ZodObject<{
|
|
81
|
+
error: z.ZodString;
|
|
82
|
+
} & {
|
|
83
|
+
code: z.ZodEnum<["action.run_in_progress"]>;
|
|
84
84
|
}, "strip", z.ZodTypeAny, {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
created: boolean;
|
|
88
|
-
jobId?: string | undefined;
|
|
85
|
+
error: string;
|
|
86
|
+
code: "action.run_in_progress";
|
|
89
87
|
}, {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
88
|
+
error: string;
|
|
89
|
+
code: "action.run_in_progress";
|
|
90
|
+
}>;
|
|
91
|
+
/**
|
|
92
|
+
* An unexpected failure. It can follow a run that started: requesting the same `runId` again
|
|
93
|
+
* returns the run's record if it was written, and runs it again otherwise.
|
|
94
|
+
*/
|
|
95
|
+
export declare const ActionRequestFailedResponseSchema: z.ZodObject<{
|
|
96
|
+
error: z.ZodString;
|
|
97
|
+
} & {
|
|
98
|
+
code: z.ZodEnum<["action.phase_failed" | "action.read_conflict" | "action.run_in_progress" | "action.timeout" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed", ...("action.phase_failed" | "action.read_conflict" | "action.run_in_progress" | "action.timeout" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed")[]]>;
|
|
99
|
+
}, "strip", z.ZodTypeAny, {
|
|
100
|
+
error: string;
|
|
101
|
+
code: "action.phase_failed" | "action.read_conflict" | "action.run_in_progress" | "action.timeout" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
|
|
102
|
+
}, {
|
|
103
|
+
error: string;
|
|
104
|
+
code: "action.phase_failed" | "action.read_conflict" | "action.run_in_progress" | "action.timeout" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
|
|
105
|
+
}>;
|
|
106
|
+
/** The server is stopping and refused the request before starting anything. */
|
|
107
|
+
export declare const RuntimeStoppingResponseSchema: z.ZodObject<{
|
|
108
|
+
error: z.ZodString;
|
|
109
|
+
} & {
|
|
110
|
+
code: z.ZodEnum<["runtime.stopping"]>;
|
|
111
|
+
}, "strip", z.ZodTypeAny, {
|
|
112
|
+
error: string;
|
|
113
|
+
code: "runtime.stopping";
|
|
114
|
+
}, {
|
|
115
|
+
error: string;
|
|
116
|
+
code: "runtime.stopping";
|
|
94
117
|
}>;
|
|
95
118
|
export declare const ActionCatalogItemSchema: z.ZodObject<{
|
|
96
119
|
id: z.ZodString;
|
|
@@ -271,11 +294,12 @@ export declare const ActionDetailSchema: z.ZodObject<{
|
|
|
271
294
|
description?: string | undefined;
|
|
272
295
|
objectTypeId?: string | undefined;
|
|
273
296
|
}>;
|
|
274
|
-
|
|
275
|
-
export declare const
|
|
297
|
+
/** How a run ended: a run is recorded once, when it ends. */
|
|
298
|
+
export declare const ActionRunStatusSchema: z.ZodEnum<["succeeded", "failed"]>;
|
|
299
|
+
export declare const ActionRunPhaseSchema: z.ZodEnum<["validation", "writeback", "edits", "commit", "effects"]>;
|
|
276
300
|
export declare const ActionRunsQuerySchema: z.ZodObject<{
|
|
277
301
|
actionId: z.ZodOptional<z.ZodString>;
|
|
278
|
-
status: z.ZodOptional<z.ZodEnum<["
|
|
302
|
+
status: z.ZodOptional<z.ZodEnum<["succeeded", "failed"]>>;
|
|
279
303
|
objectTypeId: z.ZodOptional<z.ZodString>;
|
|
280
304
|
primaryId: z.ZodOptional<z.ZodString>;
|
|
281
305
|
startedAfter: z.ZodOptional<z.ZodString>;
|
|
@@ -284,7 +308,7 @@ export declare const ActionRunsQuerySchema: z.ZodObject<{
|
|
|
284
308
|
offset: z.ZodOptional<z.ZodString>;
|
|
285
309
|
order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
|
|
286
310
|
}, "strip", z.ZodTypeAny, {
|
|
287
|
-
status?: "
|
|
311
|
+
status?: "succeeded" | "failed" | undefined;
|
|
288
312
|
objectTypeId?: string | undefined;
|
|
289
313
|
actionId?: string | undefined;
|
|
290
314
|
primaryId?: string | undefined;
|
|
@@ -294,7 +318,7 @@ export declare const ActionRunsQuerySchema: z.ZodObject<{
|
|
|
294
318
|
offset?: string | undefined;
|
|
295
319
|
order?: "asc" | "desc" | undefined;
|
|
296
320
|
}, {
|
|
297
|
-
status?: "
|
|
321
|
+
status?: "succeeded" | "failed" | undefined;
|
|
298
322
|
objectTypeId?: string | undefined;
|
|
299
323
|
actionId?: string | undefined;
|
|
300
324
|
primaryId?: string | undefined;
|
|
@@ -328,14 +352,14 @@ export declare const ActionRunSummarySchema: z.ZodObject<{
|
|
|
328
352
|
objectTypeId: string;
|
|
329
353
|
primaryId: string;
|
|
330
354
|
}>]>;
|
|
331
|
-
status: z.ZodEnum<["
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
startedAt: z.
|
|
335
|
-
finishedAt: z.
|
|
336
|
-
error: z.ZodOptional<z.ZodType<ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "
|
|
355
|
+
status: z.ZodEnum<["succeeded", "failed"]>;
|
|
356
|
+
/** The last phase the run reached. */
|
|
357
|
+
phase: z.ZodEnum<["validation", "writeback", "edits", "commit", "effects"]>;
|
|
358
|
+
startedAt: z.ZodString;
|
|
359
|
+
finishedAt: z.ZodString;
|
|
360
|
+
error: z.ZodOptional<z.ZodType<ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "commit">, z.ZodTypeDef, ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "commit">>>;
|
|
337
361
|
}, "strip", z.ZodTypeAny, {
|
|
338
|
-
status: "
|
|
362
|
+
status: "succeeded" | "failed";
|
|
339
363
|
projectId: string;
|
|
340
364
|
id: string;
|
|
341
365
|
actionId: string;
|
|
@@ -346,13 +370,12 @@ export declare const ActionRunSummarySchema: z.ZodObject<{
|
|
|
346
370
|
objectTypeId: string;
|
|
347
371
|
primaryId: string;
|
|
348
372
|
};
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
finishedAt?: string | undefined;
|
|
373
|
+
phase: "validation" | "writeback" | "edits" | "effects" | "commit";
|
|
374
|
+
startedAt: string;
|
|
375
|
+
finishedAt: string;
|
|
376
|
+
error?: ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "commit"> | undefined;
|
|
354
377
|
}, {
|
|
355
|
-
status: "
|
|
378
|
+
status: "succeeded" | "failed";
|
|
356
379
|
projectId: string;
|
|
357
380
|
id: string;
|
|
358
381
|
actionId: string;
|
|
@@ -363,11 +386,10 @@ export declare const ActionRunSummarySchema: z.ZodObject<{
|
|
|
363
386
|
objectTypeId: string;
|
|
364
387
|
primaryId: string;
|
|
365
388
|
};
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
finishedAt?: string | undefined;
|
|
389
|
+
phase: "validation" | "writeback" | "edits" | "effects" | "commit";
|
|
390
|
+
startedAt: string;
|
|
391
|
+
finishedAt: string;
|
|
392
|
+
error?: ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "commit"> | undefined;
|
|
371
393
|
}>;
|
|
372
394
|
export declare const ActionRunDetailSchema: z.ZodObject<{
|
|
373
395
|
id: z.ZodString;
|
|
@@ -392,12 +414,12 @@ export declare const ActionRunDetailSchema: z.ZodObject<{
|
|
|
392
414
|
objectTypeId: string;
|
|
393
415
|
primaryId: string;
|
|
394
416
|
}>]>;
|
|
395
|
-
status: z.ZodEnum<["
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
startedAt: z.
|
|
399
|
-
finishedAt: z.
|
|
400
|
-
error: z.ZodOptional<z.ZodType<ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "
|
|
417
|
+
status: z.ZodEnum<["succeeded", "failed"]>;
|
|
418
|
+
/** The last phase the run reached. */
|
|
419
|
+
phase: z.ZodEnum<["validation", "writeback", "edits", "commit", "effects"]>;
|
|
420
|
+
startedAt: z.ZodString;
|
|
421
|
+
finishedAt: z.ZodString;
|
|
422
|
+
error: z.ZodOptional<z.ZodType<ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "commit">, z.ZodTypeDef, ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "commit">>>;
|
|
401
423
|
} & {
|
|
402
424
|
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
403
425
|
writeback: z.ZodOptional<z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
@@ -448,7 +470,7 @@ export declare const ActionRunDetailSchema: z.ZodObject<{
|
|
|
448
470
|
completedAt: string;
|
|
449
471
|
}>]>>;
|
|
450
472
|
}, "strip", z.ZodTypeAny, {
|
|
451
|
-
status: "
|
|
473
|
+
status: "succeeded" | "failed";
|
|
452
474
|
projectId: string;
|
|
453
475
|
id: string;
|
|
454
476
|
params: Record<string, unknown>;
|
|
@@ -460,8 +482,10 @@ export declare const ActionRunDetailSchema: z.ZodObject<{
|
|
|
460
482
|
objectTypeId: string;
|
|
461
483
|
primaryId: string;
|
|
462
484
|
};
|
|
463
|
-
|
|
464
|
-
|
|
485
|
+
phase: "validation" | "writeback" | "edits" | "effects" | "commit";
|
|
486
|
+
startedAt: string;
|
|
487
|
+
finishedAt: string;
|
|
488
|
+
error?: ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "commit"> | undefined;
|
|
465
489
|
writeback?: {
|
|
466
490
|
status: "succeeded";
|
|
467
491
|
completedAt: string;
|
|
@@ -479,11 +503,8 @@ export declare const ActionRunDetailSchema: z.ZodObject<{
|
|
|
479
503
|
status: "failed";
|
|
480
504
|
completedAt: string;
|
|
481
505
|
} | undefined;
|
|
482
|
-
phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
|
|
483
|
-
startedAt?: string | undefined;
|
|
484
|
-
finishedAt?: string | undefined;
|
|
485
506
|
}, {
|
|
486
|
-
status: "
|
|
507
|
+
status: "succeeded" | "failed";
|
|
487
508
|
projectId: string;
|
|
488
509
|
id: string;
|
|
489
510
|
params: Record<string, unknown>;
|
|
@@ -495,8 +516,10 @@ export declare const ActionRunDetailSchema: z.ZodObject<{
|
|
|
495
516
|
objectTypeId: string;
|
|
496
517
|
primaryId: string;
|
|
497
518
|
};
|
|
498
|
-
|
|
499
|
-
|
|
519
|
+
phase: "validation" | "writeback" | "edits" | "effects" | "commit";
|
|
520
|
+
startedAt: string;
|
|
521
|
+
finishedAt: string;
|
|
522
|
+
error?: ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "commit"> | undefined;
|
|
500
523
|
writeback?: {
|
|
501
524
|
status: "succeeded";
|
|
502
525
|
completedAt: string;
|
|
@@ -514,9 +537,6 @@ export declare const ActionRunDetailSchema: z.ZodObject<{
|
|
|
514
537
|
status: "failed";
|
|
515
538
|
completedAt: string;
|
|
516
539
|
} | undefined;
|
|
517
|
-
phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
|
|
518
|
-
startedAt?: string | undefined;
|
|
519
|
-
finishedAt?: string | undefined;
|
|
520
540
|
}>;
|
|
521
541
|
export declare const ActionRunListResponseSchema: z.ZodObject<{
|
|
522
542
|
runs: z.ZodArray<z.ZodObject<{
|
|
@@ -542,14 +562,14 @@ export declare const ActionRunListResponseSchema: z.ZodObject<{
|
|
|
542
562
|
objectTypeId: string;
|
|
543
563
|
primaryId: string;
|
|
544
564
|
}>]>;
|
|
545
|
-
status: z.ZodEnum<["
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
startedAt: z.
|
|
549
|
-
finishedAt: z.
|
|
550
|
-
error: z.ZodOptional<z.ZodType<ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "
|
|
565
|
+
status: z.ZodEnum<["succeeded", "failed"]>;
|
|
566
|
+
/** The last phase the run reached. */
|
|
567
|
+
phase: z.ZodEnum<["validation", "writeback", "edits", "commit", "effects"]>;
|
|
568
|
+
startedAt: z.ZodString;
|
|
569
|
+
finishedAt: z.ZodString;
|
|
570
|
+
error: z.ZodOptional<z.ZodType<ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "commit">, z.ZodTypeDef, ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "commit">>>;
|
|
551
571
|
}, "strip", z.ZodTypeAny, {
|
|
552
|
-
status: "
|
|
572
|
+
status: "succeeded" | "failed";
|
|
553
573
|
projectId: string;
|
|
554
574
|
id: string;
|
|
555
575
|
actionId: string;
|
|
@@ -560,13 +580,12 @@ export declare const ActionRunListResponseSchema: z.ZodObject<{
|
|
|
560
580
|
objectTypeId: string;
|
|
561
581
|
primaryId: string;
|
|
562
582
|
};
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
finishedAt?: string | undefined;
|
|
583
|
+
phase: "validation" | "writeback" | "edits" | "effects" | "commit";
|
|
584
|
+
startedAt: string;
|
|
585
|
+
finishedAt: string;
|
|
586
|
+
error?: ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "commit"> | undefined;
|
|
568
587
|
}, {
|
|
569
|
-
status: "
|
|
588
|
+
status: "succeeded" | "failed";
|
|
570
589
|
projectId: string;
|
|
571
590
|
id: string;
|
|
572
591
|
actionId: string;
|
|
@@ -577,17 +596,16 @@ export declare const ActionRunListResponseSchema: z.ZodObject<{
|
|
|
577
596
|
objectTypeId: string;
|
|
578
597
|
primaryId: string;
|
|
579
598
|
};
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
finishedAt?: string | undefined;
|
|
599
|
+
phase: "validation" | "writeback" | "edits" | "effects" | "commit";
|
|
600
|
+
startedAt: string;
|
|
601
|
+
finishedAt: string;
|
|
602
|
+
error?: ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "commit"> | undefined;
|
|
585
603
|
}>, "many">;
|
|
586
604
|
hasMore: z.ZodBoolean;
|
|
587
605
|
total: z.ZodNumber;
|
|
588
606
|
}, "strip", z.ZodTypeAny, {
|
|
589
607
|
runs: {
|
|
590
|
-
status: "
|
|
608
|
+
status: "succeeded" | "failed";
|
|
591
609
|
projectId: string;
|
|
592
610
|
id: string;
|
|
593
611
|
actionId: string;
|
|
@@ -598,17 +616,16 @@ export declare const ActionRunListResponseSchema: z.ZodObject<{
|
|
|
598
616
|
objectTypeId: string;
|
|
599
617
|
primaryId: string;
|
|
600
618
|
};
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
finishedAt?: string | undefined;
|
|
619
|
+
phase: "validation" | "writeback" | "edits" | "effects" | "commit";
|
|
620
|
+
startedAt: string;
|
|
621
|
+
finishedAt: string;
|
|
622
|
+
error?: ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "commit"> | undefined;
|
|
606
623
|
}[];
|
|
607
624
|
hasMore: boolean;
|
|
608
625
|
total: number;
|
|
609
626
|
}, {
|
|
610
627
|
runs: {
|
|
611
|
-
status: "
|
|
628
|
+
status: "succeeded" | "failed";
|
|
612
629
|
projectId: string;
|
|
613
630
|
id: string;
|
|
614
631
|
actionId: string;
|
|
@@ -619,11 +636,10 @@ export declare const ActionRunListResponseSchema: z.ZodObject<{
|
|
|
619
636
|
objectTypeId: string;
|
|
620
637
|
primaryId: string;
|
|
621
638
|
};
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
finishedAt?: string | undefined;
|
|
639
|
+
phase: "validation" | "writeback" | "edits" | "effects" | "commit";
|
|
640
|
+
startedAt: string;
|
|
641
|
+
finishedAt: string;
|
|
642
|
+
error?: ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "commit"> | undefined;
|
|
627
643
|
}[];
|
|
628
644
|
hasMore: boolean;
|
|
629
645
|
total: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/schemas/actions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/schemas/actions.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,gBAAgB,EACtB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,eAAO,MAAM,oBAAoB;;;;;;EAE/B,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;EAElC,CAAA;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;IAS9B,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIlC,CAAA;AAEF,2EAA2E;AAC3E,eAAO,MAAM,iCAAiC;;;;;;;;;;EAE5C,CAAA;AAEF;;;GAGG;AACH,eAAO,MAAM,iCAAiC;;;;;;;;;;EAA6C,CAAA;AAE3F,+EAA+E;AAC/E,eAAO,MAAM,6BAA6B;;;;;;;;;;EAAiD,CAAA;AAE3F,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYlC,CAAA;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAC7B,8EAA8E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE9E,CAAA;AAEF,6DAA6D;AAC7D,eAAO,MAAM,qBAAqB,oCAAkC,CAAA;AAEpE,eAAO,MAAM,oBAAoB,sEAA4B,CAAA;AAE7D,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUhC,CAAA;AAEF,eAAO,MAAM,sBAAsB,EAAE,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAQ7D,CAAA;AAsBF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;IAMjC,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKtC,CAAA;AA2BF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;IAhChC,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoCtC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;QAtCtC,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0CtC,CAAA"}
|
package/dist/schemas/agents.d.ts
CHANGED
|
@@ -2489,7 +2489,7 @@ export declare const AgentRunSchema: z.ZodObject<{
|
|
|
2489
2489
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
2490
2490
|
completedAt: z.ZodOptional<z.ZodString>;
|
|
2491
2491
|
}, "strip", z.ZodTypeAny, {
|
|
2492
|
-
status: "
|
|
2492
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
|
|
2493
2493
|
projectId: string;
|
|
2494
2494
|
id: string;
|
|
2495
2495
|
attempt: number;
|
|
@@ -2542,7 +2542,7 @@ export declare const AgentRunSchema: z.ZodObject<{
|
|
|
2542
2542
|
path?: string | undefined;
|
|
2543
2543
|
}[] | undefined;
|
|
2544
2544
|
}, {
|
|
2545
|
-
status: "
|
|
2545
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
|
|
2546
2546
|
projectId: string;
|
|
2547
2547
|
id: string;
|
|
2548
2548
|
attempt: number;
|
|
@@ -2722,7 +2722,7 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
|
|
|
2722
2722
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
2723
2723
|
completedAt: z.ZodOptional<z.ZodString>;
|
|
2724
2724
|
}, "strip", z.ZodTypeAny, {
|
|
2725
|
-
status: "
|
|
2725
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
|
|
2726
2726
|
projectId: string;
|
|
2727
2727
|
id: string;
|
|
2728
2728
|
attempt: number;
|
|
@@ -2775,7 +2775,7 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
|
|
|
2775
2775
|
path?: string | undefined;
|
|
2776
2776
|
}[] | undefined;
|
|
2777
2777
|
}, {
|
|
2778
|
-
status: "
|
|
2778
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
|
|
2779
2779
|
projectId: string;
|
|
2780
2780
|
id: string;
|
|
2781
2781
|
attempt: number;
|
|
@@ -2830,7 +2830,7 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
|
|
|
2830
2830
|
}>;
|
|
2831
2831
|
}, "strip", z.ZodTypeAny, {
|
|
2832
2832
|
run: {
|
|
2833
|
-
status: "
|
|
2833
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
|
|
2834
2834
|
projectId: string;
|
|
2835
2835
|
id: string;
|
|
2836
2836
|
attempt: number;
|
|
@@ -2885,7 +2885,7 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
|
|
|
2885
2885
|
};
|
|
2886
2886
|
}, {
|
|
2887
2887
|
run: {
|
|
2888
|
-
status: "
|
|
2888
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
|
|
2889
2889
|
projectId: string;
|
|
2890
2890
|
id: string;
|
|
2891
2891
|
attempt: number;
|
|
@@ -3066,7 +3066,7 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
|
|
|
3066
3066
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
3067
3067
|
completedAt: z.ZodOptional<z.ZodString>;
|
|
3068
3068
|
}, "strip", z.ZodTypeAny, {
|
|
3069
|
-
status: "
|
|
3069
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
|
|
3070
3070
|
projectId: string;
|
|
3071
3071
|
id: string;
|
|
3072
3072
|
attempt: number;
|
|
@@ -3119,7 +3119,7 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
|
|
|
3119
3119
|
path?: string | undefined;
|
|
3120
3120
|
}[] | undefined;
|
|
3121
3121
|
}, {
|
|
3122
|
-
status: "
|
|
3122
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
|
|
3123
3123
|
projectId: string;
|
|
3124
3124
|
id: string;
|
|
3125
3125
|
attempt: number;
|
|
@@ -3174,7 +3174,7 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
|
|
|
3174
3174
|
}>;
|
|
3175
3175
|
}, "strip", z.ZodTypeAny, {
|
|
3176
3176
|
run: {
|
|
3177
|
-
status: "
|
|
3177
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
|
|
3178
3178
|
projectId: string;
|
|
3179
3179
|
id: string;
|
|
3180
3180
|
attempt: number;
|
|
@@ -3229,7 +3229,7 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
|
|
|
3229
3229
|
};
|
|
3230
3230
|
}, {
|
|
3231
3231
|
run: {
|
|
3232
|
-
status: "
|
|
3232
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
|
|
3233
3233
|
projectId: string;
|
|
3234
3234
|
id: string;
|
|
3235
3235
|
attempt: number;
|
|
@@ -3410,7 +3410,7 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
|
|
|
3410
3410
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
3411
3411
|
completedAt: z.ZodOptional<z.ZodString>;
|
|
3412
3412
|
}, "strip", z.ZodTypeAny, {
|
|
3413
|
-
status: "
|
|
3413
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
|
|
3414
3414
|
projectId: string;
|
|
3415
3415
|
id: string;
|
|
3416
3416
|
attempt: number;
|
|
@@ -3463,7 +3463,7 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
|
|
|
3463
3463
|
path?: string | undefined;
|
|
3464
3464
|
}[] | undefined;
|
|
3465
3465
|
}, {
|
|
3466
|
-
status: "
|
|
3466
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
|
|
3467
3467
|
projectId: string;
|
|
3468
3468
|
id: string;
|
|
3469
3469
|
attempt: number;
|
|
@@ -3518,7 +3518,7 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
|
|
|
3518
3518
|
}>;
|
|
3519
3519
|
}, "strip", z.ZodTypeAny, {
|
|
3520
3520
|
run: {
|
|
3521
|
-
status: "
|
|
3521
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
|
|
3522
3522
|
projectId: string;
|
|
3523
3523
|
id: string;
|
|
3524
3524
|
attempt: number;
|
|
@@ -3573,7 +3573,7 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
|
|
|
3573
3573
|
};
|
|
3574
3574
|
}, {
|
|
3575
3575
|
run: {
|
|
3576
|
-
status: "
|
|
3576
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
|
|
3577
3577
|
projectId: string;
|
|
3578
3578
|
id: string;
|
|
3579
3579
|
attempt: number;
|
|
@@ -3633,12 +3633,12 @@ export declare const AgentRunListQuerySchema: z.ZodObject<{
|
|
|
3633
3633
|
offset: z.ZodOptional<z.ZodString>;
|
|
3634
3634
|
order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
|
|
3635
3635
|
}, "strip", z.ZodTypeAny, {
|
|
3636
|
-
status?: "
|
|
3636
|
+
status?: "succeeded" | "failed" | "queued" | "running" | "cancelled" | undefined;
|
|
3637
3637
|
limit?: string | undefined;
|
|
3638
3638
|
offset?: string | undefined;
|
|
3639
3639
|
order?: "asc" | "desc" | undefined;
|
|
3640
3640
|
}, {
|
|
3641
|
-
status?: "
|
|
3641
|
+
status?: "succeeded" | "failed" | "queued" | "running" | "cancelled" | undefined;
|
|
3642
3642
|
limit?: string | undefined;
|
|
3643
3643
|
offset?: string | undefined;
|
|
3644
3644
|
order?: "asc" | "desc" | undefined;
|
|
@@ -3770,7 +3770,7 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
|
|
|
3770
3770
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
3771
3771
|
completedAt: z.ZodOptional<z.ZodString>;
|
|
3772
3772
|
}, "strip", z.ZodTypeAny, {
|
|
3773
|
-
status: "
|
|
3773
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
|
|
3774
3774
|
projectId: string;
|
|
3775
3775
|
id: string;
|
|
3776
3776
|
attempt: number;
|
|
@@ -3823,7 +3823,7 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
|
|
|
3823
3823
|
path?: string | undefined;
|
|
3824
3824
|
}[] | undefined;
|
|
3825
3825
|
}, {
|
|
3826
|
-
status: "
|
|
3826
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
|
|
3827
3827
|
projectId: string;
|
|
3828
3828
|
id: string;
|
|
3829
3829
|
attempt: number;
|
|
@@ -3880,7 +3880,7 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
|
|
|
3880
3880
|
total: z.ZodNumber;
|
|
3881
3881
|
}, "strip", z.ZodTypeAny, {
|
|
3882
3882
|
runs: {
|
|
3883
|
-
status: "
|
|
3883
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
|
|
3884
3884
|
projectId: string;
|
|
3885
3885
|
id: string;
|
|
3886
3886
|
attempt: number;
|
|
@@ -3937,7 +3937,7 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
|
|
|
3937
3937
|
total: number;
|
|
3938
3938
|
}, {
|
|
3939
3939
|
runs: {
|
|
3940
|
-
status: "
|
|
3940
|
+
status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
|
|
3941
3941
|
projectId: string;
|
|
3942
3942
|
id: string;
|
|
3943
3943
|
attempt: number;
|
|
@@ -564,13 +564,13 @@ export declare const AiLimitPolicyStatusSchema: z.ZodObject<{
|
|
|
564
564
|
resetAt: z.ZodString;
|
|
565
565
|
}, "strip", z.ZodTypeAny, {
|
|
566
566
|
kind: "calendarMonth";
|
|
567
|
-
start: string;
|
|
568
567
|
resetAt: string;
|
|
568
|
+
start: string;
|
|
569
569
|
end: string;
|
|
570
570
|
}, {
|
|
571
571
|
kind: "calendarMonth";
|
|
572
|
-
start: string;
|
|
573
572
|
resetAt: string;
|
|
573
|
+
start: string;
|
|
574
574
|
end: string;
|
|
575
575
|
}>;
|
|
576
576
|
consumption: z.ZodObject<{
|
|
@@ -803,8 +803,8 @@ export declare const AiLimitPolicyStatusSchema: z.ZodObject<{
|
|
|
803
803
|
}, "strip", z.ZodTypeAny, {
|
|
804
804
|
period: {
|
|
805
805
|
kind: "calendarMonth";
|
|
806
|
-
start: string;
|
|
807
806
|
resetAt: string;
|
|
807
|
+
start: string;
|
|
808
808
|
end: string;
|
|
809
809
|
};
|
|
810
810
|
policy: {
|
|
@@ -884,8 +884,8 @@ export declare const AiLimitPolicyStatusSchema: z.ZodObject<{
|
|
|
884
884
|
}, {
|
|
885
885
|
period: {
|
|
886
886
|
kind: "calendarMonth";
|
|
887
|
-
start: string;
|
|
888
887
|
resetAt: string;
|
|
888
|
+
start: string;
|
|
889
889
|
end: string;
|
|
890
890
|
};
|
|
891
891
|
policy: {
|
|
@@ -1415,13 +1415,13 @@ export declare const AiLimitPolicyStatusListResponseSchema: z.ZodObject<{
|
|
|
1415
1415
|
resetAt: z.ZodString;
|
|
1416
1416
|
}, "strip", z.ZodTypeAny, {
|
|
1417
1417
|
kind: "calendarMonth";
|
|
1418
|
-
start: string;
|
|
1419
1418
|
resetAt: string;
|
|
1419
|
+
start: string;
|
|
1420
1420
|
end: string;
|
|
1421
1421
|
}, {
|
|
1422
1422
|
kind: "calendarMonth";
|
|
1423
|
-
start: string;
|
|
1424
1423
|
resetAt: string;
|
|
1424
|
+
start: string;
|
|
1425
1425
|
end: string;
|
|
1426
1426
|
}>;
|
|
1427
1427
|
consumption: z.ZodObject<{
|
|
@@ -1654,8 +1654,8 @@ export declare const AiLimitPolicyStatusListResponseSchema: z.ZodObject<{
|
|
|
1654
1654
|
}, "strip", z.ZodTypeAny, {
|
|
1655
1655
|
period: {
|
|
1656
1656
|
kind: "calendarMonth";
|
|
1657
|
-
start: string;
|
|
1658
1657
|
resetAt: string;
|
|
1658
|
+
start: string;
|
|
1659
1659
|
end: string;
|
|
1660
1660
|
};
|
|
1661
1661
|
policy: {
|
|
@@ -1735,8 +1735,8 @@ export declare const AiLimitPolicyStatusListResponseSchema: z.ZodObject<{
|
|
|
1735
1735
|
}, {
|
|
1736
1736
|
period: {
|
|
1737
1737
|
kind: "calendarMonth";
|
|
1738
|
-
start: string;
|
|
1739
1738
|
resetAt: string;
|
|
1739
|
+
start: string;
|
|
1740
1740
|
end: string;
|
|
1741
1741
|
};
|
|
1742
1742
|
policy: {
|
|
@@ -1825,8 +1825,8 @@ export declare const AiLimitPolicyStatusListResponseSchema: z.ZodObject<{
|
|
|
1825
1825
|
items: {
|
|
1826
1826
|
period: {
|
|
1827
1827
|
kind: "calendarMonth";
|
|
1828
|
-
start: string;
|
|
1829
1828
|
resetAt: string;
|
|
1829
|
+
start: string;
|
|
1830
1830
|
end: string;
|
|
1831
1831
|
};
|
|
1832
1832
|
policy: {
|
|
@@ -1911,8 +1911,8 @@ export declare const AiLimitPolicyStatusListResponseSchema: z.ZodObject<{
|
|
|
1911
1911
|
items: {
|
|
1912
1912
|
period: {
|
|
1913
1913
|
kind: "calendarMonth";
|
|
1914
|
-
start: string;
|
|
1915
1914
|
resetAt: string;
|
|
1915
|
+
start: string;
|
|
1916
1916
|
end: string;
|
|
1917
1917
|
};
|
|
1918
1918
|
policy: {
|