@sixb/server 0.1.18 → 0.1.20

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 (93) hide show
  1. package/README.md +15 -24
  2. package/dist/actions/serialize.d.ts +7 -0
  3. package/dist/actions/serialize.d.ts.map +1 -0
  4. package/dist/auth/browser-origin.d.ts +4 -26
  5. package/dist/auth/browser-origin.d.ts.map +1 -1
  6. package/dist/auth/experience.d.ts +0 -3
  7. package/dist/auth/experience.d.ts.map +1 -1
  8. package/dist/auth/guard.d.ts +1 -1
  9. package/dist/auth/guard.d.ts.map +1 -1
  10. package/dist/auth/public-routes.d.ts +0 -5
  11. package/dist/auth/public-routes.d.ts.map +1 -1
  12. package/dist/auth/responses.d.ts +0 -2
  13. package/dist/auth/responses.d.ts.map +1 -1
  14. package/dist/auth/session-cookies.d.ts.map +1 -1
  15. package/dist/index.d.ts +1 -1
  16. package/dist/index.d.ts.map +1 -1
  17. package/dist/index.js +681 -935
  18. package/dist/index.js.map +24 -24
  19. package/dist/routes/action-runs.d.ts +11 -15
  20. package/dist/routes/action-runs.d.ts.map +1 -1
  21. package/dist/routes/actions.d.ts +44 -13
  22. package/dist/routes/actions.d.ts.map +1 -1
  23. package/dist/routes/agent-api-gateway.d.ts.map +1 -1
  24. package/dist/routes/agents.d.ts +20 -22
  25. package/dist/routes/agents.d.ts.map +1 -1
  26. package/dist/routes/auth.d.ts +8 -17
  27. package/dist/routes/auth.d.ts.map +1 -1
  28. package/dist/routes/connector-connection-runs.d.ts +21 -21
  29. package/dist/routes/connector-connections.d.ts +8 -8
  30. package/dist/routes/connectors.d.ts +2 -2
  31. package/dist/routes/datasets.d.ts +5 -5
  32. package/dist/routes/events.d.ts +4 -4
  33. package/dist/routes/files.d.ts +15 -12
  34. package/dist/routes/files.d.ts.map +1 -1
  35. package/dist/routes/objects.d.ts +0 -2
  36. package/dist/routes/objects.d.ts.map +1 -1
  37. package/dist/routes/ontology.d.ts +6 -6
  38. package/dist/routes/pipelines.d.ts +16 -16
  39. package/dist/routes/projections.d.ts +49 -49
  40. package/dist/routes/syncs.d.ts +10 -10
  41. package/dist/routes/webhook-runs.d.ts +2 -2
  42. package/dist/routes/workflows.d.ts +48 -52
  43. package/dist/routes/workflows.d.ts.map +1 -1
  44. package/dist/routes/ws/events.d.ts +6 -9
  45. package/dist/routes/ws/events.d.ts.map +1 -1
  46. package/dist/schemas/actions.d.ts +100 -84
  47. package/dist/schemas/actions.d.ts.map +1 -1
  48. package/dist/schemas/agents.d.ts +20 -20
  49. package/dist/schemas/ai-limits.d.ts +10 -10
  50. package/dist/schemas/auth.d.ts +28 -63
  51. package/dist/schemas/auth.d.ts.map +1 -1
  52. package/dist/schemas/connectors.d.ts +8 -8
  53. package/dist/schemas/datasets.d.ts +40 -40
  54. package/dist/schemas/events.d.ts +24 -24
  55. package/dist/schemas/events.d.ts.map +1 -1
  56. package/dist/schemas/files.d.ts +4 -7
  57. package/dist/schemas/files.d.ts.map +1 -1
  58. package/dist/schemas/ontology.d.ts +40 -40
  59. package/dist/schemas/pipelines.d.ts +92 -92
  60. package/dist/schemas/projections.d.ts +290 -290
  61. package/dist/schemas/syncs.d.ts +34 -34
  62. package/dist/schemas/webhook-runs.d.ts +8 -8
  63. package/dist/schemas/workflows.d.ts +160 -160
  64. package/dist/server.d.ts +2 -2
  65. package/dist/server.d.ts.map +1 -1
  66. package/dist/utils/http.d.ts.map +1 -1
  67. package/dist/utils/request-body.d.ts +20 -6
  68. package/dist/utils/request-body.d.ts.map +1 -1
  69. package/package.json +7 -7
  70. package/src/actions/serialize.ts +55 -0
  71. package/src/auth/browser-origin.ts +30 -240
  72. package/src/auth/experience.ts +1 -4
  73. package/src/auth/guard.ts +4 -32
  74. package/src/auth/public-routes.ts +1 -10
  75. package/src/auth/responses.ts +0 -5
  76. package/src/auth/session-cookies.ts +1 -3
  77. package/src/auth/shared-access.ts +1 -1
  78. package/src/index.ts +1 -1
  79. package/src/routes/action-runs.ts +1 -54
  80. package/src/routes/actions.ts +26 -8
  81. package/src/routes/agent-api-gateway.ts +18 -42
  82. package/src/routes/auth.ts +32 -111
  83. package/src/routes/files.ts +15 -63
  84. package/src/routes/ws/events.ts +2 -12
  85. package/src/schemas/actions.ts +21 -18
  86. package/src/schemas/auth.ts +2 -15
  87. package/src/schemas/files.ts +0 -6
  88. package/src/server.ts +23 -18
  89. package/src/utils/http.ts +2 -0
  90. package/src/utils/request-body.ts +55 -6
  91. package/dist/auth/application-access.d.ts +0 -4
  92. package/dist/auth/application-access.d.ts.map +0 -1
  93. package/src/auth/application-access.ts +0 -15
@@ -22,7 +22,7 @@ export declare function registerActionRunRoutes(app: Elysia, host: SixbHostView)
22
22
  body: unknown;
23
23
  params: {};
24
24
  query: {
25
- status?: "queued" | "running" | "succeeded" | "failed" | "cancelled" | undefined;
25
+ status?: "succeeded" | "failed" | undefined;
26
26
  objectTypeId?: string | undefined;
27
27
  actionId?: string | undefined;
28
28
  primaryId?: string | undefined;
@@ -36,7 +36,7 @@ export declare function registerActionRunRoutes(app: Elysia, host: SixbHostView)
36
36
  response: {
37
37
  200: {
38
38
  runs: {
39
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
39
+ status: "succeeded" | "failed";
40
40
  projectId: string;
41
41
  id: string;
42
42
  actionId: string;
@@ -47,11 +47,10 @@ export declare function registerActionRunRoutes(app: Elysia, host: SixbHostView)
47
47
  objectTypeId: string;
48
48
  primaryId: string;
49
49
  };
50
- queuedAt: string;
51
- error?: import("@sixb/core").ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit"> | undefined;
52
- phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
53
- startedAt?: string | undefined;
54
- finishedAt?: string | undefined;
50
+ phase: "validation" | "writeback" | "edits" | "effects" | "commit";
51
+ startedAt: string;
52
+ finishedAt: string;
53
+ error?: import("@sixb/core").ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "commit"> | undefined;
55
54
  }[];
56
55
  hasMore: boolean;
57
56
  total: number;
@@ -88,7 +87,7 @@ export declare function registerActionRunRoutes(app: Elysia, host: SixbHostView)
88
87
  headers: unknown;
89
88
  response: {
90
89
  200: {
91
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
90
+ status: "succeeded" | "failed";
92
91
  projectId: string;
93
92
  id: string;
94
93
  params: Record<string, unknown>;
@@ -100,8 +99,10 @@ export declare function registerActionRunRoutes(app: Elysia, host: SixbHostView)
100
99
  objectTypeId: string;
101
100
  primaryId: string;
102
101
  };
103
- queuedAt: string;
104
- error?: import("@sixb/core").ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit"> | undefined;
102
+ phase: "validation" | "writeback" | "edits" | "effects" | "commit";
103
+ startedAt: string;
104
+ finishedAt: string;
105
+ error?: import("@sixb/core").ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "commit"> | undefined;
105
106
  writeback?: {
106
107
  status: "succeeded";
107
108
  completedAt: string;
@@ -119,9 +120,6 @@ export declare function registerActionRunRoutes(app: Elysia, host: SixbHostView)
119
120
  status: "failed";
120
121
  completedAt: string;
121
122
  } | undefined;
122
- phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
123
- startedAt?: string | undefined;
124
- finishedAt?: string | undefined;
125
123
  };
126
124
  404: {
127
125
  error: string;
@@ -159,7 +157,6 @@ export declare function registerActionRunRoutes(app: Elysia, host: SixbHostView)
159
157
  };
160
158
  query: {
161
159
  path: string;
162
- audience?: "atlas" | "app" | undefined;
163
160
  disposition?: "inline" | "attachment" | undefined;
164
161
  v?: string | undefined;
165
162
  };
@@ -197,7 +194,6 @@ export declare function registerActionRunRoutes(app: Elysia, host: SixbHostView)
197
194
  };
198
195
  query: {
199
196
  path: string;
200
- audience?: "atlas" | "app" | undefined;
201
197
  disposition?: "inline" | "attachment" | undefined;
202
198
  v?: string | undefined;
203
199
  };
@@ -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;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAoEpC,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0HtE"}
@@ -132,14 +132,39 @@ export declare function registerActionRoutes(app: Elysia, host: SixbHostView): E
132
132
  headers: unknown;
133
133
  response: {
134
134
  200: {
135
- runId: string;
136
- queuedAt: string;
137
- created: boolean;
138
- jobId?: string | undefined;
139
- } | {
140
- error: string;
141
- code?: import("@sixb/core").SixbErrorCode;
142
- details?: import("@sixb/core").ReadonlyJsonValue;
135
+ status: "succeeded" | "failed";
136
+ projectId: string;
137
+ id: string;
138
+ params: Record<string, unknown>;
139
+ actionId: string;
140
+ subject: {
141
+ kind: "none";
142
+ } | {
143
+ kind: "object";
144
+ objectTypeId: string;
145
+ primaryId: string;
146
+ };
147
+ phase: "validation" | "writeback" | "edits" | "effects" | "commit";
148
+ startedAt: string;
149
+ finishedAt: string;
150
+ error?: import("@sixb/core").ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "commit"> | undefined;
151
+ writeback?: {
152
+ status: "succeeded";
153
+ completedAt: string;
154
+ result: import("../schemas/common").JsonValue;
155
+ } | {
156
+ error: import("@sixb/core").ActionRunFailure<"writeback">;
157
+ status: "failed";
158
+ completedAt: string;
159
+ } | undefined;
160
+ effects?: {
161
+ status: "succeeded";
162
+ completedAt: string;
163
+ } | {
164
+ error: import("@sixb/core").ActionRunFailure<"effects">;
165
+ status: "failed";
166
+ completedAt: string;
167
+ } | undefined;
143
168
  };
144
169
  404: {
145
170
  error: string;
@@ -147,14 +172,20 @@ export declare function registerActionRoutes(app: Elysia, host: SixbHostView): E
147
172
  403: {
148
173
  error: string;
149
174
  };
175
+ 503: {
176
+ error: string;
177
+ code: "runtime.stopping";
178
+ };
179
+ 409: {
180
+ error: string;
181
+ code: "action.run_in_progress";
182
+ };
150
183
  400: {
151
184
  error: string;
152
185
  };
153
- 202: {
154
- runId: string;
155
- queuedAt: string;
156
- created: boolean;
157
- jobId?: string | undefined;
186
+ 500: {
187
+ error: string;
188
+ code: "action.phase_failed" | "action.read_conflict" | "action.run_in_progress" | "action.timeout" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
158
189
  };
159
190
  422: {
160
191
  type: "validation";
@@ -1 +1 @@
1
- {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/routes/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAoB,YAAY,EAAE,MAAM,YAAY,CAAA;AAEhE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAgDpC,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+EnE"}
1
+ {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/routes/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAoB,YAAY,EAAE,MAAM,YAAY,CAAA;AAEhE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAoDpC,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6FnE"}
@@ -1 +1 @@
1
- {"version":3,"file":"agent-api-gateway.d.ts","sourceRoot":"","sources":["../../src/routes/agent-api-gateway.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAoB9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAgBpC,wBAAgB,6BAA6B,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,QAuB5E"}
1
+ {"version":3,"file":"agent-api-gateway.d.ts","sourceRoot":"","sources":["../../src/routes/agent-api-gateway.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAoB9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAiBpC,wBAAgB,6BAA6B,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,QAuB5E"}
@@ -151,10 +151,10 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
151
151
  404: {
152
152
  error: string;
153
153
  };
154
- 400: {
154
+ 409: {
155
155
  error: string;
156
156
  };
157
- 409: {
157
+ 400: {
158
158
  error: string;
159
159
  };
160
160
  501: {
@@ -292,10 +292,10 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
292
292
  404: {
293
293
  error: string;
294
294
  };
295
- 400: {
295
+ 409: {
296
296
  error: string;
297
297
  };
298
- 409: {
298
+ 400: {
299
299
  error: string;
300
300
  };
301
301
  422: {
@@ -469,7 +469,6 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
469
469
  };
470
470
  query: {
471
471
  path: string;
472
- audience?: "atlas" | "app" | undefined;
473
472
  disposition?: "inline" | "attachment" | undefined;
474
473
  v?: string | undefined;
475
474
  };
@@ -512,7 +511,6 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
512
511
  };
513
512
  query: {
514
513
  path: string;
515
- audience?: "atlas" | "app" | undefined;
516
514
  disposition?: "inline" | "attachment" | undefined;
517
515
  v?: string | undefined;
518
516
  };
@@ -592,7 +590,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
592
590
  response: {
593
591
  200: {
594
592
  run: {
595
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
593
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
596
594
  projectId: string;
597
595
  id: string;
598
596
  attempt: number;
@@ -657,12 +655,12 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
657
655
  403: {
658
656
  error: string;
659
657
  };
660
- 400: {
658
+ 409: {
661
659
  error: string;
662
- code?: string | undefined;
663
660
  };
664
- 409: {
661
+ 400: {
665
662
  error: string;
663
+ code?: string | undefined;
666
664
  };
667
665
  429: {
668
666
  error: string;
@@ -674,7 +672,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
674
672
  };
675
673
  202: {
676
674
  run: {
677
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
675
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
678
676
  projectId: string;
679
677
  id: string;
680
678
  attempt: number;
@@ -760,7 +758,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
760
758
  response: {
761
759
  200: {
762
760
  run: {
763
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
761
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
764
762
  projectId: string;
765
763
  id: string;
766
764
  attempt: number;
@@ -822,10 +820,10 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
822
820
  404: {
823
821
  error: string;
824
822
  };
825
- 400: {
823
+ 409: {
826
824
  error: string;
827
825
  };
828
- 409: {
826
+ 400: {
829
827
  error: string;
830
828
  };
831
829
  501: {
@@ -833,7 +831,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
833
831
  };
834
832
  202: {
835
833
  run: {
836
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
834
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
837
835
  projectId: string;
838
836
  id: string;
839
837
  attempt: number;
@@ -920,7 +918,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
920
918
  response: {
921
919
  200: {
922
920
  run: {
923
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
921
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
924
922
  projectId: string;
925
923
  id: string;
926
924
  attempt: number;
@@ -982,10 +980,10 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
982
980
  404: {
983
981
  error: string;
984
982
  };
985
- 400: {
983
+ 409: {
986
984
  error: string;
987
985
  };
988
- 409: {
986
+ 400: {
989
987
  error: string;
990
988
  };
991
989
  429: {
@@ -998,7 +996,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
998
996
  };
999
997
  202: {
1000
998
  run: {
1001
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
999
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
1002
1000
  projectId: string;
1003
1001
  id: string;
1004
1002
  attempt: number;
@@ -1080,7 +1078,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
1080
1078
  threadId: string;
1081
1079
  };
1082
1080
  query: {
1083
- status?: "queued" | "running" | "succeeded" | "failed" | "cancelled" | undefined;
1081
+ status?: "succeeded" | "failed" | "queued" | "running" | "cancelled" | undefined;
1084
1082
  limit?: string | undefined;
1085
1083
  offset?: string | undefined;
1086
1084
  order?: "asc" | "desc" | undefined;
@@ -1089,7 +1087,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
1089
1087
  response: {
1090
1088
  200: {
1091
1089
  runs: {
1092
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
1090
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
1093
1091
  projectId: string;
1094
1092
  id: string;
1095
1093
  attempt: number;
@@ -1182,7 +1180,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
1182
1180
  headers: unknown;
1183
1181
  response: {
1184
1182
  200: {
1185
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
1183
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
1186
1184
  projectId: string;
1187
1185
  id: string;
1188
1186
  attempt: number;
@@ -1 +1 @@
1
- {"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../src/routes/agents.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,qBAAqB,EAC1B,KAAK,YAAY,EAEjB,KAAK,YAAY,EAClB,MAAM,YAAY,CAAA;AAkBnB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAWpC,OAAO,EAUL,cAAc,EAYf,MAAM,mBAAmB,CAAA;AAmE1B,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,YAAY,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,KAAK,CAAC,CAsB5F;AA+JD,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAxH7C,MAAM;uCAAiB,qBAAqB;;+BAgDgB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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type Elysia } from "elysia";
3
- import { type AuthInvitationDestinationOptions, type AuthInvitationRedirectContext, type AuthInvitationRedirectInput, type ResolveAuthRedirectContext, type ResolveRequestAuthContext } from "../auth/browser-origin";
3
+ import { type AuthInvitationRedirectContext, type AuthInvitationRedirectInput, type ResolveAuthRedirectContext } from "../auth/browser-origin";
4
4
  import { type ProjectAuthExperience } from "../auth/experience";
5
5
  export interface AuthRoutesOptions {
6
- readonly resolveAuthContext: ResolveRequestAuthContext;
7
6
  readonly resolveAuthRedirectContext: ResolveAuthRedirectContext;
8
- readonly getInvitationDestinationOptions: (request: Request) => AuthInvitationDestinationOptions;
9
7
  readonly resolveAuthRequestOrigin: (request: Request) => string;
10
8
  readonly resolveInvitationRedirectContext: (request: Request, input: AuthInvitationRedirectInput) => AuthInvitationRedirectContext;
11
9
  readonly authExperience?: ProjectAuthExperience;
@@ -258,10 +256,6 @@ export declare function registerAuthRoutes(app: Elysia, host: SixbHostView, opti
258
256
  avatarUrl?: string | undefined;
259
257
  };
260
258
  authenticated: true;
261
- applicationAccess: {
262
- audience: "atlas" | "app";
263
- allowed: boolean;
264
- };
265
259
  csrfToken?: string | undefined;
266
260
  };
267
261
  422: {
@@ -324,7 +318,6 @@ export declare function registerAuthRoutes(app: Elysia, host: SixbHostView, opti
324
318
  expiresAt: string;
325
319
  createdAt: string;
326
320
  current: boolean;
327
- audience?: "atlas" | "app" | undefined;
328
321
  clientName?: string | undefined;
329
322
  lastSeenAt?: string | undefined;
330
323
  userAgent?: string | undefined;
@@ -995,7 +988,6 @@ export declare function registerAuthRoutes(app: Elysia, host: SixbHostView, opti
995
988
  returnTo?: string | undefined;
996
989
  expiresAt?: string | undefined;
997
990
  groupIds?: string[] | undefined;
998
- destinationId?: "atlas" | "app" | undefined;
999
991
  revealLink?: boolean | undefined;
1000
992
  };
1001
993
  params: {};
@@ -1079,12 +1071,7 @@ export declare function registerAuthRoutes(app: Elysia, host: SixbHostView, opti
1079
1071
  description?: string | undefined;
1080
1072
  label?: string | undefined;
1081
1073
  }[];
1082
- destinations: {
1083
- id: "atlas" | "app";
1084
- label: string;
1085
- }[];
1086
1074
  canInviteWithoutGroups: boolean;
1087
- defaultDestinationId?: "atlas" | "app" | undefined;
1088
1075
  };
1089
1076
  401: {
1090
1077
  error: string;
@@ -1236,6 +1223,7 @@ export declare function registerAuthRoutes(app: Elysia, host: SixbHostView, opti
1236
1223
  response: {
1237
1224
  200: {
1238
1225
  capabilities: {
1226
+ serviceAccounts: boolean;
1239
1227
  assignGroups: boolean;
1240
1228
  suspend: boolean;
1241
1229
  invite: boolean;
@@ -1245,6 +1233,11 @@ export declare function registerAuthRoutes(app: Elysia, host: SixbHostView, opti
1245
1233
  description?: string | undefined;
1246
1234
  label?: string | undefined;
1247
1235
  }[];
1236
+ serviceAccountGroups: {
1237
+ id: string;
1238
+ description?: string | undefined;
1239
+ label?: string | undefined;
1240
+ }[];
1248
1241
  };
1249
1242
  401: {
1250
1243
  error: string;
@@ -1506,7 +1499,6 @@ export declare function registerAuthRoutes(app: Elysia, host: SixbHostView, opti
1506
1499
  "sign-in": {
1507
1500
  post: {
1508
1501
  body: {
1509
- audience?: string | undefined;
1510
1502
  returnTo?: string | undefined;
1511
1503
  email?: string | undefined;
1512
1504
  };
@@ -1561,7 +1553,6 @@ export declare function registerAuthRoutes(app: Elysia, host: SixbHostView, opti
1561
1553
  callback: {
1562
1554
  post: {
1563
1555
  body: {
1564
- audience?: string | undefined;
1565
1556
  token?: string | undefined;
1566
1557
  magicLinkId?: string | undefined;
1567
1558
  };
@@ -1 +1 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/routes/auth.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,KAAK,YAAY,EAClB,MAAM,YAAY,CAAA;AAgCnB,OAAO,EAAE,KAAK,MAAM,EAAK,MAAM,QAAQ,CAAA;AAGvC,OAAO,EACL,KAAK,gCAAgC,EACrC,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,EAGhC,K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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAs6C7F"}
@@ -115,7 +115,7 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
115
115
  };
116
116
  slot: string;
117
117
  } | {
118
- status: "cancelled" | "expired";
118
+ status: "expired" | "cancelled";
119
119
  id: string;
120
120
  kind: "connect" | "reauthorize";
121
121
  finishedAt: string;
@@ -205,17 +205,17 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
205
205
  error: string;
206
206
  code?: "connector.credentials_unavailable" | "connector.provider_unavailable" | undefined;
207
207
  };
208
- 400: {
208
+ 409: {
209
209
  error: string;
210
- code?: "connector.authorization_invalid" | "connector.configuration_invalid" | undefined;
210
+ code?: "connector.authorization_required" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.replacement_required" | "connector.revocation_pending" | undefined;
211
211
  };
212
212
  502: {
213
213
  error: string;
214
214
  code?: "connector.adapter_invalid" | "connector.provider_failed" | undefined;
215
215
  };
216
- 409: {
216
+ 400: {
217
217
  error: string;
218
- code?: "connector.authorization_required" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.replacement_required" | "connector.revocation_pending" | undefined;
218
+ code?: "connector.authorization_invalid" | "connector.configuration_invalid" | undefined;
219
219
  };
220
220
  500: {
221
221
  error: string;
@@ -353,7 +353,7 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
353
353
  };
354
354
  slot: string;
355
355
  } | {
356
- status: "cancelled" | "expired";
356
+ status: "expired" | "cancelled";
357
357
  id: string;
358
358
  kind: "connect" | "reauthorize";
359
359
  finishedAt: string;
@@ -497,7 +497,7 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
497
497
  };
498
498
  slot: string;
499
499
  } | {
500
- status: "cancelled" | "expired";
500
+ status: "expired" | "cancelled";
501
501
  id: string;
502
502
  kind: "connect" | "reauthorize";
503
503
  finishedAt: string;
@@ -518,14 +518,14 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
518
518
  403: {
519
519
  error: string;
520
520
  };
521
- 400: {
522
- error: string;
523
- code?: "connector.authorization_invalid" | "connector.configuration_invalid" | undefined;
524
- };
525
521
  409: {
526
522
  error: string;
527
523
  code?: "connector.authorization_required" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.replacement_required" | "connector.revocation_pending" | undefined;
528
524
  };
525
+ 400: {
526
+ error: string;
527
+ code?: "connector.authorization_invalid" | "connector.configuration_invalid" | undefined;
528
+ };
529
529
  500: {
530
530
  error: string;
531
531
  code?: "internal.unexpected" | undefined;
@@ -613,7 +613,7 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
613
613
  };
614
614
  slot: string;
615
615
  } | {
616
- status: "cancelled" | "expired";
616
+ status: "expired" | "cancelled";
617
617
  id: string;
618
618
  kind: "connect" | "reauthorize";
619
619
  finishedAt: string;
@@ -744,7 +744,7 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
744
744
  };
745
745
  slot: string;
746
746
  } | {
747
- status: "cancelled" | "expired";
747
+ status: "expired" | "cancelled";
748
748
  id: string;
749
749
  kind: "connect" | "reauthorize";
750
750
  finishedAt: string;
@@ -763,14 +763,14 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
763
763
  403: {
764
764
  error: string;
765
765
  };
766
- 400: {
767
- error: string;
768
- code?: "connector.authorization_invalid" | "connector.configuration_invalid" | undefined;
769
- };
770
766
  409: {
771
767
  error: string;
772
768
  code?: "connector.authorization_required" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.replacement_required" | "connector.revocation_pending" | undefined;
773
769
  };
770
+ 400: {
771
+ error: string;
772
+ code?: "connector.authorization_invalid" | "connector.configuration_invalid" | undefined;
773
+ };
774
774
  500: {
775
775
  error: string;
776
776
  code?: "internal.unexpected" | undefined;
@@ -842,17 +842,17 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
842
842
  error: string;
843
843
  code?: "connector.credentials_unavailable" | "connector.provider_unavailable" | undefined;
844
844
  };
845
- 400: {
845
+ 409: {
846
846
  error: string;
847
- code?: "connector.authorization_invalid" | "connector.configuration_invalid" | undefined;
847
+ code?: "connector.authorization_required" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.replacement_required" | "connector.revocation_pending" | undefined;
848
848
  };
849
849
  502: {
850
850
  error: string;
851
851
  code?: "connector.adapter_invalid" | "connector.provider_failed" | undefined;
852
852
  };
853
- 409: {
853
+ 400: {
854
854
  error: string;
855
- code?: "connector.authorization_required" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.replacement_required" | "connector.revocation_pending" | undefined;
855
+ code?: "connector.authorization_invalid" | "connector.configuration_invalid" | undefined;
856
856
  };
857
857
  500: {
858
858
  error: string;
@@ -98,14 +98,14 @@ export declare function registerConnectorConnectionRoutes(app: Elysia, host: Six
98
98
  403: {
99
99
  error: string;
100
100
  };
101
- 400: {
102
- error: string;
103
- code?: "connector.authorization_invalid" | "connector.configuration_invalid" | undefined;
104
- };
105
101
  409: {
106
102
  error: string;
107
103
  code?: "connector.authorization_required" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.replacement_required" | "connector.revocation_pending" | undefined;
108
104
  };
105
+ 400: {
106
+ error: string;
107
+ code?: "connector.authorization_invalid" | "connector.configuration_invalid" | undefined;
108
+ };
109
109
  500: {
110
110
  error: string;
111
111
  code?: "internal.unexpected" | undefined;
@@ -170,17 +170,17 @@ export declare function registerConnectorConnectionRoutes(app: Elysia, host: Six
170
170
  error: string;
171
171
  code?: "connector.credentials_unavailable" | "connector.provider_unavailable" | undefined;
172
172
  };
173
- 400: {
173
+ 409: {
174
174
  error: string;
175
- code?: "connector.authorization_invalid" | "connector.configuration_invalid" | undefined;
175
+ code?: "connector.authorization_required" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.replacement_required" | "connector.revocation_pending" | undefined;
176
176
  };
177
177
  502: {
178
178
  error: string;
179
179
  code?: "connector.adapter_invalid" | "connector.provider_failed" | undefined;
180
180
  };
181
- 409: {
181
+ 400: {
182
182
  error: string;
183
- code?: "connector.authorization_required" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.replacement_required" | "connector.revocation_pending" | undefined;
183
+ code?: "connector.authorization_invalid" | "connector.configuration_invalid" | undefined;
184
184
  };
185
185
  500: {
186
186
  error: string;