@sixb/server 0.1.19 → 0.1.21
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.
- package/README.md +13 -22
- package/dist/artifacts/frame.d.ts +13 -0
- package/dist/artifacts/frame.d.ts.map +1 -0
- package/dist/auth/browser-origin.d.ts +9 -26
- package/dist/auth/browser-origin.d.ts.map +1 -1
- package/dist/auth/experience.d.ts +0 -3
- package/dist/auth/experience.d.ts.map +1 -1
- package/dist/auth/guard.d.ts +1 -1
- package/dist/auth/guard.d.ts.map +1 -1
- package/dist/auth/public-routes.d.ts +0 -5
- package/dist/auth/public-routes.d.ts.map +1 -1
- package/dist/auth/responses.d.ts +0 -2
- package/dist/auth/responses.d.ts.map +1 -1
- package/dist/auth/session-cookies.d.ts.map +1 -1
- package/dist/files/content.d.ts +2 -3
- package/dist/files/content.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3241 -2445
- package/dist/index.js.map +31 -26
- package/dist/openapi/tags.d.ts +10 -2
- package/dist/openapi/tags.d.ts.map +1 -1
- package/dist/registerRoutes.d.ts +3 -0
- package/dist/registerRoutes.d.ts.map +1 -1
- package/dist/routes/action-runs.d.ts +0 -2
- package/dist/routes/action-runs.d.ts.map +1 -1
- package/dist/routes/activity.d.ts +35 -0
- package/dist/routes/activity.d.ts.map +1 -0
- package/dist/routes/agents.d.ts +18 -29
- package/dist/routes/agents.d.ts.map +1 -1
- package/dist/routes/artifact-frames.d.ts +98 -0
- package/dist/routes/artifact-frames.d.ts.map +1 -0
- package/dist/routes/artifacts.d.ts +852 -0
- package/dist/routes/artifacts.d.ts.map +1 -0
- package/dist/routes/auth.d.ts +9 -18
- package/dist/routes/auth.d.ts.map +1 -1
- package/dist/routes/connector-connection-runs.d.ts +59 -59
- package/dist/routes/connector-connections.d.ts +2 -2
- package/dist/routes/datasets.d.ts +7 -7
- package/dist/routes/events.d.ts +1 -1
- package/dist/routes/objects.d.ts +0 -2
- package/dist/routes/objects.d.ts.map +1 -1
- package/dist/routes/pipelines.d.ts +31 -31
- package/dist/routes/projections.d.ts +10 -10
- package/dist/routes/share-grants.d.ts +5 -5
- package/dist/routes/syncs.d.ts +38 -38
- package/dist/routes/workflows.d.ts +30 -34
- package/dist/routes/workflows.d.ts.map +1 -1
- package/dist/routes/ws/events.d.ts.map +1 -1
- package/dist/routes/ws/subscription-hub.d.ts +8 -3
- package/dist/routes/ws/subscription-hub.d.ts.map +1 -1
- package/dist/schemas/activity.d.ts +1278 -0
- package/dist/schemas/activity.d.ts.map +1 -0
- package/dist/schemas/agents.d.ts +96 -144
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/ai-accounting.d.ts +24 -24
- package/dist/schemas/ai-limits.d.ts +26 -26
- package/dist/schemas/artifacts.d.ts +1305 -0
- package/dist/schemas/artifacts.d.ts.map +1 -0
- package/dist/schemas/auth.d.ts +34 -69
- package/dist/schemas/auth.d.ts.map +1 -1
- package/dist/schemas/connectors.d.ts +30 -30
- package/dist/schemas/datasets.d.ts +10 -10
- package/dist/schemas/events.d.ts +6 -6
- package/dist/schemas/files.d.ts +0 -3
- package/dist/schemas/files.d.ts.map +1 -1
- package/dist/schemas/pipelines.d.ts +35 -35
- package/dist/schemas/projections.d.ts +40 -40
- package/dist/schemas/share-grants.d.ts +16 -16
- package/dist/schemas/syncs.d.ts +36 -36
- package/dist/schemas/workflows.d.ts +84 -84
- package/dist/server.d.ts +1 -2
- package/dist/server.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/artifacts/frame.ts +46 -0
- package/src/auth/browser-origin.ts +40 -240
- package/src/auth/experience.ts +1 -4
- package/src/auth/guard.ts +4 -32
- package/src/auth/public-routes.ts +11 -10
- package/src/auth/responses.ts +0 -5
- package/src/auth/session-cookies.ts +1 -3
- package/src/auth/shared-access.ts +1 -1
- package/src/files/content.ts +9 -13
- package/src/index.ts +1 -1
- package/src/openapi/tags.ts +8 -0
- package/src/registerRoutes.ts +9 -0
- package/src/routes/activity.ts +327 -0
- package/src/routes/agents.ts +1 -1
- package/src/routes/artifact-frames.ts +138 -0
- package/src/routes/artifacts.ts +442 -0
- package/src/routes/auth.ts +32 -111
- package/src/routes/file-downloads.ts +1 -3
- package/src/routes/ws/events.ts +3 -2
- package/src/routes/ws/subscription-hub.ts +53 -20
- package/src/schemas/activity.ts +285 -0
- package/src/schemas/agents.ts +1 -2
- package/src/schemas/artifacts.ts +158 -0
- package/src/schemas/auth.ts +2 -15
- package/src/schemas/files.ts +0 -6
- package/src/server.ts +27 -24
- package/dist/auth/application-access.d.ts +0 -4
- package/dist/auth/application-access.d.ts.map +0 -1
- package/src/auth/application-access.ts +0 -15
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"artifacts.d.ts","sourceRoot":"","sources":["../../src/routes/artifacts.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,YAAY,EAClB,MAAM,YAAY,CAAA;AAEnB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AA4KpC,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmQrE"}
|
package/dist/routes/auth.d.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { SixbHostView } from "@sixb/core";
|
|
2
2
|
import { type Elysia } from "elysia";
|
|
3
|
-
import { type
|
|
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,9 +318,8 @@ 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
|
-
clientName?: string | undefined;
|
|
329
321
|
lastSeenAt?: string | undefined;
|
|
322
|
+
clientName?: string | undefined;
|
|
330
323
|
userAgent?: string | undefined;
|
|
331
324
|
ipAddress?: string | undefined;
|
|
332
325
|
}[];
|
|
@@ -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,
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/routes/auth.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAmB,YAAY,EAAE,MAAM,YAAY,CAAA;AAgC/D,OAAO,EAAE,KAAK,MAAM,EAAK,MAAM,QAAQ,CAAA;AAEvC,OA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;GAs6C7F"}
|
|
@@ -39,10 +39,10 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
39
39
|
expiresAt: string;
|
|
40
40
|
createdAt: string;
|
|
41
41
|
updatedAt: string;
|
|
42
|
-
connectorId: string;
|
|
43
42
|
owner: {
|
|
44
43
|
type: "project";
|
|
45
44
|
};
|
|
45
|
+
connectorId: string;
|
|
46
46
|
slot: string;
|
|
47
47
|
waitingFor: "provider_authorization";
|
|
48
48
|
} | {
|
|
@@ -51,10 +51,10 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
51
51
|
kind: "connect" | "reauthorize";
|
|
52
52
|
createdAt: string;
|
|
53
53
|
updatedAt: string;
|
|
54
|
-
connectorId: string;
|
|
55
54
|
owner: {
|
|
56
55
|
type: "project";
|
|
57
56
|
};
|
|
57
|
+
connectorId: string;
|
|
58
58
|
slot: string;
|
|
59
59
|
} | {
|
|
60
60
|
status: "waiting";
|
|
@@ -62,10 +62,10 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
62
62
|
kind: "connect" | "reauthorize";
|
|
63
63
|
createdAt: string;
|
|
64
64
|
updatedAt: string;
|
|
65
|
-
connectorId: string;
|
|
66
65
|
owner: {
|
|
67
66
|
type: "project";
|
|
68
67
|
};
|
|
68
|
+
connectorId: string;
|
|
69
69
|
slot: string;
|
|
70
70
|
waitingFor: "account_selection";
|
|
71
71
|
accounts: {
|
|
@@ -81,18 +81,13 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
81
81
|
finishedAt: string;
|
|
82
82
|
createdAt: string;
|
|
83
83
|
updatedAt: string;
|
|
84
|
-
connectorId: string;
|
|
85
|
-
owner: {
|
|
86
|
-
type: "project";
|
|
87
|
-
};
|
|
88
|
-
slot: string;
|
|
89
84
|
connections: {
|
|
90
85
|
status: "connected" | "needs_reauthorization" | "disconnected";
|
|
91
86
|
id: string;
|
|
92
|
-
connectorId: string;
|
|
93
87
|
owner: {
|
|
94
88
|
type: "project";
|
|
95
89
|
};
|
|
90
|
+
connectorId: string;
|
|
96
91
|
slot: string;
|
|
97
92
|
account: {
|
|
98
93
|
id: string;
|
|
@@ -101,6 +96,11 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
101
96
|
avatarUrl?: string | undefined;
|
|
102
97
|
};
|
|
103
98
|
}[];
|
|
99
|
+
owner: {
|
|
100
|
+
type: "project";
|
|
101
|
+
};
|
|
102
|
+
connectorId: string;
|
|
103
|
+
slot: string;
|
|
104
104
|
} | {
|
|
105
105
|
error: import("@sixb/core/storage").ConnectorConnectionRunFailure;
|
|
106
106
|
status: "failed";
|
|
@@ -109,10 +109,10 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
109
109
|
finishedAt: string;
|
|
110
110
|
createdAt: string;
|
|
111
111
|
updatedAt: string;
|
|
112
|
-
connectorId: string;
|
|
113
112
|
owner: {
|
|
114
113
|
type: "project";
|
|
115
114
|
};
|
|
115
|
+
connectorId: string;
|
|
116
116
|
slot: string;
|
|
117
117
|
} | {
|
|
118
118
|
status: "expired" | "cancelled";
|
|
@@ -121,10 +121,10 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
121
121
|
finishedAt: string;
|
|
122
122
|
createdAt: string;
|
|
123
123
|
updatedAt: string;
|
|
124
|
-
connectorId: string;
|
|
125
124
|
owner: {
|
|
126
125
|
type: "project";
|
|
127
126
|
};
|
|
127
|
+
connectorId: string;
|
|
128
128
|
slot: string;
|
|
129
129
|
})[];
|
|
130
130
|
404: {
|
|
@@ -181,10 +181,10 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
181
181
|
affectedConnections: {
|
|
182
182
|
status: "connected" | "needs_reauthorization" | "disconnected";
|
|
183
183
|
id: string;
|
|
184
|
-
connectorId: string;
|
|
185
184
|
owner: {
|
|
186
185
|
type: "project";
|
|
187
186
|
};
|
|
187
|
+
connectorId: string;
|
|
188
188
|
slot: string;
|
|
189
189
|
account: {
|
|
190
190
|
id: string;
|
|
@@ -227,10 +227,10 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
227
227
|
affectedConnections: {
|
|
228
228
|
status: "connected" | "needs_reauthorization" | "disconnected";
|
|
229
229
|
id: string;
|
|
230
|
-
connectorId: string;
|
|
231
230
|
owner: {
|
|
232
231
|
type: "project";
|
|
233
232
|
};
|
|
233
|
+
connectorId: string;
|
|
234
234
|
slot: string;
|
|
235
235
|
account: {
|
|
236
236
|
id: string;
|
|
@@ -277,10 +277,10 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
277
277
|
expiresAt: string;
|
|
278
278
|
createdAt: string;
|
|
279
279
|
updatedAt: string;
|
|
280
|
-
connectorId: string;
|
|
281
280
|
owner: {
|
|
282
281
|
type: "project";
|
|
283
282
|
};
|
|
283
|
+
connectorId: string;
|
|
284
284
|
slot: string;
|
|
285
285
|
waitingFor: "provider_authorization";
|
|
286
286
|
} | {
|
|
@@ -289,10 +289,10 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
289
289
|
kind: "connect" | "reauthorize";
|
|
290
290
|
createdAt: string;
|
|
291
291
|
updatedAt: string;
|
|
292
|
-
connectorId: string;
|
|
293
292
|
owner: {
|
|
294
293
|
type: "project";
|
|
295
294
|
};
|
|
295
|
+
connectorId: string;
|
|
296
296
|
slot: string;
|
|
297
297
|
} | {
|
|
298
298
|
status: "waiting";
|
|
@@ -300,10 +300,10 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
300
300
|
kind: "connect" | "reauthorize";
|
|
301
301
|
createdAt: string;
|
|
302
302
|
updatedAt: string;
|
|
303
|
-
connectorId: string;
|
|
304
303
|
owner: {
|
|
305
304
|
type: "project";
|
|
306
305
|
};
|
|
306
|
+
connectorId: string;
|
|
307
307
|
slot: string;
|
|
308
308
|
waitingFor: "account_selection";
|
|
309
309
|
accounts: {
|
|
@@ -319,18 +319,13 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
319
319
|
finishedAt: string;
|
|
320
320
|
createdAt: string;
|
|
321
321
|
updatedAt: string;
|
|
322
|
-
connectorId: string;
|
|
323
|
-
owner: {
|
|
324
|
-
type: "project";
|
|
325
|
-
};
|
|
326
|
-
slot: string;
|
|
327
322
|
connections: {
|
|
328
323
|
status: "connected" | "needs_reauthorization" | "disconnected";
|
|
329
324
|
id: string;
|
|
330
|
-
connectorId: string;
|
|
331
325
|
owner: {
|
|
332
326
|
type: "project";
|
|
333
327
|
};
|
|
328
|
+
connectorId: string;
|
|
334
329
|
slot: string;
|
|
335
330
|
account: {
|
|
336
331
|
id: string;
|
|
@@ -339,6 +334,11 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
339
334
|
avatarUrl?: string | undefined;
|
|
340
335
|
};
|
|
341
336
|
}[];
|
|
337
|
+
owner: {
|
|
338
|
+
type: "project";
|
|
339
|
+
};
|
|
340
|
+
connectorId: string;
|
|
341
|
+
slot: string;
|
|
342
342
|
} | {
|
|
343
343
|
error: import("@sixb/core/storage").ConnectorConnectionRunFailure;
|
|
344
344
|
status: "failed";
|
|
@@ -347,10 +347,10 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
347
347
|
finishedAt: string;
|
|
348
348
|
createdAt: string;
|
|
349
349
|
updatedAt: string;
|
|
350
|
-
connectorId: string;
|
|
351
350
|
owner: {
|
|
352
351
|
type: "project";
|
|
353
352
|
};
|
|
353
|
+
connectorId: string;
|
|
354
354
|
slot: string;
|
|
355
355
|
} | {
|
|
356
356
|
status: "expired" | "cancelled";
|
|
@@ -359,10 +359,10 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
359
359
|
finishedAt: string;
|
|
360
360
|
createdAt: string;
|
|
361
361
|
updatedAt: string;
|
|
362
|
-
connectorId: string;
|
|
363
362
|
owner: {
|
|
364
363
|
type: "project";
|
|
365
364
|
};
|
|
365
|
+
connectorId: string;
|
|
366
366
|
slot: string;
|
|
367
367
|
};
|
|
368
368
|
404: {
|
|
@@ -421,10 +421,10 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
421
421
|
expiresAt: string;
|
|
422
422
|
createdAt: string;
|
|
423
423
|
updatedAt: string;
|
|
424
|
-
connectorId: string;
|
|
425
424
|
owner: {
|
|
426
425
|
type: "project";
|
|
427
426
|
};
|
|
427
|
+
connectorId: string;
|
|
428
428
|
slot: string;
|
|
429
429
|
waitingFor: "provider_authorization";
|
|
430
430
|
} | {
|
|
@@ -433,10 +433,10 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
433
433
|
kind: "connect" | "reauthorize";
|
|
434
434
|
createdAt: string;
|
|
435
435
|
updatedAt: string;
|
|
436
|
-
connectorId: string;
|
|
437
436
|
owner: {
|
|
438
437
|
type: "project";
|
|
439
438
|
};
|
|
439
|
+
connectorId: string;
|
|
440
440
|
slot: string;
|
|
441
441
|
} | {
|
|
442
442
|
status: "waiting";
|
|
@@ -444,10 +444,10 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
444
444
|
kind: "connect" | "reauthorize";
|
|
445
445
|
createdAt: string;
|
|
446
446
|
updatedAt: string;
|
|
447
|
-
connectorId: string;
|
|
448
447
|
owner: {
|
|
449
448
|
type: "project";
|
|
450
449
|
};
|
|
450
|
+
connectorId: string;
|
|
451
451
|
slot: string;
|
|
452
452
|
waitingFor: "account_selection";
|
|
453
453
|
accounts: {
|
|
@@ -463,18 +463,13 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
463
463
|
finishedAt: string;
|
|
464
464
|
createdAt: string;
|
|
465
465
|
updatedAt: string;
|
|
466
|
-
connectorId: string;
|
|
467
|
-
owner: {
|
|
468
|
-
type: "project";
|
|
469
|
-
};
|
|
470
|
-
slot: string;
|
|
471
466
|
connections: {
|
|
472
467
|
status: "connected" | "needs_reauthorization" | "disconnected";
|
|
473
468
|
id: string;
|
|
474
|
-
connectorId: string;
|
|
475
469
|
owner: {
|
|
476
470
|
type: "project";
|
|
477
471
|
};
|
|
472
|
+
connectorId: string;
|
|
478
473
|
slot: string;
|
|
479
474
|
account: {
|
|
480
475
|
id: string;
|
|
@@ -483,6 +478,11 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
483
478
|
avatarUrl?: string | undefined;
|
|
484
479
|
};
|
|
485
480
|
}[];
|
|
481
|
+
owner: {
|
|
482
|
+
type: "project";
|
|
483
|
+
};
|
|
484
|
+
connectorId: string;
|
|
485
|
+
slot: string;
|
|
486
486
|
} | {
|
|
487
487
|
error: import("@sixb/core/storage").ConnectorConnectionRunFailure;
|
|
488
488
|
status: "failed";
|
|
@@ -491,10 +491,10 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
491
491
|
finishedAt: string;
|
|
492
492
|
createdAt: string;
|
|
493
493
|
updatedAt: string;
|
|
494
|
-
connectorId: string;
|
|
495
494
|
owner: {
|
|
496
495
|
type: "project";
|
|
497
496
|
};
|
|
497
|
+
connectorId: string;
|
|
498
498
|
slot: string;
|
|
499
499
|
} | {
|
|
500
500
|
status: "expired" | "cancelled";
|
|
@@ -503,10 +503,10 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
503
503
|
finishedAt: string;
|
|
504
504
|
createdAt: string;
|
|
505
505
|
updatedAt: string;
|
|
506
|
-
connectorId: string;
|
|
507
506
|
owner: {
|
|
508
507
|
type: "project";
|
|
509
508
|
};
|
|
509
|
+
connectorId: string;
|
|
510
510
|
slot: string;
|
|
511
511
|
} | {
|
|
512
512
|
error: string;
|
|
@@ -537,10 +537,10 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
537
537
|
expiresAt: string;
|
|
538
538
|
createdAt: string;
|
|
539
539
|
updatedAt: string;
|
|
540
|
-
connectorId: string;
|
|
541
540
|
owner: {
|
|
542
541
|
type: "project";
|
|
543
542
|
};
|
|
543
|
+
connectorId: string;
|
|
544
544
|
slot: string;
|
|
545
545
|
waitingFor: "provider_authorization";
|
|
546
546
|
} | {
|
|
@@ -549,10 +549,10 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
549
549
|
kind: "connect" | "reauthorize";
|
|
550
550
|
createdAt: string;
|
|
551
551
|
updatedAt: string;
|
|
552
|
-
connectorId: string;
|
|
553
552
|
owner: {
|
|
554
553
|
type: "project";
|
|
555
554
|
};
|
|
555
|
+
connectorId: string;
|
|
556
556
|
slot: string;
|
|
557
557
|
} | {
|
|
558
558
|
status: "waiting";
|
|
@@ -560,10 +560,10 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
560
560
|
kind: "connect" | "reauthorize";
|
|
561
561
|
createdAt: string;
|
|
562
562
|
updatedAt: string;
|
|
563
|
-
connectorId: string;
|
|
564
563
|
owner: {
|
|
565
564
|
type: "project";
|
|
566
565
|
};
|
|
566
|
+
connectorId: string;
|
|
567
567
|
slot: string;
|
|
568
568
|
waitingFor: "account_selection";
|
|
569
569
|
accounts: {
|
|
@@ -579,18 +579,13 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
579
579
|
finishedAt: string;
|
|
580
580
|
createdAt: string;
|
|
581
581
|
updatedAt: string;
|
|
582
|
-
connectorId: string;
|
|
583
|
-
owner: {
|
|
584
|
-
type: "project";
|
|
585
|
-
};
|
|
586
|
-
slot: string;
|
|
587
582
|
connections: {
|
|
588
583
|
status: "connected" | "needs_reauthorization" | "disconnected";
|
|
589
584
|
id: string;
|
|
590
|
-
connectorId: string;
|
|
591
585
|
owner: {
|
|
592
586
|
type: "project";
|
|
593
587
|
};
|
|
588
|
+
connectorId: string;
|
|
594
589
|
slot: string;
|
|
595
590
|
account: {
|
|
596
591
|
id: string;
|
|
@@ -599,6 +594,11 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
599
594
|
avatarUrl?: string | undefined;
|
|
600
595
|
};
|
|
601
596
|
}[];
|
|
597
|
+
owner: {
|
|
598
|
+
type: "project";
|
|
599
|
+
};
|
|
600
|
+
connectorId: string;
|
|
601
|
+
slot: string;
|
|
602
602
|
} | {
|
|
603
603
|
error: import("@sixb/core/storage").ConnectorConnectionRunFailure;
|
|
604
604
|
status: "failed";
|
|
@@ -607,10 +607,10 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
607
607
|
finishedAt: string;
|
|
608
608
|
createdAt: string;
|
|
609
609
|
updatedAt: string;
|
|
610
|
-
connectorId: string;
|
|
611
610
|
owner: {
|
|
612
611
|
type: "project";
|
|
613
612
|
};
|
|
613
|
+
connectorId: string;
|
|
614
614
|
slot: string;
|
|
615
615
|
} | {
|
|
616
616
|
status: "expired" | "cancelled";
|
|
@@ -619,10 +619,10 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
619
619
|
finishedAt: string;
|
|
620
620
|
createdAt: string;
|
|
621
621
|
updatedAt: string;
|
|
622
|
-
connectorId: string;
|
|
623
622
|
owner: {
|
|
624
623
|
type: "project";
|
|
625
624
|
};
|
|
625
|
+
connectorId: string;
|
|
626
626
|
slot: string;
|
|
627
627
|
};
|
|
628
628
|
422: {
|
|
@@ -668,10 +668,10 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
668
668
|
expiresAt: string;
|
|
669
669
|
createdAt: string;
|
|
670
670
|
updatedAt: string;
|
|
671
|
-
connectorId: string;
|
|
672
671
|
owner: {
|
|
673
672
|
type: "project";
|
|
674
673
|
};
|
|
674
|
+
connectorId: string;
|
|
675
675
|
slot: string;
|
|
676
676
|
waitingFor: "provider_authorization";
|
|
677
677
|
} | {
|
|
@@ -680,10 +680,10 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
680
680
|
kind: "connect" | "reauthorize";
|
|
681
681
|
createdAt: string;
|
|
682
682
|
updatedAt: string;
|
|
683
|
-
connectorId: string;
|
|
684
683
|
owner: {
|
|
685
684
|
type: "project";
|
|
686
685
|
};
|
|
686
|
+
connectorId: string;
|
|
687
687
|
slot: string;
|
|
688
688
|
} | {
|
|
689
689
|
status: "waiting";
|
|
@@ -691,10 +691,10 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
691
691
|
kind: "connect" | "reauthorize";
|
|
692
692
|
createdAt: string;
|
|
693
693
|
updatedAt: string;
|
|
694
|
-
connectorId: string;
|
|
695
694
|
owner: {
|
|
696
695
|
type: "project";
|
|
697
696
|
};
|
|
697
|
+
connectorId: string;
|
|
698
698
|
slot: string;
|
|
699
699
|
waitingFor: "account_selection";
|
|
700
700
|
accounts: {
|
|
@@ -710,18 +710,13 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
710
710
|
finishedAt: string;
|
|
711
711
|
createdAt: string;
|
|
712
712
|
updatedAt: string;
|
|
713
|
-
connectorId: string;
|
|
714
|
-
owner: {
|
|
715
|
-
type: "project";
|
|
716
|
-
};
|
|
717
|
-
slot: string;
|
|
718
713
|
connections: {
|
|
719
714
|
status: "connected" | "needs_reauthorization" | "disconnected";
|
|
720
715
|
id: string;
|
|
721
|
-
connectorId: string;
|
|
722
716
|
owner: {
|
|
723
717
|
type: "project";
|
|
724
718
|
};
|
|
719
|
+
connectorId: string;
|
|
725
720
|
slot: string;
|
|
726
721
|
account: {
|
|
727
722
|
id: string;
|
|
@@ -730,6 +725,11 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
730
725
|
avatarUrl?: string | undefined;
|
|
731
726
|
};
|
|
732
727
|
}[];
|
|
728
|
+
owner: {
|
|
729
|
+
type: "project";
|
|
730
|
+
};
|
|
731
|
+
connectorId: string;
|
|
732
|
+
slot: string;
|
|
733
733
|
} | {
|
|
734
734
|
error: import("@sixb/core/storage").ConnectorConnectionRunFailure;
|
|
735
735
|
status: "failed";
|
|
@@ -738,10 +738,10 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
738
738
|
finishedAt: string;
|
|
739
739
|
createdAt: string;
|
|
740
740
|
updatedAt: string;
|
|
741
|
-
connectorId: string;
|
|
742
741
|
owner: {
|
|
743
742
|
type: "project";
|
|
744
743
|
};
|
|
744
|
+
connectorId: string;
|
|
745
745
|
slot: string;
|
|
746
746
|
} | {
|
|
747
747
|
status: "expired" | "cancelled";
|
|
@@ -750,10 +750,10 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
750
750
|
finishedAt: string;
|
|
751
751
|
createdAt: string;
|
|
752
752
|
updatedAt: string;
|
|
753
|
-
connectorId: string;
|
|
754
753
|
owner: {
|
|
755
754
|
type: "project";
|
|
756
755
|
};
|
|
756
|
+
connectorId: string;
|
|
757
757
|
slot: string;
|
|
758
758
|
};
|
|
759
759
|
404: {
|
|
@@ -818,10 +818,10 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
818
818
|
affectedConnections: {
|
|
819
819
|
status: "connected" | "needs_reauthorization" | "disconnected";
|
|
820
820
|
id: string;
|
|
821
|
-
connectorId: string;
|
|
822
821
|
owner: {
|
|
823
822
|
type: "project";
|
|
824
823
|
};
|
|
824
|
+
connectorId: string;
|
|
825
825
|
slot: string;
|
|
826
826
|
account: {
|
|
827
827
|
id: string;
|
|
@@ -864,10 +864,10 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
864
864
|
affectedConnections: {
|
|
865
865
|
status: "connected" | "needs_reauthorization" | "disconnected";
|
|
866
866
|
id: string;
|
|
867
|
-
connectorId: string;
|
|
868
867
|
owner: {
|
|
869
868
|
type: "project";
|
|
870
869
|
};
|
|
870
|
+
connectorId: string;
|
|
871
871
|
slot: string;
|
|
872
872
|
account: {
|
|
873
873
|
id: string;
|
|
@@ -31,10 +31,10 @@ export declare function registerConnectorConnectionRoutes(app: Elysia, host: Six
|
|
|
31
31
|
200: {
|
|
32
32
|
status: "connected" | "needs_reauthorization" | "disconnected";
|
|
33
33
|
id: string;
|
|
34
|
-
connectorId: string;
|
|
35
34
|
owner: {
|
|
36
35
|
type: "project";
|
|
37
36
|
};
|
|
37
|
+
connectorId: string;
|
|
38
38
|
slot: string;
|
|
39
39
|
account: {
|
|
40
40
|
id: string;
|
|
@@ -146,10 +146,10 @@ export declare function registerConnectorConnectionRoutes(app: Elysia, host: Six
|
|
|
146
146
|
affectedConnections: {
|
|
147
147
|
status: "connected" | "needs_reauthorization" | "disconnected";
|
|
148
148
|
id: string;
|
|
149
|
-
connectorId: string;
|
|
150
149
|
owner: {
|
|
151
150
|
type: "project";
|
|
152
151
|
};
|
|
152
|
+
connectorId: string;
|
|
153
153
|
slot: string;
|
|
154
154
|
account: {
|
|
155
155
|
id: string;
|