@absolutejs/auth 0.65.5 → 0.66.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 (61) hide show
  1. package/dist/agents/context.d.ts +5 -18
  2. package/dist/agents/index.js +3 -3
  3. package/dist/agents/index.js.map +3 -3
  4. package/dist/agents/routes.d.ts +24 -56
  5. package/dist/apikeys/routes.d.ts +169 -78
  6. package/dist/authContext.d.ts +34 -79
  7. package/dist/authorization/protectPermission.d.ts +11 -23
  8. package/dist/cli/migrate.js +2 -2
  9. package/dist/cli/migrate.js.map +4 -4
  10. package/dist/compliance/routes.d.ts +179 -54
  11. package/dist/credentials/emailVerification.d.ts +173 -56
  12. package/dist/credentials/login.d.ts +192 -63
  13. package/dist/credentials/passwordReset.d.ts +171 -60
  14. package/dist/credentials/register.d.ts +182 -41
  15. package/dist/credentials/routes.d.ts +46 -36
  16. package/dist/htmx/configuredRoutes.d.ts +263 -114
  17. package/dist/htmx/routes.d.ts +261 -89
  18. package/dist/index.d.ts +663 -443
  19. package/dist/index.js +475 -448
  20. package/dist/index.js.map +48 -48
  21. package/dist/manifest.js +86 -4
  22. package/dist/manifest.js.map +3 -3
  23. package/dist/mfa/challenge.d.ts +189 -59
  24. package/dist/mfa/management.d.ts +179 -54
  25. package/dist/mfa/routes.d.ts +34 -40
  26. package/dist/mfa/sms.d.ts +187 -59
  27. package/dist/mfa/totp.d.ts +187 -57
  28. package/dist/oidc/routes.d.ts +73 -74
  29. package/dist/oidc/vciRoutes.d.ts +9 -45
  30. package/dist/organizations/routes.d.ts +215 -77
  31. package/dist/passwordless/routes.d.ts +22 -34
  32. package/dist/portal/routes.d.ts +162 -55
  33. package/dist/roles/routes.d.ts +198 -67
  34. package/dist/routes/authorize.d.ts +182 -90
  35. package/dist/routes/callback.d.ts +189 -38
  36. package/dist/routes/profile.d.ts +177 -51
  37. package/dist/routes/protectRoute.d.ts +11 -23
  38. package/dist/routes/refresh.d.ts +177 -51
  39. package/dist/routes/requireAuth.d.ts +9 -21
  40. package/dist/routes/revoke.d.ts +177 -51
  41. package/dist/routes/sessions.d.ts +187 -61
  42. package/dist/routes/signout.d.ts +174 -50
  43. package/dist/routes/stepUp.d.ts +11 -23
  44. package/dist/routes/userStatus.d.ts +174 -52
  45. package/dist/scim/routes.d.ts +208 -73
  46. package/dist/server.js +475 -448
  47. package/dist/server.js.map +48 -48
  48. package/dist/session/cleanup.d.ts +5 -18
  49. package/dist/session/state.d.ts +3 -23
  50. package/dist/sso/discoveryRoute.d.ts +158 -52
  51. package/dist/sso/oidcRoutes.d.ts +211 -59
  52. package/dist/sso/samlIdpRoutes.d.ts +175 -46
  53. package/dist/sso/samlRoutes.d.ts +217 -69
  54. package/dist/typebox.d.ts +4 -4
  55. package/dist/types.d.ts +3 -5
  56. package/dist/vault/index.js +3 -3
  57. package/dist/vault/index.js.map +3 -3
  58. package/dist/vc/statusListRoutes.d.ts +158 -52
  59. package/dist/vc/vpRoutes.d.ts +170 -66
  60. package/dist/webauthn/routes.d.ts +199 -66
  61. package/package.json +8 -120
@@ -1,24 +1,15 @@
1
- import { Elysia } from 'elysia';
2
1
  import { type MfaRouteProps } from './config';
3
- export declare const mfaTotpRoutes: <UserType>({ authSessionStore, backupCodeCount, encryptionKey, getUserId, issuer, managementAuthMaxAgeMs, mfaStore, onMfaEnrolled, totpSetupRoute, totpVerifyRoute }: MfaRouteProps<UserType>) => Elysia<"", {
2
+ export declare const mfaTotpRoutes: <UserType>({ authSessionStore, backupCodeCount, encryptionKey, getUserId, issuer, managementAuthMaxAgeMs, mfaStore, onMfaEnrolled, totpSetupRoute, totpVerifyRoute }: MfaRouteProps<UserType>) => import("elysia/types").AddRoute<"", "local", {
4
3
  decorator: {};
5
4
  store: {
6
5
  session: import("..").SessionRecord<UserType>;
7
6
  unregisteredSession: import("..").UnregisteredSessionRecord;
8
7
  };
9
8
  derive: {};
10
- resolve: {};
11
9
  }, {
12
10
  typebox: {};
13
- error: {};
14
- }, {
15
- schema: {};
16
- standaloneSchema: {};
17
- macro: {};
18
- macroFn: {};
19
- parser: {};
20
- response: {};
21
- }, {
11
+ error: [];
12
+ }, import("elysia/types").DefaultMetadata, {
22
13
  [x: string]: {
23
14
  post: {
24
15
  body: unknown;
@@ -33,59 +24,198 @@ export declare const mfaTotpRoutes: <UserType>({ authSessionStore, backupCodeCou
33
24
  };
34
25
  422: {
35
26
  type: "validation";
27
+ title: "Validation Error";
28
+ status: 422;
29
+ detail?: string;
36
30
  on: string;
37
- summary?: string;
38
- message?: string;
39
- found?: unknown;
40
- property?: string;
41
- expected?: string;
42
- };
43
- };
44
- };
45
- };
46
- } & {
47
- [x: string]: {
48
- post: {
49
- body: {
50
- code: string;
51
- };
52
- params: {};
53
- query: unknown;
54
- headers: unknown;
55
- response: {
56
- 400: "No TOTP enrollment in progress" | "Invalid TOTP code";
57
- 401: "Recent authentication required" | "Authentication required";
58
- 200: {
59
- readonly backupCodes: string[];
60
- };
61
- 422: {
62
- type: "validation";
63
- on: string;
64
- summary?: string;
65
- message?: string;
66
31
  found?: unknown;
67
32
  property?: string;
68
33
  expected?: string;
69
34
  };
70
35
  };
36
+ error: never;
71
37
  };
72
38
  };
73
- }, {
74
- derive: {};
75
- resolve: {};
76
- schema: {};
77
- standaloneSchema: {};
78
- response: {};
79
- }, {
80
- derive: {};
81
- resolve: {};
82
- schema: {};
83
- standaloneSchema: {};
84
- response: {};
85
- } & {
39
+ }, import("elysia/types").DefaultEphemeral, {
86
40
  derive: {};
87
- resolve: {};
88
41
  schema: {};
89
- standaloneSchema: {};
42
+ schemas: {};
90
43
  response: {};
91
- }>;
44
+ error: [];
45
+ }, "post", `/${string}`, import("elysia/types").IntersectIfObjectSchema<import("elysia").UnwrapRoute<{
46
+ body: import("typebox").TObject<{
47
+ code: import("typebox").TString;
48
+ }>;
49
+ cookie: import("elysia").TCookieObject<{
50
+ user_session_id: import("typebox").TOptional<import("typebox").TTemplateLiteral<"^.*-.*-.*-.*-.*$">>;
51
+ }>;
52
+ }, {}, `/${string}`>, import("elysia/types").MergeScopedSchemas<{}, {}, {}>>, {}, ({ body: { code }, cookie: { user_session_id }, status, store: { session } }: {
53
+ body: {
54
+ code: string;
55
+ };
56
+ query: Record<string, string | undefined>;
57
+ params: {};
58
+ headers: Record<string, string | undefined>;
59
+ cookie: Record<string, import("elysia").Cookie<unknown>> & {
60
+ user_session_id: import("elysia").Cookie<`${string}-${string}-${string}-${string}-${string}` | undefined>;
61
+ };
62
+ server: import("elysia").Server | null;
63
+ redirect: import("elysia").redirect;
64
+ set: {
65
+ headers: import("elysia").HTTPHeaders;
66
+ status?: number | keyof import("elysia").StatusMap;
67
+ cookie?: Record<string, import("elysia").BaseCookie>;
68
+ };
69
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 400 | 401 | 403 | 501 | 204 | 404 | 200 | 100 | 101 | 102 | 103 | 201 | 202 | 203 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
70
+ readonly 100: "Continue";
71
+ readonly 101: "Switching Protocols";
72
+ readonly 102: "Processing";
73
+ readonly 103: "Early Hints";
74
+ readonly 200: "OK";
75
+ readonly 201: "Created";
76
+ readonly 202: "Accepted";
77
+ readonly 203: "Non-Authoritative Information";
78
+ readonly 204: "No Content";
79
+ readonly 205: "Reset Content";
80
+ readonly 206: "Partial Content";
81
+ readonly 207: "Multi-Status";
82
+ readonly 208: "Already Reported";
83
+ readonly 300: "Multiple Choices";
84
+ readonly 301: "Moved Permanently";
85
+ readonly 302: "Found";
86
+ readonly 303: "See Other";
87
+ readonly 304: "Not Modified";
88
+ readonly 307: "Temporary Redirect";
89
+ readonly 308: "Permanent Redirect";
90
+ readonly 400: "Bad Request";
91
+ readonly 401: "Unauthorized";
92
+ readonly 402: "Payment Required";
93
+ readonly 403: "Forbidden";
94
+ readonly 404: "Not Found";
95
+ readonly 405: "Method Not Allowed";
96
+ readonly 406: "Not Acceptable";
97
+ readonly 407: "Proxy Authentication Required";
98
+ readonly 408: "Request Timeout";
99
+ readonly 409: "Conflict";
100
+ readonly 410: "Gone";
101
+ readonly 411: "Length Required";
102
+ readonly 412: "Precondition Failed";
103
+ readonly 413: "Payload Too Large";
104
+ readonly 414: "URI Too Long";
105
+ readonly 415: "Unsupported Media Type";
106
+ readonly 416: "Range Not Satisfiable";
107
+ readonly 417: "Expectation Failed";
108
+ readonly 418: "I'm a teapot";
109
+ readonly 420: "Enhance Your Calm";
110
+ readonly 421: "Misdirected Request";
111
+ readonly 422: "Unprocessable Content";
112
+ readonly 423: "Locked";
113
+ readonly 424: "Failed Dependency";
114
+ readonly 425: "Too Early";
115
+ readonly 426: "Upgrade Required";
116
+ readonly 428: "Precondition Required";
117
+ readonly 429: "Too Many Requests";
118
+ readonly 431: "Request Header Fields Too Large";
119
+ readonly 451: "Unavailable For Legal Reasons";
120
+ readonly 500: "Internal Server Error";
121
+ readonly 501: "Not Implemented";
122
+ readonly 502: "Bad Gateway";
123
+ readonly 503: "Service Unavailable";
124
+ readonly 504: "Gateway Timeout";
125
+ readonly 505: "HTTP Version Not Supported";
126
+ readonly 506: "Variant Also Negotiates";
127
+ readonly 507: "Insufficient Storage";
128
+ readonly 508: "Loop Detected";
129
+ readonly 510: "Not Extended";
130
+ readonly 511: "Network Authentication Required";
131
+ }[Code] : Code>(code: Code, response?: T) => import("elysia").ElysiaStatus<Code, T, Code extends "Continue" | "Switching Protocols" | "Processing" | "Early Hints" | "OK" | "Created" | "Accepted" | "Non-Authoritative Information" | "No Content" | "Reset Content" | "Partial Content" | "Multi-Status" | "Already Reported" | "Multiple Choices" | "Moved Permanently" | "Found" | "See Other" | "Not Modified" | "Temporary Redirect" | "Permanent Redirect" | "Bad Request" | "Unauthorized" | "Payment Required" | "Forbidden" | "Not Found" | "Method Not Allowed" | "Not Acceptable" | "Proxy Authentication Required" | "Request Timeout" | "Conflict" | "Gone" | "Length Required" | "Precondition Failed" | "Payload Too Large" | "URI Too Long" | "Unsupported Media Type" | "Range Not Satisfiable" | "Expectation Failed" | "I'm a teapot" | "Enhance Your Calm" | "Misdirected Request" | "Unprocessable Content" | "Locked" | "Failed Dependency" | "Too Early" | "Upgrade Required" | "Precondition Required" | "Too Many Requests" | "Request Header Fields Too Large" | "Unavailable For Legal Reasons" | "Internal Server Error" | "Not Implemented" | "Bad Gateway" | "Service Unavailable" | "Gateway Timeout" | "HTTP Version Not Supported" | "Variant Also Negotiates" | "Insufficient Storage" | "Loop Detected" | "Not Extended" | "Network Authentication Required" ? {
132
+ readonly Continue: 100;
133
+ readonly "Switching Protocols": 101;
134
+ readonly Processing: 102;
135
+ readonly "Early Hints": 103;
136
+ readonly OK: 200;
137
+ readonly Created: 201;
138
+ readonly Accepted: 202;
139
+ readonly "Non-Authoritative Information": 203;
140
+ readonly "No Content": 204;
141
+ readonly "Reset Content": 205;
142
+ readonly "Partial Content": 206;
143
+ readonly "Multi-Status": 207;
144
+ readonly "Already Reported": 208;
145
+ readonly "Multiple Choices": 300;
146
+ readonly "Moved Permanently": 301;
147
+ readonly Found: 302;
148
+ readonly "See Other": 303;
149
+ readonly "Not Modified": 304;
150
+ readonly "Temporary Redirect": 307;
151
+ readonly "Permanent Redirect": 308;
152
+ readonly "Bad Request": 400;
153
+ readonly Unauthorized: 401;
154
+ readonly "Payment Required": 402;
155
+ readonly Forbidden: 403;
156
+ readonly "Not Found": 404;
157
+ readonly "Method Not Allowed": 405;
158
+ readonly "Not Acceptable": 406;
159
+ readonly "Proxy Authentication Required": 407;
160
+ readonly "Request Timeout": 408;
161
+ readonly Conflict: 409;
162
+ readonly Gone: 410;
163
+ readonly "Length Required": 411;
164
+ readonly "Precondition Failed": 412;
165
+ readonly "Payload Too Large": 413;
166
+ readonly "URI Too Long": 414;
167
+ readonly "Unsupported Media Type": 415;
168
+ readonly "Range Not Satisfiable": 416;
169
+ readonly "Expectation Failed": 417;
170
+ readonly "I'm a teapot": 418;
171
+ readonly "Enhance Your Calm": 420;
172
+ readonly "Misdirected Request": 421;
173
+ readonly "Unprocessable Content": 422;
174
+ readonly Locked: 423;
175
+ readonly "Failed Dependency": 424;
176
+ readonly "Too Early": 425;
177
+ readonly "Upgrade Required": 426;
178
+ readonly "Precondition Required": 428;
179
+ readonly "Too Many Requests": 429;
180
+ readonly "Request Header Fields Too Large": 431;
181
+ readonly "Unavailable For Legal Reasons": 451;
182
+ readonly "Internal Server Error": 500;
183
+ readonly "Not Implemented": 501;
184
+ readonly "Bad Gateway": 502;
185
+ readonly "Service Unavailable": 503;
186
+ readonly "Gateway Timeout": 504;
187
+ readonly "HTTP Version Not Supported": 505;
188
+ readonly "Variant Also Negotiates": 506;
189
+ readonly "Insufficient Storage": 507;
190
+ readonly "Loop Detected": 508;
191
+ readonly "Not Extended": 510;
192
+ readonly "Network Authentication Required": 511;
193
+ }[Code] : Code>;
194
+ defer: (fn: import("elysia/types").AfterResponseHandler<NoInfer<import("elysia/types").IntersectIfObjectSchema<import("elysia").UnwrapRoute<{
195
+ body: import("typebox").TObject<{
196
+ code: import("typebox").TString;
197
+ }>;
198
+ cookie: import("elysia").TCookieObject<{
199
+ user_session_id: import("typebox").TOptional<import("typebox").TTemplateLiteral<"^.*-.*-.*-.*-.*$">>;
200
+ }>;
201
+ }, {}, `/${string}`>, import("elysia/types").MergeScopedSchemas<{}, {}, {}>>>, NoInfer<{
202
+ decorator: {};
203
+ store: {
204
+ session: import("..").SessionRecord<UserType>;
205
+ unregisteredSession: import("..").UnregisteredSessionRecord;
206
+ };
207
+ derive: {};
208
+ } & {
209
+ derive: {};
210
+ }>>) => import("elysia/types").MaybePromise<void>;
211
+ readonly path: string;
212
+ route?: string | undefined;
213
+ rid?: string | undefined;
214
+ request: Request;
215
+ store: {
216
+ session: import("..").SessionRecord<UserType>;
217
+ unregisteredSession: import("..").UnregisteredSessionRecord;
218
+ };
219
+ }) => Promise<import("elysia").ElysiaStatus<"Unauthorized", "Recent authentication required", 401> | import("elysia").ElysiaStatus<"Unauthorized", "Authentication required", 401> | import("elysia").ElysiaStatus<"Bad Request", "No TOTP enrollment in progress", 400> | import("elysia").ElysiaStatus<"Bad Request", "Invalid TOTP code", 400> | import("elysia").ElysiaStatus<"OK", {
220
+ readonly backupCodes: string[];
221
+ }, 200>>>;
@@ -1,27 +1,18 @@
1
- import { Elysia } from 'elysia';
2
1
  import type { AuthSessionStore } from '../session/types';
3
2
  import { type OidcProviderConfig } from './config';
4
3
  export declare const oidcProviderRoutes: <UserType>(config: OidcProviderConfig<UserType> & {
5
4
  authSessionStore?: AuthSessionStore<UserType>;
6
- }) => Elysia<"", {
5
+ }) => import("elysia/types").AddRoute<"", "local", {
7
6
  decorator: {};
8
7
  store: {
9
8
  session: import("..").SessionRecord<UserType>;
10
9
  unregisteredSession: import("..").UnregisteredSessionRecord;
11
10
  };
12
11
  derive: {};
13
- resolve: {};
14
12
  }, {
15
13
  typebox: {};
16
- error: {};
17
- }, {
18
- schema: {};
19
- standaloneSchema: {};
20
- macro: {};
21
- macroFn: {};
22
- parser: {};
23
- response: {};
24
- }, {
14
+ error: [];
15
+ }, import("elysia/types").DefaultMetadata, {
25
16
  [x: string]: {
26
17
  get: {
27
18
  body: unknown;
@@ -50,14 +41,16 @@ export declare const oidcProviderRoutes: <UserType>(config: OidcProviderConfig<U
50
41
  200: Response;
51
42
  422: {
52
43
  type: "validation";
44
+ title: "Validation Error";
45
+ status: 422;
46
+ detail?: string;
53
47
  on: string;
54
- summary?: string;
55
- message?: string;
56
48
  found?: unknown;
57
49
  property?: string;
58
50
  expected?: string;
59
51
  };
60
52
  };
53
+ error: never;
61
54
  };
62
55
  };
63
56
  } & {
@@ -91,14 +84,16 @@ export declare const oidcProviderRoutes: <UserType>(config: OidcProviderConfig<U
91
84
  200: Response;
92
85
  422: {
93
86
  type: "validation";
87
+ title: "Validation Error";
88
+ status: 422;
89
+ detail?: string;
94
90
  on: string;
95
- summary?: string;
96
- message?: string;
97
91
  found?: unknown;
98
92
  property?: string;
99
93
  expected?: string;
100
94
  };
101
95
  };
96
+ error: never;
102
97
  };
103
98
  };
104
99
  } & {
@@ -130,14 +125,16 @@ export declare const oidcProviderRoutes: <UserType>(config: OidcProviderConfig<U
130
125
  200: Response;
131
126
  422: {
132
127
  type: "validation";
128
+ title: "Validation Error";
129
+ status: 422;
130
+ detail?: string;
133
131
  on: string;
134
- summary?: string;
135
- message?: string;
136
132
  found?: unknown;
137
133
  property?: string;
138
134
  expected?: string;
139
135
  };
140
136
  };
137
+ error: never;
141
138
  };
142
139
  };
143
140
  } & {
@@ -158,14 +155,16 @@ export declare const oidcProviderRoutes: <UserType>(config: OidcProviderConfig<U
158
155
  200: Response;
159
156
  422: {
160
157
  type: "validation";
158
+ title: "Validation Error";
159
+ status: 422;
160
+ detail?: string;
161
161
  on: string;
162
- summary?: string;
163
- message?: string;
164
162
  found?: unknown;
165
163
  property?: string;
166
164
  expected?: string;
167
165
  };
168
166
  };
167
+ error: never;
169
168
  };
170
169
  };
171
170
  } & {
@@ -186,14 +185,16 @@ export declare const oidcProviderRoutes: <UserType>(config: OidcProviderConfig<U
186
185
  200: Response;
187
186
  422: {
188
187
  type: "validation";
188
+ title: "Validation Error";
189
+ status: 422;
190
+ detail?: string;
189
191
  on: string;
190
- summary?: string;
191
- message?: string;
192
192
  found?: unknown;
193
193
  property?: string;
194
194
  expected?: string;
195
195
  };
196
196
  };
197
+ error: never;
197
198
  };
198
199
  };
199
200
  } & {
@@ -215,14 +216,16 @@ export declare const oidcProviderRoutes: <UserType>(config: OidcProviderConfig<U
215
216
  200: Response;
216
217
  422: {
217
218
  type: "validation";
219
+ title: "Validation Error";
220
+ status: 422;
221
+ detail?: string;
218
222
  on: string;
219
- summary?: string;
220
- message?: string;
221
223
  found?: unknown;
222
224
  property?: string;
223
225
  expected?: string;
224
226
  };
225
227
  };
228
+ error: never;
226
229
  };
227
230
  };
228
231
  } & {
@@ -242,14 +245,16 @@ export declare const oidcProviderRoutes: <UserType>(config: OidcProviderConfig<U
242
245
  200: Response;
243
246
  422: {
244
247
  type: "validation";
248
+ title: "Validation Error";
249
+ status: 422;
250
+ detail?: string;
245
251
  on: string;
246
- summary?: string;
247
- message?: string;
248
252
  found?: unknown;
249
253
  property?: string;
250
254
  expected?: string;
251
255
  };
252
256
  };
257
+ error: never;
253
258
  };
254
259
  };
255
260
  } & {
@@ -266,14 +271,16 @@ export declare const oidcProviderRoutes: <UserType>(config: OidcProviderConfig<U
266
271
  200: Response;
267
272
  422: {
268
273
  type: "validation";
274
+ title: "Validation Error";
275
+ status: 422;
276
+ detail?: string;
269
277
  on: string;
270
- summary?: string;
271
- message?: string;
272
278
  found?: unknown;
273
279
  property?: string;
274
280
  expected?: string;
275
281
  };
276
282
  };
283
+ error: never;
277
284
  };
278
285
  };
279
286
  } & {
@@ -292,14 +299,16 @@ export declare const oidcProviderRoutes: <UserType>(config: OidcProviderConfig<U
292
299
  200: Response;
293
300
  422: {
294
301
  type: "validation";
302
+ title: "Validation Error";
303
+ status: 422;
304
+ detail?: string;
295
305
  on: string;
296
- summary?: string;
297
- message?: string;
298
306
  found?: unknown;
299
307
  property?: string;
300
308
  expected?: string;
301
309
  };
302
310
  };
311
+ error: never;
303
312
  };
304
313
  };
305
314
  } & {
@@ -318,14 +327,16 @@ export declare const oidcProviderRoutes: <UserType>(config: OidcProviderConfig<U
318
327
  200: Response;
319
328
  422: {
320
329
  type: "validation";
330
+ title: "Validation Error";
331
+ status: 422;
332
+ detail?: string;
321
333
  on: string;
322
- summary?: string;
323
- message?: string;
324
334
  found?: unknown;
325
335
  property?: string;
326
336
  expected?: string;
327
337
  };
328
338
  };
339
+ error: never;
329
340
  };
330
341
  };
331
342
  } & {
@@ -350,14 +361,16 @@ export declare const oidcProviderRoutes: <UserType>(config: OidcProviderConfig<U
350
361
  200: Response;
351
362
  422: {
352
363
  type: "validation";
364
+ title: "Validation Error";
365
+ status: 422;
366
+ detail?: string;
353
367
  on: string;
354
- summary?: string;
355
- message?: string;
356
368
  found?: unknown;
357
369
  property?: string;
358
370
  expected?: string;
359
371
  };
360
372
  };
373
+ error: never;
361
374
  };
362
375
  };
363
376
  } & {
@@ -376,14 +389,16 @@ export declare const oidcProviderRoutes: <UserType>(config: OidcProviderConfig<U
376
389
  200: Response;
377
390
  422: {
378
391
  type: "validation";
392
+ title: "Validation Error";
393
+ status: 422;
394
+ detail?: string;
379
395
  on: string;
380
- summary?: string;
381
- message?: string;
382
396
  found?: unknown;
383
397
  property?: string;
384
398
  expected?: string;
385
399
  };
386
400
  };
401
+ error: never;
387
402
  };
388
403
  };
389
404
  };
@@ -412,14 +427,16 @@ export declare const oidcProviderRoutes: <UserType>(config: OidcProviderConfig<U
412
427
  200: Response;
413
428
  422: {
414
429
  type: "validation";
430
+ title: "Validation Error";
431
+ status: 422;
432
+ detail?: string;
415
433
  on: string;
416
- summary?: string;
417
- message?: string;
418
434
  found?: unknown;
419
435
  property?: string;
420
436
  expected?: string;
421
437
  };
422
438
  };
439
+ error: never;
423
440
  };
424
441
  };
425
442
  };
@@ -439,14 +456,16 @@ export declare const oidcProviderRoutes: <UserType>(config: OidcProviderConfig<U
439
456
  200: Response;
440
457
  422: {
441
458
  type: "validation";
459
+ title: "Validation Error";
460
+ status: 422;
461
+ detail?: string;
442
462
  on: string;
443
- summary?: string;
444
- message?: string;
445
463
  found?: unknown;
446
464
  property?: string;
447
465
  expected?: string;
448
466
  };
449
467
  };
468
+ error: never;
450
469
  };
451
470
  };
452
471
  };
@@ -463,14 +482,16 @@ export declare const oidcProviderRoutes: <UserType>(config: OidcProviderConfig<U
463
482
  200: Response;
464
483
  422: {
465
484
  type: "validation";
485
+ title: "Validation Error";
486
+ status: 422;
487
+ detail?: string;
466
488
  on: string;
467
- summary?: string;
468
- message?: string;
469
489
  found?: unknown;
470
490
  property?: string;
471
491
  expected?: string;
472
492
  };
473
493
  };
494
+ error: never;
474
495
  };
475
496
  };
476
497
  } & {
@@ -488,14 +509,16 @@ export declare const oidcProviderRoutes: <UserType>(config: OidcProviderConfig<U
488
509
  200: Response;
489
510
  422: {
490
511
  type: "validation";
512
+ title: "Validation Error";
513
+ status: 422;
514
+ detail?: string;
491
515
  on: string;
492
- summary?: string;
493
- message?: string;
494
516
  found?: unknown;
495
517
  property?: string;
496
518
  expected?: string;
497
519
  };
498
520
  };
521
+ error: never;
499
522
  };
500
523
  };
501
524
  } & {
@@ -518,6 +541,7 @@ export declare const oidcProviderRoutes: <UserType>(config: OidcProviderConfig<U
518
541
  }[];
519
542
  };
520
543
  };
544
+ error: never;
521
545
  };
522
546
  };
523
547
  } & {
@@ -531,39 +555,14 @@ export declare const oidcProviderRoutes: <UserType>(config: OidcProviderConfig<U
531
555
  response: {
532
556
  200: Record<string, unknown>;
533
557
  };
558
+ error: never;
534
559
  };
535
560
  };
536
561
  };
537
- } & {
538
- ".well-known": {
539
- "oauth-authorization-server": {
540
- get: {
541
- body: unknown;
542
- params: {};
543
- query: unknown;
544
- headers: unknown;
545
- response: {
546
- 200: Record<string, unknown>;
547
- };
548
- };
549
- };
550
- };
551
- }, {
552
- derive: {};
553
- resolve: {};
554
- schema: {};
555
- standaloneSchema: {};
556
- response: {};
557
- }, {
558
- derive: {};
559
- resolve: {};
560
- schema: {};
561
- standaloneSchema: {};
562
- response: {};
563
- } & {
562
+ }, import("elysia/types").DefaultEphemeral, {
564
563
  derive: {};
565
- resolve: {};
566
564
  schema: {};
567
- standaloneSchema: {};
565
+ schemas: {};
568
566
  response: {};
569
- }>;
567
+ error: [];
568
+ }, "get", "/.well-known/oauth-authorization-server", import("elysia/types").IntersectIfObjectSchema<import("elysia").UnwrapRoute<{}, {}, "/.well-known/oauth-authorization-server">, import("elysia/types").MergeScopedSchemas<{}, {}, {}>>, {}, () => Record<string, unknown>>;