@sixb/server 0.1.17 → 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/auth/experience.d.ts +5 -1
- package/dist/auth/experience.d.ts.map +1 -1
- package/dist/files/content.d.ts +0 -1
- package/dist/files/content.d.ts.map +1 -1
- package/dist/index.js +812 -769
- package/dist/index.js.map +32 -31
- 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 +67 -47
- package/dist/routes/agents.d.ts.map +1 -1
- package/dist/routes/auth.d.ts +3 -2
- package/dist/routes/auth.d.ts.map +1 -1
- 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 +9 -6
- package/dist/routes/datasets.d.ts.map +1 -1
- 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/models.d.ts +1 -0
- package/dist/routes/models.d.ts.map +1 -1
- package/dist/routes/objects.d.ts +21 -4
- package/dist/routes/objects.d.ts.map +1 -1
- package/dist/routes/ontology.d.ts +6 -6
- package/dist/routes/pipelines.d.ts +16 -16
- package/dist/routes/project.d.ts +2 -0
- package/dist/routes/project.d.ts.map +1 -1
- 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 +51 -48
- package/dist/routes/workflows.d.ts.map +1 -1
- package/dist/routes/ws/events.d.ts +6 -9
- package/dist/routes/ws/events.d.ts.map +1 -1
- package/dist/routes/ws/subscription-hub.d.ts +5 -0
- package/dist/routes/ws/subscription-hub.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 +242 -143
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/ai-accounting.d.ts +10 -10
- package/dist/schemas/ai-limits.d.ts +10 -10
- package/dist/schemas/auth.d.ts +7 -0
- package/dist/schemas/auth.d.ts.map +1 -1
- package/dist/schemas/common.d.ts +8 -0
- package/dist/schemas/common.d.ts.map +1 -1
- package/dist/schemas/connectors.d.ts +8 -8
- package/dist/schemas/datasets.d.ts +58 -43
- package/dist/schemas/datasets.d.ts.map +1 -1
- package/dist/schemas/event-payloads.d.ts +39 -0
- package/dist/schemas/event-payloads.d.ts.map +1 -1
- package/dist/schemas/events.d.ts +24 -24
- package/dist/schemas/events.d.ts.map +1 -1
- package/dist/schemas/files.d.ts +5 -5
- package/dist/schemas/files.d.ts.map +1 -1
- package/dist/schemas/models.d.ts +10 -0
- package/dist/schemas/models.d.ts.map +1 -1
- package/dist/schemas/objects.d.ts +32 -0
- package/dist/schemas/objects.d.ts.map +1 -1
- package/dist/schemas/ontology.d.ts +40 -40
- package/dist/schemas/pipelines.d.ts +92 -92
- package/dist/schemas/project.d.ts +8 -0
- package/dist/schemas/project.d.ts.map +1 -1
- 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 +177 -160
- package/dist/schemas/workflows.d.ts.map +1 -1
- 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 +6 -5
- package/src/actions/serialize.ts +55 -0
- package/src/auth/experience.ts +20 -2
- package/src/files/content.ts +43 -88
- 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/agents.ts +29 -9
- package/src/routes/auth.ts +84 -19
- package/src/routes/datasets.ts +12 -43
- package/src/routes/files.ts +18 -64
- package/src/routes/models.ts +3 -0
- package/src/routes/objects.ts +12 -2
- package/src/routes/project.ts +2 -1
- package/src/routes/workflows.ts +5 -0
- package/src/routes/ws/events.ts +7 -15
- package/src/routes/ws/subscription-hub.ts +20 -5
- package/src/schemas/actions.ts +21 -18
- package/src/schemas/agents.ts +28 -3
- package/src/schemas/auth.ts +5 -0
- package/src/schemas/common.ts +3 -0
- package/src/schemas/datasets.ts +23 -1
- package/src/schemas/event-payloads.ts +3 -1
- package/src/schemas/files.ts +7 -1
- package/src/schemas/models.ts +2 -0
- package/src/schemas/objects.ts +13 -0
- package/src/schemas/project.ts +4 -0
- package/src/server.ts +23 -4
- 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"}
|