@sixb/server 0.1.1 → 0.1.2

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 (166) hide show
  1. package/README.md +3 -3
  2. package/dist/auth/application-access.d.ts +2 -2
  3. package/dist/auth/application-access.d.ts.map +1 -1
  4. package/dist/auth/connector-callback-cookie.d.ts +12 -0
  5. package/dist/auth/connector-callback-cookie.d.ts.map +1 -0
  6. package/dist/auth/guard.d.ts +3 -3
  7. package/dist/auth/guard.d.ts.map +1 -1
  8. package/dist/auth/public-routes.d.ts.map +1 -1
  9. package/dist/auth/scope.d.ts +13 -27
  10. package/dist/auth/scope.d.ts.map +1 -1
  11. package/dist/auth/session-cookies.d.ts +2 -2
  12. package/dist/auth/session-cookies.d.ts.map +1 -1
  13. package/dist/connectors/http.d.ts +16 -0
  14. package/dist/connectors/http.d.ts.map +1 -0
  15. package/dist/index.js +3293 -2704
  16. package/dist/index.js.map +55 -50
  17. package/dist/openapi/tags.d.ts +11 -3
  18. package/dist/openapi/tags.d.ts.map +1 -1
  19. package/dist/registerRoutes.d.ts +6 -2
  20. package/dist/registerRoutes.d.ts.map +1 -1
  21. package/dist/routes/action-runs.d.ts +21 -31
  22. package/dist/routes/action-runs.d.ts.map +1 -1
  23. package/dist/routes/actions.d.ts +9 -8
  24. package/dist/routes/actions.d.ts.map +1 -1
  25. package/dist/routes/agent-api-gateway.d.ts +2 -2
  26. package/dist/routes/agent-api-gateway.d.ts.map +1 -1
  27. package/dist/routes/agents.d.ts +130 -131
  28. package/dist/routes/agents.d.ts.map +1 -1
  29. package/dist/routes/auth.d.ts +84 -84
  30. package/dist/routes/auth.d.ts.map +1 -1
  31. package/dist/routes/connector-connection-runs.d.ts +794 -0
  32. package/dist/routes/connector-connection-runs.d.ts.map +1 -0
  33. package/dist/routes/connector-connections.d.ts +219 -0
  34. package/dist/routes/connector-connections.d.ts.map +1 -0
  35. package/dist/routes/connectors.d.ts +10 -4
  36. package/dist/routes/connectors.d.ts.map +1 -1
  37. package/dist/routes/datasets.d.ts +8 -4
  38. package/dist/routes/datasets.d.ts.map +1 -1
  39. package/dist/routes/events.d.ts +8 -8
  40. package/dist/routes/events.d.ts.map +1 -1
  41. package/dist/routes/files.d.ts +11 -10
  42. package/dist/routes/files.d.ts.map +1 -1
  43. package/dist/routes/links.d.ts +2 -2
  44. package/dist/routes/links.d.ts.map +1 -1
  45. package/dist/routes/logs.d.ts +5 -5
  46. package/dist/routes/logs.d.ts.map +1 -1
  47. package/dist/routes/objects.d.ts +34 -34
  48. package/dist/routes/objects.d.ts.map +1 -1
  49. package/dist/routes/ontology.d.ts +50 -50
  50. package/dist/routes/ontology.d.ts.map +1 -1
  51. package/dist/routes/pipelines.d.ts +24 -34
  52. package/dist/routes/pipelines.d.ts.map +1 -1
  53. package/dist/routes/project.d.ts +2 -2
  54. package/dist/routes/project.d.ts.map +1 -1
  55. package/dist/routes/projections.d.ts +131 -83
  56. package/dist/routes/projections.d.ts.map +1 -1
  57. package/dist/routes/rules.d.ts +6 -6
  58. package/dist/routes/rules.d.ts.map +1 -1
  59. package/dist/routes/status.d.ts +2 -2
  60. package/dist/routes/status.d.ts.map +1 -1
  61. package/dist/routes/syncs.d.ts +20 -25
  62. package/dist/routes/syncs.d.ts.map +1 -1
  63. package/dist/routes/telemetry.d.ts +2 -2
  64. package/dist/routes/telemetry.d.ts.map +1 -1
  65. package/dist/routes/webhook-runs.d.ts +9 -9
  66. package/dist/routes/webhook-runs.d.ts.map +1 -1
  67. package/dist/routes/webhooks.d.ts +2 -2
  68. package/dist/routes/webhooks.d.ts.map +1 -1
  69. package/dist/routes/workflows.d.ts +74 -48
  70. package/dist/routes/workflows.d.ts.map +1 -1
  71. package/dist/routes/ws/agents.d.ts +11 -5
  72. package/dist/routes/ws/agents.d.ts.map +1 -1
  73. package/dist/routes/ws/events.d.ts +8 -8
  74. package/dist/routes/ws/events.d.ts.map +1 -1
  75. package/dist/routes/ws/log-subscription-hub.d.ts +6 -3
  76. package/dist/routes/ws/log-subscription-hub.d.ts.map +1 -1
  77. package/dist/routes/ws/logs.d.ts +10 -10
  78. package/dist/routes/ws/logs.d.ts.map +1 -1
  79. package/dist/schemas/actions.d.ts +97 -202
  80. package/dist/schemas/actions.d.ts.map +1 -1
  81. package/dist/schemas/agents.d.ts +442 -439
  82. package/dist/schemas/agents.d.ts.map +1 -1
  83. package/dist/schemas/ai-usage.d.ts +34 -0
  84. package/dist/schemas/ai-usage.d.ts.map +1 -0
  85. package/dist/schemas/auth.d.ts +142 -142
  86. package/dist/schemas/common.d.ts +37 -0
  87. package/dist/schemas/common.d.ts.map +1 -1
  88. package/dist/schemas/connectors.d.ts +713 -2
  89. package/dist/schemas/connectors.d.ts.map +1 -1
  90. package/dist/schemas/datasets.d.ts +2 -2
  91. package/dist/schemas/event-payloads.d.ts +6 -6
  92. package/dist/schemas/events.d.ts +34 -34
  93. package/dist/schemas/logs.d.ts +22 -22
  94. package/dist/schemas/objects.d.ts +10 -10
  95. package/dist/schemas/ontology.d.ts +118 -118
  96. package/dist/schemas/pipelines.d.ts +95 -190
  97. package/dist/schemas/pipelines.d.ts.map +1 -1
  98. package/dist/schemas/projections.d.ts +918 -563
  99. package/dist/schemas/projections.d.ts.map +1 -1
  100. package/dist/schemas/rules.d.ts +6 -6
  101. package/dist/schemas/status.d.ts +2 -2
  102. package/dist/schemas/syncs.d.ts +65 -108
  103. package/dist/schemas/syncs.d.ts.map +1 -1
  104. package/dist/schemas/webhook-runs.d.ts +41 -41
  105. package/dist/schemas/webhook-runs.d.ts.map +1 -1
  106. package/dist/schemas/workflows.d.ts +516 -183
  107. package/dist/schemas/workflows.d.ts.map +1 -1
  108. package/dist/server.d.ts +6 -6
  109. package/dist/server.d.ts.map +1 -1
  110. package/dist/utils/http.d.ts +2 -0
  111. package/dist/utils/http.d.ts.map +1 -1
  112. package/dist/utils/ws.d.ts +4 -3
  113. package/dist/utils/ws.d.ts.map +1 -1
  114. package/package.json +4 -4
  115. package/src/auth/access-token-boundary.ts +4 -4
  116. package/src/auth/application-access.ts +8 -9
  117. package/src/auth/connector-callback-cookie.ts +95 -0
  118. package/src/auth/guard.ts +11 -11
  119. package/src/auth/public-routes.ts +13 -0
  120. package/src/auth/scope.ts +26 -36
  121. package/src/auth/session-cookies.ts +3 -3
  122. package/src/connectors/http.ts +110 -0
  123. package/src/openapi/tags.ts +9 -1
  124. package/src/registerRoutes.ts +34 -23
  125. package/src/routes/action-runs.ts +39 -39
  126. package/src/routes/actions.ts +7 -13
  127. package/src/routes/agent-api-gateway.ts +41 -38
  128. package/src/routes/agents.ts +89 -200
  129. package/src/routes/auth.ts +87 -91
  130. package/src/routes/connector-connection-runs.ts +346 -0
  131. package/src/routes/connector-connections.ts +135 -0
  132. package/src/routes/connectors.ts +24 -12
  133. package/src/routes/datasets.ts +55 -54
  134. package/src/routes/events.ts +5 -5
  135. package/src/routes/files.ts +22 -30
  136. package/src/routes/links.ts +31 -35
  137. package/src/routes/logs.ts +6 -11
  138. package/src/routes/objects.ts +51 -114
  139. package/src/routes/ontology.ts +27 -38
  140. package/src/routes/pipelines.ts +28 -62
  141. package/src/routes/project.ts +3 -3
  142. package/src/routes/projections.ts +26 -38
  143. package/src/routes/rules.ts +11 -25
  144. package/src/routes/status.ts +5 -5
  145. package/src/routes/syncs.ts +19 -45
  146. package/src/routes/telemetry.ts +18 -29
  147. package/src/routes/webhook-runs.ts +5 -5
  148. package/src/routes/webhooks.ts +259 -341
  149. package/src/routes/workflows.ts +226 -248
  150. package/src/routes/ws/agents.ts +196 -66
  151. package/src/routes/ws/events.ts +11 -10
  152. package/src/routes/ws/log-subscription-hub.ts +6 -12
  153. package/src/routes/ws/logs.ts +13 -5
  154. package/src/schemas/actions.ts +58 -25
  155. package/src/schemas/agents.ts +19 -14
  156. package/src/schemas/ai-usage.ts +16 -0
  157. package/src/schemas/common.ts +24 -0
  158. package/src/schemas/connectors.ts +164 -0
  159. package/src/schemas/pipelines.ts +23 -15
  160. package/src/schemas/projections.ts +17 -3
  161. package/src/schemas/syncs.ts +13 -8
  162. package/src/schemas/webhook-runs.ts +10 -5
  163. package/src/schemas/workflows.ts +16 -6
  164. package/src/server.ts +65 -26
  165. package/src/utils/http.ts +34 -6
  166. package/src/utils/ws.ts +10 -5
@@ -1 +1 @@
1
- {"version":3,"file":"connectors.d.ts","sourceRoot":"","sources":["../../src/schemas/connectors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,qBAAqB;;;;;;EAEhC,CAAA;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;EAOjC,CAAA;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK1B,CAAA"}
1
+ {"version":3,"file":"connectors.d.ts","sourceRoot":"","sources":["../../src/schemas/connectors.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,6BAA6B,EACnC,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,eAAO,MAAM,0BAA0B,yaAc7B,CAAA;AACV,MAAM,MAAM,sBAAsB,GAAG,CAAC,OAAO,0BAA0B,CAAC,CAAC,MAAM,CAAC,CAAA;AAEhF,eAAO,MAAM,iCAAiC;;;;;;;;;;EAG5C,CAAA;AACF,eAAO,MAAM,+BAA+B;;;;;;;;;;EAE1C,CAAA;AACF,eAAO,MAAM,+BAA+B;;;;;;;;;;EAM1C,CAAA;AACF,eAAO,MAAM,oCAAoC;;;;;;;;;;EAE/C,CAAA;AACF,eAAO,MAAM,iCAAiC;;;;;;;;;;EAG5C,CAAA;AACF,eAAO,MAAM,kCAAkC;;;;;;;;;;EAG7C,CAAA;AAEF,eAAO,MAAM,qBAAqB;;;;;;EAEhC,CAAA;AAEF,eAAO,MAAM,+BAA+B;;;;;;;;;;EAE1C,CAAA;AAEF,eAAO,MAAM,kCAAkC;;;;;;;;;;EAE7C,CAAA;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;EAOjC,CAAA;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAM1B,CAAA;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;EAKjC,CAAA;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOpC,CAAA;AAeF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA6BvC,CAAA;AAEF,eAAO,MAAM,qCAAqC;;;;;;;;;EAGhD,CAAA;AAEF,eAAO,MAAM,gCAAgC;;;;;;EAE3C,CAAA;AAEF,eAAO,MAAM,uCAAuC;;;;;;EAElD,CAAA;AAEF,eAAO,MAAM,yCAAyC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIpD,CAAA;AAEF,eAAO,MAAM,6CAA6C;;;;;;;;;EAGxD,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAU0C,CAAA"}
@@ -345,8 +345,8 @@ export declare const DatasetCatalogItemSchema: z.ZodObject<{
345
345
  targetPipelineIds: z.ZodArray<z.ZodString, "many">;
346
346
  projectionIds: z.ZodArray<z.ZodString, "many">;
347
347
  }, "strip", z.ZodTypeAny, {
348
- kind: "dataset";
349
348
  id: string;
349
+ kind: "dataset";
350
350
  schema: {
351
351
  columns: {
352
352
  name: string;
@@ -370,8 +370,8 @@ export declare const DatasetCatalogItemSchema: z.ZodObject<{
370
370
  primaryKey?: string | string[] | undefined;
371
371
  partitionBy?: string[] | undefined;
372
372
  }, {
373
- kind: "dataset";
374
373
  id: string;
374
+ kind: "dataset";
375
375
  schema: {
376
376
  columns: {
377
377
  name: string;
@@ -40,8 +40,8 @@ export declare const ONTOLOGY_EVENT_PAYLOAD_SCHEMAS: {
40
40
  before: import("./common").JsonValue;
41
41
  }>]>>;
42
42
  }, "strip", z.ZodTypeAny, {
43
- objectTypeId: string;
44
43
  properties: Record<string, import("./common").JsonValue>;
44
+ objectTypeId: string;
45
45
  primaryId: string;
46
46
  propertyChanges: Record<string, {
47
47
  operation: "created";
@@ -56,8 +56,8 @@ export declare const ONTOLOGY_EVENT_PAYLOAD_SCHEMAS: {
56
56
  before: import("./common").JsonValue;
57
57
  }>;
58
58
  }, {
59
- objectTypeId: string;
60
59
  properties: Record<string, import("./common").JsonValue>;
60
+ objectTypeId: string;
61
61
  primaryId: string;
62
62
  propertyChanges: Record<string, {
63
63
  operation: "created";
@@ -111,8 +111,8 @@ export declare const ONTOLOGY_EVENT_PAYLOAD_SCHEMAS: {
111
111
  before: import("./common").JsonValue;
112
112
  }>]>>;
113
113
  }, "strip", z.ZodTypeAny, {
114
- objectTypeId: string;
115
114
  properties: Record<string, import("./common").JsonValue>;
115
+ objectTypeId: string;
116
116
  primaryId: string;
117
117
  propertyChanges: Record<string, {
118
118
  operation: "created";
@@ -127,8 +127,8 @@ export declare const ONTOLOGY_EVENT_PAYLOAD_SCHEMAS: {
127
127
  before: import("./common").JsonValue;
128
128
  }>;
129
129
  }, {
130
- objectTypeId: string;
131
130
  properties: Record<string, import("./common").JsonValue>;
131
+ objectTypeId: string;
132
132
  primaryId: string;
133
133
  propertyChanges: Record<string, {
134
134
  operation: "created";
@@ -460,15 +460,15 @@ export declare const ONTOLOGY_EVENT_PAYLOAD_SCHEMAS: {
460
460
  at: z.ZodString;
461
461
  }, "strip", z.ZodTypeAny, {
462
462
  at: string;
463
- objectTypeId: string;
464
463
  value: import("./common").JsonValue;
464
+ objectTypeId: string;
465
465
  objectId: string;
466
466
  propertyId: string;
467
467
  unit?: string | undefined;
468
468
  }, {
469
469
  at: string;
470
- objectTypeId: string;
471
470
  value: import("./common").JsonValue;
471
+ objectTypeId: string;
472
472
  objectId: string;
473
473
  propertyId: string;
474
474
  unit?: string | undefined;
@@ -2,8 +2,8 @@ import type { DomainEvent } from "@sixb/core";
2
2
  import { z } from "zod";
3
3
  export declare const EVENT_TOPICS: readonly [DomainEvent["topic"], ...DomainEvent["topic"][]];
4
4
  export declare const EVENT_TYPES: readonly [DomainEvent["type"], ...DomainEvent["type"][]];
5
- export declare const EventTopicSchema: z.ZodEnum<["objects" | "telemetry" | "links" | "actions" | "schedules" | "rules" | "syncs" | "pipelines" | "workflows" | "datasets", ...("objects" | "telemetry" | "links" | "actions" | "schedules" | "rules" | "syncs" | "pipelines" | "workflows" | "datasets")[]]>;
6
- export declare const EventTypeSchema: z.ZodEnum<["object.created" | "action.requested" | "object.updated" | "object.deleted" | "telemetry.appended" | "link.created" | "link.updated" | "link.deleted" | "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" | "action.requested" | "object.updated" | "object.deleted" | "telemetry.appended" | "link.created" | "link.updated" | "link.deleted" | "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")[]]>;
5
+ export declare const EventTopicSchema: z.ZodEnum<["datasets" | "syncs" | "pipelines" | "workflows" | "rules" | "objects" | "actions" | "links" | "telemetry" | "schedules", ...("datasets" | "syncs" | "pipelines" | "workflows" | "rules" | "objects" | "actions" | "links" | "telemetry" | "schedules")[]]>;
6
+ export declare const EventTypeSchema: 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")[]]>;
7
7
  /** Mirrors the Materializer's commit origin: which ingress produced the fact. */
8
8
  export declare const EventOriginSchema: z.ZodUnion<[z.ZodObject<{
9
9
  kind: z.ZodLiteral<"action">;
@@ -106,19 +106,19 @@ export declare const EventOriginSchema: z.ZodUnion<[z.ZodObject<{
106
106
  };
107
107
  }>]>;
108
108
  export declare const EventsQuerySchema: z.ZodObject<{
109
- topic: z.ZodOptional<z.ZodEnum<["objects" | "telemetry" | "links" | "actions" | "schedules" | "rules" | "syncs" | "pipelines" | "workflows" | "datasets", ...("objects" | "telemetry" | "links" | "actions" | "schedules" | "rules" | "syncs" | "pipelines" | "workflows" | "datasets")[]]>>;
110
- type: z.ZodOptional<z.ZodEnum<["object.created" | "action.requested" | "object.updated" | "object.deleted" | "telemetry.appended" | "link.created" | "link.updated" | "link.deleted" | "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" | "action.requested" | "object.updated" | "object.deleted" | "telemetry.appended" | "link.created" | "link.updated" | "link.deleted" | "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")[]]>>;
109
+ 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")[]]>>;
110
+ type: z.ZodOptional<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")[]]>>;
111
111
  afterCursor: z.ZodOptional<z.ZodString>;
112
112
  limit: z.ZodOptional<z.ZodString>;
113
113
  }, "strip", z.ZodTypeAny, {
114
+ type?: "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;
114
115
  limit?: string | undefined;
115
- type?: "object.created" | "action.requested" | "object.updated" | "object.deleted" | "telemetry.appended" | "link.created" | "link.updated" | "link.deleted" | "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;
116
- topic?: "objects" | "telemetry" | "links" | "actions" | "schedules" | "rules" | "syncs" | "pipelines" | "workflows" | "datasets" | undefined;
116
+ topic?: "datasets" | "syncs" | "pipelines" | "workflows" | "rules" | "objects" | "actions" | "links" | "telemetry" | "schedules" | undefined;
117
117
  afterCursor?: string | undefined;
118
118
  }, {
119
+ type?: "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;
119
120
  limit?: string | undefined;
120
- type?: "object.created" | "action.requested" | "object.updated" | "object.deleted" | "telemetry.appended" | "link.created" | "link.updated" | "link.deleted" | "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;
121
- topic?: "objects" | "telemetry" | "links" | "actions" | "schedules" | "rules" | "syncs" | "pipelines" | "workflows" | "datasets" | undefined;
121
+ topic?: "datasets" | "syncs" | "pipelines" | "workflows" | "rules" | "objects" | "actions" | "links" | "telemetry" | "schedules" | undefined;
122
122
  afterCursor?: string | undefined;
123
123
  }>;
124
124
  type EventSchemaOption = z.ZodDiscriminatedUnionOption<"type">;
@@ -132,11 +132,11 @@ export declare const EventSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [E
132
132
  type: z.ZodEnum<["user", "serviceAccount", "system"]>;
133
133
  id: z.ZodString;
134
134
  }, "strip", z.ZodTypeAny, {
135
- type: "user" | "serviceAccount" | "system";
136
135
  id: string;
137
- }, {
138
136
  type: "user" | "serviceAccount" | "system";
137
+ }, {
139
138
  id: string;
139
+ type: "user" | "serviceAccount" | "system";
140
140
  }>>;
141
141
  partitionKey: z.ZodString;
142
142
  } & {
@@ -246,14 +246,14 @@ export declare const EventSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [E
246
246
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>>;
247
247
  } & {
248
248
  type: z.ZodEnum<["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", ...("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")[]]>;
249
- topic: z.ZodEnum<["objects" | "telemetry" | "links" | "actions" | "schedules" | "rules" | "syncs" | "pipelines" | "workflows" | "datasets", ...("objects" | "telemetry" | "links" | "actions" | "schedules" | "rules" | "syncs" | "pipelines" | "workflows" | "datasets")[]]>;
249
+ topic: z.ZodEnum<["datasets" | "syncs" | "pipelines" | "workflows" | "rules" | "objects" | "actions" | "links" | "telemetry" | "schedules", ...("datasets" | "syncs" | "pipelines" | "workflows" | "rules" | "objects" | "actions" | "links" | "telemetry" | "schedules")[]]>;
250
250
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
251
251
  }, "strip", z.ZodTypeAny, {
252
252
  projectId: string;
253
- 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";
254
253
  id: string;
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
255
  payload: Record<string, unknown>;
256
- topic: "objects" | "telemetry" | "links" | "actions" | "schedules" | "rules" | "syncs" | "pipelines" | "workflows" | "datasets";
256
+ topic: "datasets" | "syncs" | "pipelines" | "workflows" | "rules" | "objects" | "actions" | "links" | "telemetry" | "schedules";
257
257
  partitionKey: string;
258
258
  schemaVersion: 1;
259
259
  occurredAt: string;
@@ -290,15 +290,15 @@ export declare const EventSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [E
290
290
  causationId?: string | undefined;
291
291
  idempotencyKey?: string | undefined;
292
292
  actor?: {
293
- type: "user" | "serviceAccount" | "system";
294
293
  id: string;
294
+ type: "user" | "serviceAccount" | "system";
295
295
  } | undefined;
296
296
  }, {
297
297
  projectId: string;
298
- 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";
299
298
  id: string;
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
300
  payload: Record<string, unknown>;
301
- topic: "objects" | "telemetry" | "links" | "actions" | "schedules" | "rules" | "syncs" | "pipelines" | "workflows" | "datasets";
301
+ topic: "datasets" | "syncs" | "pipelines" | "workflows" | "rules" | "objects" | "actions" | "links" | "telemetry" | "schedules";
302
302
  partitionKey: string;
303
303
  schemaVersion: 1;
304
304
  occurredAt: string;
@@ -335,8 +335,8 @@ export declare const EventSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [E
335
335
  causationId?: string | undefined;
336
336
  idempotencyKey?: string | undefined;
337
337
  actor?: {
338
- type: "user" | "serviceAccount" | "system";
339
338
  id: string;
339
+ type: "user" | "serviceAccount" | "system";
340
340
  } | undefined;
341
341
  }>]>;
342
342
  export declare const EventsResponseSchema: z.ZodObject<{
@@ -351,11 +351,11 @@ export declare const EventsResponseSchema: z.ZodObject<{
351
351
  type: z.ZodEnum<["user", "serviceAccount", "system"]>;
352
352
  id: z.ZodString;
353
353
  }, "strip", z.ZodTypeAny, {
354
- type: "user" | "serviceAccount" | "system";
355
354
  id: string;
356
- }, {
357
355
  type: "user" | "serviceAccount" | "system";
356
+ }, {
358
357
  id: string;
358
+ type: "user" | "serviceAccount" | "system";
359
359
  }>>;
360
360
  partitionKey: z.ZodString;
361
361
  } & {
@@ -465,14 +465,14 @@ export declare const EventsResponseSchema: z.ZodObject<{
465
465
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>>;
466
466
  } & {
467
467
  type: z.ZodEnum<["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", ...("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")[]]>;
468
- topic: z.ZodEnum<["objects" | "telemetry" | "links" | "actions" | "schedules" | "rules" | "syncs" | "pipelines" | "workflows" | "datasets", ...("objects" | "telemetry" | "links" | "actions" | "schedules" | "rules" | "syncs" | "pipelines" | "workflows" | "datasets")[]]>;
468
+ topic: z.ZodEnum<["datasets" | "syncs" | "pipelines" | "workflows" | "rules" | "objects" | "actions" | "links" | "telemetry" | "schedules", ...("datasets" | "syncs" | "pipelines" | "workflows" | "rules" | "objects" | "actions" | "links" | "telemetry" | "schedules")[]]>;
469
469
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
470
470
  }, "strip", z.ZodTypeAny, {
471
471
  projectId: string;
472
- 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";
473
472
  id: string;
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
474
  payload: Record<string, unknown>;
475
- topic: "objects" | "telemetry" | "links" | "actions" | "schedules" | "rules" | "syncs" | "pipelines" | "workflows" | "datasets";
475
+ topic: "datasets" | "syncs" | "pipelines" | "workflows" | "rules" | "objects" | "actions" | "links" | "telemetry" | "schedules";
476
476
  partitionKey: string;
477
477
  schemaVersion: 1;
478
478
  occurredAt: string;
@@ -509,15 +509,15 @@ export declare const EventsResponseSchema: z.ZodObject<{
509
509
  causationId?: string | undefined;
510
510
  idempotencyKey?: string | undefined;
511
511
  actor?: {
512
- type: "user" | "serviceAccount" | "system";
513
512
  id: string;
513
+ type: "user" | "serviceAccount" | "system";
514
514
  } | undefined;
515
515
  }, {
516
516
  projectId: string;
517
- 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";
518
517
  id: string;
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
519
  payload: Record<string, unknown>;
520
- topic: "objects" | "telemetry" | "links" | "actions" | "schedules" | "rules" | "syncs" | "pipelines" | "workflows" | "datasets";
520
+ topic: "datasets" | "syncs" | "pipelines" | "workflows" | "rules" | "objects" | "actions" | "links" | "telemetry" | "schedules";
521
521
  partitionKey: string;
522
522
  schemaVersion: 1;
523
523
  occurredAt: string;
@@ -554,18 +554,17 @@ export declare const EventsResponseSchema: z.ZodObject<{
554
554
  causationId?: string | undefined;
555
555
  idempotencyKey?: string | undefined;
556
556
  actor?: {
557
- type: "user" | "serviceAccount" | "system";
558
557
  id: string;
558
+ type: "user" | "serviceAccount" | "system";
559
559
  } | undefined;
560
560
  }>]>, "many">;
561
561
  }, "strip", z.ZodTypeAny, {
562
- count: number;
563
562
  events: ({
564
563
  projectId: string;
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
564
  id: string;
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";
567
566
  payload: Record<string, unknown>;
568
- topic: "objects" | "telemetry" | "links" | "actions" | "schedules" | "rules" | "syncs" | "pipelines" | "workflows" | "datasets";
567
+ topic: "datasets" | "syncs" | "pipelines" | "workflows" | "rules" | "objects" | "actions" | "links" | "telemetry" | "schedules";
569
568
  partitionKey: string;
570
569
  schemaVersion: 1;
571
570
  occurredAt: string;
@@ -602,21 +601,21 @@ export declare const EventsResponseSchema: z.ZodObject<{
602
601
  causationId?: string | undefined;
603
602
  idempotencyKey?: string | undefined;
604
603
  actor?: {
605
- type: "user" | "serviceAccount" | "system";
606
604
  id: string;
605
+ type: "user" | "serviceAccount" | "system";
607
606
  } | undefined;
608
607
  } | {
609
608
  [x: string]: any;
610
609
  type?: unknown;
611
610
  })[];
612
- }, {
613
611
  count: number;
612
+ }, {
614
613
  events: ({
615
614
  projectId: string;
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
615
  id: string;
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";
618
617
  payload: Record<string, unknown>;
619
- topic: "objects" | "telemetry" | "links" | "actions" | "schedules" | "rules" | "syncs" | "pipelines" | "workflows" | "datasets";
618
+ topic: "datasets" | "syncs" | "pipelines" | "workflows" | "rules" | "objects" | "actions" | "links" | "telemetry" | "schedules";
620
619
  partitionKey: string;
621
620
  schemaVersion: 1;
622
621
  occurredAt: string;
@@ -653,13 +652,14 @@ export declare const EventsResponseSchema: z.ZodObject<{
653
652
  causationId?: string | undefined;
654
653
  idempotencyKey?: string | undefined;
655
654
  actor?: {
656
- type: "user" | "serviceAccount" | "system";
657
655
  id: string;
656
+ type: "user" | "serviceAccount" | "system";
658
657
  } | undefined;
659
658
  } | {
660
659
  [x: string]: any;
661
660
  type?: unknown;
662
661
  })[];
662
+ count: number;
663
663
  }>;
664
664
  export {};
665
665
  //# sourceMappingURL=events.d.ts.map
@@ -15,33 +15,33 @@ 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" | "action" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | undefined;
19
- limit?: number | undefined;
18
+ kind?: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action" | "agent" | undefined;
20
19
  runId?: string | undefined;
20
+ limit?: number | undefined;
21
21
  afterCursor?: string | undefined;
22
22
  direction?: "forward" | "backward" | undefined;
23
23
  level?: "error" | "debug" | "info" | "warn" | undefined;
24
24
  beforeCursor?: string | undefined;
25
25
  }, {
26
- kind?: "workflow" | "action" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | undefined;
27
- limit?: number | undefined;
26
+ kind?: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action" | "agent" | undefined;
28
27
  runId?: string | undefined;
28
+ limit?: number | undefined;
29
29
  afterCursor?: string | undefined;
30
30
  direction?: "forward" | "backward" | undefined;
31
31
  level?: "error" | "debug" | "info" | "warn" | undefined;
32
32
  beforeCursor?: string | undefined;
33
33
  }>, {
34
- kind?: "workflow" | "action" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | undefined;
35
- limit?: number | undefined;
34
+ kind?: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action" | "agent" | undefined;
36
35
  runId?: string | undefined;
36
+ limit?: number | undefined;
37
37
  afterCursor?: string | undefined;
38
38
  direction?: "forward" | "backward" | undefined;
39
39
  level?: "error" | "debug" | "info" | "warn" | undefined;
40
40
  beforeCursor?: string | undefined;
41
41
  }, {
42
- kind?: "workflow" | "action" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | undefined;
43
- limit?: number | undefined;
42
+ kind?: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action" | "agent" | undefined;
44
43
  runId?: string | undefined;
44
+ limit?: number | undefined;
45
45
  afterCursor?: string | undefined;
46
46
  direction?: "forward" | "backward" | undefined;
47
47
  level?: "error" | "debug" | "info" | "warn" | undefined;
@@ -57,27 +57,27 @@ export declare const LogLineSchema: z.ZodObject<{
57
57
  kind: z.ZodEnum<["action", "agent", "pipeline", "projection", "sync", "webhook", "workflow"]>;
58
58
  id: z.ZodString;
59
59
  }, "strip", z.ZodTypeAny, {
60
- kind: "workflow" | "action" | "agent" | "webhook" | "sync" | "pipeline" | "projection";
61
60
  id: string;
61
+ kind: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action" | "agent";
62
62
  }, {
63
- kind: "workflow" | "action" | "agent" | "webhook" | "sync" | "pipeline" | "projection";
64
63
  id: string;
64
+ kind: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action" | "agent";
65
65
  }>;
66
66
  stepId: z.ZodOptional<z.ZodString>;
67
67
  phase: z.ZodOptional<z.ZodString>;
68
68
  attempt: z.ZodOptional<z.ZodNumber>;
69
69
  }, "strip", z.ZodTypeAny, {
70
70
  run: {
71
- kind: "workflow" | "action" | "agent" | "webhook" | "sync" | "pipeline" | "projection";
72
71
  id: string;
72
+ kind: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action" | "agent";
73
73
  };
74
74
  phase?: string | undefined;
75
75
  attempt?: number | undefined;
76
76
  stepId?: string | undefined;
77
77
  }, {
78
78
  run: {
79
- kind: "workflow" | "action" | "agent" | "webhook" | "sync" | "pipeline" | "projection";
80
79
  id: string;
80
+ kind: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action" | "agent";
81
81
  };
82
82
  phase?: string | undefined;
83
83
  attempt?: number | undefined;
@@ -89,8 +89,8 @@ export declare const LogLineSchema: z.ZodObject<{
89
89
  message: string;
90
90
  context: {
91
91
  run: {
92
- kind: "workflow" | "action" | "agent" | "webhook" | "sync" | "pipeline" | "projection";
93
92
  id: string;
93
+ kind: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action" | "agent";
94
94
  };
95
95
  phase?: string | undefined;
96
96
  attempt?: number | undefined;
@@ -104,8 +104,8 @@ export declare const LogLineSchema: z.ZodObject<{
104
104
  message: string;
105
105
  context: {
106
106
  run: {
107
- kind: "workflow" | "action" | "agent" | "webhook" | "sync" | "pipeline" | "projection";
108
107
  id: string;
108
+ kind: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action" | "agent";
109
109
  };
110
110
  phase?: string | undefined;
111
111
  attempt?: number | undefined;
@@ -127,27 +127,27 @@ export declare const LogsResponseSchema: z.ZodObject<{
127
127
  kind: z.ZodEnum<["action", "agent", "pipeline", "projection", "sync", "webhook", "workflow"]>;
128
128
  id: z.ZodString;
129
129
  }, "strip", z.ZodTypeAny, {
130
- kind: "workflow" | "action" | "agent" | "webhook" | "sync" | "pipeline" | "projection";
131
130
  id: string;
131
+ kind: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action" | "agent";
132
132
  }, {
133
- kind: "workflow" | "action" | "agent" | "webhook" | "sync" | "pipeline" | "projection";
134
133
  id: string;
134
+ kind: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action" | "agent";
135
135
  }>;
136
136
  stepId: z.ZodOptional<z.ZodString>;
137
137
  phase: z.ZodOptional<z.ZodString>;
138
138
  attempt: z.ZodOptional<z.ZodNumber>;
139
139
  }, "strip", z.ZodTypeAny, {
140
140
  run: {
141
- kind: "workflow" | "action" | "agent" | "webhook" | "sync" | "pipeline" | "projection";
142
141
  id: string;
142
+ kind: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action" | "agent";
143
143
  };
144
144
  phase?: string | undefined;
145
145
  attempt?: number | undefined;
146
146
  stepId?: string | undefined;
147
147
  }, {
148
148
  run: {
149
- kind: "workflow" | "action" | "agent" | "webhook" | "sync" | "pipeline" | "projection";
150
149
  id: string;
150
+ kind: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action" | "agent";
151
151
  };
152
152
  phase?: string | undefined;
153
153
  attempt?: number | undefined;
@@ -159,8 +159,8 @@ export declare const LogsResponseSchema: z.ZodObject<{
159
159
  message: string;
160
160
  context: {
161
161
  run: {
162
- kind: "workflow" | "action" | "agent" | "webhook" | "sync" | "pipeline" | "projection";
163
162
  id: string;
163
+ kind: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action" | "agent";
164
164
  };
165
165
  phase?: string | undefined;
166
166
  attempt?: number | undefined;
@@ -174,8 +174,8 @@ export declare const LogsResponseSchema: z.ZodObject<{
174
174
  message: string;
175
175
  context: {
176
176
  run: {
177
- kind: "workflow" | "action" | "agent" | "webhook" | "sync" | "pipeline" | "projection";
178
177
  id: string;
178
+ kind: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action" | "agent";
179
179
  };
180
180
  phase?: string | undefined;
181
181
  attempt?: number | undefined;
@@ -195,8 +195,8 @@ export declare const LogsResponseSchema: z.ZodObject<{
195
195
  message: string;
196
196
  context: {
197
197
  run: {
198
- kind: "workflow" | "action" | "agent" | "webhook" | "sync" | "pipeline" | "projection";
199
198
  id: string;
199
+ kind: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action" | "agent";
200
200
  };
201
201
  phase?: string | undefined;
202
202
  attempt?: number | undefined;
@@ -215,8 +215,8 @@ export declare const LogsResponseSchema: z.ZodObject<{
215
215
  message: string;
216
216
  context: {
217
217
  run: {
218
- kind: "workflow" | "action" | "agent" | "webhook" | "sync" | "pipeline" | "projection";
219
218
  id: string;
219
+ kind: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action" | "agent";
220
220
  };
221
221
  phase?: string | undefined;
222
222
  attempt?: number | undefined;
@@ -77,10 +77,10 @@ export declare const ObjectsQuerySchema: z.ZodEffects<z.ZodObject<{
77
77
  orderBy: z.ZodOptional<z.ZodEnum<["createdAt", "updatedAt", "primaryId"]>>;
78
78
  order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
79
79
  }, "strip", z.ZodTypeAny, {
80
+ objectTypeId?: string | undefined;
80
81
  limit?: number | undefined;
81
82
  offset?: number | undefined;
82
83
  order?: "asc" | "desc" | undefined;
83
- objectTypeId?: string | undefined;
84
84
  idPrefix?: string | undefined;
85
85
  idSuffix?: string | undefined;
86
86
  updatedAfter?: Date | undefined;
@@ -89,10 +89,10 @@ export declare const ObjectsQuerySchema: z.ZodEffects<z.ZodObject<{
89
89
  createdBefore?: Date | undefined;
90
90
  orderBy?: "primaryId" | "createdAt" | "updatedAt" | undefined;
91
91
  }, {
92
+ objectTypeId?: string | undefined;
92
93
  limit?: string | undefined;
93
94
  offset?: string | undefined;
94
95
  order?: "asc" | "desc" | undefined;
95
- objectTypeId?: string | undefined;
96
96
  idPrefix?: string | undefined;
97
97
  idSuffix?: string | undefined;
98
98
  updatedAfter?: string | undefined;
@@ -101,10 +101,10 @@ export declare const ObjectsQuerySchema: z.ZodEffects<z.ZodObject<{
101
101
  createdBefore?: string | undefined;
102
102
  orderBy?: "primaryId" | "createdAt" | "updatedAt" | undefined;
103
103
  }>, {
104
+ objectTypeId?: string | undefined;
104
105
  limit?: number | undefined;
105
106
  offset?: number | undefined;
106
107
  order?: "asc" | "desc" | undefined;
107
- objectTypeId?: string | undefined;
108
108
  idPrefix?: string | undefined;
109
109
  idSuffix?: string | undefined;
110
110
  updatedAfter?: Date | undefined;
@@ -113,10 +113,10 @@ export declare const ObjectsQuerySchema: z.ZodEffects<z.ZodObject<{
113
113
  createdBefore?: Date | undefined;
114
114
  orderBy?: "primaryId" | "createdAt" | "updatedAt" | undefined;
115
115
  }, {
116
+ objectTypeId?: string | undefined;
116
117
  limit?: string | undefined;
117
118
  offset?: string | undefined;
118
119
  order?: "asc" | "desc" | undefined;
119
- objectTypeId?: string | undefined;
120
120
  idPrefix?: string | undefined;
121
121
  idSuffix?: string | undefined;
122
122
  updatedAfter?: string | undefined;
@@ -223,14 +223,14 @@ export declare const TwinObjectSchema: z.ZodObject<{
223
223
  createdAt: z.ZodString;
224
224
  updatedAt: z.ZodString;
225
225
  }, "strip", z.ZodTypeAny, {
226
- objectTypeId: string;
227
226
  properties: Record<string, unknown>;
227
+ objectTypeId: string;
228
228
  primaryId: string;
229
229
  createdAt: string;
230
230
  updatedAt: string;
231
231
  }, {
232
- objectTypeId: string;
233
232
  properties: Record<string, unknown>;
233
+ objectTypeId: string;
234
234
  primaryId: string;
235
235
  createdAt: string;
236
236
  updatedAt: string;
@@ -243,14 +243,14 @@ export declare const ObjectListResponseSchema: z.ZodObject<{
243
243
  createdAt: z.ZodString;
244
244
  updatedAt: z.ZodString;
245
245
  }, "strip", z.ZodTypeAny, {
246
- objectTypeId: string;
247
246
  properties: Record<string, unknown>;
247
+ objectTypeId: string;
248
248
  primaryId: string;
249
249
  createdAt: string;
250
250
  updatedAt: string;
251
251
  }, {
252
- objectTypeId: string;
253
252
  properties: Record<string, unknown>;
253
+ objectTypeId: string;
254
254
  primaryId: string;
255
255
  createdAt: string;
256
256
  updatedAt: string;
@@ -259,8 +259,8 @@ export declare const ObjectListResponseSchema: z.ZodObject<{
259
259
  total: z.ZodNumber;
260
260
  }, "strip", z.ZodTypeAny, {
261
261
  objects: {
262
- objectTypeId: string;
263
262
  properties: Record<string, unknown>;
263
+ objectTypeId: string;
264
264
  primaryId: string;
265
265
  createdAt: string;
266
266
  updatedAt: string;
@@ -269,8 +269,8 @@ export declare const ObjectListResponseSchema: z.ZodObject<{
269
269
  total: number;
270
270
  }, {
271
271
  objects: {
272
- objectTypeId: string;
273
272
  properties: Record<string, unknown>;
273
+ objectTypeId: string;
274
274
  primaryId: string;
275
275
  createdAt: string;
276
276
  updatedAt: string;