@sixb/server 0.2.4 → 0.2.6

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 (90) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +877 -89
  4. package/dist/index.js.map +26 -25
  5. package/dist/live/room.d.ts +2 -0
  6. package/dist/live/room.d.ts.map +1 -1
  7. package/dist/registerRoutes.d.ts +1 -0
  8. package/dist/registerRoutes.d.ts.map +1 -1
  9. package/dist/routes/agent-approvals.d.ts +22 -0
  10. package/dist/routes/agent-approvals.d.ts.map +1 -1
  11. package/dist/routes/agent-computers.d.ts +36 -0
  12. package/dist/routes/agent-computers.d.ts.map +1 -1
  13. package/dist/routes/agent-runners.d.ts +5 -1
  14. package/dist/routes/agent-runners.d.ts.map +1 -1
  15. package/dist/routes/agent-thread-reads.d.ts +82 -0
  16. package/dist/routes/agent-thread-reads.d.ts.map +1 -0
  17. package/dist/routes/agents.d.ts +1760 -86
  18. package/dist/routes/agents.d.ts.map +1 -1
  19. package/dist/routes/ai-accounting.d.ts.map +1 -1
  20. package/dist/routes/artifact-frames.d.ts +3 -3
  21. package/dist/routes/artifact-frames.d.ts.map +1 -1
  22. package/dist/routes/artifacts.d.ts +287 -21
  23. package/dist/routes/artifacts.d.ts.map +1 -1
  24. package/dist/routes/auth.d.ts +7 -7
  25. package/dist/routes/events.d.ts +4 -4
  26. package/dist/routes/links.d.ts +8 -0
  27. package/dist/routes/links.d.ts.map +1 -1
  28. package/dist/routes/model-generations.d.ts +6 -0
  29. package/dist/routes/model-generations.d.ts.map +1 -1
  30. package/dist/routes/objects.d.ts +8 -0
  31. package/dist/routes/objects.d.ts.map +1 -1
  32. package/dist/routes/observed-agent-threads.d.ts +22 -0
  33. package/dist/routes/observed-agent-threads.d.ts.map +1 -1
  34. package/dist/routes/projections.d.ts +2 -0
  35. package/dist/routes/projections.d.ts.map +1 -1
  36. package/dist/routes/status.d.ts +4 -1
  37. package/dist/routes/status.d.ts.map +1 -1
  38. package/dist/routes/syncs.d.ts +175 -12
  39. package/dist/routes/syncs.d.ts.map +1 -1
  40. package/dist/routes/workflows.d.ts +6 -6
  41. package/dist/routes/ws/agents.d.ts.map +1 -1
  42. package/dist/routes/ws/events.d.ts +6 -6
  43. package/dist/schemas/activity.d.ts +4 -4
  44. package/dist/schemas/agents.d.ts +7697 -262
  45. package/dist/schemas/agents.d.ts.map +1 -1
  46. package/dist/schemas/ai-accounting.d.ts +3 -0
  47. package/dist/schemas/ai-accounting.d.ts.map +1 -1
  48. package/dist/schemas/artifacts.d.ts +676 -36
  49. package/dist/schemas/artifacts.d.ts.map +1 -1
  50. package/dist/schemas/auth.d.ts +8 -8
  51. package/dist/schemas/common.d.ts.map +1 -1
  52. package/dist/schemas/events.d.ts +36 -24
  53. package/dist/schemas/events.d.ts.map +1 -1
  54. package/dist/schemas/lineage.d.ts +112 -0
  55. package/dist/schemas/lineage.d.ts.map +1 -1
  56. package/dist/schemas/models.d.ts +46 -0
  57. package/dist/schemas/models.d.ts.map +1 -1
  58. package/dist/schemas/projections.d.ts +11 -0
  59. package/dist/schemas/projections.d.ts.map +1 -1
  60. package/dist/schemas/syncs.d.ts +724 -25
  61. package/dist/schemas/syncs.d.ts.map +1 -1
  62. package/dist/schemas/workflows.d.ts +22 -22
  63. package/dist/server.d.ts +16 -1
  64. package/dist/server.d.ts.map +1 -1
  65. package/package.json +5 -5
  66. package/src/index.ts +6 -1
  67. package/src/live/README.md +9 -6
  68. package/src/live/room.ts +16 -8
  69. package/src/registerRoutes.ts +4 -1
  70. package/src/routes/agent-computers.ts +7 -6
  71. package/src/routes/agent-runners.ts +15 -4
  72. package/src/routes/agent-thread-reads.ts +67 -0
  73. package/src/routes/agents.ts +331 -20
  74. package/src/routes/ai-accounting.ts +1 -0
  75. package/src/routes/artifact-frames.ts +22 -9
  76. package/src/routes/artifacts.ts +124 -3
  77. package/src/routes/model-generations.ts +1 -1
  78. package/src/routes/observed-agent-threads.ts +3 -4
  79. package/src/routes/status.ts +18 -1
  80. package/src/routes/syncs.ts +135 -8
  81. package/src/routes/ws/agents.ts +43 -3
  82. package/src/schemas/agents.ts +148 -12
  83. package/src/schemas/ai-accounting.ts +12 -0
  84. package/src/schemas/artifacts.ts +66 -1
  85. package/src/schemas/common.ts +15 -9
  86. package/src/schemas/events.ts +1 -0
  87. package/src/schemas/models.ts +10 -0
  88. package/src/schemas/projections.ts +1 -0
  89. package/src/schemas/syncs.ts +63 -1
  90. package/src/server.ts +208 -14
@@ -91,6 +91,10 @@ export declare function registerLinkRoutes(app: Elysia, _host: SixbHostView): El
91
91
  type: "ontology.indexVectors";
92
92
  indexingId: string;
93
93
  };
94
+ } | {
95
+ path: string;
96
+ type: "script";
97
+ runId: string;
94
98
  } | undefined;
95
99
  requestedBy?: {
96
100
  id: string;
@@ -120,6 +124,10 @@ export declare function registerLinkRoutes(app: Elysia, _host: SixbHostView): El
120
124
  type: "ontology.indexVectors";
121
125
  indexingId: string;
122
126
  };
127
+ } | {
128
+ path: string;
129
+ type: "script";
130
+ runId: string;
123
131
  } | undefined;
124
132
  requestedBy?: {
125
133
  id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"links.d.ts","sourceRoot":"","sources":["../../src/routes/links.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AASpC,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6ClE"}
1
+ {"version":3,"file":"links.d.ts","sourceRoot":"","sources":["../../src/routes/links.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AASpC,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6ClE"}
@@ -338,6 +338,12 @@ export declare function registerModelGenerationRoutes(app: Elysia, host: SixbHos
338
338
  amountNanos: string;
339
339
  } | undefined;
340
340
  };
341
+ words?: {
342
+ text: string;
343
+ startMs: number;
344
+ endMs: number;
345
+ speaker?: string | undefined;
346
+ }[] | undefined;
341
347
  };
342
348
  404: {
343
349
  error: string;
@@ -1 +1 @@
1
- {"version":3,"file":"model-generations.d.ts","sourceRoot":"","sources":["../../src/routes/model-generations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAsD,YAAY,EAAE,MAAM,YAAY,CAAA;AAUlG,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAsJpC;;;;GAIG;AACH,wBAAgB,6BAA6B,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgI5E"}
1
+ {"version":3,"file":"model-generations.d.ts","sourceRoot":"","sources":["../../src/routes/model-generations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAsD,YAAY,EAAE,MAAM,YAAY,CAAA;AAUlG,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAsJpC;;;;GAIG;AACH,wBAAgB,6BAA6B,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgI5E"}
@@ -528,6 +528,10 @@ export declare function registerObjectRoutes(app: Elysia, host: SixbHostView): E
528
528
  type: "ontology.indexVectors";
529
529
  indexingId: string;
530
530
  };
531
+ } | {
532
+ path: string;
533
+ type: "script";
534
+ runId: string;
531
535
  } | undefined;
532
536
  requestedBy?: {
533
537
  id: string;
@@ -557,6 +561,10 @@ export declare function registerObjectRoutes(app: Elysia, host: SixbHostView): E
557
561
  type: "ontology.indexVectors";
558
562
  indexingId: string;
559
563
  };
564
+ } | {
565
+ path: string;
566
+ type: "script";
567
+ runId: string;
560
568
  } | undefined;
561
569
  requestedBy?: {
562
570
  id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"objects.d.ts","sourceRoot":"","sources":["../../src/routes/objects.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,YAAY,EAClB,MAAM,YAAY,CAAA;AAInB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAmGpC,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE;IAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE;;;;;;;EAyCvF;AAgID,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sDArL1B,MAAM;oEAAkC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0DAA/C,MAAM;wEAAkC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0DAA/C,MAAM;wEAAkC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0DAA/C,MAAM;wEAAkC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAq0BxF"}
@@ -62,6 +62,13 @@ export declare function registerObservedAgentThreadRoutes(app: Elysia, host: Six
62
62
  activeRunId: string | null;
63
63
  messageCount: number;
64
64
  updatedAt: string;
65
+ read?: {
66
+ threadId: string;
67
+ throughSeq: number;
68
+ headSeq: number;
69
+ unread: number;
70
+ readAt?: string | undefined;
71
+ } | undefined;
65
72
  title?: string | undefined;
66
73
  approvalMode?: "manual" | "accept-edits" | "auto" | undefined;
67
74
  approvalModeSource?: "default" | "thread" | "fallback" | "run" | undefined;
@@ -95,6 +102,17 @@ export declare function registerObservedAgentThreadRoutes(app: Elysia, host: Six
95
102
  }[] | undefined;
96
103
  movedAt?: string | undefined;
97
104
  lastMessageAt?: string | undefined;
105
+ lastRun?: {
106
+ status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
107
+ id: string;
108
+ requestedBy?: {
109
+ id: string;
110
+ type: "user" | "serviceAccount";
111
+ } | undefined;
112
+ completedAt?: string | undefined;
113
+ finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
114
+ errorCode?: "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | undefined;
115
+ } | undefined;
98
116
  };
99
117
  404: {
100
118
  error: string;
@@ -451,6 +469,10 @@ export declare function registerObservedAgentThreadRoutes(app: Elysia, host: Six
451
469
  } | undefined;
452
470
  finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
453
471
  parentRunId?: string | undefined;
472
+ computer?: {
473
+ id: string;
474
+ folder: string;
475
+ } | undefined;
454
476
  runsOn?: "computer" | undefined;
455
477
  diagnostics?: {
456
478
  code: "step_limit_reached" | "output_limit_reached";
@@ -1 +1 @@
1
- {"version":3,"file":"observed-agent-threads.d.ts","sourceRoot":"","sources":["../../src/routes/observed-agent-threads.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAmB,YAAY,EAAE,MAAM,YAAY,CAAA;AAC/D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAyCpC;;;;GAIG;AACH,wBAAgB,iCAAiC,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;GAgMhF"}
@@ -139,6 +139,7 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
139
139
  sourceTimestamp: string;
140
140
  };
141
141
  users?: Record<string, "id" | "email"> | undefined;
142
+ missing?: "remove" | undefined;
142
143
  }[];
143
144
  linkProjections: {
144
145
  id: string;
@@ -492,6 +493,7 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
492
493
  sourceTimestamp: string;
493
494
  };
494
495
  users?: Record<string, "id" | "email"> | undefined;
496
+ missing?: "remove" | undefined;
495
497
  } | {
496
498
  id: string;
497
499
  targetObjectTypeId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"projections.d.ts","sourceRoot":"","sources":["../../src/routes/projections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAIV,YAAY,EAGb,MAAM,YAAY,CAAA;AAEnB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAmHpC,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgIvE"}
@@ -1,6 +1,9 @@
1
1
  import type { SixbHostView } from "@sixb/core";
2
2
  import type { Elysia } from "elysia";
3
- export declare function registerStatusRoutes(app: Elysia, host: SixbHostView): Elysia<"", {
3
+ export interface StatusRouteOptions {
4
+ readonly isStopping?: () => boolean;
5
+ }
6
+ export declare function registerStatusRoutes(app: Elysia, host: SixbHostView, options?: StatusRouteOptions): Elysia<"", {
4
7
  decorator: {};
5
8
  store: {};
6
9
  derive: {};
@@ -1 +1 @@
1
- {"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../src/routes/status.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAOpC,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDnE"}
1
+ {"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../src/routes/status.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAQpC,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,OAAO,CAAA;CACpC;AAED,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,YAAY,EAClB,OAAO,GAAE,kBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DjC"}
@@ -1,5 +1,18 @@
1
- import type { SixbHostView } from "@sixb/core";
1
+ import type { SixbHostView, SyncAccount } from "@sixb/core";
2
2
  import type { Elysia } from "elysia";
3
+ /**
4
+ * Where a sync's accounts stand, by the latest run of each. An account counts once: running,
5
+ * needing reconnecting, failing or synced. One whose latest run was cancelled, or that never ran,
6
+ * is in `total` alone.
7
+ */
8
+ export declare function summarizeSyncAccounts(syncId: string, accounts: readonly SyncAccount[]): {
9
+ lastSyncedAt?: string | undefined;
10
+ total: number;
11
+ running: number;
12
+ needsReconnecting: number;
13
+ failing: number;
14
+ synced: number;
15
+ };
3
16
  export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Elysia<"", {
4
17
  decorator: {};
5
18
  store: {};
@@ -44,13 +57,14 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
44
57
  attempt: number;
45
58
  datasetId: string;
46
59
  syncId: string;
47
- error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
60
+ error?: import("@sixb/core").SixbFailure<"connector.authorization_required" | "internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
48
61
  startedAt?: string | undefined;
49
62
  finishedAt?: string | undefined;
50
63
  output?: {
51
64
  datasetId: string;
52
65
  versionId: string;
53
66
  } | undefined;
67
+ connectionId?: string | undefined;
54
68
  expectedLatestVersionId?: string | undefined;
55
69
  commitMessage?: string | undefined;
56
70
  rowsRead?: number | undefined;
@@ -72,6 +86,14 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
72
86
  partitionBy?: string[] | undefined;
73
87
  };
74
88
  };
89
+ accounts?: {
90
+ total: number;
91
+ running: number;
92
+ failing: number;
93
+ needsReconnecting: number;
94
+ synced: number;
95
+ lastSyncedAt?: string | undefined;
96
+ } | undefined;
75
97
  }[];
76
98
  422: {
77
99
  type: "validation";
@@ -118,13 +140,14 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
118
140
  attempt: number;
119
141
  datasetId: string;
120
142
  syncId: string;
121
- error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
143
+ error?: import("@sixb/core").SixbFailure<"connector.authorization_required" | "internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
122
144
  startedAt?: string | undefined;
123
145
  finishedAt?: string | undefined;
124
146
  output?: {
125
147
  datasetId: string;
126
148
  versionId: string;
127
149
  } | undefined;
150
+ connectionId?: string | undefined;
128
151
  expectedLatestVersionId?: string | undefined;
129
152
  commitMessage?: string | undefined;
130
153
  rowsRead?: number | undefined;
@@ -146,6 +169,14 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
146
169
  partitionBy?: string[] | undefined;
147
170
  };
148
171
  };
172
+ accounts?: {
173
+ total: number;
174
+ running: number;
175
+ failing: number;
176
+ needsReconnecting: number;
177
+ synced: number;
178
+ lastSyncedAt?: string | undefined;
179
+ } | undefined;
149
180
  };
150
181
  404: {
151
182
  error: string;
@@ -164,6 +195,129 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
164
195
  };
165
196
  };
166
197
  };
198
+ } & {
199
+ api: {
200
+ connectors: {
201
+ ":connectorId": {
202
+ accounts: {
203
+ get: {
204
+ body: unknown;
205
+ params: {
206
+ connectorId: string;
207
+ };
208
+ query: unknown;
209
+ headers: unknown;
210
+ response: {
211
+ 200: {
212
+ accounts: {
213
+ connection: {
214
+ id: string;
215
+ owner: {
216
+ type: "project";
217
+ } | {
218
+ id: string;
219
+ type: "user";
220
+ };
221
+ slot: string;
222
+ account: {
223
+ id: string;
224
+ label: string;
225
+ };
226
+ };
227
+ latestRuns: {
228
+ status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
229
+ projectId: string;
230
+ id: string;
231
+ mode: "append" | "merge" | "snapshot";
232
+ queuedAt: string;
233
+ attempt: number;
234
+ datasetId: string;
235
+ syncId: string;
236
+ error?: import("@sixb/core").SixbFailure<"connector.authorization_required" | "internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
237
+ startedAt?: string | undefined;
238
+ finishedAt?: string | undefined;
239
+ output?: {
240
+ datasetId: string;
241
+ versionId: string;
242
+ } | undefined;
243
+ connectionId?: string | undefined;
244
+ expectedLatestVersionId?: string | undefined;
245
+ commitMessage?: string | undefined;
246
+ rowsRead?: number | undefined;
247
+ }[];
248
+ }[];
249
+ };
250
+ 422: {
251
+ type: "validation";
252
+ on: string;
253
+ summary?: string;
254
+ message?: string;
255
+ found?: unknown;
256
+ property?: string;
257
+ expected?: string;
258
+ };
259
+ };
260
+ };
261
+ };
262
+ };
263
+ };
264
+ };
265
+ } & {
266
+ api: {
267
+ connectors: {
268
+ ":connectorId": {
269
+ connections: {
270
+ ":connectionId": {
271
+ "sync-runs": {
272
+ get: {
273
+ body: unknown;
274
+ params: {
275
+ connectorId: string;
276
+ connectionId: string;
277
+ };
278
+ query: unknown;
279
+ headers: unknown;
280
+ response: {
281
+ 200: {
282
+ runs: {
283
+ status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
284
+ projectId: string;
285
+ id: string;
286
+ mode: "append" | "merge" | "snapshot";
287
+ queuedAt: string;
288
+ attempt: number;
289
+ datasetId: string;
290
+ syncId: string;
291
+ error?: import("@sixb/core").SixbFailure<"connector.authorization_required" | "internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
292
+ startedAt?: string | undefined;
293
+ finishedAt?: string | undefined;
294
+ output?: {
295
+ datasetId: string;
296
+ versionId: string;
297
+ } | undefined;
298
+ connectionId?: string | undefined;
299
+ expectedLatestVersionId?: string | undefined;
300
+ commitMessage?: string | undefined;
301
+ rowsRead?: number | undefined;
302
+ }[];
303
+ };
304
+ 422: {
305
+ type: "validation";
306
+ on: string;
307
+ summary?: string;
308
+ message?: string;
309
+ found?: unknown;
310
+ property?: string;
311
+ expected?: string;
312
+ };
313
+ };
314
+ };
315
+ };
316
+ };
317
+ };
318
+ };
319
+ };
320
+ };
167
321
  } & {
168
322
  api: {
169
323
  "sync-runs": {
@@ -178,6 +332,7 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
178
332
  offset?: string | undefined;
179
333
  order?: "asc" | "desc" | undefined;
180
334
  datasetId?: string | undefined;
335
+ connectionId?: string | undefined;
181
336
  syncId?: string | undefined;
182
337
  };
183
338
  headers: unknown;
@@ -192,13 +347,14 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
192
347
  attempt: number;
193
348
  datasetId: string;
194
349
  syncId: string;
195
- error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
350
+ error?: import("@sixb/core").SixbFailure<"connector.authorization_required" | "internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
196
351
  startedAt?: string | undefined;
197
352
  finishedAt?: string | undefined;
198
353
  output?: {
199
354
  datasetId: string;
200
355
  versionId: string;
201
356
  } | undefined;
357
+ connectionId?: string | undefined;
202
358
  expectedLatestVersionId?: string | undefined;
203
359
  commitMessage?: string | undefined;
204
360
  rowsRead?: number | undefined;
@@ -232,6 +388,7 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
232
388
  runs: {
233
389
  post: {
234
390
  body: {
391
+ connectionId?: string | undefined;
235
392
  expectedLatestVersionId?: string | undefined;
236
393
  commitMessage?: string | undefined;
237
394
  };
@@ -246,10 +403,13 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
246
403
  code?: import("@sixb/core").SixbErrorCode;
247
404
  details?: import("@sixb/core").ReadonlyJsonValue;
248
405
  } | {
249
- runId: string;
250
- jobId: string;
251
- syncId: string;
252
- queuedAt: string;
406
+ runs: {
407
+ runId: string;
408
+ jobId: string;
409
+ syncId: string;
410
+ connectionId: string | undefined;
411
+ queuedAt: string;
412
+ }[];
253
413
  };
254
414
  404: {
255
415
  error: string;
@@ -261,10 +421,13 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
261
421
  error: string;
262
422
  };
263
423
  202: {
264
- runId: string;
265
- queuedAt: string;
266
- jobId: string;
267
- syncId: string;
424
+ runs: {
425
+ runId: string;
426
+ queuedAt: string;
427
+ jobId: string;
428
+ syncId: string;
429
+ connectionId?: string | undefined;
430
+ }[];
268
431
  };
269
432
  422: {
270
433
  type: "validation";
@@ -1 +1 @@
1
- {"version":3,"file":"syncs.d.ts","sourceRoot":"","sources":["../../src/routes/syncs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAkB,MAAM,YA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8LjE"}
@@ -58,7 +58,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
58
58
  output: Record<string, import("../schemas/common").JsonValue>;
59
59
  })[];
60
60
  latestRun: {
61
- status: "succeeded" | "failed" | "cancelled" | "running" | "waiting" | "queued";
61
+ status: "succeeded" | "failed" | "cancelled" | "running" | "queued" | "waiting";
62
62
  projectId: string;
63
63
  id: string;
64
64
  requestedBy: {
@@ -131,7 +131,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
131
131
  output: Record<string, import("../schemas/common").JsonValue>;
132
132
  })[];
133
133
  latestRun: {
134
- status: "succeeded" | "failed" | "cancelled" | "running" | "waiting" | "queued";
134
+ status: "succeeded" | "failed" | "cancelled" | "running" | "queued" | "waiting";
135
135
  projectId: string;
136
136
  id: string;
137
137
  requestedBy: {
@@ -475,7 +475,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
475
475
  body: unknown;
476
476
  params: {};
477
477
  query: {
478
- status?: "succeeded" | "failed" | "cancelled" | "running" | "waiting" | "queued" | undefined;
478
+ status?: "succeeded" | "failed" | "cancelled" | "running" | "queued" | "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: "succeeded" | "failed" | "cancelled" | "running" | "waiting" | "queued";
490
+ status: "succeeded" | "failed" | "cancelled" | "running" | "queued" | "waiting";
491
491
  projectId: string;
492
492
  id: string;
493
493
  requestedBy: {
@@ -536,7 +536,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
536
536
  response: {
537
537
  200: {
538
538
  run: {
539
- status: "succeeded" | "failed" | "cancelled" | "running" | "waiting" | "queued";
539
+ status: "succeeded" | "failed" | "cancelled" | "running" | "queued" | "waiting";
540
540
  projectId: string;
541
541
  id: string;
542
542
  requestedBy: {
@@ -849,7 +849,7 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
849
849
  response: {
850
850
  200: {
851
851
  run: {
852
- status: "succeeded" | "failed" | "cancelled" | "running" | "waiting" | "queued";
852
+ status: "succeeded" | "failed" | "cancelled" | "running" | "queued" | "waiting";
853
853
  projectId: string;
854
854
  id: string;
855
855
  requestedBy: {
@@ -1 +1 @@
1
- {"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../../src/routes/ws/agents.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,kBAAkB,EAExB,MAAM,2BAA2B,CAAA;AAOlC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,uCAAuC,CAAA;AAEjE,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;AAgC9C,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAK5B,CAAA;AAMF,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,GACpD;IACE,EAAE,EAAE,IAAI,CAAA;IACR,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;CAC/C,GACD;IACE,EAAE,EAAE,KAAK,CAAA;IACT,KAAK,EAAE,MAAM,CAAA;CACd,CAcJ;AAED;;;GAGG;AACH,wBAAsB,uBAAuB,CAC3C,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC;IAAE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AAM,CAAA;CAAE,CAAC,CAMxD;AAED;;;GAGG;AACH,wBAAsB,4BAA4B,CAChD,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,kBAAkB,GACxB,OAAO,CAAC,OAAO,CAAC,CAMlB;AAED,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCxE"}
@@ -4,8 +4,8 @@ import type { SixbServer } from "../../server";
4
4
  import type { SharedSockets } from "./shared-sockets";
5
5
  declare const SubscriptionMessageSchema: z.ZodUnion<[z.ZodObject<{
6
6
  type: z.ZodLiteral<"subscribe">;
7
- topic: z.ZodOptional<z.ZodEnum<["objects" | "datasets" | "workflows" | "syncs" | "pipelines" | "rules" | "artifacts" | "schedules" | "users" | "telemetry" | "links", ...("objects" | "datasets" | "workflows" | "syncs" | "pipelines" | "rules" | "artifacts" | "schedules" | "users" | "telemetry" | "links")[]]>>;
8
- 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" | "user.joined" | "user.suspended" | "user.reactivated" | "user.invited" | "user.profile.updated" | "artifact.updated" | "artifact.commented", ...("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" | "user.joined" | "user.suspended" | "user.reactivated" | "user.invited" | "user.profile.updated" | "artifact.updated" | "artifact.commented")[]]>, "many">>;
7
+ topic: z.ZodOptional<z.ZodEnum<["objects" | "datasets" | "workflows" | "syncs" | "pipelines" | "rules" | "artifacts" | "schedules" | "users" | "telemetry" | "links" | "connectors", ...("objects" | "datasets" | "workflows" | "syncs" | "pipelines" | "rules" | "artifacts" | "schedules" | "users" | "telemetry" | "links" | "connectors")[]]>>;
8
+ 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" | "user.joined" | "user.suspended" | "user.reactivated" | "user.invited" | "user.profile.updated" | "artifact.updated" | "artifact.commented" | "connector.connection.connected" | "connector.connection.disconnected", ...("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" | "user.joined" | "user.suspended" | "user.reactivated" | "user.invited" | "user.profile.updated" | "artifact.updated" | "artifact.commented" | "connector.connection.connected" | "connector.connection.disconnected")[]]>, "many">>;
9
9
  objectTypeId: z.ZodOptional<z.ZodString>;
10
10
  primaryId: z.ZodOptional<z.ZodString>;
11
11
  runId: z.ZodOptional<z.ZodString>;
@@ -17,8 +17,8 @@ declare const SubscriptionMessageSchema: z.ZodUnion<[z.ZodObject<{
17
17
  runId?: string | undefined;
18
18
  primaryId?: string | undefined;
19
19
  limit?: number | undefined;
20
- 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" | "user.joined" | "user.suspended" | "user.reactivated" | "user.invited" | "user.profile.updated" | "artifact.updated" | "artifact.commented")[] | undefined;
21
- topic?: "objects" | "datasets" | "workflows" | "syncs" | "pipelines" | "rules" | "artifacts" | "schedules" | "users" | "telemetry" | "links" | undefined;
20
+ 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" | "user.joined" | "user.suspended" | "user.reactivated" | "user.invited" | "user.profile.updated" | "artifact.updated" | "artifact.commented" | "connector.connection.connected" | "connector.connection.disconnected")[] | undefined;
21
+ topic?: "objects" | "datasets" | "workflows" | "syncs" | "pipelines" | "rules" | "artifacts" | "schedules" | "users" | "telemetry" | "links" | "connectors" | undefined;
22
22
  afterCursor?: string | undefined;
23
23
  }, {
24
24
  type: "subscribe";
@@ -26,8 +26,8 @@ declare const SubscriptionMessageSchema: z.ZodUnion<[z.ZodObject<{
26
26
  runId?: string | undefined;
27
27
  primaryId?: string | undefined;
28
28
  limit?: number | undefined;
29
- 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" | "user.joined" | "user.suspended" | "user.reactivated" | "user.invited" | "user.profile.updated" | "artifact.updated" | "artifact.commented")[] | undefined;
30
- topic?: "objects" | "datasets" | "workflows" | "syncs" | "pipelines" | "rules" | "artifacts" | "schedules" | "users" | "telemetry" | "links" | undefined;
29
+ 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" | "user.joined" | "user.suspended" | "user.reactivated" | "user.invited" | "user.profile.updated" | "artifact.updated" | "artifact.commented" | "connector.connection.connected" | "connector.connection.disconnected")[] | undefined;
30
+ topic?: "objects" | "datasets" | "workflows" | "syncs" | "pipelines" | "rules" | "artifacts" | "schedules" | "users" | "telemetry" | "links" | "connectors" | undefined;
31
31
  afterCursor?: string | undefined;
32
32
  }>, z.ZodObject<{
33
33
  type: z.ZodLiteral<"unsubscribe">;
@@ -623,7 +623,7 @@ export declare const ActivityVisitTimelineSchema: z.ZodObject<{
623
623
  runVisible: z.ZodBoolean;
624
624
  }, "strip", z.ZodTypeAny, {
625
625
  at: string;
626
- status: "succeeded" | "failed" | "cancelled" | "running" | "waiting" | "queued" | "incomplete";
626
+ status: "succeeded" | "failed" | "cancelled" | "running" | "queued" | "waiting" | "incomplete";
627
627
  kind: "workflow";
628
628
  runId: string;
629
629
  workflowId: string;
@@ -631,7 +631,7 @@ export declare const ActivityVisitTimelineSchema: z.ZodObject<{
631
631
  runVisible: boolean;
632
632
  }, {
633
633
  at: string;
634
- status: "succeeded" | "failed" | "cancelled" | "running" | "waiting" | "queued" | "incomplete";
634
+ status: "succeeded" | "failed" | "cancelled" | "running" | "queued" | "waiting" | "incomplete";
635
635
  kind: "workflow";
636
636
  runId: string;
637
637
  workflowId: string;
@@ -752,7 +752,7 @@ export declare const ActivityVisitTimelineSchema: z.ZodObject<{
752
752
  } | undefined;
753
753
  } | {
754
754
  at: string;
755
- status: "succeeded" | "failed" | "cancelled" | "running" | "waiting" | "queued" | "incomplete";
755
+ status: "succeeded" | "failed" | "cancelled" | "running" | "queued" | "waiting" | "incomplete";
756
756
  kind: "workflow";
757
757
  runId: string;
758
758
  workflowId: string;
@@ -846,7 +846,7 @@ export declare const ActivityVisitTimelineSchema: z.ZodObject<{
846
846
  } | undefined;
847
847
  } | {
848
848
  at: string;
849
- status: "succeeded" | "failed" | "cancelled" | "running" | "waiting" | "queued" | "incomplete";
849
+ status: "succeeded" | "failed" | "cancelled" | "running" | "queued" | "waiting" | "incomplete";
850
850
  kind: "workflow";
851
851
  runId: string;
852
852
  workflowId: string;