@sixb/server 0.1.1 → 0.1.3
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 +3 -3
- package/dist/auth/application-access.d.ts +2 -2
- package/dist/auth/application-access.d.ts.map +1 -1
- package/dist/auth/connector-callback-cookie.d.ts +12 -0
- package/dist/auth/connector-callback-cookie.d.ts.map +1 -0
- package/dist/auth/experience.d.ts +33 -0
- package/dist/auth/experience.d.ts.map +1 -0
- package/dist/auth/guard.d.ts +3 -3
- package/dist/auth/guard.d.ts.map +1 -1
- package/dist/auth/public-routes.d.ts.map +1 -1
- package/dist/auth/scope.d.ts +13 -27
- package/dist/auth/scope.d.ts.map +1 -1
- package/dist/auth/session-cookies.d.ts +2 -2
- package/dist/auth/session-cookies.d.ts.map +1 -1
- package/dist/connectors/http.d.ts +16 -0
- package/dist/connectors/http.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3903 -2760
- package/dist/index.js.map +58 -50
- package/dist/openapi/tags.d.ts +15 -3
- package/dist/openapi/tags.d.ts.map +1 -1
- package/dist/registerRoutes.d.ts +6 -2
- package/dist/registerRoutes.d.ts.map +1 -1
- package/dist/routes/action-runs.d.ts +21 -31
- package/dist/routes/action-runs.d.ts.map +1 -1
- package/dist/routes/actions.d.ts +12 -11
- package/dist/routes/actions.d.ts.map +1 -1
- package/dist/routes/agent-api-gateway.d.ts +2 -2
- package/dist/routes/agent-api-gateway.d.ts.map +1 -1
- package/dist/routes/agents.d.ts +230 -159
- package/dist/routes/agents.d.ts.map +1 -1
- package/dist/routes/ai-accounting.d.ts +31 -0
- package/dist/routes/ai-accounting.d.ts.map +1 -0
- package/dist/routes/auth.d.ts +149 -92
- package/dist/routes/auth.d.ts.map +1 -1
- package/dist/routes/connector-connection-runs.d.ts +794 -0
- package/dist/routes/connector-connection-runs.d.ts.map +1 -0
- package/dist/routes/connector-connections.d.ts +219 -0
- package/dist/routes/connector-connections.d.ts.map +1 -0
- package/dist/routes/connectors.d.ts +10 -4
- package/dist/routes/connectors.d.ts.map +1 -1
- package/dist/routes/datasets.d.ts +16 -12
- package/dist/routes/datasets.d.ts.map +1 -1
- package/dist/routes/events.d.ts +9 -9
- package/dist/routes/events.d.ts.map +1 -1
- package/dist/routes/files.d.ts +19 -18
- package/dist/routes/files.d.ts.map +1 -1
- package/dist/routes/links.d.ts +11 -11
- package/dist/routes/links.d.ts.map +1 -1
- package/dist/routes/logs.d.ts +5 -5
- package/dist/routes/logs.d.ts.map +1 -1
- package/dist/routes/objects.d.ts +37 -37
- package/dist/routes/objects.d.ts.map +1 -1
- package/dist/routes/ontology.d.ts +50 -50
- package/dist/routes/ontology.d.ts.map +1 -1
- package/dist/routes/pipelines.d.ts +28 -38
- package/dist/routes/pipelines.d.ts.map +1 -1
- package/dist/routes/project.d.ts +2 -2
- package/dist/routes/project.d.ts.map +1 -1
- package/dist/routes/projections.d.ts +145 -85
- package/dist/routes/projections.d.ts.map +1 -1
- package/dist/routes/rules.d.ts +6 -6
- package/dist/routes/rules.d.ts.map +1 -1
- package/dist/routes/status.d.ts +2 -2
- package/dist/routes/status.d.ts.map +1 -1
- package/dist/routes/syncs.d.ts +23 -28
- package/dist/routes/syncs.d.ts.map +1 -1
- package/dist/routes/telemetry.d.ts +9 -9
- package/dist/routes/telemetry.d.ts.map +1 -1
- package/dist/routes/webhook-runs.d.ts +9 -9
- package/dist/routes/webhook-runs.d.ts.map +1 -1
- package/dist/routes/webhooks.d.ts +2 -2
- package/dist/routes/webhooks.d.ts.map +1 -1
- package/dist/routes/workflows.d.ts +177 -66
- package/dist/routes/workflows.d.ts.map +1 -1
- package/dist/routes/ws/agents.d.ts +11 -5
- package/dist/routes/ws/agents.d.ts.map +1 -1
- package/dist/routes/ws/events.d.ts +8 -8
- package/dist/routes/ws/events.d.ts.map +1 -1
- package/dist/routes/ws/log-subscription-hub.d.ts +6 -3
- package/dist/routes/ws/log-subscription-hub.d.ts.map +1 -1
- package/dist/routes/ws/logs.d.ts +10 -10
- package/dist/routes/ws/logs.d.ts.map +1 -1
- package/dist/schemas/actions.d.ts +89 -194
- package/dist/schemas/actions.d.ts.map +1 -1
- package/dist/schemas/agents.d.ts +791 -471
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/ai-accounting.d.ts +2393 -0
- package/dist/schemas/ai-accounting.d.ts.map +1 -0
- package/dist/schemas/ai-usage.d.ts +34 -0
- package/dist/schemas/ai-usage.d.ts.map +1 -0
- package/dist/schemas/auth.d.ts +102 -102
- package/dist/schemas/common.d.ts +37 -0
- package/dist/schemas/common.d.ts.map +1 -1
- package/dist/schemas/connectors.d.ts +713 -2
- package/dist/schemas/connectors.d.ts.map +1 -1
- package/dist/schemas/datasets.d.ts +2 -2
- package/dist/schemas/event-payloads.d.ts +12 -12
- package/dist/schemas/events.d.ts +40 -40
- package/dist/schemas/links.d.ts +2 -2
- package/dist/schemas/logs.d.ts +22 -22
- package/dist/schemas/objects.d.ts +10 -10
- package/dist/schemas/ontology.d.ts +118 -118
- package/dist/schemas/pipelines.d.ts +89 -184
- package/dist/schemas/pipelines.d.ts.map +1 -1
- package/dist/schemas/projections.d.ts +1030 -563
- package/dist/schemas/projections.d.ts.map +1 -1
- package/dist/schemas/rules.d.ts +6 -6
- package/dist/schemas/syncs.d.ts +65 -108
- package/dist/schemas/syncs.d.ts.map +1 -1
- package/dist/schemas/webhook-runs.d.ts +41 -41
- package/dist/schemas/webhook-runs.d.ts.map +1 -1
- package/dist/schemas/workflows.d.ts +1189 -185
- package/dist/schemas/workflows.d.ts.map +1 -1
- package/dist/server.d.ts +11 -6
- package/dist/server.d.ts.map +1 -1
- package/dist/utils/http.d.ts +2 -0
- package/dist/utils/http.d.ts.map +1 -1
- package/dist/utils/ws.d.ts +4 -3
- package/dist/utils/ws.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/auth/access-token-boundary.ts +4 -4
- package/src/auth/application-access.ts +8 -9
- package/src/auth/connector-callback-cookie.ts +95 -0
- package/src/auth/experience.ts +190 -0
- package/src/auth/guard.ts +11 -11
- package/src/auth/public-routes.ts +20 -0
- package/src/auth/scope.ts +26 -36
- package/src/auth/session-cookies.ts +3 -3
- package/src/connectors/http.ts +110 -0
- package/src/index.ts +1 -0
- package/src/openapi/tags.ts +13 -1
- package/src/registerRoutes.ts +36 -23
- package/src/routes/action-runs.ts +39 -39
- package/src/routes/actions.ts +7 -13
- package/src/routes/agent-api-gateway.ts +41 -38
- package/src/routes/agents.ts +90 -200
- package/src/routes/ai-accounting.ts +166 -0
- package/src/routes/auth.ts +274 -122
- package/src/routes/connector-connection-runs.ts +346 -0
- package/src/routes/connector-connections.ts +135 -0
- package/src/routes/connectors.ts +24 -12
- package/src/routes/datasets.ts +55 -54
- package/src/routes/events.ts +5 -5
- package/src/routes/files.ts +22 -30
- package/src/routes/links.ts +31 -35
- package/src/routes/logs.ts +6 -11
- package/src/routes/objects.ts +51 -114
- package/src/routes/ontology.ts +27 -38
- package/src/routes/pipelines.ts +28 -62
- package/src/routes/project.ts +3 -3
- package/src/routes/projections.ts +44 -42
- package/src/routes/rules.ts +11 -25
- package/src/routes/status.ts +5 -5
- package/src/routes/syncs.ts +19 -45
- package/src/routes/telemetry.ts +18 -29
- package/src/routes/webhook-runs.ts +5 -5
- package/src/routes/webhooks.ts +259 -341
- package/src/routes/workflows.ts +242 -248
- package/src/routes/ws/agents.ts +196 -66
- package/src/routes/ws/events.ts +11 -10
- package/src/routes/ws/log-subscription-hub.ts +6 -12
- package/src/routes/ws/logs.ts +13 -5
- package/src/schemas/actions.ts +58 -25
- package/src/schemas/agents.ts +23 -23
- package/src/schemas/ai-accounting.ts +182 -0
- package/src/schemas/ai-usage.ts +16 -0
- package/src/schemas/common.ts +24 -0
- package/src/schemas/connectors.ts +164 -0
- package/src/schemas/pipelines.ts +23 -15
- package/src/schemas/projections.ts +23 -3
- package/src/schemas/syncs.ts +13 -8
- package/src/schemas/webhook-runs.ts +10 -5
- package/src/schemas/workflows.ts +23 -8
- package/src/server.ts +75 -26
- package/src/utils/http.ts +34 -6
- package/src/utils/ws.ts +10 -5
package/dist/routes/auth.d.ts
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SixbHostView } from "@sixb/core";
|
|
2
2
|
import { type Elysia } from "elysia";
|
|
3
3
|
import { type AuthInvitationDestinationOptions, type AuthInvitationRedirectContext, type AuthInvitationRedirectInput, type ResolveAuthRedirectContext, type ResolveRequestAuthContext } from "../auth/browser-origin";
|
|
4
|
+
import { type SixbAuthExperienceOptions } from "../auth/experience";
|
|
4
5
|
export interface AuthRoutesOptions {
|
|
5
6
|
readonly resolveAuthContext: ResolveRequestAuthContext;
|
|
6
7
|
readonly resolveAuthRedirectContext: ResolveAuthRedirectContext;
|
|
7
8
|
readonly getInvitationDestinationOptions: (request: Request) => AuthInvitationDestinationOptions;
|
|
8
9
|
readonly resolveAuthRequestOrigin: (request: Request) => string;
|
|
9
10
|
readonly resolveInvitationRedirectContext: (request: Request, input: AuthInvitationRedirectInput) => AuthInvitationRedirectContext;
|
|
11
|
+
readonly authExperience?: SixbAuthExperienceOptions;
|
|
10
12
|
}
|
|
11
|
-
export declare function registerAuthRoutes(app: Elysia,
|
|
13
|
+
export declare function registerAuthRoutes(app: Elysia, host: SixbHostView, options: AuthRoutesOptions): Elysia<"", {
|
|
12
14
|
decorator: {};
|
|
13
15
|
store: {};
|
|
14
16
|
derive: {};
|
|
@@ -24,6 +26,60 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
24
26
|
parser: {};
|
|
25
27
|
response: {};
|
|
26
28
|
}, {
|
|
29
|
+
auth: {
|
|
30
|
+
assets: {
|
|
31
|
+
"*": {
|
|
32
|
+
get: {
|
|
33
|
+
body: unknown;
|
|
34
|
+
params: {
|
|
35
|
+
"*": string;
|
|
36
|
+
} & {};
|
|
37
|
+
query: unknown;
|
|
38
|
+
headers: unknown;
|
|
39
|
+
response: {
|
|
40
|
+
200: Response;
|
|
41
|
+
422: {
|
|
42
|
+
type: "validation";
|
|
43
|
+
on: string;
|
|
44
|
+
summary?: string;
|
|
45
|
+
message?: string;
|
|
46
|
+
found?: unknown;
|
|
47
|
+
property?: string;
|
|
48
|
+
expected?: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
} & {
|
|
56
|
+
auth: {
|
|
57
|
+
assets: {
|
|
58
|
+
"*": {
|
|
59
|
+
head: {
|
|
60
|
+
body: unknown;
|
|
61
|
+
params: {
|
|
62
|
+
"*": string;
|
|
63
|
+
} & {};
|
|
64
|
+
query: unknown;
|
|
65
|
+
headers: unknown;
|
|
66
|
+
response: {
|
|
67
|
+
200: Response;
|
|
68
|
+
422: {
|
|
69
|
+
type: "validation";
|
|
70
|
+
on: string;
|
|
71
|
+
summary?: string;
|
|
72
|
+
message?: string;
|
|
73
|
+
found?: unknown;
|
|
74
|
+
property?: string;
|
|
75
|
+
expected?: string;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
} & {
|
|
27
83
|
api: {
|
|
28
84
|
auth: {
|
|
29
85
|
session: {
|
|
@@ -45,8 +101,8 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
45
101
|
id: string;
|
|
46
102
|
email: string;
|
|
47
103
|
groupIds: string[];
|
|
48
|
-
displayName?: string | undefined;
|
|
49
104
|
avatarUrl?: string | undefined;
|
|
105
|
+
displayName?: string | undefined;
|
|
50
106
|
};
|
|
51
107
|
authenticated: true;
|
|
52
108
|
applicationAccess: {
|
|
@@ -110,8 +166,8 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
110
166
|
response: {
|
|
111
167
|
200: {
|
|
112
168
|
sessions: {
|
|
113
|
-
audience: "atlas" | "app";
|
|
114
169
|
id: string;
|
|
170
|
+
audience: "atlas" | "app";
|
|
115
171
|
expiresAt: string;
|
|
116
172
|
createdAt: string;
|
|
117
173
|
current: boolean;
|
|
@@ -154,13 +210,13 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
154
210
|
200: {
|
|
155
211
|
success: boolean;
|
|
156
212
|
};
|
|
157
|
-
|
|
213
|
+
404: {
|
|
158
214
|
error: string;
|
|
159
215
|
};
|
|
160
|
-
|
|
216
|
+
401: {
|
|
161
217
|
error: string;
|
|
162
218
|
};
|
|
163
|
-
|
|
219
|
+
403: {
|
|
164
220
|
error: string;
|
|
165
221
|
};
|
|
166
222
|
422: {
|
|
@@ -233,6 +289,9 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
233
289
|
401: {
|
|
234
290
|
error: string;
|
|
235
291
|
};
|
|
292
|
+
500: {
|
|
293
|
+
error: string;
|
|
294
|
+
};
|
|
236
295
|
422: {
|
|
237
296
|
type: "validation";
|
|
238
297
|
on: string;
|
|
@@ -242,9 +301,6 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
242
301
|
property?: string;
|
|
243
302
|
expected?: string;
|
|
244
303
|
};
|
|
245
|
-
500: {
|
|
246
|
-
error: string;
|
|
247
|
-
};
|
|
248
304
|
};
|
|
249
305
|
};
|
|
250
306
|
};
|
|
@@ -263,9 +319,9 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
263
319
|
200: {
|
|
264
320
|
accessTokens: {
|
|
265
321
|
status: "expired" | "active" | "revoked";
|
|
322
|
+
id: string;
|
|
266
323
|
kind: "serviceAccount" | "personal";
|
|
267
324
|
name: string;
|
|
268
|
-
id: string;
|
|
269
325
|
expiresAt: string;
|
|
270
326
|
createdAt: string;
|
|
271
327
|
subjectType: "user" | "serviceAccount";
|
|
@@ -281,6 +337,9 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
281
337
|
401: {
|
|
282
338
|
error: string;
|
|
283
339
|
};
|
|
340
|
+
500: {
|
|
341
|
+
error: string;
|
|
342
|
+
};
|
|
284
343
|
422: {
|
|
285
344
|
type: "validation";
|
|
286
345
|
on: string;
|
|
@@ -290,9 +349,6 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
290
349
|
property?: string;
|
|
291
350
|
expected?: string;
|
|
292
351
|
};
|
|
293
|
-
500: {
|
|
294
|
-
error: string;
|
|
295
|
-
};
|
|
296
352
|
};
|
|
297
353
|
};
|
|
298
354
|
};
|
|
@@ -322,12 +378,15 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
322
378
|
400: {
|
|
323
379
|
error: string;
|
|
324
380
|
};
|
|
381
|
+
500: {
|
|
382
|
+
error: string;
|
|
383
|
+
};
|
|
325
384
|
201: {
|
|
326
385
|
accessToken: {
|
|
327
386
|
status: "expired" | "active" | "revoked";
|
|
387
|
+
id: string;
|
|
328
388
|
kind: "serviceAccount" | "personal";
|
|
329
389
|
name: string;
|
|
330
|
-
id: string;
|
|
331
390
|
expiresAt: string;
|
|
332
391
|
createdAt: string;
|
|
333
392
|
subjectType: "user" | "serviceAccount";
|
|
@@ -350,9 +409,6 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
350
409
|
property?: string;
|
|
351
410
|
expected?: string;
|
|
352
411
|
};
|
|
353
|
-
500: {
|
|
354
|
-
error: string;
|
|
355
|
-
};
|
|
356
412
|
};
|
|
357
413
|
};
|
|
358
414
|
};
|
|
@@ -375,9 +431,9 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
375
431
|
200: {
|
|
376
432
|
accessToken: {
|
|
377
433
|
status: "expired" | "active" | "revoked";
|
|
434
|
+
id: string;
|
|
378
435
|
kind: "serviceAccount" | "personal";
|
|
379
436
|
name: string;
|
|
380
|
-
id: string;
|
|
381
437
|
expiresAt: string;
|
|
382
438
|
createdAt: string;
|
|
383
439
|
subjectType: "user" | "serviceAccount";
|
|
@@ -390,13 +446,16 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
390
446
|
lastUsedIpAddress?: string | undefined;
|
|
391
447
|
};
|
|
392
448
|
};
|
|
449
|
+
404: {
|
|
450
|
+
error: string;
|
|
451
|
+
};
|
|
393
452
|
401: {
|
|
394
453
|
error: string;
|
|
395
454
|
};
|
|
396
455
|
403: {
|
|
397
456
|
error: string;
|
|
398
457
|
};
|
|
399
|
-
|
|
458
|
+
500: {
|
|
400
459
|
error: string;
|
|
401
460
|
};
|
|
402
461
|
422: {
|
|
@@ -408,9 +467,6 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
408
467
|
property?: string;
|
|
409
468
|
expected?: string;
|
|
410
469
|
};
|
|
411
|
-
500: {
|
|
412
|
-
error: string;
|
|
413
|
-
};
|
|
414
470
|
};
|
|
415
471
|
};
|
|
416
472
|
};
|
|
@@ -431,8 +487,8 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
431
487
|
200: {
|
|
432
488
|
serviceAccounts: {
|
|
433
489
|
status: "active" | "suspended";
|
|
434
|
-
name: string;
|
|
435
490
|
id: string;
|
|
491
|
+
name: string;
|
|
436
492
|
groupIds: string[];
|
|
437
493
|
createdAt: string;
|
|
438
494
|
updatedAt: string;
|
|
@@ -445,6 +501,9 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
445
501
|
403: {
|
|
446
502
|
error: string;
|
|
447
503
|
};
|
|
504
|
+
500: {
|
|
505
|
+
error: string;
|
|
506
|
+
};
|
|
448
507
|
422: {
|
|
449
508
|
type: "validation";
|
|
450
509
|
on: string;
|
|
@@ -454,9 +513,6 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
454
513
|
property?: string;
|
|
455
514
|
expected?: string;
|
|
456
515
|
};
|
|
457
|
-
500: {
|
|
458
|
-
error: string;
|
|
459
|
-
};
|
|
460
516
|
};
|
|
461
517
|
};
|
|
462
518
|
};
|
|
@@ -469,8 +525,8 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
469
525
|
post: {
|
|
470
526
|
body: {
|
|
471
527
|
name: string;
|
|
472
|
-
description?: string | undefined;
|
|
473
528
|
id?: string | undefined;
|
|
529
|
+
description?: string | undefined;
|
|
474
530
|
groupIds?: string[] | undefined;
|
|
475
531
|
};
|
|
476
532
|
params: {};
|
|
@@ -487,11 +543,14 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
487
543
|
400: {
|
|
488
544
|
error: string;
|
|
489
545
|
};
|
|
546
|
+
500: {
|
|
547
|
+
error: string;
|
|
548
|
+
};
|
|
490
549
|
201: {
|
|
491
550
|
serviceAccount: {
|
|
492
551
|
status: "active" | "suspended";
|
|
493
|
-
name: string;
|
|
494
552
|
id: string;
|
|
553
|
+
name: string;
|
|
495
554
|
groupIds: string[];
|
|
496
555
|
createdAt: string;
|
|
497
556
|
updatedAt: string;
|
|
@@ -507,9 +566,6 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
507
566
|
property?: string;
|
|
508
567
|
expected?: string;
|
|
509
568
|
};
|
|
510
|
-
500: {
|
|
511
|
-
error: string;
|
|
512
|
-
};
|
|
513
569
|
};
|
|
514
570
|
};
|
|
515
571
|
};
|
|
@@ -532,21 +588,24 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
532
588
|
200: {
|
|
533
589
|
serviceAccount: {
|
|
534
590
|
status: "active" | "suspended";
|
|
535
|
-
name: string;
|
|
536
591
|
id: string;
|
|
592
|
+
name: string;
|
|
537
593
|
groupIds: string[];
|
|
538
594
|
createdAt: string;
|
|
539
595
|
updatedAt: string;
|
|
540
596
|
description?: string | undefined;
|
|
541
597
|
};
|
|
542
598
|
};
|
|
599
|
+
404: {
|
|
600
|
+
error: string;
|
|
601
|
+
};
|
|
543
602
|
401: {
|
|
544
603
|
error: string;
|
|
545
604
|
};
|
|
546
605
|
403: {
|
|
547
606
|
error: string;
|
|
548
607
|
};
|
|
549
|
-
|
|
608
|
+
500: {
|
|
550
609
|
error: string;
|
|
551
610
|
};
|
|
552
611
|
422: {
|
|
@@ -558,9 +617,6 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
558
617
|
property?: string;
|
|
559
618
|
expected?: string;
|
|
560
619
|
};
|
|
561
|
-
500: {
|
|
562
|
-
error: string;
|
|
563
|
-
};
|
|
564
620
|
};
|
|
565
621
|
};
|
|
566
622
|
};
|
|
@@ -585,9 +641,9 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
585
641
|
200: {
|
|
586
642
|
accessTokens: {
|
|
587
643
|
status: "expired" | "active" | "revoked";
|
|
644
|
+
id: string;
|
|
588
645
|
kind: "serviceAccount" | "personal";
|
|
589
646
|
name: string;
|
|
590
|
-
id: string;
|
|
591
647
|
expiresAt: string;
|
|
592
648
|
createdAt: string;
|
|
593
649
|
subjectType: "user" | "serviceAccount";
|
|
@@ -600,13 +656,16 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
600
656
|
lastUsedIpAddress?: string | undefined;
|
|
601
657
|
}[];
|
|
602
658
|
};
|
|
659
|
+
404: {
|
|
660
|
+
error: string;
|
|
661
|
+
};
|
|
603
662
|
401: {
|
|
604
663
|
error: string;
|
|
605
664
|
};
|
|
606
665
|
403: {
|
|
607
666
|
error: string;
|
|
608
667
|
};
|
|
609
|
-
|
|
668
|
+
500: {
|
|
610
669
|
error: string;
|
|
611
670
|
};
|
|
612
671
|
422: {
|
|
@@ -618,9 +677,6 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
618
677
|
property?: string;
|
|
619
678
|
expected?: string;
|
|
620
679
|
};
|
|
621
|
-
500: {
|
|
622
|
-
error: string;
|
|
623
|
-
};
|
|
624
680
|
};
|
|
625
681
|
};
|
|
626
682
|
};
|
|
@@ -647,6 +703,9 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
647
703
|
headers: unknown;
|
|
648
704
|
response: {
|
|
649
705
|
200: Response;
|
|
706
|
+
404: {
|
|
707
|
+
error: string;
|
|
708
|
+
};
|
|
650
709
|
401: {
|
|
651
710
|
error: string;
|
|
652
711
|
};
|
|
@@ -656,15 +715,15 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
656
715
|
400: {
|
|
657
716
|
error: string;
|
|
658
717
|
};
|
|
659
|
-
|
|
718
|
+
500: {
|
|
660
719
|
error: string;
|
|
661
720
|
};
|
|
662
721
|
201: {
|
|
663
722
|
accessToken: {
|
|
664
723
|
status: "expired" | "active" | "revoked";
|
|
724
|
+
id: string;
|
|
665
725
|
kind: "serviceAccount" | "personal";
|
|
666
726
|
name: string;
|
|
667
|
-
id: string;
|
|
668
727
|
expiresAt: string;
|
|
669
728
|
createdAt: string;
|
|
670
729
|
subjectType: "user" | "serviceAccount";
|
|
@@ -687,9 +746,6 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
687
746
|
property?: string;
|
|
688
747
|
expected?: string;
|
|
689
748
|
};
|
|
690
|
-
500: {
|
|
691
|
-
error: string;
|
|
692
|
-
};
|
|
693
749
|
};
|
|
694
750
|
};
|
|
695
751
|
};
|
|
@@ -717,9 +773,9 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
717
773
|
200: {
|
|
718
774
|
accessToken: {
|
|
719
775
|
status: "expired" | "active" | "revoked";
|
|
776
|
+
id: string;
|
|
720
777
|
kind: "serviceAccount" | "personal";
|
|
721
778
|
name: string;
|
|
722
|
-
id: string;
|
|
723
779
|
expiresAt: string;
|
|
724
780
|
createdAt: string;
|
|
725
781
|
subjectType: "user" | "serviceAccount";
|
|
@@ -732,13 +788,16 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
732
788
|
lastUsedIpAddress?: string | undefined;
|
|
733
789
|
};
|
|
734
790
|
};
|
|
791
|
+
404: {
|
|
792
|
+
error: string;
|
|
793
|
+
};
|
|
735
794
|
401: {
|
|
736
795
|
error: string;
|
|
737
796
|
};
|
|
738
797
|
403: {
|
|
739
798
|
error: string;
|
|
740
799
|
};
|
|
741
|
-
|
|
800
|
+
500: {
|
|
742
801
|
error: string;
|
|
743
802
|
};
|
|
744
803
|
422: {
|
|
@@ -750,9 +809,6 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
750
809
|
property?: string;
|
|
751
810
|
expected?: string;
|
|
752
811
|
};
|
|
753
|
-
500: {
|
|
754
|
-
error: string;
|
|
755
|
-
};
|
|
756
812
|
};
|
|
757
813
|
};
|
|
758
814
|
};
|
|
@@ -779,6 +835,9 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
779
835
|
headers: unknown;
|
|
780
836
|
response: {
|
|
781
837
|
200: Response;
|
|
838
|
+
404: {
|
|
839
|
+
error: string;
|
|
840
|
+
};
|
|
782
841
|
401: {
|
|
783
842
|
error: string;
|
|
784
843
|
};
|
|
@@ -788,7 +847,7 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
788
847
|
400: {
|
|
789
848
|
error: string;
|
|
790
849
|
};
|
|
791
|
-
|
|
850
|
+
500: {
|
|
792
851
|
error: string;
|
|
793
852
|
};
|
|
794
853
|
201: {
|
|
@@ -804,7 +863,7 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
804
863
|
revokedAt?: string | undefined;
|
|
805
864
|
};
|
|
806
865
|
delivery: {
|
|
807
|
-
status: "
|
|
866
|
+
status: "sent" | "skipped" | "rate_limited" | "not_supported";
|
|
808
867
|
};
|
|
809
868
|
};
|
|
810
869
|
422: {
|
|
@@ -819,9 +878,6 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
819
878
|
429: {
|
|
820
879
|
error: string;
|
|
821
880
|
};
|
|
822
|
-
500: {
|
|
823
|
-
error: string;
|
|
824
|
-
};
|
|
825
881
|
};
|
|
826
882
|
};
|
|
827
883
|
};
|
|
@@ -842,8 +898,8 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
842
898
|
createInvitation: {
|
|
843
899
|
state: "enabled";
|
|
844
900
|
} | {
|
|
845
|
-
state: "disabled";
|
|
846
901
|
reason: "missing_membership_policy" | "invitation_delivery_not_supported";
|
|
902
|
+
state: "disabled";
|
|
847
903
|
};
|
|
848
904
|
};
|
|
849
905
|
groups: {
|
|
@@ -861,6 +917,9 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
861
917
|
401: {
|
|
862
918
|
error: string;
|
|
863
919
|
};
|
|
920
|
+
500: {
|
|
921
|
+
error: string;
|
|
922
|
+
};
|
|
864
923
|
422: {
|
|
865
924
|
type: "validation";
|
|
866
925
|
on: string;
|
|
@@ -870,9 +929,6 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
870
929
|
property?: string;
|
|
871
930
|
expected?: string;
|
|
872
931
|
};
|
|
873
|
-
500: {
|
|
874
|
-
error: string;
|
|
875
|
-
};
|
|
876
932
|
};
|
|
877
933
|
};
|
|
878
934
|
};
|
|
@@ -887,10 +943,10 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
887
943
|
params: {};
|
|
888
944
|
query: {
|
|
889
945
|
status?: "pending" | "accepted" | "revoked" | undefined;
|
|
946
|
+
email?: string | undefined;
|
|
890
947
|
limit?: string | undefined;
|
|
891
948
|
offset?: string | undefined;
|
|
892
949
|
order?: "asc" | "desc" | undefined;
|
|
893
|
-
email?: string | undefined;
|
|
894
950
|
};
|
|
895
951
|
headers: unknown;
|
|
896
952
|
response: {
|
|
@@ -909,6 +965,9 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
909
965
|
revokedAt?: string | undefined;
|
|
910
966
|
}[];
|
|
911
967
|
};
|
|
968
|
+
404: {
|
|
969
|
+
error: string;
|
|
970
|
+
};
|
|
912
971
|
401: {
|
|
913
972
|
error: string;
|
|
914
973
|
};
|
|
@@ -918,7 +977,7 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
918
977
|
400: {
|
|
919
978
|
error: string;
|
|
920
979
|
};
|
|
921
|
-
|
|
980
|
+
500: {
|
|
922
981
|
error: string;
|
|
923
982
|
};
|
|
924
983
|
422: {
|
|
@@ -930,9 +989,6 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
930
989
|
property?: string;
|
|
931
990
|
expected?: string;
|
|
932
991
|
};
|
|
933
|
-
500: {
|
|
934
|
-
error: string;
|
|
935
|
-
};
|
|
936
992
|
};
|
|
937
993
|
};
|
|
938
994
|
};
|
|
@@ -965,6 +1021,9 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
965
1021
|
revokedAt?: string | undefined;
|
|
966
1022
|
};
|
|
967
1023
|
};
|
|
1024
|
+
404: {
|
|
1025
|
+
error: string;
|
|
1026
|
+
};
|
|
968
1027
|
401: {
|
|
969
1028
|
error: string;
|
|
970
1029
|
};
|
|
@@ -974,7 +1033,7 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
974
1033
|
400: {
|
|
975
1034
|
error: string;
|
|
976
1035
|
};
|
|
977
|
-
|
|
1036
|
+
500: {
|
|
978
1037
|
error: string;
|
|
979
1038
|
};
|
|
980
1039
|
422: {
|
|
@@ -986,9 +1045,6 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
986
1045
|
property?: string;
|
|
987
1046
|
expected?: string;
|
|
988
1047
|
};
|
|
989
|
-
500: {
|
|
990
|
-
error: string;
|
|
991
|
-
};
|
|
992
1048
|
};
|
|
993
1049
|
};
|
|
994
1050
|
};
|
|
@@ -1021,6 +1077,9 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
1021
1077
|
401: {
|
|
1022
1078
|
error: string;
|
|
1023
1079
|
};
|
|
1080
|
+
500: {
|
|
1081
|
+
error: string;
|
|
1082
|
+
};
|
|
1024
1083
|
422: {
|
|
1025
1084
|
type: "validation";
|
|
1026
1085
|
on: string;
|
|
@@ -1030,9 +1089,6 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
1030
1089
|
property?: string;
|
|
1031
1090
|
expected?: string;
|
|
1032
1091
|
};
|
|
1033
|
-
500: {
|
|
1034
|
-
error: string;
|
|
1035
|
-
};
|
|
1036
1092
|
};
|
|
1037
1093
|
};
|
|
1038
1094
|
};
|
|
@@ -1062,8 +1118,8 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
1062
1118
|
email: string;
|
|
1063
1119
|
createdAt: string;
|
|
1064
1120
|
updatedAt: string;
|
|
1065
|
-
displayName?: string | undefined;
|
|
1066
1121
|
avatarUrl?: string | undefined;
|
|
1122
|
+
displayName?: string | undefined;
|
|
1067
1123
|
};
|
|
1068
1124
|
groupIds: string[];
|
|
1069
1125
|
capabilities: {
|
|
@@ -1079,6 +1135,9 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
1079
1135
|
400: {
|
|
1080
1136
|
error: string;
|
|
1081
1137
|
};
|
|
1138
|
+
500: {
|
|
1139
|
+
error: string;
|
|
1140
|
+
};
|
|
1082
1141
|
422: {
|
|
1083
1142
|
type: "validation";
|
|
1084
1143
|
on: string;
|
|
@@ -1088,9 +1147,6 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
1088
1147
|
property?: string;
|
|
1089
1148
|
expected?: string;
|
|
1090
1149
|
};
|
|
1091
|
-
500: {
|
|
1092
|
-
error: string;
|
|
1093
|
-
};
|
|
1094
1150
|
};
|
|
1095
1151
|
};
|
|
1096
1152
|
};
|
|
@@ -1120,12 +1176,15 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
1120
1176
|
email: string;
|
|
1121
1177
|
createdAt: string;
|
|
1122
1178
|
updatedAt: string;
|
|
1123
|
-
displayName?: string | undefined;
|
|
1124
1179
|
avatarUrl?: string | undefined;
|
|
1180
|
+
displayName?: string | undefined;
|
|
1125
1181
|
};
|
|
1126
1182
|
groupIds: string[];
|
|
1127
1183
|
};
|
|
1128
1184
|
};
|
|
1185
|
+
404: {
|
|
1186
|
+
error: string;
|
|
1187
|
+
};
|
|
1129
1188
|
401: {
|
|
1130
1189
|
error: string;
|
|
1131
1190
|
};
|
|
@@ -1135,7 +1194,7 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
1135
1194
|
400: {
|
|
1136
1195
|
error: string;
|
|
1137
1196
|
};
|
|
1138
|
-
|
|
1197
|
+
500: {
|
|
1139
1198
|
error: string;
|
|
1140
1199
|
};
|
|
1141
1200
|
422: {
|
|
@@ -1147,9 +1206,6 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
1147
1206
|
property?: string;
|
|
1148
1207
|
expected?: string;
|
|
1149
1208
|
};
|
|
1150
|
-
500: {
|
|
1151
|
-
error: string;
|
|
1152
|
-
};
|
|
1153
1209
|
};
|
|
1154
1210
|
};
|
|
1155
1211
|
};
|
|
@@ -1179,19 +1235,22 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
1179
1235
|
email: string;
|
|
1180
1236
|
createdAt: string;
|
|
1181
1237
|
updatedAt: string;
|
|
1182
|
-
displayName?: string | undefined;
|
|
1183
1238
|
avatarUrl?: string | undefined;
|
|
1239
|
+
displayName?: string | undefined;
|
|
1184
1240
|
};
|
|
1185
1241
|
groupIds: string[];
|
|
1186
1242
|
};
|
|
1187
1243
|
};
|
|
1244
|
+
404: {
|
|
1245
|
+
error: string;
|
|
1246
|
+
};
|
|
1188
1247
|
401: {
|
|
1189
1248
|
error: string;
|
|
1190
1249
|
};
|
|
1191
1250
|
403: {
|
|
1192
1251
|
error: string;
|
|
1193
1252
|
};
|
|
1194
|
-
|
|
1253
|
+
500: {
|
|
1195
1254
|
error: string;
|
|
1196
1255
|
};
|
|
1197
1256
|
422: {
|
|
@@ -1203,9 +1262,6 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
1203
1262
|
property?: string;
|
|
1204
1263
|
expected?: string;
|
|
1205
1264
|
};
|
|
1206
|
-
500: {
|
|
1207
|
-
error: string;
|
|
1208
|
-
};
|
|
1209
1265
|
};
|
|
1210
1266
|
};
|
|
1211
1267
|
};
|
|
@@ -1235,19 +1291,22 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
1235
1291
|
email: string;
|
|
1236
1292
|
createdAt: string;
|
|
1237
1293
|
updatedAt: string;
|
|
1238
|
-
displayName?: string | undefined;
|
|
1239
1294
|
avatarUrl?: string | undefined;
|
|
1295
|
+
displayName?: string | undefined;
|
|
1240
1296
|
};
|
|
1241
1297
|
groupIds: string[];
|
|
1242
1298
|
};
|
|
1243
1299
|
};
|
|
1300
|
+
404: {
|
|
1301
|
+
error: string;
|
|
1302
|
+
};
|
|
1244
1303
|
401: {
|
|
1245
1304
|
error: string;
|
|
1246
1305
|
};
|
|
1247
1306
|
403: {
|
|
1248
1307
|
error: string;
|
|
1249
1308
|
};
|
|
1250
|
-
|
|
1309
|
+
500: {
|
|
1251
1310
|
error: string;
|
|
1252
1311
|
};
|
|
1253
1312
|
422: {
|
|
@@ -1259,9 +1318,6 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
1259
1318
|
property?: string;
|
|
1260
1319
|
expected?: string;
|
|
1261
1320
|
};
|
|
1262
|
-
500: {
|
|
1263
|
-
error: string;
|
|
1264
|
-
};
|
|
1265
1321
|
};
|
|
1266
1322
|
};
|
|
1267
1323
|
};
|
|
@@ -1329,6 +1385,7 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
1329
1385
|
callback: {
|
|
1330
1386
|
post: {
|
|
1331
1387
|
body: {
|
|
1388
|
+
audience?: string | undefined;
|
|
1332
1389
|
token?: string | undefined;
|
|
1333
1390
|
magicLinkId?: string | undefined;
|
|
1334
1391
|
};
|