@sixb/server 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/dist/auth/experience.d.ts +33 -0
  2. package/dist/auth/experience.d.ts.map +1 -0
  3. package/dist/auth/public-routes.d.ts.map +1 -1
  4. package/dist/index.d.ts +1 -0
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +1891 -1337
  7. package/dist/index.js.map +17 -14
  8. package/dist/openapi/tags.d.ts +6 -2
  9. package/dist/openapi/tags.d.ts.map +1 -1
  10. package/dist/registerRoutes.d.ts.map +1 -1
  11. package/dist/routes/action-runs.d.ts +6 -6
  12. package/dist/routes/actions.d.ts +3 -3
  13. package/dist/routes/agents.d.ts +149 -77
  14. package/dist/routes/agents.d.ts.map +1 -1
  15. package/dist/routes/ai-accounting.d.ts +31 -0
  16. package/dist/routes/ai-accounting.d.ts.map +1 -0
  17. package/dist/routes/auth.d.ts +110 -53
  18. package/dist/routes/auth.d.ts.map +1 -1
  19. package/dist/routes/connector-connection-runs.d.ts +56 -56
  20. package/dist/routes/connector-connections.d.ts +14 -14
  21. package/dist/routes/datasets.d.ts +12 -12
  22. package/dist/routes/events.d.ts +1 -1
  23. package/dist/routes/files.d.ts +8 -8
  24. package/dist/routes/links.d.ts +9 -9
  25. package/dist/routes/logs.d.ts +2 -2
  26. package/dist/routes/objects.d.ts +3 -3
  27. package/dist/routes/pipelines.d.ts +10 -10
  28. package/dist/routes/projections.d.ts +62 -50
  29. package/dist/routes/projections.d.ts.map +1 -1
  30. package/dist/routes/syncs.d.ts +6 -6
  31. package/dist/routes/telemetry.d.ts +7 -7
  32. package/dist/routes/webhook-runs.d.ts +2 -2
  33. package/dist/routes/workflows.d.ts +142 -57
  34. package/dist/routes/workflows.d.ts.map +1 -1
  35. package/dist/routes/ws/logs.d.ts +10 -10
  36. package/dist/schemas/actions.d.ts +16 -16
  37. package/dist/schemas/agents.d.ts +459 -142
  38. package/dist/schemas/agents.d.ts.map +1 -1
  39. package/dist/schemas/ai-accounting.d.ts +2393 -0
  40. package/dist/schemas/ai-accounting.d.ts.map +1 -0
  41. package/dist/schemas/auth.d.ts +96 -96
  42. package/dist/schemas/connectors.d.ts +24 -24
  43. package/dist/schemas/event-payloads.d.ts +6 -6
  44. package/dist/schemas/events.d.ts +6 -6
  45. package/dist/schemas/links.d.ts +2 -2
  46. package/dist/schemas/logs.d.ts +18 -18
  47. package/dist/schemas/pipelines.d.ts +20 -20
  48. package/dist/schemas/projections.d.ts +400 -288
  49. package/dist/schemas/projections.d.ts.map +1 -1
  50. package/dist/schemas/status.d.ts +2 -2
  51. package/dist/schemas/syncs.d.ts +10 -10
  52. package/dist/schemas/webhook-runs.d.ts +12 -12
  53. package/dist/schemas/workflows.d.ts +833 -162
  54. package/dist/schemas/workflows.d.ts.map +1 -1
  55. package/dist/server.d.ts +5 -0
  56. package/dist/server.d.ts.map +1 -1
  57. package/package.json +5 -5
  58. package/src/auth/experience.ts +190 -0
  59. package/src/auth/public-routes.ts +7 -0
  60. package/src/index.ts +1 -0
  61. package/src/openapi/tags.ts +4 -0
  62. package/src/registerRoutes.ts +2 -0
  63. package/src/routes/agents.ts +1 -0
  64. package/src/routes/ai-accounting.ts +166 -0
  65. package/src/routes/auth.ts +188 -32
  66. package/src/routes/projections.ts +18 -4
  67. package/src/routes/workflows.ts +16 -0
  68. package/src/schemas/agents.ts +4 -9
  69. package/src/schemas/ai-accounting.ts +182 -0
  70. package/src/schemas/projections.ts +6 -0
  71. package/src/schemas/workflows.ts +8 -3
  72. package/src/server.ts +10 -0
@@ -228,8 +228,8 @@ export declare const ConnectorConnectionSchema: z.ZodObject<{
228
228
  }>;
229
229
  status: z.ZodEnum<["connected", "needs_reauthorization", "disconnected"]>;
230
230
  }, "strip", z.ZodTypeAny, {
231
- id: string;
232
231
  status: "connected" | "needs_reauthorization" | "disconnected";
232
+ id: string;
233
233
  connectorId: string;
234
234
  owner: {
235
235
  type: "project";
@@ -242,8 +242,8 @@ export declare const ConnectorConnectionSchema: z.ZodObject<{
242
242
  avatarUrl?: string | undefined;
243
243
  };
244
244
  }, {
245
- id: string;
246
245
  status: "connected" | "needs_reauthorization" | "disconnected";
246
+ id: string;
247
247
  connectorId: string;
248
248
  owner: {
249
249
  type: "project";
@@ -275,8 +275,8 @@ export declare const ConnectorConnectionRunSchema: z.ZodUnion<[z.ZodObject<{
275
275
  waitingFor: z.ZodLiteral<"provider_authorization">;
276
276
  expiresAt: z.ZodString;
277
277
  }, "strip", z.ZodTypeAny, {
278
- id: string;
279
278
  status: "waiting";
279
+ id: string;
280
280
  kind: "connect" | "reauthorize";
281
281
  expiresAt: string;
282
282
  createdAt: string;
@@ -288,8 +288,8 @@ export declare const ConnectorConnectionRunSchema: z.ZodUnion<[z.ZodObject<{
288
288
  slot: string;
289
289
  waitingFor: "provider_authorization";
290
290
  }, {
291
- id: string;
292
291
  status: "waiting";
292
+ id: string;
293
293
  kind: "connect" | "reauthorize";
294
294
  expiresAt: string;
295
295
  createdAt: string;
@@ -317,8 +317,8 @@ export declare const ConnectorConnectionRunSchema: z.ZodUnion<[z.ZodObject<{
317
317
  } & {
318
318
  status: z.ZodLiteral<"running">;
319
319
  }, "strip", z.ZodTypeAny, {
320
- id: string;
321
320
  status: "running";
321
+ id: string;
322
322
  kind: "connect" | "reauthorize";
323
323
  createdAt: string;
324
324
  updatedAt: string;
@@ -328,8 +328,8 @@ export declare const ConnectorConnectionRunSchema: z.ZodUnion<[z.ZodObject<{
328
328
  };
329
329
  slot: string;
330
330
  }, {
331
- id: string;
332
331
  status: "running";
332
+ id: string;
333
333
  kind: "connect" | "reauthorize";
334
334
  createdAt: string;
335
335
  updatedAt: string;
@@ -373,8 +373,8 @@ export declare const ConnectorConnectionRunSchema: z.ZodUnion<[z.ZodObject<{
373
373
  }>, "many">;
374
374
  expiresAt: z.ZodString;
375
375
  }, "strip", z.ZodTypeAny, {
376
- id: string;
377
376
  status: "waiting";
377
+ id: string;
378
378
  kind: "connect" | "reauthorize";
379
379
  expiresAt: string;
380
380
  createdAt: string;
@@ -392,8 +392,8 @@ export declare const ConnectorConnectionRunSchema: z.ZodUnion<[z.ZodObject<{
392
392
  avatarUrl?: string | undefined;
393
393
  }[];
394
394
  }, {
395
- id: string;
396
395
  status: "waiting";
396
+ id: string;
397
397
  kind: "connect" | "reauthorize";
398
398
  expiresAt: string;
399
399
  createdAt: string;
@@ -455,8 +455,8 @@ export declare const ConnectorConnectionRunSchema: z.ZodUnion<[z.ZodObject<{
455
455
  }>;
456
456
  status: z.ZodEnum<["connected", "needs_reauthorization", "disconnected"]>;
457
457
  }, "strip", z.ZodTypeAny, {
458
- id: string;
459
458
  status: "connected" | "needs_reauthorization" | "disconnected";
459
+ id: string;
460
460
  connectorId: string;
461
461
  owner: {
462
462
  type: "project";
@@ -469,8 +469,8 @@ export declare const ConnectorConnectionRunSchema: z.ZodUnion<[z.ZodObject<{
469
469
  avatarUrl?: string | undefined;
470
470
  };
471
471
  }, {
472
- id: string;
473
472
  status: "connected" | "needs_reauthorization" | "disconnected";
473
+ id: string;
474
474
  connectorId: string;
475
475
  owner: {
476
476
  type: "project";
@@ -485,8 +485,8 @@ export declare const ConnectorConnectionRunSchema: z.ZodUnion<[z.ZodObject<{
485
485
  }>, "many">;
486
486
  finishedAt: z.ZodString;
487
487
  }, "strip", z.ZodTypeAny, {
488
- id: string;
489
488
  status: "succeeded";
489
+ id: string;
490
490
  kind: "connect" | "reauthorize";
491
491
  finishedAt: string;
492
492
  createdAt: string;
@@ -497,8 +497,8 @@ export declare const ConnectorConnectionRunSchema: z.ZodUnion<[z.ZodObject<{
497
497
  };
498
498
  slot: string;
499
499
  connections: {
500
- id: string;
501
500
  status: "connected" | "needs_reauthorization" | "disconnected";
501
+ id: string;
502
502
  connectorId: string;
503
503
  owner: {
504
504
  type: "project";
@@ -512,8 +512,8 @@ export declare const ConnectorConnectionRunSchema: z.ZodUnion<[z.ZodObject<{
512
512
  };
513
513
  }[];
514
514
  }, {
515
- id: string;
516
515
  status: "succeeded";
516
+ id: string;
517
517
  kind: "connect" | "reauthorize";
518
518
  finishedAt: string;
519
519
  createdAt: string;
@@ -524,8 +524,8 @@ export declare const ConnectorConnectionRunSchema: z.ZodUnion<[z.ZodObject<{
524
524
  };
525
525
  slot: string;
526
526
  connections: {
527
- id: string;
528
527
  status: "connected" | "needs_reauthorization" | "disconnected";
528
+ id: string;
529
529
  connectorId: string;
530
530
  owner: {
531
531
  type: "project";
@@ -557,10 +557,10 @@ export declare const ConnectorConnectionRunSchema: z.ZodUnion<[z.ZodObject<{
557
557
  error: z.ZodType<ConnectorConnectionRunFailure, z.ZodTypeDef, ConnectorConnectionRunFailure>;
558
558
  finishedAt: z.ZodString;
559
559
  }, "strip", z.ZodTypeAny, {
560
- id: string;
560
+ error: ConnectorConnectionRunFailure;
561
561
  status: "failed";
562
+ id: string;
562
563
  kind: "connect" | "reauthorize";
563
- error: ConnectorConnectionRunFailure;
564
564
  finishedAt: string;
565
565
  createdAt: string;
566
566
  updatedAt: string;
@@ -570,10 +570,10 @@ export declare const ConnectorConnectionRunSchema: z.ZodUnion<[z.ZodObject<{
570
570
  };
571
571
  slot: string;
572
572
  }, {
573
- id: string;
573
+ error: ConnectorConnectionRunFailure;
574
574
  status: "failed";
575
+ id: string;
575
576
  kind: "connect" | "reauthorize";
576
- error: ConnectorConnectionRunFailure;
577
577
  finishedAt: string;
578
578
  createdAt: string;
579
579
  updatedAt: string;
@@ -600,8 +600,8 @@ export declare const ConnectorConnectionRunSchema: z.ZodUnion<[z.ZodObject<{
600
600
  status: z.ZodEnum<["cancelled", "expired"]>;
601
601
  finishedAt: z.ZodString;
602
602
  }, "strip", z.ZodTypeAny, {
603
- id: string;
604
603
  status: "cancelled" | "expired";
604
+ id: string;
605
605
  kind: "connect" | "reauthorize";
606
606
  finishedAt: string;
607
607
  createdAt: string;
@@ -612,8 +612,8 @@ export declare const ConnectorConnectionRunSchema: z.ZodUnion<[z.ZodObject<{
612
612
  };
613
613
  slot: string;
614
614
  }, {
615
- id: string;
616
615
  status: "cancelled" | "expired";
616
+ id: string;
617
617
  kind: "connect" | "reauthorize";
618
618
  finishedAt: string;
619
619
  createdAt: string;
@@ -680,8 +680,8 @@ export declare const StartConnectorConnectionRunResponseSchema: z.ZodObject<{
680
680
  }>;
681
681
  status: z.ZodEnum<["connected", "needs_reauthorization", "disconnected"]>;
682
682
  }, "strip", z.ZodTypeAny, {
683
- id: string;
684
683
  status: "connected" | "needs_reauthorization" | "disconnected";
684
+ id: string;
685
685
  connectorId: string;
686
686
  owner: {
687
687
  type: "project";
@@ -694,8 +694,8 @@ export declare const StartConnectorConnectionRunResponseSchema: z.ZodObject<{
694
694
  avatarUrl?: string | undefined;
695
695
  };
696
696
  }, {
697
- id: string;
698
697
  status: "connected" | "needs_reauthorization" | "disconnected";
698
+ id: string;
699
699
  connectorId: string;
700
700
  owner: {
701
701
  type: "project";
@@ -712,8 +712,8 @@ export declare const StartConnectorConnectionRunResponseSchema: z.ZodObject<{
712
712
  runId: string;
713
713
  authorizationUrl: string;
714
714
  affectedConnections: {
715
- id: string;
716
715
  status: "connected" | "needs_reauthorization" | "disconnected";
716
+ id: string;
717
717
  connectorId: string;
718
718
  owner: {
719
719
  type: "project";
@@ -730,8 +730,8 @@ export declare const StartConnectorConnectionRunResponseSchema: z.ZodObject<{
730
730
  runId: string;
731
731
  authorizationUrl: string;
732
732
  affectedConnections: {
733
- id: string;
734
733
  status: "connected" | "needs_reauthorization" | "disconnected";
734
+ id: string;
735
735
  connectorId: string;
736
736
  owner: {
737
737
  type: "project";
@@ -254,6 +254,7 @@ export declare const ONTOLOGY_EVENT_PAYLOAD_SCHEMAS: {
254
254
  before: import("./common").JsonValue;
255
255
  }>]>>;
256
256
  }, "strip", z.ZodTypeAny, {
257
+ sourceId: string;
257
258
  propertyChanges: Record<string, {
258
259
  operation: "created";
259
260
  after: import("./common").JsonValue;
@@ -267,12 +268,12 @@ export declare const ONTOLOGY_EVENT_PAYLOAD_SCHEMAS: {
267
268
  before: import("./common").JsonValue;
268
269
  }>;
269
270
  sourceTypeId: string;
270
- sourceId: string;
271
271
  linkId: string;
272
272
  targetTypeId: string;
273
273
  targetId: string;
274
274
  properties?: Record<string, import("./common").JsonValue> | undefined;
275
275
  }, {
276
+ sourceId: string;
276
277
  propertyChanges: Record<string, {
277
278
  operation: "created";
278
279
  after: import("./common").JsonValue;
@@ -286,7 +287,6 @@ export declare const ONTOLOGY_EVENT_PAYLOAD_SCHEMAS: {
286
287
  before: import("./common").JsonValue;
287
288
  }>;
288
289
  sourceTypeId: string;
289
- sourceId: string;
290
290
  linkId: string;
291
291
  targetTypeId: string;
292
292
  targetId: string;
@@ -335,6 +335,7 @@ export declare const ONTOLOGY_EVENT_PAYLOAD_SCHEMAS: {
335
335
  before: import("./common").JsonValue;
336
336
  }>]>>;
337
337
  }, "strip", z.ZodTypeAny, {
338
+ sourceId: string;
338
339
  propertyChanges: Record<string, {
339
340
  operation: "created";
340
341
  after: import("./common").JsonValue;
@@ -348,12 +349,12 @@ export declare const ONTOLOGY_EVENT_PAYLOAD_SCHEMAS: {
348
349
  before: import("./common").JsonValue;
349
350
  }>;
350
351
  sourceTypeId: string;
351
- sourceId: string;
352
352
  linkId: string;
353
353
  targetTypeId: string;
354
354
  targetId: string;
355
355
  properties?: Record<string, import("./common").JsonValue> | undefined;
356
356
  }, {
357
+ sourceId: string;
357
358
  propertyChanges: Record<string, {
358
359
  operation: "created";
359
360
  after: import("./common").JsonValue;
@@ -367,7 +368,6 @@ export declare const ONTOLOGY_EVENT_PAYLOAD_SCHEMAS: {
367
368
  before: import("./common").JsonValue;
368
369
  }>;
369
370
  sourceTypeId: string;
370
- sourceId: string;
371
371
  linkId: string;
372
372
  targetTypeId: string;
373
373
  targetId: string;
@@ -415,6 +415,7 @@ export declare const ONTOLOGY_EVENT_PAYLOAD_SCHEMAS: {
415
415
  before: import("./common").JsonValue;
416
416
  }>]>>;
417
417
  }, "strip", z.ZodTypeAny, {
418
+ sourceId: string;
418
419
  propertyChanges: Record<string, {
419
420
  operation: "created";
420
421
  after: import("./common").JsonValue;
@@ -428,11 +429,11 @@ export declare const ONTOLOGY_EVENT_PAYLOAD_SCHEMAS: {
428
429
  before: import("./common").JsonValue;
429
430
  }>;
430
431
  sourceTypeId: string;
431
- sourceId: string;
432
432
  linkId: string;
433
433
  targetTypeId: string;
434
434
  targetId: string;
435
435
  }, {
436
+ sourceId: string;
436
437
  propertyChanges: Record<string, {
437
438
  operation: "created";
438
439
  after: import("./common").JsonValue;
@@ -446,7 +447,6 @@ export declare const ONTOLOGY_EVENT_PAYLOAD_SCHEMAS: {
446
447
  before: import("./common").JsonValue;
447
448
  }>;
448
449
  sourceTypeId: string;
449
- sourceId: string;
450
450
  linkId: string;
451
451
  targetTypeId: string;
452
452
  targetId: string;
@@ -252,11 +252,11 @@ export declare const EventSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [E
252
252
  projectId: string;
253
253
  id: string;
254
254
  type: "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";
255
+ occurredAt: string;
255
256
  payload: Record<string, unknown>;
256
257
  topic: "datasets" | "syncs" | "pipelines" | "workflows" | "rules" | "objects" | "actions" | "links" | "telemetry" | "schedules";
257
258
  partitionKey: string;
258
259
  schemaVersion: 1;
259
- occurredAt: string;
260
260
  cursor: string;
261
261
  origin?: {
262
262
  kind: "projection";
@@ -297,11 +297,11 @@ export declare const EventSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [E
297
297
  projectId: string;
298
298
  id: string;
299
299
  type: "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";
300
+ occurredAt: string;
300
301
  payload: Record<string, unknown>;
301
302
  topic: "datasets" | "syncs" | "pipelines" | "workflows" | "rules" | "objects" | "actions" | "links" | "telemetry" | "schedules";
302
303
  partitionKey: string;
303
304
  schemaVersion: 1;
304
- occurredAt: string;
305
305
  cursor: string;
306
306
  origin?: {
307
307
  kind: "projection";
@@ -471,11 +471,11 @@ export declare const EventsResponseSchema: z.ZodObject<{
471
471
  projectId: string;
472
472
  id: string;
473
473
  type: "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";
474
+ occurredAt: string;
474
475
  payload: Record<string, unknown>;
475
476
  topic: "datasets" | "syncs" | "pipelines" | "workflows" | "rules" | "objects" | "actions" | "links" | "telemetry" | "schedules";
476
477
  partitionKey: string;
477
478
  schemaVersion: 1;
478
- occurredAt: string;
479
479
  cursor: string;
480
480
  origin?: {
481
481
  kind: "projection";
@@ -516,11 +516,11 @@ export declare const EventsResponseSchema: z.ZodObject<{
516
516
  projectId: string;
517
517
  id: string;
518
518
  type: "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";
519
+ occurredAt: string;
519
520
  payload: Record<string, unknown>;
520
521
  topic: "datasets" | "syncs" | "pipelines" | "workflows" | "rules" | "objects" | "actions" | "links" | "telemetry" | "schedules";
521
522
  partitionKey: string;
522
523
  schemaVersion: 1;
523
- occurredAt: string;
524
524
  cursor: string;
525
525
  origin?: {
526
526
  kind: "projection";
@@ -563,11 +563,11 @@ export declare const EventsResponseSchema: z.ZodObject<{
563
563
  projectId: string;
564
564
  id: string;
565
565
  type: "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";
566
+ occurredAt: string;
566
567
  payload: Record<string, unknown>;
567
568
  topic: "datasets" | "syncs" | "pipelines" | "workflows" | "rules" | "objects" | "actions" | "links" | "telemetry" | "schedules";
568
569
  partitionKey: string;
569
570
  schemaVersion: 1;
570
- occurredAt: string;
571
571
  cursor: string;
572
572
  origin?: {
573
573
  kind: "projection";
@@ -614,11 +614,11 @@ export declare const EventsResponseSchema: z.ZodObject<{
614
614
  projectId: string;
615
615
  id: string;
616
616
  type: "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";
617
+ occurredAt: string;
617
618
  payload: Record<string, unknown>;
618
619
  topic: "datasets" | "syncs" | "pipelines" | "workflows" | "rules" | "objects" | "actions" | "links" | "telemetry" | "schedules";
619
620
  partitionKey: string;
620
621
  schemaVersion: 1;
621
- occurredAt: string;
622
622
  cursor: string;
623
623
  origin?: {
624
624
  kind: "projection";
@@ -68,20 +68,20 @@ export declare const ObjectLinkSchema: z.ZodObject<{
68
68
  updatedAt: z.ZodString;
69
69
  }, "strip", z.ZodTypeAny, {
70
70
  projectId: string;
71
+ sourceId: string;
71
72
  createdAt: string;
72
73
  updatedAt: string;
73
74
  sourceTypeId: string;
74
- sourceId: string;
75
75
  linkId: string;
76
76
  targetTypeId: string;
77
77
  targetId: string;
78
78
  properties?: Record<string, unknown> | undefined;
79
79
  }, {
80
80
  projectId: string;
81
+ sourceId: string;
81
82
  createdAt: string;
82
83
  updatedAt: string;
83
84
  sourceTypeId: string;
84
- sourceId: string;
85
85
  linkId: string;
86
86
  targetTypeId: string;
87
87
  targetId: string;
@@ -15,7 +15,7 @@ export declare const LogsQuerySchema: z.ZodEffects<z.ZodObject<{
15
15
  beforeCursor: z.ZodOptional<z.ZodString>;
16
16
  limit: z.ZodOptional<z.ZodNumber>;
17
17
  }, "strip", z.ZodTypeAny, {
18
- kind?: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action" | "agent" | undefined;
18
+ kind?: "workflow" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "action" | undefined;
19
19
  runId?: string | undefined;
20
20
  limit?: number | undefined;
21
21
  afterCursor?: string | undefined;
@@ -23,7 +23,7 @@ export declare const LogsQuerySchema: z.ZodEffects<z.ZodObject<{
23
23
  level?: "error" | "debug" | "info" | "warn" | undefined;
24
24
  beforeCursor?: string | undefined;
25
25
  }, {
26
- kind?: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action" | "agent" | undefined;
26
+ kind?: "workflow" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "action" | undefined;
27
27
  runId?: string | undefined;
28
28
  limit?: number | undefined;
29
29
  afterCursor?: string | undefined;
@@ -31,7 +31,7 @@ export declare const LogsQuerySchema: z.ZodEffects<z.ZodObject<{
31
31
  level?: "error" | "debug" | "info" | "warn" | undefined;
32
32
  beforeCursor?: string | undefined;
33
33
  }>, {
34
- kind?: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action" | "agent" | undefined;
34
+ kind?: "workflow" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "action" | undefined;
35
35
  runId?: string | undefined;
36
36
  limit?: number | undefined;
37
37
  afterCursor?: string | undefined;
@@ -39,7 +39,7 @@ export declare const LogsQuerySchema: z.ZodEffects<z.ZodObject<{
39
39
  level?: "error" | "debug" | "info" | "warn" | undefined;
40
40
  beforeCursor?: string | undefined;
41
41
  }, {
42
- kind?: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action" | "agent" | undefined;
42
+ kind?: "workflow" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "action" | undefined;
43
43
  runId?: string | undefined;
44
44
  limit?: number | undefined;
45
45
  afterCursor?: string | undefined;
@@ -58,10 +58,10 @@ export declare const LogLineSchema: z.ZodObject<{
58
58
  id: z.ZodString;
59
59
  }, "strip", z.ZodTypeAny, {
60
60
  id: string;
61
- kind: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action" | "agent";
61
+ kind: "workflow" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "action";
62
62
  }, {
63
63
  id: string;
64
- kind: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action" | "agent";
64
+ kind: "workflow" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "action";
65
65
  }>;
66
66
  stepId: z.ZodOptional<z.ZodString>;
67
67
  phase: z.ZodOptional<z.ZodString>;
@@ -69,7 +69,7 @@ export declare const LogLineSchema: z.ZodObject<{
69
69
  }, "strip", z.ZodTypeAny, {
70
70
  run: {
71
71
  id: string;
72
- kind: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action" | "agent";
72
+ kind: "workflow" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "action";
73
73
  };
74
74
  phase?: string | undefined;
75
75
  attempt?: number | undefined;
@@ -77,7 +77,7 @@ export declare const LogLineSchema: z.ZodObject<{
77
77
  }, {
78
78
  run: {
79
79
  id: string;
80
- kind: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action" | "agent";
80
+ kind: "workflow" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "action";
81
81
  };
82
82
  phase?: string | undefined;
83
83
  attempt?: number | undefined;
@@ -90,7 +90,7 @@ export declare const LogLineSchema: z.ZodObject<{
90
90
  context: {
91
91
  run: {
92
92
  id: string;
93
- kind: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action" | "agent";
93
+ kind: "workflow" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "action";
94
94
  };
95
95
  phase?: string | undefined;
96
96
  attempt?: number | undefined;
@@ -105,7 +105,7 @@ export declare const LogLineSchema: z.ZodObject<{
105
105
  context: {
106
106
  run: {
107
107
  id: string;
108
- kind: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action" | "agent";
108
+ kind: "workflow" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "action";
109
109
  };
110
110
  phase?: string | undefined;
111
111
  attempt?: number | undefined;
@@ -128,10 +128,10 @@ export declare const LogsResponseSchema: z.ZodObject<{
128
128
  id: z.ZodString;
129
129
  }, "strip", z.ZodTypeAny, {
130
130
  id: string;
131
- kind: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action" | "agent";
131
+ kind: "workflow" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "action";
132
132
  }, {
133
133
  id: string;
134
- kind: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action" | "agent";
134
+ kind: "workflow" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "action";
135
135
  }>;
136
136
  stepId: z.ZodOptional<z.ZodString>;
137
137
  phase: z.ZodOptional<z.ZodString>;
@@ -139,7 +139,7 @@ export declare const LogsResponseSchema: z.ZodObject<{
139
139
  }, "strip", z.ZodTypeAny, {
140
140
  run: {
141
141
  id: string;
142
- kind: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action" | "agent";
142
+ kind: "workflow" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "action";
143
143
  };
144
144
  phase?: string | undefined;
145
145
  attempt?: number | undefined;
@@ -147,7 +147,7 @@ export declare const LogsResponseSchema: z.ZodObject<{
147
147
  }, {
148
148
  run: {
149
149
  id: string;
150
- kind: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action" | "agent";
150
+ kind: "workflow" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "action";
151
151
  };
152
152
  phase?: string | undefined;
153
153
  attempt?: number | undefined;
@@ -160,7 +160,7 @@ export declare const LogsResponseSchema: z.ZodObject<{
160
160
  context: {
161
161
  run: {
162
162
  id: string;
163
- kind: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action" | "agent";
163
+ kind: "workflow" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "action";
164
164
  };
165
165
  phase?: string | undefined;
166
166
  attempt?: number | undefined;
@@ -175,7 +175,7 @@ export declare const LogsResponseSchema: z.ZodObject<{
175
175
  context: {
176
176
  run: {
177
177
  id: string;
178
- kind: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action" | "agent";
178
+ kind: "workflow" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "action";
179
179
  };
180
180
  phase?: string | undefined;
181
181
  attempt?: number | undefined;
@@ -196,7 +196,7 @@ export declare const LogsResponseSchema: z.ZodObject<{
196
196
  context: {
197
197
  run: {
198
198
  id: string;
199
- kind: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action" | "agent";
199
+ kind: "workflow" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "action";
200
200
  };
201
201
  phase?: string | undefined;
202
202
  attempt?: number | undefined;
@@ -216,7 +216,7 @@ export declare const LogsResponseSchema: z.ZodObject<{
216
216
  context: {
217
217
  run: {
218
218
  id: string;
219
- kind: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action" | "agent";
219
+ kind: "workflow" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "action";
220
220
  };
221
221
  phase?: string | undefined;
222
222
  attempt?: number | undefined;