authhero 5.17.1 → 5.19.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 (50) hide show
  1. package/dist/assets/u/widget/authhero-widget.esm.js +1 -1
  2. package/dist/assets/u/widget/index.esm.js +1 -1
  3. package/dist/assets/u/widget/p-35c8b265.entry.js +1 -0
  4. package/dist/authhero.cjs +139 -136
  5. package/dist/authhero.d.ts +425 -194
  6. package/dist/authhero.mjs +10490 -9833
  7. package/dist/stats.html +1 -1
  8. package/dist/tsconfig.types.tsbuildinfo +1 -1
  9. package/dist/types/authentication-flows/passwordless.d.ts +3 -3
  10. package/dist/types/emails/defaults/Layout.d.ts +3 -3
  11. package/dist/types/emails/defaults/PrimaryButton.d.ts +5 -2
  12. package/dist/types/helpers/consent.d.ts +31 -0
  13. package/dist/types/helpers/control-plane-sync-events.d.ts +67 -0
  14. package/dist/types/helpers/dcr/metadata-mapping.d.ts +1 -1
  15. package/dist/types/helpers/default-destinations.d.ts +11 -0
  16. package/dist/types/helpers/outbox-destinations/control-plane-sync.d.ts +35 -0
  17. package/dist/types/helpers/outbox-destinations/logs.d.ts +2 -0
  18. package/dist/types/index.d.ts +285 -191
  19. package/dist/types/middlewares/index.d.ts +3 -0
  20. package/dist/types/middlewares/prefer.d.ts +12 -0
  21. package/dist/types/routes/auth-api/index.d.ts +26 -26
  22. package/dist/types/routes/auth-api/passwordless.d.ts +14 -14
  23. package/dist/types/routes/auth-api/register/index.d.ts +2 -2
  24. package/dist/types/routes/auth-api/token.d.ts +10 -10
  25. package/dist/types/routes/management-api/action-executions.d.ts +1 -1
  26. package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
  27. package/dist/types/routes/management-api/clients.d.ts +7 -7
  28. package/dist/types/routes/management-api/connections.d.ts +1 -1
  29. package/dist/types/routes/management-api/email-templates.d.ts +31 -14
  30. package/dist/types/routes/management-api/forms.d.ts +119 -119
  31. package/dist/types/routes/management-api/grants.d.ts +80 -0
  32. package/dist/types/routes/management-api/guardian.d.ts +5 -5
  33. package/dist/types/routes/management-api/index.d.ts +250 -159
  34. package/dist/types/routes/management-api/logs.d.ts +3 -3
  35. package/dist/types/routes/management-api/organizations.d.ts +2 -2
  36. package/dist/types/routes/management-api/prompts.d.ts +4 -4
  37. package/dist/types/routes/management-api/proxy-routes.d.ts +1 -0
  38. package/dist/types/routes/management-api/users.d.ts +2 -2
  39. package/dist/types/routes/proxy-control-plane/index.d.ts +34 -1
  40. package/dist/types/routes/universal-login/common.d.ts +2 -2
  41. package/dist/types/routes/universal-login/flow-api.d.ts +12 -12
  42. package/dist/types/routes/universal-login/screens/consent.d.ts +9 -0
  43. package/dist/types/routes/universal-login/u2-index.d.ts +6 -6
  44. package/dist/types/routes/universal-login/u2-routes.d.ts +6 -6
  45. package/dist/types/state-machines/login-session.d.ts +12 -1
  46. package/dist/types/types/AuthHeroConfig.d.ts +26 -0
  47. package/dist/types/types/IdToken.d.ts +1 -1
  48. package/dist/types/types/Variables.d.ts +2 -0
  49. package/package.json +5 -5
  50. package/dist/assets/u/widget/p-f0f9eca3.entry.js +0 -1
@@ -2,5 +2,8 @@ export { applyConfigMiddleware } from "./apply-config";
2
2
  export { createAuthMiddleware } from "./authentication";
3
3
  export { clientInfoMiddleware } from "./client-info";
4
4
  export { outboxMiddleware } from "./outbox";
5
+ export { preferMiddleware } from "./prefer";
6
+ export type { PreferState, PreferToken } from "./prefer";
7
+ export { PREFER_TOKENS } from "./prefer";
5
8
  export { registerComponent } from "./register-component";
6
9
  export { tenantMiddleware } from "./tenant";
@@ -0,0 +1,12 @@
1
+ import { MiddlewareHandler } from "hono";
2
+ import { Variables } from "../types/Variables";
3
+ export declare const PREFER_TOKENS: readonly ["include-linked"];
4
+ export type PreferToken = (typeof PREFER_TOKENS)[number];
5
+ export interface PreferState {
6
+ has(token: PreferToken): boolean;
7
+ applied(token: PreferToken): void;
8
+ appliedTokens(): PreferToken[];
9
+ }
10
+ export declare const preferMiddleware: MiddlewareHandler<{
11
+ Variables: Variables;
12
+ }>;
@@ -288,7 +288,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
288
288
  scope?: string | undefined;
289
289
  grant_types?: string[] | undefined;
290
290
  response_types?: string[] | undefined;
291
- token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
291
+ token_endpoint_auth_method?: "none" | "private_key_jwt" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | undefined;
292
292
  jwks_uri?: string | undefined;
293
293
  jwks?: Record<string, unknown> | undefined;
294
294
  software_id?: string | undefined;
@@ -377,7 +377,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
377
377
  scope?: string | undefined;
378
378
  grant_types?: string[] | undefined;
379
379
  response_types?: string[] | undefined;
380
- token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
380
+ token_endpoint_auth_method?: "none" | "private_key_jwt" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | undefined;
381
381
  jwks_uri?: string | undefined;
382
382
  jwks?: Record<string, unknown> | undefined;
383
383
  software_id?: string | undefined;
@@ -724,18 +724,18 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
724
724
  send: "code" | "link";
725
725
  authParams: {
726
726
  username?: string | undefined;
727
- scope?: string | undefined;
727
+ state?: string | undefined;
728
728
  audience?: string | undefined;
729
+ response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
730
+ response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
731
+ scope?: string | undefined;
729
732
  organization?: string | undefined;
730
- code_challenge?: string | undefined;
731
- code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
732
- redirect_uri?: string | undefined;
733
733
  nonce?: string | undefined;
734
- state?: string | undefined;
734
+ redirect_uri?: string | undefined;
735
735
  act_as?: string | undefined;
736
- response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
737
- response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
738
736
  prompt?: string | undefined;
737
+ code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
738
+ code_challenge?: string | undefined;
739
739
  ui_locales?: string | undefined;
740
740
  max_age?: number | undefined;
741
741
  acr_values?: string | undefined;
@@ -760,18 +760,18 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
760
760
  send: "code" | "link";
761
761
  authParams: {
762
762
  username?: string | undefined;
763
- scope?: string | undefined;
763
+ state?: string | undefined;
764
764
  audience?: string | undefined;
765
+ response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
766
+ response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
767
+ scope?: string | undefined;
765
768
  organization?: string | undefined;
766
- code_challenge?: string | undefined;
767
- code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
768
- redirect_uri?: string | undefined;
769
769
  nonce?: string | undefined;
770
- state?: string | undefined;
770
+ redirect_uri?: string | undefined;
771
771
  act_as?: string | undefined;
772
- response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
773
- response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
774
772
  prompt?: string | undefined;
773
+ code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
774
+ code_challenge?: string | undefined;
775
775
  ui_locales?: string | undefined;
776
776
  max_age?: number | undefined;
777
777
  acr_values?: string | undefined;
@@ -1001,7 +1001,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1001
1001
  client_id: string;
1002
1002
  username: string;
1003
1003
  otp: string;
1004
- realm: "email" | "sms";
1004
+ realm: "sms" | "email";
1005
1005
  };
1006
1006
  } & {
1007
1007
  json: {
@@ -1037,7 +1037,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1037
1037
  client_id: string;
1038
1038
  username: string;
1039
1039
  otp: string;
1040
- realm: "email" | "sms";
1040
+ realm: "sms" | "email";
1041
1041
  };
1042
1042
  };
1043
1043
  output: {};
@@ -1078,7 +1078,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1078
1078
  client_id: string;
1079
1079
  username: string;
1080
1080
  otp: string;
1081
- realm: "email" | "sms";
1081
+ realm: "sms" | "email";
1082
1082
  };
1083
1083
  } & {
1084
1084
  json: {
@@ -1114,7 +1114,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1114
1114
  client_id: string;
1115
1115
  username: string;
1116
1116
  otp: string;
1117
- realm: "email" | "sms";
1117
+ realm: "sms" | "email";
1118
1118
  };
1119
1119
  };
1120
1120
  output: {
@@ -1163,7 +1163,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1163
1163
  client_id: string;
1164
1164
  username: string;
1165
1165
  otp: string;
1166
- realm: "email" | "sms";
1166
+ realm: "sms" | "email";
1167
1167
  };
1168
1168
  } & {
1169
1169
  json: {
@@ -1199,7 +1199,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1199
1199
  client_id: string;
1200
1200
  username: string;
1201
1201
  otp: string;
1202
- realm: "email" | "sms";
1202
+ realm: "sms" | "email";
1203
1203
  };
1204
1204
  };
1205
1205
  output: {
@@ -1243,7 +1243,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1243
1243
  client_id: string;
1244
1244
  username: string;
1245
1245
  otp: string;
1246
- realm: "email" | "sms";
1246
+ realm: "sms" | "email";
1247
1247
  };
1248
1248
  } & {
1249
1249
  json: {
@@ -1279,7 +1279,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1279
1279
  client_id: string;
1280
1280
  username: string;
1281
1281
  otp: string;
1282
- realm: "email" | "sms";
1282
+ realm: "sms" | "email";
1283
1283
  };
1284
1284
  };
1285
1285
  output: {
@@ -1323,7 +1323,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1323
1323
  client_id: string;
1324
1324
  username: string;
1325
1325
  otp: string;
1326
- realm: "email" | "sms";
1326
+ realm: "sms" | "email";
1327
1327
  };
1328
1328
  } & {
1329
1329
  json: {
@@ -1359,7 +1359,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1359
1359
  client_id: string;
1360
1360
  username: string;
1361
1361
  otp: string;
1362
- realm: "email" | "sms";
1362
+ realm: "sms" | "email";
1363
1363
  };
1364
1364
  };
1365
1365
  output: {
@@ -15,18 +15,18 @@ export declare const passwordlessRoutes: OpenAPIHono<{
15
15
  send: "code" | "link";
16
16
  authParams: {
17
17
  username?: string | undefined;
18
- scope?: string | undefined;
18
+ state?: string | undefined;
19
19
  audience?: string | undefined;
20
+ response_type?: AuthorizationResponseType | undefined;
21
+ response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
22
+ scope?: string | undefined;
20
23
  organization?: string | undefined;
21
- code_challenge?: string | undefined;
22
- code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
23
- redirect_uri?: string | undefined;
24
24
  nonce?: string | undefined;
25
- state?: string | undefined;
25
+ redirect_uri?: string | undefined;
26
26
  act_as?: string | undefined;
27
- response_type?: AuthorizationResponseType | undefined;
28
- response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
29
27
  prompt?: string | undefined;
28
+ code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
29
+ code_challenge?: string | undefined;
30
30
  ui_locales?: string | undefined;
31
31
  max_age?: number | undefined;
32
32
  acr_values?: string | undefined;
@@ -51,18 +51,18 @@ export declare const passwordlessRoutes: OpenAPIHono<{
51
51
  send: "code" | "link";
52
52
  authParams: {
53
53
  username?: string | undefined;
54
- scope?: string | undefined;
54
+ state?: string | undefined;
55
55
  audience?: string | undefined;
56
+ response_type?: AuthorizationResponseType | undefined;
57
+ response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
58
+ scope?: string | undefined;
56
59
  organization?: string | undefined;
57
- code_challenge?: string | undefined;
58
- code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
59
- redirect_uri?: string | undefined;
60
60
  nonce?: string | undefined;
61
- state?: string | undefined;
61
+ redirect_uri?: string | undefined;
62
62
  act_as?: string | undefined;
63
- response_type?: AuthorizationResponseType | undefined;
64
- response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
65
63
  prompt?: string | undefined;
64
+ code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
65
+ code_challenge?: string | undefined;
66
66
  ui_locales?: string | undefined;
67
67
  max_age?: number | undefined;
68
68
  acr_values?: string | undefined;
@@ -18,7 +18,7 @@ export declare const registerRoutes: OpenAPIHono<{
18
18
  scope?: string | undefined;
19
19
  grant_types?: string[] | undefined;
20
20
  response_types?: string[] | undefined;
21
- token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
21
+ token_endpoint_auth_method?: "none" | "private_key_jwt" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | undefined;
22
22
  jwks_uri?: string | undefined;
23
23
  jwks?: Record<string, unknown> | undefined;
24
24
  software_id?: string | undefined;
@@ -107,7 +107,7 @@ export declare const registerRoutes: OpenAPIHono<{
107
107
  scope?: string | undefined;
108
108
  grant_types?: string[] | undefined;
109
109
  response_types?: string[] | undefined;
110
- token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
110
+ token_endpoint_auth_method?: "none" | "private_key_jwt" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | undefined;
111
111
  jwks_uri?: string | undefined;
112
112
  jwks?: Record<string, unknown> | undefined;
113
113
  software_id?: string | undefined;
@@ -40,7 +40,7 @@ export declare const tokenRoutes: OpenAPIHono<{
40
40
  client_id: string;
41
41
  username: string;
42
42
  otp: string;
43
- realm: "email" | "sms";
43
+ realm: "sms" | "email";
44
44
  };
45
45
  } & {
46
46
  json: {
@@ -76,7 +76,7 @@ export declare const tokenRoutes: OpenAPIHono<{
76
76
  client_id: string;
77
77
  username: string;
78
78
  otp: string;
79
- realm: "email" | "sms";
79
+ realm: "sms" | "email";
80
80
  };
81
81
  };
82
82
  output: {};
@@ -117,7 +117,7 @@ export declare const tokenRoutes: OpenAPIHono<{
117
117
  client_id: string;
118
118
  username: string;
119
119
  otp: string;
120
- realm: "email" | "sms";
120
+ realm: "sms" | "email";
121
121
  };
122
122
  } & {
123
123
  json: {
@@ -153,7 +153,7 @@ export declare const tokenRoutes: OpenAPIHono<{
153
153
  client_id: string;
154
154
  username: string;
155
155
  otp: string;
156
- realm: "email" | "sms";
156
+ realm: "sms" | "email";
157
157
  };
158
158
  };
159
159
  output: {
@@ -202,7 +202,7 @@ export declare const tokenRoutes: OpenAPIHono<{
202
202
  client_id: string;
203
203
  username: string;
204
204
  otp: string;
205
- realm: "email" | "sms";
205
+ realm: "sms" | "email";
206
206
  };
207
207
  } & {
208
208
  json: {
@@ -238,7 +238,7 @@ export declare const tokenRoutes: OpenAPIHono<{
238
238
  client_id: string;
239
239
  username: string;
240
240
  otp: string;
241
- realm: "email" | "sms";
241
+ realm: "sms" | "email";
242
242
  };
243
243
  };
244
244
  output: {
@@ -282,7 +282,7 @@ export declare const tokenRoutes: OpenAPIHono<{
282
282
  client_id: string;
283
283
  username: string;
284
284
  otp: string;
285
- realm: "email" | "sms";
285
+ realm: "sms" | "email";
286
286
  };
287
287
  } & {
288
288
  json: {
@@ -318,7 +318,7 @@ export declare const tokenRoutes: OpenAPIHono<{
318
318
  client_id: string;
319
319
  username: string;
320
320
  otp: string;
321
- realm: "email" | "sms";
321
+ realm: "sms" | "email";
322
322
  };
323
323
  };
324
324
  output: {
@@ -362,7 +362,7 @@ export declare const tokenRoutes: OpenAPIHono<{
362
362
  client_id: string;
363
363
  username: string;
364
364
  otp: string;
365
- realm: "email" | "sms";
365
+ realm: "sms" | "email";
366
366
  };
367
367
  } & {
368
368
  json: {
@@ -398,7 +398,7 @@ export declare const tokenRoutes: OpenAPIHono<{
398
398
  client_id: string;
399
399
  username: string;
400
400
  otp: string;
401
- realm: "email" | "sms";
401
+ realm: "sms" | "email";
402
402
  };
403
403
  };
404
404
  output: {
@@ -31,7 +31,7 @@ export declare const actionExecutionsRoutes: OpenAPIHono<{
31
31
  output: {
32
32
  id: string;
33
33
  trigger_id: string;
34
- status: "unspecified" | "pending" | "final" | "partial" | "canceled" | "suspended";
34
+ status: "pending" | "unspecified" | "final" | "partial" | "canceled" | "suspended";
35
35
  results: {
36
36
  action_name: string;
37
37
  error: {
@@ -37,7 +37,7 @@ export declare const authenticationMethodsRoutes: OpenAPIHono<{
37
37
  };
38
38
  } & {
39
39
  json: {
40
- type: "email" | "push" | "passkey" | "phone" | "totp" | "webauthn-roaming" | "webauthn-platform";
40
+ type: "push" | "email" | "passkey" | "phone" | "totp" | "webauthn-roaming" | "webauthn-platform";
41
41
  phone_number?: string | undefined;
42
42
  totp_secret?: string | undefined;
43
43
  credential_id?: string | undefined;
@@ -72,7 +72,7 @@ export declare const clientRoutes: OpenAPIHono<{
72
72
  addons?: {
73
73
  [x: string]: any;
74
74
  } | undefined;
75
- token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
75
+ token_endpoint_auth_method?: "none" | "private_key_jwt" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | undefined;
76
76
  client_metadata?: {
77
77
  [x: string]: string;
78
78
  } | undefined;
@@ -168,7 +168,7 @@ export declare const clientRoutes: OpenAPIHono<{
168
168
  addons?: {
169
169
  [x: string]: any;
170
170
  } | undefined;
171
- token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
171
+ token_endpoint_auth_method?: "none" | "private_key_jwt" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | undefined;
172
172
  client_metadata?: {
173
173
  [x: string]: string;
174
174
  } | undefined;
@@ -279,7 +279,7 @@ export declare const clientRoutes: OpenAPIHono<{
279
279
  addons?: {
280
280
  [x: string]: any;
281
281
  } | undefined;
282
- token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
282
+ token_endpoint_auth_method?: "none" | "private_key_jwt" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | undefined;
283
283
  client_metadata?: {
284
284
  [x: string]: string;
285
285
  } | undefined;
@@ -389,7 +389,7 @@ export declare const clientRoutes: OpenAPIHono<{
389
389
  custom_login_page_preview?: string | undefined;
390
390
  form_template?: string | undefined;
391
391
  addons?: Record<string, any> | undefined;
392
- token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
392
+ token_endpoint_auth_method?: "none" | "private_key_jwt" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | undefined;
393
393
  client_metadata?: Record<string, string> | undefined;
394
394
  hide_sign_up_disabled_error?: boolean | undefined;
395
395
  mobile?: Record<string, any> | undefined;
@@ -469,7 +469,7 @@ export declare const clientRoutes: OpenAPIHono<{
469
469
  addons?: {
470
470
  [x: string]: any;
471
471
  } | undefined;
472
- token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
472
+ token_endpoint_auth_method?: "none" | "private_key_jwt" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | undefined;
473
473
  client_metadata?: {
474
474
  [x: string]: string;
475
475
  } | undefined;
@@ -558,7 +558,7 @@ export declare const clientRoutes: OpenAPIHono<{
558
558
  custom_login_page_preview?: string | undefined;
559
559
  form_template?: string | undefined;
560
560
  addons?: Record<string, any> | undefined;
561
- token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
561
+ token_endpoint_auth_method?: "none" | "private_key_jwt" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | undefined;
562
562
  client_metadata?: Record<string, string> | undefined;
563
563
  hide_sign_up_disabled_error?: boolean | undefined;
564
564
  mobile?: Record<string, any> | undefined;
@@ -638,7 +638,7 @@ export declare const clientRoutes: OpenAPIHono<{
638
638
  addons?: {
639
639
  [x: string]: any;
640
640
  } | undefined;
641
- token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
641
+ token_endpoint_auth_method?: "none" | "private_key_jwt" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | undefined;
642
642
  client_metadata?: {
643
643
  [x: string]: string;
644
644
  } | undefined;
@@ -852,7 +852,7 @@ export declare const connectionRoutes: OpenAPIHono<{
852
852
  };
853
853
  } | {
854
854
  mode: "inline";
855
- status: "success" | "error";
855
+ status: "error" | "success";
856
856
  connection_id: string;
857
857
  connection_name: string;
858
858
  strategy: string;
@@ -12,7 +12,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
12
12
  };
13
13
  } & {
14
14
  json: {
15
- template: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
15
+ template: "change_password" | "verify_email" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
16
16
  body: string;
17
17
  from: string;
18
18
  subject: string;
@@ -33,7 +33,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
33
33
  };
34
34
  } & {
35
35
  json: {
36
- template: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
36
+ template: "change_password" | "verify_email" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
37
37
  body: string;
38
38
  from: string;
39
39
  subject: string;
@@ -45,7 +45,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
45
45
  };
46
46
  };
47
47
  output: {
48
- template: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
48
+ template: "change_password" | "verify_email" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
49
49
  body: string;
50
50
  from: string;
51
51
  subject: string;
@@ -59,12 +59,29 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
59
59
  status: 201;
60
60
  };
61
61
  };
62
+ } & {
63
+ "/defaults": {
64
+ $get: {
65
+ input: {
66
+ header: {
67
+ "tenant-id"?: string | undefined;
68
+ };
69
+ };
70
+ output: {
71
+ name: "change_password" | "verify_email" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
72
+ body: string;
73
+ subject: string;
74
+ }[];
75
+ outputFormat: "json";
76
+ status: 200;
77
+ };
78
+ };
62
79
  } & {
63
80
  "/:templateName": {
64
81
  $get: {
65
82
  input: {
66
83
  param: {
67
- templateName: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
84
+ templateName: "change_password" | "verify_email" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
68
85
  };
69
86
  } & {
70
87
  header: {
@@ -77,7 +94,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
77
94
  } | {
78
95
  input: {
79
96
  param: {
80
- templateName: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
97
+ templateName: "change_password" | "verify_email" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
81
98
  };
82
99
  } & {
83
100
  header: {
@@ -85,7 +102,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
85
102
  };
86
103
  };
87
104
  output: {
88
- template: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
105
+ template: "change_password" | "verify_email" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
89
106
  body: string;
90
107
  from: string;
91
108
  subject: string;
@@ -104,7 +121,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
104
121
  $put: {
105
122
  input: {
106
123
  param: {
107
- templateName: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
124
+ templateName: "change_password" | "verify_email" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
108
125
  };
109
126
  } & {
110
127
  header: {
@@ -112,7 +129,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
112
129
  };
113
130
  } & {
114
131
  json: {
115
- template: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
132
+ template: "change_password" | "verify_email" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
116
133
  body: string;
117
134
  from: string;
118
135
  subject: string;
@@ -124,7 +141,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
124
141
  };
125
142
  };
126
143
  output: {
127
- template: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
144
+ template: "change_password" | "verify_email" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
128
145
  body: string;
129
146
  from: string;
130
147
  subject: string;
@@ -143,7 +160,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
143
160
  $patch: {
144
161
  input: {
145
162
  param: {
146
- templateName: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
163
+ templateName: "change_password" | "verify_email" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
147
164
  };
148
165
  } & {
149
166
  header: {
@@ -151,7 +168,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
151
168
  };
152
169
  } & {
153
170
  json: {
154
- template?: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation" | undefined;
171
+ template?: "change_password" | "verify_email" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation" | undefined;
155
172
  body?: string | undefined;
156
173
  from?: string | undefined;
157
174
  subject?: string | undefined;
@@ -168,7 +185,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
168
185
  } | {
169
186
  input: {
170
187
  param: {
171
- templateName: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
188
+ templateName: "change_password" | "verify_email" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
172
189
  };
173
190
  } & {
174
191
  header: {
@@ -176,7 +193,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
176
193
  };
177
194
  } & {
178
195
  json: {
179
- template?: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation" | undefined;
196
+ template?: "change_password" | "verify_email" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation" | undefined;
180
197
  body?: string | undefined;
181
198
  from?: string | undefined;
182
199
  subject?: string | undefined;
@@ -188,7 +205,7 @@ export declare const emailTemplatesRoutes: OpenAPIHono<{
188
205
  };
189
206
  };
190
207
  output: {
191
- template: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
208
+ template: "change_password" | "verify_email" | "password_reset" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
192
209
  body: string;
193
210
  from: string;
194
211
  subject: string;