@sixb/server 0.2.1 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. package/README.md +3 -3
  2. package/dist/artifacts/frame.d.ts.map +1 -1
  3. package/dist/auth/scope.d.ts +3 -0
  4. package/dist/auth/scope.d.ts.map +1 -1
  5. package/dist/auth/shared-access.d.ts +23 -0
  6. package/dist/auth/shared-access.d.ts.map +1 -1
  7. package/dist/connectors/http.d.ts +6 -1
  8. package/dist/connectors/http.d.ts.map +1 -1
  9. package/dist/index.js +2876 -667
  10. package/dist/index.js.map +43 -36
  11. package/dist/live/awareness.d.ts +48 -0
  12. package/dist/live/awareness.d.ts.map +1 -0
  13. package/dist/live/room.d.ts +198 -0
  14. package/dist/live/room.d.ts.map +1 -0
  15. package/dist/live/rooms.d.ts +67 -0
  16. package/dist/live/rooms.d.ts.map +1 -0
  17. package/dist/registerRoutes.d.ts.map +1 -1
  18. package/dist/routes/actions.d.ts +3 -3
  19. package/dist/routes/agent-approvals.d.ts +21 -11
  20. package/dist/routes/agent-approvals.d.ts.map +1 -1
  21. package/dist/routes/agent-children.d.ts +4 -4
  22. package/dist/routes/agent-computers.d.ts +146 -1
  23. package/dist/routes/agent-computers.d.ts.map +1 -1
  24. package/dist/routes/agent-runners.d.ts.map +1 -1
  25. package/dist/routes/agents.d.ts +152 -60
  26. package/dist/routes/agents.d.ts.map +1 -1
  27. package/dist/routes/artifact-frames.d.ts +2 -1
  28. package/dist/routes/artifact-frames.d.ts.map +1 -1
  29. package/dist/routes/artifacts.d.ts +1713 -178
  30. package/dist/routes/artifacts.d.ts.map +1 -1
  31. package/dist/routes/auth.d.ts +21 -21
  32. package/dist/routes/connector-connection-runs.d.ts +124 -5
  33. package/dist/routes/connector-connection-runs.d.ts.map +1 -1
  34. package/dist/routes/connector-connections.d.ts +9 -1
  35. package/dist/routes/connector-connections.d.ts.map +1 -1
  36. package/dist/routes/datasets.d.ts +5 -5
  37. package/dist/routes/events.d.ts +4 -4
  38. package/dist/routes/lake.d.ts +91 -0
  39. package/dist/routes/lake.d.ts.map +1 -0
  40. package/dist/routes/links.d.ts +6 -6
  41. package/dist/routes/logs.d.ts +2 -2
  42. package/dist/routes/model-generations.d.ts +2 -2
  43. package/dist/routes/objects.d.ts +6 -6
  44. package/dist/routes/objects.d.ts.map +1 -1
  45. package/dist/routes/observed-agent-threads.d.ts +21 -11
  46. package/dist/routes/observed-agent-threads.d.ts.map +1 -1
  47. package/dist/routes/ontology.d.ts +6 -6
  48. package/dist/routes/pipelines.d.ts +13 -9
  49. package/dist/routes/pipelines.d.ts.map +1 -1
  50. package/dist/routes/projections.d.ts +27 -27
  51. package/dist/routes/share-grants.d.ts +9 -9
  52. package/dist/routes/shared-access.d.ts +57 -2
  53. package/dist/routes/shared-access.d.ts.map +1 -1
  54. package/dist/routes/status.d.ts +11 -15
  55. package/dist/routes/status.d.ts.map +1 -1
  56. package/dist/routes/syncs.d.ts +9 -6
  57. package/dist/routes/syncs.d.ts.map +1 -1
  58. package/dist/routes/telemetry.d.ts +7 -7
  59. package/dist/routes/webhooks.d.ts.map +1 -1
  60. package/dist/routes/workflows.d.ts +14 -14
  61. package/dist/routes/ws/artifacts.d.ts +57 -0
  62. package/dist/routes/ws/artifacts.d.ts.map +1 -0
  63. package/dist/routes/ws/events.d.ts +8 -7
  64. package/dist/routes/ws/events.d.ts.map +1 -1
  65. package/dist/routes/ws/index.d.ts +2 -1
  66. package/dist/routes/ws/index.d.ts.map +1 -1
  67. package/dist/routes/ws/logs.d.ts +10 -10
  68. package/dist/routes/ws/shared-sockets.d.ts +52 -0
  69. package/dist/routes/ws/shared-sockets.d.ts.map +1 -0
  70. package/dist/schemas/actions.d.ts +7 -7
  71. package/dist/schemas/activity.d.ts +16 -16
  72. package/dist/schemas/agent-approvals.d.ts +27 -27
  73. package/dist/schemas/agents.d.ts +642 -196
  74. package/dist/schemas/agents.d.ts.map +1 -1
  75. package/dist/schemas/ai-accounting.d.ts +41 -41
  76. package/dist/schemas/ai-accounting.d.ts.map +1 -1
  77. package/dist/schemas/artifacts.d.ts +2106 -127
  78. package/dist/schemas/artifacts.d.ts.map +1 -1
  79. package/dist/schemas/auth.d.ts +63 -63
  80. package/dist/schemas/connectors.d.ts +180 -20
  81. package/dist/schemas/connectors.d.ts.map +1 -1
  82. package/dist/schemas/datasets.d.ts +44 -44
  83. package/dist/schemas/event-payloads.d.ts +2 -2
  84. package/dist/schemas/events.d.ts +26 -26
  85. package/dist/schemas/events.d.ts.map +1 -1
  86. package/dist/schemas/files.d.ts +12 -0
  87. package/dist/schemas/files.d.ts.map +1 -1
  88. package/dist/schemas/lake.d.ts +251 -0
  89. package/dist/schemas/lake.d.ts.map +1 -0
  90. package/dist/schemas/lineage.d.ts +56 -56
  91. package/dist/schemas/logs.d.ts +18 -18
  92. package/dist/schemas/models.d.ts +4 -4
  93. package/dist/schemas/objects.d.ts.map +1 -1
  94. package/dist/schemas/ontology.d.ts +14 -14
  95. package/dist/schemas/pipelines.d.ts +86 -64
  96. package/dist/schemas/pipelines.d.ts.map +1 -1
  97. package/dist/schemas/projections.d.ts +160 -160
  98. package/dist/schemas/projections.d.ts.map +1 -1
  99. package/dist/schemas/share-grants.d.ts +30 -30
  100. package/dist/schemas/shared-access.d.ts +17 -4
  101. package/dist/schemas/shared-access.d.ts.map +1 -1
  102. package/dist/schemas/status.d.ts +59 -79
  103. package/dist/schemas/status.d.ts.map +1 -1
  104. package/dist/schemas/syncs.d.ts +38 -22
  105. package/dist/schemas/syncs.d.ts.map +1 -1
  106. package/dist/schemas/telemetry.d.ts +26 -26
  107. package/dist/schemas/workflows.d.ts +71 -71
  108. package/dist/server.d.ts +13 -0
  109. package/dist/server.d.ts.map +1 -1
  110. package/dist/utils/ws.d.ts +3 -0
  111. package/dist/utils/ws.d.ts.map +1 -1
  112. package/package.json +11 -7
  113. package/src/artifacts/frame.ts +4 -13
  114. package/src/auth/scope.ts +10 -1
  115. package/src/auth/shared-access.ts +108 -12
  116. package/src/connectors/http.ts +35 -1
  117. package/src/live/README.md +136 -0
  118. package/src/live/awareness.ts +141 -0
  119. package/src/live/room.ts +933 -0
  120. package/src/live/rooms.ts +288 -0
  121. package/src/registerRoutes.ts +2 -0
  122. package/src/routes/agent-computers.ts +208 -14
  123. package/src/routes/agent-runners.ts +1 -0
  124. package/src/routes/agents.ts +52 -7
  125. package/src/routes/artifact-frames.ts +40 -12
  126. package/src/routes/artifacts.ts +713 -28
  127. package/src/routes/connector-connection-runs.ts +7 -12
  128. package/src/routes/connector-connections.ts +10 -7
  129. package/src/routes/lake.ts +73 -0
  130. package/src/routes/objects.ts +3 -9
  131. package/src/routes/pipelines.ts +1 -0
  132. package/src/routes/shared-access.ts +53 -1
  133. package/src/routes/status.ts +9 -4
  134. package/src/routes/syncs.ts +1 -0
  135. package/src/routes/webhooks.ts +44 -3
  136. package/src/routes/ws/artifacts.ts +138 -0
  137. package/src/routes/ws/events.ts +7 -2
  138. package/src/routes/ws/index.ts +13 -2
  139. package/src/routes/ws/shared-sockets.ts +152 -0
  140. package/src/schemas/agents.ts +71 -1
  141. package/src/schemas/ai-accounting.ts +1 -0
  142. package/src/schemas/artifacts.ts +255 -18
  143. package/src/schemas/connectors.ts +17 -2
  144. package/src/schemas/files.ts +12 -0
  145. package/src/schemas/lake.ts +53 -0
  146. package/src/schemas/objects.ts +1 -0
  147. package/src/schemas/pipelines.ts +2 -0
  148. package/src/schemas/projections.ts +2 -2
  149. package/src/schemas/shared-access.ts +16 -0
  150. package/src/schemas/status.ts +16 -22
  151. package/src/schemas/syncs.ts +2 -0
  152. package/src/server.ts +35 -4
  153. package/src/utils/ws.ts +7 -0
@@ -36,7 +36,7 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
36
36
  sourceField?: string | undefined;
37
37
  }>;
38
38
  latestRun: {
39
- status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
39
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "running" | "queued";
40
40
  projectId: string;
41
41
  id: string;
42
42
  queuedAt: string;
@@ -67,7 +67,7 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
67
67
  startedAt?: string | undefined;
68
68
  finishedAt?: string | undefined;
69
69
  } | {
70
- status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
70
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "running" | "queued";
71
71
  projectId: string;
72
72
  id: string;
73
73
  queuedAt: string;
@@ -99,7 +99,7 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
99
99
  startedAt?: string | undefined;
100
100
  finishedAt?: string | undefined;
101
101
  } | {
102
- status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
102
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "running" | "queued";
103
103
  projectId: string;
104
104
  id: string;
105
105
  queuedAt: string;
@@ -138,13 +138,13 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
138
138
  strategy: "mostRecent";
139
139
  sourceTimestamp: string;
140
140
  };
141
- users?: Record<string, "email"> | undefined;
141
+ users?: Record<string, "id" | "email"> | undefined;
142
142
  }[];
143
143
  linkProjections: {
144
144
  id: string;
145
145
  targetObjectTypeId: string;
146
146
  latestRun: {
147
- status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
147
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "running" | "queued";
148
148
  projectId: string;
149
149
  id: string;
150
150
  queuedAt: string;
@@ -175,7 +175,7 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
175
175
  startedAt?: string | undefined;
176
176
  finishedAt?: string | undefined;
177
177
  } | {
178
- status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
178
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "running" | "queued";
179
179
  projectId: string;
180
180
  id: string;
181
181
  queuedAt: string;
@@ -207,7 +207,7 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
207
207
  startedAt?: string | undefined;
208
208
  finishedAt?: string | undefined;
209
209
  } | {
210
- status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
210
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "running" | "queued";
211
211
  projectId: string;
212
212
  id: string;
213
213
  queuedAt: string;
@@ -253,7 +253,7 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
253
253
  }>;
254
254
  objectTypeId: string;
255
255
  latestRun: {
256
- status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
256
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "running" | "queued";
257
257
  projectId: string;
258
258
  id: string;
259
259
  queuedAt: string;
@@ -284,7 +284,7 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
284
284
  startedAt?: string | undefined;
285
285
  finishedAt?: string | undefined;
286
286
  } | {
287
- status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
287
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "running" | "queued";
288
288
  projectId: string;
289
289
  id: string;
290
290
  queuedAt: string;
@@ -316,7 +316,7 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
316
316
  startedAt?: string | undefined;
317
317
  finishedAt?: string | undefined;
318
318
  } | {
319
- status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
319
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "running" | "queued";
320
320
  projectId: string;
321
321
  id: string;
322
322
  queuedAt: string;
@@ -389,7 +389,7 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
389
389
  sourceField?: string | undefined;
390
390
  }>;
391
391
  latestRun: {
392
- status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
392
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "running" | "queued";
393
393
  projectId: string;
394
394
  id: string;
395
395
  queuedAt: string;
@@ -420,7 +420,7 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
420
420
  startedAt?: string | undefined;
421
421
  finishedAt?: string | undefined;
422
422
  } | {
423
- status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
423
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "running" | "queued";
424
424
  projectId: string;
425
425
  id: string;
426
426
  queuedAt: string;
@@ -452,7 +452,7 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
452
452
  startedAt?: string | undefined;
453
453
  finishedAt?: string | undefined;
454
454
  } | {
455
- status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
455
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "running" | "queued";
456
456
  projectId: string;
457
457
  id: string;
458
458
  queuedAt: string;
@@ -491,12 +491,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
491
491
  strategy: "mostRecent";
492
492
  sourceTimestamp: string;
493
493
  };
494
- users?: Record<string, "email"> | undefined;
494
+ users?: Record<string, "id" | "email"> | undefined;
495
495
  } | {
496
496
  id: string;
497
497
  targetObjectTypeId: string;
498
498
  latestRun: {
499
- status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
499
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "running" | "queued";
500
500
  projectId: string;
501
501
  id: string;
502
502
  queuedAt: string;
@@ -527,7 +527,7 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
527
527
  startedAt?: string | undefined;
528
528
  finishedAt?: string | undefined;
529
529
  } | {
530
- status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
530
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "running" | "queued";
531
531
  projectId: string;
532
532
  id: string;
533
533
  queuedAt: string;
@@ -559,7 +559,7 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
559
559
  startedAt?: string | undefined;
560
560
  finishedAt?: string | undefined;
561
561
  } | {
562
- status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
562
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "running" | "queued";
563
563
  projectId: string;
564
564
  id: string;
565
565
  queuedAt: string;
@@ -604,7 +604,7 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
604
604
  }>;
605
605
  objectTypeId: string;
606
606
  latestRun: {
607
- status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
607
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "running" | "queued";
608
608
  projectId: string;
609
609
  id: string;
610
610
  queuedAt: string;
@@ -635,7 +635,7 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
635
635
  startedAt?: string | undefined;
636
636
  finishedAt?: string | undefined;
637
637
  } | {
638
- status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
638
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "running" | "queued";
639
639
  projectId: string;
640
640
  id: string;
641
641
  queuedAt: string;
@@ -667,7 +667,7 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
667
667
  startedAt?: string | undefined;
668
668
  finishedAt?: string | undefined;
669
669
  } | {
670
- status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
670
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "running" | "queued";
671
671
  projectId: string;
672
672
  id: string;
673
673
  queuedAt: string;
@@ -727,7 +727,7 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
727
727
  body: unknown;
728
728
  params: {};
729
729
  query: {
730
- status?: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running" | undefined;
730
+ status?: "succeeded" | "failed" | "cancelled" | "superseded" | "running" | "queued" | undefined;
731
731
  startedAfter?: string | undefined;
732
732
  startedBefore?: string | undefined;
733
733
  limit?: string | undefined;
@@ -742,7 +742,7 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
742
742
  response: {
743
743
  200: {
744
744
  runs: ({
745
- status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
745
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "running" | "queued";
746
746
  projectId: string;
747
747
  id: string;
748
748
  queuedAt: string;
@@ -773,7 +773,7 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
773
773
  startedAt?: string | undefined;
774
774
  finishedAt?: string | undefined;
775
775
  } | {
776
- status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
776
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "running" | "queued";
777
777
  projectId: string;
778
778
  id: string;
779
779
  queuedAt: string;
@@ -805,7 +805,7 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
805
805
  startedAt?: string | undefined;
806
806
  finishedAt?: string | undefined;
807
807
  } | {
808
- status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
808
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "running" | "queued";
809
809
  projectId: string;
810
810
  id: string;
811
811
  queuedAt: string;
@@ -871,7 +871,7 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
871
871
  headers: unknown;
872
872
  response: {
873
873
  200: {
874
- status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
874
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "running" | "queued";
875
875
  projectId: string;
876
876
  id: string;
877
877
  queuedAt: string;
@@ -902,7 +902,7 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
902
902
  startedAt?: string | undefined;
903
903
  finishedAt?: string | undefined;
904
904
  } | {
905
- status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
905
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "running" | "queued";
906
906
  projectId: string;
907
907
  id: string;
908
908
  queuedAt: string;
@@ -934,7 +934,7 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
934
934
  startedAt?: string | undefined;
935
935
  finishedAt?: string | undefined;
936
936
  } | {
937
- status: "succeeded" | "failed" | "cancelled" | "superseded" | "queued" | "running";
937
+ status: "succeeded" | "failed" | "cancelled" | "superseded" | "running" | "queued";
938
938
  projectId: string;
939
939
  id: string;
940
940
  queuedAt: string;
@@ -20,13 +20,13 @@ export declare function registerShareGrantRoutes(app: Elysia, _host: SixbHostVie
20
20
  "share-grants": {
21
21
  post: {
22
22
  body: {
23
+ destinationPath: string;
23
24
  expiresAt: string;
24
25
  target: {
25
26
  objectTypeId: string;
26
27
  primaryId: string;
27
28
  };
28
29
  definitionId: string;
29
- destinationPath: string;
30
30
  };
31
31
  params: {};
32
32
  query: unknown;
@@ -36,8 +36,9 @@ export declare function registerShareGrantRoutes(app: Elysia, _host: SixbHostVie
36
36
  url: string;
37
37
  grant: {
38
38
  id: string;
39
- createdAt: string;
39
+ destinationPath: string;
40
40
  expiresAt: string;
41
+ createdAt: string;
41
42
  target: {
42
43
  objectTypeId: string;
43
44
  primaryId: string;
@@ -47,7 +48,6 @@ export declare function registerShareGrantRoutes(app: Elysia, _host: SixbHostVie
47
48
  id: string;
48
49
  type: "user" | "serviceAccount";
49
50
  };
50
- destinationPath: string;
51
51
  revokedAt?: string | undefined;
52
52
  revokedBy?: {
53
53
  id: string;
@@ -79,8 +79,9 @@ export declare function registerShareGrantRoutes(app: Elysia, _host: SixbHostVie
79
79
  url: string;
80
80
  grant: {
81
81
  id: string;
82
- createdAt: string;
82
+ destinationPath: string;
83
83
  expiresAt: string;
84
+ createdAt: string;
84
85
  target: {
85
86
  objectTypeId: string;
86
87
  primaryId: string;
@@ -90,7 +91,6 @@ export declare function registerShareGrantRoutes(app: Elysia, _host: SixbHostVie
90
91
  id: string;
91
92
  type: "user" | "serviceAccount";
92
93
  };
93
- destinationPath: string;
94
94
  revokedAt?: string | undefined;
95
95
  revokedBy?: {
96
96
  id: string;
@@ -132,8 +132,9 @@ export declare function registerShareGrantRoutes(app: Elysia, _host: SixbHostVie
132
132
  total: number;
133
133
  grants: {
134
134
  id: string;
135
- createdAt: string;
135
+ destinationPath: string;
136
136
  expiresAt: string;
137
+ createdAt: string;
137
138
  target: {
138
139
  objectTypeId: string;
139
140
  primaryId: string;
@@ -143,7 +144,6 @@ export declare function registerShareGrantRoutes(app: Elysia, _host: SixbHostVie
143
144
  id: string;
144
145
  type: "user" | "serviceAccount";
145
146
  };
146
- destinationPath: string;
147
147
  revokedAt?: string | undefined;
148
148
  revokedBy?: {
149
149
  id: string;
@@ -197,8 +197,9 @@ export declare function registerShareGrantRoutes(app: Elysia, _host: SixbHostVie
197
197
  200: {
198
198
  grant: {
199
199
  id: string;
200
- createdAt: string;
200
+ destinationPath: string;
201
201
  expiresAt: string;
202
+ createdAt: string;
202
203
  target: {
203
204
  objectTypeId: string;
204
205
  primaryId: string;
@@ -208,7 +209,6 @@ export declare function registerShareGrantRoutes(app: Elysia, _host: SixbHostVie
208
209
  id: string;
209
210
  type: "user" | "serviceAccount";
210
211
  };
211
- destinationPath: string;
212
212
  revokedAt?: string | undefined;
213
213
  revokedBy?: {
214
214
  id: string;
@@ -32,10 +32,12 @@ export declare function registerSharedAccessRoutes(app: Elysia, boundary: Shared
32
32
  response: {
33
33
  200: {
34
34
  grantId: string;
35
- expiresAt: string;
36
- csrfToken: string;
37
35
  destinationPath: string;
36
+ expiresAt: string;
38
37
  absoluteExpiresAt: string;
38
+ csrfToken: string;
39
+ guestId: string;
40
+ guestName?: string | undefined;
39
41
  };
40
42
  401: {
41
43
  error: string;
@@ -73,17 +75,70 @@ export declare function registerSharedAccessRoutes(app: Elysia, boundary: Shared
73
75
  response: {
74
76
  200: {
75
77
  grantId: string;
78
+ destinationPath: string;
76
79
  expiresAt: string;
80
+ absoluteExpiresAt: string;
77
81
  csrfToken: string;
82
+ guestId: string;
83
+ guestName?: string | undefined;
84
+ };
85
+ 401: {
86
+ error: string;
87
+ };
88
+ 503: {
89
+ error: string;
90
+ };
91
+ 422: {
92
+ type: "validation";
93
+ on: string;
94
+ summary?: string;
95
+ message?: string;
96
+ found?: unknown;
97
+ property?: string;
98
+ expected?: string;
99
+ };
100
+ };
101
+ };
102
+ };
103
+ };
104
+ };
105
+ };
106
+ } & {
107
+ api: {
108
+ "shared-access": {
109
+ ":grantId": {
110
+ name: {
111
+ put: {
112
+ body: {
113
+ name: string;
114
+ };
115
+ params: {
116
+ grantId: string;
117
+ };
118
+ query: unknown;
119
+ headers: unknown;
120
+ response: {
121
+ 200: {
122
+ grantId: string;
78
123
  destinationPath: string;
124
+ expiresAt: string;
79
125
  absoluteExpiresAt: string;
126
+ csrfToken: string;
127
+ guestId: string;
128
+ guestName?: string | undefined;
80
129
  };
81
130
  401: {
82
131
  error: string;
83
132
  };
133
+ 403: {
134
+ error: string;
135
+ };
84
136
  503: {
85
137
  error: string;
86
138
  };
139
+ 400: {
140
+ error: string;
141
+ };
87
142
  422: {
88
143
  type: "validation";
89
144
  on: string;
@@ -1 +1 @@
1
- {"version":3,"file":"shared-access.d.ts","sourceRoot":"","sources":["../../src/routes/shared-access.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAEpC,OAAO,EACL,KAAK,oBAAoB,EAK1B,MAAM,uBAAuB,CAAA;AAW9B,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmGrF"}
1
+ {"version":3,"file":"shared-access.d.ts","sourceRoot":"","sources":["../../src/routes/shared-access.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAEpC,OAAO,EACL,KAAK,oBAAoB,EAM1B,MAAM,uBAAuB,CAAA;AAY9B,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmJrF"}
@@ -25,28 +25,24 @@ export declare function registerStatusRoutes(app: Elysia, host: SixbHostView): E
25
25
  headers: unknown;
26
26
  response: {
27
27
  200: {
28
- status: "ok" | "degraded";
29
- objectTypes: number;
28
+ status: "unknown" | "ok" | "degraded";
30
29
  maintenance: {
31
- running: boolean;
32
- intervalMs: number;
33
- lastStartedAt: string | null;
34
- lastCompletedAt: string | null;
35
- lastDurationMs: number | null;
36
- consecutiveFailures: number;
37
- lastError: string | null;
30
+ owner: "orchestrator" | "embedded" | null;
31
+ beatAt: string | null;
32
+ stale: boolean;
33
+ passes: {
34
+ id: string;
35
+ lastSucceededAt: string | null;
36
+ consecutiveFailures: number;
37
+ }[];
38
38
  outbox: {
39
39
  pendingCount: number;
40
40
  oldestPendingAt: string | null;
41
41
  retryingCount: number;
42
42
  maxAttempts: number;
43
- } | null;
44
- cleanup: {
45
- publishedOutboxRowsDeleted: number;
46
- terminalSourceRowsDeleted: number;
47
- terminalSourceMaterializationsDeleted: number;
48
- } | null;
43
+ };
49
44
  };
45
+ objectTypes: number;
50
46
  };
51
47
  422: {
52
48
  type: "validation";
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CnE"}
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"}
@@ -36,11 +36,12 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
36
36
  scheduleId: string;
37
37
  }[];
38
38
  latestRun: {
39
- status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
39
+ status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
40
40
  projectId: string;
41
41
  id: string;
42
42
  mode: "append" | "merge" | "snapshot";
43
43
  queuedAt: string;
44
+ attempt: number;
44
45
  datasetId: string;
45
46
  syncId: string;
46
47
  error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
@@ -60,8 +61,8 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
60
61
  id: string;
61
62
  schema: {
62
63
  columns: {
63
- type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
64
64
  name: string;
65
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
65
66
  nullable?: boolean | undefined;
66
67
  }[];
67
68
  };
@@ -109,11 +110,12 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
109
110
  scheduleId: string;
110
111
  }[];
111
112
  latestRun: {
112
- status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
113
+ status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
113
114
  projectId: string;
114
115
  id: string;
115
116
  mode: "append" | "merge" | "snapshot";
116
117
  queuedAt: string;
118
+ attempt: number;
117
119
  datasetId: string;
118
120
  syncId: string;
119
121
  error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
@@ -133,8 +135,8 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
133
135
  id: string;
134
136
  schema: {
135
137
  columns: {
136
- type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
137
138
  name: string;
139
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
138
140
  nullable?: boolean | undefined;
139
141
  }[];
140
142
  };
@@ -169,7 +171,7 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
169
171
  body: unknown;
170
172
  params: {};
171
173
  query: {
172
- status?: "succeeded" | "failed" | "cancelled" | "queued" | "running" | undefined;
174
+ status?: "succeeded" | "failed" | "cancelled" | "running" | "queued" | undefined;
173
175
  startedAfter?: string | undefined;
174
176
  startedBefore?: string | undefined;
175
177
  limit?: string | undefined;
@@ -182,11 +184,12 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
182
184
  response: {
183
185
  200: {
184
186
  runs: {
185
- status: "succeeded" | "failed" | "cancelled" | "queued" | "running";
187
+ status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
186
188
  projectId: string;
187
189
  id: string;
188
190
  mode: "append" | "merge" | "snapshot";
189
191
  queuedAt: string;
192
+ attempt: number;
190
193
  datasetId: string;
191
194
  syncId: string;
192
195
  error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"syncs.d.ts","sourceRoot":"","sources":["../../src/routes/syncs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAkB,MAAM,YAAY,CAAA;AAE9D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAsFpC,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoIjE"}
1
+ {"version":3,"file":"syncs.d.ts","sourceRoot":"","sources":["../../src/routes/syncs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAkB,MAAM,YAAY,CAAA;AAE9D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAuFpC,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoIjE"}
@@ -23,8 +23,8 @@ export declare function registerTelemetryRoutes(app: Elysia, _host: SixbHostView
23
23
  body: {
24
24
  series: {
25
25
  objectTypeId: string;
26
- objectId: string;
27
26
  propertyId: string;
27
+ objectId: string;
28
28
  }[];
29
29
  order?: "asc" | "desc" | undefined;
30
30
  from?: string | undefined;
@@ -38,14 +38,14 @@ export declare function registerTelemetryRoutes(app: Elysia, _host: SixbHostView
38
38
  200: {
39
39
  series: {
40
40
  objectTypeId: string;
41
- objectId: string;
42
41
  propertyId: string;
42
+ objectId: string;
43
43
  points: {
44
44
  at: string;
45
45
  projectId: string;
46
46
  objectTypeId: string;
47
- objectId: string;
48
47
  propertyId: string;
48
+ objectId: string;
49
49
  value?: unknown;
50
50
  unit?: string | undefined;
51
51
  }[];
@@ -83,8 +83,8 @@ export declare function registerTelemetryRoutes(app: Elysia, _host: SixbHostView
83
83
  body: unknown;
84
84
  params: {
85
85
  objectTypeId: string;
86
- objectId: string;
87
86
  propertyId: string;
87
+ objectId: string;
88
88
  };
89
89
  query: {
90
90
  limit?: string | undefined;
@@ -98,8 +98,8 @@ export declare function registerTelemetryRoutes(app: Elysia, _host: SixbHostView
98
98
  at: string;
99
99
  projectId: string;
100
100
  objectTypeId: string;
101
- objectId: string;
102
101
  propertyId: string;
102
+ objectId: string;
103
103
  value?: unknown;
104
104
  unit?: string | undefined;
105
105
  }[];
@@ -139,8 +139,8 @@ export declare function registerTelemetryRoutes(app: Elysia, _host: SixbHostView
139
139
  body: unknown;
140
140
  params: {
141
141
  objectTypeId: string;
142
- objectId: string;
143
142
  propertyId: string;
143
+ objectId: string;
144
144
  };
145
145
  query: unknown;
146
146
  headers: unknown;
@@ -149,8 +149,8 @@ export declare function registerTelemetryRoutes(app: Elysia, _host: SixbHostView
149
149
  at: string;
150
150
  projectId: string;
151
151
  objectTypeId: string;
152
- objectId: string;
153
152
  propertyId: string;
153
+ objectId: string;
154
154
  value?: unknown;
155
155
  unit?: string | undefined;
156
156
  };
@@ -1 +1 @@
1
- {"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../../src/routes/webhooks.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAOV,YAAY,EAIb,MAAM,YAAY,CAAA;AAYnB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAgDpC,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAapE"}
1
+ {"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../../src/routes/webhooks.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAOV,YAAY,EAIb,MAAM,YAAY,CAAA;AAiBnB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAkDpC,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAapE"}