@sixb/server 0.1.17 → 0.1.19

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 (110) hide show
  1. package/README.md +3 -3
  2. package/dist/actions/serialize.d.ts +7 -0
  3. package/dist/actions/serialize.d.ts.map +1 -0
  4. package/dist/auth/experience.d.ts +5 -1
  5. package/dist/auth/experience.d.ts.map +1 -1
  6. package/dist/files/content.d.ts +0 -1
  7. package/dist/files/content.d.ts.map +1 -1
  8. package/dist/index.js +812 -769
  9. package/dist/index.js.map +32 -31
  10. package/dist/routes/action-runs.d.ts +11 -13
  11. package/dist/routes/action-runs.d.ts.map +1 -1
  12. package/dist/routes/actions.d.ts +44 -13
  13. package/dist/routes/actions.d.ts.map +1 -1
  14. package/dist/routes/agent-api-gateway.d.ts.map +1 -1
  15. package/dist/routes/agents.d.ts +67 -47
  16. package/dist/routes/agents.d.ts.map +1 -1
  17. package/dist/routes/auth.d.ts +3 -2
  18. package/dist/routes/auth.d.ts.map +1 -1
  19. package/dist/routes/connector-connection-runs.d.ts +21 -21
  20. package/dist/routes/connector-connections.d.ts +8 -8
  21. package/dist/routes/connectors.d.ts +2 -2
  22. package/dist/routes/datasets.d.ts +9 -6
  23. package/dist/routes/datasets.d.ts.map +1 -1
  24. package/dist/routes/events.d.ts +4 -4
  25. package/dist/routes/files.d.ts +15 -12
  26. package/dist/routes/files.d.ts.map +1 -1
  27. package/dist/routes/models.d.ts +1 -0
  28. package/dist/routes/models.d.ts.map +1 -1
  29. package/dist/routes/objects.d.ts +21 -4
  30. package/dist/routes/objects.d.ts.map +1 -1
  31. package/dist/routes/ontology.d.ts +6 -6
  32. package/dist/routes/pipelines.d.ts +16 -16
  33. package/dist/routes/project.d.ts +2 -0
  34. package/dist/routes/project.d.ts.map +1 -1
  35. package/dist/routes/projections.d.ts +49 -49
  36. package/dist/routes/syncs.d.ts +10 -10
  37. package/dist/routes/webhook-runs.d.ts +2 -2
  38. package/dist/routes/workflows.d.ts +51 -48
  39. package/dist/routes/workflows.d.ts.map +1 -1
  40. package/dist/routes/ws/events.d.ts +6 -9
  41. package/dist/routes/ws/events.d.ts.map +1 -1
  42. package/dist/routes/ws/subscription-hub.d.ts +5 -0
  43. package/dist/routes/ws/subscription-hub.d.ts.map +1 -1
  44. package/dist/schemas/actions.d.ts +100 -84
  45. package/dist/schemas/actions.d.ts.map +1 -1
  46. package/dist/schemas/agents.d.ts +242 -143
  47. package/dist/schemas/agents.d.ts.map +1 -1
  48. package/dist/schemas/ai-accounting.d.ts +10 -10
  49. package/dist/schemas/ai-limits.d.ts +10 -10
  50. package/dist/schemas/auth.d.ts +7 -0
  51. package/dist/schemas/auth.d.ts.map +1 -1
  52. package/dist/schemas/common.d.ts +8 -0
  53. package/dist/schemas/common.d.ts.map +1 -1
  54. package/dist/schemas/connectors.d.ts +8 -8
  55. package/dist/schemas/datasets.d.ts +58 -43
  56. package/dist/schemas/datasets.d.ts.map +1 -1
  57. package/dist/schemas/event-payloads.d.ts +39 -0
  58. package/dist/schemas/event-payloads.d.ts.map +1 -1
  59. package/dist/schemas/events.d.ts +24 -24
  60. package/dist/schemas/events.d.ts.map +1 -1
  61. package/dist/schemas/files.d.ts +5 -5
  62. package/dist/schemas/files.d.ts.map +1 -1
  63. package/dist/schemas/models.d.ts +10 -0
  64. package/dist/schemas/models.d.ts.map +1 -1
  65. package/dist/schemas/objects.d.ts +32 -0
  66. package/dist/schemas/objects.d.ts.map +1 -1
  67. package/dist/schemas/ontology.d.ts +40 -40
  68. package/dist/schemas/pipelines.d.ts +92 -92
  69. package/dist/schemas/project.d.ts +8 -0
  70. package/dist/schemas/project.d.ts.map +1 -1
  71. package/dist/schemas/projections.d.ts +290 -290
  72. package/dist/schemas/syncs.d.ts +34 -34
  73. package/dist/schemas/webhook-runs.d.ts +8 -8
  74. package/dist/schemas/workflows.d.ts +177 -160
  75. package/dist/schemas/workflows.d.ts.map +1 -1
  76. package/dist/server.d.ts +1 -0
  77. package/dist/server.d.ts.map +1 -1
  78. package/dist/utils/http.d.ts.map +1 -1
  79. package/dist/utils/request-body.d.ts +20 -6
  80. package/dist/utils/request-body.d.ts.map +1 -1
  81. package/package.json +6 -5
  82. package/src/actions/serialize.ts +55 -0
  83. package/src/auth/experience.ts +20 -2
  84. package/src/files/content.ts +43 -88
  85. package/src/routes/action-runs.ts +1 -54
  86. package/src/routes/actions.ts +26 -8
  87. package/src/routes/agent-api-gateway.ts +18 -42
  88. package/src/routes/agents.ts +29 -9
  89. package/src/routes/auth.ts +84 -19
  90. package/src/routes/datasets.ts +12 -43
  91. package/src/routes/files.ts +18 -64
  92. package/src/routes/models.ts +3 -0
  93. package/src/routes/objects.ts +12 -2
  94. package/src/routes/project.ts +2 -1
  95. package/src/routes/workflows.ts +5 -0
  96. package/src/routes/ws/events.ts +7 -15
  97. package/src/routes/ws/subscription-hub.ts +20 -5
  98. package/src/schemas/actions.ts +21 -18
  99. package/src/schemas/agents.ts +28 -3
  100. package/src/schemas/auth.ts +5 -0
  101. package/src/schemas/common.ts +3 -0
  102. package/src/schemas/datasets.ts +23 -1
  103. package/src/schemas/event-payloads.ts +3 -1
  104. package/src/schemas/files.ts +7 -1
  105. package/src/schemas/models.ts +2 -0
  106. package/src/schemas/objects.ts +13 -0
  107. package/src/schemas/project.ts +4 -0
  108. package/src/server.ts +23 -4
  109. package/src/utils/http.ts +2 -0
  110. package/src/utils/request-body.ts +55 -6
@@ -115,7 +115,7 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
115
115
  };
116
116
  slot: string;
117
117
  } | {
118
- status: "cancelled" | "expired";
118
+ status: "expired" | "cancelled";
119
119
  id: string;
120
120
  kind: "connect" | "reauthorize";
121
121
  finishedAt: string;
@@ -205,17 +205,17 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
205
205
  error: string;
206
206
  code?: "connector.credentials_unavailable" | "connector.provider_unavailable" | undefined;
207
207
  };
208
- 400: {
208
+ 409: {
209
209
  error: string;
210
- code?: "connector.authorization_invalid" | "connector.configuration_invalid" | undefined;
210
+ code?: "connector.authorization_required" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.replacement_required" | "connector.revocation_pending" | undefined;
211
211
  };
212
212
  502: {
213
213
  error: string;
214
214
  code?: "connector.adapter_invalid" | "connector.provider_failed" | undefined;
215
215
  };
216
- 409: {
216
+ 400: {
217
217
  error: string;
218
- code?: "connector.authorization_required" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.replacement_required" | "connector.revocation_pending" | undefined;
218
+ code?: "connector.authorization_invalid" | "connector.configuration_invalid" | undefined;
219
219
  };
220
220
  500: {
221
221
  error: string;
@@ -353,7 +353,7 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
353
353
  };
354
354
  slot: string;
355
355
  } | {
356
- status: "cancelled" | "expired";
356
+ status: "expired" | "cancelled";
357
357
  id: string;
358
358
  kind: "connect" | "reauthorize";
359
359
  finishedAt: string;
@@ -497,7 +497,7 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
497
497
  };
498
498
  slot: string;
499
499
  } | {
500
- status: "cancelled" | "expired";
500
+ status: "expired" | "cancelled";
501
501
  id: string;
502
502
  kind: "connect" | "reauthorize";
503
503
  finishedAt: string;
@@ -518,14 +518,14 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
518
518
  403: {
519
519
  error: string;
520
520
  };
521
- 400: {
522
- error: string;
523
- code?: "connector.authorization_invalid" | "connector.configuration_invalid" | undefined;
524
- };
525
521
  409: {
526
522
  error: string;
527
523
  code?: "connector.authorization_required" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.replacement_required" | "connector.revocation_pending" | undefined;
528
524
  };
525
+ 400: {
526
+ error: string;
527
+ code?: "connector.authorization_invalid" | "connector.configuration_invalid" | undefined;
528
+ };
529
529
  500: {
530
530
  error: string;
531
531
  code?: "internal.unexpected" | undefined;
@@ -613,7 +613,7 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
613
613
  };
614
614
  slot: string;
615
615
  } | {
616
- status: "cancelled" | "expired";
616
+ status: "expired" | "cancelled";
617
617
  id: string;
618
618
  kind: "connect" | "reauthorize";
619
619
  finishedAt: string;
@@ -744,7 +744,7 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
744
744
  };
745
745
  slot: string;
746
746
  } | {
747
- status: "cancelled" | "expired";
747
+ status: "expired" | "cancelled";
748
748
  id: string;
749
749
  kind: "connect" | "reauthorize";
750
750
  finishedAt: string;
@@ -763,14 +763,14 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
763
763
  403: {
764
764
  error: string;
765
765
  };
766
- 400: {
767
- error: string;
768
- code?: "connector.authorization_invalid" | "connector.configuration_invalid" | undefined;
769
- };
770
766
  409: {
771
767
  error: string;
772
768
  code?: "connector.authorization_required" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.replacement_required" | "connector.revocation_pending" | undefined;
773
769
  };
770
+ 400: {
771
+ error: string;
772
+ code?: "connector.authorization_invalid" | "connector.configuration_invalid" | undefined;
773
+ };
774
774
  500: {
775
775
  error: string;
776
776
  code?: "internal.unexpected" | undefined;
@@ -842,17 +842,17 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
842
842
  error: string;
843
843
  code?: "connector.credentials_unavailable" | "connector.provider_unavailable" | undefined;
844
844
  };
845
- 400: {
845
+ 409: {
846
846
  error: string;
847
- code?: "connector.authorization_invalid" | "connector.configuration_invalid" | undefined;
847
+ code?: "connector.authorization_required" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.replacement_required" | "connector.revocation_pending" | undefined;
848
848
  };
849
849
  502: {
850
850
  error: string;
851
851
  code?: "connector.adapter_invalid" | "connector.provider_failed" | undefined;
852
852
  };
853
- 409: {
853
+ 400: {
854
854
  error: string;
855
- code?: "connector.authorization_required" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.replacement_required" | "connector.revocation_pending" | undefined;
855
+ code?: "connector.authorization_invalid" | "connector.configuration_invalid" | undefined;
856
856
  };
857
857
  500: {
858
858
  error: string;
@@ -98,14 +98,14 @@ export declare function registerConnectorConnectionRoutes(app: Elysia, host: Six
98
98
  403: {
99
99
  error: string;
100
100
  };
101
- 400: {
102
- error: string;
103
- code?: "connector.authorization_invalid" | "connector.configuration_invalid" | undefined;
104
- };
105
101
  409: {
106
102
  error: string;
107
103
  code?: "connector.authorization_required" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.replacement_required" | "connector.revocation_pending" | undefined;
108
104
  };
105
+ 400: {
106
+ error: string;
107
+ code?: "connector.authorization_invalid" | "connector.configuration_invalid" | undefined;
108
+ };
109
109
  500: {
110
110
  error: string;
111
111
  code?: "internal.unexpected" | undefined;
@@ -170,17 +170,17 @@ export declare function registerConnectorConnectionRoutes(app: Elysia, host: Six
170
170
  error: string;
171
171
  code?: "connector.credentials_unavailable" | "connector.provider_unavailable" | undefined;
172
172
  };
173
- 400: {
173
+ 409: {
174
174
  error: string;
175
- code?: "connector.authorization_invalid" | "connector.configuration_invalid" | undefined;
175
+ code?: "connector.authorization_required" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.replacement_required" | "connector.revocation_pending" | undefined;
176
176
  };
177
177
  502: {
178
178
  error: string;
179
179
  code?: "connector.adapter_invalid" | "connector.provider_failed" | undefined;
180
180
  };
181
- 409: {
181
+ 400: {
182
182
  error: string;
183
- code?: "connector.authorization_required" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.replacement_required" | "connector.revocation_pending" | undefined;
183
+ code?: "connector.authorization_invalid" | "connector.configuration_invalid" | undefined;
184
184
  };
185
185
  500: {
186
186
  error: string;
@@ -30,7 +30,7 @@ export declare function registerConnectorRoutes(app: Elysia, host: SixbHostView)
30
30
  id: string;
31
31
  method: "POST";
32
32
  route: string;
33
- bodyFormat: "json" | "text" | "raw";
33
+ bodyFormat: "text" | "json" | "raw";
34
34
  hasVerify: boolean;
35
35
  hasIdempotency: boolean;
36
36
  }[];
@@ -71,7 +71,7 @@ export declare function registerConnectorRoutes(app: Elysia, host: SixbHostView)
71
71
  id: string;
72
72
  method: "POST";
73
73
  route: string;
74
- bodyFormat: "json" | "text" | "raw";
74
+ bodyFormat: "text" | "json" | "raw";
75
75
  hasVerify: boolean;
76
76
  hasIdempotency: boolean;
77
77
  }[];
@@ -30,7 +30,7 @@ export declare function registerDatasetRoutes(app: Elysia, host: SixbHostView):
30
30
  schema: {
31
31
  columns: {
32
32
  name: string;
33
- type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
33
+ type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
34
34
  nullable?: boolean | undefined;
35
35
  }[];
36
36
  };
@@ -85,7 +85,7 @@ export declare function registerDatasetRoutes(app: Elysia, host: SixbHostView):
85
85
  schema: {
86
86
  columns: {
87
87
  name: string;
88
- type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
88
+ type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
89
89
  nullable?: boolean | undefined;
90
90
  }[];
91
91
  };
@@ -149,7 +149,7 @@ export declare function registerDatasetRoutes(app: Elysia, host: SixbHostView):
149
149
  schema: {
150
150
  columns: {
151
151
  name: string;
152
- type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
152
+ type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
153
153
  nullable?: boolean | undefined;
154
154
  }[];
155
155
  };
@@ -212,7 +212,7 @@ export declare function registerDatasetRoutes(app: Elysia, host: SixbHostView):
212
212
  schema: {
213
213
  columns: {
214
214
  name: string;
215
- type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
215
+ type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
216
216
  nullable?: boolean | undefined;
217
217
  }[];
218
218
  };
@@ -269,7 +269,7 @@ export declare function registerDatasetRoutes(app: Elysia, host: SixbHostView):
269
269
  limit?: string | undefined;
270
270
  offset?: string | undefined;
271
271
  versionId?: string | undefined;
272
- columns?: string | undefined;
272
+ columns?: string[] | undefined;
273
273
  };
274
274
  headers: unknown;
275
275
  response: {
@@ -280,7 +280,7 @@ export declare function registerDatasetRoutes(app: Elysia, host: SixbHostView):
280
280
  schema: {
281
281
  columns: {
282
282
  name: string;
283
- type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
283
+ type: "string" | "boolean" | "date" | "int64" | "json" | "decimal" | "timestamp" | "fileRef" | "float64";
284
284
  nullable?: boolean | undefined;
285
285
  }[];
286
286
  };
@@ -308,6 +308,9 @@ export declare function registerDatasetRoutes(app: Elysia, host: SixbHostView):
308
308
  columns: string[];
309
309
  rows: Record<string, unknown>[];
310
310
  total?: number | undefined;
311
+ redactions?: Record<string, {
312
+ reason: "missing_clearance";
313
+ }> | undefined;
311
314
  };
312
315
  404: {
313
316
  error: string;
@@ -1 +1 @@
1
- {"version":3,"file":"datasets.d.ts","sourceRoot":"","sources":["../../src/routes/datasets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAqB,YAAY,EAAE,MAAM,YAAY,CAAA;AAOjE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAqNpC,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsLpE"}
1
+ {"version":3,"file":"datasets.d.ts","sourceRoot":"","sources":["../../src/routes/datasets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAqB,YAAY,EAAE,MAAM,YAAY,CAAA;AAOjE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AA2LpC,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiLpE"}
@@ -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" | "action.requested" | "action.completed" | "action.failed" | "schedule.triggered" | "rule.triggered" | "rule.resolved" | "sync.run.started" | "sync.run.finished" | "pipeline.run.started" | "pipeline.run.step.started" | "pipeline.run.step.finished" | "pipeline.run.finished" | "workflow.run.queued" | "workflow.run.started" | "workflow.run.node.started" | "workflow.run.waiting" | "workflow.run.node.waiting" | "workflow.run.node.finished" | "workflow.run.finished" | "workflow.intervention.requested" | "workflow.intervention.submitted" | "workflow.intervention.cancelled" | "workflow.intervention.expired" | "dataset.version.committed" | undefined;
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" | undefined;
26
26
  limit?: string | undefined;
27
- topic?: "datasets" | "syncs" | "pipelines" | "workflows" | "rules" | "objects" | "actions" | "links" | "telemetry" | "schedules" | undefined;
27
+ topic?: "datasets" | "syncs" | "pipelines" | "workflows" | "rules" | "objects" | "links" | "telemetry" | "schedules" | undefined;
28
28
  afterCursor?: string | undefined;
29
29
  };
30
30
  headers: unknown;
@@ -36,10 +36,10 @@ export declare function registerEventRoutes(app: Elysia, _host: SixbHostView): E
36
36
  } | {
37
37
  projectId: string;
38
38
  id: string;
39
- type: "action.requested" | "action.completed" | "action.failed" | "schedule.triggered" | "rule.triggered" | "rule.resolved" | "sync.run.started" | "sync.run.finished" | "pipeline.run.started" | "pipeline.run.step.started" | "pipeline.run.step.finished" | "pipeline.run.finished" | "workflow.run.queued" | "workflow.run.started" | "workflow.run.node.started" | "workflow.run.waiting" | "workflow.run.node.waiting" | "workflow.run.node.finished" | "workflow.run.finished" | "workflow.intervention.requested" | "workflow.intervention.submitted" | "workflow.intervention.cancelled" | "workflow.intervention.expired" | "dataset.version.committed";
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";
40
40
  occurredAt: string;
41
41
  payload: Record<string, unknown>;
42
- topic: "datasets" | "syncs" | "pipelines" | "workflows" | "rules" | "objects" | "actions" | "links" | "telemetry" | "schedules";
42
+ topic: "datasets" | "syncs" | "pipelines" | "workflows" | "rules" | "objects" | "links" | "telemetry" | "schedules";
43
43
  partitionKey: string;
44
44
  schemaVersion: 1;
45
45
  cursor: string;
@@ -69,6 +69,8 @@ export declare function registerFileRoutes(app: Elysia, host: SixbHostView): Ely
69
69
  headers: unknown;
70
70
  response: {
71
71
  200: {
72
+ error: string;
73
+ } | {
72
74
  url: string;
73
75
  uploadId: string;
74
76
  strategy: "server";
@@ -85,10 +87,8 @@ export declare function registerFileRoutes(app: Elysia, host: SixbHostView): Ely
85
87
  uploadId: string;
86
88
  strategy: "multipart";
87
89
  expiresAt: string;
88
- partReceipt: "etag" | "none";
90
+ partReceipt: "none" | "etag";
89
91
  partSizeBytes: number;
90
- } | {
91
- error: string;
92
92
  };
93
93
  400: {
94
94
  error: string;
@@ -113,7 +113,7 @@ export declare function registerFileRoutes(app: Elysia, host: SixbHostView): Ely
113
113
  uploadId: string;
114
114
  strategy: "multipart";
115
115
  expiresAt: string;
116
- partReceipt: "etag" | "none";
116
+ partReceipt: "none" | "etag";
117
117
  partSizeBytes: number;
118
118
  };
119
119
  422: {
@@ -150,15 +150,18 @@ export declare function registerFileRoutes(app: Elysia, host: SixbHostView): Ely
150
150
  404: {
151
151
  error: string;
152
152
  };
153
- 400: {
153
+ 409: {
154
154
  error: string;
155
155
  };
156
- 409: {
156
+ 400: {
157
157
  error: string;
158
158
  };
159
159
  501: {
160
160
  error: string;
161
161
  };
162
+ 413: {
163
+ error: string;
164
+ };
162
165
  410: {
163
166
  error: string;
164
167
  };
@@ -204,10 +207,10 @@ export declare function registerFileRoutes(app: Elysia, host: SixbHostView): Ely
204
207
  404: {
205
208
  error: string;
206
209
  };
207
- 400: {
210
+ 409: {
208
211
  error: string;
209
212
  };
210
- 409: {
213
+ 400: {
211
214
  error: string;
212
215
  };
213
216
  501: {
@@ -265,10 +268,10 @@ export declare function registerFileRoutes(app: Elysia, host: SixbHostView): Ely
265
268
  404: {
266
269
  error: string;
267
270
  };
268
- 400: {
271
+ 409: {
269
272
  error: string;
270
273
  };
271
- 409: {
274
+ 400: {
272
275
  error: string;
273
276
  };
274
277
  501: {
@@ -313,10 +316,10 @@ export declare function registerFileRoutes(app: Elysia, host: SixbHostView): Ely
313
316
  404: {
314
317
  error: string;
315
318
  };
316
- 400: {
319
+ 409: {
317
320
  error: string;
318
321
  };
319
- 409: {
322
+ 400: {
320
323
  error: string;
321
324
  };
322
325
  501: {
@@ -1 +1 @@
1
- {"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/routes/files.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,YAAY,EAElB,MAAM,YAAY,CAAA;AAInB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAqBpC,eAAO,MAAM,qCAAqC,QAAiD,CAAA;AAEnG,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgbjE"}
1
+ {"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/routes/files.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,YAAY,EAElB,MAAM,YAAY,CAAA;AAKnB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAqBpC,eAAO,MAAM,qCAAqC,QAAiD,CAAA;AAEnG,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgbjE"}
@@ -46,6 +46,7 @@ export declare function registerModelRoutes(app: Elysia, host: SixbHostView): El
46
46
  reasoningLevels: ("none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max")[];
47
47
  description?: string | undefined;
48
48
  via?: string | undefined;
49
+ defaultReasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
49
50
  }[];
50
51
  };
51
52
  422: {
@@ -1 +1 @@
1
- {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/routes/models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAsB,YAAY,EAAE,MAAM,YAAY,CAAA;AAClE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAcpC,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuBlE"}
1
+ {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/routes/models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAsB,YAAY,EAAE,MAAM,YAAY,CAAA;AAClE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAiBpC,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuBlE"}
@@ -1,18 +1,23 @@
1
1
  import { type SixbHostView } from "@sixb/core";
2
+ import type { Redactions } from "@sixb/core/storage";
2
3
  import type { Elysia } from "elysia";
3
4
  declare function serializeObject(row: {
4
5
  score?: number;
5
6
  primaryId: string;
6
7
  objectTypeId: string;
7
8
  properties: Record<string, unknown>;
9
+ redactions?: Redactions;
8
10
  createdAt: Date;
9
11
  updatedAt: Date;
10
12
  }): {
13
+ createdAt: string;
14
+ updatedAt: string;
15
+ redactions?: Readonly<Record<string, {
16
+ readonly reason: import("@sixb/core").RedactionReason;
17
+ }>> | undefined;
11
18
  primaryId: string;
12
19
  objectTypeId: string;
13
20
  properties: Record<string, unknown>;
14
- createdAt: string;
15
- updatedAt: string;
16
21
  score?: number | undefined;
17
22
  };
18
23
  type SerializedObject = ReturnType<typeof serializeObject>;
@@ -106,6 +111,9 @@ export declare function registerObjectRoutes(app: Elysia, host: SixbHostView): E
106
111
  primaryId: string;
107
112
  createdAt: string;
108
113
  updatedAt: string;
114
+ redactions?: Record<string, {
115
+ reason: "missing_clearance";
116
+ }> | undefined;
109
117
  score?: number | undefined;
110
118
  }[];
111
119
  hasMore: boolean;
@@ -189,11 +197,14 @@ export declare function registerObjectRoutes(app: Elysia, host: SixbHostView): E
189
197
  } | {
190
198
  nextPageToken?: string | undefined;
191
199
  objects: {
200
+ createdAt: string;
201
+ updatedAt: string;
202
+ redactions?: Readonly<Record<string, {
203
+ readonly reason: import("@sixb/core").RedactionReason;
204
+ }>> | undefined;
192
205
  primaryId: string;
193
206
  objectTypeId: string;
194
207
  properties: Record<string, unknown>;
195
- createdAt: string;
196
- updatedAt: string;
197
208
  score?: number | undefined;
198
209
  }[];
199
210
  links: {
@@ -434,6 +445,9 @@ export declare function registerObjectRoutes(app: Elysia, host: SixbHostView): E
434
445
  primaryId: string;
435
446
  createdAt: string;
436
447
  updatedAt: string;
448
+ redactions?: Record<string, {
449
+ reason: "missing_clearance";
450
+ }> | undefined;
437
451
  score?: number | undefined;
438
452
  };
439
453
  404: {
@@ -476,6 +490,9 @@ export declare function registerObjectRoutes(app: Elysia, host: SixbHostView): E
476
490
  primaryId: string;
477
491
  createdAt: string;
478
492
  updatedAt: string;
493
+ redactions?: Record<string, {
494
+ reason: "missing_clearance";
495
+ }> | undefined;
479
496
  score?: number | undefined;
480
497
  };
481
498
  404: {
@@ -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;AAOnB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AA4CpC,iBAAS,eAAe,CAAC,GAAG,EAAE;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;IACjB,YAAY,EAAE,MAAM,CAAA;IACpB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACnC,SAAS,EAAE,IAAI,CAAA;IACf,SAAS,EAAE,IAAI,CAAA;CAChB;;;;;;;EASA;A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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0DAA/C,MAAM;wEAAkC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2xBxF"}
@@ -49,11 +49,11 @@ export declare function registerOntologyRoutes(app: Elysia, host: SixbHostView):
49
49
  id: string;
50
50
  name: string;
51
51
  query?: {
52
- text?: boolean | undefined;
53
52
  exact?: boolean | undefined;
54
53
  searchable?: boolean | undefined;
55
54
  filterable?: boolean | undefined;
56
55
  sortable?: boolean | undefined;
56
+ text?: boolean | undefined;
57
57
  facet?: boolean | undefined;
58
58
  weight?: number | undefined;
59
59
  } | undefined;
@@ -72,17 +72,17 @@ export declare function registerOntologyRoutes(app: Elysia, host: SixbHostView):
72
72
  id: string;
73
73
  name: string;
74
74
  capabilities: {
75
- text: boolean;
76
75
  sortable: boolean;
76
+ text: boolean;
77
77
  facet: boolean;
78
78
  operators: ("eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in" | "exists" | "contains")[];
79
79
  };
80
80
  query?: {
81
- text?: boolean | undefined;
82
81
  exact?: boolean | undefined;
83
82
  searchable?: boolean | undefined;
84
83
  filterable?: boolean | undefined;
85
84
  sortable?: boolean | undefined;
85
+ text?: boolean | undefined;
86
86
  facet?: boolean | undefined;
87
87
  weight?: number | undefined;
88
88
  } | undefined;
@@ -166,11 +166,11 @@ export declare function registerOntologyRoutes(app: Elysia, host: SixbHostView):
166
166
  id: string;
167
167
  name: string;
168
168
  query?: {
169
- text?: boolean | undefined;
170
169
  exact?: boolean | undefined;
171
170
  searchable?: boolean | undefined;
172
171
  filterable?: boolean | undefined;
173
172
  sortable?: boolean | undefined;
173
+ text?: boolean | undefined;
174
174
  facet?: boolean | undefined;
175
175
  weight?: number | undefined;
176
176
  } | undefined;
@@ -189,17 +189,17 @@ export declare function registerOntologyRoutes(app: Elysia, host: SixbHostView):
189
189
  id: string;
190
190
  name: string;
191
191
  capabilities: {
192
- text: boolean;
193
192
  sortable: boolean;
193
+ text: boolean;
194
194
  facet: boolean;
195
195
  operators: ("eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in" | "exists" | "contains")[];
196
196
  };
197
197
  query?: {
198
- text?: boolean | undefined;
199
198
  exact?: boolean | undefined;
200
199
  searchable?: boolean | undefined;
201
200
  filterable?: boolean | undefined;
202
201
  sortable?: boolean | undefined;
202
+ text?: boolean | undefined;
203
203
  facet?: boolean | undefined;
204
204
  weight?: number | undefined;
205
205
  } | undefined;