@sixb/server 0.1.10 → 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 (65) hide show
  1. package/README.md +19 -0
  2. package/dist/auth/browser-origin.d.ts.map +1 -1
  3. package/dist/connectors/http.d.ts.map +1 -1
  4. package/dist/index.js +224 -51
  5. package/dist/index.js.map +19 -19
  6. package/dist/models/display.d.ts +2 -2
  7. package/dist/models/display.d.ts.map +1 -1
  8. package/dist/routes/action-runs.d.ts +2 -0
  9. package/dist/routes/action-runs.d.ts.map +1 -1
  10. package/dist/routes/agents.d.ts +123 -34
  11. package/dist/routes/agents.d.ts.map +1 -1
  12. package/dist/routes/ai-accounting.d.ts.map +1 -1
  13. package/dist/routes/auth.d.ts +2 -2
  14. package/dist/routes/connector-connection-runs.d.ts +138 -4
  15. package/dist/routes/connector-connection-runs.d.ts.map +1 -1
  16. package/dist/routes/datasets.d.ts +8 -8
  17. package/dist/routes/files.d.ts +3 -1
  18. package/dist/routes/files.d.ts.map +1 -1
  19. package/dist/routes/models.d.ts +1 -1
  20. package/dist/routes/objects.d.ts +18 -5
  21. package/dist/routes/objects.d.ts.map +1 -1
  22. package/dist/routes/ontology.d.ts +24 -12
  23. package/dist/routes/ontology.d.ts.map +1 -1
  24. package/dist/routes/syncs.d.ts +5 -5
  25. package/dist/routes/workflows.d.ts +10 -6
  26. package/dist/routes/workflows.d.ts.map +1 -1
  27. package/dist/schemas/agents.d.ts +205 -100
  28. package/dist/schemas/agents.d.ts.map +1 -1
  29. package/dist/schemas/ai-accounting.d.ts +692 -104
  30. package/dist/schemas/ai-accounting.d.ts.map +1 -1
  31. package/dist/schemas/ai-usage.d.ts +2 -2
  32. package/dist/schemas/auth.d.ts +6 -6
  33. package/dist/schemas/common.d.ts +15 -0
  34. package/dist/schemas/common.d.ts.map +1 -1
  35. package/dist/schemas/connectors.d.ts +0 -3
  36. package/dist/schemas/connectors.d.ts.map +1 -1
  37. package/dist/schemas/datasets.d.ts +22 -22
  38. package/dist/schemas/files.d.ts +17 -8
  39. package/dist/schemas/files.d.ts.map +1 -1
  40. package/dist/schemas/models.d.ts +8 -8
  41. package/dist/schemas/objects.d.ts +13 -1
  42. package/dist/schemas/objects.d.ts.map +1 -1
  43. package/dist/schemas/ontology.d.ts +99 -49
  44. package/dist/schemas/ontology.d.ts.map +1 -1
  45. package/dist/schemas/syncs.d.ts +12 -12
  46. package/dist/schemas/workflows.d.ts +50 -50
  47. package/dist/server.d.ts.map +1 -1
  48. package/package.json +6 -5
  49. package/src/auth/browser-origin.ts +50 -1
  50. package/src/connectors/http.ts +0 -1
  51. package/src/models/display.ts +3 -2
  52. package/src/routes/agents.ts +48 -6
  53. package/src/routes/ai-accounting.ts +1 -0
  54. package/src/routes/connector-connection-runs.ts +37 -1
  55. package/src/routes/files.ts +2 -1
  56. package/src/routes/objects.ts +46 -2
  57. package/src/routes/ontology.ts +15 -5
  58. package/src/schemas/agents.ts +9 -0
  59. package/src/schemas/ai-accounting.ts +19 -1
  60. package/src/schemas/common.ts +5 -0
  61. package/src/schemas/connectors.ts +0 -1
  62. package/src/schemas/files.ts +8 -1
  63. package/src/schemas/objects.ts +30 -12
  64. package/src/schemas/ontology.ts +15 -6
  65. package/src/server.ts +2 -0
@@ -13,8 +13,8 @@ export declare function languageModelDisplay(entry: LanguageModelEntry): Promise
13
13
  reasoningLevels: readonly ("none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max")[];
14
14
  via?: string | undefined;
15
15
  publisher: {
16
- id: string;
17
- name: string;
16
+ readonly id: string;
17
+ readonly name: string;
18
18
  };
19
19
  description?: string | undefined;
20
20
  name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"display.d.ts","sourceRoot":"","sources":["../../src/models/display.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAQpD,2FAA2F;AAC3F,wBAAsB,oBAAoB,CAAC,KAAK,EAAE,kBAAkB;;;;;;;;;;;;;;;;;;GAuDnE"}
1
+ {"version":3,"file":"display.d.ts","sourceRoot":"","sources":["../../src/models/display.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAQpD,2FAA2F;AAC3F,wBAAsB,oBAAoB,CAAC,KAAK,EAAE,kBAAkB;;;;;;;;;;;;;;;;;;GAwDnE"}
@@ -159,6 +159,7 @@ export declare function registerActionRunRoutes(app: Elysia, host: SixbHostView)
159
159
  };
160
160
  query: {
161
161
  path: string;
162
+ audience?: "atlas" | "app" | undefined;
162
163
  disposition?: "inline" | "attachment" | undefined;
163
164
  v?: string | undefined;
164
165
  };
@@ -196,6 +197,7 @@ export declare function registerActionRunRoutes(app: Elysia, host: SixbHostView)
196
197
  };
197
198
  query: {
198
199
  path: string;
200
+ audience?: "atlas" | "app" | undefined;
199
201
  disposition?: "inline" | "attachment" | undefined;
200
202
  v?: string | undefined;
201
203
  };
@@ -1 +1 @@
1
- {"version":3,"file":"action-runs.d.ts","sourceRoot":"","sources":["../../src/routes/action-runs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAE9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAwHpC,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0HtE"}
1
+ {"version":3,"file":"action-runs.d.ts","sourceRoot":"","sources":["../../src/routes/action-runs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAE9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAwHpC,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0HtE"}
@@ -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": {
@@ -376,6 +463,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
376
463
  };
377
464
  query: {
378
465
  path: string;
466
+ audience?: "atlas" | "app" | undefined;
379
467
  disposition?: "inline" | "attachment" | undefined;
380
468
  v?: string | undefined;
381
469
  };
@@ -418,6 +506,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
418
506
  };
419
507
  query: {
420
508
  path: string;
509
+ audience?: "atlas" | "app" | undefined;
421
510
  disposition?: "inline" | "attachment" | undefined;
422
511
  v?: string | undefined;
423
512
  };
@@ -469,8 +558,8 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
469
558
  };
470
559
  }[] | undefined;
471
560
  model?: {
472
- provider: string;
473
561
  modelId: string;
562
+ provider: string;
474
563
  } | undefined;
475
564
  attachments?: {
476
565
  blobId: string;
@@ -502,18 +591,18 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
502
591
  triggerMessageId: string;
503
592
  streamId: string;
504
593
  error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
505
- startedAt?: string | undefined;
506
- completedAt?: string | undefined;
507
594
  model?: {
508
- provider: string;
509
595
  modelId: string;
596
+ provider: string;
510
597
  } | undefined;
511
598
  modelId?: string | undefined;
599
+ startedAt?: string | undefined;
600
+ completedAt?: string | undefined;
512
601
  reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
513
602
  budgetTokens: number;
514
603
  } | undefined;
515
604
  usage?: {
516
- reportingStatus: "complete" | "partial" | "unavailable";
605
+ reportingStatus: "partial" | "complete" | "unavailable";
517
606
  inputTokens?: number | undefined;
518
607
  outputTokens?: number | undefined;
519
608
  totalTokens?: number | undefined;
@@ -579,18 +668,18 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
579
668
  triggerMessageId: string;
580
669
  streamId: string;
581
670
  error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
582
- startedAt?: string | undefined;
583
- completedAt?: string | undefined;
584
671
  model?: {
585
- provider: string;
586
672
  modelId: string;
673
+ provider: string;
587
674
  } | undefined;
588
675
  modelId?: string | undefined;
676
+ startedAt?: string | undefined;
677
+ completedAt?: string | undefined;
589
678
  reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
590
679
  budgetTokens: number;
591
680
  } | undefined;
592
681
  usage?: {
593
- reportingStatus: "complete" | "partial" | "unavailable";
682
+ reportingStatus: "partial" | "complete" | "unavailable";
594
683
  inputTokens?: number | undefined;
595
684
  outputTokens?: number | undefined;
596
685
  totalTokens?: number | undefined;
@@ -664,18 +753,18 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
664
753
  triggerMessageId: string;
665
754
  streamId: string;
666
755
  error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
667
- startedAt?: string | undefined;
668
- completedAt?: string | undefined;
669
756
  model?: {
670
- provider: string;
671
757
  modelId: string;
758
+ provider: string;
672
759
  } | undefined;
673
760
  modelId?: string | undefined;
761
+ startedAt?: string | undefined;
762
+ completedAt?: string | undefined;
674
763
  reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
675
764
  budgetTokens: number;
676
765
  } | undefined;
677
766
  usage?: {
678
- reportingStatus: "complete" | "partial" | "unavailable";
767
+ reportingStatus: "partial" | "complete" | "unavailable";
679
768
  inputTokens?: number | undefined;
680
769
  outputTokens?: number | undefined;
681
770
  totalTokens?: number | undefined;
@@ -733,18 +822,18 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
733
822
  triggerMessageId: string;
734
823
  streamId: string;
735
824
  error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
736
- startedAt?: string | undefined;
737
- completedAt?: string | undefined;
738
825
  model?: {
739
- provider: string;
740
826
  modelId: string;
827
+ provider: string;
741
828
  } | undefined;
742
829
  modelId?: string | undefined;
830
+ startedAt?: string | undefined;
831
+ completedAt?: string | undefined;
743
832
  reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
744
833
  budgetTokens: number;
745
834
  } | undefined;
746
835
  usage?: {
747
- reportingStatus: "complete" | "partial" | "unavailable";
836
+ reportingStatus: "partial" | "complete" | "unavailable";
748
837
  inputTokens?: number | undefined;
749
838
  outputTokens?: number | undefined;
750
839
  totalTokens?: number | undefined;
@@ -819,18 +908,18 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
819
908
  triggerMessageId: string;
820
909
  streamId: string;
821
910
  error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
822
- startedAt?: string | undefined;
823
- completedAt?: string | undefined;
824
911
  model?: {
825
- provider: string;
826
912
  modelId: string;
913
+ provider: string;
827
914
  } | undefined;
828
915
  modelId?: string | undefined;
916
+ startedAt?: string | undefined;
917
+ completedAt?: string | undefined;
829
918
  reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
830
919
  budgetTokens: number;
831
920
  } | undefined;
832
921
  usage?: {
833
- reportingStatus: "complete" | "partial" | "unavailable";
922
+ reportingStatus: "partial" | "complete" | "unavailable";
834
923
  inputTokens?: number | undefined;
835
924
  outputTokens?: number | undefined;
836
925
  totalTokens?: number | undefined;
@@ -893,18 +982,18 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
893
982
  triggerMessageId: string;
894
983
  streamId: string;
895
984
  error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
896
- startedAt?: string | undefined;
897
- completedAt?: string | undefined;
898
985
  model?: {
899
- provider: string;
900
986
  modelId: string;
987
+ provider: string;
901
988
  } | undefined;
902
989
  modelId?: string | undefined;
990
+ startedAt?: string | undefined;
991
+ completedAt?: string | undefined;
903
992
  reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
904
993
  budgetTokens: number;
905
994
  } | undefined;
906
995
  usage?: {
907
- reportingStatus: "complete" | "partial" | "unavailable";
996
+ reportingStatus: "partial" | "complete" | "unavailable";
908
997
  inputTokens?: number | undefined;
909
998
  outputTokens?: number | undefined;
910
999
  totalTokens?: number | undefined;
@@ -983,18 +1072,18 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
983
1072
  triggerMessageId: string;
984
1073
  streamId: string;
985
1074
  error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
986
- startedAt?: string | undefined;
987
- completedAt?: string | undefined;
988
1075
  model?: {
989
- provider: string;
990
1076
  modelId: string;
1077
+ provider: string;
991
1078
  } | undefined;
992
1079
  modelId?: string | undefined;
1080
+ startedAt?: string | undefined;
1081
+ completedAt?: string | undefined;
993
1082
  reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
994
1083
  budgetTokens: number;
995
1084
  } | undefined;
996
1085
  usage?: {
997
- reportingStatus: "complete" | "partial" | "unavailable";
1086
+ reportingStatus: "partial" | "complete" | "unavailable";
998
1087
  inputTokens?: number | undefined;
999
1088
  outputTokens?: number | undefined;
1000
1089
  totalTokens?: number | undefined;
@@ -1075,18 +1164,18 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
1075
1164
  triggerMessageId: string;
1076
1165
  streamId: string;
1077
1166
  error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
1078
- startedAt?: string | undefined;
1079
- completedAt?: string | undefined;
1080
1167
  model?: {
1081
- provider: string;
1082
1168
  modelId: string;
1169
+ provider: string;
1083
1170
  } | undefined;
1084
1171
  modelId?: string | undefined;
1172
+ startedAt?: string | undefined;
1173
+ completedAt?: string | undefined;
1085
1174
  reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
1086
1175
  budgetTokens: number;
1087
1176
  } | undefined;
1088
1177
  usage?: {
1089
- reportingStatus: "complete" | "partial" | "unavailable";
1178
+ reportingStatus: "partial" | "complete" | "unavailable";
1090
1179
  inputTokens?: number | undefined;
1091
1180
  outputTokens?: number | undefined;
1092
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,MA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;;;;;;;;;;;;;;;;;;;;;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"}
@@ -285,8 +285,8 @@ export declare function registerAuthRoutes(app: Elysia, host: SixbHostView, opti
285
285
  response: {
286
286
  200: {
287
287
  sessions: {
288
- id: string;
289
288
  audience: "atlas" | "app";
289
+ id: string;
290
290
  expiresAt: string;
291
291
  createdAt: string;
292
292
  current: boolean;
@@ -1454,8 +1454,8 @@ export declare function registerAuthRoutes(app: Elysia, host: SixbHostView, opti
1454
1454
  "sign-in": {
1455
1455
  post: {
1456
1456
  body: {
1457
- returnTo?: string | undefined;
1458
1457
  audience?: string | undefined;
1458
+ returnTo?: string | undefined;
1459
1459
  email?: string | undefined;
1460
1460
  };
1461
1461
  params: {};
@@ -20,6 +20,144 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
20
20
  parser: {};
21
21
  response: {};
22
22
  }, {
23
+ api: {
24
+ connectors: {
25
+ ":connectorId": {
26
+ "connection-runs": {
27
+ get: {
28
+ body: unknown;
29
+ params: {
30
+ connectorId: string;
31
+ };
32
+ query: unknown;
33
+ headers: unknown;
34
+ response: {
35
+ 200: ({
36
+ status: "waiting";
37
+ id: string;
38
+ kind: "connect" | "reauthorize";
39
+ expiresAt: string;
40
+ createdAt: string;
41
+ updatedAt: string;
42
+ connectorId: string;
43
+ owner: {
44
+ type: "project";
45
+ };
46
+ slot: string;
47
+ waitingFor: "provider_authorization";
48
+ } | {
49
+ status: "running";
50
+ id: string;
51
+ kind: "connect" | "reauthorize";
52
+ createdAt: string;
53
+ updatedAt: string;
54
+ connectorId: string;
55
+ owner: {
56
+ type: "project";
57
+ };
58
+ slot: string;
59
+ } | {
60
+ status: "waiting";
61
+ id: string;
62
+ kind: "connect" | "reauthorize";
63
+ createdAt: string;
64
+ updatedAt: string;
65
+ connectorId: string;
66
+ owner: {
67
+ type: "project";
68
+ };
69
+ slot: string;
70
+ waitingFor: "account_selection";
71
+ accounts: {
72
+ id: string;
73
+ label: string;
74
+ description?: string | undefined;
75
+ avatarUrl?: string | undefined;
76
+ }[];
77
+ } | {
78
+ status: "succeeded";
79
+ id: string;
80
+ kind: "connect" | "reauthorize";
81
+ finishedAt: string;
82
+ createdAt: string;
83
+ updatedAt: string;
84
+ connectorId: string;
85
+ owner: {
86
+ type: "project";
87
+ };
88
+ slot: string;
89
+ connections: {
90
+ status: "connected" | "needs_reauthorization" | "disconnected";
91
+ id: string;
92
+ connectorId: string;
93
+ owner: {
94
+ type: "project";
95
+ };
96
+ slot: string;
97
+ account: {
98
+ id: string;
99
+ label: string;
100
+ description?: string | undefined;
101
+ avatarUrl?: string | undefined;
102
+ };
103
+ }[];
104
+ } | {
105
+ error: import("@sixb/core/storage").ConnectorConnectionRunFailure;
106
+ status: "failed";
107
+ id: string;
108
+ kind: "connect" | "reauthorize";
109
+ finishedAt: string;
110
+ createdAt: string;
111
+ updatedAt: string;
112
+ connectorId: string;
113
+ owner: {
114
+ type: "project";
115
+ };
116
+ slot: string;
117
+ } | {
118
+ status: "cancelled" | "expired";
119
+ id: string;
120
+ kind: "connect" | "reauthorize";
121
+ finishedAt: string;
122
+ createdAt: string;
123
+ updatedAt: string;
124
+ connectorId: string;
125
+ owner: {
126
+ type: "project";
127
+ };
128
+ slot: string;
129
+ })[];
130
+ 404: {
131
+ error: string;
132
+ code?: "connector.not_found" | undefined;
133
+ };
134
+ 403: {
135
+ error: string;
136
+ };
137
+ 400: {
138
+ error: string;
139
+ code?: "connector.authorization_invalid" | "connector.configuration_invalid" | undefined;
140
+ };
141
+ 500: {
142
+ error: string;
143
+ code?: "internal.unexpected" | undefined;
144
+ };
145
+ 422: {
146
+ type: "validation";
147
+ on: string;
148
+ summary?: string;
149
+ message?: string;
150
+ found?: unknown;
151
+ property?: string;
152
+ expected?: string;
153
+ };
154
+ };
155
+ };
156
+ };
157
+ };
158
+ };
159
+ };
160
+ } & {
23
161
  api: {
24
162
  connectors: {
25
163
  ":connectorId": {
@@ -160,7 +298,6 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
160
298
  status: "waiting";
161
299
  id: string;
162
300
  kind: "connect" | "reauthorize";
163
- expiresAt: string;
164
301
  createdAt: string;
165
302
  updatedAt: string;
166
303
  connectorId: string;
@@ -305,7 +442,6 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
305
442
  status: "waiting";
306
443
  id: string;
307
444
  kind: "connect" | "reauthorize";
308
- expiresAt: string;
309
445
  createdAt: string;
310
446
  updatedAt: string;
311
447
  connectorId: string;
@@ -422,7 +558,6 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
422
558
  status: "waiting";
423
559
  id: string;
424
560
  kind: "connect" | "reauthorize";
425
- expiresAt: string;
426
561
  createdAt: string;
427
562
  updatedAt: string;
428
563
  connectorId: string;
@@ -554,7 +689,6 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
554
689
  status: "waiting";
555
690
  id: string;
556
691
  kind: "connect" | "reauthorize";
557
- expiresAt: string;
558
692
  createdAt: string;
559
693
  updatedAt: string;
560
694
  connectorId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"connector-connection-runs.d.ts","sourceRoot":"","sources":["../../src/routes/connector-connection-runs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAE9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAkCpC,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,CAAC,eAAe,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAA;IACxE,QAAQ,CAAC,kBAAkB,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,MAAM,CAAA;CAC1D;AAED,wBAAgB,oCAAoC,CAClD,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,YAAY,EAClB,OAAO,EAAE,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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