@sixb/server 0.1.11 → 0.1.12

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 (38) hide show
  1. package/dist/index.js +147 -27
  2. package/dist/index.js.map +11 -11
  3. package/dist/routes/agents.d.ts +121 -34
  4. package/dist/routes/agents.d.ts.map +1 -1
  5. package/dist/routes/ai-accounting.d.ts.map +1 -1
  6. package/dist/routes/datasets.d.ts +8 -8
  7. package/dist/routes/models.d.ts +1 -1
  8. package/dist/routes/objects.d.ts +16 -5
  9. package/dist/routes/objects.d.ts.map +1 -1
  10. package/dist/routes/ontology.d.ts +24 -12
  11. package/dist/routes/ontology.d.ts.map +1 -1
  12. package/dist/routes/syncs.d.ts +5 -5
  13. package/dist/routes/workflows.d.ts +6 -6
  14. package/dist/schemas/agents.d.ts +205 -100
  15. package/dist/schemas/agents.d.ts.map +1 -1
  16. package/dist/schemas/ai-accounting.d.ts +692 -104
  17. package/dist/schemas/ai-accounting.d.ts.map +1 -1
  18. package/dist/schemas/ai-usage.d.ts +2 -2
  19. package/dist/schemas/common.d.ts +15 -0
  20. package/dist/schemas/common.d.ts.map +1 -1
  21. package/dist/schemas/datasets.d.ts +22 -22
  22. package/dist/schemas/models.d.ts +8 -8
  23. package/dist/schemas/objects.d.ts +8 -0
  24. package/dist/schemas/objects.d.ts.map +1 -1
  25. package/dist/schemas/ontology.d.ts +99 -49
  26. package/dist/schemas/ontology.d.ts.map +1 -1
  27. package/dist/schemas/syncs.d.ts +12 -12
  28. package/dist/schemas/workflows.d.ts +50 -50
  29. package/package.json +5 -5
  30. package/src/routes/agents.ts +48 -6
  31. package/src/routes/ai-accounting.ts +1 -0
  32. package/src/routes/objects.ts +46 -2
  33. package/src/routes/ontology.ts +15 -5
  34. package/src/schemas/agents.ts +9 -0
  35. package/src/schemas/ai-accounting.ts +19 -1
  36. package/src/schemas/common.ts +5 -0
  37. package/src/schemas/objects.ts +18 -6
  38. package/src/schemas/ontology.ts +15 -6
@@ -29,8 +29,8 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
29
29
  200: {
30
30
  name: string;
31
31
  model: {
32
- provider: string;
33
32
  modelId: string;
33
+ provider: string;
34
34
  };
35
35
  };
36
36
  404: {
@@ -79,6 +79,12 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
79
79
  createdAt: string;
80
80
  updatedAt: string;
81
81
  title?: string | undefined;
82
+ sandboxState?: {
83
+ status: "unavailable" | "new" | "busy" | "ready" | "blocked";
84
+ name: string;
85
+ initialized: boolean;
86
+ } | undefined;
87
+ sandboxParams?: Record<string, import("../schemas/common").JsonValue> | undefined;
82
88
  lastMessageAt?: string | undefined;
83
89
  }[];
84
90
  };
@@ -108,6 +114,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
108
114
  body: {
109
115
  title?: string | undefined;
110
116
  threadId?: string | undefined;
117
+ sandbox?: Record<string, import("../schemas/common").JsonValue> | undefined;
111
118
  };
112
119
  params: {};
113
120
  query: unknown;
@@ -127,6 +134,12 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
127
134
  createdAt: string;
128
135
  updatedAt: string;
129
136
  title?: string | undefined;
137
+ sandboxState?: {
138
+ status: "unavailable" | "new" | "busy" | "ready" | "blocked";
139
+ name: string;
140
+ initialized: boolean;
141
+ } | undefined;
142
+ sandboxParams?: Record<string, import("../schemas/common").JsonValue> | undefined;
130
143
  lastMessageAt?: string | undefined;
131
144
  };
132
145
  } | {
@@ -158,6 +171,12 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
158
171
  createdAt: string;
159
172
  updatedAt: string;
160
173
  title?: string | undefined;
174
+ sandboxState?: {
175
+ status: "unavailable" | "new" | "busy" | "ready" | "blocked";
176
+ name: string;
177
+ initialized: boolean;
178
+ } | undefined;
179
+ sandboxParams?: Record<string, import("../schemas/common").JsonValue> | undefined;
161
180
  lastMessageAt?: string | undefined;
162
181
  };
163
182
  };
@@ -199,6 +218,12 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
199
218
  createdAt: string;
200
219
  updatedAt: string;
201
220
  title?: string | undefined;
221
+ sandboxState?: {
222
+ status: "unavailable" | "new" | "busy" | "ready" | "blocked";
223
+ name: string;
224
+ initialized: boolean;
225
+ } | undefined;
226
+ sandboxParams?: Record<string, import("../schemas/common").JsonValue> | undefined;
202
227
  lastMessageAt?: string | undefined;
203
228
  };
204
229
  404: {
@@ -224,6 +249,68 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
224
249
  };
225
250
  };
226
251
  };
252
+ } & {
253
+ api: {
254
+ "agent-threads": {
255
+ ":threadId": {
256
+ sandbox: {
257
+ recreate: {
258
+ post: {
259
+ body: {
260
+ expectedSandboxName: string;
261
+ };
262
+ params: {
263
+ threadId: string;
264
+ };
265
+ query: unknown;
266
+ headers: unknown;
267
+ response: {
268
+ 200: {
269
+ status: "active" | "archived";
270
+ projectId: string;
271
+ id: string;
272
+ ownerPrincipal: {
273
+ id: string;
274
+ type: "user" | "serviceAccount" | "system";
275
+ };
276
+ activeRunId: string | null;
277
+ messageCount: number;
278
+ createdAt: string;
279
+ updatedAt: string;
280
+ title?: string | undefined;
281
+ sandboxState?: {
282
+ status: "unavailable" | "new" | "busy" | "ready" | "blocked";
283
+ name: string;
284
+ initialized: boolean;
285
+ } | undefined;
286
+ sandboxParams?: Record<string, import("../schemas/common").JsonValue> | undefined;
287
+ lastMessageAt?: string | undefined;
288
+ };
289
+ 404: {
290
+ error: string;
291
+ };
292
+ 400: {
293
+ error: string;
294
+ };
295
+ 409: {
296
+ error: string;
297
+ };
298
+ 422: {
299
+ type: "validation";
300
+ on: string;
301
+ summary?: string;
302
+ message?: string;
303
+ found?: unknown;
304
+ property?: string;
305
+ expected?: string;
306
+ };
307
+ };
308
+ };
309
+ };
310
+ };
311
+ };
312
+ };
313
+ };
227
314
  } & {
228
315
  api: {
229
316
  "agent-threads": {
@@ -471,8 +558,8 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
471
558
  };
472
559
  }[] | undefined;
473
560
  model?: {
474
- provider: string;
475
561
  modelId: string;
562
+ provider: string;
476
563
  } | undefined;
477
564
  attachments?: {
478
565
  blobId: string;
@@ -504,18 +591,18 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
504
591
  triggerMessageId: string;
505
592
  streamId: string;
506
593
  error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
507
- startedAt?: string | undefined;
508
- completedAt?: string | undefined;
509
594
  model?: {
510
- provider: string;
511
595
  modelId: string;
596
+ provider: string;
512
597
  } | undefined;
513
598
  modelId?: string | undefined;
599
+ startedAt?: string | undefined;
600
+ completedAt?: string | undefined;
514
601
  reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
515
602
  budgetTokens: number;
516
603
  } | undefined;
517
604
  usage?: {
518
- reportingStatus: "complete" | "partial" | "unavailable";
605
+ reportingStatus: "partial" | "complete" | "unavailable";
519
606
  inputTokens?: number | undefined;
520
607
  outputTokens?: number | undefined;
521
608
  totalTokens?: number | undefined;
@@ -581,18 +668,18 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
581
668
  triggerMessageId: string;
582
669
  streamId: string;
583
670
  error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
584
- startedAt?: string | undefined;
585
- completedAt?: string | undefined;
586
671
  model?: {
587
- provider: string;
588
672
  modelId: string;
673
+ provider: string;
589
674
  } | undefined;
590
675
  modelId?: string | undefined;
676
+ startedAt?: string | undefined;
677
+ completedAt?: string | undefined;
591
678
  reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
592
679
  budgetTokens: number;
593
680
  } | undefined;
594
681
  usage?: {
595
- reportingStatus: "complete" | "partial" | "unavailable";
682
+ reportingStatus: "partial" | "complete" | "unavailable";
596
683
  inputTokens?: number | undefined;
597
684
  outputTokens?: number | undefined;
598
685
  totalTokens?: number | undefined;
@@ -666,18 +753,18 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
666
753
  triggerMessageId: string;
667
754
  streamId: string;
668
755
  error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
669
- startedAt?: string | undefined;
670
- completedAt?: string | undefined;
671
756
  model?: {
672
- provider: string;
673
757
  modelId: string;
758
+ provider: string;
674
759
  } | undefined;
675
760
  modelId?: string | undefined;
761
+ startedAt?: string | undefined;
762
+ completedAt?: string | undefined;
676
763
  reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
677
764
  budgetTokens: number;
678
765
  } | undefined;
679
766
  usage?: {
680
- reportingStatus: "complete" | "partial" | "unavailable";
767
+ reportingStatus: "partial" | "complete" | "unavailable";
681
768
  inputTokens?: number | undefined;
682
769
  outputTokens?: number | undefined;
683
770
  totalTokens?: number | undefined;
@@ -735,18 +822,18 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
735
822
  triggerMessageId: string;
736
823
  streamId: string;
737
824
  error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
738
- startedAt?: string | undefined;
739
- completedAt?: string | undefined;
740
825
  model?: {
741
- provider: string;
742
826
  modelId: string;
827
+ provider: string;
743
828
  } | undefined;
744
829
  modelId?: string | undefined;
830
+ startedAt?: string | undefined;
831
+ completedAt?: string | undefined;
745
832
  reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
746
833
  budgetTokens: number;
747
834
  } | undefined;
748
835
  usage?: {
749
- reportingStatus: "complete" | "partial" | "unavailable";
836
+ reportingStatus: "partial" | "complete" | "unavailable";
750
837
  inputTokens?: number | undefined;
751
838
  outputTokens?: number | undefined;
752
839
  totalTokens?: number | undefined;
@@ -821,18 +908,18 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
821
908
  triggerMessageId: string;
822
909
  streamId: string;
823
910
  error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
824
- startedAt?: string | undefined;
825
- completedAt?: string | undefined;
826
911
  model?: {
827
- provider: string;
828
912
  modelId: string;
913
+ provider: string;
829
914
  } | undefined;
830
915
  modelId?: string | undefined;
916
+ startedAt?: string | undefined;
917
+ completedAt?: string | undefined;
831
918
  reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
832
919
  budgetTokens: number;
833
920
  } | undefined;
834
921
  usage?: {
835
- reportingStatus: "complete" | "partial" | "unavailable";
922
+ reportingStatus: "partial" | "complete" | "unavailable";
836
923
  inputTokens?: number | undefined;
837
924
  outputTokens?: number | undefined;
838
925
  totalTokens?: number | undefined;
@@ -895,18 +982,18 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
895
982
  triggerMessageId: string;
896
983
  streamId: string;
897
984
  error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
898
- startedAt?: string | undefined;
899
- completedAt?: string | undefined;
900
985
  model?: {
901
- provider: string;
902
986
  modelId: string;
987
+ provider: string;
903
988
  } | undefined;
904
989
  modelId?: string | undefined;
990
+ startedAt?: string | undefined;
991
+ completedAt?: string | undefined;
905
992
  reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
906
993
  budgetTokens: number;
907
994
  } | undefined;
908
995
  usage?: {
909
- reportingStatus: "complete" | "partial" | "unavailable";
996
+ reportingStatus: "partial" | "complete" | "unavailable";
910
997
  inputTokens?: number | undefined;
911
998
  outputTokens?: number | undefined;
912
999
  totalTokens?: number | undefined;
@@ -985,18 +1072,18 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
985
1072
  triggerMessageId: string;
986
1073
  streamId: string;
987
1074
  error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
988
- startedAt?: string | undefined;
989
- completedAt?: string | undefined;
990
1075
  model?: {
991
- provider: string;
992
1076
  modelId: string;
1077
+ provider: string;
993
1078
  } | undefined;
994
1079
  modelId?: string | undefined;
1080
+ startedAt?: string | undefined;
1081
+ completedAt?: string | undefined;
995
1082
  reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
996
1083
  budgetTokens: number;
997
1084
  } | undefined;
998
1085
  usage?: {
999
- reportingStatus: "complete" | "partial" | "unavailable";
1086
+ reportingStatus: "partial" | "complete" | "unavailable";
1000
1087
  inputTokens?: number | undefined;
1001
1088
  outputTokens?: number | undefined;
1002
1089
  totalTokens?: number | undefined;
@@ -1077,18 +1164,18 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
1077
1164
  triggerMessageId: string;
1078
1165
  streamId: string;
1079
1166
  error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
1080
- startedAt?: string | undefined;
1081
- completedAt?: string | undefined;
1082
1167
  model?: {
1083
- provider: string;
1084
1168
  modelId: string;
1169
+ provider: string;
1085
1170
  } | undefined;
1086
1171
  modelId?: string | undefined;
1172
+ startedAt?: string | undefined;
1173
+ completedAt?: string | undefined;
1087
1174
  reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
1088
1175
  budgetTokens: number;
1089
1176
  } | undefined;
1090
1177
  usage?: {
1091
- reportingStatus: "complete" | "partial" | "unavailable";
1178
+ reportingStatus: "partial" | "complete" | "unavailable";
1092
1179
  inputTokens?: number | undefined;
1093
1180
  outputTokens?: number | undefined;
1094
1181
  totalTokens?: number | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../src/routes/agents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,YAAY,EAAgB,KAAK,YAAY,EAAE,MAAM,YAAY,CAAA;AAalG,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAYpC,OAAO,EASL,cAAc,EAYf,MAAM,mBAAmB,CAAA;AAkE1B,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,YAAY,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,KAAK,CAAC,CAsB5F;AAqJD,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAxEe,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mDAAN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mDAAN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+CAAN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2oBvF"}
@@ -1 +1 @@
1
- {"version":3,"file":"ai-accounting.d.ts","sourceRoot":"","sources":["../../src/routes/ai-accounting.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAW9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAkMpC,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+VzE"}
1
+ {"version":3,"file":"ai-accounting.d.ts","sourceRoot":"","sources":["../../src/routes/ai-accounting.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAW9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAmMpC,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+VzE"}
@@ -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[];
@@ -27,8 +27,8 @@ export declare function registerModelRoutes(app: Elysia, host: SixbHostView): El
27
27
  200: {
28
28
  language: {
29
29
  name: string;
30
- provider: string;
31
30
  modelId: string;
31
+ provider: string;
32
32
  isDefault: boolean;
33
33
  publisher: {
34
34
  id: string;
@@ -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":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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sDA7K1B,MAAM;oEAAkC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0DAA/C,MAAM;wEAAkC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0DAA/C,MAAM;wEAAkC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0DAA/C,MAAM;wEAAkC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmxBxF"}
@@ -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;
@@ -80,7 +79,6 @@ export declare function registerOntologyRoutes(app: Elysia, _host: SixbHostView)
80
79
  filterable?: boolean | undefined;
81
80
  sortable?: boolean | undefined;
82
81
  facet?: boolean | undefined;
83
- vector?: boolean | undefined;
84
82
  weight?: number | undefined;
85
83
  } | undefined;
86
84
  nullable?: boolean | undefined;
@@ -96,11 +94,19 @@ export declare function registerOntologyRoutes(app: Elysia, _host: SixbHostView)
96
94
  search?: {
97
95
  exact?: string[] | undefined;
98
96
  title?: string | undefined;
99
- vector?: {
100
- property: string;
101
- source: string[];
102
- } | undefined;
103
97
  defaultText?: string[] | undefined;
98
+ vectors?: Record<string, {
99
+ source: string[];
100
+ model: {
101
+ providerId: string;
102
+ modelId: string;
103
+ dimensions: number;
104
+ representation?: {
105
+ name: string;
106
+ version?: string | undefined;
107
+ } | undefined;
108
+ };
109
+ }> | undefined;
104
110
  } | undefined;
105
111
  }[];
106
112
  422: {
@@ -160,7 +166,6 @@ export declare function registerOntologyRoutes(app: Elysia, _host: SixbHostView)
160
166
  filterable?: boolean | undefined;
161
167
  sortable?: boolean | undefined;
162
168
  facet?: boolean | undefined;
163
- vector?: boolean | undefined;
164
169
  weight?: number | undefined;
165
170
  } | undefined;
166
171
  nullable?: boolean | undefined;
@@ -184,7 +189,6 @@ export declare function registerOntologyRoutes(app: Elysia, _host: SixbHostView)
184
189
  filterable?: boolean | undefined;
185
190
  sortable?: boolean | undefined;
186
191
  facet?: boolean | undefined;
187
- vector?: boolean | undefined;
188
192
  weight?: number | undefined;
189
193
  } | undefined;
190
194
  nullable?: boolean | undefined;
@@ -200,11 +204,19 @@ export declare function registerOntologyRoutes(app: Elysia, _host: SixbHostView)
200
204
  search?: {
201
205
  exact?: string[] | undefined;
202
206
  title?: string | undefined;
203
- vector?: {
204
- property: string;
205
- source: string[];
206
- } | undefined;
207
207
  defaultText?: string[] | undefined;
208
+ vectors?: Record<string, {
209
+ source: string[];
210
+ model: {
211
+ providerId: string;
212
+ modelId: string;
213
+ dimensions: number;
214
+ representation?: {
215
+ name: string;
216
+ version?: string | undefined;
217
+ } | undefined;
218
+ };
219
+ }> | undefined;
208
220
  } | undefined;
209
221
  };
210
222
  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,EAAkB,YAAY,EAAE,MAAM,YAAY,CAAA;AAE9D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AA4FpC,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CtE"}