@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.
Files changed (110) hide show
  1. package/README.md +3 -3
  2. package/dist/actions/serialize.d.ts +7 -0
  3. package/dist/actions/serialize.d.ts.map +1 -0
  4. package/dist/auth/experience.d.ts +5 -1
  5. package/dist/auth/experience.d.ts.map +1 -1
  6. package/dist/files/content.d.ts +0 -1
  7. package/dist/files/content.d.ts.map +1 -1
  8. package/dist/index.js +812 -769
  9. package/dist/index.js.map +32 -31
  10. package/dist/routes/action-runs.d.ts +11 -13
  11. package/dist/routes/action-runs.d.ts.map +1 -1
  12. package/dist/routes/actions.d.ts +44 -13
  13. package/dist/routes/actions.d.ts.map +1 -1
  14. package/dist/routes/agent-api-gateway.d.ts.map +1 -1
  15. package/dist/routes/agents.d.ts +67 -47
  16. package/dist/routes/agents.d.ts.map +1 -1
  17. package/dist/routes/auth.d.ts +3 -2
  18. package/dist/routes/auth.d.ts.map +1 -1
  19. package/dist/routes/connector-connection-runs.d.ts +21 -21
  20. package/dist/routes/connector-connections.d.ts +8 -8
  21. package/dist/routes/connectors.d.ts +2 -2
  22. package/dist/routes/datasets.d.ts +9 -6
  23. package/dist/routes/datasets.d.ts.map +1 -1
  24. package/dist/routes/events.d.ts +4 -4
  25. package/dist/routes/files.d.ts +15 -12
  26. package/dist/routes/files.d.ts.map +1 -1
  27. package/dist/routes/models.d.ts +1 -0
  28. package/dist/routes/models.d.ts.map +1 -1
  29. package/dist/routes/objects.d.ts +21 -4
  30. package/dist/routes/objects.d.ts.map +1 -1
  31. package/dist/routes/ontology.d.ts +6 -6
  32. package/dist/routes/pipelines.d.ts +16 -16
  33. package/dist/routes/project.d.ts +2 -0
  34. package/dist/routes/project.d.ts.map +1 -1
  35. package/dist/routes/projections.d.ts +49 -49
  36. package/dist/routes/syncs.d.ts +10 -10
  37. package/dist/routes/webhook-runs.d.ts +2 -2
  38. package/dist/routes/workflows.d.ts +51 -48
  39. package/dist/routes/workflows.d.ts.map +1 -1
  40. package/dist/routes/ws/events.d.ts +6 -9
  41. package/dist/routes/ws/events.d.ts.map +1 -1
  42. package/dist/routes/ws/subscription-hub.d.ts +5 -0
  43. package/dist/routes/ws/subscription-hub.d.ts.map +1 -1
  44. package/dist/schemas/actions.d.ts +100 -84
  45. package/dist/schemas/actions.d.ts.map +1 -1
  46. package/dist/schemas/agents.d.ts +242 -143
  47. package/dist/schemas/agents.d.ts.map +1 -1
  48. package/dist/schemas/ai-accounting.d.ts +10 -10
  49. package/dist/schemas/ai-limits.d.ts +10 -10
  50. package/dist/schemas/auth.d.ts +7 -0
  51. package/dist/schemas/auth.d.ts.map +1 -1
  52. package/dist/schemas/common.d.ts +8 -0
  53. package/dist/schemas/common.d.ts.map +1 -1
  54. package/dist/schemas/connectors.d.ts +8 -8
  55. package/dist/schemas/datasets.d.ts +58 -43
  56. package/dist/schemas/datasets.d.ts.map +1 -1
  57. package/dist/schemas/event-payloads.d.ts +39 -0
  58. package/dist/schemas/event-payloads.d.ts.map +1 -1
  59. package/dist/schemas/events.d.ts +24 -24
  60. package/dist/schemas/events.d.ts.map +1 -1
  61. package/dist/schemas/files.d.ts +5 -5
  62. package/dist/schemas/files.d.ts.map +1 -1
  63. package/dist/schemas/models.d.ts +10 -0
  64. package/dist/schemas/models.d.ts.map +1 -1
  65. package/dist/schemas/objects.d.ts +32 -0
  66. package/dist/schemas/objects.d.ts.map +1 -1
  67. package/dist/schemas/ontology.d.ts +40 -40
  68. package/dist/schemas/pipelines.d.ts +92 -92
  69. package/dist/schemas/project.d.ts +8 -0
  70. package/dist/schemas/project.d.ts.map +1 -1
  71. package/dist/schemas/projections.d.ts +290 -290
  72. package/dist/schemas/syncs.d.ts +34 -34
  73. package/dist/schemas/webhook-runs.d.ts +8 -8
  74. package/dist/schemas/workflows.d.ts +177 -160
  75. package/dist/schemas/workflows.d.ts.map +1 -1
  76. package/dist/server.d.ts +1 -0
  77. package/dist/server.d.ts.map +1 -1
  78. package/dist/utils/http.d.ts.map +1 -1
  79. package/dist/utils/request-body.d.ts +20 -6
  80. package/dist/utils/request-body.d.ts.map +1 -1
  81. package/package.json +6 -5
  82. package/src/actions/serialize.ts +55 -0
  83. package/src/auth/experience.ts +20 -2
  84. package/src/files/content.ts +43 -88
  85. package/src/routes/action-runs.ts +1 -54
  86. package/src/routes/actions.ts +26 -8
  87. package/src/routes/agent-api-gateway.ts +18 -42
  88. package/src/routes/agents.ts +29 -9
  89. package/src/routes/auth.ts +84 -19
  90. package/src/routes/datasets.ts +12 -43
  91. package/src/routes/files.ts +18 -64
  92. package/src/routes/models.ts +3 -0
  93. package/src/routes/objects.ts +12 -2
  94. package/src/routes/project.ts +2 -1
  95. package/src/routes/workflows.ts +5 -0
  96. package/src/routes/ws/events.ts +7 -15
  97. package/src/routes/ws/subscription-hub.ts +20 -5
  98. package/src/schemas/actions.ts +21 -18
  99. package/src/schemas/agents.ts +28 -3
  100. package/src/schemas/auth.ts +5 -0
  101. package/src/schemas/common.ts +3 -0
  102. package/src/schemas/datasets.ts +23 -1
  103. package/src/schemas/event-payloads.ts +3 -1
  104. package/src/schemas/files.ts +7 -1
  105. package/src/schemas/models.ts +2 -0
  106. package/src/schemas/objects.ts +13 -0
  107. package/src/schemas/project.ts +4 -0
  108. package/src/server.ts +23 -4
  109. package/src/utils/http.ts +2 -0
  110. 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
- export declare const RequestActionResponseSchema: z.ZodObject<{
80
- runId: z.ZodString;
81
- queuedAt: z.ZodString;
82
- jobId: z.ZodOptional<z.ZodString>;
83
- created: z.ZodBoolean;
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
- runId: string;
86
- queuedAt: string;
87
- created: boolean;
88
- jobId?: string | undefined;
85
+ error: string;
86
+ code: "action.run_in_progress";
89
87
  }, {
90
- runId: string;
91
- queuedAt: string;
92
- created: boolean;
93
- jobId?: string | undefined;
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
- export declare const ActionRunStatusSchema: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
275
- export declare const ActionRunPhaseSchema: z.ZodEnum<["request", "enqueue", "validation", "writeback", "edits", "commit", "effects", "cancelled"]>;
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<["queued", "running", "succeeded", "failed", "cancelled"]>>;
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?: "queued" | "running" | "succeeded" | "failed" | "cancelled" | undefined;
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?: "queued" | "running" | "succeeded" | "failed" | "cancelled" | undefined;
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<["queued", "running", "succeeded", "failed", "cancelled"]>;
332
- phase: z.ZodOptional<z.ZodEnum<["request", "enqueue", "validation", "writeback", "edits", "commit", "effects", "cancelled"]>>;
333
- queuedAt: z.ZodString;
334
- startedAt: z.ZodOptional<z.ZodString>;
335
- finishedAt: z.ZodOptional<z.ZodString>;
336
- error: z.ZodOptional<z.ZodType<ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit">, z.ZodTypeDef, ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit">>>;
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: "queued" | "running" | "succeeded" | "failed" | "cancelled";
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
- queuedAt: string;
350
- error?: ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit"> | undefined;
351
- phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
352
- startedAt?: string | undefined;
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: "queued" | "running" | "succeeded" | "failed" | "cancelled";
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
- queuedAt: string;
367
- error?: ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit"> | undefined;
368
- phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
369
- startedAt?: string | undefined;
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<["queued", "running", "succeeded", "failed", "cancelled"]>;
396
- phase: z.ZodOptional<z.ZodEnum<["request", "enqueue", "validation", "writeback", "edits", "commit", "effects", "cancelled"]>>;
397
- queuedAt: z.ZodString;
398
- startedAt: z.ZodOptional<z.ZodString>;
399
- finishedAt: z.ZodOptional<z.ZodString>;
400
- error: z.ZodOptional<z.ZodType<ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit">, z.ZodTypeDef, ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit">>>;
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: "queued" | "running" | "succeeded" | "failed" | "cancelled";
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
- queuedAt: string;
464
- error?: ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit"> | undefined;
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: "queued" | "running" | "succeeded" | "failed" | "cancelled";
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
- queuedAt: string;
499
- error?: ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit"> | undefined;
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<["queued", "running", "succeeded", "failed", "cancelled"]>;
546
- phase: z.ZodOptional<z.ZodEnum<["request", "enqueue", "validation", "writeback", "edits", "commit", "effects", "cancelled"]>>;
547
- queuedAt: z.ZodString;
548
- startedAt: z.ZodOptional<z.ZodString>;
549
- finishedAt: z.ZodOptional<z.ZodString>;
550
- error: z.ZodOptional<z.ZodType<ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit">, z.ZodTypeDef, ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit">>>;
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: "queued" | "running" | "succeeded" | "failed" | "cancelled";
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
- queuedAt: string;
564
- error?: ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit"> | undefined;
565
- phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
566
- startedAt?: string | undefined;
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: "queued" | "running" | "succeeded" | "failed" | "cancelled";
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
- queuedAt: string;
581
- error?: ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit"> | undefined;
582
- phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
583
- startedAt?: string | undefined;
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: "queued" | "running" | "succeeded" | "failed" | "cancelled";
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
- queuedAt: string;
602
- error?: ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit"> | undefined;
603
- phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
604
- startedAt?: string | undefined;
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: "queued" | "running" | "succeeded" | "failed" | "cancelled";
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
- queuedAt: string;
623
- error?: ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit"> | undefined;
624
- phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
625
- startedAt?: string | undefined;
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":"AAAA,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,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;EAKtC,CAA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