@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.
Files changed (57) 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/index.js +660 -685
  5. package/dist/index.js.map +14 -13
  6. package/dist/routes/action-runs.d.ts +11 -13
  7. package/dist/routes/action-runs.d.ts.map +1 -1
  8. package/dist/routes/actions.d.ts +44 -13
  9. package/dist/routes/actions.d.ts.map +1 -1
  10. package/dist/routes/agent-api-gateway.d.ts.map +1 -1
  11. package/dist/routes/agents.d.ts +20 -20
  12. package/dist/routes/connector-connection-runs.d.ts +21 -21
  13. package/dist/routes/connector-connections.d.ts +8 -8
  14. package/dist/routes/connectors.d.ts +2 -2
  15. package/dist/routes/datasets.d.ts +5 -5
  16. package/dist/routes/events.d.ts +4 -4
  17. package/dist/routes/files.d.ts +15 -12
  18. package/dist/routes/files.d.ts.map +1 -1
  19. package/dist/routes/ontology.d.ts +6 -6
  20. package/dist/routes/pipelines.d.ts +16 -16
  21. package/dist/routes/projections.d.ts +49 -49
  22. package/dist/routes/syncs.d.ts +10 -10
  23. package/dist/routes/webhook-runs.d.ts +2 -2
  24. package/dist/routes/workflows.d.ts +48 -48
  25. package/dist/routes/ws/events.d.ts +6 -9
  26. package/dist/routes/ws/events.d.ts.map +1 -1
  27. package/dist/schemas/actions.d.ts +100 -84
  28. package/dist/schemas/actions.d.ts.map +1 -1
  29. package/dist/schemas/agents.d.ts +20 -20
  30. package/dist/schemas/ai-limits.d.ts +10 -10
  31. package/dist/schemas/connectors.d.ts +8 -8
  32. package/dist/schemas/datasets.d.ts +40 -40
  33. package/dist/schemas/events.d.ts +24 -24
  34. package/dist/schemas/events.d.ts.map +1 -1
  35. package/dist/schemas/files.d.ts +4 -4
  36. package/dist/schemas/ontology.d.ts +40 -40
  37. package/dist/schemas/pipelines.d.ts +92 -92
  38. package/dist/schemas/projections.d.ts +290 -290
  39. package/dist/schemas/syncs.d.ts +34 -34
  40. package/dist/schemas/webhook-runs.d.ts +8 -8
  41. package/dist/schemas/workflows.d.ts +160 -160
  42. package/dist/server.d.ts +1 -0
  43. package/dist/server.d.ts.map +1 -1
  44. package/dist/utils/http.d.ts.map +1 -1
  45. package/dist/utils/request-body.d.ts +20 -6
  46. package/dist/utils/request-body.d.ts.map +1 -1
  47. package/package.json +5 -5
  48. package/src/actions/serialize.ts +55 -0
  49. package/src/routes/action-runs.ts +1 -54
  50. package/src/routes/actions.ts +26 -8
  51. package/src/routes/agent-api-gateway.ts +18 -42
  52. package/src/routes/files.ts +15 -63
  53. package/src/routes/ws/events.ts +2 -12
  54. package/src/schemas/actions.ts +21 -18
  55. package/src/server.ts +21 -3
  56. package/src/utils/http.ts +2 -0
  57. package/src/utils/request-body.ts +55 -6
@@ -39,8 +39,8 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
39
39
  input: Record<string, import("../schemas/common").JsonValue>;
40
40
  } | {
41
41
  id: string;
42
- type: "action";
43
42
  params: Record<string, import("../schemas/common").JsonValue>;
43
+ type: "action";
44
44
  key: string;
45
45
  objectTypeId?: string | undefined;
46
46
  } | {
@@ -58,7 +58,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
58
58
  input: Record<string, import("../schemas/common").JsonValue>;
59
59
  })[];
60
60
  latestRun: {
61
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
61
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
62
62
  projectId: string;
63
63
  id: string;
64
64
  startedAt: string;
@@ -68,8 +68,8 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
68
68
  type: "user" | "serviceAccount" | "system";
69
69
  };
70
70
  error?: import("@sixb/core").SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
71
- queuedAt?: string | undefined;
72
71
  finishedAt?: string | undefined;
72
+ queuedAt?: string | undefined;
73
73
  } | null;
74
74
  }[];
75
75
  422: {
@@ -112,8 +112,8 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
112
112
  input: Record<string, import("../schemas/common").JsonValue>;
113
113
  } | {
114
114
  id: string;
115
- type: "action";
116
115
  params: Record<string, import("../schemas/common").JsonValue>;
116
+ type: "action";
117
117
  key: string;
118
118
  objectTypeId?: string | undefined;
119
119
  } | {
@@ -131,7 +131,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
131
131
  input: Record<string, import("../schemas/common").JsonValue>;
132
132
  })[];
133
133
  latestRun: {
134
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
134
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
135
135
  projectId: string;
136
136
  id: string;
137
137
  startedAt: string;
@@ -141,8 +141,8 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
141
141
  type: "user" | "serviceAccount" | "system";
142
142
  };
143
143
  error?: import("@sixb/core").SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
144
- queuedAt?: string | undefined;
145
144
  finishedAt?: string | undefined;
145
+ queuedAt?: string | undefined;
146
146
  } | null;
147
147
  };
148
148
  404: {
@@ -169,16 +169,16 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
169
169
  body: unknown;
170
170
  params: {};
171
171
  query: {
172
- status?: "cancelled" | "expired" | "pending" | "submitted" | undefined;
172
+ status?: "expired" | "pending" | "cancelled" | "submitted" | undefined;
173
173
  limit?: string | undefined;
174
174
  offset?: string | undefined;
175
175
  order?: "asc" | "desc" | undefined;
176
176
  workflowId?: string | undefined;
177
177
  workflowRunId?: string | undefined;
178
178
  nodeRunId?: string | undefined;
179
- interventionId?: string | undefined;
180
179
  nodeId?: string | undefined;
181
180
  nodeKey?: string | undefined;
181
+ interventionId?: string | undefined;
182
182
  requestedAfter?: string | undefined;
183
183
  requestedBefore?: string | undefined;
184
184
  };
@@ -188,22 +188,23 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
188
188
  hasMore: boolean;
189
189
  total: number;
190
190
  interventions: {
191
- status: "cancelled" | "expired" | "pending" | "submitted";
191
+ status: "expired" | "pending" | "cancelled" | "submitted";
192
192
  projectId: string;
193
193
  id: string;
194
194
  input: Record<string, import("../schemas/common").JsonValue>;
195
195
  workflowId: string;
196
196
  workflowRunId: string;
197
197
  nodeRunId: string;
198
- interventionId: string;
198
+ nodeIndex: number;
199
199
  nodeId: string;
200
200
  nodeKey: string;
201
- nodeIndex: number;
201
+ interventionId: string;
202
202
  defaultResponse: Record<string, import("../schemas/common").JsonValue>;
203
203
  requestedAt: string;
204
204
  response?: Record<string, import("../schemas/common").JsonValue> | undefined;
205
205
  expiresAt?: string | undefined;
206
206
  submittedAt?: string | undefined;
207
+ expiredAt?: string | undefined;
207
208
  submittedBy?: {
208
209
  id: string;
209
210
  type: "user" | "serviceAccount" | "system";
@@ -213,7 +214,6 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
213
214
  id: string;
214
215
  type: "user" | "serviceAccount" | "system";
215
216
  } | undefined;
216
- expiredAt?: string | undefined;
217
217
  }[];
218
218
  };
219
219
  400: {
@@ -248,22 +248,23 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
248
248
  headers: unknown;
249
249
  response: {
250
250
  200: {
251
- status: "cancelled" | "expired" | "pending" | "submitted";
251
+ status: "expired" | "pending" | "cancelled" | "submitted";
252
252
  projectId: string;
253
253
  id: string;
254
254
  input: Record<string, import("../schemas/common").JsonValue>;
255
255
  workflowId: string;
256
256
  workflowRunId: string;
257
257
  nodeRunId: string;
258
- interventionId: string;
258
+ nodeIndex: number;
259
259
  nodeId: string;
260
260
  nodeKey: string;
261
- nodeIndex: number;
261
+ interventionId: string;
262
262
  defaultResponse: Record<string, import("../schemas/common").JsonValue>;
263
263
  requestedAt: string;
264
264
  response?: Record<string, import("../schemas/common").JsonValue> | undefined;
265
265
  expiresAt?: string | undefined;
266
266
  submittedAt?: string | undefined;
267
+ expiredAt?: string | undefined;
267
268
  submittedBy?: {
268
269
  id: string;
269
270
  type: "user" | "serviceAccount" | "system";
@@ -273,7 +274,6 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
273
274
  id: string;
274
275
  type: "user" | "serviceAccount" | "system";
275
276
  } | undefined;
276
- expiredAt?: string | undefined;
277
277
  };
278
278
  404: {
279
279
  error: string;
@@ -318,22 +318,23 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
318
318
  } | {
319
319
  jobId: string;
320
320
  intervention: {
321
- status: "cancelled" | "expired" | "pending" | "submitted";
321
+ status: "expired" | "pending" | "cancelled" | "submitted";
322
322
  projectId: string;
323
323
  id: string;
324
324
  input: Record<string, import("../schemas/common").JsonValue>;
325
325
  workflowId: string;
326
326
  workflowRunId: string;
327
327
  nodeRunId: string;
328
- interventionId: string;
328
+ nodeIndex: number;
329
329
  nodeId: string;
330
330
  nodeKey: string;
331
- nodeIndex: number;
331
+ interventionId: string;
332
332
  defaultResponse: Record<string, import("../schemas/common").JsonValue>;
333
333
  requestedAt: string;
334
334
  response?: Record<string, import("../schemas/common").JsonValue> | undefined;
335
335
  expiresAt?: string | undefined;
336
336
  submittedAt?: string | undefined;
337
+ expiredAt?: string | undefined;
337
338
  submittedBy?: {
338
339
  id: string;
339
340
  type: "user" | "serviceAccount" | "system";
@@ -343,7 +344,6 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
343
344
  id: string;
344
345
  type: "user" | "serviceAccount" | "system";
345
346
  } | undefined;
346
- expiredAt?: string | undefined;
347
347
  };
348
348
  };
349
349
  404: {
@@ -358,22 +358,23 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
358
358
  202: {
359
359
  jobId: string;
360
360
  intervention: {
361
- status: "cancelled" | "expired" | "pending" | "submitted";
361
+ status: "expired" | "pending" | "cancelled" | "submitted";
362
362
  projectId: string;
363
363
  id: string;
364
364
  input: Record<string, import("../schemas/common").JsonValue>;
365
365
  workflowId: string;
366
366
  workflowRunId: string;
367
367
  nodeRunId: string;
368
- interventionId: string;
368
+ nodeIndex: number;
369
369
  nodeId: string;
370
370
  nodeKey: string;
371
- nodeIndex: number;
371
+ interventionId: string;
372
372
  defaultResponse: Record<string, import("../schemas/common").JsonValue>;
373
373
  requestedAt: string;
374
374
  response?: Record<string, import("../schemas/common").JsonValue> | undefined;
375
375
  expiresAt?: string | undefined;
376
376
  submittedAt?: string | undefined;
377
+ expiredAt?: string | undefined;
377
378
  submittedBy?: {
378
379
  id: string;
379
380
  type: "user" | "serviceAccount" | "system";
@@ -383,7 +384,6 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
383
384
  id: string;
384
385
  type: "user" | "serviceAccount" | "system";
385
386
  } | undefined;
386
- expiredAt?: string | undefined;
387
387
  };
388
388
  };
389
389
  422: {
@@ -416,22 +416,23 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
416
416
  response: {
417
417
  200: {
418
418
  intervention: {
419
- status: "cancelled" | "expired" | "pending" | "submitted";
419
+ status: "expired" | "pending" | "cancelled" | "submitted";
420
420
  projectId: string;
421
421
  id: string;
422
422
  input: Record<string, import("../schemas/common").JsonValue>;
423
423
  workflowId: string;
424
424
  workflowRunId: string;
425
425
  nodeRunId: string;
426
- interventionId: string;
426
+ nodeIndex: number;
427
427
  nodeId: string;
428
428
  nodeKey: string;
429
- nodeIndex: number;
429
+ interventionId: string;
430
430
  defaultResponse: Record<string, import("../schemas/common").JsonValue>;
431
431
  requestedAt: string;
432
432
  response?: Record<string, import("../schemas/common").JsonValue> | undefined;
433
433
  expiresAt?: string | undefined;
434
434
  submittedAt?: string | undefined;
435
+ expiredAt?: string | undefined;
435
436
  submittedBy?: {
436
437
  id: string;
437
438
  type: "user" | "serviceAccount" | "system";
@@ -441,7 +442,6 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
441
442
  id: string;
442
443
  type: "user" | "serviceAccount" | "system";
443
444
  } | undefined;
444
- expiredAt?: string | undefined;
445
445
  };
446
446
  };
447
447
  404: {
@@ -475,7 +475,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
475
475
  body: unknown;
476
476
  params: {};
477
477
  query: {
478
- status?: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting" | undefined;
478
+ status?: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting" | undefined;
479
479
  startedAfter?: string | undefined;
480
480
  startedBefore?: string | undefined;
481
481
  limit?: string | undefined;
@@ -487,7 +487,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
487
487
  response: {
488
488
  200: {
489
489
  runs: {
490
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
490
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
491
491
  projectId: string;
492
492
  id: string;
493
493
  startedAt: string;
@@ -497,8 +497,8 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
497
497
  type: "user" | "serviceAccount" | "system";
498
498
  };
499
499
  error?: import("@sixb/core").SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
500
- queuedAt?: string | undefined;
501
500
  finishedAt?: string | undefined;
501
+ queuedAt?: string | undefined;
502
502
  }[];
503
503
  hasMore: boolean;
504
504
  total: number;
@@ -536,7 +536,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
536
536
  response: {
537
537
  200: {
538
538
  run: {
539
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
539
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
540
540
  projectId: string;
541
541
  id: string;
542
542
  startedAt: string;
@@ -547,25 +547,25 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
547
547
  type: "user" | "serviceAccount" | "system";
548
548
  };
549
549
  error?: import("@sixb/core").SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
550
- queuedAt?: string | undefined;
551
550
  finishedAt?: string | undefined;
552
551
  output?: Record<string, import("../schemas/common").JsonValue> | undefined;
552
+ queuedAt?: string | undefined;
553
553
  };
554
554
  nodes: {
555
- status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
555
+ status: "succeeded" | "failed" | "running" | "cancelled" | "waiting";
556
556
  projectId: string;
557
557
  id: string;
558
558
  startedAt: string;
559
559
  input: Record<string, import("../schemas/common").JsonValue>;
560
560
  workflowId: string;
561
561
  workflowRunId: string;
562
- nodeId: string;
563
- nodeKey: string;
564
562
  nodeIndex: number;
565
563
  nodeType: "agent" | "action" | "step" | "intervention";
564
+ nodeId: string;
565
+ nodeKey: string;
566
566
  error?: import("@sixb/core").SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
567
567
  agentExecution?: {
568
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
568
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
569
569
  attempt: number;
570
570
  modelId?: string | undefined;
571
571
  startedAt?: string | undefined;
@@ -637,7 +637,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
637
637
  headers: unknown;
638
638
  response: {
639
639
  200: {
640
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
640
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
641
641
  attempt: number;
642
642
  nodeRunId: string;
643
643
  createdAt: string;
@@ -777,7 +777,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
777
777
  response: {
778
778
  200: {
779
779
  run: {
780
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
780
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
781
781
  projectId: string;
782
782
  id: string;
783
783
  startedAt: string;
@@ -788,25 +788,25 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
788
788
  type: "user" | "serviceAccount" | "system";
789
789
  };
790
790
  error?: import("@sixb/core").SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
791
- queuedAt?: string | undefined;
792
791
  finishedAt?: string | undefined;
793
792
  output?: Record<string, import("../schemas/common").JsonValue> | undefined;
793
+ queuedAt?: string | undefined;
794
794
  };
795
795
  nodes: {
796
- status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
796
+ status: "succeeded" | "failed" | "running" | "cancelled" | "waiting";
797
797
  projectId: string;
798
798
  id: string;
799
799
  startedAt: string;
800
800
  input: Record<string, import("../schemas/common").JsonValue>;
801
801
  workflowId: string;
802
802
  workflowRunId: string;
803
- nodeId: string;
804
- nodeKey: string;
805
803
  nodeIndex: number;
806
804
  nodeType: "agent" | "action" | "step" | "intervention";
805
+ nodeId: string;
806
+ nodeKey: string;
807
807
  error?: import("@sixb/core").SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
808
808
  agentExecution?: {
809
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
809
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
810
810
  attempt: number;
811
811
  modelId?: string | undefined;
812
812
  startedAt?: string | undefined;
@@ -1043,9 +1043,9 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
1043
1043
  error: string;
1044
1044
  } | {
1045
1045
  runId: string;
1046
- queuedAt: string;
1047
- jobId: string;
1048
1046
  workflowId: string;
1047
+ jobId: string;
1048
+ queuedAt: string;
1049
1049
  };
1050
1050
  404: {
1051
1051
  error: string;
@@ -1061,9 +1061,9 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
1061
1061
  };
1062
1062
  202: {
1063
1063
  runId: string;
1064
- queuedAt: string;
1065
- jobId: string;
1066
1064
  workflowId: string;
1065
+ jobId: string;
1066
+ queuedAt: string;
1067
1067
  };
1068
1068
  422: {
1069
1069
  type: "validation";
@@ -3,33 +3,30 @@ import { z } from "zod";
3
3
  import type { SixbServer } from "../../server";
4
4
  declare const SubscriptionMessageSchema: z.ZodUnion<[z.ZodObject<{
5
5
  type: z.ZodLiteral<"subscribe">;
6
- topic: z.ZodOptional<z.ZodEnum<["datasets" | "syncs" | "pipelines" | "workflows" | "rules" | "objects" | "actions" | "links" | "telemetry" | "schedules", ...("datasets" | "syncs" | "pipelines" | "workflows" | "rules" | "objects" | "actions" | "links" | "telemetry" | "schedules")[]]>>;
7
- types: z.ZodOptional<z.ZodArray<z.ZodEnum<["object.created" | "object.updated" | "object.deleted" | "link.created" | "link.updated" | "link.deleted" | "telemetry.appended" | "action.requested" | "action.completed" | "action.failed" | "schedule.triggered" | "rule.triggered" | "rule.resolved" | "sync.run.started" | "sync.run.finished" | "pipeline.run.started" | "pipeline.run.step.started" | "pipeline.run.step.finished" | "pipeline.run.finished" | "workflow.run.queued" | "workflow.run.started" | "workflow.run.node.started" | "workflow.run.waiting" | "workflow.run.node.waiting" | "workflow.run.node.finished" | "workflow.run.finished" | "workflow.intervention.requested" | "workflow.intervention.submitted" | "workflow.intervention.cancelled" | "workflow.intervention.expired" | "dataset.version.committed", ...("object.created" | "object.updated" | "object.deleted" | "link.created" | "link.updated" | "link.deleted" | "telemetry.appended" | "action.requested" | "action.completed" | "action.failed" | "schedule.triggered" | "rule.triggered" | "rule.resolved" | "sync.run.started" | "sync.run.finished" | "pipeline.run.started" | "pipeline.run.step.started" | "pipeline.run.step.finished" | "pipeline.run.finished" | "workflow.run.queued" | "workflow.run.started" | "workflow.run.node.started" | "workflow.run.waiting" | "workflow.run.node.waiting" | "workflow.run.node.finished" | "workflow.run.finished" | "workflow.intervention.requested" | "workflow.intervention.submitted" | "workflow.intervention.cancelled" | "workflow.intervention.expired" | "dataset.version.committed")[]]>, "many">>;
6
+ topic: z.ZodOptional<z.ZodEnum<["datasets" | "syncs" | "pipelines" | "workflows" | "rules" | "objects" | "links" | "telemetry" | "schedules", ...("datasets" | "syncs" | "pipelines" | "workflows" | "rules" | "objects" | "links" | "telemetry" | "schedules")[]]>>;
7
+ types: z.ZodOptional<z.ZodArray<z.ZodEnum<["object.created" | "object.updated" | "object.deleted" | "link.created" | "link.updated" | "link.deleted" | "telemetry.appended" | "schedule.triggered" | "rule.triggered" | "rule.resolved" | "sync.run.started" | "sync.run.finished" | "pipeline.run.started" | "pipeline.run.step.started" | "pipeline.run.step.finished" | "pipeline.run.finished" | "workflow.run.queued" | "workflow.run.started" | "workflow.run.node.started" | "workflow.run.waiting" | "workflow.run.node.waiting" | "workflow.run.node.finished" | "workflow.run.finished" | "workflow.intervention.requested" | "workflow.intervention.submitted" | "workflow.intervention.cancelled" | "workflow.intervention.expired" | "dataset.version.committed", ...("object.created" | "object.updated" | "object.deleted" | "link.created" | "link.updated" | "link.deleted" | "telemetry.appended" | "schedule.triggered" | "rule.triggered" | "rule.resolved" | "sync.run.started" | "sync.run.finished" | "pipeline.run.started" | "pipeline.run.step.started" | "pipeline.run.step.finished" | "pipeline.run.finished" | "workflow.run.queued" | "workflow.run.started" | "workflow.run.node.started" | "workflow.run.waiting" | "workflow.run.node.waiting" | "workflow.run.node.finished" | "workflow.run.finished" | "workflow.intervention.requested" | "workflow.intervention.submitted" | "workflow.intervention.cancelled" | "workflow.intervention.expired" | "dataset.version.committed")[]]>, "many">>;
8
8
  objectTypeId: z.ZodOptional<z.ZodString>;
9
9
  primaryId: z.ZodOptional<z.ZodString>;
10
- actionId: z.ZodOptional<z.ZodString>;
11
10
  runId: z.ZodOptional<z.ZodString>;
12
11
  afterCursor: z.ZodOptional<z.ZodString>;
13
12
  limit: z.ZodOptional<z.ZodNumber>;
14
13
  }, "strip", z.ZodTypeAny, {
15
14
  type: "subscribe";
16
15
  objectTypeId?: string | undefined;
17
- actionId?: string | undefined;
18
16
  runId?: string | undefined;
19
17
  primaryId?: string | undefined;
20
18
  limit?: number | undefined;
21
- types?: ("object.created" | "object.updated" | "object.deleted" | "link.created" | "link.updated" | "link.deleted" | "telemetry.appended" | "action.requested" | "action.completed" | "action.failed" | "schedule.triggered" | "rule.triggered" | "rule.resolved" | "sync.run.started" | "sync.run.finished" | "pipeline.run.started" | "pipeline.run.step.started" | "pipeline.run.step.finished" | "pipeline.run.finished" | "workflow.run.queued" | "workflow.run.started" | "workflow.run.node.started" | "workflow.run.waiting" | "workflow.run.node.waiting" | "workflow.run.node.finished" | "workflow.run.finished" | "workflow.intervention.requested" | "workflow.intervention.submitted" | "workflow.intervention.cancelled" | "workflow.intervention.expired" | "dataset.version.committed")[] | undefined;
22
- topic?: "datasets" | "syncs" | "pipelines" | "workflows" | "rules" | "objects" | "actions" | "links" | "telemetry" | "schedules" | undefined;
19
+ types?: ("object.created" | "object.updated" | "object.deleted" | "link.created" | "link.updated" | "link.deleted" | "telemetry.appended" | "schedule.triggered" | "rule.triggered" | "rule.resolved" | "sync.run.started" | "sync.run.finished" | "pipeline.run.started" | "pipeline.run.step.started" | "pipeline.run.step.finished" | "pipeline.run.finished" | "workflow.run.queued" | "workflow.run.started" | "workflow.run.node.started" | "workflow.run.waiting" | "workflow.run.node.waiting" | "workflow.run.node.finished" | "workflow.run.finished" | "workflow.intervention.requested" | "workflow.intervention.submitted" | "workflow.intervention.cancelled" | "workflow.intervention.expired" | "dataset.version.committed")[] | undefined;
20
+ topic?: "datasets" | "syncs" | "pipelines" | "workflows" | "rules" | "objects" | "links" | "telemetry" | "schedules" | undefined;
23
21
  afterCursor?: string | undefined;
24
22
  }, {
25
23
  type: "subscribe";
26
24
  objectTypeId?: string | undefined;
27
- actionId?: string | undefined;
28
25
  runId?: string | undefined;
29
26
  primaryId?: string | undefined;
30
27
  limit?: number | undefined;
31
- types?: ("object.created" | "object.updated" | "object.deleted" | "link.created" | "link.updated" | "link.deleted" | "telemetry.appended" | "action.requested" | "action.completed" | "action.failed" | "schedule.triggered" | "rule.triggered" | "rule.resolved" | "sync.run.started" | "sync.run.finished" | "pipeline.run.started" | "pipeline.run.step.started" | "pipeline.run.step.finished" | "pipeline.run.finished" | "workflow.run.queued" | "workflow.run.started" | "workflow.run.node.started" | "workflow.run.waiting" | "workflow.run.node.waiting" | "workflow.run.node.finished" | "workflow.run.finished" | "workflow.intervention.requested" | "workflow.intervention.submitted" | "workflow.intervention.cancelled" | "workflow.intervention.expired" | "dataset.version.committed")[] | undefined;
32
- topic?: "datasets" | "syncs" | "pipelines" | "workflows" | "rules" | "objects" | "actions" | "links" | "telemetry" | "schedules" | undefined;
28
+ types?: ("object.created" | "object.updated" | "object.deleted" | "link.created" | "link.updated" | "link.deleted" | "telemetry.appended" | "schedule.triggered" | "rule.triggered" | "rule.resolved" | "sync.run.started" | "sync.run.finished" | "pipeline.run.started" | "pipeline.run.step.started" | "pipeline.run.step.finished" | "pipeline.run.finished" | "workflow.run.queued" | "workflow.run.started" | "workflow.run.node.started" | "workflow.run.waiting" | "workflow.run.node.waiting" | "workflow.run.node.finished" | "workflow.run.finished" | "workflow.intervention.requested" | "workflow.intervention.submitted" | "workflow.intervention.cancelled" | "workflow.intervention.expired" | "dataset.version.committed")[] | undefined;
29
+ topic?: "datasets" | "syncs" | "pipelines" | "workflows" | "rules" | "objects" | "links" | "telemetry" | "schedules" | undefined;
33
30
  afterCursor?: string | undefined;
34
31
  }>, z.ZodObject<{
35
32
  type: z.ZodLiteral<"unsubscribe">;
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/routes/ws/events.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AA6B9C,QAAA,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAgD,CAAA;AAE/E,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,OAAO,GACrD;IACE,EAAE,EAAE,IAAI,CAAA;IACR,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA;CAChD,GACD;IACE,EAAE,EAAE,KAAK,CAAA;IACT,KAAK,EAAE,MAAM,CAAA;CACd,CAcJ;AAED,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6IxE"}
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/routes/ws/events.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AA4B9C,QAAA,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAgD,CAAA;AAE/E,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,OAAO,GACrD;IACE,EAAE,EAAE,IAAI,CAAA;IACR,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA;CAChD,GACD;IACE,EAAE,EAAE,KAAK,CAAA;IACT,KAAK,EAAE,MAAM,CAAA;CACd,CAcJ;AAED,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6IxE"}