@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
@@ -23,7 +23,6 @@ export declare const PropertyDefinitionSchema: z.ZodObject<{
23
23
  text: z.ZodOptional<z.ZodBoolean>;
24
24
  exact: z.ZodOptional<z.ZodBoolean>;
25
25
  facet: z.ZodOptional<z.ZodBoolean>;
26
- vector: z.ZodOptional<z.ZodBoolean>;
27
26
  weight: z.ZodOptional<z.ZodNumber>;
28
27
  }, "strip", z.ZodTypeAny, {
29
28
  text?: boolean | undefined;
@@ -32,7 +31,6 @@ export declare const PropertyDefinitionSchema: z.ZodObject<{
32
31
  filterable?: boolean | undefined;
33
32
  sortable?: boolean | undefined;
34
33
  facet?: boolean | undefined;
35
- vector?: boolean | undefined;
36
34
  weight?: number | undefined;
37
35
  }, {
38
36
  text?: boolean | undefined;
@@ -41,7 +39,6 @@ export declare const PropertyDefinitionSchema: z.ZodObject<{
41
39
  filterable?: boolean | undefined;
42
40
  sortable?: boolean | undefined;
43
41
  facet?: boolean | undefined;
44
- vector?: boolean | undefined;
45
42
  weight?: number | undefined;
46
43
  }>>;
47
44
  }, "strip", z.ZodTypeAny, {
@@ -55,7 +52,6 @@ export declare const PropertyDefinitionSchema: z.ZodObject<{
55
52
  filterable?: boolean | undefined;
56
53
  sortable?: boolean | undefined;
57
54
  facet?: boolean | undefined;
58
- vector?: boolean | undefined;
59
55
  weight?: number | undefined;
60
56
  } | undefined;
61
57
  nullable?: boolean | undefined;
@@ -75,7 +71,125 @@ export declare const PropertyDefinitionSchema: z.ZodObject<{
75
71
  filterable?: boolean | undefined;
76
72
  sortable?: boolean | undefined;
77
73
  facet?: boolean | undefined;
78
- vector?: boolean | undefined;
74
+ weight?: number | undefined;
75
+ } | undefined;
76
+ nullable?: boolean | undefined;
77
+ required?: boolean | undefined;
78
+ mode?: "telemetry" | "static" | undefined;
79
+ primary?: boolean | undefined;
80
+ semanticType?: string | undefined;
81
+ schema?: unknown;
82
+ }>;
83
+ export declare const PropertyQueryCapabilitiesSchema: z.ZodObject<{
84
+ operators: z.ZodArray<z.ZodEnum<["eq", "neq", "lt", "lte", "gt", "gte", "in", "exists", "contains"]>, "many">;
85
+ sortable: z.ZodBoolean;
86
+ facet: z.ZodBoolean;
87
+ text: z.ZodBoolean;
88
+ }, "strip", z.ZodTypeAny, {
89
+ text: boolean;
90
+ sortable: boolean;
91
+ facet: boolean;
92
+ operators: ("eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in" | "exists" | "contains")[];
93
+ }, {
94
+ text: boolean;
95
+ sortable: boolean;
96
+ facet: boolean;
97
+ operators: ("eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in" | "exists" | "contains")[];
98
+ }>;
99
+ export declare const ObjectPropertyDefinitionSchema: z.ZodObject<{
100
+ id: z.ZodString;
101
+ name: z.ZodString;
102
+ description: z.ZodOptional<z.ZodString>;
103
+ mode: z.ZodOptional<z.ZodEnum<["static", "telemetry"]>>;
104
+ required: z.ZodOptional<z.ZodBoolean>;
105
+ nullable: z.ZodOptional<z.ZodBoolean>;
106
+ primary: z.ZodOptional<z.ZodBoolean>;
107
+ semanticType: z.ZodOptional<z.ZodString>;
108
+ schema: z.ZodUnknown;
109
+ query: z.ZodOptional<z.ZodObject<{
110
+ searchable: z.ZodOptional<z.ZodBoolean>;
111
+ filterable: z.ZodOptional<z.ZodBoolean>;
112
+ sortable: z.ZodOptional<z.ZodBoolean>;
113
+ text: z.ZodOptional<z.ZodBoolean>;
114
+ exact: z.ZodOptional<z.ZodBoolean>;
115
+ facet: z.ZodOptional<z.ZodBoolean>;
116
+ weight: z.ZodOptional<z.ZodNumber>;
117
+ }, "strip", z.ZodTypeAny, {
118
+ text?: boolean | undefined;
119
+ exact?: boolean | undefined;
120
+ searchable?: boolean | undefined;
121
+ filterable?: boolean | undefined;
122
+ sortable?: boolean | undefined;
123
+ facet?: boolean | undefined;
124
+ weight?: number | undefined;
125
+ }, {
126
+ text?: boolean | undefined;
127
+ exact?: boolean | undefined;
128
+ searchable?: boolean | undefined;
129
+ filterable?: boolean | undefined;
130
+ sortable?: boolean | undefined;
131
+ facet?: boolean | undefined;
132
+ weight?: number | undefined;
133
+ }>>;
134
+ } & {
135
+ capabilities: z.ZodObject<{
136
+ operators: z.ZodArray<z.ZodEnum<["eq", "neq", "lt", "lte", "gt", "gte", "in", "exists", "contains"]>, "many">;
137
+ sortable: z.ZodBoolean;
138
+ facet: z.ZodBoolean;
139
+ text: z.ZodBoolean;
140
+ }, "strip", z.ZodTypeAny, {
141
+ text: boolean;
142
+ sortable: boolean;
143
+ facet: boolean;
144
+ operators: ("eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in" | "exists" | "contains")[];
145
+ }, {
146
+ text: boolean;
147
+ sortable: boolean;
148
+ facet: boolean;
149
+ operators: ("eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in" | "exists" | "contains")[];
150
+ }>;
151
+ }, "strip", z.ZodTypeAny, {
152
+ id: string;
153
+ name: string;
154
+ capabilities: {
155
+ text: boolean;
156
+ sortable: boolean;
157
+ facet: boolean;
158
+ operators: ("eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in" | "exists" | "contains")[];
159
+ };
160
+ description?: string | undefined;
161
+ query?: {
162
+ text?: boolean | undefined;
163
+ exact?: boolean | undefined;
164
+ searchable?: boolean | undefined;
165
+ filterable?: boolean | undefined;
166
+ sortable?: boolean | undefined;
167
+ facet?: boolean | undefined;
168
+ weight?: number | undefined;
169
+ } | undefined;
170
+ nullable?: boolean | undefined;
171
+ required?: boolean | undefined;
172
+ mode?: "telemetry" | "static" | undefined;
173
+ primary?: boolean | undefined;
174
+ semanticType?: string | undefined;
175
+ schema?: unknown;
176
+ }, {
177
+ id: string;
178
+ name: string;
179
+ capabilities: {
180
+ text: boolean;
181
+ sortable: boolean;
182
+ facet: boolean;
183
+ operators: ("eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in" | "exists" | "contains")[];
184
+ };
185
+ description?: string | undefined;
186
+ query?: {
187
+ text?: boolean | undefined;
188
+ exact?: boolean | undefined;
189
+ searchable?: boolean | undefined;
190
+ filterable?: boolean | undefined;
191
+ sortable?: boolean | undefined;
192
+ facet?: boolean | undefined;
79
193
  weight?: number | undefined;
80
194
  } | undefined;
81
195
  nullable?: boolean | undefined;
@@ -108,7 +222,6 @@ export declare const LinkDefinitionSchema: z.ZodObject<{
108
222
  text: z.ZodOptional<z.ZodBoolean>;
109
223
  exact: z.ZodOptional<z.ZodBoolean>;
110
224
  facet: z.ZodOptional<z.ZodBoolean>;
111
- vector: z.ZodOptional<z.ZodBoolean>;
112
225
  weight: z.ZodOptional<z.ZodNumber>;
113
226
  }, "strip", z.ZodTypeAny, {
114
227
  text?: boolean | undefined;
@@ -117,7 +230,6 @@ export declare const LinkDefinitionSchema: z.ZodObject<{
117
230
  filterable?: boolean | undefined;
118
231
  sortable?: boolean | undefined;
119
232
  facet?: boolean | undefined;
120
- vector?: boolean | undefined;
121
233
  weight?: number | undefined;
122
234
  }, {
123
235
  text?: boolean | undefined;
@@ -126,7 +238,6 @@ export declare const LinkDefinitionSchema: z.ZodObject<{
126
238
  filterable?: boolean | undefined;
127
239
  sortable?: boolean | undefined;
128
240
  facet?: boolean | undefined;
129
- vector?: boolean | undefined;
130
241
  weight?: number | undefined;
131
242
  }>>;
132
243
  }, "strip", z.ZodTypeAny, {
@@ -140,7 +251,6 @@ export declare const LinkDefinitionSchema: z.ZodObject<{
140
251
  filterable?: boolean | undefined;
141
252
  sortable?: boolean | undefined;
142
253
  facet?: boolean | undefined;
143
- vector?: boolean | undefined;
144
254
  weight?: number | undefined;
145
255
  } | undefined;
146
256
  nullable?: boolean | undefined;
@@ -160,7 +270,6 @@ export declare const LinkDefinitionSchema: z.ZodObject<{
160
270
  filterable?: boolean | undefined;
161
271
  sortable?: boolean | undefined;
162
272
  facet?: boolean | undefined;
163
- vector?: boolean | undefined;
164
273
  weight?: number | undefined;
165
274
  } | undefined;
166
275
  nullable?: boolean | undefined;
@@ -186,7 +295,6 @@ export declare const LinkDefinitionSchema: z.ZodObject<{
186
295
  filterable?: boolean | undefined;
187
296
  sortable?: boolean | undefined;
188
297
  facet?: boolean | undefined;
189
- vector?: boolean | undefined;
190
298
  weight?: number | undefined;
191
299
  } | undefined;
192
300
  nullable?: boolean | undefined;
@@ -213,7 +321,6 @@ export declare const LinkDefinitionSchema: z.ZodObject<{
213
321
  filterable?: boolean | undefined;
214
322
  sortable?: boolean | undefined;
215
323
  facet?: boolean | undefined;
216
- vector?: boolean | undefined;
217
324
  weight?: number | undefined;
218
325
  } | undefined;
219
326
  nullable?: boolean | undefined;
@@ -329,7 +436,6 @@ export declare const ObjectTypeSchema: z.ZodObject<{
329
436
  text: z.ZodOptional<z.ZodBoolean>;
330
437
  exact: z.ZodOptional<z.ZodBoolean>;
331
438
  facet: z.ZodOptional<z.ZodBoolean>;
332
- vector: z.ZodOptional<z.ZodBoolean>;
333
439
  weight: z.ZodOptional<z.ZodNumber>;
334
440
  }, "strip", z.ZodTypeAny, {
335
441
  text?: boolean | undefined;
@@ -338,7 +444,6 @@ export declare const ObjectTypeSchema: z.ZodObject<{
338
444
  filterable?: boolean | undefined;
339
445
  sortable?: boolean | undefined;
340
446
  facet?: boolean | undefined;
341
- vector?: boolean | undefined;
342
447
  weight?: number | undefined;
343
448
  }, {
344
449
  text?: boolean | undefined;
@@ -347,12 +452,34 @@ export declare const ObjectTypeSchema: z.ZodObject<{
347
452
  filterable?: boolean | undefined;
348
453
  sortable?: boolean | undefined;
349
454
  facet?: boolean | undefined;
350
- vector?: boolean | undefined;
351
455
  weight?: number | undefined;
352
456
  }>>;
457
+ } & {
458
+ capabilities: z.ZodObject<{
459
+ operators: z.ZodArray<z.ZodEnum<["eq", "neq", "lt", "lte", "gt", "gte", "in", "exists", "contains"]>, "many">;
460
+ sortable: z.ZodBoolean;
461
+ facet: z.ZodBoolean;
462
+ text: z.ZodBoolean;
463
+ }, "strip", z.ZodTypeAny, {
464
+ text: boolean;
465
+ sortable: boolean;
466
+ facet: boolean;
467
+ operators: ("eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in" | "exists" | "contains")[];
468
+ }, {
469
+ text: boolean;
470
+ sortable: boolean;
471
+ facet: boolean;
472
+ operators: ("eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in" | "exists" | "contains")[];
473
+ }>;
353
474
  }, "strip", z.ZodTypeAny, {
354
475
  id: string;
355
476
  name: string;
477
+ capabilities: {
478
+ text: boolean;
479
+ sortable: boolean;
480
+ facet: boolean;
481
+ operators: ("eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in" | "exists" | "contains")[];
482
+ };
356
483
  description?: string | undefined;
357
484
  query?: {
358
485
  text?: boolean | undefined;
@@ -361,7 +488,6 @@ export declare const ObjectTypeSchema: z.ZodObject<{
361
488
  filterable?: boolean | undefined;
362
489
  sortable?: boolean | undefined;
363
490
  facet?: boolean | undefined;
364
- vector?: boolean | undefined;
365
491
  weight?: number | undefined;
366
492
  } | undefined;
367
493
  nullable?: boolean | undefined;
@@ -373,6 +499,12 @@ export declare const ObjectTypeSchema: z.ZodObject<{
373
499
  }, {
374
500
  id: string;
375
501
  name: string;
502
+ capabilities: {
503
+ text: boolean;
504
+ sortable: boolean;
505
+ facet: boolean;
506
+ operators: ("eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in" | "exists" | "contains")[];
507
+ };
376
508
  description?: string | undefined;
377
509
  query?: {
378
510
  text?: boolean | undefined;
@@ -381,7 +513,6 @@ export declare const ObjectTypeSchema: z.ZodObject<{
381
513
  filterable?: boolean | undefined;
382
514
  sortable?: boolean | undefined;
383
515
  facet?: boolean | undefined;
384
- vector?: boolean | undefined;
385
516
  weight?: number | undefined;
386
517
  } | undefined;
387
518
  nullable?: boolean | undefined;
@@ -395,32 +526,94 @@ export declare const ObjectTypeSchema: z.ZodObject<{
395
526
  title: z.ZodOptional<z.ZodString>;
396
527
  defaultText: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
397
528
  exact: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
398
- vector: z.ZodOptional<z.ZodObject<{
399
- property: z.ZodString;
529
+ vectors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
400
530
  source: z.ZodArray<z.ZodString, "many">;
531
+ model: z.ZodObject<{
532
+ providerId: z.ZodString;
533
+ modelId: z.ZodString;
534
+ dimensions: z.ZodNumber;
535
+ representation: z.ZodOptional<z.ZodObject<{
536
+ name: z.ZodString;
537
+ version: z.ZodOptional<z.ZodString>;
538
+ }, "strip", z.ZodTypeAny, {
539
+ name: string;
540
+ version?: string | undefined;
541
+ }, {
542
+ name: string;
543
+ version?: string | undefined;
544
+ }>>;
545
+ }, "strip", z.ZodTypeAny, {
546
+ providerId: string;
547
+ modelId: string;
548
+ dimensions: number;
549
+ representation?: {
550
+ name: string;
551
+ version?: string | undefined;
552
+ } | undefined;
553
+ }, {
554
+ providerId: string;
555
+ modelId: string;
556
+ dimensions: number;
557
+ representation?: {
558
+ name: string;
559
+ version?: string | undefined;
560
+ } | undefined;
561
+ }>;
401
562
  }, "strip", z.ZodTypeAny, {
402
- property: string;
403
563
  source: string[];
564
+ model: {
565
+ providerId: string;
566
+ modelId: string;
567
+ dimensions: number;
568
+ representation?: {
569
+ name: string;
570
+ version?: string | undefined;
571
+ } | undefined;
572
+ };
404
573
  }, {
405
- property: string;
406
574
  source: string[];
407
- }>>;
575
+ model: {
576
+ providerId: string;
577
+ modelId: string;
578
+ dimensions: number;
579
+ representation?: {
580
+ name: string;
581
+ version?: string | undefined;
582
+ } | undefined;
583
+ };
584
+ }>>>;
408
585
  }, "strip", z.ZodTypeAny, {
409
586
  exact?: string[] | undefined;
410
587
  title?: string | undefined;
411
- vector?: {
412
- property: string;
413
- source: string[];
414
- } | undefined;
415
588
  defaultText?: string[] | undefined;
589
+ vectors?: Record<string, {
590
+ source: string[];
591
+ model: {
592
+ providerId: string;
593
+ modelId: string;
594
+ dimensions: number;
595
+ representation?: {
596
+ name: string;
597
+ version?: string | undefined;
598
+ } | undefined;
599
+ };
600
+ }> | undefined;
416
601
  }, {
417
602
  exact?: string[] | undefined;
418
603
  title?: string | undefined;
419
- vector?: {
420
- property: string;
421
- source: string[];
422
- } | undefined;
423
604
  defaultText?: string[] | undefined;
605
+ vectors?: Record<string, {
606
+ source: string[];
607
+ model: {
608
+ providerId: string;
609
+ modelId: string;
610
+ dimensions: number;
611
+ representation?: {
612
+ name: string;
613
+ version?: string | undefined;
614
+ } | undefined;
615
+ };
616
+ }> | undefined;
424
617
  }>>;
425
618
  links: z.ZodArray<z.ZodObject<{
426
619
  id: z.ZodString;
@@ -445,7 +638,6 @@ export declare const ObjectTypeSchema: z.ZodObject<{
445
638
  text: z.ZodOptional<z.ZodBoolean>;
446
639
  exact: z.ZodOptional<z.ZodBoolean>;
447
640
  facet: z.ZodOptional<z.ZodBoolean>;
448
- vector: z.ZodOptional<z.ZodBoolean>;
449
641
  weight: z.ZodOptional<z.ZodNumber>;
450
642
  }, "strip", z.ZodTypeAny, {
451
643
  text?: boolean | undefined;
@@ -454,7 +646,6 @@ export declare const ObjectTypeSchema: z.ZodObject<{
454
646
  filterable?: boolean | undefined;
455
647
  sortable?: boolean | undefined;
456
648
  facet?: boolean | undefined;
457
- vector?: boolean | undefined;
458
649
  weight?: number | undefined;
459
650
  }, {
460
651
  text?: boolean | undefined;
@@ -463,7 +654,6 @@ export declare const ObjectTypeSchema: z.ZodObject<{
463
654
  filterable?: boolean | undefined;
464
655
  sortable?: boolean | undefined;
465
656
  facet?: boolean | undefined;
466
- vector?: boolean | undefined;
467
657
  weight?: number | undefined;
468
658
  }>>;
469
659
  }, "strip", z.ZodTypeAny, {
@@ -477,7 +667,6 @@ export declare const ObjectTypeSchema: z.ZodObject<{
477
667
  filterable?: boolean | undefined;
478
668
  sortable?: boolean | undefined;
479
669
  facet?: boolean | undefined;
480
- vector?: boolean | undefined;
481
670
  weight?: number | undefined;
482
671
  } | undefined;
483
672
  nullable?: boolean | undefined;
@@ -497,7 +686,6 @@ export declare const ObjectTypeSchema: z.ZodObject<{
497
686
  filterable?: boolean | undefined;
498
687
  sortable?: boolean | undefined;
499
688
  facet?: boolean | undefined;
500
- vector?: boolean | undefined;
501
689
  weight?: number | undefined;
502
690
  } | undefined;
503
691
  nullable?: boolean | undefined;
@@ -523,7 +711,6 @@ export declare const ObjectTypeSchema: z.ZodObject<{
523
711
  filterable?: boolean | undefined;
524
712
  sortable?: boolean | undefined;
525
713
  facet?: boolean | undefined;
526
- vector?: boolean | undefined;
527
714
  weight?: number | undefined;
528
715
  } | undefined;
529
716
  nullable?: boolean | undefined;
@@ -550,7 +737,6 @@ export declare const ObjectTypeSchema: z.ZodObject<{
550
737
  filterable?: boolean | undefined;
551
738
  sortable?: boolean | undefined;
552
739
  facet?: boolean | undefined;
553
- vector?: boolean | undefined;
554
740
  weight?: number | undefined;
555
741
  } | undefined;
556
742
  nullable?: boolean | undefined;
@@ -650,7 +836,6 @@ export declare const ObjectTypeSchema: z.ZodObject<{
650
836
  filterable?: boolean | undefined;
651
837
  sortable?: boolean | undefined;
652
838
  facet?: boolean | undefined;
653
- vector?: boolean | undefined;
654
839
  weight?: number | undefined;
655
840
  } | undefined;
656
841
  nullable?: boolean | undefined;
@@ -666,6 +851,12 @@ export declare const ObjectTypeSchema: z.ZodObject<{
666
851
  properties: {
667
852
  id: string;
668
853
  name: string;
854
+ capabilities: {
855
+ text: boolean;
856
+ sortable: boolean;
857
+ facet: boolean;
858
+ operators: ("eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in" | "exists" | "contains")[];
859
+ };
669
860
  description?: string | undefined;
670
861
  query?: {
671
862
  text?: boolean | undefined;
@@ -674,7 +865,6 @@ export declare const ObjectTypeSchema: z.ZodObject<{
674
865
  filterable?: boolean | undefined;
675
866
  sortable?: boolean | undefined;
676
867
  facet?: boolean | undefined;
677
- vector?: boolean | undefined;
678
868
  weight?: number | undefined;
679
869
  } | undefined;
680
870
  nullable?: boolean | undefined;
@@ -690,11 +880,19 @@ export declare const ObjectTypeSchema: z.ZodObject<{
690
880
  search?: {
691
881
  exact?: string[] | undefined;
692
882
  title?: string | undefined;
693
- vector?: {
694
- property: string;
695
- source: string[];
696
- } | undefined;
697
883
  defaultText?: string[] | undefined;
884
+ vectors?: Record<string, {
885
+ source: string[];
886
+ model: {
887
+ providerId: string;
888
+ modelId: string;
889
+ dimensions: number;
890
+ representation?: {
891
+ name: string;
892
+ version?: string | undefined;
893
+ } | undefined;
894
+ };
895
+ }> | undefined;
698
896
  } | undefined;
699
897
  }, {
700
898
  id: string;
@@ -728,7 +926,6 @@ export declare const ObjectTypeSchema: z.ZodObject<{
728
926
  filterable?: boolean | undefined;
729
927
  sortable?: boolean | undefined;
730
928
  facet?: boolean | undefined;
731
- vector?: boolean | undefined;
732
929
  weight?: number | undefined;
733
930
  } | undefined;
734
931
  nullable?: boolean | undefined;
@@ -744,6 +941,12 @@ export declare const ObjectTypeSchema: z.ZodObject<{
744
941
  properties: {
745
942
  id: string;
746
943
  name: string;
944
+ capabilities: {
945
+ text: boolean;
946
+ sortable: boolean;
947
+ facet: boolean;
948
+ operators: ("eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in" | "exists" | "contains")[];
949
+ };
747
950
  description?: string | undefined;
748
951
  query?: {
749
952
  text?: boolean | undefined;
@@ -752,7 +955,6 @@ export declare const ObjectTypeSchema: z.ZodObject<{
752
955
  filterable?: boolean | undefined;
753
956
  sortable?: boolean | undefined;
754
957
  facet?: boolean | undefined;
755
- vector?: boolean | undefined;
756
958
  weight?: number | undefined;
757
959
  } | undefined;
758
960
  nullable?: boolean | undefined;
@@ -768,11 +970,19 @@ export declare const ObjectTypeSchema: z.ZodObject<{
768
970
  search?: {
769
971
  exact?: string[] | undefined;
770
972
  title?: string | undefined;
771
- vector?: {
772
- property: string;
773
- source: string[];
774
- } | undefined;
775
973
  defaultText?: string[] | undefined;
974
+ vectors?: Record<string, {
975
+ source: string[];
976
+ model: {
977
+ providerId: string;
978
+ modelId: string;
979
+ dimensions: number;
980
+ representation?: {
981
+ name: string;
982
+ version?: string | undefined;
983
+ } | undefined;
984
+ };
985
+ }> | undefined;
776
986
  } | undefined;
777
987
  }>;
778
988
  //# sourceMappingURL=ontology.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ontology.d.ts","sourceRoot":"","sources":["../../src/schemas/ontology.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,sBAAsB;;;;;;EAAgD,CAAA;AAEnF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsBnC,CAAA;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,7 @@ export declare const SyncRunSchema: z.ZodObject<{
74
74
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
75
75
  projectId: string;
76
76
  id: string;
77
- mode: "append" | "snapshot" | "merge";
77
+ mode: "append" | "merge" | "snapshot";
78
78
  queuedAt: string;
79
79
  datasetId: string;
80
80
  syncId: string;
@@ -92,7 +92,7 @@ export declare const SyncRunSchema: z.ZodObject<{
92
92
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
93
93
  projectId: string;
94
94
  id: string;
95
- mode: "append" | "snapshot" | "merge";
95
+ mode: "append" | "merge" | "snapshot";
96
96
  queuedAt: string;
97
97
  datasetId: string;
98
98
  syncId: string;
@@ -253,7 +253,7 @@ export declare const SyncSchema: z.ZodObject<{
253
253
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
254
254
  projectId: string;
255
255
  id: string;
256
- mode: "append" | "snapshot" | "merge";
256
+ mode: "append" | "merge" | "snapshot";
257
257
  queuedAt: string;
258
258
  datasetId: string;
259
259
  syncId: string;
@@ -271,7 +271,7 @@ export declare const SyncSchema: z.ZodObject<{
271
271
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
272
272
  projectId: string;
273
273
  id: string;
274
- mode: "append" | "snapshot" | "merge";
274
+ mode: "append" | "merge" | "snapshot";
275
275
  queuedAt: string;
276
276
  datasetId: string;
277
277
  syncId: string;
@@ -288,7 +288,7 @@ export declare const SyncSchema: z.ZodObject<{
288
288
  }>>;
289
289
  }, "strip", z.ZodTypeAny, {
290
290
  id: string;
291
- mode: "append" | "snapshot" | "merge";
291
+ mode: "append" | "merge" | "snapshot";
292
292
  target: {
293
293
  kind: "dataset";
294
294
  dataset: {
@@ -314,7 +314,7 @@ export declare const SyncSchema: z.ZodObject<{
314
314
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
315
315
  projectId: string;
316
316
  id: string;
317
- mode: "append" | "snapshot" | "merge";
317
+ mode: "append" | "merge" | "snapshot";
318
318
  queuedAt: string;
319
319
  datasetId: string;
320
320
  syncId: string;
@@ -335,7 +335,7 @@ export declare const SyncSchema: z.ZodObject<{
335
335
  };
336
336
  }, {
337
337
  id: string;
338
- mode: "append" | "snapshot" | "merge";
338
+ mode: "append" | "merge" | "snapshot";
339
339
  target: {
340
340
  kind: "dataset";
341
341
  dataset: {
@@ -361,7 +361,7 @@ export declare const SyncSchema: z.ZodObject<{
361
361
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
362
362
  projectId: string;
363
363
  id: string;
364
- mode: "append" | "snapshot" | "merge";
364
+ mode: "append" | "merge" | "snapshot";
365
365
  queuedAt: string;
366
366
  datasetId: string;
367
367
  syncId: string;
@@ -410,7 +410,7 @@ export declare const SyncRunListResponseSchema: z.ZodObject<{
410
410
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
411
411
  projectId: string;
412
412
  id: string;
413
- mode: "append" | "snapshot" | "merge";
413
+ mode: "append" | "merge" | "snapshot";
414
414
  queuedAt: string;
415
415
  datasetId: string;
416
416
  syncId: string;
@@ -428,7 +428,7 @@ export declare const SyncRunListResponseSchema: z.ZodObject<{
428
428
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
429
429
  projectId: string;
430
430
  id: string;
431
- mode: "append" | "snapshot" | "merge";
431
+ mode: "append" | "merge" | "snapshot";
432
432
  queuedAt: string;
433
433
  datasetId: string;
434
434
  syncId: string;
@@ -450,7 +450,7 @@ export declare const SyncRunListResponseSchema: z.ZodObject<{
450
450
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
451
451
  projectId: string;
452
452
  id: string;
453
- mode: "append" | "snapshot" | "merge";
453
+ mode: "append" | "merge" | "snapshot";
454
454
  queuedAt: string;
455
455
  datasetId: string;
456
456
  syncId: string;
@@ -472,7 +472,7 @@ export declare const SyncRunListResponseSchema: z.ZodObject<{
472
472
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
473
473
  projectId: string;
474
474
  id: string;
475
- mode: "append" | "snapshot" | "merge";
475
+ mode: "append" | "merge" | "snapshot";
476
476
  queuedAt: string;
477
477
  datasetId: string;
478
478
  syncId: string;