@sixb/server 0.1.20 → 0.1.22
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/dist/artifacts/frame.d.ts +18 -0
- package/dist/artifacts/frame.d.ts.map +1 -0
- package/dist/auth/browser-origin.d.ts +10 -1
- package/dist/auth/browser-origin.d.ts.map +1 -1
- package/dist/auth/experience.d.ts +1 -0
- package/dist/auth/experience.d.ts.map +1 -1
- package/dist/auth/public-routes.d.ts.map +1 -1
- package/dist/auth/responses.d.ts +1 -1
- package/dist/auth/responses.d.ts.map +1 -1
- package/dist/auth/scope.d.ts +19 -3
- package/dist/auth/scope.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.js +10636 -7071
- package/dist/index.js.map +56 -38
- package/dist/models/display.d.ts +27 -0
- package/dist/models/display.d.ts.map +1 -1
- package/dist/openapi/components.d.ts +14 -0
- package/dist/openapi/components.d.ts.map +1 -0
- package/dist/openapi/tags.d.ts +22 -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/actions.d.ts +5 -5
- package/dist/routes/activity.d.ts +35 -0
- package/dist/routes/activity.d.ts.map +1 -0
- package/dist/routes/agent-api-gateway.d.ts.map +1 -1
- package/dist/routes/agent-approval-gate.d.ts +27 -0
- package/dist/routes/agent-approval-gate.d.ts.map +1 -0
- package/dist/routes/agent-approvals.d.ts +599 -0
- package/dist/routes/agent-approvals.d.ts.map +1 -0
- package/dist/routes/agent-children.d.ts +318 -0
- package/dist/routes/agent-children.d.ts.map +1 -0
- package/dist/routes/agent-memory.d.ts +267 -0
- package/dist/routes/agent-memory.d.ts.map +1 -0
- package/dist/routes/agents.d.ts +1008 -98
- package/dist/routes/agents.d.ts.map +1 -1
- package/dist/routes/ai-accounting.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 +1508 -0
- package/dist/routes/artifacts.d.ts.map +1 -0
- package/dist/routes/auth.d.ts +117 -11
- package/dist/routes/auth.d.ts.map +1 -1
- package/dist/routes/connector-connection-runs.d.ts +84 -84
- package/dist/routes/connector-connections.d.ts +2 -2
- package/dist/routes/connectors.d.ts +2 -2
- package/dist/routes/datasets.d.ts +27 -27
- package/dist/routes/events.d.ts +5 -5
- package/dist/routes/files.d.ts +14 -14
- package/dist/routes/files.d.ts.map +1 -1
- package/dist/routes/links.d.ts +2 -2
- package/dist/routes/logs.d.ts +5 -5
- package/dist/routes/model-calls.d.ts +155 -0
- package/dist/routes/model-calls.d.ts.map +1 -0
- package/dist/routes/model-generations.d.ts +400 -0
- package/dist/routes/model-generations.d.ts.map +1 -0
- package/dist/routes/models.d.ts +434 -1
- package/dist/routes/models.d.ts.map +1 -1
- package/dist/routes/objects.d.ts +71 -40
- package/dist/routes/objects.d.ts.map +1 -1
- package/dist/routes/observed-agent-threads.d.ts +682 -0
- package/dist/routes/observed-agent-threads.d.ts.map +1 -0
- package/dist/routes/ontology.d.ts +66 -62
- package/dist/routes/ontology.d.ts.map +1 -1
- package/dist/routes/pipelines.d.ts +53 -53
- package/dist/routes/projections.d.ts +63 -63
- package/dist/routes/rules.d.ts +2 -2
- package/dist/routes/share-grants.d.ts +4 -4
- package/dist/routes/syncs.d.ts +18 -18
- package/dist/routes/users.d.ts +117 -0
- package/dist/routes/users.d.ts.map +1 -0
- package/dist/routes/webhook-runs.d.ts +1 -1
- package/dist/routes/workflows.d.ts +142 -76
- package/dist/routes/workflows.d.ts.map +1 -1
- package/dist/routes/ws/agents.d.ts +7 -2
- package/dist/routes/ws/agents.d.ts.map +1 -1
- package/dist/routes/ws/events.d.ts +6 -6
- package/dist/routes/ws/events.d.ts.map +1 -1
- package/dist/routes/ws/logs.d.ts +14 -14
- package/dist/routes/ws/subscription-hub.d.ts +8 -3
- package/dist/routes/ws/subscription-hub.d.ts.map +1 -1
- package/dist/schemas/actions.d.ts +15 -15
- package/dist/schemas/activity.d.ts +1298 -0
- package/dist/schemas/activity.d.ts.map +1 -0
- package/dist/schemas/agent-approvals.d.ts +1091 -0
- package/dist/schemas/agent-approvals.d.ts.map +1 -0
- package/dist/schemas/agent-memory.d.ts +250 -0
- package/dist/schemas/agent-memory.d.ts.map +1 -0
- package/dist/schemas/agents.d.ts +5485 -460
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/ai-accounting.d.ts +1315 -436
- package/dist/schemas/ai-accounting.d.ts.map +1 -1
- package/dist/schemas/ai-limits.d.ts +36 -36
- package/dist/schemas/ai-usage.d.ts +12 -0
- package/dist/schemas/ai-usage.d.ts.map +1 -1
- package/dist/schemas/artifacts.d.ts +1857 -0
- package/dist/schemas/artifacts.d.ts.map +1 -0
- package/dist/schemas/auth.d.ts +125 -52
- package/dist/schemas/auth.d.ts.map +1 -1
- package/dist/schemas/connectors.d.ts +42 -42
- package/dist/schemas/datasets.d.ts +108 -108
- package/dist/schemas/event-payloads.d.ts +6 -6
- package/dist/schemas/events.d.ts +32 -32
- package/dist/schemas/events.d.ts.map +1 -1
- package/dist/schemas/files.d.ts +24 -24
- package/dist/schemas/links.d.ts +2 -2
- package/dist/schemas/logs.d.ts +32 -32
- package/dist/schemas/models.d.ts +8889 -10
- package/dist/schemas/models.d.ts.map +1 -1
- package/dist/schemas/objects.d.ts +48 -12
- package/dist/schemas/objects.d.ts.map +1 -1
- package/dist/schemas/ontology.d.ts +127 -104
- package/dist/schemas/ontology.d.ts.map +1 -1
- package/dist/schemas/pipelines.d.ts +166 -166
- package/dist/schemas/projections.d.ts +346 -346
- package/dist/schemas/rules.d.ts +4 -4
- package/dist/schemas/share-grants.d.ts +14 -14
- package/dist/schemas/syncs.d.ts +40 -40
- package/dist/schemas/users.d.ts +72 -0
- package/dist/schemas/users.d.ts.map +1 -0
- package/dist/schemas/webhook-runs.d.ts +6 -6
- package/dist/schemas/workflows.d.ts +769 -254
- package/dist/schemas/workflows.d.ts.map +1 -1
- package/dist/server.d.ts +1 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/utils/http.d.ts.map +1 -1
- package/package.json +7 -7
- package/src/artifacts/frame.ts +51 -0
- package/src/auth/browser-origin.ts +20 -5
- package/src/auth/experience.ts +1 -1
- package/src/auth/guard.ts +2 -2
- package/src/auth/public-routes.ts +16 -0
- package/src/auth/responses.ts +7 -6
- package/src/auth/scope.ts +32 -3
- package/src/files/content.ts +9 -13
- package/src/models/display.ts +61 -16
- package/src/openapi/components.ts +54 -0
- package/src/openapi/tags.ts +20 -0
- package/src/registerRoutes.ts +23 -0
- package/src/routes/activity.ts +327 -0
- package/src/routes/agent-api-gateway.ts +115 -91
- package/src/routes/agent-approval-gate.ts +213 -0
- package/src/routes/agent-approvals.ts +299 -0
- package/src/routes/agent-children.ts +209 -0
- package/src/routes/agent-memory.ts +210 -0
- package/src/routes/agents.ts +364 -143
- package/src/routes/ai-accounting.ts +4 -0
- package/src/routes/artifact-frames.ts +144 -0
- package/src/routes/artifacts.ts +717 -0
- package/src/routes/auth.ts +306 -13
- package/src/routes/file-downloads.ts +1 -3
- package/src/routes/files.ts +6 -7
- package/src/routes/model-calls.ts +120 -0
- package/src/routes/model-generations.ts +245 -0
- package/src/routes/models.ts +116 -9
- package/src/routes/objects.ts +55 -61
- package/src/routes/observed-agent-threads.ts +253 -0
- package/src/routes/ontology.ts +1 -0
- package/src/routes/users.ts +73 -0
- package/src/routes/workflows.ts +6 -9
- package/src/routes/ws/agents.ts +10 -5
- package/src/routes/ws/events.ts +3 -2
- package/src/routes/ws/subscription-hub.ts +53 -20
- package/src/schemas/activity.ts +287 -0
- package/src/schemas/agent-approvals.ts +129 -0
- package/src/schemas/agent-memory.ts +96 -0
- package/src/schemas/agents.ts +240 -2
- package/src/schemas/ai-accounting.ts +40 -4
- package/src/schemas/ai-usage.ts +10 -0
- package/src/schemas/artifacts.ts +246 -0
- package/src/schemas/auth.ts +25 -0
- package/src/schemas/models.ts +197 -1
- package/src/schemas/objects.ts +181 -0
- package/src/schemas/ontology.ts +1 -0
- package/src/schemas/users.ts +24 -0
- package/src/schemas/workflows.ts +2 -0
- package/src/server.ts +34 -19
- package/src/utils/http.ts +2 -0
|
@@ -36,13 +36,13 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
36
36
|
status: "waiting";
|
|
37
37
|
id: string;
|
|
38
38
|
kind: "connect" | "reauthorize";
|
|
39
|
-
expiresAt: string;
|
|
40
39
|
createdAt: string;
|
|
41
|
-
|
|
42
|
-
connectorId: string;
|
|
40
|
+
expiresAt: string;
|
|
43
41
|
owner: {
|
|
44
42
|
type: "project";
|
|
45
43
|
};
|
|
44
|
+
updatedAt: string;
|
|
45
|
+
connectorId: string;
|
|
46
46
|
slot: string;
|
|
47
47
|
waitingFor: "provider_authorization";
|
|
48
48
|
} | {
|
|
@@ -50,22 +50,22 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
50
50
|
id: string;
|
|
51
51
|
kind: "connect" | "reauthorize";
|
|
52
52
|
createdAt: string;
|
|
53
|
-
updatedAt: string;
|
|
54
|
-
connectorId: string;
|
|
55
53
|
owner: {
|
|
56
54
|
type: "project";
|
|
57
55
|
};
|
|
56
|
+
updatedAt: string;
|
|
57
|
+
connectorId: string;
|
|
58
58
|
slot: string;
|
|
59
59
|
} | {
|
|
60
60
|
status: "waiting";
|
|
61
61
|
id: string;
|
|
62
62
|
kind: "connect" | "reauthorize";
|
|
63
63
|
createdAt: string;
|
|
64
|
-
updatedAt: string;
|
|
65
|
-
connectorId: string;
|
|
66
64
|
owner: {
|
|
67
65
|
type: "project";
|
|
68
66
|
};
|
|
67
|
+
updatedAt: string;
|
|
68
|
+
connectorId: string;
|
|
69
69
|
slot: string;
|
|
70
70
|
waitingFor: "account_selection";
|
|
71
71
|
accounts: {
|
|
@@ -80,19 +80,17 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
80
80
|
kind: "connect" | "reauthorize";
|
|
81
81
|
finishedAt: string;
|
|
82
82
|
createdAt: string;
|
|
83
|
-
updatedAt: string;
|
|
84
|
-
connectorId: string;
|
|
85
83
|
owner: {
|
|
86
84
|
type: "project";
|
|
87
85
|
};
|
|
88
|
-
|
|
86
|
+
updatedAt: string;
|
|
89
87
|
connections: {
|
|
90
88
|
status: "connected" | "needs_reauthorization" | "disconnected";
|
|
91
89
|
id: string;
|
|
92
|
-
connectorId: string;
|
|
93
90
|
owner: {
|
|
94
91
|
type: "project";
|
|
95
92
|
};
|
|
93
|
+
connectorId: string;
|
|
96
94
|
slot: string;
|
|
97
95
|
account: {
|
|
98
96
|
id: string;
|
|
@@ -101,6 +99,8 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
101
99
|
avatarUrl?: string | undefined;
|
|
102
100
|
};
|
|
103
101
|
}[];
|
|
102
|
+
connectorId: string;
|
|
103
|
+
slot: string;
|
|
104
104
|
} | {
|
|
105
105
|
error: import("@sixb/core/storage").ConnectorConnectionRunFailure;
|
|
106
106
|
status: "failed";
|
|
@@ -108,23 +108,23 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
108
108
|
kind: "connect" | "reauthorize";
|
|
109
109
|
finishedAt: string;
|
|
110
110
|
createdAt: string;
|
|
111
|
-
updatedAt: string;
|
|
112
|
-
connectorId: string;
|
|
113
111
|
owner: {
|
|
114
112
|
type: "project";
|
|
115
113
|
};
|
|
114
|
+
updatedAt: string;
|
|
115
|
+
connectorId: string;
|
|
116
116
|
slot: string;
|
|
117
117
|
} | {
|
|
118
|
-
status: "
|
|
118
|
+
status: "cancelled" | "expired";
|
|
119
119
|
id: string;
|
|
120
120
|
kind: "connect" | "reauthorize";
|
|
121
121
|
finishedAt: string;
|
|
122
122
|
createdAt: string;
|
|
123
|
-
updatedAt: string;
|
|
124
|
-
connectorId: string;
|
|
125
123
|
owner: {
|
|
126
124
|
type: "project";
|
|
127
125
|
};
|
|
126
|
+
updatedAt: string;
|
|
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;
|
|
@@ -274,13 +274,13 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
274
274
|
status: "waiting";
|
|
275
275
|
id: string;
|
|
276
276
|
kind: "connect" | "reauthorize";
|
|
277
|
-
expiresAt: string;
|
|
278
277
|
createdAt: string;
|
|
279
|
-
|
|
280
|
-
connectorId: string;
|
|
278
|
+
expiresAt: string;
|
|
281
279
|
owner: {
|
|
282
280
|
type: "project";
|
|
283
281
|
};
|
|
282
|
+
updatedAt: string;
|
|
283
|
+
connectorId: string;
|
|
284
284
|
slot: string;
|
|
285
285
|
waitingFor: "provider_authorization";
|
|
286
286
|
} | {
|
|
@@ -288,22 +288,22 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
288
288
|
id: string;
|
|
289
289
|
kind: "connect" | "reauthorize";
|
|
290
290
|
createdAt: string;
|
|
291
|
-
updatedAt: string;
|
|
292
|
-
connectorId: string;
|
|
293
291
|
owner: {
|
|
294
292
|
type: "project";
|
|
295
293
|
};
|
|
294
|
+
updatedAt: string;
|
|
295
|
+
connectorId: string;
|
|
296
296
|
slot: string;
|
|
297
297
|
} | {
|
|
298
298
|
status: "waiting";
|
|
299
299
|
id: string;
|
|
300
300
|
kind: "connect" | "reauthorize";
|
|
301
301
|
createdAt: string;
|
|
302
|
-
updatedAt: string;
|
|
303
|
-
connectorId: string;
|
|
304
302
|
owner: {
|
|
305
303
|
type: "project";
|
|
306
304
|
};
|
|
305
|
+
updatedAt: string;
|
|
306
|
+
connectorId: string;
|
|
307
307
|
slot: string;
|
|
308
308
|
waitingFor: "account_selection";
|
|
309
309
|
accounts: {
|
|
@@ -318,19 +318,17 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
318
318
|
kind: "connect" | "reauthorize";
|
|
319
319
|
finishedAt: string;
|
|
320
320
|
createdAt: string;
|
|
321
|
-
updatedAt: string;
|
|
322
|
-
connectorId: string;
|
|
323
321
|
owner: {
|
|
324
322
|
type: "project";
|
|
325
323
|
};
|
|
326
|
-
|
|
324
|
+
updatedAt: string;
|
|
327
325
|
connections: {
|
|
328
326
|
status: "connected" | "needs_reauthorization" | "disconnected";
|
|
329
327
|
id: string;
|
|
330
|
-
connectorId: string;
|
|
331
328
|
owner: {
|
|
332
329
|
type: "project";
|
|
333
330
|
};
|
|
331
|
+
connectorId: string;
|
|
334
332
|
slot: string;
|
|
335
333
|
account: {
|
|
336
334
|
id: string;
|
|
@@ -339,6 +337,8 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
339
337
|
avatarUrl?: string | undefined;
|
|
340
338
|
};
|
|
341
339
|
}[];
|
|
340
|
+
connectorId: string;
|
|
341
|
+
slot: string;
|
|
342
342
|
} | {
|
|
343
343
|
error: import("@sixb/core/storage").ConnectorConnectionRunFailure;
|
|
344
344
|
status: "failed";
|
|
@@ -346,23 +346,23 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
346
346
|
kind: "connect" | "reauthorize";
|
|
347
347
|
finishedAt: string;
|
|
348
348
|
createdAt: string;
|
|
349
|
-
updatedAt: string;
|
|
350
|
-
connectorId: string;
|
|
351
349
|
owner: {
|
|
352
350
|
type: "project";
|
|
353
351
|
};
|
|
352
|
+
updatedAt: string;
|
|
353
|
+
connectorId: string;
|
|
354
354
|
slot: string;
|
|
355
355
|
} | {
|
|
356
|
-
status: "
|
|
356
|
+
status: "cancelled" | "expired";
|
|
357
357
|
id: string;
|
|
358
358
|
kind: "connect" | "reauthorize";
|
|
359
359
|
finishedAt: string;
|
|
360
360
|
createdAt: string;
|
|
361
|
-
updatedAt: string;
|
|
362
|
-
connectorId: string;
|
|
363
361
|
owner: {
|
|
364
362
|
type: "project";
|
|
365
363
|
};
|
|
364
|
+
updatedAt: string;
|
|
365
|
+
connectorId: string;
|
|
366
366
|
slot: string;
|
|
367
367
|
};
|
|
368
368
|
404: {
|
|
@@ -418,13 +418,13 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
418
418
|
status: "waiting";
|
|
419
419
|
id: string;
|
|
420
420
|
kind: "connect" | "reauthorize";
|
|
421
|
-
expiresAt: string;
|
|
422
421
|
createdAt: string;
|
|
423
|
-
|
|
424
|
-
connectorId: string;
|
|
422
|
+
expiresAt: string;
|
|
425
423
|
owner: {
|
|
426
424
|
type: "project";
|
|
427
425
|
};
|
|
426
|
+
updatedAt: string;
|
|
427
|
+
connectorId: string;
|
|
428
428
|
slot: string;
|
|
429
429
|
waitingFor: "provider_authorization";
|
|
430
430
|
} | {
|
|
@@ -432,22 +432,22 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
432
432
|
id: string;
|
|
433
433
|
kind: "connect" | "reauthorize";
|
|
434
434
|
createdAt: string;
|
|
435
|
-
updatedAt: string;
|
|
436
|
-
connectorId: string;
|
|
437
435
|
owner: {
|
|
438
436
|
type: "project";
|
|
439
437
|
};
|
|
438
|
+
updatedAt: string;
|
|
439
|
+
connectorId: string;
|
|
440
440
|
slot: string;
|
|
441
441
|
} | {
|
|
442
442
|
status: "waiting";
|
|
443
443
|
id: string;
|
|
444
444
|
kind: "connect" | "reauthorize";
|
|
445
445
|
createdAt: string;
|
|
446
|
-
updatedAt: string;
|
|
447
|
-
connectorId: string;
|
|
448
446
|
owner: {
|
|
449
447
|
type: "project";
|
|
450
448
|
};
|
|
449
|
+
updatedAt: string;
|
|
450
|
+
connectorId: string;
|
|
451
451
|
slot: string;
|
|
452
452
|
waitingFor: "account_selection";
|
|
453
453
|
accounts: {
|
|
@@ -462,19 +462,17 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
462
462
|
kind: "connect" | "reauthorize";
|
|
463
463
|
finishedAt: string;
|
|
464
464
|
createdAt: string;
|
|
465
|
-
updatedAt: string;
|
|
466
|
-
connectorId: string;
|
|
467
465
|
owner: {
|
|
468
466
|
type: "project";
|
|
469
467
|
};
|
|
470
|
-
|
|
468
|
+
updatedAt: string;
|
|
471
469
|
connections: {
|
|
472
470
|
status: "connected" | "needs_reauthorization" | "disconnected";
|
|
473
471
|
id: string;
|
|
474
|
-
connectorId: string;
|
|
475
472
|
owner: {
|
|
476
473
|
type: "project";
|
|
477
474
|
};
|
|
475
|
+
connectorId: string;
|
|
478
476
|
slot: string;
|
|
479
477
|
account: {
|
|
480
478
|
id: string;
|
|
@@ -483,6 +481,8 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
483
481
|
avatarUrl?: string | undefined;
|
|
484
482
|
};
|
|
485
483
|
}[];
|
|
484
|
+
connectorId: string;
|
|
485
|
+
slot: string;
|
|
486
486
|
} | {
|
|
487
487
|
error: import("@sixb/core/storage").ConnectorConnectionRunFailure;
|
|
488
488
|
status: "failed";
|
|
@@ -490,23 +490,23 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
490
490
|
kind: "connect" | "reauthorize";
|
|
491
491
|
finishedAt: string;
|
|
492
492
|
createdAt: string;
|
|
493
|
-
updatedAt: string;
|
|
494
|
-
connectorId: string;
|
|
495
493
|
owner: {
|
|
496
494
|
type: "project";
|
|
497
495
|
};
|
|
496
|
+
updatedAt: string;
|
|
497
|
+
connectorId: string;
|
|
498
498
|
slot: string;
|
|
499
499
|
} | {
|
|
500
|
-
status: "
|
|
500
|
+
status: "cancelled" | "expired";
|
|
501
501
|
id: string;
|
|
502
502
|
kind: "connect" | "reauthorize";
|
|
503
503
|
finishedAt: string;
|
|
504
504
|
createdAt: string;
|
|
505
|
-
updatedAt: string;
|
|
506
|
-
connectorId: string;
|
|
507
505
|
owner: {
|
|
508
506
|
type: "project";
|
|
509
507
|
};
|
|
508
|
+
updatedAt: string;
|
|
509
|
+
connectorId: string;
|
|
510
510
|
slot: string;
|
|
511
511
|
} | {
|
|
512
512
|
error: string;
|
|
@@ -534,13 +534,13 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
534
534
|
status: "waiting";
|
|
535
535
|
id: string;
|
|
536
536
|
kind: "connect" | "reauthorize";
|
|
537
|
-
expiresAt: string;
|
|
538
537
|
createdAt: string;
|
|
539
|
-
|
|
540
|
-
connectorId: string;
|
|
538
|
+
expiresAt: string;
|
|
541
539
|
owner: {
|
|
542
540
|
type: "project";
|
|
543
541
|
};
|
|
542
|
+
updatedAt: string;
|
|
543
|
+
connectorId: string;
|
|
544
544
|
slot: string;
|
|
545
545
|
waitingFor: "provider_authorization";
|
|
546
546
|
} | {
|
|
@@ -548,22 +548,22 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
548
548
|
id: string;
|
|
549
549
|
kind: "connect" | "reauthorize";
|
|
550
550
|
createdAt: string;
|
|
551
|
-
updatedAt: string;
|
|
552
|
-
connectorId: string;
|
|
553
551
|
owner: {
|
|
554
552
|
type: "project";
|
|
555
553
|
};
|
|
554
|
+
updatedAt: string;
|
|
555
|
+
connectorId: string;
|
|
556
556
|
slot: string;
|
|
557
557
|
} | {
|
|
558
558
|
status: "waiting";
|
|
559
559
|
id: string;
|
|
560
560
|
kind: "connect" | "reauthorize";
|
|
561
561
|
createdAt: string;
|
|
562
|
-
updatedAt: string;
|
|
563
|
-
connectorId: string;
|
|
564
562
|
owner: {
|
|
565
563
|
type: "project";
|
|
566
564
|
};
|
|
565
|
+
updatedAt: string;
|
|
566
|
+
connectorId: string;
|
|
567
567
|
slot: string;
|
|
568
568
|
waitingFor: "account_selection";
|
|
569
569
|
accounts: {
|
|
@@ -578,19 +578,17 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
578
578
|
kind: "connect" | "reauthorize";
|
|
579
579
|
finishedAt: string;
|
|
580
580
|
createdAt: string;
|
|
581
|
-
updatedAt: string;
|
|
582
|
-
connectorId: string;
|
|
583
581
|
owner: {
|
|
584
582
|
type: "project";
|
|
585
583
|
};
|
|
586
|
-
|
|
584
|
+
updatedAt: string;
|
|
587
585
|
connections: {
|
|
588
586
|
status: "connected" | "needs_reauthorization" | "disconnected";
|
|
589
587
|
id: string;
|
|
590
|
-
connectorId: string;
|
|
591
588
|
owner: {
|
|
592
589
|
type: "project";
|
|
593
590
|
};
|
|
591
|
+
connectorId: string;
|
|
594
592
|
slot: string;
|
|
595
593
|
account: {
|
|
596
594
|
id: string;
|
|
@@ -599,6 +597,8 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
599
597
|
avatarUrl?: string | undefined;
|
|
600
598
|
};
|
|
601
599
|
}[];
|
|
600
|
+
connectorId: string;
|
|
601
|
+
slot: string;
|
|
602
602
|
} | {
|
|
603
603
|
error: import("@sixb/core/storage").ConnectorConnectionRunFailure;
|
|
604
604
|
status: "failed";
|
|
@@ -606,23 +606,23 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
606
606
|
kind: "connect" | "reauthorize";
|
|
607
607
|
finishedAt: string;
|
|
608
608
|
createdAt: string;
|
|
609
|
-
updatedAt: string;
|
|
610
|
-
connectorId: string;
|
|
611
609
|
owner: {
|
|
612
610
|
type: "project";
|
|
613
611
|
};
|
|
612
|
+
updatedAt: string;
|
|
613
|
+
connectorId: string;
|
|
614
614
|
slot: string;
|
|
615
615
|
} | {
|
|
616
|
-
status: "
|
|
616
|
+
status: "cancelled" | "expired";
|
|
617
617
|
id: string;
|
|
618
618
|
kind: "connect" | "reauthorize";
|
|
619
619
|
finishedAt: string;
|
|
620
620
|
createdAt: string;
|
|
621
|
-
updatedAt: string;
|
|
622
|
-
connectorId: string;
|
|
623
621
|
owner: {
|
|
624
622
|
type: "project";
|
|
625
623
|
};
|
|
624
|
+
updatedAt: string;
|
|
625
|
+
connectorId: string;
|
|
626
626
|
slot: string;
|
|
627
627
|
};
|
|
628
628
|
422: {
|
|
@@ -665,13 +665,13 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
665
665
|
status: "waiting";
|
|
666
666
|
id: string;
|
|
667
667
|
kind: "connect" | "reauthorize";
|
|
668
|
-
expiresAt: string;
|
|
669
668
|
createdAt: string;
|
|
670
|
-
|
|
671
|
-
connectorId: string;
|
|
669
|
+
expiresAt: string;
|
|
672
670
|
owner: {
|
|
673
671
|
type: "project";
|
|
674
672
|
};
|
|
673
|
+
updatedAt: string;
|
|
674
|
+
connectorId: string;
|
|
675
675
|
slot: string;
|
|
676
676
|
waitingFor: "provider_authorization";
|
|
677
677
|
} | {
|
|
@@ -679,22 +679,22 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
679
679
|
id: string;
|
|
680
680
|
kind: "connect" | "reauthorize";
|
|
681
681
|
createdAt: string;
|
|
682
|
-
updatedAt: string;
|
|
683
|
-
connectorId: string;
|
|
684
682
|
owner: {
|
|
685
683
|
type: "project";
|
|
686
684
|
};
|
|
685
|
+
updatedAt: string;
|
|
686
|
+
connectorId: string;
|
|
687
687
|
slot: string;
|
|
688
688
|
} | {
|
|
689
689
|
status: "waiting";
|
|
690
690
|
id: string;
|
|
691
691
|
kind: "connect" | "reauthorize";
|
|
692
692
|
createdAt: string;
|
|
693
|
-
updatedAt: string;
|
|
694
|
-
connectorId: string;
|
|
695
693
|
owner: {
|
|
696
694
|
type: "project";
|
|
697
695
|
};
|
|
696
|
+
updatedAt: string;
|
|
697
|
+
connectorId: string;
|
|
698
698
|
slot: string;
|
|
699
699
|
waitingFor: "account_selection";
|
|
700
700
|
accounts: {
|
|
@@ -709,19 +709,17 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
709
709
|
kind: "connect" | "reauthorize";
|
|
710
710
|
finishedAt: string;
|
|
711
711
|
createdAt: string;
|
|
712
|
-
updatedAt: string;
|
|
713
|
-
connectorId: string;
|
|
714
712
|
owner: {
|
|
715
713
|
type: "project";
|
|
716
714
|
};
|
|
717
|
-
|
|
715
|
+
updatedAt: string;
|
|
718
716
|
connections: {
|
|
719
717
|
status: "connected" | "needs_reauthorization" | "disconnected";
|
|
720
718
|
id: string;
|
|
721
|
-
connectorId: string;
|
|
722
719
|
owner: {
|
|
723
720
|
type: "project";
|
|
724
721
|
};
|
|
722
|
+
connectorId: string;
|
|
725
723
|
slot: string;
|
|
726
724
|
account: {
|
|
727
725
|
id: string;
|
|
@@ -730,6 +728,8 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
730
728
|
avatarUrl?: string | undefined;
|
|
731
729
|
};
|
|
732
730
|
}[];
|
|
731
|
+
connectorId: string;
|
|
732
|
+
slot: string;
|
|
733
733
|
} | {
|
|
734
734
|
error: import("@sixb/core/storage").ConnectorConnectionRunFailure;
|
|
735
735
|
status: "failed";
|
|
@@ -737,23 +737,23 @@ export declare function registerConnectorConnectionRunRoutes(app: Elysia, host:
|
|
|
737
737
|
kind: "connect" | "reauthorize";
|
|
738
738
|
finishedAt: string;
|
|
739
739
|
createdAt: string;
|
|
740
|
-
updatedAt: string;
|
|
741
|
-
connectorId: string;
|
|
742
740
|
owner: {
|
|
743
741
|
type: "project";
|
|
744
742
|
};
|
|
743
|
+
updatedAt: string;
|
|
744
|
+
connectorId: string;
|
|
745
745
|
slot: string;
|
|
746
746
|
} | {
|
|
747
|
-
status: "
|
|
747
|
+
status: "cancelled" | "expired";
|
|
748
748
|
id: string;
|
|
749
749
|
kind: "connect" | "reauthorize";
|
|
750
750
|
finishedAt: string;
|
|
751
751
|
createdAt: string;
|
|
752
|
-
updatedAt: string;
|
|
753
|
-
connectorId: string;
|
|
754
752
|
owner: {
|
|
755
753
|
type: "project";
|
|
756
754
|
};
|
|
755
|
+
updatedAt: string;
|
|
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;
|
|
@@ -26,6 +26,7 @@ export declare function registerConnectorRoutes(app: Elysia, host: SixbHostView)
|
|
|
26
26
|
response: {
|
|
27
27
|
200: {
|
|
28
28
|
id: string;
|
|
29
|
+
type: string;
|
|
29
30
|
webhooks: {
|
|
30
31
|
id: string;
|
|
31
32
|
method: "POST";
|
|
@@ -34,7 +35,6 @@ export declare function registerConnectorRoutes(app: Elysia, host: SixbHostView)
|
|
|
34
35
|
hasVerify: boolean;
|
|
35
36
|
hasIdempotency: boolean;
|
|
36
37
|
}[];
|
|
37
|
-
type: string;
|
|
38
38
|
connection: {
|
|
39
39
|
authentication: "oauth2";
|
|
40
40
|
} | null;
|
|
@@ -67,6 +67,7 @@ export declare function registerConnectorRoutes(app: Elysia, host: SixbHostView)
|
|
|
67
67
|
response: {
|
|
68
68
|
200: {
|
|
69
69
|
id: string;
|
|
70
|
+
type: string;
|
|
70
71
|
webhooks: {
|
|
71
72
|
id: string;
|
|
72
73
|
method: "POST";
|
|
@@ -75,7 +76,6 @@ export declare function registerConnectorRoutes(app: Elysia, host: SixbHostView)
|
|
|
75
76
|
hasVerify: boolean;
|
|
76
77
|
hasIdempotency: boolean;
|
|
77
78
|
}[];
|
|
78
|
-
type: string;
|
|
79
79
|
connection: {
|
|
80
80
|
authentication: "oauth2";
|
|
81
81
|
} | null;
|