@sixb/server 0.2.2 → 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 (147) 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 +2777 -683
  10. package/dist/index.js.map +41 -34
  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 +10 -10
  20. package/dist/routes/agent-children.d.ts +2 -2
  21. package/dist/routes/agent-computers.d.ts +32 -0
  22. package/dist/routes/agent-computers.d.ts.map +1 -1
  23. package/dist/routes/agent-runners.d.ts.map +1 -1
  24. package/dist/routes/agents.d.ts +48 -48
  25. package/dist/routes/artifact-frames.d.ts +2 -1
  26. package/dist/routes/artifact-frames.d.ts.map +1 -1
  27. package/dist/routes/artifacts.d.ts +1713 -178
  28. package/dist/routes/artifacts.d.ts.map +1 -1
  29. package/dist/routes/auth.d.ts +21 -21
  30. package/dist/routes/connector-connection-runs.d.ts +124 -5
  31. package/dist/routes/connector-connection-runs.d.ts.map +1 -1
  32. package/dist/routes/connector-connections.d.ts +9 -1
  33. package/dist/routes/connector-connections.d.ts.map +1 -1
  34. package/dist/routes/datasets.d.ts +5 -5
  35. package/dist/routes/events.d.ts +4 -4
  36. package/dist/routes/lake.d.ts +91 -0
  37. package/dist/routes/lake.d.ts.map +1 -0
  38. package/dist/routes/links.d.ts +6 -6
  39. package/dist/routes/logs.d.ts +2 -2
  40. package/dist/routes/model-generations.d.ts +2 -2
  41. package/dist/routes/objects.d.ts +6 -6
  42. package/dist/routes/objects.d.ts.map +1 -1
  43. package/dist/routes/observed-agent-threads.d.ts +7 -7
  44. package/dist/routes/ontology.d.ts +6 -6
  45. package/dist/routes/pipelines.d.ts +8 -4
  46. package/dist/routes/pipelines.d.ts.map +1 -1
  47. package/dist/routes/projections.d.ts +2 -2
  48. package/dist/routes/share-grants.d.ts +9 -9
  49. package/dist/routes/shared-access.d.ts +57 -2
  50. package/dist/routes/shared-access.d.ts.map +1 -1
  51. package/dist/routes/status.d.ts +11 -15
  52. package/dist/routes/status.d.ts.map +1 -1
  53. package/dist/routes/syncs.d.ts +5 -2
  54. package/dist/routes/syncs.d.ts.map +1 -1
  55. package/dist/routes/telemetry.d.ts +7 -7
  56. package/dist/routes/webhooks.d.ts.map +1 -1
  57. package/dist/routes/workflows.d.ts +3 -3
  58. package/dist/routes/ws/artifacts.d.ts +57 -0
  59. package/dist/routes/ws/artifacts.d.ts.map +1 -0
  60. package/dist/routes/ws/events.d.ts +8 -7
  61. package/dist/routes/ws/events.d.ts.map +1 -1
  62. package/dist/routes/ws/index.d.ts +2 -1
  63. package/dist/routes/ws/index.d.ts.map +1 -1
  64. package/dist/routes/ws/logs.d.ts +10 -10
  65. package/dist/routes/ws/shared-sockets.d.ts +52 -0
  66. package/dist/routes/ws/shared-sockets.d.ts.map +1 -0
  67. package/dist/schemas/actions.d.ts +7 -7
  68. package/dist/schemas/activity.d.ts +8 -8
  69. package/dist/schemas/agent-approvals.d.ts +27 -27
  70. package/dist/schemas/agents.d.ts +195 -154
  71. package/dist/schemas/agents.d.ts.map +1 -1
  72. package/dist/schemas/ai-accounting.d.ts +12 -12
  73. package/dist/schemas/artifacts.d.ts +2106 -127
  74. package/dist/schemas/artifacts.d.ts.map +1 -1
  75. package/dist/schemas/auth.d.ts +63 -63
  76. package/dist/schemas/connectors.d.ts +180 -20
  77. package/dist/schemas/connectors.d.ts.map +1 -1
  78. package/dist/schemas/datasets.d.ts +44 -44
  79. package/dist/schemas/event-payloads.d.ts +2 -2
  80. package/dist/schemas/events.d.ts +26 -26
  81. package/dist/schemas/events.d.ts.map +1 -1
  82. package/dist/schemas/files.d.ts +12 -0
  83. package/dist/schemas/files.d.ts.map +1 -1
  84. package/dist/schemas/lake.d.ts +251 -0
  85. package/dist/schemas/lake.d.ts.map +1 -0
  86. package/dist/schemas/lineage.d.ts +56 -56
  87. package/dist/schemas/logs.d.ts +18 -18
  88. package/dist/schemas/models.d.ts +4 -4
  89. package/dist/schemas/objects.d.ts.map +1 -1
  90. package/dist/schemas/ontology.d.ts +14 -14
  91. package/dist/schemas/pipelines.d.ts +70 -48
  92. package/dist/schemas/pipelines.d.ts.map +1 -1
  93. package/dist/schemas/projections.d.ts +14 -14
  94. package/dist/schemas/projections.d.ts.map +1 -1
  95. package/dist/schemas/share-grants.d.ts +30 -30
  96. package/dist/schemas/shared-access.d.ts +17 -4
  97. package/dist/schemas/shared-access.d.ts.map +1 -1
  98. package/dist/schemas/status.d.ts +59 -79
  99. package/dist/schemas/status.d.ts.map +1 -1
  100. package/dist/schemas/syncs.d.ts +26 -10
  101. package/dist/schemas/syncs.d.ts.map +1 -1
  102. package/dist/schemas/telemetry.d.ts +26 -26
  103. package/dist/schemas/workflows.d.ts +19 -19
  104. package/dist/server.d.ts +13 -0
  105. package/dist/server.d.ts.map +1 -1
  106. package/dist/utils/ws.d.ts +3 -0
  107. package/dist/utils/ws.d.ts.map +1 -1
  108. package/package.json +11 -7
  109. package/src/artifacts/frame.ts +4 -13
  110. package/src/auth/scope.ts +10 -1
  111. package/src/auth/shared-access.ts +108 -12
  112. package/src/connectors/http.ts +35 -1
  113. package/src/live/README.md +136 -0
  114. package/src/live/awareness.ts +141 -0
  115. package/src/live/room.ts +933 -0
  116. package/src/live/rooms.ts +288 -0
  117. package/src/registerRoutes.ts +2 -0
  118. package/src/routes/agent-computers.ts +59 -1
  119. package/src/routes/agent-runners.ts +1 -0
  120. package/src/routes/artifact-frames.ts +40 -12
  121. package/src/routes/artifacts.ts +713 -28
  122. package/src/routes/connector-connection-runs.ts +7 -12
  123. package/src/routes/connector-connections.ts +10 -7
  124. package/src/routes/lake.ts +73 -0
  125. package/src/routes/objects.ts +3 -9
  126. package/src/routes/pipelines.ts +1 -0
  127. package/src/routes/shared-access.ts +53 -1
  128. package/src/routes/status.ts +9 -4
  129. package/src/routes/syncs.ts +1 -0
  130. package/src/routes/webhooks.ts +44 -3
  131. package/src/routes/ws/artifacts.ts +138 -0
  132. package/src/routes/ws/events.ts +7 -2
  133. package/src/routes/ws/index.ts +13 -2
  134. package/src/routes/ws/shared-sockets.ts +152 -0
  135. package/src/schemas/agents.ts +11 -0
  136. package/src/schemas/artifacts.ts +255 -18
  137. package/src/schemas/connectors.ts +17 -2
  138. package/src/schemas/files.ts +12 -0
  139. package/src/schemas/lake.ts +53 -0
  140. package/src/schemas/objects.ts +1 -0
  141. package/src/schemas/pipelines.ts +2 -0
  142. package/src/schemas/projections.ts +2 -2
  143. package/src/schemas/shared-access.ts +16 -0
  144. package/src/schemas/status.ts +16 -22
  145. package/src/schemas/syncs.ts +2 -0
  146. package/src/server.ts +35 -4
  147. package/src/utils/ws.ts +7 -0
@@ -1 +1 @@
1
- {"version":3,"file":"connector-connections.d.ts","sourceRoot":"","sources":["../../src/routes/connector-connections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAuBpC,wBAAgB,iCAAiC,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8GhF"}
1
+ {"version":3,"file":"connector-connections.d.ts","sourceRoot":"","sources":["../../src/routes/connector-connections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAyBpC,wBAAgB,iCAAiC,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+GhF"}
@@ -29,8 +29,8 @@ export declare function registerDatasetRoutes(app: Elysia, host: SixbHostView):
29
29
  kind: "dataset";
30
30
  schema: {
31
31
  columns: {
32
- type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
33
32
  name: string;
33
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
34
34
  nullable?: boolean | undefined;
35
35
  }[];
36
36
  };
@@ -84,8 +84,8 @@ export declare function registerDatasetRoutes(app: Elysia, host: SixbHostView):
84
84
  kind: "dataset";
85
85
  schema: {
86
86
  columns: {
87
- type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
88
87
  name: string;
88
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
89
89
  nullable?: boolean | undefined;
90
90
  }[];
91
91
  };
@@ -148,8 +148,8 @@ export declare function registerDatasetRoutes(app: Elysia, host: SixbHostView):
148
148
  mode: "append" | "schema" | "merge" | "snapshot";
149
149
  schema: {
150
150
  columns: {
151
- type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
152
151
  name: string;
152
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
153
153
  nullable?: boolean | undefined;
154
154
  }[];
155
155
  };
@@ -212,8 +212,8 @@ export declare function registerDatasetRoutes(app: Elysia, host: SixbHostView):
212
212
  mode: "append" | "schema" | "merge" | "snapshot";
213
213
  schema: {
214
214
  columns: {
215
- type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
216
215
  name: string;
216
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
217
217
  nullable?: boolean | undefined;
218
218
  }[];
219
219
  };
@@ -354,8 +354,8 @@ export declare function registerDatasetRoutes(app: Elysia, host: SixbHostView):
354
354
  mode: "append" | "schema" | "merge" | "snapshot";
355
355
  schema: {
356
356
  columns: {
357
- type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
358
357
  name: string;
358
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
359
359
  nullable?: boolean | undefined;
360
360
  }[];
361
361
  };
@@ -22,9 +22,9 @@ export declare function registerEventRoutes(app: Elysia, _host: SixbHostView): E
22
22
  body: unknown;
23
23
  params: {};
24
24
  query: {
25
- type?: "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" | undefined;
25
+ type?: "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;
26
26
  limit?: string | undefined;
27
- topic?: "objects" | "datasets" | "workflows" | "syncs" | "pipelines" | "rules" | "schedules" | "users" | "telemetry" | "links" | undefined;
27
+ topic?: "objects" | "datasets" | "workflows" | "syncs" | "pipelines" | "rules" | "artifacts" | "schedules" | "users" | "telemetry" | "links" | undefined;
28
28
  afterCursor?: string | undefined;
29
29
  };
30
30
  headers: unknown;
@@ -36,12 +36,12 @@ export declare function registerEventRoutes(app: Elysia, _host: SixbHostView): E
36
36
  } | {
37
37
  projectId: string;
38
38
  id: string;
39
- type: "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";
39
+ type: "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";
40
40
  occurredAt: string;
41
41
  cursor: string;
42
42
  schemaVersion: 1;
43
43
  payload: Record<string, unknown>;
44
- topic: "objects" | "datasets" | "workflows" | "syncs" | "pipelines" | "rules" | "schedules" | "users" | "telemetry" | "links";
44
+ topic: "objects" | "datasets" | "workflows" | "syncs" | "pipelines" | "rules" | "artifacts" | "schedules" | "users" | "telemetry" | "links";
45
45
  partitionKey: string;
46
46
  origin?: {
47
47
  kind: "projection";
@@ -0,0 +1,91 @@
1
+ import type { SixbHostView } from "@sixb/core";
2
+ import type { Elysia } from "elysia";
3
+ export declare function registerLakeRoutes(app: Elysia, host: SixbHostView): Elysia<"", {
4
+ decorator: {};
5
+ store: {};
6
+ derive: {};
7
+ resolve: {};
8
+ }, {
9
+ typebox: {};
10
+ error: {};
11
+ }, {
12
+ schema: {};
13
+ standaloneSchema: {};
14
+ macro: {};
15
+ macroFn: {};
16
+ parser: {};
17
+ response: {};
18
+ }, {
19
+ api: {
20
+ lake: {
21
+ health: {
22
+ get: {
23
+ body: unknown;
24
+ params: {};
25
+ query: unknown;
26
+ headers: unknown;
27
+ response: {
28
+ 200: {
29
+ datasets: {
30
+ warnings: {
31
+ code: "partitioned-small-dataset";
32
+ message: string;
33
+ }[];
34
+ datasetId: string;
35
+ partitionBy: string[];
36
+ ingest: {
37
+ pendingDeliveries: number;
38
+ pendingChanges: number;
39
+ oldestReceivedAt: string | null;
40
+ rejectedDeliveries: number;
41
+ } | null;
42
+ rowCount: number;
43
+ materialized: boolean;
44
+ dataFiles: number;
45
+ smallDataFiles: number;
46
+ dataBytes: number;
47
+ deleteFiles: number;
48
+ inlinedRows: number;
49
+ retainedSnapshots: number;
50
+ }[];
51
+ available: boolean;
52
+ cleanup: {
53
+ state: "ok" | "off" | "idle" | "not-requested" | "no-worker" | "failing" | "cleaning";
54
+ lastRequestedAt: string | null;
55
+ lastRunAt: string | null;
56
+ keepVersionsFor: string;
57
+ deleteFilesAfter: string;
58
+ cleanupEvery: string;
59
+ };
60
+ };
61
+ 400: {
62
+ error: string;
63
+ };
64
+ 422: {
65
+ type: "validation";
66
+ on: string;
67
+ summary?: string;
68
+ message?: string;
69
+ found?: unknown;
70
+ property?: string;
71
+ expected?: string;
72
+ };
73
+ };
74
+ };
75
+ };
76
+ };
77
+ };
78
+ }, {
79
+ derive: {};
80
+ resolve: {};
81
+ schema: {};
82
+ standaloneSchema: {};
83
+ response: {};
84
+ }, {
85
+ derive: {};
86
+ resolve: {};
87
+ schema: {};
88
+ standaloneSchema: {};
89
+ response: {};
90
+ }>;
91
+ //# sourceMappingURL=lake.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lake.d.ts","sourceRoot":"","sources":["../../src/routes/lake.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAG9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAQpC,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDjE"}
@@ -67,12 +67,16 @@ export declare function registerLinkRoutes(app: Elysia, _host: SixbHostView): El
67
67
  kind: "edit";
68
68
  commitId: string | null;
69
69
  committedAt: string;
70
+ action?: {
71
+ actionId: string;
72
+ runId: string;
73
+ } | undefined;
70
74
  executor?: {
71
75
  type: "request";
72
76
  requestId: string;
73
77
  } | {
74
78
  id: string;
75
- kind: "workflow" | "action" | "sync" | "pipeline" | "projection" | "rule" | "webhook";
79
+ kind: "action" | "workflow" | "sync" | "pipeline" | "projection" | "rule" | "webhook";
76
80
  type: "primitive";
77
81
  runId: string;
78
82
  } | {
@@ -92,10 +96,6 @@ export declare function registerLinkRoutes(app: Elysia, _host: SixbHostView): El
92
96
  id: string;
93
97
  type: "user" | "serviceAccount";
94
98
  } | undefined;
95
- action?: {
96
- actionId: string;
97
- runId: string;
98
- } | undefined;
99
99
  } | {
100
100
  kind: "telemetry";
101
101
  commitId: string;
@@ -105,7 +105,7 @@ export declare function registerLinkRoutes(app: Elysia, _host: SixbHostView): El
105
105
  requestId: string;
106
106
  } | {
107
107
  id: string;
108
- kind: "workflow" | "action" | "sync" | "pipeline" | "projection" | "rule" | "webhook";
108
+ kind: "action" | "workflow" | "sync" | "pipeline" | "projection" | "rule" | "webhook";
109
109
  type: "primitive";
110
110
  runId: string;
111
111
  } | {
@@ -22,7 +22,7 @@ export declare function registerLogRoutes(app: Elysia, _host: SixbHostView): Ely
22
22
  body: unknown;
23
23
  params: {};
24
24
  query: {
25
- kind?: "workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook" | undefined;
25
+ kind?: "action" | "workflow" | "agent" | "sync" | "pipeline" | "projection" | "webhook" | undefined;
26
26
  runId?: string | undefined;
27
27
  limit?: number | undefined;
28
28
  afterCursor?: string | undefined;
@@ -40,7 +40,7 @@ export declare function registerLogRoutes(app: Elysia, _host: SixbHostView): Ely
40
40
  context: {
41
41
  run: {
42
42
  id: string;
43
- kind: "workflow" | "agent" | "action" | "sync" | "pipeline" | "projection" | "webhook";
43
+ kind: "action" | "workflow" | "agent" | "sync" | "pipeline" | "projection" | "webhook";
44
44
  };
45
45
  phase?: string | undefined;
46
46
  attempt?: number | undefined;
@@ -43,11 +43,11 @@ export declare function registerModelGenerationRoutes(app: Elysia, host: SixbHos
43
43
  headers: unknown;
44
44
  response: {
45
45
  200: {
46
- text: string;
47
46
  model: {
48
47
  modelId: string;
49
48
  provider: string;
50
49
  };
50
+ text: string;
51
51
  callId: string;
52
52
  usage: {
53
53
  inputTokens?: number | undefined;
@@ -310,11 +310,11 @@ export declare function registerModelGenerationRoutes(app: Elysia, host: SixbHos
310
310
  headers: unknown;
311
311
  response: {
312
312
  200: {
313
- text: string;
314
313
  model: {
315
314
  modelId: string;
316
315
  provider: string;
317
316
  };
317
+ text: string;
318
318
  callId: string;
319
319
  usage: {
320
320
  inputTokens?: number | undefined;
@@ -504,12 +504,16 @@ export declare function registerObjectRoutes(app: Elysia, host: SixbHostView): E
504
504
  kind: "edit";
505
505
  commitId: string | null;
506
506
  committedAt: string;
507
+ action?: {
508
+ actionId: string;
509
+ runId: string;
510
+ } | undefined;
507
511
  executor?: {
508
512
  type: "request";
509
513
  requestId: string;
510
514
  } | {
511
515
  id: string;
512
- kind: "workflow" | "action" | "sync" | "pipeline" | "projection" | "rule" | "webhook";
516
+ kind: "action" | "workflow" | "sync" | "pipeline" | "projection" | "rule" | "webhook";
513
517
  type: "primitive";
514
518
  runId: string;
515
519
  } | {
@@ -529,10 +533,6 @@ export declare function registerObjectRoutes(app: Elysia, host: SixbHostView): E
529
533
  id: string;
530
534
  type: "user" | "serviceAccount";
531
535
  } | undefined;
532
- action?: {
533
- actionId: string;
534
- runId: string;
535
- } | undefined;
536
536
  } | {
537
537
  kind: "telemetry";
538
538
  commitId: string;
@@ -542,7 +542,7 @@ export declare function registerObjectRoutes(app: Elysia, host: SixbHostView): E
542
542
  requestId: string;
543
543
  } | {
544
544
  id: string;
545
- kind: "workflow" | "action" | "sync" | "pipeline" | "projection" | "rule" | "webhook";
545
+ kind: "action" | "workflow" | "sync" | "pipeline" | "projection" | "rule" | "webhook";
546
546
  type: "primitive";
547
547
  runId: string;
548
548
  } | {
@@ -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;AAyGpC,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAq0BxF"}
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAq0BxF"}
@@ -259,7 +259,7 @@ export declare function registerObservedAgentThreadRoutes(app: Elysia, host: Six
259
259
  } | {
260
260
  error: {
261
261
  at: string;
262
- code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
262
+ code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.change_refused" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
263
263
  message: string;
264
264
  retryable: boolean;
265
265
  details?: import("../schemas/common").JsonValue | undefined;
@@ -408,14 +408,14 @@ export declare function registerObservedAgentThreadRoutes(app: Elysia, host: Six
408
408
  triggerMessageId: string;
409
409
  streamId: string;
410
410
  error?: import("@sixb/core").SixbFailure<"agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
411
- requestedBy?: {
412
- id: string;
413
- type: "user" | "serviceAccount";
414
- } | undefined;
415
411
  model?: {
416
412
  modelId: string;
417
413
  provider: string;
418
414
  } | undefined;
415
+ requestedBy?: {
416
+ id: string;
417
+ type: "user" | "serviceAccount";
418
+ } | undefined;
419
419
  modelId?: string | undefined;
420
420
  startedAt?: string | undefined;
421
421
  completedAt?: string | undefined;
@@ -507,12 +507,12 @@ export declare function registerObservedAgentThreadRoutes(app: Elysia, host: Six
507
507
  200: {
508
508
  children: {
509
509
  status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
510
- projectId: string;
511
- id: string;
512
510
  model: {
513
511
  modelId: string;
514
512
  provider: string;
515
513
  };
514
+ projectId: string;
515
+ id: string;
516
516
  runs: {
517
517
  status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
518
518
  id: string;
@@ -26,8 +26,10 @@ export declare function registerOntologyRoutes(app: Elysia, host: SixbHostView):
26
26
  response: {
27
27
  200: {
28
28
  id: string;
29
+ name: string;
29
30
  actions: {
30
31
  id: string;
32
+ name: string;
31
33
  params: {
32
34
  id: string;
33
35
  name: string;
@@ -37,7 +39,6 @@ export declare function registerOntologyRoutes(app: Elysia, host: SixbHostView):
37
39
  semanticType?: string | undefined;
38
40
  schema?: unknown;
39
41
  }[];
40
- name: string;
41
42
  description?: string | undefined;
42
43
  }[];
43
44
  properties: {
@@ -67,7 +68,6 @@ export declare function registerOntologyRoutes(app: Elysia, host: SixbHostView):
67
68
  semanticType?: string | undefined;
68
69
  schema?: unknown;
69
70
  }[];
70
- name: string;
71
71
  links: {
72
72
  id: string;
73
73
  name: string;
@@ -104,7 +104,6 @@ export declare function registerOntologyRoutes(app: Elysia, host: SixbHostView):
104
104
  title?: string | undefined;
105
105
  defaultText?: string[] | undefined;
106
106
  vectors?: Record<string, {
107
- source: string[];
108
107
  model: {
109
108
  providerId: string;
110
109
  modelId: string;
@@ -115,6 +114,7 @@ export declare function registerOntologyRoutes(app: Elysia, host: SixbHostView):
115
114
  version?: string | undefined;
116
115
  } | undefined;
117
116
  };
117
+ source: string[];
118
118
  }> | undefined;
119
119
  } | undefined;
120
120
  }[];
@@ -145,8 +145,10 @@ export declare function registerOntologyRoutes(app: Elysia, host: SixbHostView):
145
145
  response: {
146
146
  200: {
147
147
  id: string;
148
+ name: string;
148
149
  actions: {
149
150
  id: string;
151
+ name: string;
150
152
  params: {
151
153
  id: string;
152
154
  name: string;
@@ -156,7 +158,6 @@ export declare function registerOntologyRoutes(app: Elysia, host: SixbHostView):
156
158
  semanticType?: string | undefined;
157
159
  schema?: unknown;
158
160
  }[];
159
- name: string;
160
161
  description?: string | undefined;
161
162
  }[];
162
163
  properties: {
@@ -186,7 +187,6 @@ export declare function registerOntologyRoutes(app: Elysia, host: SixbHostView):
186
187
  semanticType?: string | undefined;
187
188
  schema?: unknown;
188
189
  }[];
189
- name: string;
190
190
  links: {
191
191
  id: string;
192
192
  name: string;
@@ -223,7 +223,6 @@ export declare function registerOntologyRoutes(app: Elysia, host: SixbHostView):
223
223
  title?: string | undefined;
224
224
  defaultText?: string[] | undefined;
225
225
  vectors?: Record<string, {
226
- source: string[];
227
226
  model: {
228
227
  providerId: string;
229
228
  modelId: string;
@@ -234,6 +233,7 @@ export declare function registerOntologyRoutes(app: Elysia, host: SixbHostView):
234
233
  version?: string | undefined;
235
234
  } | undefined;
236
235
  };
236
+ source: string[];
237
237
  }> | undefined;
238
238
  } | undefined;
239
239
  };
@@ -35,6 +35,7 @@ export declare function registerPipelineRoutes(app: Elysia, host: SixbHostView):
35
35
  projectId: string;
36
36
  id: string;
37
37
  queuedAt: string;
38
+ attempt: number;
38
39
  pipelineId: string;
39
40
  error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
40
41
  startedAt?: string | undefined;
@@ -61,8 +62,8 @@ export declare function registerPipelineRoutes(app: Elysia, host: SixbHostView):
61
62
  id: string;
62
63
  schema: {
63
64
  columns: {
64
- type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
65
65
  name: string;
66
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
66
67
  nullable?: boolean | undefined;
67
68
  }[];
68
69
  };
@@ -77,8 +78,8 @@ export declare function registerPipelineRoutes(app: Elysia, host: SixbHostView):
77
78
  id: string;
78
79
  schema: {
79
80
  columns: {
80
- type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
81
81
  name: string;
82
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
82
83
  nullable?: boolean | undefined;
83
84
  }[];
84
85
  };
@@ -128,6 +129,7 @@ export declare function registerPipelineRoutes(app: Elysia, host: SixbHostView):
128
129
  projectId: string;
129
130
  id: string;
130
131
  queuedAt: string;
132
+ attempt: number;
131
133
  pipelineId: string;
132
134
  error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
133
135
  startedAt?: string | undefined;
@@ -154,8 +156,8 @@ export declare function registerPipelineRoutes(app: Elysia, host: SixbHostView):
154
156
  id: string;
155
157
  schema: {
156
158
  columns: {
157
- type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
158
159
  name: string;
160
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
159
161
  nullable?: boolean | undefined;
160
162
  }[];
161
163
  };
@@ -170,8 +172,8 @@ export declare function registerPipelineRoutes(app: Elysia, host: SixbHostView):
170
172
  id: string;
171
173
  schema: {
172
174
  columns: {
173
- type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
174
175
  name: string;
176
+ type: "string" | "boolean" | "date" | "int64" | "fileRef" | "json" | "decimal" | "timestamp" | "float64";
175
177
  nullable?: boolean | undefined;
176
178
  }[];
177
179
  };
@@ -225,6 +227,7 @@ export declare function registerPipelineRoutes(app: Elysia, host: SixbHostView):
225
227
  projectId: string;
226
228
  id: string;
227
229
  queuedAt: string;
230
+ attempt: number;
228
231
  pipelineId: string;
229
232
  error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
230
233
  startedAt?: string | undefined;
@@ -274,6 +277,7 @@ export declare function registerPipelineRoutes(app: Elysia, host: SixbHostView):
274
277
  projectId: string;
275
278
  id: string;
276
279
  queuedAt: string;
280
+ attempt: number;
277
281
  pipelineId: string;
278
282
  error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
279
283
  startedAt?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"pipelines.d.ts","sourceRoot":"","sources":["../../src/routes/pipelines.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAA4C,YAAY,EAAE,MAAM,YAAY,CAAA;AAExF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AA0HpC,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkLrE"}
1
+ {"version":3,"file":"pipelines.d.ts","sourceRoot":"","sources":["../../src/routes/pipelines.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAA4C,YAAY,EAAE,MAAM,YAAY,CAAA;AAExF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AA2HpC,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkLrE"}
@@ -138,7 +138,7 @@ 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;
@@ -491,7 +491,7 @@ 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;