@absolutejs/auth 0.57.9 → 0.59.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/README.md +38 -0
  2. package/dist/cli/migrate.js +31 -12
  3. package/dist/cli/migrate.js.map +4 -4
  4. package/dist/index.js +522 -95
  5. package/dist/index.js.map +17 -15
  6. package/dist/manifest.js +8 -1
  7. package/dist/manifest.js.map +3 -3
  8. package/dist/mfa/challenge.d.ts +5 -3
  9. package/dist/mfa/config.d.ts +9 -0
  10. package/dist/mfa/management.d.ts +3 -3
  11. package/dist/mfa/postgresMfaStore.d.ts +60 -0
  12. package/dist/mfa/recentAuth.d.ts +2 -0
  13. package/dist/mfa/routes.d.ts +15 -10
  14. package/dist/mfa/sms.d.ts +45 -7
  15. package/dist/mfa/totp.d.ts +3 -3
  16. package/dist/mfa/types.d.ts +35 -0
  17. package/dist/server.js +521 -96
  18. package/dist/server.js.map +18 -16
  19. package/dist/types.d.ts +5 -1
  20. package/dist/verification/types.d.ts +58 -0
  21. package/package.json +1 -1
  22. package/dist/agents/index.d.ts +0 -13
  23. package/dist/cli/import/auth0.d.ts +0 -2
  24. package/dist/cli/import/clerk.d.ts +0 -2
  25. package/dist/cli/import/index.d.ts +0 -10
  26. package/dist/cli/import/lucia.d.ts +0 -2
  27. package/dist/cli/import/nextauth.d.ts +0 -2
  28. package/dist/cli/import/supabase.d.ts +0 -2
  29. package/dist/cli/import/types.d.ts +0 -27
  30. package/dist/cli/migrate.d.ts +0 -2
  31. package/dist/client/components/react/SignIn.d.ts +0 -32
  32. package/dist/client/components/react/SignUp.d.ts +0 -29
  33. package/dist/client/components/react/UserButton.d.ts +0 -36
  34. package/dist/client/createAuthClient.d.ts +0 -285
  35. package/dist/client/index.d.ts +0 -3
  36. package/dist/client/passkeyHelpers.d.ts +0 -19
  37. package/dist/client/react.d.ts +0 -87
  38. package/dist/client/sessionExpiry.d.ts +0 -37
  39. package/dist/client/solid.d.ts +0 -86
  40. package/dist/client/svelte.d.ts +0 -86
  41. package/dist/client/vue.d.ts +0 -88
  42. package/dist/fingerprint-client/index.d.ts +0 -26
  43. package/dist/htmx/index.d.ts +0 -2
  44. package/dist/index.d.ts +0 -3637
  45. package/dist/linkedProviders/index.d.ts +0 -3
  46. package/dist/manifest.d.ts +0 -18
  47. package/dist/manifest.json +0 -364
  48. package/dist/oidc/index.d.ts +0 -12
  49. package/dist/oidc/operator.d.ts +0 -14
  50. package/dist/plugins/denyDisposableEmail.d.ts +0 -7
  51. package/dist/plugins/discordAlert.d.ts +0 -7
  52. package/dist/plugins/geoBlock.d.ts +0 -8
  53. package/dist/plugins/index.d.ts +0 -12
  54. package/dist/plugins/pagerdutyAlert.d.ts +0 -9
  55. package/dist/plugins/posthogIdentify.d.ts +0 -7
  56. package/dist/plugins/slackAlert.d.ts +0 -7
  57. package/dist/providers/index.d.ts +0 -2
  58. package/dist/saml.d.ts +0 -1
  59. package/dist/server.d.ts +0 -31
  60. package/dist/sso/nodeSamlAdapter.d.ts +0 -8
  61. package/dist/vault/index.d.ts +0 -5
  62. package/dist/webauthn/simpleWebAuthnAdapter.d.ts +0 -3
  63. package/dist/webauthn.d.ts +0 -1
package/dist/index.d.ts DELETED
@@ -1,3637 +0,0 @@
1
- import { Elysia } from 'elysia';
2
- import type { AuthConfig } from './types';
3
- export declare const auth: <UserType>(configuration: AuthConfig<UserType>) => Promise<Elysia<"", {
4
- decorator: {};
5
- store: {
6
- session: import("./types").SessionRecord<UserType>;
7
- unregisteredSession: import("./types").UnregisteredSessionRecord;
8
- };
9
- derive: ({
10
- readonly protectRoute: <AuthReturn, AuthFailReturn = never>(handleAuth: (user: UserType) => AuthReturn | Promise<AuthReturn>, handleAuthFail?: ((error: {
11
- readonly code: "Bad Request";
12
- readonly message: "Cookies are missing";
13
- } | {
14
- readonly code: "Unauthorized";
15
- readonly message: "User is not authenticated";
16
- }) => AuthFailReturn) | undefined) => Promise<import("elysia").ElysiaCustomStatusResponse<"Bad Request", "Cookies are missing", 400> | import("elysia").ElysiaCustomStatusResponse<"Unauthorized", "User is not authenticated", 401> | AuthReturn | NonNullable<AuthFailReturn>>;
17
- } & {
18
- readonly requireRecentAuth: <AuthReturn, AuthFailReturn_1>(maxAgeMs: number, handleAuth: (user: UserType) => AuthReturn | Promise<AuthReturn>, handleAuthFail?: ((error: {
19
- readonly code: "Unauthorized";
20
- readonly message: "Recent authentication required";
21
- }) => AuthFailReturn_1) | undefined) => Promise<import("elysia").ElysiaCustomStatusResponse<"Unauthorized", "Recent authentication required", 401> | AuthReturn | NonNullable<AuthFailReturn_1>>;
22
- } & {
23
- readonly protectAgent: <AuthReturn, AuthFailReturn_2>(requiredScopes: string[], handleAuth: (principal: import(".").AgentPrincipal) => AuthReturn | Promise<AuthReturn>, handleAuthFail?: (error: {
24
- code: "Forbidden" | "Unauthorized";
25
- message: "Agent is not authenticated" | "Insufficient agent scopes";
26
- }) => AuthFailReturn_2 | Promise<AuthFailReturn_2>) => Promise<Response | AuthReturn | NonNullable<Awaited<AuthFailReturn_2>>>;
27
- }) | ({
28
- readonly protectRoute: <AuthReturn, AuthFailReturn = never>(handleAuth: (user: UserType) => AuthReturn | Promise<AuthReturn>, handleAuthFail?: ((error: {
29
- readonly code: "Bad Request";
30
- readonly message: "Cookies are missing";
31
- } | {
32
- readonly code: "Unauthorized";
33
- readonly message: "User is not authenticated";
34
- }) => AuthFailReturn) | undefined) => Promise<import("elysia").ElysiaCustomStatusResponse<"Bad Request", "Cookies are missing", 400> | import("elysia").ElysiaCustomStatusResponse<"Unauthorized", "User is not authenticated", 401> | AuthReturn | NonNullable<AuthFailReturn>>;
35
- } & {
36
- readonly requireRecentAuth: <AuthReturn, AuthFailReturn_1>(maxAgeMs: number, handleAuth: (user: UserType) => AuthReturn | Promise<AuthReturn>, handleAuthFail?: ((error: {
37
- readonly code: "Unauthorized";
38
- readonly message: "Recent authentication required";
39
- }) => AuthFailReturn_1) | undefined) => Promise<import("elysia").ElysiaCustomStatusResponse<"Unauthorized", "Recent authentication required", 401> | AuthReturn | NonNullable<AuthFailReturn_1>>;
40
- } & {
41
- readonly protectPermission: <AuthReturn, AuthFailReturn_3>(check: import(".").PermissionCheck, handleAuth: (user: UserType) => AuthReturn | Promise<AuthReturn>, handleAuthFail?: ((error: {
42
- readonly code: "Bad Request";
43
- readonly message: "Cookies are missing";
44
- } | {
45
- readonly code: "Forbidden";
46
- readonly message: "Insufficient permissions";
47
- } | {
48
- readonly code: "Unauthorized";
49
- readonly message: "User is not authenticated";
50
- }) => AuthFailReturn_3) | undefined) => Promise<import("elysia").ElysiaCustomStatusResponse<"Bad Request", "Cookies are missing", 400> | import("elysia").ElysiaCustomStatusResponse<"Unauthorized", "User is not authenticated", 401> | import("elysia").ElysiaCustomStatusResponse<"Forbidden", "Insufficient permissions", 403> | AuthReturn | NonNullable<AuthFailReturn_3>>;
51
- } & {
52
- readonly protectAgent: <AuthReturn, AuthFailReturn_2>(requiredScopes: string[], handleAuth: (principal: import(".").AgentPrincipal) => AuthReturn | Promise<AuthReturn>, handleAuthFail?: (error: {
53
- code: "Forbidden" | "Unauthorized";
54
- message: "Agent is not authenticated" | "Insufficient agent scopes";
55
- }) => AuthFailReturn_2 | Promise<AuthFailReturn_2>) => Promise<Response | AuthReturn | NonNullable<Awaited<AuthFailReturn_2>>>;
56
- });
57
- resolve: {};
58
- }, {
59
- typebox: {};
60
- error: {};
61
- } & {
62
- typebox: {};
63
- error: {};
64
- }, {
65
- schema: {};
66
- standaloneSchema: {};
67
- macro: {};
68
- macroFn: {};
69
- parser: {};
70
- response: {};
71
- } & (({
72
- schema: {};
73
- standaloneSchema: {};
74
- macro: {};
75
- macroFn: {};
76
- parser: {};
77
- response: {};
78
- } & ({
79
- schema: import("elysia").UnwrapRoute<{
80
- cookie: import("@sinclair/typebox").TObject<{
81
- user_session_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TTemplateLiteralSyntax<"${string}-${string}-${string}-${string}-${string}">>;
82
- }>;
83
- }, {}, "">;
84
- standaloneSchema: {};
85
- macro: {};
86
- macroFn: {};
87
- parser: {};
88
- response: import("elysia").ExtractErrorFromHandle<{
89
- readonly protectRoute: <AuthReturn, AuthFailReturn = never>(handleAuth: (user: UserType) => AuthReturn | Promise<AuthReturn>, handleAuthFail?: ((error: {
90
- readonly code: "Bad Request";
91
- readonly message: "Cookies are missing";
92
- } | {
93
- readonly code: "Unauthorized";
94
- readonly message: "User is not authenticated";
95
- }) => AuthFailReturn) | undefined) => Promise<import("elysia").ElysiaCustomStatusResponse<"Bad Request", "Cookies are missing", 400> | import("elysia").ElysiaCustomStatusResponse<"Unauthorized", "User is not authenticated", 401> | AuthReturn | NonNullable<AuthFailReturn>>;
96
- }>;
97
- } & ({
98
- schema: import("elysia").UnwrapRoute<{
99
- cookie: import("@sinclair/typebox").TObject<{
100
- user_session_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TTemplateLiteralSyntax<"${string}-${string}-${string}-${string}-${string}">>;
101
- }>;
102
- }, {}, "">;
103
- standaloneSchema: {};
104
- macro: {};
105
- macroFn: {};
106
- parser: {};
107
- response: import("elysia").ExtractErrorFromHandle<{
108
- readonly requireRecentAuth: <AuthReturn, AuthFailReturn_1>(maxAgeMs: number, handleAuth: (user: UserType) => AuthReturn | Promise<AuthReturn>, handleAuthFail?: ((error: {
109
- readonly code: "Unauthorized";
110
- readonly message: "Recent authentication required";
111
- }) => AuthFailReturn_1) | undefined) => Promise<import("elysia").ElysiaCustomStatusResponse<"Unauthorized", "Recent authentication required", 401> | AuthReturn | NonNullable<AuthFailReturn_1>>;
112
- }>;
113
- } & ({
114
- schema: {};
115
- standaloneSchema: {};
116
- macro: {};
117
- macroFn: {};
118
- parser: {};
119
- response: {};
120
- } | {
121
- schema: import("elysia").UnwrapRoute<{
122
- cookie: import("@sinclair/typebox").TObject<{
123
- user_session_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TTemplateLiteralSyntax<"${string}-${string}-${string}-${string}-${string}">>;
124
- }>;
125
- }, {}, "">;
126
- standaloneSchema: {};
127
- macro: {};
128
- macroFn: {};
129
- parser: {};
130
- response: import("elysia").ExtractErrorFromHandle<{
131
- readonly protectPermission: <AuthReturn, AuthFailReturn_3>(check: import(".").PermissionCheck, handleAuth: (user: UserType) => AuthReturn | Promise<AuthReturn>, handleAuthFail?: ((error: {
132
- readonly code: "Bad Request";
133
- readonly message: "Cookies are missing";
134
- } | {
135
- readonly code: "Forbidden";
136
- readonly message: "Insufficient permissions";
137
- } | {
138
- readonly code: "Unauthorized";
139
- readonly message: "User is not authenticated";
140
- }) => AuthFailReturn_3) | undefined) => Promise<import("elysia").ElysiaCustomStatusResponse<"Bad Request", "Cookies are missing", 400> | import("elysia").ElysiaCustomStatusResponse<"Unauthorized", "User is not authenticated", 401> | import("elysia").ElysiaCustomStatusResponse<"Forbidden", "Insufficient permissions", 403> | AuthReturn | NonNullable<AuthFailReturn_3>>;
141
- }>;
142
- })))) & {
143
- schema: {};
144
- standaloneSchema: {};
145
- macro: {};
146
- macroFn: {};
147
- parser: {};
148
- response: import("elysia").ExtractErrorFromHandle<{
149
- readonly protectAgent: <AuthReturn, AuthFailReturn_2>(requiredScopes: string[], handleAuth: (principal: import(".").AgentPrincipal) => AuthReturn | Promise<AuthReturn>, handleAuthFail?: (error: {
150
- code: "Forbidden" | "Unauthorized";
151
- message: "Agent is not authenticated" | "Insufficient agent scopes";
152
- }) => AuthFailReturn_2 | Promise<AuthFailReturn_2>) => Promise<Response | AuthReturn | NonNullable<Awaited<AuthFailReturn_2>>>;
153
- }>;
154
- }), {}, {
155
- derive: {};
156
- resolve: {};
157
- schema: {};
158
- standaloneSchema: {};
159
- response: {};
160
- }, {
161
- derive: {};
162
- resolve: {};
163
- schema: {};
164
- standaloneSchema: {};
165
- response: {};
166
- } & {
167
- derive: {};
168
- resolve: {};
169
- schema: {};
170
- standaloneSchema: {};
171
- response: {};
172
- }>>;
173
- export declare const createAuthApplications: <UserType>(configuration: AuthConfig<UserType>) => Promise<{
174
- authContext: Elysia<"", {
175
- decorator: {};
176
- store: {
177
- session: import("./types").SessionRecord<UserType>;
178
- unregisteredSession: import("./types").UnregisteredSessionRecord;
179
- };
180
- derive: ({
181
- readonly protectRoute: <AuthReturn, AuthFailReturn = never>(handleAuth: (user: UserType) => AuthReturn | Promise<AuthReturn>, handleAuthFail?: ((error: {
182
- readonly code: "Bad Request";
183
- readonly message: "Cookies are missing";
184
- } | {
185
- readonly code: "Unauthorized";
186
- readonly message: "User is not authenticated";
187
- }) => AuthFailReturn) | undefined) => Promise<import("elysia").ElysiaCustomStatusResponse<"Bad Request", "Cookies are missing", 400> | import("elysia").ElysiaCustomStatusResponse<"Unauthorized", "User is not authenticated", 401> | AuthReturn | NonNullable<AuthFailReturn>>;
188
- } & {
189
- readonly requireRecentAuth: <AuthReturn, AuthFailReturn_1>(maxAgeMs: number, handleAuth: (user: UserType) => AuthReturn | Promise<AuthReturn>, handleAuthFail?: ((error: {
190
- readonly code: "Unauthorized";
191
- readonly message: "Recent authentication required";
192
- }) => AuthFailReturn_1) | undefined) => Promise<import("elysia").ElysiaCustomStatusResponse<"Unauthorized", "Recent authentication required", 401> | AuthReturn | NonNullable<AuthFailReturn_1>>;
193
- } & {
194
- readonly protectAgent: <AuthReturn, AuthFailReturn_2>(requiredScopes: string[], handleAuth: (principal: import(".").AgentPrincipal) => AuthReturn | Promise<AuthReturn>, handleAuthFail?: (error: {
195
- code: "Forbidden" | "Unauthorized";
196
- message: "Agent is not authenticated" | "Insufficient agent scopes";
197
- }) => AuthFailReturn_2 | Promise<AuthFailReturn_2>) => Promise<Response | AuthReturn | NonNullable<Awaited<AuthFailReturn_2>>>;
198
- }) | ({
199
- readonly protectRoute: <AuthReturn, AuthFailReturn = never>(handleAuth: (user: UserType) => AuthReturn | Promise<AuthReturn>, handleAuthFail?: ((error: {
200
- readonly code: "Bad Request";
201
- readonly message: "Cookies are missing";
202
- } | {
203
- readonly code: "Unauthorized";
204
- readonly message: "User is not authenticated";
205
- }) => AuthFailReturn) | undefined) => Promise<import("elysia").ElysiaCustomStatusResponse<"Bad Request", "Cookies are missing", 400> | import("elysia").ElysiaCustomStatusResponse<"Unauthorized", "User is not authenticated", 401> | AuthReturn | NonNullable<AuthFailReturn>>;
206
- } & {
207
- readonly requireRecentAuth: <AuthReturn, AuthFailReturn_1>(maxAgeMs: number, handleAuth: (user: UserType) => AuthReturn | Promise<AuthReturn>, handleAuthFail?: ((error: {
208
- readonly code: "Unauthorized";
209
- readonly message: "Recent authentication required";
210
- }) => AuthFailReturn_1) | undefined) => Promise<import("elysia").ElysiaCustomStatusResponse<"Unauthorized", "Recent authentication required", 401> | AuthReturn | NonNullable<AuthFailReturn_1>>;
211
- } & {
212
- readonly protectPermission: <AuthReturn, AuthFailReturn_3>(check: import(".").PermissionCheck, handleAuth: (user: UserType) => AuthReturn | Promise<AuthReturn>, handleAuthFail?: ((error: {
213
- readonly code: "Bad Request";
214
- readonly message: "Cookies are missing";
215
- } | {
216
- readonly code: "Forbidden";
217
- readonly message: "Insufficient permissions";
218
- } | {
219
- readonly code: "Unauthorized";
220
- readonly message: "User is not authenticated";
221
- }) => AuthFailReturn_3) | undefined) => Promise<import("elysia").ElysiaCustomStatusResponse<"Bad Request", "Cookies are missing", 400> | import("elysia").ElysiaCustomStatusResponse<"Unauthorized", "User is not authenticated", 401> | import("elysia").ElysiaCustomStatusResponse<"Forbidden", "Insufficient permissions", 403> | AuthReturn | NonNullable<AuthFailReturn_3>>;
222
- } & {
223
- readonly protectAgent: <AuthReturn, AuthFailReturn_2>(requiredScopes: string[], handleAuth: (principal: import(".").AgentPrincipal) => AuthReturn | Promise<AuthReturn>, handleAuthFail?: (error: {
224
- code: "Forbidden" | "Unauthorized";
225
- message: "Agent is not authenticated" | "Insufficient agent scopes";
226
- }) => AuthFailReturn_2 | Promise<AuthFailReturn_2>) => Promise<Response | AuthReturn | NonNullable<Awaited<AuthFailReturn_2>>>;
227
- });
228
- resolve: {};
229
- }, {
230
- typebox: {};
231
- error: {};
232
- } & {
233
- typebox: {};
234
- error: {};
235
- }, ({
236
- schema: {};
237
- standaloneSchema: {};
238
- macro: {};
239
- macroFn: {};
240
- parser: {};
241
- response: {};
242
- } & ({
243
- schema: import("elysia").UnwrapRoute<{
244
- cookie: import("@sinclair/typebox").TObject<{
245
- user_session_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TTemplateLiteralSyntax<"${string}-${string}-${string}-${string}-${string}">>;
246
- }>;
247
- }, {}, "">;
248
- standaloneSchema: {};
249
- macro: {};
250
- macroFn: {};
251
- parser: {};
252
- response: import("elysia").ExtractErrorFromHandle<{
253
- readonly protectRoute: <AuthReturn, AuthFailReturn = never>(handleAuth: (user: UserType) => AuthReturn | Promise<AuthReturn>, handleAuthFail?: ((error: {
254
- readonly code: "Bad Request";
255
- readonly message: "Cookies are missing";
256
- } | {
257
- readonly code: "Unauthorized";
258
- readonly message: "User is not authenticated";
259
- }) => AuthFailReturn) | undefined) => Promise<import("elysia").ElysiaCustomStatusResponse<"Bad Request", "Cookies are missing", 400> | import("elysia").ElysiaCustomStatusResponse<"Unauthorized", "User is not authenticated", 401> | AuthReturn | NonNullable<AuthFailReturn>>;
260
- }>;
261
- } & ({
262
- schema: import("elysia").UnwrapRoute<{
263
- cookie: import("@sinclair/typebox").TObject<{
264
- user_session_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TTemplateLiteralSyntax<"${string}-${string}-${string}-${string}-${string}">>;
265
- }>;
266
- }, {}, "">;
267
- standaloneSchema: {};
268
- macro: {};
269
- macroFn: {};
270
- parser: {};
271
- response: import("elysia").ExtractErrorFromHandle<{
272
- readonly requireRecentAuth: <AuthReturn, AuthFailReturn_1>(maxAgeMs: number, handleAuth: (user: UserType) => AuthReturn | Promise<AuthReturn>, handleAuthFail?: ((error: {
273
- readonly code: "Unauthorized";
274
- readonly message: "Recent authentication required";
275
- }) => AuthFailReturn_1) | undefined) => Promise<import("elysia").ElysiaCustomStatusResponse<"Unauthorized", "Recent authentication required", 401> | AuthReturn | NonNullable<AuthFailReturn_1>>;
276
- }>;
277
- } & ({
278
- schema: {};
279
- standaloneSchema: {};
280
- macro: {};
281
- macroFn: {};
282
- parser: {};
283
- response: {};
284
- } | {
285
- schema: import("elysia").UnwrapRoute<{
286
- cookie: import("@sinclair/typebox").TObject<{
287
- user_session_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TTemplateLiteralSyntax<"${string}-${string}-${string}-${string}-${string}">>;
288
- }>;
289
- }, {}, "">;
290
- standaloneSchema: {};
291
- macro: {};
292
- macroFn: {};
293
- parser: {};
294
- response: import("elysia").ExtractErrorFromHandle<{
295
- readonly protectPermission: <AuthReturn, AuthFailReturn_3>(check: import(".").PermissionCheck, handleAuth: (user: UserType) => AuthReturn | Promise<AuthReturn>, handleAuthFail?: ((error: {
296
- readonly code: "Bad Request";
297
- readonly message: "Cookies are missing";
298
- } | {
299
- readonly code: "Forbidden";
300
- readonly message: "Insufficient permissions";
301
- } | {
302
- readonly code: "Unauthorized";
303
- readonly message: "User is not authenticated";
304
- }) => AuthFailReturn_3) | undefined) => Promise<import("elysia").ElysiaCustomStatusResponse<"Bad Request", "Cookies are missing", 400> | import("elysia").ElysiaCustomStatusResponse<"Unauthorized", "User is not authenticated", 401> | import("elysia").ElysiaCustomStatusResponse<"Forbidden", "Insufficient permissions", 403> | AuthReturn | NonNullable<AuthFailReturn_3>>;
305
- }>;
306
- })))) & {
307
- schema: {};
308
- standaloneSchema: {};
309
- macro: {};
310
- macroFn: {};
311
- parser: {};
312
- response: import("elysia").ExtractErrorFromHandle<{
313
- readonly protectAgent: <AuthReturn, AuthFailReturn_2>(requiredScopes: string[], handleAuth: (principal: import(".").AgentPrincipal) => AuthReturn | Promise<AuthReturn>, handleAuthFail?: (error: {
314
- code: "Forbidden" | "Unauthorized";
315
- message: "Agent is not authenticated" | "Insufficient agent scopes";
316
- }) => AuthFailReturn_2 | Promise<AuthFailReturn_2>) => Promise<Response | AuthReturn | NonNullable<Awaited<AuthFailReturn_2>>>;
317
- }>;
318
- }, {}, {
319
- derive: {};
320
- resolve: {};
321
- schema: {};
322
- standaloneSchema: {};
323
- response: {};
324
- }, ({
325
- derive: {};
326
- resolve: {};
327
- schema: {};
328
- standaloneSchema: {};
329
- response: {};
330
- } & {
331
- derive: {};
332
- resolve: {};
333
- schema: {};
334
- standaloneSchema: {};
335
- response: {};
336
- }) | ({
337
- derive: {};
338
- resolve: {};
339
- schema: {};
340
- standaloneSchema: {};
341
- response: {};
342
- } & {
343
- derive: {};
344
- resolve: {};
345
- schema: {};
346
- standaloneSchema: {};
347
- response: {};
348
- } & {
349
- derive: {};
350
- resolve: {};
351
- schema: {};
352
- standaloneSchema: {};
353
- response: {};
354
- })>;
355
- coreRoutes: Elysia<"", {
356
- decorator: {};
357
- store: {
358
- session: import("./types").SessionRecord<UserType> & import("./types").SessionRecord<NoInfer<UserType>>;
359
- unregisteredSession: import("./types").UnregisteredSessionRecord;
360
- };
361
- derive: {
362
- readonly cleanupSessions: () => Promise<void>;
363
- };
364
- resolve: {};
365
- }, {
366
- typebox: {};
367
- error: {};
368
- } & {
369
- typebox: {};
370
- error: {};
371
- }, {
372
- schema: {};
373
- standaloneSchema: {};
374
- macro: {};
375
- macroFn: {};
376
- parser: {};
377
- response: {};
378
- } & {
379
- schema: {};
380
- standaloneSchema: {};
381
- macro: {};
382
- macroFn: {};
383
- parser: {};
384
- response: import("elysia").ExtractErrorFromHandle<{
385
- readonly cleanupSessions: () => Promise<void>;
386
- }>;
387
- } & {
388
- schema: {};
389
- standaloneSchema: {};
390
- macro: {};
391
- macroFn: {};
392
- parser: {};
393
- response: {};
394
- }, (({
395
- [x: string]: {
396
- delete: {
397
- body: unknown;
398
- params: {};
399
- query: unknown;
400
- headers: unknown;
401
- response: {
402
- 400: "Cookies are missing";
403
- 401: "No user session id found";
404
- 200: Response;
405
- 422: {
406
- type: "validation";
407
- on: string;
408
- summary?: string;
409
- message?: string;
410
- found?: unknown;
411
- property?: string;
412
- expected?: string;
413
- };
414
- 500: "Sign out operation failed";
415
- };
416
- };
417
- };
418
- } & {
419
- [x: string]: {
420
- post: {
421
- body: unknown;
422
- params: {};
423
- query: unknown;
424
- headers: unknown;
425
- response: {
426
- 400: "Cookies are missing" | "Session has no access token to revoke";
427
- 401: "Provider is required" | "Client provider not found" | "Client variant is required" | "Client variant not found" | "No auth provider found" | "No user session found";
428
- 501: "Provider does not support revocation";
429
- 200: Response;
430
- 422: {
431
- type: "validation";
432
- on: string;
433
- summary?: string;
434
- message?: string;
435
- found?: unknown;
436
- property?: string;
437
- expected?: string;
438
- };
439
- 500: "Failed to revoke token";
440
- };
441
- };
442
- };
443
- } & ({
444
- [x: string]: {
445
- get: {
446
- body: unknown;
447
- params: {};
448
- query: unknown;
449
- headers: unknown;
450
- response: {
451
- 400: "Cookies are missing";
452
- 200: {
453
- impersonator: import("./types").Impersonator | undefined;
454
- user: NonNullable<UserType> | null;
455
- };
456
- 422: {
457
- type: "validation";
458
- on: string;
459
- summary?: string;
460
- message?: string;
461
- found?: unknown;
462
- property?: string;
463
- expected?: string;
464
- };
465
- 500: `Error: ${string} - ${string}` | `Unknown Error: ${string}`;
466
- };
467
- };
468
- };
469
- } & ({
470
- [x: string]: {
471
- post: {
472
- body: unknown;
473
- params: {};
474
- query: unknown;
475
- headers: unknown;
476
- response: {
477
- 400: "Cookies are missing" | "No refresh token found";
478
- 401: "Provider is required" | "Client provider not found" | "Client variant is required" | "Client variant not found" | "No auth provider found" | "No user session found";
479
- 501: "Provider is not refreshable";
480
- 200: Response;
481
- 422: {
482
- type: "validation";
483
- on: string;
484
- summary?: string;
485
- message?: string;
486
- found?: unknown;
487
- property?: string;
488
- expected?: string;
489
- };
490
- 500: "Failed to refresh token";
491
- };
492
- };
493
- };
494
- } & ({
495
- [x: string]: {
496
- ":provider": {
497
- get: {
498
- body: unknown;
499
- params: {
500
- provider: string;
501
- };
502
- query: {
503
- client?: string | undefined;
504
- intent?: "login" | "link_identity" | "link_connector" | undefined;
505
- };
506
- headers: unknown;
507
- response: {
508
- 400: "Cookies are missing" | "Provider is required";
509
- 401: "Provider is required" | "Client provider not found" | "Client variant is required" | "Client variant not found";
510
- 200: Response;
511
- 422: {
512
- type: "validation";
513
- on: string;
514
- summary?: string;
515
- message?: string;
516
- found?: unknown;
517
- property?: string;
518
- expected?: string;
519
- };
520
- 500: "Failed to create authorization URL";
521
- };
522
- };
523
- };
524
- };
525
- } | {
526
- [x: string]: {
527
- ":provider": {
528
- [x: string]: {
529
- get: {
530
- body: unknown;
531
- params: {
532
- provider: string;
533
- };
534
- query: {
535
- client?: string | undefined;
536
- intent?: "login" | "link_identity" | "link_connector" | undefined;
537
- };
538
- headers: unknown;
539
- response: {
540
- 400: "Cookies are missing" | "Provider is required";
541
- 401: "Provider is required" | "Client provider not found" | "Client variant is required" | "Client variant not found";
542
- 200: Response;
543
- 422: {
544
- type: "validation";
545
- on: string;
546
- summary?: string;
547
- message?: string;
548
- found?: unknown;
549
- property?: string;
550
- expected?: string;
551
- };
552
- 500: "Failed to create authorization URL";
553
- };
554
- };
555
- };
556
- };
557
- };
558
- })))) & {
559
- [x: string]: {
560
- get: {
561
- body: unknown;
562
- params: {};
563
- query: unknown;
564
- headers: unknown;
565
- response: {
566
- [x: number]: {};
567
- };
568
- };
569
- };
570
- }) & {
571
- [x: string]: {
572
- get: {
573
- body: unknown;
574
- params: {};
575
- query: unknown;
576
- headers: unknown;
577
- response: {
578
- 400: "Cookies are missing" | "Session has no access token to fetch a profile";
579
- 401: "Provider is required" | "Client provider not found" | "Client variant is required" | "Client variant not found" | "No auth provider found" | "No user session found";
580
- 501: "Provider does not expose a profile endpoint";
581
- 200: Response;
582
- 422: {
583
- type: "validation";
584
- on: string;
585
- summary?: string;
586
- message?: string;
587
- found?: unknown;
588
- property?: string;
589
- expected?: string;
590
- };
591
- 500: `${string} - ${string}` | `Failed to validate authorization code: Unknown status: ${string}`;
592
- };
593
- };
594
- };
595
- }, {
596
- derive: {};
597
- resolve: {};
598
- schema: {};
599
- standaloneSchema: {};
600
- response: {};
601
- }, {
602
- derive: {};
603
- resolve: {};
604
- schema: {};
605
- standaloneSchema: {};
606
- response: {};
607
- } & {
608
- derive: {};
609
- resolve: {};
610
- schema: {};
611
- standaloneSchema: {};
612
- response: {};
613
- } & {
614
- derive: {};
615
- resolve: {};
616
- schema: {};
617
- standaloneSchema: {};
618
- response: {};
619
- }>;
620
- featureRoutes: Elysia<"", {
621
- decorator: {};
622
- store: {} | {
623
- session: import("./types").SessionRecord<import(".").AuthHtmxUser>;
624
- unregisteredSession: import("./types").UnregisteredSessionRecord;
625
- } | {
626
- session: import("./types").SessionRecord<UserType>;
627
- unregisteredSession: import("./types").UnregisteredSessionRecord;
628
- } | {
629
- session: import("./types").SessionRecord<UserType>;
630
- unregisteredSession: import("./types").UnregisteredSessionRecord;
631
- } | {
632
- session: import("./types").SessionRecord<UserType>;
633
- unregisteredSession: import("./types").UnregisteredSessionRecord;
634
- } | {
635
- session: import("./types").SessionRecord<UserType>;
636
- unregisteredSession: import("./types").UnregisteredSessionRecord;
637
- } | {
638
- session: import("./types").SessionRecord<UserType>;
639
- unregisteredSession: import("./types").UnregisteredSessionRecord;
640
- } | {
641
- session: import("./types").SessionRecord<UserType>;
642
- unregisteredSession: import("./types").UnregisteredSessionRecord;
643
- } | {
644
- session: import("./types").SessionRecord<UserType>;
645
- unregisteredSession: import("./types").UnregisteredSessionRecord;
646
- } | {
647
- session: import("./types").SessionRecord<UserType> & import("./types").SessionRecord<import(".").AuthHtmxUser>;
648
- unregisteredSession: import("./types").UnregisteredSessionRecord;
649
- } | {
650
- session: import("./types").SessionRecord<UserType> & import("./types").SessionRecord<import(".").AuthHtmxUser>;
651
- unregisteredSession: import("./types").UnregisteredSessionRecord;
652
- } | {
653
- session: import("./types").SessionRecord<UserType> & import("./types").SessionRecord<import(".").AuthHtmxUser>;
654
- unregisteredSession: import("./types").UnregisteredSessionRecord;
655
- } | {
656
- session: import("./types").SessionRecord<UserType> & import("./types").SessionRecord<import(".").AuthHtmxUser>;
657
- unregisteredSession: import("./types").UnregisteredSessionRecord;
658
- } | {
659
- session: import("./types").SessionRecord<UserType> & import("./types").SessionRecord<import(".").AuthHtmxUser>;
660
- unregisteredSession: import("./types").UnregisteredSessionRecord;
661
- } | {
662
- session: import("./types").SessionRecord<UserType> & import("./types").SessionRecord<import(".").AuthHtmxUser>;
663
- unregisteredSession: import("./types").UnregisteredSessionRecord;
664
- } | {
665
- session: import("./types").SessionRecord<UserType> & import("./types").SessionRecord<import(".").AuthHtmxUser>;
666
- unregisteredSession: import("./types").UnregisteredSessionRecord;
667
- };
668
- derive: {} | {
669
- readonly protectRoute: <AuthReturn, AuthFailReturn = never>(handleAuth: (user: import(".").AuthHtmxUser) => AuthReturn | Promise<AuthReturn>, handleAuthFail?: ((error: {
670
- readonly code: "Bad Request";
671
- readonly message: "Cookies are missing";
672
- } | {
673
- readonly code: "Unauthorized";
674
- readonly message: "User is not authenticated";
675
- }) => AuthFailReturn) | undefined) => Promise<import("elysia").ElysiaCustomStatusResponse<"Bad Request", "Cookies are missing", 400> | import("elysia").ElysiaCustomStatusResponse<"Unauthorized", "User is not authenticated", 401> | AuthReturn | NonNullable<AuthFailReturn>>;
676
- };
677
- resolve: {};
678
- }, {
679
- typebox: {};
680
- error: {};
681
- } & {
682
- typebox: {};
683
- error: {};
684
- }, (({
685
- schema: {};
686
- standaloneSchema: {};
687
- macro: {};
688
- macroFn: {};
689
- parser: {};
690
- response: {};
691
- } & {
692
- schema: {};
693
- standaloneSchema: {};
694
- macro: {};
695
- macroFn: {};
696
- parser: {};
697
- response: {};
698
- }) | ({
699
- schema: {};
700
- standaloneSchema: {};
701
- macro: {};
702
- macroFn: {};
703
- parser: {};
704
- response: {};
705
- } & {
706
- schema: {};
707
- standaloneSchema: {};
708
- macro: {};
709
- macroFn: {};
710
- parser: {};
711
- response: {};
712
- } & {
713
- schema: import("elysia").UnwrapRoute<{
714
- cookie: import("@sinclair/typebox").TObject<{
715
- user_session_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TTemplateLiteralSyntax<"${string}-${string}-${string}-${string}-${string}">>;
716
- }>;
717
- }, {}, "">;
718
- standaloneSchema: {};
719
- macro: {};
720
- macroFn: {};
721
- parser: {};
722
- response: import("elysia").ExtractErrorFromHandle<{
723
- readonly protectRoute: <AuthReturn, AuthFailReturn = never>(handleAuth: (user: import(".").AuthHtmxUser) => AuthReturn | Promise<AuthReturn>, handleAuthFail?: ((error: {
724
- readonly code: "Bad Request";
725
- readonly message: "Cookies are missing";
726
- } | {
727
- readonly code: "Unauthorized";
728
- readonly message: "User is not authenticated";
729
- }) => AuthFailReturn) | undefined) => Promise<import("elysia").ElysiaCustomStatusResponse<"Bad Request", "Cookies are missing", 400> | import("elysia").ElysiaCustomStatusResponse<"Unauthorized", "User is not authenticated", 401> | AuthReturn | NonNullable<AuthFailReturn>>;
730
- }>;
731
- })) & {
732
- schema: {};
733
- standaloneSchema: {};
734
- macro: {};
735
- macroFn: {};
736
- parser: {};
737
- response: {};
738
- }, (((((((((((((((({} | ({
739
- [x: string]: {
740
- post: {
741
- body: {
742
- email: string;
743
- password: string;
744
- };
745
- params: {};
746
- query: unknown;
747
- headers: unknown;
748
- response: {
749
- [x: number]: {};
750
- };
751
- };
752
- };
753
- } & {
754
- [x: string]: {
755
- post: {
756
- body: {
757
- token: string;
758
- };
759
- params: {};
760
- query: unknown;
761
- headers: unknown;
762
- response: {
763
- 400: "Invalid or expired verification token";
764
- 200: {
765
- readonly status: "email_verified";
766
- };
767
- 422: {
768
- type: "validation";
769
- on: string;
770
- summary?: string;
771
- message?: string;
772
- found?: unknown;
773
- property?: string;
774
- expected?: string;
775
- };
776
- };
777
- };
778
- };
779
- } & {
780
- [x: string]: {
781
- request: {
782
- post: {
783
- body: {
784
- email: string;
785
- };
786
- params: {};
787
- query: unknown;
788
- headers: unknown;
789
- response: {
790
- 200: {
791
- readonly status: "verification_requested";
792
- };
793
- 422: {
794
- type: "validation";
795
- on: string;
796
- summary?: string;
797
- message?: string;
798
- found?: unknown;
799
- property?: string;
800
- expected?: string;
801
- };
802
- };
803
- };
804
- };
805
- };
806
- } & {
807
- [x: string]: {
808
- post: {
809
- body: {
810
- email: string;
811
- password: string;
812
- };
813
- params: {};
814
- query: unknown;
815
- headers: unknown;
816
- response: {
817
- 401: "Invalid email or password";
818
- 403: {
819
- readonly status: "email_not_verified";
820
- };
821
- 200: {
822
- readonly status: "mfa_required";
823
- } | {
824
- readonly passwordCompromised: boolean;
825
- readonly status: "authenticated";
826
- };
827
- 422: {
828
- type: "validation";
829
- on: string;
830
- summary?: string;
831
- message?: string;
832
- found?: unknown;
833
- property?: string;
834
- expected?: string;
835
- };
836
- 429: {
837
- readonly retryAfterMs: number | undefined;
838
- readonly status: "account_locked";
839
- };
840
- };
841
- };
842
- };
843
- } & {
844
- [x: string]: {
845
- request: {
846
- post: {
847
- body: {
848
- email: string;
849
- };
850
- params: {};
851
- query: unknown;
852
- headers: unknown;
853
- response: {
854
- 200: {
855
- readonly status: "reset_requested";
856
- };
857
- 422: {
858
- type: "validation";
859
- on: string;
860
- summary?: string;
861
- message?: string;
862
- found?: unknown;
863
- property?: string;
864
- expected?: string;
865
- };
866
- };
867
- };
868
- };
869
- };
870
- } & {
871
- [x: string]: {
872
- post: {
873
- body: {
874
- token: string;
875
- password: string;
876
- };
877
- params: {};
878
- query: unknown;
879
- headers: unknown;
880
- response: {
881
- 400: "Invalid or expired reset token" | {
882
- readonly message: "Password does not meet the policy";
883
- readonly violations: import(".").PasswordPolicyViolation[];
884
- };
885
- 200: {
886
- readonly status: "password_reset";
887
- };
888
- 422: {
889
- type: "validation";
890
- on: string;
891
- summary?: string;
892
- message?: string;
893
- found?: unknown;
894
- property?: string;
895
- expected?: string;
896
- };
897
- };
898
- };
899
- };
900
- })) & ({} | ({
901
- [x: string]: {
902
- get: {
903
- body: unknown;
904
- params: {};
905
- query: unknown;
906
- headers: unknown;
907
- response: {
908
- 401: "Authentication required";
909
- 200: {
910
- backupCodesRemaining: number;
911
- enabled: boolean;
912
- smsBackup: {
913
- enabled: boolean;
914
- phone: string | null;
915
- };
916
- totp: {
917
- enabled: boolean;
918
- };
919
- };
920
- 422: {
921
- type: "validation";
922
- on: string;
923
- summary?: string;
924
- message?: string;
925
- found?: unknown;
926
- property?: string;
927
- expected?: string;
928
- };
929
- };
930
- };
931
- };
932
- } & {
933
- [x: string]: {
934
- delete: {
935
- body: unknown;
936
- params: {};
937
- query: unknown;
938
- headers: unknown;
939
- response: {
940
- 401: "Authentication required";
941
- 200: {
942
- readonly status: "disabled";
943
- };
944
- 422: {
945
- type: "validation";
946
- on: string;
947
- summary?: string;
948
- message?: string;
949
- found?: unknown;
950
- property?: string;
951
- expected?: string;
952
- };
953
- };
954
- };
955
- };
956
- } & {
957
- [x: string]: {
958
- post: {
959
- body: unknown;
960
- params: {};
961
- query: unknown;
962
- headers: unknown;
963
- response: {
964
- 401: "Authentication required";
965
- 200: {
966
- readonly secret: string;
967
- readonly uri: string;
968
- };
969
- 422: {
970
- type: "validation";
971
- on: string;
972
- summary?: string;
973
- message?: string;
974
- found?: unknown;
975
- property?: string;
976
- expected?: string;
977
- };
978
- };
979
- };
980
- };
981
- } & {
982
- [x: string]: {
983
- post: {
984
- body: {
985
- code: string;
986
- };
987
- params: {};
988
- query: unknown;
989
- headers: unknown;
990
- response: {
991
- 400: "No TOTP enrollment in progress" | "Invalid TOTP code";
992
- 401: "Authentication required";
993
- 200: {
994
- readonly backupCodes: string[];
995
- };
996
- 422: {
997
- type: "validation";
998
- on: string;
999
- summary?: string;
1000
- message?: string;
1001
- found?: unknown;
1002
- property?: string;
1003
- expected?: string;
1004
- };
1005
- };
1006
- };
1007
- };
1008
- } & {
1009
- [x: string]: {
1010
- post: {
1011
- body: {
1012
- phone: string;
1013
- };
1014
- params: {};
1015
- query: unknown;
1016
- headers: unknown;
1017
- response: {
1018
- 400: "Phone must be in E.164 format";
1019
- 401: "Authentication required";
1020
- 501: "SMS MFA is not configured";
1021
- 200: {
1022
- readonly phone: string;
1023
- };
1024
- 422: {
1025
- type: "validation";
1026
- on: string;
1027
- summary?: string;
1028
- message?: string;
1029
- found?: unknown;
1030
- property?: string;
1031
- expected?: string;
1032
- };
1033
- };
1034
- };
1035
- };
1036
- } & {
1037
- [x: string]: {
1038
- post: {
1039
- body: {
1040
- code: string;
1041
- };
1042
- params: {};
1043
- query: unknown;
1044
- headers: unknown;
1045
- response: {
1046
- 400: "No SMS enrollment in progress" | "SMS code expired" | "Invalid SMS code";
1047
- 401: "Authentication required";
1048
- 200: {
1049
- readonly status: "enrolled";
1050
- };
1051
- 422: {
1052
- type: "validation";
1053
- on: string;
1054
- summary?: string;
1055
- message?: string;
1056
- found?: unknown;
1057
- property?: string;
1058
- expected?: string;
1059
- };
1060
- 429: "Too many attempts";
1061
- };
1062
- };
1063
- };
1064
- } & {
1065
- [x: string]: {
1066
- post: {
1067
- body: {
1068
- code?: string | undefined;
1069
- action?: "verify" | "send" | undefined;
1070
- factor?: "sms" | undefined;
1071
- };
1072
- params: {};
1073
- query: unknown;
1074
- headers: unknown;
1075
- response: {
1076
- 400: "SMS code required" | "No SMS code in progress";
1077
- 401: "SMS code expired" | "Too many attempts" | "No MFA challenge in progress" | "Invalid MFA code";
1078
- 200: {
1079
- readonly status: "sent";
1080
- } | {
1081
- readonly status: "authenticated";
1082
- };
1083
- 422: {
1084
- type: "validation";
1085
- on: string;
1086
- summary?: string;
1087
- message?: string;
1088
- found?: unknown;
1089
- property?: string;
1090
- expected?: string;
1091
- };
1092
- };
1093
- };
1094
- };
1095
- }))) & {}) & ({} | ({
1096
- [x: string]: {
1097
- get: {
1098
- body: unknown;
1099
- params: {};
1100
- query: unknown;
1101
- headers: unknown;
1102
- response: {
1103
- 401: "Authentication required";
1104
- 501: "Session management requires an authSessionStore";
1105
- 200: {
1106
- readonly sessions: {
1107
- authenticatedAt?: number;
1108
- current: boolean;
1109
- expiresAt: number;
1110
- id: import("./types").UserSessionId;
1111
- }[];
1112
- };
1113
- 422: {
1114
- type: "validation";
1115
- on: string;
1116
- summary?: string;
1117
- message?: string;
1118
- found?: unknown;
1119
- property?: string;
1120
- expected?: string;
1121
- };
1122
- };
1123
- };
1124
- };
1125
- } & {
1126
- [x: string]: {
1127
- ":id": {
1128
- delete: {
1129
- body: unknown;
1130
- params: {
1131
- id: string;
1132
- };
1133
- query: unknown;
1134
- headers: unknown;
1135
- response: {
1136
- 400: "Invalid session id";
1137
- 401: "Authentication required";
1138
- 501: "Session management requires an authSessionStore";
1139
- 404: "Session not found";
1140
- 200: {
1141
- readonly revoked: `${string}-${string}-${string}-${string}-${string}`;
1142
- };
1143
- 422: {
1144
- type: "validation";
1145
- on: string;
1146
- summary?: string;
1147
- message?: string;
1148
- found?: unknown;
1149
- property?: string;
1150
- expected?: string;
1151
- };
1152
- };
1153
- };
1154
- };
1155
- };
1156
- }))) & ({} | ({
1157
- [x: string]: {
1158
- get: {
1159
- body: unknown;
1160
- params: {
1161
- organizationId: string;
1162
- };
1163
- query: unknown;
1164
- headers: unknown;
1165
- response: {
1166
- 404: "No OIDC connection is configured for this organization";
1167
- 200: Response;
1168
- 422: {
1169
- type: "validation";
1170
- on: string;
1171
- summary?: string;
1172
- message?: string;
1173
- found?: unknown;
1174
- property?: string;
1175
- expected?: string;
1176
- };
1177
- };
1178
- };
1179
- };
1180
- } & {
1181
- [x: string]: {
1182
- get: {
1183
- body: unknown;
1184
- params: {
1185
- organizationId: string;
1186
- };
1187
- query: {
1188
- code?: string | undefined;
1189
- state?: string | undefined;
1190
- };
1191
- headers: unknown;
1192
- response: {
1193
- 400: "SSO session cookies are missing" | "Invalid SSO callback request" | "SSO organization mismatch" | "OIDC token response is missing an id_token";
1194
- 404: "No OIDC connection is configured for this organization";
1195
- 200: Response;
1196
- 422: {
1197
- type: "validation";
1198
- on: string;
1199
- summary?: string;
1200
- message?: string;
1201
- found?: unknown;
1202
- property?: string;
1203
- expected?: string;
1204
- };
1205
- 500: "OIDC sign-in failed";
1206
- };
1207
- };
1208
- };
1209
- }))) & ({} | ({
1210
- [x: string]: {
1211
- get: {
1212
- body: unknown;
1213
- params: {
1214
- organizationId: string;
1215
- };
1216
- query: unknown;
1217
- headers: unknown;
1218
- response: {
1219
- 404: "No SAML connection is configured for this organization";
1220
- 200: Response;
1221
- 422: {
1222
- type: "validation";
1223
- on: string;
1224
- summary?: string;
1225
- message?: string;
1226
- found?: unknown;
1227
- property?: string;
1228
- expected?: string;
1229
- };
1230
- };
1231
- };
1232
- };
1233
- } & {
1234
- [x: string]: {
1235
- post: {
1236
- body: {
1237
- RelayState?: string | undefined;
1238
- SAMLResponse: string;
1239
- };
1240
- params: {
1241
- organizationId: string;
1242
- };
1243
- query: unknown;
1244
- headers: unknown;
1245
- response: {
1246
- 404: "No SAML connection is configured for this organization";
1247
- 200: Response;
1248
- 422: {
1249
- type: "validation";
1250
- on: string;
1251
- summary?: string;
1252
- message?: string;
1253
- found?: unknown;
1254
- property?: string;
1255
- expected?: string;
1256
- };
1257
- 500: "SAML sign-in failed";
1258
- };
1259
- };
1260
- };
1261
- } & {
1262
- [x: string]: {
1263
- get: {
1264
- body: unknown;
1265
- params: {
1266
- organizationId: string;
1267
- };
1268
- query: unknown;
1269
- headers: unknown;
1270
- response: {
1271
- 404: "No SAML connection is configured for this organization";
1272
- 200: Response;
1273
- 422: {
1274
- type: "validation";
1275
- on: string;
1276
- summary?: string;
1277
- message?: string;
1278
- found?: unknown;
1279
- property?: string;
1280
- expected?: string;
1281
- };
1282
- };
1283
- };
1284
- };
1285
- } & {
1286
- [x: string]: {
1287
- get: {
1288
- body: unknown;
1289
- params: {
1290
- organizationId: string;
1291
- };
1292
- query: unknown;
1293
- headers: unknown;
1294
- response: {
1295
- 200: Response;
1296
- 422: {
1297
- type: "validation";
1298
- on: string;
1299
- summary?: string;
1300
- message?: string;
1301
- found?: unknown;
1302
- property?: string;
1303
- expected?: string;
1304
- };
1305
- };
1306
- };
1307
- };
1308
- } & {
1309
- [x: string]: {
1310
- get: {
1311
- body: unknown;
1312
- params: {
1313
- organizationId: string;
1314
- };
1315
- query: {
1316
- RelayState?: string | undefined;
1317
- SAMLResponse?: string | undefined;
1318
- SAMLRequest?: string | undefined;
1319
- SigAlg?: string | undefined;
1320
- Signature?: string | undefined;
1321
- };
1322
- headers: unknown;
1323
- response: {
1324
- 400: "Missing SAMLRequest or SAMLResponse" | "Invalid SAML LogoutRequest";
1325
- 501: "SAML Single Logout is not configured";
1326
- 404: "No SAML connection is configured for this organization";
1327
- 200: Response;
1328
- 422: {
1329
- type: "validation";
1330
- on: string;
1331
- summary?: string;
1332
- message?: string;
1333
- found?: unknown;
1334
- property?: string;
1335
- expected?: string;
1336
- };
1337
- 500: "SAML logout failed";
1338
- };
1339
- };
1340
- };
1341
- }))) & ({} | {
1342
- [x: string]: {
1343
- get: {
1344
- body: unknown;
1345
- params: {};
1346
- query: {
1347
- email?: string | undefined;
1348
- };
1349
- headers: unknown;
1350
- response: {
1351
- 400: "An \"email\" query parameter is required" | "A valid email address is required";
1352
- 404: "No SSO organization is configured for this email domain" | "No SSO connection is configured for this organization";
1353
- 200: Response;
1354
- 422: {
1355
- type: "validation";
1356
- on: string;
1357
- summary?: string;
1358
- message?: string;
1359
- found?: unknown;
1360
- property?: string;
1361
- expected?: string;
1362
- };
1363
- };
1364
- };
1365
- };
1366
- })) & ({} | ({
1367
- [x: string]: {
1368
- get: {
1369
- body: unknown;
1370
- params: {};
1371
- query: unknown;
1372
- headers: unknown;
1373
- response: {
1374
- 200: Response;
1375
- };
1376
- };
1377
- };
1378
- } & {
1379
- [x: string]: {
1380
- post: {
1381
- body: unknown;
1382
- params: {};
1383
- query: unknown;
1384
- headers: unknown;
1385
- response: {
1386
- 200: Response;
1387
- };
1388
- };
1389
- };
1390
- } & {
1391
- [x: string]: {
1392
- get: {
1393
- body: unknown;
1394
- params: {};
1395
- query: {
1396
- filter?: string | undefined;
1397
- };
1398
- headers: unknown;
1399
- response: {
1400
- 200: Response;
1401
- 422: {
1402
- type: "validation";
1403
- on: string;
1404
- summary?: string;
1405
- message?: string;
1406
- found?: unknown;
1407
- property?: string;
1408
- expected?: string;
1409
- };
1410
- };
1411
- };
1412
- };
1413
- } & {
1414
- [x: string]: {
1415
- get: {
1416
- body: unknown;
1417
- params: {
1418
- id: string;
1419
- };
1420
- query: unknown;
1421
- headers: unknown;
1422
- response: {
1423
- 200: Response;
1424
- 422: {
1425
- type: "validation";
1426
- on: string;
1427
- summary?: string;
1428
- message?: string;
1429
- found?: unknown;
1430
- property?: string;
1431
- expected?: string;
1432
- };
1433
- };
1434
- };
1435
- };
1436
- } & {
1437
- [x: string]: {
1438
- put: {
1439
- body: unknown;
1440
- params: {
1441
- id: string;
1442
- };
1443
- query: unknown;
1444
- headers: unknown;
1445
- response: {
1446
- 200: Response;
1447
- 422: {
1448
- type: "validation";
1449
- on: string;
1450
- summary?: string;
1451
- message?: string;
1452
- found?: unknown;
1453
- property?: string;
1454
- expected?: string;
1455
- };
1456
- };
1457
- };
1458
- };
1459
- } & {
1460
- [x: string]: {
1461
- patch: {
1462
- body: unknown;
1463
- params: {
1464
- id: string;
1465
- };
1466
- query: unknown;
1467
- headers: unknown;
1468
- response: {
1469
- 200: Response;
1470
- 422: {
1471
- type: "validation";
1472
- on: string;
1473
- summary?: string;
1474
- message?: string;
1475
- found?: unknown;
1476
- property?: string;
1477
- expected?: string;
1478
- };
1479
- };
1480
- };
1481
- };
1482
- } & {
1483
- [x: string]: {
1484
- delete: {
1485
- body: unknown;
1486
- params: {
1487
- id: string;
1488
- };
1489
- query: unknown;
1490
- headers: unknown;
1491
- response: {
1492
- 200: Response;
1493
- 422: {
1494
- type: "validation";
1495
- on: string;
1496
- summary?: string;
1497
- message?: string;
1498
- found?: unknown;
1499
- property?: string;
1500
- expected?: string;
1501
- };
1502
- };
1503
- };
1504
- };
1505
- } & {
1506
- [x: string]: {
1507
- post: {
1508
- body: unknown;
1509
- params: {};
1510
- query: unknown;
1511
- headers: unknown;
1512
- response: {
1513
- 200: Response;
1514
- };
1515
- };
1516
- };
1517
- } & {
1518
- [x: string]: {
1519
- get: {
1520
- body: unknown;
1521
- params: {};
1522
- query: {
1523
- filter?: string | undefined;
1524
- };
1525
- headers: unknown;
1526
- response: {
1527
- 200: Response;
1528
- 422: {
1529
- type: "validation";
1530
- on: string;
1531
- summary?: string;
1532
- message?: string;
1533
- found?: unknown;
1534
- property?: string;
1535
- expected?: string;
1536
- };
1537
- };
1538
- };
1539
- };
1540
- } & {
1541
- [x: string]: {
1542
- get: {
1543
- body: unknown;
1544
- params: {
1545
- id: string;
1546
- };
1547
- query: unknown;
1548
- headers: unknown;
1549
- response: {
1550
- 200: Response;
1551
- 422: {
1552
- type: "validation";
1553
- on: string;
1554
- summary?: string;
1555
- message?: string;
1556
- found?: unknown;
1557
- property?: string;
1558
- expected?: string;
1559
- };
1560
- };
1561
- };
1562
- };
1563
- } & {
1564
- [x: string]: {
1565
- put: {
1566
- body: unknown;
1567
- params: {
1568
- id: string;
1569
- };
1570
- query: unknown;
1571
- headers: unknown;
1572
- response: {
1573
- 200: Response;
1574
- 422: {
1575
- type: "validation";
1576
- on: string;
1577
- summary?: string;
1578
- message?: string;
1579
- found?: unknown;
1580
- property?: string;
1581
- expected?: string;
1582
- };
1583
- };
1584
- };
1585
- };
1586
- } & {
1587
- [x: string]: {
1588
- patch: {
1589
- body: unknown;
1590
- params: {
1591
- id: string;
1592
- };
1593
- query: unknown;
1594
- headers: unknown;
1595
- response: {
1596
- 200: Response;
1597
- 422: {
1598
- type: "validation";
1599
- on: string;
1600
- summary?: string;
1601
- message?: string;
1602
- found?: unknown;
1603
- property?: string;
1604
- expected?: string;
1605
- };
1606
- };
1607
- };
1608
- };
1609
- } & {
1610
- [x: string]: {
1611
- delete: {
1612
- body: unknown;
1613
- params: {
1614
- id: string;
1615
- };
1616
- query: unknown;
1617
- headers: unknown;
1618
- response: {
1619
- 200: Response;
1620
- 422: {
1621
- type: "validation";
1622
- on: string;
1623
- summary?: string;
1624
- message?: string;
1625
- found?: unknown;
1626
- property?: string;
1627
- expected?: string;
1628
- };
1629
- };
1630
- };
1631
- };
1632
- } & {
1633
- [x: string]: {
1634
- get: {
1635
- body: unknown;
1636
- params: {};
1637
- query: unknown;
1638
- headers: unknown;
1639
- response: {
1640
- 200: Response;
1641
- };
1642
- };
1643
- };
1644
- } & {
1645
- [x: string]: {
1646
- get: {
1647
- body: unknown;
1648
- params: {
1649
- id: string;
1650
- };
1651
- query: unknown;
1652
- headers: unknown;
1653
- response: {
1654
- 200: Response;
1655
- 422: {
1656
- type: "validation";
1657
- on: string;
1658
- summary?: string;
1659
- message?: string;
1660
- found?: unknown;
1661
- property?: string;
1662
- expected?: string;
1663
- };
1664
- };
1665
- };
1666
- };
1667
- } & {
1668
- [x: string]: {
1669
- get: {
1670
- body: unknown;
1671
- params: {};
1672
- query: unknown;
1673
- headers: unknown;
1674
- response: {
1675
- 200: Response;
1676
- };
1677
- };
1678
- };
1679
- } & {
1680
- [x: string]: {
1681
- get: {
1682
- body: unknown;
1683
- params: {
1684
- id: string;
1685
- };
1686
- query: unknown;
1687
- headers: unknown;
1688
- response: {
1689
- 200: Response;
1690
- 422: {
1691
- type: "validation";
1692
- on: string;
1693
- summary?: string;
1694
- message?: string;
1695
- found?: unknown;
1696
- property?: string;
1697
- expected?: string;
1698
- };
1699
- };
1700
- };
1701
- };
1702
- }))) & ({} | {
1703
- [x: string]: {
1704
- post: {
1705
- body: {
1706
- client_id?: string | undefined;
1707
- scope?: string | undefined;
1708
- grant_type?: string | undefined;
1709
- client_secret?: string | undefined;
1710
- };
1711
- params: {};
1712
- query: unknown;
1713
- headers: unknown;
1714
- response: {
1715
- 200: Response;
1716
- 422: {
1717
- type: "validation";
1718
- on: string;
1719
- summary?: string;
1720
- message?: string;
1721
- found?: unknown;
1722
- property?: string;
1723
- expected?: string;
1724
- };
1725
- };
1726
- };
1727
- };
1728
- })) & ({} | ({
1729
- [x: string]: {
1730
- get: {
1731
- body: unknown;
1732
- params: {};
1733
- query: {
1734
- client_id?: string | undefined;
1735
- scope?: string | undefined;
1736
- nonce?: string | undefined;
1737
- claims?: string | undefined;
1738
- resource?: string | undefined;
1739
- request?: string | undefined;
1740
- redirect_uri?: string | undefined;
1741
- acr_values?: string | undefined;
1742
- code_challenge?: string | undefined;
1743
- code_challenge_method?: string | undefined;
1744
- id_token_hint?: string | undefined;
1745
- max_age?: string | undefined;
1746
- prompt?: string | undefined;
1747
- request_uri?: string | undefined;
1748
- response_mode?: string | undefined;
1749
- response_type?: string | undefined;
1750
- state?: string | undefined;
1751
- };
1752
- headers: unknown;
1753
- response: {
1754
- 200: Response;
1755
- 422: {
1756
- type: "validation";
1757
- on: string;
1758
- summary?: string;
1759
- message?: string;
1760
- found?: unknown;
1761
- property?: string;
1762
- expected?: string;
1763
- };
1764
- };
1765
- };
1766
- };
1767
- } & {
1768
- [x: string]: {
1769
- post: {
1770
- body: {
1771
- code?: string | undefined;
1772
- client_id?: string | undefined;
1773
- scope?: string | undefined;
1774
- audience?: string | undefined;
1775
- resource?: string | undefined;
1776
- refresh_token?: string | undefined;
1777
- device_code?: string | undefined;
1778
- auth_req_id?: string | undefined;
1779
- grant_type?: string | undefined;
1780
- claim_token?: string | undefined;
1781
- assertion?: string | undefined;
1782
- client_secret?: string | undefined;
1783
- redirect_uri?: string | undefined;
1784
- client_assertion?: string | undefined;
1785
- client_assertion_type?: string | undefined;
1786
- code_verifier?: string | undefined;
1787
- 'pre-authorized_code'?: string | undefined;
1788
- subject_token?: string | undefined;
1789
- subject_token_type?: string | undefined;
1790
- };
1791
- params: {};
1792
- query: unknown;
1793
- headers: unknown;
1794
- response: {
1795
- 200: Response;
1796
- 422: {
1797
- type: "validation";
1798
- on: string;
1799
- summary?: string;
1800
- message?: string;
1801
- found?: unknown;
1802
- property?: string;
1803
- expected?: string;
1804
- };
1805
- };
1806
- };
1807
- };
1808
- } & {
1809
- [x: string]: {
1810
- post: {
1811
- body: {
1812
- client_id?: string | undefined;
1813
- scope?: string | undefined;
1814
- nonce?: string | undefined;
1815
- audience?: string | undefined;
1816
- claims?: string | undefined;
1817
- resource?: string | undefined;
1818
- client_secret?: string | undefined;
1819
- redirect_uri?: string | undefined;
1820
- acr_values?: string | undefined;
1821
- code_challenge?: string | undefined;
1822
- code_challenge_method?: string | undefined;
1823
- response_type?: string | undefined;
1824
- state?: string | undefined;
1825
- client_assertion?: string | undefined;
1826
- client_assertion_type?: string | undefined;
1827
- };
1828
- params: {};
1829
- query: unknown;
1830
- headers: {
1831
- authorization?: string | undefined;
1832
- };
1833
- response: {
1834
- 200: Response;
1835
- 422: {
1836
- type: "validation";
1837
- on: string;
1838
- summary?: string;
1839
- message?: string;
1840
- found?: unknown;
1841
- property?: string;
1842
- expected?: string;
1843
- };
1844
- };
1845
- };
1846
- };
1847
- } & {
1848
- [x: string]: {
1849
- post: {
1850
- body: {
1851
- client_id?: string | undefined;
1852
- client_secret?: string | undefined;
1853
- token_type_hint?: string | undefined;
1854
- token: string;
1855
- };
1856
- params: {};
1857
- query: unknown;
1858
- headers: {
1859
- authorization?: string | undefined;
1860
- };
1861
- response: {
1862
- 200: Response;
1863
- 422: {
1864
- type: "validation";
1865
- on: string;
1866
- summary?: string;
1867
- message?: string;
1868
- found?: unknown;
1869
- property?: string;
1870
- expected?: string;
1871
- };
1872
- };
1873
- };
1874
- };
1875
- } & {
1876
- [x: string]: {
1877
- post: {
1878
- body: {
1879
- client_id?: string | undefined;
1880
- client_secret?: string | undefined;
1881
- token_type_hint?: string | undefined;
1882
- token: string;
1883
- };
1884
- params: {};
1885
- query: unknown;
1886
- headers: {
1887
- authorization?: string | undefined;
1888
- };
1889
- response: {
1890
- 200: Response;
1891
- 422: {
1892
- type: "validation";
1893
- on: string;
1894
- summary?: string;
1895
- message?: string;
1896
- found?: unknown;
1897
- property?: string;
1898
- expected?: string;
1899
- };
1900
- };
1901
- };
1902
- };
1903
- } & {
1904
- [x: string]: {
1905
- post: {
1906
- body: {
1907
- client_id?: string | undefined;
1908
- scope?: string | undefined;
1909
- client_secret?: string | undefined;
1910
- login_hint?: string | undefined;
1911
- binding_message?: string | undefined;
1912
- };
1913
- params: {};
1914
- query: unknown;
1915
- headers: {
1916
- authorization?: string | undefined;
1917
- };
1918
- response: {
1919
- 200: Response;
1920
- 422: {
1921
- type: "validation";
1922
- on: string;
1923
- summary?: string;
1924
- message?: string;
1925
- found?: unknown;
1926
- property?: string;
1927
- expected?: string;
1928
- };
1929
- };
1930
- };
1931
- };
1932
- } & {
1933
- [x: string]: {
1934
- post: {
1935
- body: {
1936
- client_id?: string | undefined;
1937
- scope?: string | undefined;
1938
- client_secret?: string | undefined;
1939
- };
1940
- params: {};
1941
- query: unknown;
1942
- headers: {
1943
- authorization?: string | undefined;
1944
- };
1945
- response: {
1946
- 200: Response;
1947
- 422: {
1948
- type: "validation";
1949
- on: string;
1950
- summary?: string;
1951
- message?: string;
1952
- found?: unknown;
1953
- property?: string;
1954
- expected?: string;
1955
- };
1956
- };
1957
- };
1958
- };
1959
- } & {
1960
- [x: string]: {
1961
- post: {
1962
- body: {
1963
- action?: "deny" | "approve" | undefined;
1964
- user_code: string;
1965
- };
1966
- params: {};
1967
- query: unknown;
1968
- headers: unknown;
1969
- response: {
1970
- 200: Response;
1971
- 422: {
1972
- type: "validation";
1973
- on: string;
1974
- summary?: string;
1975
- message?: string;
1976
- found?: unknown;
1977
- property?: string;
1978
- expected?: string;
1979
- };
1980
- };
1981
- };
1982
- };
1983
- } & {
1984
- [x: string]: {
1985
- get: {
1986
- body: unknown;
1987
- params: {};
1988
- query: {
1989
- client_id?: string | undefined;
1990
- id_token_hint?: string | undefined;
1991
- state?: string | undefined;
1992
- post_logout_redirect_uri?: string | undefined;
1993
- };
1994
- headers: unknown;
1995
- response: {
1996
- 200: Response;
1997
- 422: {
1998
- type: "validation";
1999
- on: string;
2000
- summary?: string;
2001
- message?: string;
2002
- found?: unknown;
2003
- property?: string;
2004
- expected?: string;
2005
- };
2006
- };
2007
- };
2008
- };
2009
- } & {
2010
- [x: string]: {
2011
- post: {
2012
- body: {
2013
- client_id?: string | undefined;
2014
- id_token_hint?: string | undefined;
2015
- state?: string | undefined;
2016
- post_logout_redirect_uri?: string | undefined;
2017
- };
2018
- params: {};
2019
- query: unknown;
2020
- headers: unknown;
2021
- response: {
2022
- 200: Response;
2023
- 422: {
2024
- type: "validation";
2025
- on: string;
2026
- summary?: string;
2027
- message?: string;
2028
- found?: unknown;
2029
- property?: string;
2030
- expected?: string;
2031
- };
2032
- };
2033
- };
2034
- };
2035
- } & {
2036
- [x: string]: {
2037
- post: {
2038
- body: {
2039
- jwks?: any;
2040
- scope?: string | undefined;
2041
- backchannel_logout_uri?: string | undefined;
2042
- client_name?: string | undefined;
2043
- grant_types?: string[] | undefined;
2044
- jwks_uri?: string | undefined;
2045
- post_logout_redirect_uris?: string[] | undefined;
2046
- redirect_uris?: string[] | undefined;
2047
- };
2048
- params: {};
2049
- query: unknown;
2050
- headers: {
2051
- authorization?: string | undefined;
2052
- };
2053
- response: {
2054
- 200: Response;
2055
- 422: {
2056
- type: "validation";
2057
- on: string;
2058
- summary?: string;
2059
- message?: string;
2060
- found?: unknown;
2061
- property?: string;
2062
- expected?: string;
2063
- };
2064
- };
2065
- };
2066
- };
2067
- } & {
2068
- [x: string]: {
2069
- ":clientId": {
2070
- get: {
2071
- body: unknown;
2072
- params: {
2073
- clientId: string;
2074
- };
2075
- query: unknown;
2076
- headers: {
2077
- authorization?: string | undefined;
2078
- };
2079
- response: {
2080
- 200: Response;
2081
- 422: {
2082
- type: "validation";
2083
- on: string;
2084
- summary?: string;
2085
- message?: string;
2086
- found?: unknown;
2087
- property?: string;
2088
- expected?: string;
2089
- };
2090
- };
2091
- };
2092
- };
2093
- };
2094
- } & {
2095
- [x: string]: {
2096
- ":clientId": {
2097
- put: {
2098
- body: {
2099
- jwks?: any;
2100
- scope?: string | undefined;
2101
- backchannel_logout_uri?: string | undefined;
2102
- client_name?: string | undefined;
2103
- grant_types?: string[] | undefined;
2104
- jwks_uri?: string | undefined;
2105
- post_logout_redirect_uris?: string[] | undefined;
2106
- redirect_uris?: string[] | undefined;
2107
- };
2108
- params: {
2109
- clientId: string;
2110
- };
2111
- query: unknown;
2112
- headers: {
2113
- authorization?: string | undefined;
2114
- };
2115
- response: {
2116
- 200: Response;
2117
- 422: {
2118
- type: "validation";
2119
- on: string;
2120
- summary?: string;
2121
- message?: string;
2122
- found?: unknown;
2123
- property?: string;
2124
- expected?: string;
2125
- };
2126
- };
2127
- };
2128
- };
2129
- };
2130
- } & {
2131
- [x: string]: {
2132
- ":clientId": {
2133
- delete: {
2134
- body: unknown;
2135
- params: {
2136
- clientId: string;
2137
- };
2138
- query: unknown;
2139
- headers: {
2140
- authorization?: string | undefined;
2141
- };
2142
- response: {
2143
- 200: Response;
2144
- 422: {
2145
- type: "validation";
2146
- on: string;
2147
- summary?: string;
2148
- message?: string;
2149
- found?: unknown;
2150
- property?: string;
2151
- expected?: string;
2152
- };
2153
- };
2154
- };
2155
- };
2156
- };
2157
- } & {
2158
- [x: string]: {
2159
- get: {
2160
- body: unknown;
2161
- params: {};
2162
- query: unknown;
2163
- headers: {
2164
- authorization?: string | undefined;
2165
- };
2166
- response: {
2167
- 200: Response;
2168
- 422: {
2169
- type: "validation";
2170
- on: string;
2171
- summary?: string;
2172
- message?: string;
2173
- found?: unknown;
2174
- property?: string;
2175
- expected?: string;
2176
- };
2177
- };
2178
- };
2179
- };
2180
- } & {
2181
- [x: string]: {
2182
- post: {
2183
- body: {
2184
- access_token?: string | undefined;
2185
- };
2186
- params: {};
2187
- query: unknown;
2188
- headers: {
2189
- authorization?: string | undefined;
2190
- };
2191
- response: {
2192
- 200: Response;
2193
- 422: {
2194
- type: "validation";
2195
- on: string;
2196
- summary?: string;
2197
- message?: string;
2198
- found?: unknown;
2199
- property?: string;
2200
- expected?: string;
2201
- };
2202
- };
2203
- };
2204
- };
2205
- } & {
2206
- [x: string]: {
2207
- get: {
2208
- body: unknown;
2209
- params: {};
2210
- query: unknown;
2211
- headers: unknown;
2212
- response: {
2213
- 200: {
2214
- keys: {
2215
- alg: string;
2216
- crv: string | undefined;
2217
- kid: string;
2218
- kty: string | undefined;
2219
- use: string;
2220
- x: string | undefined;
2221
- y: string | undefined;
2222
- }[];
2223
- };
2224
- };
2225
- };
2226
- };
2227
- } & {
2228
- ".well-known": {
2229
- "openid-configuration": {
2230
- get: {
2231
- body: unknown;
2232
- params: {};
2233
- query: unknown;
2234
- headers: unknown;
2235
- response: {
2236
- 200: Record<string, unknown>;
2237
- };
2238
- };
2239
- };
2240
- };
2241
- } & {
2242
- ".well-known": {
2243
- "oauth-authorization-server": {
2244
- get: {
2245
- body: unknown;
2246
- params: {};
2247
- query: unknown;
2248
- headers: unknown;
2249
- response: {
2250
- 200: Record<string, unknown>;
2251
- };
2252
- };
2253
- };
2254
- };
2255
- }))) & ({} | ({
2256
- [x: string]: {
2257
- get: {
2258
- body: unknown;
2259
- params: {};
2260
- query: unknown;
2261
- headers: unknown;
2262
- response: {
2263
- 401: "Authentication required";
2264
- 200: {
2265
- readonly organizations: {
2266
- membership: import(".").OrganizationMembership;
2267
- organization: import(".").Organization | undefined;
2268
- }[];
2269
- };
2270
- 422: {
2271
- type: "validation";
2272
- on: string;
2273
- summary?: string;
2274
- message?: string;
2275
- found?: unknown;
2276
- property?: string;
2277
- expected?: string;
2278
- };
2279
- };
2280
- };
2281
- };
2282
- } & {
2283
- [x: string]: {
2284
- post: {
2285
- body: {
2286
- metadata?: {} | undefined;
2287
- name: string;
2288
- };
2289
- params: {};
2290
- query: unknown;
2291
- headers: unknown;
2292
- response: {
2293
- 401: "Authentication required";
2294
- 403: "Cannot create organizations";
2295
- 200: {
2296
- readonly organization: import(".").Organization;
2297
- };
2298
- 422: {
2299
- type: "validation";
2300
- on: string;
2301
- summary?: string;
2302
- message?: string;
2303
- found?: unknown;
2304
- property?: string;
2305
- expected?: string;
2306
- };
2307
- };
2308
- };
2309
- };
2310
- } & {
2311
- [x: string]: {
2312
- ":organizationId": {
2313
- invitations: {
2314
- post: {
2315
- body: {
2316
- roles?: string[] | undefined;
2317
- email: string;
2318
- };
2319
- params: {
2320
- organizationId: string;
2321
- };
2322
- query: unknown;
2323
- headers: unknown;
2324
- response: {
2325
- 401: "Authentication required";
2326
- 403: "Cannot manage members";
2327
- 200: {
2328
- readonly invitationId: string;
2329
- readonly token: string;
2330
- };
2331
- 422: {
2332
- type: "validation";
2333
- on: string;
2334
- summary?: string;
2335
- message?: string;
2336
- found?: unknown;
2337
- property?: string;
2338
- expected?: string;
2339
- };
2340
- };
2341
- };
2342
- };
2343
- };
2344
- };
2345
- } & {
2346
- [x: string]: {
2347
- ":organizationId": {
2348
- invitations: {
2349
- get: {
2350
- body: unknown;
2351
- params: {
2352
- organizationId: string;
2353
- };
2354
- query: unknown;
2355
- headers: unknown;
2356
- response: {
2357
- 401: "Authentication required";
2358
- 403: "Cannot manage members";
2359
- 200: {
2360
- readonly invitations: {
2361
- email: string;
2362
- expiresAt: number;
2363
- invitationId: string;
2364
- roles: string[];
2365
- state: import(".").InvitationState;
2366
- }[];
2367
- };
2368
- 422: {
2369
- type: "validation";
2370
- on: string;
2371
- summary?: string;
2372
- message?: string;
2373
- found?: unknown;
2374
- property?: string;
2375
- expected?: string;
2376
- };
2377
- };
2378
- };
2379
- };
2380
- };
2381
- };
2382
- } & {
2383
- [x: string]: {
2384
- ":organizationId": {
2385
- invitations: {
2386
- ":invitationId": {
2387
- delete: {
2388
- body: unknown;
2389
- params: {
2390
- organizationId: string;
2391
- invitationId: string;
2392
- };
2393
- query: unknown;
2394
- headers: unknown;
2395
- response: {
2396
- 401: "Authentication required";
2397
- 403: "Cannot manage members";
2398
- 404: "Invitation not found";
2399
- 200: {
2400
- readonly revoked: string;
2401
- };
2402
- 422: {
2403
- type: "validation";
2404
- on: string;
2405
- summary?: string;
2406
- message?: string;
2407
- found?: unknown;
2408
- property?: string;
2409
- expected?: string;
2410
- };
2411
- };
2412
- };
2413
- };
2414
- };
2415
- };
2416
- };
2417
- } & {
2418
- [x: string]: {
2419
- invitations: {
2420
- accept: {
2421
- post: {
2422
- body: {
2423
- token: string;
2424
- };
2425
- params: {};
2426
- query: unknown;
2427
- headers: unknown;
2428
- response: {
2429
- 400: "Invalid or expired invitation";
2430
- 401: "Authentication required";
2431
- 200: {
2432
- readonly organizationId: string;
2433
- readonly roles: string[];
2434
- };
2435
- 422: {
2436
- type: "validation";
2437
- on: string;
2438
- summary?: string;
2439
- message?: string;
2440
- found?: unknown;
2441
- property?: string;
2442
- expected?: string;
2443
- };
2444
- };
2445
- };
2446
- };
2447
- };
2448
- };
2449
- } & {
2450
- [x: string]: {
2451
- ":organizationId": {
2452
- members: {
2453
- get: {
2454
- body: unknown;
2455
- params: {
2456
- organizationId: string;
2457
- };
2458
- query: unknown;
2459
- headers: unknown;
2460
- response: {
2461
- 401: "Authentication required";
2462
- 403: "Not a member";
2463
- 200: {
2464
- readonly members: import(".").OrganizationMembership[];
2465
- };
2466
- 422: {
2467
- type: "validation";
2468
- on: string;
2469
- summary?: string;
2470
- message?: string;
2471
- found?: unknown;
2472
- property?: string;
2473
- expected?: string;
2474
- };
2475
- };
2476
- };
2477
- };
2478
- };
2479
- };
2480
- } & {
2481
- [x: string]: {
2482
- ":organizationId": {
2483
- members: {
2484
- ":userId": {
2485
- delete: {
2486
- body: unknown;
2487
- params: {
2488
- userId: string;
2489
- organizationId: string;
2490
- };
2491
- query: unknown;
2492
- headers: unknown;
2493
- response: {
2494
- 401: "Authentication required";
2495
- 403: "Cannot manage members";
2496
- 200: {
2497
- readonly removed: string;
2498
- };
2499
- 422: {
2500
- type: "validation";
2501
- on: string;
2502
- summary?: string;
2503
- message?: string;
2504
- found?: unknown;
2505
- property?: string;
2506
- expected?: string;
2507
- };
2508
- };
2509
- };
2510
- };
2511
- };
2512
- };
2513
- };
2514
- }))) & ({} | ({
2515
- [x: string]: {
2516
- ":organizationId": {
2517
- get: {
2518
- body: unknown;
2519
- params: {
2520
- organizationId: string;
2521
- };
2522
- query: unknown;
2523
- headers: unknown;
2524
- response: {
2525
- 401: "Authentication required";
2526
- 403: "Cannot manage roles";
2527
- 200: {
2528
- readonly roles: readonly import(".").Role[];
2529
- };
2530
- 422: {
2531
- type: "validation";
2532
- on: string;
2533
- summary?: string;
2534
- message?: string;
2535
- found?: unknown;
2536
- property?: string;
2537
- expected?: string;
2538
- };
2539
- };
2540
- };
2541
- };
2542
- };
2543
- } & {
2544
- [x: string]: {
2545
- ":organizationId": {
2546
- members: {
2547
- ":userId": {
2548
- put: {
2549
- body: {
2550
- roles: string[];
2551
- };
2552
- params: {
2553
- userId: string;
2554
- organizationId: string;
2555
- };
2556
- query: unknown;
2557
- headers: unknown;
2558
- response: {
2559
- 401: "Authentication required";
2560
- 403: "Cannot manage roles";
2561
- 404: "Membership not found";
2562
- 200: {
2563
- readonly roles: string[];
2564
- };
2565
- 422: {
2566
- type: "validation";
2567
- on: string;
2568
- summary?: string;
2569
- message?: string;
2570
- found?: unknown;
2571
- property?: string;
2572
- expected?: string;
2573
- };
2574
- };
2575
- };
2576
- };
2577
- };
2578
- };
2579
- };
2580
- }))) & ({} | ({
2581
- [x: string]: {
2582
- session: {
2583
- get: {
2584
- body: unknown;
2585
- params: {};
2586
- query: unknown;
2587
- headers: unknown;
2588
- response: {
2589
- 401: "Invalid or expired setup link";
2590
- 200: {
2591
- readonly capabilities: import(".").SetupCapability[];
2592
- readonly configured: {
2593
- readonly oidc: boolean;
2594
- readonly saml: boolean;
2595
- };
2596
- readonly expiresAt: number;
2597
- readonly oidc: {
2598
- redirectUri: string;
2599
- } | undefined;
2600
- readonly organizationId: string;
2601
- readonly saml: {
2602
- acsUrl: string;
2603
- entityId: string;
2604
- metadataUrl: string;
2605
- } | undefined;
2606
- readonly scim: {
2607
- baseUrl: string;
2608
- } | undefined;
2609
- };
2610
- };
2611
- };
2612
- };
2613
- };
2614
- } & {
2615
- [x: string]: {
2616
- connection: {
2617
- saml: {
2618
- put: {
2619
- body: {
2620
- idpSloUrl?: string | undefined;
2621
- idpEntityId: string;
2622
- idpSsoUrl: string;
2623
- idpX509Cert: string;
2624
- };
2625
- params: {};
2626
- query: unknown;
2627
- headers: unknown;
2628
- response: {
2629
- 401: "Invalid or expired setup link";
2630
- 403: "This setup link cannot configure SAML";
2631
- 501: "SSO is not configured";
2632
- 200: {
2633
- readonly configured: true;
2634
- readonly type: "saml";
2635
- };
2636
- 422: {
2637
- type: "validation";
2638
- on: string;
2639
- summary?: string;
2640
- message?: string;
2641
- found?: unknown;
2642
- property?: string;
2643
- expected?: string;
2644
- };
2645
- };
2646
- };
2647
- };
2648
- };
2649
- };
2650
- } & {
2651
- [x: string]: {
2652
- connection: {
2653
- oidc: {
2654
- put: {
2655
- body: {
2656
- scopes?: string[] | undefined;
2657
- redirectUri?: string | undefined;
2658
- issuer: string;
2659
- clientId: string;
2660
- clientSecret: string;
2661
- };
2662
- params: {};
2663
- query: unknown;
2664
- headers: unknown;
2665
- response: {
2666
- 401: "Invalid or expired setup link";
2667
- 403: "This setup link cannot configure OIDC";
2668
- 501: "SSO is not configured";
2669
- 200: {
2670
- readonly configured: true;
2671
- readonly type: "oidc";
2672
- };
2673
- 422: {
2674
- type: "validation";
2675
- on: string;
2676
- summary?: string;
2677
- message?: string;
2678
- found?: unknown;
2679
- property?: string;
2680
- expected?: string;
2681
- };
2682
- };
2683
- };
2684
- };
2685
- };
2686
- };
2687
- } & {
2688
- [x: string]: {
2689
- scim: {
2690
- token: {
2691
- post: {
2692
- body: unknown;
2693
- params: {};
2694
- query: unknown;
2695
- headers: unknown;
2696
- response: {
2697
- 401: "Invalid or expired setup link";
2698
- 403: "This setup link cannot configure SCIM";
2699
- 501: "SCIM is not configured";
2700
- 200: {
2701
- readonly baseUrl: `${string}/${string}`;
2702
- readonly token: string;
2703
- readonly tokenId: string;
2704
- };
2705
- };
2706
- };
2707
- };
2708
- };
2709
- };
2710
- }))) & ({} | ({
2711
- [x: string]: {
2712
- register: {
2713
- options: {
2714
- post: {
2715
- body: unknown;
2716
- params: {};
2717
- query: unknown;
2718
- headers: unknown;
2719
- response: {
2720
- 401: "Authentication required";
2721
- 200: {
2722
- [x: string]: unknown;
2723
- };
2724
- 422: {
2725
- type: "validation";
2726
- on: string;
2727
- summary?: string;
2728
- message?: string;
2729
- found?: unknown;
2730
- property?: string;
2731
- expected?: string;
2732
- };
2733
- };
2734
- };
2735
- };
2736
- };
2737
- };
2738
- } & {
2739
- [x: string]: {
2740
- register: {
2741
- verify: {
2742
- post: {
2743
- body: {};
2744
- params: {};
2745
- query: unknown;
2746
- headers: unknown;
2747
- response: {
2748
- 400: "No registration challenge in progress" | "WebAuthn registration failed";
2749
- 401: "Authentication required";
2750
- 200: {
2751
- readonly credentialId: string;
2752
- readonly verified: true;
2753
- };
2754
- 422: {
2755
- type: "validation";
2756
- on: string;
2757
- summary?: string;
2758
- message?: string;
2759
- found?: unknown;
2760
- property?: string;
2761
- expected?: string;
2762
- };
2763
- };
2764
- };
2765
- };
2766
- };
2767
- };
2768
- } & {
2769
- [x: string]: {
2770
- authenticate: {
2771
- options: {
2772
- post: {
2773
- body: unknown;
2774
- params: {};
2775
- query: unknown;
2776
- headers: unknown;
2777
- response: {
2778
- 200: {
2779
- [x: string]: unknown;
2780
- };
2781
- 422: {
2782
- type: "validation";
2783
- on: string;
2784
- summary?: string;
2785
- message?: string;
2786
- found?: unknown;
2787
- property?: string;
2788
- expected?: string;
2789
- };
2790
- };
2791
- };
2792
- };
2793
- };
2794
- };
2795
- } & {
2796
- [x: string]: {
2797
- authenticate: {
2798
- verify: {
2799
- post: {
2800
- body: {
2801
- id: string;
2802
- };
2803
- params: {};
2804
- query: unknown;
2805
- headers: unknown;
2806
- response: {
2807
- 400: "No authentication challenge in progress";
2808
- 401: "Unknown credential" | "WebAuthn authentication failed";
2809
- 200: {
2810
- readonly status: "authenticated";
2811
- };
2812
- 422: {
2813
- type: "validation";
2814
- on: string;
2815
- summary?: string;
2816
- message?: string;
2817
- found?: unknown;
2818
- property?: string;
2819
- expected?: string;
2820
- };
2821
- };
2822
- };
2823
- };
2824
- };
2825
- };
2826
- }))) & ({} | ({
2827
- [x: string]: {
2828
- export: {
2829
- get: {
2830
- body: unknown;
2831
- params: {};
2832
- query: unknown;
2833
- headers: unknown;
2834
- response: {
2835
- 401: "Authentication required";
2836
- 200: {
2837
- [x: string]: unknown;
2838
- };
2839
- 422: {
2840
- type: "validation";
2841
- on: string;
2842
- summary?: string;
2843
- message?: string;
2844
- found?: unknown;
2845
- property?: string;
2846
- expected?: string;
2847
- };
2848
- };
2849
- };
2850
- };
2851
- };
2852
- } & {
2853
- [x: string]: {
2854
- delete: {
2855
- body: unknown;
2856
- params: {};
2857
- query: unknown;
2858
- headers: unknown;
2859
- response: {
2860
- 401: "Authentication required";
2861
- 200: {
2862
- readonly deleted: true;
2863
- };
2864
- 422: {
2865
- type: "validation";
2866
- on: string;
2867
- summary?: string;
2868
- message?: string;
2869
- found?: unknown;
2870
- property?: string;
2871
- expected?: string;
2872
- };
2873
- };
2874
- };
2875
- };
2876
- }))) & ({} | ({
2877
- htmx: {
2878
- login: {
2879
- get: {
2880
- body: unknown;
2881
- params: {};
2882
- query: unknown;
2883
- headers: unknown;
2884
- response: {
2885
- 200: Response;
2886
- 422: {
2887
- type: "validation";
2888
- on: string;
2889
- summary?: string;
2890
- message?: string;
2891
- found?: unknown;
2892
- property?: string;
2893
- expected?: string;
2894
- };
2895
- };
2896
- };
2897
- };
2898
- };
2899
- } & {
2900
- htmx: {
2901
- link: {
2902
- get: {
2903
- body: unknown;
2904
- params: {};
2905
- query: unknown;
2906
- headers: unknown;
2907
- response: {
2908
- 200: Response;
2909
- 422: {
2910
- type: "validation";
2911
- on: string;
2912
- summary?: string;
2913
- message?: string;
2914
- found?: unknown;
2915
- property?: string;
2916
- expected?: string;
2917
- };
2918
- };
2919
- };
2920
- };
2921
- };
2922
- } & {
2923
- htmx: {
2924
- "connector-links": {
2925
- get: {
2926
- body: unknown;
2927
- params: {};
2928
- query: unknown;
2929
- headers: unknown;
2930
- response: {
2931
- 200: Response;
2932
- 422: {
2933
- type: "validation";
2934
- on: string;
2935
- summary?: string;
2936
- message?: string;
2937
- found?: unknown;
2938
- property?: string;
2939
- expected?: string;
2940
- };
2941
- };
2942
- };
2943
- };
2944
- };
2945
- } & {
2946
- htmx: {
2947
- "auth-menu": {
2948
- get: {
2949
- body: unknown;
2950
- params: {};
2951
- query: unknown;
2952
- headers: unknown;
2953
- response: {
2954
- 400: "Cookies are missing";
2955
- 401: "User is not authenticated";
2956
- 200: Response;
2957
- 422: {
2958
- type: "validation";
2959
- on: string;
2960
- summary?: string;
2961
- message?: string;
2962
- found?: unknown;
2963
- property?: string;
2964
- expected?: string;
2965
- };
2966
- };
2967
- };
2968
- };
2969
- };
2970
- } & {
2971
- htmx: {
2972
- me: {
2973
- get: {
2974
- body: unknown;
2975
- params: {};
2976
- query: unknown;
2977
- headers: unknown;
2978
- response: {
2979
- 400: "Cookies are missing";
2980
- 401: "User is not authenticated";
2981
- 200: Response;
2982
- 422: {
2983
- type: "validation";
2984
- on: string;
2985
- summary?: string;
2986
- message?: string;
2987
- found?: unknown;
2988
- property?: string;
2989
- expected?: string;
2990
- };
2991
- };
2992
- };
2993
- };
2994
- };
2995
- } & {
2996
- htmx: {
2997
- account: {
2998
- get: {
2999
- body: unknown;
3000
- params: {};
3001
- query: unknown;
3002
- headers: unknown;
3003
- response: {
3004
- 400: "Cookies are missing";
3005
- 401: "User is not authenticated";
3006
- 200: Response;
3007
- 422: {
3008
- type: "validation";
3009
- on: string;
3010
- summary?: string;
3011
- message?: string;
3012
- found?: unknown;
3013
- property?: string;
3014
- expected?: string;
3015
- };
3016
- };
3017
- };
3018
- };
3019
- };
3020
- } & {
3021
- htmx: {
3022
- identities: {
3023
- get: {
3024
- body: unknown;
3025
- params: {};
3026
- query: unknown;
3027
- headers: unknown;
3028
- response: {
3029
- 400: "Cookies are missing";
3030
- 401: "User is not authenticated";
3031
- 200: Response;
3032
- 422: {
3033
- type: "validation";
3034
- on: string;
3035
- summary?: string;
3036
- message?: string;
3037
- found?: unknown;
3038
- property?: string;
3039
- expected?: string;
3040
- };
3041
- };
3042
- };
3043
- };
3044
- };
3045
- } & {
3046
- htmx: {
3047
- identities: {
3048
- ":id": {
3049
- primary: {
3050
- post: {
3051
- body: unknown;
3052
- params: {
3053
- id: string;
3054
- } & {};
3055
- query: unknown;
3056
- headers: unknown;
3057
- response: {
3058
- 400: "Cookies are missing";
3059
- 401: "User is not authenticated";
3060
- 200: Response;
3061
- 422: {
3062
- type: "validation";
3063
- on: string;
3064
- summary?: string;
3065
- message?: string;
3066
- found?: unknown;
3067
- property?: string;
3068
- expected?: string;
3069
- };
3070
- };
3071
- };
3072
- };
3073
- };
3074
- };
3075
- };
3076
- } & {
3077
- htmx: {
3078
- identities: {
3079
- ":id": {
3080
- delete: {
3081
- body: unknown;
3082
- params: {
3083
- id: string;
3084
- } & {};
3085
- query: unknown;
3086
- headers: unknown;
3087
- response: {
3088
- 400: "Cookies are missing";
3089
- 401: "User is not authenticated";
3090
- 200: Response;
3091
- 422: {
3092
- type: "validation";
3093
- on: string;
3094
- summary?: string;
3095
- message?: string;
3096
- found?: unknown;
3097
- property?: string;
3098
- expected?: string;
3099
- };
3100
- };
3101
- };
3102
- };
3103
- };
3104
- };
3105
- } & {
3106
- htmx: {
3107
- merge: {
3108
- ":id": {
3109
- post: {
3110
- body: unknown;
3111
- params: {
3112
- id: string;
3113
- } & {};
3114
- query: unknown;
3115
- headers: unknown;
3116
- response: {
3117
- 400: "Cookies are missing";
3118
- 401: "User is not authenticated";
3119
- 200: Response;
3120
- 422: {
3121
- type: "validation";
3122
- on: string;
3123
- summary?: string;
3124
- message?: string;
3125
- found?: unknown;
3126
- property?: string;
3127
- expected?: string;
3128
- };
3129
- };
3130
- };
3131
- };
3132
- };
3133
- };
3134
- } & {
3135
- htmx: {
3136
- merge: {
3137
- ":id": {
3138
- delete: {
3139
- body: unknown;
3140
- params: {
3141
- id: string;
3142
- } & {};
3143
- query: unknown;
3144
- headers: unknown;
3145
- response: {
3146
- 400: "Cookies are missing";
3147
- 401: "User is not authenticated";
3148
- 200: Response;
3149
- 422: {
3150
- type: "validation";
3151
- on: string;
3152
- summary?: string;
3153
- message?: string;
3154
- found?: unknown;
3155
- property?: string;
3156
- expected?: string;
3157
- };
3158
- };
3159
- };
3160
- };
3161
- };
3162
- };
3163
- } & {
3164
- htmx: {
3165
- "connector-list": {
3166
- get: {
3167
- body: unknown;
3168
- params: {};
3169
- query: unknown;
3170
- headers: unknown;
3171
- response: {
3172
- 400: "Cookies are missing";
3173
- 401: "User is not authenticated";
3174
- 200: Response;
3175
- 422: {
3176
- type: "validation";
3177
- on: string;
3178
- summary?: string;
3179
- message?: string;
3180
- found?: unknown;
3181
- property?: string;
3182
- expected?: string;
3183
- };
3184
- };
3185
- };
3186
- };
3187
- };
3188
- } & {
3189
- htmx: {
3190
- connectors: {
3191
- grants: {
3192
- ":id": {
3193
- delete: {
3194
- body: unknown;
3195
- params: {
3196
- id: string;
3197
- } & {};
3198
- query: unknown;
3199
- headers: unknown;
3200
- response: {
3201
- 400: "Cookies are missing";
3202
- 401: "User is not authenticated";
3203
- 200: Response;
3204
- 422: {
3205
- type: "validation";
3206
- on: string;
3207
- summary?: string;
3208
- message?: string;
3209
- found?: unknown;
3210
- property?: string;
3211
- expected?: string;
3212
- };
3213
- };
3214
- };
3215
- };
3216
- };
3217
- };
3218
- };
3219
- } & {
3220
- htmx: {
3221
- connectors: {
3222
- bindings: {
3223
- ":id": {
3224
- delete: {
3225
- body: unknown;
3226
- params: {
3227
- id: string;
3228
- } & {};
3229
- query: unknown;
3230
- headers: unknown;
3231
- response: {
3232
- 400: "Cookies are missing";
3233
- 401: "User is not authenticated";
3234
- 200: Response;
3235
- 422: {
3236
- type: "validation";
3237
- on: string;
3238
- summary?: string;
3239
- message?: string;
3240
- found?: unknown;
3241
- property?: string;
3242
- expected?: string;
3243
- };
3244
- };
3245
- };
3246
- };
3247
- };
3248
- };
3249
- };
3250
- } & {
3251
- htmx: {
3252
- "login-redirect": {
3253
- get: {
3254
- body: unknown;
3255
- params: {};
3256
- query: unknown;
3257
- headers: unknown;
3258
- response: {
3259
- 200: Response;
3260
- 422: {
3261
- type: "validation";
3262
- on: string;
3263
- summary?: string;
3264
- message?: string;
3265
- found?: unknown;
3266
- property?: string;
3267
- expected?: string;
3268
- };
3269
- };
3270
- };
3271
- };
3272
- };
3273
- } & {
3274
- htmx: {
3275
- "delete-account": {
3276
- post: {
3277
- body: unknown;
3278
- params: {};
3279
- query: unknown;
3280
- headers: unknown;
3281
- response: {
3282
- 400: "Cookies are missing";
3283
- 401: "User is not authenticated";
3284
- 200: Response;
3285
- 422: {
3286
- type: "validation";
3287
- on: string;
3288
- summary?: string;
3289
- message?: string;
3290
- found?: unknown;
3291
- property?: string;
3292
- expected?: string;
3293
- };
3294
- };
3295
- };
3296
- };
3297
- };
3298
- } & {
3299
- htmx: {
3300
- signout: {
3301
- get: {
3302
- body: unknown;
3303
- params: {};
3304
- query: unknown;
3305
- headers: unknown;
3306
- response: {
3307
- 200: Response;
3308
- 422: {
3309
- type: "validation";
3310
- on: string;
3311
- summary?: string;
3312
- message?: string;
3313
- found?: unknown;
3314
- property?: string;
3315
- expected?: string;
3316
- };
3317
- };
3318
- };
3319
- };
3320
- };
3321
- }))) & ({} | ({
3322
- [x: string]: {
3323
- get: {
3324
- body: unknown;
3325
- params: {};
3326
- query: unknown;
3327
- headers: unknown;
3328
- response: {
3329
- 200: {
3330
- resource: string;
3331
- scopes_supported: string[];
3332
- resource_name?: string | undefined;
3333
- resource_logo_uri?: string | undefined;
3334
- authorization_servers: string[];
3335
- bearer_methods_supported: string[];
3336
- };
3337
- };
3338
- };
3339
- };
3340
- } & {
3341
- [x: string]: {
3342
- get: {
3343
- body: unknown;
3344
- params: {};
3345
- query: unknown;
3346
- headers: unknown;
3347
- response: {
3348
- 200: Response;
3349
- };
3350
- };
3351
- };
3352
- } & {
3353
- [x: string]: {
3354
- get: {
3355
- body: unknown;
3356
- params: {};
3357
- query: unknown;
3358
- headers: unknown;
3359
- response: {
3360
- 200: Response;
3361
- };
3362
- };
3363
- };
3364
- } & {
3365
- [x: string]: {
3366
- post: {
3367
- body: unknown;
3368
- params: {};
3369
- query: unknown;
3370
- headers: unknown;
3371
- response: {
3372
- 200: Response;
3373
- };
3374
- };
3375
- };
3376
- } & {
3377
- [x: string]: {
3378
- post: {
3379
- body: unknown;
3380
- params: {};
3381
- query: unknown;
3382
- headers: unknown;
3383
- response: {
3384
- 200: Response;
3385
- };
3386
- };
3387
- };
3388
- } & {
3389
- [x: string]: {
3390
- post: {
3391
- body: unknown;
3392
- params: {};
3393
- query: unknown;
3394
- headers: unknown;
3395
- response: {
3396
- 200: Response;
3397
- };
3398
- };
3399
- };
3400
- })), {
3401
- derive: {};
3402
- resolve: {};
3403
- schema: {};
3404
- standaloneSchema: {};
3405
- response: {};
3406
- }, {
3407
- derive: {};
3408
- resolve: {};
3409
- schema: {};
3410
- standaloneSchema: {};
3411
- response: {};
3412
- } & {
3413
- derive: {};
3414
- resolve: {};
3415
- schema: {};
3416
- standaloneSchema: {};
3417
- response: {};
3418
- } & {
3419
- derive: {};
3420
- resolve: {};
3421
- schema: {};
3422
- standaloneSchema: {};
3423
- response: {};
3424
- }>;
3425
- }>;
3426
- export * from './actions';
3427
- export type AuthApplications<UserType> = Awaited<ReturnType<typeof createAuthApplications<UserType>>>;
3428
- export { createAuthContext } from './authContext';
3429
- export type { AuthInstance } from './authContext';
3430
- export * from './types';
3431
- export * from './typebox';
3432
- export * from './vault/config';
3433
- export * from './vault/types';
3434
- export { createInMemoryVaultStore } from './vault/inMemoryVaultStore';
3435
- export { createNeonVaultStore, createPostgresVaultStore, vaultEntriesTable } from './vault/postgresVaultStore';
3436
- export { createFederatedTokenStore, getOrRefreshFederatedTokens } from './federation/tokenStore';
3437
- export type { FederatedTokenRefresher, FederatedTokenSet, FederatedTokenStore } from './federation/tokenStore';
3438
- export { decodeSessionUserRecord, type AuthSessionStore, type SessionUserDecoder } from './session/types';
3439
- export { isAuthIntent, isUserSessionId, isValidUser } from './typeGuards';
3440
- export { AuthIdentityConflictError } from './errors';
3441
- export { sessionStore } from './session/state';
3442
- export { createInMemoryAuthSessionStore } from './session/inMemoryStore';
3443
- export { createNeonAuthSessionStore } from './session/neonStore';
3444
- export { providersFromEnv, type ProviderSelection } from './providersFromEnv';
3445
- export { createRedisAuthSessionStore, type RedisSessionClient } from './session/redisStore';
3446
- export { createLinkedProviderCredentialResolver } from './linkedProviders/resolver';
3447
- export { createOAuthLinkedProviderCredentialResolver } from './linkedProviders/oauthResolver';
3448
- export { createOAuthAccountLinkedProviderCredentialResolver, type OAuthLinkedProviderAccount, type OAuthLinkedProviderAccountStore } from './linkedProviders/oauthAccountResolver';
3449
- export { createNeonLinkedProviderStores, createNeonOAuthLinkedProviderCredentialResolver } from './linkedProviders/neonStores';
3450
- export { createInMemoryLinkedProviderStores } from './linkedProviders/inMemoryStores';
3451
- export { protectRoutePlugin } from './routes/protectRoute';
3452
- export { sessionRoutes } from './routes/sessions';
3453
- export { stepUpPlugin } from './routes/stepUp';
3454
- export * from './session/sessionsConfig';
3455
- export { endImpersonation, isImpersonating, startImpersonation } from './session/impersonation';
3456
- export { createAnonymousSession, isAnonymousSession } from './session/anonymous';
3457
- export { addToSessionRing, listRingSessions, readSessionRing, removeFromSessionRing, switchActiveSession } from './session/multiSession';
3458
- export { listUserSessions, refreshUserSessions, revokeUserSessions } from './session/userSessions';
3459
- export type { UserSession } from './session/userSessions';
3460
- export { sessionCleanup } from './session/cleanup';
3461
- export { createAuthHtmxRoutes } from './htmx/routes';
3462
- export { resolveAuthHtmxRenderers } from './htmx/renderers';
3463
- export type { AuthHtmxConfig, AuthHtmxConnectorTarget, AuthHtmxProviderData, AuthHtmxProviderInfo, AuthHtmxRenderOverrides, AuthHtmxRenderersConfig, AuthHtmxUser, AuthIdentityPayload, LinkedProviderPayload } from './htmx/types';
3464
- export * from './utils';
3465
- export { buildClientProviders, resolveClientProviderEntry, resolveProviderClientConfiguration } from './providers/clients';
3466
- export type { OAuth2TokenResponse, OAuth2Client, OAuth2ClientForConfig, CustomProviderCredentials, ProviderConfig, ProviderOption, PKCEProvider, OIDCProvider, RefreshableProvider, RevocableProvider, ScopeRequiredProvider, ProvidersMap, ProviderConfiguration, CredentialsFor } from 'citra';
3467
- export { providers, providerOptions, createCustomOAuth2Client, defineProvider, refreshableProviderOptions, revocableProviderOptions, oidcProviderOptions, pkceProviderOptions, scopeRequiredProviderOptions, decodeJWT, extractPropFromIdentity, isValidProviderOption, isRefreshableOAuth2Client, isRefreshableProviderOption, isOIDCProviderOption, isPKCEProviderOption, isRevocableProviderOption, isRevocableOAuth2Client } from 'citra';
3468
- export * from './crypto';
3469
- export * from './tenancy';
3470
- export * from './credentials/config';
3471
- export * from './credentials/passwordPolicy';
3472
- export * from './credentials/backgroundOps';
3473
- export * from './credentials/emailValidation';
3474
- export { importUser, importUsers, rehashCredentialPassword } from './credentials/import';
3475
- export type { ImportUserResult, ImportUsersOptions, ImportableUser } from './credentials/import';
3476
- export { isLegacyHash, verifyAuth0Pbkdf2, verifyCognitoSha256 } from './credentials/legacyHashers';
3477
- export * from './credentials/types';
3478
- export { credentialRoutes } from './credentials/routes';
3479
- export { credentialsEmailVerification } from './credentials/emailVerification';
3480
- export { credentialsLogin } from './credentials/login';
3481
- export { credentialsPasswordReset } from './credentials/passwordReset';
3482
- export { credentialsRegister } from './credentials/register';
3483
- export { createInMemoryCredentialStore } from './credentials/inMemoryCredentialStore';
3484
- export { createNeonCredentialStore, createPostgresCredentialStore, credentialResetTokensTable, credentialsTable, credentialVerificationTokensTable } from './credentials/postgresCredentialStore';
3485
- export { createNeonDatabase } from './stores/postgres';
3486
- export type { AnyPgDatabase } from './stores/postgres';
3487
- export * from './mfa/config';
3488
- export * from './mfa/types';
3489
- export { consumeBackupCode, generateBackupCodes } from './mfa/backupCodes';
3490
- export { createMfaGate } from './mfa/gate';
3491
- export { mfaChallenge } from './mfa/challenge';
3492
- export { mfaRoutes } from './mfa/routes';
3493
- export { mfaManagementRoutes, type MfaStatus } from './mfa/management';
3494
- export { rotateMfaEncryptionKey } from './mfa/rotation';
3495
- export type { MfaKeyRotationResult } from './mfa/rotation';
3496
- export { mfaTotpRoutes } from './mfa/totp';
3497
- export { isE164Phone, maskPhone, mfaSmsRoutes } from './mfa/sms';
3498
- export { decryptTotpSecret, encryptTotpSecret } from './mfa/secret';
3499
- export { createInMemoryMfaStore } from './mfa/inMemoryMfaStore';
3500
- export { createNeonMfaStore, createPostgresMfaStore, mfaEnrollmentsTable } from './mfa/postgresMfaStore';
3501
- export * from './audit/config';
3502
- export * from './audit/types';
3503
- export { createTamperEvidentSink, hashAuditEvent, verifyAuditChain } from './audit/integrity';
3504
- export type { AuditChainResult, AuditIntegrity } from './audit/integrity';
3505
- export { createSiemLogStream } from './audit/siem';
3506
- export type { SiemEndpoint, SiemFormat } from './audit/siem';
3507
- export * from './abuse/captcha';
3508
- export * from './abuse/config';
3509
- export * from './authorization/config';
3510
- export { protectPermissionPlugin } from './authorization/protectPermission';
3511
- export * from './compliance/config';
3512
- export { complianceRoutes } from './compliance/routes';
3513
- export { createAuditRedactor } from './compliance/redaction';
3514
- export { createSecretCipher } from './compliance/cipher';
3515
- export type { SecretCipher } from './compliance/cipher';
3516
- export * from './lockout/config';
3517
- export * from './lockout/types';
3518
- export { createInMemoryLockoutStore } from './lockout/inMemoryLockoutStore';
3519
- export { createNeonLockoutStore, createPostgresLockoutStore, lockoutsTable } from './lockout/postgresLockoutStore';
3520
- export { createRedisLockoutStore } from './lockout/redisLockoutStore';
3521
- export type { RedisLike } from './stores/redis';
3522
- export { exportAuditCsv } from './audit/export';
3523
- export { createInMemoryAuditSink } from './audit/inMemoryAuditStore';
3524
- export { auditEventsTable, createNeonAuditSink, createPostgresAuditSink } from './audit/postgresAuditStore';
3525
- export * from './sso/types';
3526
- export * from './sso/config';
3527
- export * from './scim/types';
3528
- export * from './scim/config';
3529
- export * from './scim/extensions';
3530
- export { scimRoutes } from './scim/routes';
3531
- export * from './vc/sdJwt';
3532
- export { buildIssuerMetadata, createCredentialOffer, DEFAULT_VCI_ROUTE, exchangePreAuthorizedCode, issueCredential, PRE_AUTHORIZED_CODE_GRANT } from './oidc/vci';
3533
- export type { CredentialConfiguration, CredentialIssueInput, CredentialIssueResult, CredentialNonceRecord, CredentialNonceStore, CredentialOffer, CredentialOfferStore, PreAuthExchangeResult, VciConfig } from './oidc/vci';
3534
- export { createInMemoryCredentialNonceStore, createInMemoryCredentialOfferStore } from './oidc/inMemoryVciStores';
3535
- export { vciRoutes } from './oidc/vciRoutes';
3536
- export * from './vc/statusList';
3537
- export { statusListRoutes, DEFAULT_STATUS_ROUTE } from './vc/statusListRoutes';
3538
- export { buildHolderKeyBindingJwt, createPresentationRequest, parsePresentationToken, verifyPresentationResponse } from './vc/openid4vp';
3539
- export type { CreatePresentationRequestInput, PresentationRequest, PresentationRequestStore, PresentationResponseInput, PresentationVerifyError, PresentationVerifyResult, VerifiedPresentation, Vp4Config } from './vc/openid4vp';
3540
- export { createInMemoryPresentationRequestStore } from './vc/inMemoryVpStores';
3541
- export { vpRoutes, DEFAULT_VP_ROUTE } from './vc/vpRoutes';
3542
- export { createNeonCredentialNonceStore, createNeonCredentialOfferStore, createNeonPresentationRequestStore, createPostgresCredentialNonceStore, createPostgresCredentialOfferStore, createPostgresPresentationRequestStore, vcCredentialNoncesTable, vcCredentialOffersTable, vcPresentationRequestsTable } from './vc/postgresVcStores';
3543
- export { createInMemoryScimTokenStore } from './scim/inMemoryScimTokenStore';
3544
- export { createNeonScimTokenStore, createPostgresScimTokenStore, scimTokensTable } from './scim/postgresScimTokenStore';
3545
- export * from './apikeys/config';
3546
- export * from './apikeys/types';
3547
- export { apiKeysRoutes } from './apikeys/routes';
3548
- export * from './agents/config';
3549
- export * from './agents/types';
3550
- export * from './agents/registration';
3551
- export * from './agents/registrationClient';
3552
- export * from './agents/idJag';
3553
- export * from './agents/oauthGuide';
3554
- export { agentAuthPlugin, agentAuthChallenge } from './agents/routes';
3555
- export { resolveAgentPrincipal, agentHasScopes } from './agents/principal';
3556
- export { createOidcAgentCredentialVerifier } from './agents/oidcAdapter';
3557
- export { createInMemoryAgentDelegationStore, createInMemoryAgentIdentityRegistrationStore, createInMemoryAgentRegistrationStore } from './agents/inMemoryStores';
3558
- export { agentDelegationsTable, agentDelegationsBunSqlTable, agentIdentityRegistrationsTable, agentIdentityRegistrationsBunSqlTable, agentRegistrationsTable, agentRegistrationsBunSqlTable, createBunSqlDrizzleAgentDelegationStore, createBunSqlDrizzleAgentIdentityRegistrationStore, createBunSqlDrizzleAgentRegistrationStore, createNeonAgentDelegationStore, createNeonAgentIdentityRegistrationStore, createNeonAgentRegistrationStore, createDrizzleAgentDelegationStore, createPostgresAgentDelegationStore, createPostgresAgentIdentityRegistrationStore, createPostgresAgentRegistrationStore } from './agents/postgresStores';
3559
- export { createInMemoryAccessTokenStore, createInMemoryApiClientStore, createInMemoryApiKeyStore } from './apikeys/inMemoryStores';
3560
- export { accessTokensTable, apiClientsTable, apiKeysTable, createNeonAccessTokenStore, createNeonApiClientStore, createNeonApiKeyStore, createPostgresAccessTokenStore, createPostgresApiClientStore, createPostgresApiKeyStore } from './apikeys/postgresStores';
3561
- export * from './oidc/config';
3562
- export * from './oidc/clientIdMetadata';
3563
- export * from './oidc/types';
3564
- export { oidcProviderRoutes } from './oidc/routes';
3565
- export { generateSigningKey, jwkThumbprint, signJwt, signingVerificationKeys, toPublicJwk, verifyJwt, verifyJwtWithKeys } from './oidc/keys';
3566
- export type { SigningKey, SigningKeyIdentity } from './oidc/keys';
3567
- export { extractDpopNonceClaim, mintDpopNonce, verifyDpopNonce, verifyDpopProof } from './oidc/dpop';
3568
- export type { DpopResult } from './oidc/dpop';
3569
- export { CLIENT_ASSERTION_TYPE, verifyClientAssertion, verifyJwtSignedByClient } from './oidc/clientAuth';
3570
- export { parseSignedRequestObject } from './oidc/jar';
3571
- export type { JarParseResult } from './oidc/jar';
3572
- export { computeCertThumbprint, extractRfc9440ClientCert, resolveClientCert, verifyCertificateBoundToken } from './oidc/mtls';
3573
- export { createInMemoryAuthorizationCodeStore, createInMemoryBackchannelAuthStore, createInMemoryClientAssertionJtiStore, createInMemoryClientRegistrationTokenStore, createInMemoryDeviceAuthorizationStore, createInMemoryInitialAccessTokenStore, createInMemoryLogoutDeliveryStore, createInMemoryOAuthClientStore, createInMemoryOidcRefreshTokenStore, createInMemoryPushedAuthorizationRequestStore } from './oidc/inMemoryStores';
3574
- export { consumePushedRequest, pushAuthorizationRequest, DEFAULT_PAR_TTL_MS, REQUEST_URI_PREFIX } from './oidc/par';
3575
- export { fetchUserInfo, readUserInfoBearer, userInfoChallengeHeader } from './oidc/userinfo';
3576
- export type { UserInfoResult } from './oidc/userinfo';
3577
- export { fanOutBackchannelLogout, mintLogoutToken, resolvePostLogoutRedirect, verifyIdTokenHint } from './oidc/logout';
3578
- export { createNeonAuthorizationCodeStore, createNeonBackchannelAuthStore, createNeonClientAssertionJtiStore, createNeonClientRegistrationTokenStore, createNeonDeviceAuthorizationStore, createNeonInitialAccessTokenStore, createNeonLogoutDeliveryStore, createNeonOAuthClientStore, createNeonOidcRefreshTokenStore, createNeonPushedAuthorizationRequestStore, createPostgresAuthorizationCodeStore, createPostgresBackchannelAuthStore, createPostgresClientAssertionJtiStore, createPostgresClientRegistrationTokenStore, createPostgresDeviceAuthorizationStore, createPostgresInitialAccessTokenStore, createPostgresLogoutDeliveryStore, createPostgresOAuthClientStore, createPostgresOidcRefreshTokenStore, createPostgresPushedAuthorizationRequestStore, oauthClientAssertionJtisTable, oauthClientRegistrationTokensTable, oauthClientsTable, oauthCodesTable, oauthBackchannelAuthRequestsTable, oauthDeviceAuthorizationsTable, oauthInitialAccessTokensTable, oauthLogoutDeliveriesTable, oauthPushedAuthorizationRequestsTable, oauthRefreshTokensTable } from './oidc/postgresStores';
3579
- export { deleteRegisteredClient, getRegisteredClient, registerClient, updateRegisteredClient, type ClientRegistrationDecision, type ClientRegistrationMetadata, type OnClientRegistration, type RegisterClientResult } from './oidc/registration';
3580
- export * from './adaptive/config';
3581
- export * from './adaptive/fingerprint';
3582
- export * from './adaptive/types';
3583
- export { createInMemoryKnownDeviceStore, createInMemoryLoginHistoryStore } from './adaptive/inMemoryStores';
3584
- export { createNeonKnownDeviceStore, createNeonLoginHistoryStore, createPostgresKnownDeviceStore, createPostgresLoginHistoryStore, knownDevicesTable, loginHistoryTable } from './adaptive/postgresStores';
3585
- export * from './fga/config';
3586
- export * from './fga/schema';
3587
- export * from './fga/types';
3588
- export { createInMemoryWarrantStore, warrantKey } from './fga/inMemoryStores';
3589
- export { createRedisFgaCache, type RedisFgaCacheClient } from './fga/redisCheckCache';
3590
- export { initTracing, withSpan, type TracingConfig } from './telemetry/tracing';
3591
- export { blockMigrations, runMigrations, type BlockMigrations, type BlockName, type Migration } from './migrations';
3592
- export type { MigrationClient, MigrationQueryResult, MigrationRunResult, RunMigrationsOptions } from './migrations/runner';
3593
- export { createNeonWarrantStore, createPostgresWarrantStore, warrantsTable } from './fga/postgresStores';
3594
- export { ssoDiscoveryRoute } from './sso/discoveryRoute';
3595
- export { oidcSsoRoutes } from './sso/oidcRoutes';
3596
- export { samlIdpRoutes } from './sso/samlIdpRoutes';
3597
- export { samlSsoRoutes } from './sso/samlRoutes';
3598
- export { createInMemorySamlServiceProviderStore } from './sso/inMemorySamlServiceProviderStore';
3599
- export { createInMemorySsoConnectionStore } from './sso/inMemorySsoConnectionStore';
3600
- export { createNeonSamlServiceProviderStore, createPostgresSamlServiceProviderStore, samlServiceProvidersTable } from './sso/postgresSamlServiceProviderStore';
3601
- export { createNeonSsoConnectionStore, createPostgresSsoConnectionStore, ssoConnectionsTable } from './sso/postgresSsoConnectionStore';
3602
- export * from './webauthn/adapter';
3603
- export * from './webauthn/config';
3604
- export * from './webauthn/types';
3605
- export { webauthnRoutes } from './webauthn/routes';
3606
- export { createInMemoryWebAuthnCredentialStore } from './webauthn/inMemoryWebAuthnCredentialStore';
3607
- export { createNeonWebAuthnCredentialStore, createPostgresWebAuthnCredentialStore, webauthnCredentialsTable } from './webauthn/postgresWebAuthnCredentialStore';
3608
- export * from './organizations/config';
3609
- export * from './organizations/types';
3610
- export { acceptInvitation, createOrganization, inviteToOrganization, listUserOrganizations } from './organizations/operations';
3611
- export { organizationRoutes } from './organizations/routes';
3612
- export { createInMemoryOrganizationStore } from './organizations/inMemoryOrganizationStore';
3613
- export { createNeonOrganizationStore, createPostgresOrganizationStore, organizationInvitationsTable, organizationMembershipsTable, organizationsTable } from './organizations/postgresOrganizationStore';
3614
- export * from './roles/config';
3615
- export * from './roles/types';
3616
- export { createMembershipPermissionResolver, resolvePermissions } from './roles/resolver';
3617
- export { setMemberRoles } from './roles/operations';
3618
- export { roleRoutes } from './roles/routes';
3619
- export { createInMemoryRoleStore } from './roles/inMemoryRoleStore';
3620
- export { createNeonRoleStore, createPostgresRoleStore, rolesTable } from './roles/postgresRoleStore';
3621
- export * from './passwordless/config';
3622
- export * from './passwordless/types';
3623
- export { passwordlessRoutes } from './passwordless/routes';
3624
- export { createInMemoryPasswordlessTokenStore } from './passwordless/inMemoryPasswordlessTokenStore';
3625
- export { createNeonPasswordlessTokenStore, createPostgresPasswordlessTokenStore, passwordlessTokensTable } from './passwordless/postgresPasswordlessTokenStore';
3626
- export * from './webhooks/config';
3627
- export * from './webhooks/types';
3628
- export { createWebhookDispatcher } from './webhooks/dispatcher';
3629
- export { createInMemoryWebhookDeliveryStore } from './webhooks/inMemoryStore';
3630
- export { createNeonWebhookDeliveryStore, createPostgresWebhookDeliveryStore, webhookDeliveriesTable } from './webhooks/postgresStore';
3631
- export { signWebhook, verifyWebhookSignature } from './webhooks/sign';
3632
- export * from './portal/config';
3633
- export * from './portal/types';
3634
- export { createSetupSession, resolveSetupSession } from './portal/operations';
3635
- export { portalRoutes } from './portal/routes';
3636
- export { createInMemorySetupSessionStore } from './portal/inMemorySetupSessionStore';
3637
- export { createNeonSetupSessionStore, createPostgresSetupSessionStore, setupSessionsTable } from './portal/postgresSetupSessionStore';