@sixb/server 0.1.1 → 0.1.2
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/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.js +3293 -2704
- package/dist/index.js.map +55 -50
- package/dist/openapi/tags.d.ts +11 -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 +9 -8
- 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 +130 -131
- package/dist/routes/agents.d.ts.map +1 -1
- package/dist/routes/auth.d.ts +84 -84
- 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 +8 -4
- package/dist/routes/datasets.d.ts.map +1 -1
- package/dist/routes/events.d.ts +8 -8
- package/dist/routes/events.d.ts.map +1 -1
- package/dist/routes/files.d.ts +11 -10
- package/dist/routes/files.d.ts.map +1 -1
- package/dist/routes/links.d.ts +2 -2
- 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 +34 -34
- 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 +24 -34
- 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 +131 -83
- 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 +20 -25
- package/dist/routes/syncs.d.ts.map +1 -1
- package/dist/routes/telemetry.d.ts +2 -2
- 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 +74 -48
- 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 +97 -202
- package/dist/schemas/actions.d.ts.map +1 -1
- package/dist/schemas/agents.d.ts +442 -439
- package/dist/schemas/agents.d.ts.map +1 -1
- 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 +142 -142
- 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 +6 -6
- package/dist/schemas/events.d.ts +34 -34
- 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 +95 -190
- package/dist/schemas/pipelines.d.ts.map +1 -1
- package/dist/schemas/projections.d.ts +918 -563
- package/dist/schemas/projections.d.ts.map +1 -1
- package/dist/schemas/rules.d.ts +6 -6
- package/dist/schemas/status.d.ts +2 -2
- 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 +516 -183
- package/dist/schemas/workflows.d.ts.map +1 -1
- package/dist/server.d.ts +6 -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 +4 -4
- 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/guard.ts +11 -11
- package/src/auth/public-routes.ts +13 -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/openapi/tags.ts +9 -1
- package/src/registerRoutes.ts +34 -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 +89 -200
- package/src/routes/auth.ts +87 -91
- 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 +26 -38
- 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 +226 -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 +19 -14
- 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 +17 -3
- package/src/schemas/syncs.ts +13 -8
- package/src/schemas/webhook-runs.ts +10 -5
- package/src/schemas/workflows.ts +16 -6
- package/src/server.ts +65 -26
- package/src/utils/http.ts +34 -6
- package/src/utils/ws.ts +10 -5
package/dist/routes/auth.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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
4
|
export interface AuthRoutesOptions {
|
|
@@ -8,7 +8,7 @@ export interface AuthRoutesOptions {
|
|
|
8
8
|
readonly resolveAuthRequestOrigin: (request: Request) => string;
|
|
9
9
|
readonly resolveInvitationRedirectContext: (request: Request, input: AuthInvitationRedirectInput) => AuthInvitationRedirectContext;
|
|
10
10
|
}
|
|
11
|
-
export declare function registerAuthRoutes(app: Elysia,
|
|
11
|
+
export declare function registerAuthRoutes(app: Elysia, host: SixbHostView, options: AuthRoutesOptions): Elysia<"", {
|
|
12
12
|
decorator: {};
|
|
13
13
|
store: {};
|
|
14
14
|
derive: {};
|
|
@@ -45,8 +45,8 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
45
45
|
id: string;
|
|
46
46
|
email: string;
|
|
47
47
|
groupIds: string[];
|
|
48
|
-
displayName?: string | undefined;
|
|
49
48
|
avatarUrl?: string | undefined;
|
|
49
|
+
displayName?: string | undefined;
|
|
50
50
|
};
|
|
51
51
|
authenticated: true;
|
|
52
52
|
applicationAccess: {
|
|
@@ -110,8 +110,8 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
110
110
|
response: {
|
|
111
111
|
200: {
|
|
112
112
|
sessions: {
|
|
113
|
-
audience: "atlas" | "app";
|
|
114
113
|
id: string;
|
|
114
|
+
audience: "atlas" | "app";
|
|
115
115
|
expiresAt: string;
|
|
116
116
|
createdAt: string;
|
|
117
117
|
current: boolean;
|
|
@@ -233,6 +233,9 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
233
233
|
401: {
|
|
234
234
|
error: string;
|
|
235
235
|
};
|
|
236
|
+
500: {
|
|
237
|
+
error: string;
|
|
238
|
+
};
|
|
236
239
|
422: {
|
|
237
240
|
type: "validation";
|
|
238
241
|
on: string;
|
|
@@ -242,9 +245,6 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
242
245
|
property?: string;
|
|
243
246
|
expected?: string;
|
|
244
247
|
};
|
|
245
|
-
500: {
|
|
246
|
-
error: string;
|
|
247
|
-
};
|
|
248
248
|
};
|
|
249
249
|
};
|
|
250
250
|
};
|
|
@@ -262,10 +262,10 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
262
262
|
response: {
|
|
263
263
|
200: {
|
|
264
264
|
accessTokens: {
|
|
265
|
+
id: string;
|
|
265
266
|
status: "expired" | "active" | "revoked";
|
|
266
267
|
kind: "serviceAccount" | "personal";
|
|
267
268
|
name: string;
|
|
268
|
-
id: string;
|
|
269
269
|
expiresAt: string;
|
|
270
270
|
createdAt: string;
|
|
271
271
|
subjectType: "user" | "serviceAccount";
|
|
@@ -281,6 +281,9 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
281
281
|
401: {
|
|
282
282
|
error: string;
|
|
283
283
|
};
|
|
284
|
+
500: {
|
|
285
|
+
error: string;
|
|
286
|
+
};
|
|
284
287
|
422: {
|
|
285
288
|
type: "validation";
|
|
286
289
|
on: string;
|
|
@@ -290,9 +293,6 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
290
293
|
property?: string;
|
|
291
294
|
expected?: string;
|
|
292
295
|
};
|
|
293
|
-
500: {
|
|
294
|
-
error: string;
|
|
295
|
-
};
|
|
296
296
|
};
|
|
297
297
|
};
|
|
298
298
|
};
|
|
@@ -322,12 +322,15 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
322
322
|
400: {
|
|
323
323
|
error: string;
|
|
324
324
|
};
|
|
325
|
+
500: {
|
|
326
|
+
error: string;
|
|
327
|
+
};
|
|
325
328
|
201: {
|
|
326
329
|
accessToken: {
|
|
330
|
+
id: string;
|
|
327
331
|
status: "expired" | "active" | "revoked";
|
|
328
332
|
kind: "serviceAccount" | "personal";
|
|
329
333
|
name: string;
|
|
330
|
-
id: string;
|
|
331
334
|
expiresAt: string;
|
|
332
335
|
createdAt: string;
|
|
333
336
|
subjectType: "user" | "serviceAccount";
|
|
@@ -350,9 +353,6 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
350
353
|
property?: string;
|
|
351
354
|
expected?: string;
|
|
352
355
|
};
|
|
353
|
-
500: {
|
|
354
|
-
error: string;
|
|
355
|
-
};
|
|
356
356
|
};
|
|
357
357
|
};
|
|
358
358
|
};
|
|
@@ -374,10 +374,10 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
374
374
|
response: {
|
|
375
375
|
200: {
|
|
376
376
|
accessToken: {
|
|
377
|
+
id: string;
|
|
377
378
|
status: "expired" | "active" | "revoked";
|
|
378
379
|
kind: "serviceAccount" | "personal";
|
|
379
380
|
name: string;
|
|
380
|
-
id: string;
|
|
381
381
|
expiresAt: string;
|
|
382
382
|
createdAt: string;
|
|
383
383
|
subjectType: "user" | "serviceAccount";
|
|
@@ -399,6 +399,9 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
399
399
|
404: {
|
|
400
400
|
error: string;
|
|
401
401
|
};
|
|
402
|
+
500: {
|
|
403
|
+
error: string;
|
|
404
|
+
};
|
|
402
405
|
422: {
|
|
403
406
|
type: "validation";
|
|
404
407
|
on: string;
|
|
@@ -408,9 +411,6 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
408
411
|
property?: string;
|
|
409
412
|
expected?: string;
|
|
410
413
|
};
|
|
411
|
-
500: {
|
|
412
|
-
error: string;
|
|
413
|
-
};
|
|
414
414
|
};
|
|
415
415
|
};
|
|
416
416
|
};
|
|
@@ -430,9 +430,9 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
430
430
|
response: {
|
|
431
431
|
200: {
|
|
432
432
|
serviceAccounts: {
|
|
433
|
+
id: string;
|
|
433
434
|
status: "active" | "suspended";
|
|
434
435
|
name: string;
|
|
435
|
-
id: string;
|
|
436
436
|
groupIds: string[];
|
|
437
437
|
createdAt: string;
|
|
438
438
|
updatedAt: string;
|
|
@@ -445,6 +445,9 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
445
445
|
403: {
|
|
446
446
|
error: string;
|
|
447
447
|
};
|
|
448
|
+
500: {
|
|
449
|
+
error: string;
|
|
450
|
+
};
|
|
448
451
|
422: {
|
|
449
452
|
type: "validation";
|
|
450
453
|
on: string;
|
|
@@ -454,9 +457,6 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
454
457
|
property?: string;
|
|
455
458
|
expected?: string;
|
|
456
459
|
};
|
|
457
|
-
500: {
|
|
458
|
-
error: string;
|
|
459
|
-
};
|
|
460
460
|
};
|
|
461
461
|
};
|
|
462
462
|
};
|
|
@@ -469,8 +469,8 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
469
469
|
post: {
|
|
470
470
|
body: {
|
|
471
471
|
name: string;
|
|
472
|
-
description?: string | undefined;
|
|
473
472
|
id?: string | undefined;
|
|
473
|
+
description?: string | undefined;
|
|
474
474
|
groupIds?: string[] | undefined;
|
|
475
475
|
};
|
|
476
476
|
params: {};
|
|
@@ -487,11 +487,14 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
487
487
|
400: {
|
|
488
488
|
error: string;
|
|
489
489
|
};
|
|
490
|
+
500: {
|
|
491
|
+
error: string;
|
|
492
|
+
};
|
|
490
493
|
201: {
|
|
491
494
|
serviceAccount: {
|
|
495
|
+
id: string;
|
|
492
496
|
status: "active" | "suspended";
|
|
493
497
|
name: string;
|
|
494
|
-
id: string;
|
|
495
498
|
groupIds: string[];
|
|
496
499
|
createdAt: string;
|
|
497
500
|
updatedAt: string;
|
|
@@ -507,9 +510,6 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
507
510
|
property?: string;
|
|
508
511
|
expected?: string;
|
|
509
512
|
};
|
|
510
|
-
500: {
|
|
511
|
-
error: string;
|
|
512
|
-
};
|
|
513
513
|
};
|
|
514
514
|
};
|
|
515
515
|
};
|
|
@@ -531,9 +531,9 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
531
531
|
response: {
|
|
532
532
|
200: {
|
|
533
533
|
serviceAccount: {
|
|
534
|
+
id: string;
|
|
534
535
|
status: "active" | "suspended";
|
|
535
536
|
name: string;
|
|
536
|
-
id: string;
|
|
537
537
|
groupIds: string[];
|
|
538
538
|
createdAt: string;
|
|
539
539
|
updatedAt: string;
|
|
@@ -549,6 +549,9 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
549
549
|
404: {
|
|
550
550
|
error: string;
|
|
551
551
|
};
|
|
552
|
+
500: {
|
|
553
|
+
error: string;
|
|
554
|
+
};
|
|
552
555
|
422: {
|
|
553
556
|
type: "validation";
|
|
554
557
|
on: string;
|
|
@@ -558,9 +561,6 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
558
561
|
property?: string;
|
|
559
562
|
expected?: string;
|
|
560
563
|
};
|
|
561
|
-
500: {
|
|
562
|
-
error: string;
|
|
563
|
-
};
|
|
564
564
|
};
|
|
565
565
|
};
|
|
566
566
|
};
|
|
@@ -584,10 +584,10 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
584
584
|
response: {
|
|
585
585
|
200: {
|
|
586
586
|
accessTokens: {
|
|
587
|
+
id: string;
|
|
587
588
|
status: "expired" | "active" | "revoked";
|
|
588
589
|
kind: "serviceAccount" | "personal";
|
|
589
590
|
name: string;
|
|
590
|
-
id: string;
|
|
591
591
|
expiresAt: string;
|
|
592
592
|
createdAt: string;
|
|
593
593
|
subjectType: "user" | "serviceAccount";
|
|
@@ -609,6 +609,9 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
609
609
|
404: {
|
|
610
610
|
error: string;
|
|
611
611
|
};
|
|
612
|
+
500: {
|
|
613
|
+
error: string;
|
|
614
|
+
};
|
|
612
615
|
422: {
|
|
613
616
|
type: "validation";
|
|
614
617
|
on: string;
|
|
@@ -618,9 +621,6 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
618
621
|
property?: string;
|
|
619
622
|
expected?: string;
|
|
620
623
|
};
|
|
621
|
-
500: {
|
|
622
|
-
error: string;
|
|
623
|
-
};
|
|
624
624
|
};
|
|
625
625
|
};
|
|
626
626
|
};
|
|
@@ -659,12 +659,15 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
659
659
|
404: {
|
|
660
660
|
error: string;
|
|
661
661
|
};
|
|
662
|
+
500: {
|
|
663
|
+
error: string;
|
|
664
|
+
};
|
|
662
665
|
201: {
|
|
663
666
|
accessToken: {
|
|
667
|
+
id: string;
|
|
664
668
|
status: "expired" | "active" | "revoked";
|
|
665
669
|
kind: "serviceAccount" | "personal";
|
|
666
670
|
name: string;
|
|
667
|
-
id: string;
|
|
668
671
|
expiresAt: string;
|
|
669
672
|
createdAt: string;
|
|
670
673
|
subjectType: "user" | "serviceAccount";
|
|
@@ -687,9 +690,6 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
687
690
|
property?: string;
|
|
688
691
|
expected?: string;
|
|
689
692
|
};
|
|
690
|
-
500: {
|
|
691
|
-
error: string;
|
|
692
|
-
};
|
|
693
693
|
};
|
|
694
694
|
};
|
|
695
695
|
};
|
|
@@ -716,10 +716,10 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
716
716
|
response: {
|
|
717
717
|
200: {
|
|
718
718
|
accessToken: {
|
|
719
|
+
id: string;
|
|
719
720
|
status: "expired" | "active" | "revoked";
|
|
720
721
|
kind: "serviceAccount" | "personal";
|
|
721
722
|
name: string;
|
|
722
|
-
id: string;
|
|
723
723
|
expiresAt: string;
|
|
724
724
|
createdAt: string;
|
|
725
725
|
subjectType: "user" | "serviceAccount";
|
|
@@ -741,6 +741,9 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
741
741
|
404: {
|
|
742
742
|
error: string;
|
|
743
743
|
};
|
|
744
|
+
500: {
|
|
745
|
+
error: string;
|
|
746
|
+
};
|
|
744
747
|
422: {
|
|
745
748
|
type: "validation";
|
|
746
749
|
on: string;
|
|
@@ -750,9 +753,6 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
750
753
|
property?: string;
|
|
751
754
|
expected?: string;
|
|
752
755
|
};
|
|
753
|
-
500: {
|
|
754
|
-
error: string;
|
|
755
|
-
};
|
|
756
756
|
};
|
|
757
757
|
};
|
|
758
758
|
};
|
|
@@ -791,10 +791,13 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
791
791
|
404: {
|
|
792
792
|
error: string;
|
|
793
793
|
};
|
|
794
|
+
500: {
|
|
795
|
+
error: string;
|
|
796
|
+
};
|
|
794
797
|
201: {
|
|
795
798
|
invitation: {
|
|
796
|
-
status: "pending" | "accepted" | "revoked";
|
|
797
799
|
id: string;
|
|
800
|
+
status: "pending" | "accepted" | "revoked";
|
|
798
801
|
email: string;
|
|
799
802
|
expiresAt: string;
|
|
800
803
|
groupIds: string[];
|
|
@@ -804,7 +807,7 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
804
807
|
revokedAt?: string | undefined;
|
|
805
808
|
};
|
|
806
809
|
delivery: {
|
|
807
|
-
status: "
|
|
810
|
+
status: "sent" | "skipped" | "rate_limited" | "not_supported";
|
|
808
811
|
};
|
|
809
812
|
};
|
|
810
813
|
422: {
|
|
@@ -819,9 +822,6 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
819
822
|
429: {
|
|
820
823
|
error: string;
|
|
821
824
|
};
|
|
822
|
-
500: {
|
|
823
|
-
error: string;
|
|
824
|
-
};
|
|
825
825
|
};
|
|
826
826
|
};
|
|
827
827
|
};
|
|
@@ -861,6 +861,9 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
861
861
|
401: {
|
|
862
862
|
error: string;
|
|
863
863
|
};
|
|
864
|
+
500: {
|
|
865
|
+
error: string;
|
|
866
|
+
};
|
|
864
867
|
422: {
|
|
865
868
|
type: "validation";
|
|
866
869
|
on: string;
|
|
@@ -870,9 +873,6 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
870
873
|
property?: string;
|
|
871
874
|
expected?: string;
|
|
872
875
|
};
|
|
873
|
-
500: {
|
|
874
|
-
error: string;
|
|
875
|
-
};
|
|
876
876
|
};
|
|
877
877
|
};
|
|
878
878
|
};
|
|
@@ -887,10 +887,10 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
887
887
|
params: {};
|
|
888
888
|
query: {
|
|
889
889
|
status?: "pending" | "accepted" | "revoked" | undefined;
|
|
890
|
+
email?: string | undefined;
|
|
890
891
|
limit?: string | undefined;
|
|
891
892
|
offset?: string | undefined;
|
|
892
893
|
order?: "asc" | "desc" | undefined;
|
|
893
|
-
email?: string | undefined;
|
|
894
894
|
};
|
|
895
895
|
headers: unknown;
|
|
896
896
|
response: {
|
|
@@ -898,8 +898,8 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
898
898
|
hasMore: boolean;
|
|
899
899
|
total: number;
|
|
900
900
|
invitations: {
|
|
901
|
-
status: "pending" | "accepted" | "revoked";
|
|
902
901
|
id: string;
|
|
902
|
+
status: "pending" | "accepted" | "revoked";
|
|
903
903
|
email: string;
|
|
904
904
|
expiresAt: string;
|
|
905
905
|
groupIds: string[];
|
|
@@ -921,6 +921,9 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
921
921
|
404: {
|
|
922
922
|
error: string;
|
|
923
923
|
};
|
|
924
|
+
500: {
|
|
925
|
+
error: string;
|
|
926
|
+
};
|
|
924
927
|
422: {
|
|
925
928
|
type: "validation";
|
|
926
929
|
on: string;
|
|
@@ -930,9 +933,6 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
930
933
|
property?: string;
|
|
931
934
|
expected?: string;
|
|
932
935
|
};
|
|
933
|
-
500: {
|
|
934
|
-
error: string;
|
|
935
|
-
};
|
|
936
936
|
};
|
|
937
937
|
};
|
|
938
938
|
};
|
|
@@ -954,8 +954,8 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
954
954
|
response: {
|
|
955
955
|
200: {
|
|
956
956
|
invitation: {
|
|
957
|
-
status: "pending" | "accepted" | "revoked";
|
|
958
957
|
id: string;
|
|
958
|
+
status: "pending" | "accepted" | "revoked";
|
|
959
959
|
email: string;
|
|
960
960
|
expiresAt: string;
|
|
961
961
|
groupIds: string[];
|
|
@@ -977,6 +977,9 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
977
977
|
404: {
|
|
978
978
|
error: string;
|
|
979
979
|
};
|
|
980
|
+
500: {
|
|
981
|
+
error: string;
|
|
982
|
+
};
|
|
980
983
|
422: {
|
|
981
984
|
type: "validation";
|
|
982
985
|
on: string;
|
|
@@ -986,9 +989,6 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
986
989
|
property?: string;
|
|
987
990
|
expected?: string;
|
|
988
991
|
};
|
|
989
|
-
500: {
|
|
990
|
-
error: string;
|
|
991
|
-
};
|
|
992
992
|
};
|
|
993
993
|
};
|
|
994
994
|
};
|
|
@@ -1021,6 +1021,9 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
1021
1021
|
401: {
|
|
1022
1022
|
error: string;
|
|
1023
1023
|
};
|
|
1024
|
+
500: {
|
|
1025
|
+
error: string;
|
|
1026
|
+
};
|
|
1024
1027
|
422: {
|
|
1025
1028
|
type: "validation";
|
|
1026
1029
|
on: string;
|
|
@@ -1030,9 +1033,6 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
1030
1033
|
property?: string;
|
|
1031
1034
|
expected?: string;
|
|
1032
1035
|
};
|
|
1033
|
-
500: {
|
|
1034
|
-
error: string;
|
|
1035
|
-
};
|
|
1036
1036
|
};
|
|
1037
1037
|
};
|
|
1038
1038
|
};
|
|
@@ -1057,13 +1057,13 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
1057
1057
|
total: number;
|
|
1058
1058
|
members: {
|
|
1059
1059
|
user: {
|
|
1060
|
-
status: "active" | "suspended";
|
|
1061
1060
|
id: string;
|
|
1061
|
+
status: "active" | "suspended";
|
|
1062
1062
|
email: string;
|
|
1063
1063
|
createdAt: string;
|
|
1064
1064
|
updatedAt: string;
|
|
1065
|
-
displayName?: string | undefined;
|
|
1066
1065
|
avatarUrl?: string | undefined;
|
|
1066
|
+
displayName?: string | undefined;
|
|
1067
1067
|
};
|
|
1068
1068
|
groupIds: string[];
|
|
1069
1069
|
capabilities: {
|
|
@@ -1079,6 +1079,9 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
1079
1079
|
400: {
|
|
1080
1080
|
error: string;
|
|
1081
1081
|
};
|
|
1082
|
+
500: {
|
|
1083
|
+
error: string;
|
|
1084
|
+
};
|
|
1082
1085
|
422: {
|
|
1083
1086
|
type: "validation";
|
|
1084
1087
|
on: string;
|
|
@@ -1088,9 +1091,6 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
1088
1091
|
property?: string;
|
|
1089
1092
|
expected?: string;
|
|
1090
1093
|
};
|
|
1091
|
-
500: {
|
|
1092
|
-
error: string;
|
|
1093
|
-
};
|
|
1094
1094
|
};
|
|
1095
1095
|
};
|
|
1096
1096
|
};
|
|
@@ -1115,13 +1115,13 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
1115
1115
|
200: {
|
|
1116
1116
|
member: {
|
|
1117
1117
|
user: {
|
|
1118
|
-
status: "active" | "suspended";
|
|
1119
1118
|
id: string;
|
|
1119
|
+
status: "active" | "suspended";
|
|
1120
1120
|
email: string;
|
|
1121
1121
|
createdAt: string;
|
|
1122
1122
|
updatedAt: string;
|
|
1123
|
-
displayName?: string | undefined;
|
|
1124
1123
|
avatarUrl?: string | undefined;
|
|
1124
|
+
displayName?: string | undefined;
|
|
1125
1125
|
};
|
|
1126
1126
|
groupIds: string[];
|
|
1127
1127
|
};
|
|
@@ -1138,6 +1138,9 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
1138
1138
|
404: {
|
|
1139
1139
|
error: string;
|
|
1140
1140
|
};
|
|
1141
|
+
500: {
|
|
1142
|
+
error: string;
|
|
1143
|
+
};
|
|
1141
1144
|
422: {
|
|
1142
1145
|
type: "validation";
|
|
1143
1146
|
on: string;
|
|
@@ -1147,9 +1150,6 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
1147
1150
|
property?: string;
|
|
1148
1151
|
expected?: string;
|
|
1149
1152
|
};
|
|
1150
|
-
500: {
|
|
1151
|
-
error: string;
|
|
1152
|
-
};
|
|
1153
1153
|
};
|
|
1154
1154
|
};
|
|
1155
1155
|
};
|
|
@@ -1174,13 +1174,13 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
1174
1174
|
200: {
|
|
1175
1175
|
member: {
|
|
1176
1176
|
user: {
|
|
1177
|
-
status: "active" | "suspended";
|
|
1178
1177
|
id: string;
|
|
1178
|
+
status: "active" | "suspended";
|
|
1179
1179
|
email: string;
|
|
1180
1180
|
createdAt: string;
|
|
1181
1181
|
updatedAt: string;
|
|
1182
|
-
displayName?: string | undefined;
|
|
1183
1182
|
avatarUrl?: string | undefined;
|
|
1183
|
+
displayName?: string | undefined;
|
|
1184
1184
|
};
|
|
1185
1185
|
groupIds: string[];
|
|
1186
1186
|
};
|
|
@@ -1194,6 +1194,9 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
1194
1194
|
404: {
|
|
1195
1195
|
error: string;
|
|
1196
1196
|
};
|
|
1197
|
+
500: {
|
|
1198
|
+
error: string;
|
|
1199
|
+
};
|
|
1197
1200
|
422: {
|
|
1198
1201
|
type: "validation";
|
|
1199
1202
|
on: string;
|
|
@@ -1203,9 +1206,6 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
1203
1206
|
property?: string;
|
|
1204
1207
|
expected?: string;
|
|
1205
1208
|
};
|
|
1206
|
-
500: {
|
|
1207
|
-
error: string;
|
|
1208
|
-
};
|
|
1209
1209
|
};
|
|
1210
1210
|
};
|
|
1211
1211
|
};
|
|
@@ -1230,13 +1230,13 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
1230
1230
|
200: {
|
|
1231
1231
|
member: {
|
|
1232
1232
|
user: {
|
|
1233
|
-
status: "active" | "suspended";
|
|
1234
1233
|
id: string;
|
|
1234
|
+
status: "active" | "suspended";
|
|
1235
1235
|
email: string;
|
|
1236
1236
|
createdAt: string;
|
|
1237
1237
|
updatedAt: string;
|
|
1238
|
-
displayName?: string | undefined;
|
|
1239
1238
|
avatarUrl?: string | undefined;
|
|
1239
|
+
displayName?: string | undefined;
|
|
1240
1240
|
};
|
|
1241
1241
|
groupIds: string[];
|
|
1242
1242
|
};
|
|
@@ -1250,6 +1250,9 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
1250
1250
|
404: {
|
|
1251
1251
|
error: string;
|
|
1252
1252
|
};
|
|
1253
|
+
500: {
|
|
1254
|
+
error: string;
|
|
1255
|
+
};
|
|
1253
1256
|
422: {
|
|
1254
1257
|
type: "validation";
|
|
1255
1258
|
on: string;
|
|
@@ -1259,9 +1262,6 @@ export declare function registerAuthRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
1259
1262
|
property?: string;
|
|
1260
1263
|
expected?: string;
|
|
1261
1264
|
};
|
|
1262
|
-
500: {
|
|
1263
|
-
error: string;
|
|
1264
|
-
};
|
|
1265
1265
|
};
|
|
1266
1266
|
};
|
|
1267
1267
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/routes/auth.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAwC,
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/routes/auth.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAwC,YAAY,EAAE,MAAM,YAAY,CAAA;AA2BpF,OAAO,EAAE,KAAK,MAAM,EAAK,MAAM,QAAQ,CAAA;AAGvC,OAAO,EACL,KAAK,gCAAgC,EACrC,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,EAGhC,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EAC/B,MAAM,wBAAwB,CAAA;AAqE/B,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,kBAAkB,EAAE,yBAAyB,CAAA;IACtD,QAAQ,CAAC,0BAA0B,EAAE,0BAA0B,CAAA;IAC/D,QAAQ,CAAC,+BAA+B,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,gCAAgC,CAAA;IAChG,QAAQ,CAAC,wBAAwB,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,MAAM,CAAA;IAC/D,QAAQ,CAAC,gCAAgC,EAAE,CACzC,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,2BAA2B,KAC/B,6BAA6B,CAAA;CACnC;AAED,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwzC7F"}
|