@sixb/server 0.1.11 → 0.1.13

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 (104) hide show
  1. package/README.md +5 -4
  2. package/dist/auth/access-token-boundary.d.ts +13 -9
  3. package/dist/auth/access-token-boundary.d.ts.map +1 -1
  4. package/dist/auth/client-address.d.ts +12 -0
  5. package/dist/auth/client-address.d.ts.map +1 -0
  6. package/dist/auth/guard.d.ts.map +1 -1
  7. package/dist/auth/public-routes.d.ts +5 -0
  8. package/dist/auth/public-routes.d.ts.map +1 -1
  9. package/dist/auth/rate-limit.d.ts +15 -0
  10. package/dist/auth/rate-limit.d.ts.map +1 -0
  11. package/dist/auth/scope.d.ts +8 -3
  12. package/dist/auth/scope.d.ts.map +1 -1
  13. package/dist/auth/shared-access.d.ts.map +1 -1
  14. package/dist/index.js +723 -480
  15. package/dist/index.js.map +43 -41
  16. package/dist/openapi/security.d.ts +34 -10
  17. package/dist/openapi/security.d.ts.map +1 -1
  18. package/dist/routes/agents.d.ts +121 -34
  19. package/dist/routes/agents.d.ts.map +1 -1
  20. package/dist/routes/ai-accounting.d.ts.map +1 -1
  21. package/dist/routes/auth.d.ts +64 -17
  22. package/dist/routes/auth.d.ts.map +1 -1
  23. package/dist/routes/connectors.d.ts.map +1 -1
  24. package/dist/routes/datasets.d.ts +8 -8
  25. package/dist/routes/events.d.ts +0 -4
  26. package/dist/routes/events.d.ts.map +1 -1
  27. package/dist/routes/files.d.ts +15 -2
  28. package/dist/routes/files.d.ts.map +1 -1
  29. package/dist/routes/models.d.ts +7 -7
  30. package/dist/routes/objects.d.ts +16 -5
  31. package/dist/routes/objects.d.ts.map +1 -1
  32. package/dist/routes/ontology.d.ts +37 -13
  33. package/dist/routes/ontology.d.ts.map +1 -1
  34. package/dist/routes/shared-access.d.ts.map +1 -1
  35. package/dist/routes/syncs.d.ts +5 -5
  36. package/dist/routes/workflows.d.ts +36 -36
  37. package/dist/routes/workflows.d.ts.map +1 -1
  38. package/dist/routes/ws/agents.d.ts +2 -3
  39. package/dist/routes/ws/agents.d.ts.map +1 -1
  40. package/dist/schemas/agents.d.ts +205 -100
  41. package/dist/schemas/agents.d.ts.map +1 -1
  42. package/dist/schemas/ai-accounting.d.ts +692 -104
  43. package/dist/schemas/ai-accounting.d.ts.map +1 -1
  44. package/dist/schemas/ai-usage.d.ts +2 -2
  45. package/dist/schemas/auth.d.ts +241 -85
  46. package/dist/schemas/auth.d.ts.map +1 -1
  47. package/dist/schemas/common.d.ts +26 -0
  48. package/dist/schemas/common.d.ts.map +1 -1
  49. package/dist/schemas/datasets.d.ts +22 -22
  50. package/dist/schemas/events.d.ts +74 -44
  51. package/dist/schemas/events.d.ts.map +1 -1
  52. package/dist/schemas/models.d.ts +42 -42
  53. package/dist/schemas/objects.d.ts +8 -0
  54. package/dist/schemas/objects.d.ts.map +1 -1
  55. package/dist/schemas/ontology.d.ts +259 -49
  56. package/dist/schemas/ontology.d.ts.map +1 -1
  57. package/dist/schemas/syncs.d.ts +12 -12
  58. package/dist/schemas/workflows.d.ts +230 -240
  59. package/dist/schemas/workflows.d.ts.map +1 -1
  60. package/dist/server.d.ts +6 -0
  61. package/dist/server.d.ts.map +1 -1
  62. package/dist/utils/ws.d.ts +1 -2
  63. package/dist/utils/ws.d.ts.map +1 -1
  64. package/package.json +5 -5
  65. package/src/auth/access-token-boundary.ts +31 -30
  66. package/src/auth/client-address.ts +67 -0
  67. package/src/auth/guard.ts +13 -4
  68. package/src/auth/public-routes.ts +9 -2
  69. package/src/auth/rate-limit.ts +43 -0
  70. package/src/auth/scope.ts +13 -3
  71. package/src/auth/shared-access.ts +0 -3
  72. package/src/openapi/security.ts +37 -17
  73. package/src/routes/action-runs.ts +5 -5
  74. package/src/routes/actions.ts +4 -4
  75. package/src/routes/agents.ts +56 -14
  76. package/src/routes/ai-accounting.ts +11 -10
  77. package/src/routes/auth.ts +331 -432
  78. package/src/routes/connector-connection-runs.ts +5 -5
  79. package/src/routes/connector-connections.ts +3 -3
  80. package/src/routes/connectors.ts +2 -2
  81. package/src/routes/events.ts +2 -2
  82. package/src/routes/files.ts +30 -15
  83. package/src/routes/links.ts +3 -3
  84. package/src/routes/logs.ts +2 -2
  85. package/src/routes/objects.ts +58 -14
  86. package/src/routes/ontology.ts +42 -14
  87. package/src/routes/pipelines.ts +2 -2
  88. package/src/routes/project.ts +2 -2
  89. package/src/routes/share-grants.ts +4 -4
  90. package/src/routes/shared-access.ts +3 -2
  91. package/src/routes/syncs.ts +2 -2
  92. package/src/routes/telemetry.ts +5 -5
  93. package/src/routes/workflows.ts +18 -19
  94. package/src/routes/ws/agents.ts +4 -5
  95. package/src/schemas/agents.ts +9 -0
  96. package/src/schemas/ai-accounting.ts +19 -1
  97. package/src/schemas/auth.ts +27 -8
  98. package/src/schemas/common.ts +11 -0
  99. package/src/schemas/events.ts +35 -7
  100. package/src/schemas/objects.ts +18 -6
  101. package/src/schemas/ontology.ts +31 -7
  102. package/src/schemas/workflows.ts +4 -9
  103. package/src/server.ts +35 -5
  104. package/src/utils/ws.ts +2 -3
@@ -37,7 +37,7 @@ export declare function registerDatasetRoutes(app: Elysia, host: SixbHostView):
37
37
  syncIds: string[];
38
38
  materialized: boolean;
39
39
  latestVersion: {
40
- mode: "append" | "schema" | "snapshot" | "merge";
40
+ mode: "append" | "schema" | "merge" | "snapshot";
41
41
  createdAt: string;
42
42
  datasetId: string;
43
43
  versionId: string;
@@ -92,7 +92,7 @@ export declare function registerDatasetRoutes(app: Elysia, host: SixbHostView):
92
92
  syncIds: string[];
93
93
  materialized: boolean;
94
94
  latestVersion: {
95
- mode: "append" | "schema" | "snapshot" | "merge";
95
+ mode: "append" | "schema" | "merge" | "snapshot";
96
96
  createdAt: string;
97
97
  datasetId: string;
98
98
  versionId: string;
@@ -145,7 +145,7 @@ export declare function registerDatasetRoutes(app: Elysia, host: SixbHostView):
145
145
  200: {
146
146
  count: number;
147
147
  versions: {
148
- mode: "append" | "schema" | "snapshot" | "merge";
148
+ mode: "append" | "schema" | "merge" | "snapshot";
149
149
  schema: {
150
150
  columns: {
151
151
  name: string;
@@ -208,7 +208,7 @@ export declare function registerDatasetRoutes(app: Elysia, host: SixbHostView):
208
208
  headers: unknown;
209
209
  response: {
210
210
  200: {
211
- mode: "append" | "schema" | "snapshot" | "merge";
211
+ mode: "append" | "schema" | "merge" | "snapshot";
212
212
  schema: {
213
213
  columns: {
214
214
  name: string;
@@ -275,11 +275,8 @@ export declare function registerDatasetRoutes(app: Elysia, host: SixbHostView):
275
275
  response: {
276
276
  200: {
277
277
  count: number;
278
- limit: number;
279
- offset: number;
280
- hasMore: boolean;
281
278
  version: {
282
- mode: "append" | "schema" | "snapshot" | "merge";
279
+ mode: "append" | "schema" | "merge" | "snapshot";
283
280
  schema: {
284
281
  columns: {
285
282
  name: string;
@@ -303,6 +300,9 @@ export declare function registerDatasetRoutes(app: Elysia, host: SixbHostView):
303
300
  }[] | undefined;
304
301
  rowCount?: number | undefined;
305
302
  };
303
+ limit: number;
304
+ offset: number;
305
+ hasMore: boolean;
306
306
  datasetId: string;
307
307
  versionId: string;
308
308
  columns: string[];
@@ -74,10 +74,6 @@ export declare function registerEventRoutes(app: Elysia, _host: SixbHostView): E
74
74
  correlationId?: string | undefined;
75
75
  causationId?: string | undefined;
76
76
  idempotencyKey?: string | undefined;
77
- actor?: {
78
- id: string;
79
- type: "user" | "serviceAccount" | "system";
80
- } | undefined;
81
77
  })[];
82
78
  count: number;
83
79
  };
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/routes/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,YAAY,EAAE,MAAM,YAAY,CAAA;AAClE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAOpC,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CnE"}
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/routes/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,YAAY,EAAE,MAAM,YAAY,CAAA;AAClE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAOpC,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CnE"}
@@ -89,12 +89,13 @@ export declare function registerFileRoutes(app: Elysia, host: SixbHostView): Ely
89
89
  partSizeBytes: number;
90
90
  } | {
91
91
  error: string;
92
- code?: import("@sixb/core").SixbErrorCode;
93
- details?: import("@sixb/core").ReadonlyJsonValue;
94
92
  };
95
93
  400: {
96
94
  error: string;
97
95
  };
96
+ 501: {
97
+ error: string;
98
+ };
98
99
  201: {
99
100
  url: string;
100
101
  uploadId: string;
@@ -155,6 +156,9 @@ export declare function registerFileRoutes(app: Elysia, host: SixbHostView): Ely
155
156
  409: {
156
157
  error: string;
157
158
  };
159
+ 501: {
160
+ error: string;
161
+ };
158
162
  410: {
159
163
  error: string;
160
164
  };
@@ -206,6 +210,9 @@ export declare function registerFileRoutes(app: Elysia, host: SixbHostView): Ely
206
210
  409: {
207
211
  error: string;
208
212
  };
213
+ 501: {
214
+ error: string;
215
+ };
209
216
  410: {
210
217
  error: string;
211
218
  };
@@ -264,6 +271,9 @@ export declare function registerFileRoutes(app: Elysia, host: SixbHostView): Ely
264
271
  409: {
265
272
  error: string;
266
273
  };
274
+ 501: {
275
+ error: string;
276
+ };
267
277
  410: {
268
278
  error: string;
269
279
  };
@@ -309,6 +319,9 @@ export declare function registerFileRoutes(app: Elysia, host: SixbHostView): Ely
309
319
  409: {
310
320
  error: string;
311
321
  };
322
+ 501: {
323
+ error: string;
324
+ };
312
325
  410: {
313
326
  error: string;
314
327
  };
@@ -1 +1 @@
1
- {"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/routes/files.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgajE"}
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"}
@@ -27,13 +27,6 @@ export declare function registerModelRoutes(app: Elysia, host: SixbHostView): El
27
27
  200: {
28
28
  language: {
29
29
  name: string;
30
- provider: string;
31
- modelId: string;
32
- isDefault: boolean;
33
- publisher: {
34
- id: string;
35
- name: string;
36
- };
37
30
  capabilities: {
38
31
  output: ("text" | "image" | "audio" | "video" | "pdf")[];
39
32
  input: ("text" | "image" | "audio" | "video" | "pdf")[];
@@ -43,6 +36,13 @@ export declare function registerModelRoutes(app: Elysia, host: SixbHostView): El
43
36
  structuredOutput?: boolean | undefined;
44
37
  contextWindowTokens?: number | undefined;
45
38
  };
39
+ modelId: string;
40
+ provider: string;
41
+ isDefault: boolean;
42
+ publisher: {
43
+ id: string;
44
+ name: string;
45
+ };
46
46
  reasoningLevels: ("none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max")[];
47
47
  description?: string | undefined;
48
48
  via?: string | undefined;
@@ -1,6 +1,7 @@
1
1
  import { type SixbHostView } from "@sixb/core";
2
2
  import type { Elysia } from "elysia";
3
3
  declare function serializeObject(row: {
4
+ score?: number;
4
5
  primaryId: string;
5
6
  objectTypeId: string;
6
7
  properties: Record<string, unknown>;
@@ -12,6 +13,7 @@ declare function serializeObject(row: {
12
13
  properties: Record<string, unknown>;
13
14
  createdAt: string;
14
15
  updatedAt: string;
16
+ score?: number | undefined;
15
17
  };
16
18
  type SerializedObject = ReturnType<typeof serializeObject>;
17
19
  type SerializedLinkValue = SerializedExpandedObject | SerializedExpandedObject[] | null;
@@ -104,6 +106,7 @@ export declare function registerObjectRoutes(app: Elysia, host: SixbHostView): E
104
106
  primaryId: string;
105
107
  createdAt: string;
106
108
  updatedAt: string;
109
+ score?: number | undefined;
107
110
  }[];
108
111
  hasMore: boolean;
109
112
  total: number;
@@ -139,7 +142,8 @@ export declare function registerObjectRoutes(app: Elysia, host: SixbHostView): E
139
142
  response: {
140
143
  200: {
141
144
  error: string;
142
- issues?: undefined;
145
+ code?: import("@sixb/core").SixbErrorCode;
146
+ details?: import("@sixb/core").ReadonlyJsonValue;
143
147
  } | {
144
148
  error: string;
145
149
  issues: readonly import("@sixb/core").ObjectQueryValidationIssue[] | readonly import("@sixb/core/internal/query").ObjectQueryPlanningIssue[];
@@ -177,7 +181,8 @@ export declare function registerObjectRoutes(app: Elysia, host: SixbHostView): E
177
181
  response: {
178
182
  200: {
179
183
  error: string;
180
- issues?: undefined;
184
+ code?: import("@sixb/core").SixbErrorCode;
185
+ details?: import("@sixb/core").ReadonlyJsonValue;
181
186
  } | {
182
187
  error: string;
183
188
  issues: readonly import("@sixb/core").ObjectQueryValidationIssue[] | readonly import("@sixb/core/internal/query").ObjectQueryPlanningIssue[];
@@ -189,6 +194,7 @@ export declare function registerObjectRoutes(app: Elysia, host: SixbHostView): E
189
194
  properties: Record<string, unknown>;
190
195
  createdAt: string;
191
196
  updatedAt: string;
197
+ score?: number | undefined;
192
198
  }[];
193
199
  links: {
194
200
  createdAt: string;
@@ -225,7 +231,8 @@ export declare function registerObjectRoutes(app: Elysia, host: SixbHostView): E
225
231
  response: {
226
232
  200: {
227
233
  error: string;
228
- issues?: undefined;
234
+ code?: import("@sixb/core").SixbErrorCode;
235
+ details?: import("@sixb/core").ReadonlyJsonValue;
229
236
  } | {
230
237
  error: string;
231
238
  issues: readonly import("@sixb/core").ObjectQueryValidationIssue[] | readonly import("@sixb/core/internal/query").ObjectQueryPlanningIssue[];
@@ -261,7 +268,8 @@ export declare function registerObjectRoutes(app: Elysia, host: SixbHostView): E
261
268
  response: {
262
269
  200: {
263
270
  error: string;
264
- issues?: undefined;
271
+ code?: import("@sixb/core").SixbErrorCode;
272
+ details?: import("@sixb/core").ReadonlyJsonValue;
265
273
  } | {
266
274
  error: string;
267
275
  issues: readonly import("@sixb/core").ObjectQueryValidationIssue[] | readonly import("@sixb/core/internal/query").ObjectQueryPlanningIssue[];
@@ -297,7 +305,8 @@ export declare function registerObjectRoutes(app: Elysia, host: SixbHostView): E
297
305
  response: {
298
306
  200: {
299
307
  error: string;
300
- issues?: undefined;
308
+ code?: import("@sixb/core").SixbErrorCode;
309
+ details?: import("@sixb/core").ReadonlyJsonValue;
301
310
  } | {
302
311
  error: string;
303
312
  issues: readonly import("@sixb/core").ObjectQueryValidationIssue[] | readonly import("@sixb/core/internal/query").ObjectQueryPlanningIssue[];
@@ -422,6 +431,7 @@ export declare function registerObjectRoutes(app: Elysia, host: SixbHostView): E
422
431
  primaryId: string;
423
432
  createdAt: string;
424
433
  updatedAt: string;
434
+ score?: number | undefined;
425
435
  };
426
436
  404: {
427
437
  error: string;
@@ -463,6 +473,7 @@ export declare function registerObjectRoutes(app: Elysia, host: SixbHostView): E
463
473
  primaryId: string;
464
474
  createdAt: string;
465
475
  updatedAt: string;
476
+ score?: number | undefined;
466
477
  };
467
478
  404: {
468
479
  error: string;
@@ -1 +1 @@
1
- {"version":3,"file":"objects.d.ts","sourceRoot":"","sources":["../../src/routes/objects.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,YAAY,EAClB,MAAM,YAAY,CAAA;AAOnB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAmCpC,iBAAS,eAAe,CAAC,GAAG,EAAE;IAC5B,SAAS,EAAE,MAAM,CAAA;IACjB,YAAY,EAAE,MAAM,CAAA;IACpB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACnC,SAAS,EAAE,I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C,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmxBxF"}
@@ -1,6 +1,6 @@
1
1
  import type { SixbHostView } from "@sixb/core";
2
2
  import type { Elysia } from "elysia";
3
- export declare function registerOntologyRoutes(app: Elysia, _host: SixbHostView): Elysia<"", {
3
+ export declare function registerOntologyRoutes(app: Elysia, host: SixbHostView): Elysia<"", {
4
4
  decorator: {};
5
5
  store: {};
6
6
  derive: {};
@@ -56,7 +56,6 @@ export declare function registerOntologyRoutes(app: Elysia, _host: SixbHostView)
56
56
  filterable?: boolean | undefined;
57
57
  sortable?: boolean | undefined;
58
58
  facet?: boolean | undefined;
59
- vector?: boolean | undefined;
60
59
  weight?: number | undefined;
61
60
  } | undefined;
62
61
  nullable?: boolean | undefined;
@@ -72,6 +71,12 @@ export declare function registerOntologyRoutes(app: Elysia, _host: SixbHostView)
72
71
  properties: {
73
72
  id: string;
74
73
  name: string;
74
+ capabilities: {
75
+ text: boolean;
76
+ sortable: boolean;
77
+ facet: boolean;
78
+ operators: ("eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in" | "exists" | "contains")[];
79
+ };
75
80
  description?: string | undefined;
76
81
  query?: {
77
82
  text?: boolean | undefined;
@@ -80,7 +85,6 @@ export declare function registerOntologyRoutes(app: Elysia, _host: SixbHostView)
80
85
  filterable?: boolean | undefined;
81
86
  sortable?: boolean | undefined;
82
87
  facet?: boolean | undefined;
83
- vector?: boolean | undefined;
84
88
  weight?: number | undefined;
85
89
  } | undefined;
86
90
  nullable?: boolean | undefined;
@@ -96,11 +100,19 @@ export declare function registerOntologyRoutes(app: Elysia, _host: SixbHostView)
96
100
  search?: {
97
101
  exact?: string[] | undefined;
98
102
  title?: string | undefined;
99
- vector?: {
100
- property: string;
101
- source: string[];
102
- } | undefined;
103
103
  defaultText?: string[] | undefined;
104
+ vectors?: Record<string, {
105
+ source: string[];
106
+ model: {
107
+ providerId: string;
108
+ modelId: string;
109
+ dimensions: number;
110
+ representation?: {
111
+ name: string;
112
+ version?: string | undefined;
113
+ } | undefined;
114
+ };
115
+ }> | undefined;
104
116
  } | undefined;
105
117
  }[];
106
118
  422: {
@@ -160,7 +172,6 @@ export declare function registerOntologyRoutes(app: Elysia, _host: SixbHostView)
160
172
  filterable?: boolean | undefined;
161
173
  sortable?: boolean | undefined;
162
174
  facet?: boolean | undefined;
163
- vector?: boolean | undefined;
164
175
  weight?: number | undefined;
165
176
  } | undefined;
166
177
  nullable?: boolean | undefined;
@@ -176,6 +187,12 @@ export declare function registerOntologyRoutes(app: Elysia, _host: SixbHostView)
176
187
  properties: {
177
188
  id: string;
178
189
  name: string;
190
+ capabilities: {
191
+ text: boolean;
192
+ sortable: boolean;
193
+ facet: boolean;
194
+ operators: ("eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in" | "exists" | "contains")[];
195
+ };
179
196
  description?: string | undefined;
180
197
  query?: {
181
198
  text?: boolean | undefined;
@@ -184,7 +201,6 @@ export declare function registerOntologyRoutes(app: Elysia, _host: SixbHostView)
184
201
  filterable?: boolean | undefined;
185
202
  sortable?: boolean | undefined;
186
203
  facet?: boolean | undefined;
187
- vector?: boolean | undefined;
188
204
  weight?: number | undefined;
189
205
  } | undefined;
190
206
  nullable?: boolean | undefined;
@@ -200,11 +216,19 @@ export declare function registerOntologyRoutes(app: Elysia, _host: SixbHostView)
200
216
  search?: {
201
217
  exact?: string[] | undefined;
202
218
  title?: string | undefined;
203
- vector?: {
204
- property: string;
205
- source: string[];
206
- } | undefined;
207
219
  defaultText?: string[] | undefined;
220
+ vectors?: Record<string, {
221
+ source: string[];
222
+ model: {
223
+ providerId: string;
224
+ modelId: string;
225
+ dimensions: number;
226
+ representation?: {
227
+ name: string;
228
+ version?: string | undefined;
229
+ } | undefined;
230
+ };
231
+ }> | undefined;
208
232
  } | undefined;
209
233
  };
210
234
  404: {
@@ -1 +1 @@
1
- {"version":3,"file":"ontology.d.ts","sourceRoot":"","sources":["../../src/routes/ontology.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAkB,YAAY,EAAE,MAAM,YAAY,CAAA;AAE9D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAkFpC,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CtE"}
1
+ {"version":3,"file":"ontology.d.ts","sourceRoot":"","sources":["../../src/routes/ontology.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAY,YAAY,EAAa,MAAM,YAAY,CAAA;AAGnE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AA0GpC,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CrE"}
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkGrF"}
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"}
@@ -26,7 +26,7 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
26
26
  response: {
27
27
  200: {
28
28
  id: string;
29
- mode: "append" | "snapshot" | "merge";
29
+ mode: "append" | "merge" | "snapshot";
30
30
  target: {
31
31
  kind: "dataset";
32
32
  dataset: {
@@ -52,7 +52,7 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
52
52
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
53
53
  projectId: string;
54
54
  id: string;
55
- mode: "append" | "snapshot" | "merge";
55
+ mode: "append" | "merge" | "snapshot";
56
56
  queuedAt: string;
57
57
  datasetId: string;
58
58
  syncId: string;
@@ -99,7 +99,7 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
99
99
  response: {
100
100
  200: {
101
101
  id: string;
102
- mode: "append" | "snapshot" | "merge";
102
+ mode: "append" | "merge" | "snapshot";
103
103
  target: {
104
104
  kind: "dataset";
105
105
  dataset: {
@@ -125,7 +125,7 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
125
125
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
126
126
  projectId: string;
127
127
  id: string;
128
- mode: "append" | "snapshot" | "merge";
128
+ mode: "append" | "merge" | "snapshot";
129
129
  queuedAt: string;
130
130
  datasetId: string;
131
131
  syncId: string;
@@ -185,7 +185,7 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
185
185
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
186
186
  projectId: string;
187
187
  id: string;
188
- mode: "append" | "snapshot" | "merge";
188
+ mode: "append" | "merge" | "snapshot";
189
189
  queuedAt: string;
190
190
  datasetId: string;
191
191
  syncId: string;
@@ -64,8 +64,8 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
64
64
  startedAt: string;
65
65
  workflowId: string;
66
66
  requestedBy: {
67
- principalType: "user" | "serviceAccount" | "system";
68
- principalId: string;
67
+ id: string;
68
+ type: "user" | "serviceAccount" | "system";
69
69
  };
70
70
  error?: import("@sixb/core").SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
71
71
  queuedAt?: string | undefined;
@@ -137,8 +137,8 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
137
137
  startedAt: string;
138
138
  workflowId: string;
139
139
  requestedBy: {
140
- principalType: "user" | "serviceAccount" | "system";
141
- principalId: string;
140
+ id: string;
141
+ type: "user" | "serviceAccount" | "system";
142
142
  };
143
143
  error?: import("@sixb/core").SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
144
144
  queuedAt?: string | undefined;
@@ -205,13 +205,13 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
205
205
  expiresAt?: string | undefined;
206
206
  submittedAt?: string | undefined;
207
207
  submittedBy?: {
208
- principalType: "user" | "serviceAccount" | "system";
209
- principalId: string;
208
+ id: string;
209
+ type: "user" | "serviceAccount" | "system";
210
210
  } | undefined;
211
211
  cancelledAt?: string | undefined;
212
212
  cancelledBy?: {
213
- principalType: "user" | "serviceAccount" | "system";
214
- principalId: string;
213
+ id: string;
214
+ type: "user" | "serviceAccount" | "system";
215
215
  } | undefined;
216
216
  expiredAt?: string | undefined;
217
217
  }[];
@@ -265,13 +265,13 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
265
265
  expiresAt?: string | undefined;
266
266
  submittedAt?: string | undefined;
267
267
  submittedBy?: {
268
- principalType: "user" | "serviceAccount" | "system";
269
- principalId: string;
268
+ id: string;
269
+ type: "user" | "serviceAccount" | "system";
270
270
  } | undefined;
271
271
  cancelledAt?: string | undefined;
272
272
  cancelledBy?: {
273
- principalType: "user" | "serviceAccount" | "system";
274
- principalId: string;
273
+ id: string;
274
+ type: "user" | "serviceAccount" | "system";
275
275
  } | undefined;
276
276
  expiredAt?: string | undefined;
277
277
  };
@@ -335,13 +335,13 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
335
335
  expiresAt?: string | undefined;
336
336
  submittedAt?: string | undefined;
337
337
  submittedBy?: {
338
- principalType: "user" | "serviceAccount" | "system";
339
- principalId: string;
338
+ id: string;
339
+ type: "user" | "serviceAccount" | "system";
340
340
  } | undefined;
341
341
  cancelledAt?: string | undefined;
342
342
  cancelledBy?: {
343
- principalType: "user" | "serviceAccount" | "system";
344
- principalId: string;
343
+ id: string;
344
+ type: "user" | "serviceAccount" | "system";
345
345
  } | undefined;
346
346
  expiredAt?: string | undefined;
347
347
  };
@@ -375,13 +375,13 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
375
375
  expiresAt?: string | undefined;
376
376
  submittedAt?: string | undefined;
377
377
  submittedBy?: {
378
- principalType: "user" | "serviceAccount" | "system";
379
- principalId: string;
378
+ id: string;
379
+ type: "user" | "serviceAccount" | "system";
380
380
  } | undefined;
381
381
  cancelledAt?: string | undefined;
382
382
  cancelledBy?: {
383
- principalType: "user" | "serviceAccount" | "system";
384
- principalId: string;
383
+ id: string;
384
+ type: "user" | "serviceAccount" | "system";
385
385
  } | undefined;
386
386
  expiredAt?: string | undefined;
387
387
  };
@@ -433,13 +433,13 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
433
433
  expiresAt?: string | undefined;
434
434
  submittedAt?: string | undefined;
435
435
  submittedBy?: {
436
- principalType: "user" | "serviceAccount" | "system";
437
- principalId: string;
436
+ id: string;
437
+ type: "user" | "serviceAccount" | "system";
438
438
  } | undefined;
439
439
  cancelledAt?: string | undefined;
440
440
  cancelledBy?: {
441
- principalType: "user" | "serviceAccount" | "system";
442
- principalId: string;
441
+ id: string;
442
+ type: "user" | "serviceAccount" | "system";
443
443
  } | undefined;
444
444
  expiredAt?: string | undefined;
445
445
  };
@@ -493,8 +493,8 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
493
493
  startedAt: string;
494
494
  workflowId: string;
495
495
  requestedBy: {
496
- principalType: "user" | "serviceAccount" | "system";
497
- principalId: string;
496
+ id: string;
497
+ type: "user" | "serviceAccount" | "system";
498
498
  };
499
499
  error?: import("@sixb/core").SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
500
500
  queuedAt?: string | undefined;
@@ -543,8 +543,8 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
543
543
  input: Record<string, import("../schemas/common").JsonValue>;
544
544
  workflowId: string;
545
545
  requestedBy: {
546
- principalType: "user" | "serviceAccount" | "system";
547
- principalId: string;
546
+ id: string;
547
+ type: "user" | "serviceAccount" | "system";
548
548
  };
549
549
  error?: import("@sixb/core").SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
550
550
  queuedAt?: string | undefined;
@@ -567,11 +567,11 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
567
567
  agentExecution?: {
568
568
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
569
569
  attempt: number;
570
+ modelId?: string | undefined;
570
571
  startedAt?: string | undefined;
571
572
  completedAt?: string | undefined;
572
- modelId?: string | undefined;
573
573
  usage?: {
574
- reportingStatus: "complete" | "partial" | "unavailable";
574
+ reportingStatus: "partial" | "complete" | "unavailable";
575
575
  inputTokens?: number | undefined;
576
576
  outputTokens?: number | undefined;
577
577
  totalTokens?: number | undefined;
@@ -642,11 +642,11 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
642
642
  createdAt: string;
643
643
  prompt: string;
644
644
  error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
645
+ modelId?: string | undefined;
645
646
  startedAt?: string | undefined;
646
647
  completedAt?: string | undefined;
647
- modelId?: string | undefined;
648
648
  usage?: {
649
- reportingStatus: "complete" | "partial" | "unavailable";
649
+ reportingStatus: "partial" | "complete" | "unavailable";
650
650
  inputTokens?: number | undefined;
651
651
  outputTokens?: number | undefined;
652
652
  totalTokens?: number | undefined;
@@ -779,8 +779,8 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
779
779
  input: Record<string, import("../schemas/common").JsonValue>;
780
780
  workflowId: string;
781
781
  requestedBy: {
782
- principalType: "user" | "serviceAccount" | "system";
783
- principalId: string;
782
+ id: string;
783
+ type: "user" | "serviceAccount" | "system";
784
784
  };
785
785
  error?: import("@sixb/core").SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
786
786
  queuedAt?: string | undefined;
@@ -803,11 +803,11 @@ export declare function registerWorkflowRoutes(app: Elysia, host: SixbHostView):
803
803
  agentExecution?: {
804
804
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
805
805
  attempt: number;
806
+ modelId?: string | undefined;
806
807
  startedAt?: string | undefined;
807
808
  completedAt?: string | undefined;
808
- modelId?: string | undefined;
809
809
  usage?: {
810
- reportingStatus: "complete" | "partial" | "unavailable";
810
+ reportingStatus: "partial" | "complete" | "unavailable";
811
811
  inputTokens?: number | undefined;
812
812
  outputTokens?: number | undefined;
813
813
  totalTokens?: number | undefined;