@sixb/server 0.1.18 → 0.1.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/README.md +3 -3
  2. package/dist/actions/serialize.d.ts +7 -0
  3. package/dist/actions/serialize.d.ts.map +1 -0
  4. package/dist/index.js +660 -685
  5. package/dist/index.js.map +14 -13
  6. package/dist/routes/action-runs.d.ts +11 -13
  7. package/dist/routes/action-runs.d.ts.map +1 -1
  8. package/dist/routes/actions.d.ts +44 -13
  9. package/dist/routes/actions.d.ts.map +1 -1
  10. package/dist/routes/agent-api-gateway.d.ts.map +1 -1
  11. package/dist/routes/agents.d.ts +20 -20
  12. package/dist/routes/connector-connection-runs.d.ts +21 -21
  13. package/dist/routes/connector-connections.d.ts +8 -8
  14. package/dist/routes/connectors.d.ts +2 -2
  15. package/dist/routes/datasets.d.ts +5 -5
  16. package/dist/routes/events.d.ts +4 -4
  17. package/dist/routes/files.d.ts +15 -12
  18. package/dist/routes/files.d.ts.map +1 -1
  19. package/dist/routes/ontology.d.ts +6 -6
  20. package/dist/routes/pipelines.d.ts +16 -16
  21. package/dist/routes/projections.d.ts +49 -49
  22. package/dist/routes/syncs.d.ts +10 -10
  23. package/dist/routes/webhook-runs.d.ts +2 -2
  24. package/dist/routes/workflows.d.ts +48 -48
  25. package/dist/routes/ws/events.d.ts +6 -9
  26. package/dist/routes/ws/events.d.ts.map +1 -1
  27. package/dist/schemas/actions.d.ts +100 -84
  28. package/dist/schemas/actions.d.ts.map +1 -1
  29. package/dist/schemas/agents.d.ts +20 -20
  30. package/dist/schemas/ai-limits.d.ts +10 -10
  31. package/dist/schemas/connectors.d.ts +8 -8
  32. package/dist/schemas/datasets.d.ts +40 -40
  33. package/dist/schemas/events.d.ts +24 -24
  34. package/dist/schemas/events.d.ts.map +1 -1
  35. package/dist/schemas/files.d.ts +4 -4
  36. package/dist/schemas/ontology.d.ts +40 -40
  37. package/dist/schemas/pipelines.d.ts +92 -92
  38. package/dist/schemas/projections.d.ts +290 -290
  39. package/dist/schemas/syncs.d.ts +34 -34
  40. package/dist/schemas/webhook-runs.d.ts +8 -8
  41. package/dist/schemas/workflows.d.ts +160 -160
  42. package/dist/server.d.ts +1 -0
  43. package/dist/server.d.ts.map +1 -1
  44. package/dist/utils/http.d.ts.map +1 -1
  45. package/dist/utils/request-body.d.ts +20 -6
  46. package/dist/utils/request-body.d.ts.map +1 -1
  47. package/package.json +5 -5
  48. package/src/actions/serialize.ts +55 -0
  49. package/src/routes/action-runs.ts +1 -54
  50. package/src/routes/actions.ts +26 -8
  51. package/src/routes/agent-api-gateway.ts +18 -42
  52. package/src/routes/files.ts +15 -63
  53. package/src/routes/ws/events.ts +2 -12
  54. package/src/schemas/actions.ts +21 -18
  55. package/src/server.ts +21 -3
  56. package/src/utils/http.ts +2 -0
  57. package/src/utils/request-body.ts +55 -6
@@ -25,19 +25,19 @@ export declare const PropertyDefinitionSchema: z.ZodObject<{
25
25
  facet: z.ZodOptional<z.ZodBoolean>;
26
26
  weight: z.ZodOptional<z.ZodNumber>;
27
27
  }, "strip", z.ZodTypeAny, {
28
- text?: boolean | undefined;
29
28
  exact?: boolean | undefined;
30
29
  searchable?: boolean | undefined;
31
30
  filterable?: boolean | undefined;
32
31
  sortable?: boolean | undefined;
32
+ text?: boolean | undefined;
33
33
  facet?: boolean | undefined;
34
34
  weight?: number | undefined;
35
35
  }, {
36
- text?: boolean | undefined;
37
36
  exact?: boolean | undefined;
38
37
  searchable?: boolean | undefined;
39
38
  filterable?: boolean | undefined;
40
39
  sortable?: boolean | undefined;
40
+ text?: boolean | undefined;
41
41
  facet?: boolean | undefined;
42
42
  weight?: number | undefined;
43
43
  }>>;
@@ -45,11 +45,11 @@ export declare const PropertyDefinitionSchema: z.ZodObject<{
45
45
  id: string;
46
46
  name: string;
47
47
  query?: {
48
- text?: boolean | undefined;
49
48
  exact?: boolean | undefined;
50
49
  searchable?: boolean | undefined;
51
50
  filterable?: boolean | undefined;
52
51
  sortable?: boolean | undefined;
52
+ text?: boolean | undefined;
53
53
  facet?: boolean | undefined;
54
54
  weight?: number | undefined;
55
55
  } | undefined;
@@ -64,11 +64,11 @@ export declare const PropertyDefinitionSchema: z.ZodObject<{
64
64
  id: string;
65
65
  name: string;
66
66
  query?: {
67
- text?: boolean | undefined;
68
67
  exact?: boolean | undefined;
69
68
  searchable?: boolean | undefined;
70
69
  filterable?: boolean | undefined;
71
70
  sortable?: boolean | undefined;
71
+ text?: boolean | undefined;
72
72
  facet?: boolean | undefined;
73
73
  weight?: number | undefined;
74
74
  } | undefined;
@@ -86,13 +86,13 @@ export declare const PropertyQueryCapabilitiesSchema: z.ZodObject<{
86
86
  facet: z.ZodBoolean;
87
87
  text: z.ZodBoolean;
88
88
  }, "strip", z.ZodTypeAny, {
89
- text: boolean;
90
89
  sortable: boolean;
90
+ text: boolean;
91
91
  facet: boolean;
92
92
  operators: ("eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in" | "exists" | "contains")[];
93
93
  }, {
94
- text: boolean;
95
94
  sortable: boolean;
95
+ text: boolean;
96
96
  facet: boolean;
97
97
  operators: ("eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in" | "exists" | "contains")[];
98
98
  }>;
@@ -115,19 +115,19 @@ export declare const ObjectPropertyDefinitionSchema: z.ZodObject<{
115
115
  facet: z.ZodOptional<z.ZodBoolean>;
116
116
  weight: z.ZodOptional<z.ZodNumber>;
117
117
  }, "strip", z.ZodTypeAny, {
118
- text?: boolean | undefined;
119
118
  exact?: boolean | undefined;
120
119
  searchable?: boolean | undefined;
121
120
  filterable?: boolean | undefined;
122
121
  sortable?: boolean | undefined;
122
+ text?: boolean | undefined;
123
123
  facet?: boolean | undefined;
124
124
  weight?: number | undefined;
125
125
  }, {
126
- text?: boolean | undefined;
127
126
  exact?: boolean | undefined;
128
127
  searchable?: boolean | undefined;
129
128
  filterable?: boolean | undefined;
130
129
  sortable?: boolean | undefined;
130
+ text?: boolean | undefined;
131
131
  facet?: boolean | undefined;
132
132
  weight?: number | undefined;
133
133
  }>>;
@@ -138,13 +138,13 @@ export declare const ObjectPropertyDefinitionSchema: z.ZodObject<{
138
138
  facet: z.ZodBoolean;
139
139
  text: z.ZodBoolean;
140
140
  }, "strip", z.ZodTypeAny, {
141
- text: boolean;
142
141
  sortable: boolean;
142
+ text: boolean;
143
143
  facet: boolean;
144
144
  operators: ("eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in" | "exists" | "contains")[];
145
145
  }, {
146
- text: boolean;
147
146
  sortable: boolean;
147
+ text: boolean;
148
148
  facet: boolean;
149
149
  operators: ("eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in" | "exists" | "contains")[];
150
150
  }>;
@@ -152,17 +152,17 @@ export declare const ObjectPropertyDefinitionSchema: z.ZodObject<{
152
152
  id: string;
153
153
  name: string;
154
154
  capabilities: {
155
- text: boolean;
156
155
  sortable: boolean;
156
+ text: boolean;
157
157
  facet: boolean;
158
158
  operators: ("eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in" | "exists" | "contains")[];
159
159
  };
160
160
  query?: {
161
- text?: boolean | undefined;
162
161
  exact?: boolean | undefined;
163
162
  searchable?: boolean | undefined;
164
163
  filterable?: boolean | undefined;
165
164
  sortable?: boolean | undefined;
165
+ text?: boolean | undefined;
166
166
  facet?: boolean | undefined;
167
167
  weight?: number | undefined;
168
168
  } | undefined;
@@ -177,17 +177,17 @@ export declare const ObjectPropertyDefinitionSchema: z.ZodObject<{
177
177
  id: string;
178
178
  name: string;
179
179
  capabilities: {
180
- text: boolean;
181
180
  sortable: boolean;
181
+ text: boolean;
182
182
  facet: boolean;
183
183
  operators: ("eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in" | "exists" | "contains")[];
184
184
  };
185
185
  query?: {
186
- text?: boolean | undefined;
187
186
  exact?: boolean | undefined;
188
187
  searchable?: boolean | undefined;
189
188
  filterable?: boolean | undefined;
190
189
  sortable?: boolean | undefined;
190
+ text?: boolean | undefined;
191
191
  facet?: boolean | undefined;
192
192
  weight?: number | undefined;
193
193
  } | undefined;
@@ -224,19 +224,19 @@ export declare const LinkDefinitionSchema: z.ZodObject<{
224
224
  facet: z.ZodOptional<z.ZodBoolean>;
225
225
  weight: z.ZodOptional<z.ZodNumber>;
226
226
  }, "strip", z.ZodTypeAny, {
227
- text?: boolean | undefined;
228
227
  exact?: boolean | undefined;
229
228
  searchable?: boolean | undefined;
230
229
  filterable?: boolean | undefined;
231
230
  sortable?: boolean | undefined;
231
+ text?: boolean | undefined;
232
232
  facet?: boolean | undefined;
233
233
  weight?: number | undefined;
234
234
  }, {
235
- text?: boolean | undefined;
236
235
  exact?: boolean | undefined;
237
236
  searchable?: boolean | undefined;
238
237
  filterable?: boolean | undefined;
239
238
  sortable?: boolean | undefined;
239
+ text?: boolean | undefined;
240
240
  facet?: boolean | undefined;
241
241
  weight?: number | undefined;
242
242
  }>>;
@@ -244,11 +244,11 @@ export declare const LinkDefinitionSchema: z.ZodObject<{
244
244
  id: string;
245
245
  name: string;
246
246
  query?: {
247
- text?: boolean | undefined;
248
247
  exact?: boolean | undefined;
249
248
  searchable?: boolean | undefined;
250
249
  filterable?: boolean | undefined;
251
250
  sortable?: boolean | undefined;
251
+ text?: boolean | undefined;
252
252
  facet?: boolean | undefined;
253
253
  weight?: number | undefined;
254
254
  } | undefined;
@@ -263,11 +263,11 @@ export declare const LinkDefinitionSchema: z.ZodObject<{
263
263
  id: string;
264
264
  name: string;
265
265
  query?: {
266
- text?: boolean | undefined;
267
266
  exact?: boolean | undefined;
268
267
  searchable?: boolean | undefined;
269
268
  filterable?: boolean | undefined;
270
269
  sortable?: boolean | undefined;
270
+ text?: boolean | undefined;
271
271
  facet?: boolean | undefined;
272
272
  weight?: number | undefined;
273
273
  } | undefined;
@@ -288,11 +288,11 @@ export declare const LinkDefinitionSchema: z.ZodObject<{
288
288
  id: string;
289
289
  name: string;
290
290
  query?: {
291
- text?: boolean | undefined;
292
291
  exact?: boolean | undefined;
293
292
  searchable?: boolean | undefined;
294
293
  filterable?: boolean | undefined;
295
294
  sortable?: boolean | undefined;
295
+ text?: boolean | undefined;
296
296
  facet?: boolean | undefined;
297
297
  weight?: number | undefined;
298
298
  } | undefined;
@@ -314,11 +314,11 @@ export declare const LinkDefinitionSchema: z.ZodObject<{
314
314
  id: string;
315
315
  name: string;
316
316
  query?: {
317
- text?: boolean | undefined;
318
317
  exact?: boolean | undefined;
319
318
  searchable?: boolean | undefined;
320
319
  filterable?: boolean | undefined;
321
320
  sortable?: boolean | undefined;
321
+ text?: boolean | undefined;
322
322
  facet?: boolean | undefined;
323
323
  weight?: number | undefined;
324
324
  } | undefined;
@@ -438,19 +438,19 @@ export declare const ObjectTypeSchema: z.ZodObject<{
438
438
  facet: z.ZodOptional<z.ZodBoolean>;
439
439
  weight: z.ZodOptional<z.ZodNumber>;
440
440
  }, "strip", z.ZodTypeAny, {
441
- text?: boolean | undefined;
442
441
  exact?: boolean | undefined;
443
442
  searchable?: boolean | undefined;
444
443
  filterable?: boolean | undefined;
445
444
  sortable?: boolean | undefined;
445
+ text?: boolean | undefined;
446
446
  facet?: boolean | undefined;
447
447
  weight?: number | undefined;
448
448
  }, {
449
- text?: boolean | undefined;
450
449
  exact?: boolean | undefined;
451
450
  searchable?: boolean | undefined;
452
451
  filterable?: boolean | undefined;
453
452
  sortable?: boolean | undefined;
453
+ text?: boolean | undefined;
454
454
  facet?: boolean | undefined;
455
455
  weight?: number | undefined;
456
456
  }>>;
@@ -461,13 +461,13 @@ export declare const ObjectTypeSchema: z.ZodObject<{
461
461
  facet: z.ZodBoolean;
462
462
  text: z.ZodBoolean;
463
463
  }, "strip", z.ZodTypeAny, {
464
- text: boolean;
465
464
  sortable: boolean;
465
+ text: boolean;
466
466
  facet: boolean;
467
467
  operators: ("eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in" | "exists" | "contains")[];
468
468
  }, {
469
- text: boolean;
470
469
  sortable: boolean;
470
+ text: boolean;
471
471
  facet: boolean;
472
472
  operators: ("eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in" | "exists" | "contains")[];
473
473
  }>;
@@ -475,17 +475,17 @@ export declare const ObjectTypeSchema: z.ZodObject<{
475
475
  id: string;
476
476
  name: string;
477
477
  capabilities: {
478
- text: boolean;
479
478
  sortable: boolean;
479
+ text: boolean;
480
480
  facet: boolean;
481
481
  operators: ("eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in" | "exists" | "contains")[];
482
482
  };
483
483
  query?: {
484
- text?: boolean | undefined;
485
484
  exact?: boolean | undefined;
486
485
  searchable?: boolean | undefined;
487
486
  filterable?: boolean | undefined;
488
487
  sortable?: boolean | undefined;
488
+ text?: boolean | undefined;
489
489
  facet?: boolean | undefined;
490
490
  weight?: number | undefined;
491
491
  } | undefined;
@@ -500,17 +500,17 @@ export declare const ObjectTypeSchema: z.ZodObject<{
500
500
  id: string;
501
501
  name: string;
502
502
  capabilities: {
503
- text: boolean;
504
503
  sortable: boolean;
504
+ text: boolean;
505
505
  facet: boolean;
506
506
  operators: ("eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in" | "exists" | "contains")[];
507
507
  };
508
508
  query?: {
509
- text?: boolean | undefined;
510
509
  exact?: boolean | undefined;
511
510
  searchable?: boolean | undefined;
512
511
  filterable?: boolean | undefined;
513
512
  sortable?: boolean | undefined;
513
+ text?: boolean | undefined;
514
514
  facet?: boolean | undefined;
515
515
  weight?: number | undefined;
516
516
  } | undefined;
@@ -647,19 +647,19 @@ export declare const ObjectTypeSchema: z.ZodObject<{
647
647
  facet: z.ZodOptional<z.ZodBoolean>;
648
648
  weight: z.ZodOptional<z.ZodNumber>;
649
649
  }, "strip", z.ZodTypeAny, {
650
- text?: boolean | undefined;
651
650
  exact?: boolean | undefined;
652
651
  searchable?: boolean | undefined;
653
652
  filterable?: boolean | undefined;
654
653
  sortable?: boolean | undefined;
654
+ text?: boolean | undefined;
655
655
  facet?: boolean | undefined;
656
656
  weight?: number | undefined;
657
657
  }, {
658
- text?: boolean | undefined;
659
658
  exact?: boolean | undefined;
660
659
  searchable?: boolean | undefined;
661
660
  filterable?: boolean | undefined;
662
661
  sortable?: boolean | undefined;
662
+ text?: boolean | undefined;
663
663
  facet?: boolean | undefined;
664
664
  weight?: number | undefined;
665
665
  }>>;
@@ -667,11 +667,11 @@ export declare const ObjectTypeSchema: z.ZodObject<{
667
667
  id: string;
668
668
  name: string;
669
669
  query?: {
670
- text?: boolean | undefined;
671
670
  exact?: boolean | undefined;
672
671
  searchable?: boolean | undefined;
673
672
  filterable?: boolean | undefined;
674
673
  sortable?: boolean | undefined;
674
+ text?: boolean | undefined;
675
675
  facet?: boolean | undefined;
676
676
  weight?: number | undefined;
677
677
  } | undefined;
@@ -686,11 +686,11 @@ export declare const ObjectTypeSchema: z.ZodObject<{
686
686
  id: string;
687
687
  name: string;
688
688
  query?: {
689
- text?: boolean | undefined;
690
689
  exact?: boolean | undefined;
691
690
  searchable?: boolean | undefined;
692
691
  filterable?: boolean | undefined;
693
692
  sortable?: boolean | undefined;
693
+ text?: boolean | undefined;
694
694
  facet?: boolean | undefined;
695
695
  weight?: number | undefined;
696
696
  } | undefined;
@@ -711,11 +711,11 @@ export declare const ObjectTypeSchema: z.ZodObject<{
711
711
  id: string;
712
712
  name: string;
713
713
  query?: {
714
- text?: boolean | undefined;
715
714
  exact?: boolean | undefined;
716
715
  searchable?: boolean | undefined;
717
716
  filterable?: boolean | undefined;
718
717
  sortable?: boolean | undefined;
718
+ text?: boolean | undefined;
719
719
  facet?: boolean | undefined;
720
720
  weight?: number | undefined;
721
721
  } | undefined;
@@ -737,11 +737,11 @@ export declare const ObjectTypeSchema: z.ZodObject<{
737
737
  id: string;
738
738
  name: string;
739
739
  query?: {
740
- text?: boolean | undefined;
741
740
  exact?: boolean | undefined;
742
741
  searchable?: boolean | undefined;
743
742
  filterable?: boolean | undefined;
744
743
  sortable?: boolean | undefined;
744
+ text?: boolean | undefined;
745
745
  facet?: boolean | undefined;
746
746
  weight?: number | undefined;
747
747
  } | undefined;
@@ -836,11 +836,11 @@ export declare const ObjectTypeSchema: z.ZodObject<{
836
836
  id: string;
837
837
  name: string;
838
838
  query?: {
839
- text?: boolean | undefined;
840
839
  exact?: boolean | undefined;
841
840
  searchable?: boolean | undefined;
842
841
  filterable?: boolean | undefined;
843
842
  sortable?: boolean | undefined;
843
+ text?: boolean | undefined;
844
844
  facet?: boolean | undefined;
845
845
  weight?: number | undefined;
846
846
  } | undefined;
@@ -859,17 +859,17 @@ export declare const ObjectTypeSchema: z.ZodObject<{
859
859
  id: string;
860
860
  name: string;
861
861
  capabilities: {
862
- text: boolean;
863
862
  sortable: boolean;
863
+ text: boolean;
864
864
  facet: boolean;
865
865
  operators: ("eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in" | "exists" | "contains")[];
866
866
  };
867
867
  query?: {
868
- text?: boolean | undefined;
869
868
  exact?: boolean | undefined;
870
869
  searchable?: boolean | undefined;
871
870
  filterable?: boolean | undefined;
872
871
  sortable?: boolean | undefined;
872
+ text?: boolean | undefined;
873
873
  facet?: boolean | undefined;
874
874
  weight?: number | undefined;
875
875
  } | undefined;
@@ -927,11 +927,11 @@ export declare const ObjectTypeSchema: z.ZodObject<{
927
927
  id: string;
928
928
  name: string;
929
929
  query?: {
930
- text?: boolean | undefined;
931
930
  exact?: boolean | undefined;
932
931
  searchable?: boolean | undefined;
933
932
  filterable?: boolean | undefined;
934
933
  sortable?: boolean | undefined;
934
+ text?: boolean | undefined;
935
935
  facet?: boolean | undefined;
936
936
  weight?: number | undefined;
937
937
  } | undefined;
@@ -950,17 +950,17 @@ export declare const ObjectTypeSchema: z.ZodObject<{
950
950
  id: string;
951
951
  name: string;
952
952
  capabilities: {
953
- text: boolean;
954
953
  sortable: boolean;
954
+ text: boolean;
955
955
  facet: boolean;
956
956
  operators: ("eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in" | "exists" | "contains")[];
957
957
  };
958
958
  query?: {
959
- text?: boolean | undefined;
960
959
  exact?: boolean | undefined;
961
960
  searchable?: boolean | undefined;
962
961
  filterable?: boolean | undefined;
963
962
  sortable?: boolean | undefined;
963
+ text?: boolean | undefined;
964
964
  facet?: boolean | undefined;
965
965
  weight?: number | undefined;
966
966
  } | undefined;