authhero 5.17.1 → 5.18.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 (40) hide show
  1. package/dist/assets/u/widget/authhero-widget.esm.js +1 -1
  2. package/dist/assets/u/widget/p-35c8b265.entry.js +1 -0
  3. package/dist/authhero.cjs +118 -122
  4. package/dist/authhero.d.ts +221 -195
  5. package/dist/authhero.mjs +8767 -8675
  6. package/dist/stats.html +1 -1
  7. package/dist/tsconfig.types.tsbuildinfo +1 -1
  8. package/dist/types/authentication-flows/passwordless.d.ts +1 -1
  9. package/dist/types/emails/defaults/Layout.d.ts +3 -3
  10. package/dist/types/emails/defaults/PrimaryButton.d.ts +5 -2
  11. package/dist/types/index.d.ts +212 -195
  12. package/dist/types/middlewares/index.d.ts +3 -0
  13. package/dist/types/middlewares/prefer.d.ts +12 -0
  14. package/dist/types/routes/auth-api/index.d.ts +22 -22
  15. package/dist/types/routes/auth-api/passwordless.d.ts +16 -16
  16. package/dist/types/routes/auth-api/revoke.d.ts +6 -6
  17. package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
  18. package/dist/types/routes/management-api/branding.d.ts +9 -9
  19. package/dist/types/routes/management-api/clients.d.ts +2 -2
  20. package/dist/types/routes/management-api/connections.d.ts +6 -6
  21. package/dist/types/routes/management-api/custom-domains.d.ts +8 -8
  22. package/dist/types/routes/management-api/email-templates.d.ts +17 -0
  23. package/dist/types/routes/management-api/forms.d.ts +119 -119
  24. package/dist/types/routes/management-api/guardian.d.ts +5 -5
  25. package/dist/types/routes/management-api/index.d.ts +185 -168
  26. package/dist/types/routes/management-api/logs.d.ts +3 -3
  27. package/dist/types/routes/management-api/migration-sources.d.ts +6 -6
  28. package/dist/types/routes/management-api/organizations.d.ts +3 -3
  29. package/dist/types/routes/management-api/prompts.d.ts +4 -4
  30. package/dist/types/routes/management-api/themes.d.ts +6 -6
  31. package/dist/types/routes/management-api/users.d.ts +2 -2
  32. package/dist/types/routes/universal-login/common.d.ts +8 -8
  33. package/dist/types/routes/universal-login/flow-api.d.ts +8 -8
  34. package/dist/types/routes/universal-login/identifier.d.ts +2 -2
  35. package/dist/types/routes/universal-login/index.d.ts +2 -2
  36. package/dist/types/routes/universal-login/u2-index.d.ts +3 -3
  37. package/dist/types/routes/universal-login/u2-routes.d.ts +3 -3
  38. package/dist/types/types/Variables.d.ts +2 -0
  39. package/package.json +2 -2
  40. 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
+ }>;
@@ -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;
728
- audience?: string | undefined;
729
- organization?: string | undefined;
730
- code_challenge?: string | undefined;
731
- code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
732
- redirect_uri?: string | undefined;
733
- nonce?: string | undefined;
734
727
  state?: string | undefined;
735
- act_as?: string | undefined;
728
+ audience?: string | undefined;
729
+ scope?: string | undefined;
736
730
  response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
737
731
  response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
732
+ act_as?: string | undefined;
733
+ redirect_uri?: string | undefined;
734
+ organization?: string | undefined;
735
+ nonce?: string | 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;
764
- audience?: string | undefined;
765
- organization?: string | undefined;
766
- code_challenge?: string | undefined;
767
- code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
768
- redirect_uri?: string | undefined;
769
- nonce?: string | undefined;
770
763
  state?: string | undefined;
771
- act_as?: string | undefined;
764
+ audience?: string | undefined;
765
+ scope?: string | undefined;
772
766
  response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
773
767
  response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
768
+ act_as?: string | undefined;
769
+ redirect_uri?: string | undefined;
770
+ organization?: string | undefined;
771
+ nonce?: string | 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;
@@ -903,14 +903,14 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
903
903
  input: {
904
904
  form: {
905
905
  token: string;
906
- token_type_hint?: "refresh_token" | "access_token" | undefined;
906
+ token_type_hint?: "access_token" | "refresh_token" | undefined;
907
907
  client_id?: string | undefined;
908
908
  client_secret?: string | undefined;
909
909
  };
910
910
  } & {
911
911
  json: {
912
912
  token: string;
913
- token_type_hint?: "refresh_token" | "access_token" | undefined;
913
+ token_type_hint?: "access_token" | "refresh_token" | undefined;
914
914
  client_id?: string | undefined;
915
915
  client_secret?: string | undefined;
916
916
  };
@@ -922,14 +922,14 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
922
922
  input: {
923
923
  form: {
924
924
  token: string;
925
- token_type_hint?: "refresh_token" | "access_token" | undefined;
925
+ token_type_hint?: "access_token" | "refresh_token" | undefined;
926
926
  client_id?: string | undefined;
927
927
  client_secret?: string | undefined;
928
928
  };
929
929
  } & {
930
930
  json: {
931
931
  token: string;
932
- token_type_hint?: "refresh_token" | "access_token" | undefined;
932
+ token_type_hint?: "access_token" | "refresh_token" | undefined;
933
933
  client_id?: string | undefined;
934
934
  client_secret?: string | undefined;
935
935
  };
@@ -944,14 +944,14 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
944
944
  input: {
945
945
  form: {
946
946
  token: string;
947
- token_type_hint?: "refresh_token" | "access_token" | undefined;
947
+ token_type_hint?: "access_token" | "refresh_token" | undefined;
948
948
  client_id?: string | undefined;
949
949
  client_secret?: string | undefined;
950
950
  };
951
951
  } & {
952
952
  json: {
953
953
  token: string;
954
- token_type_hint?: "refresh_token" | "access_token" | undefined;
954
+ token_type_hint?: "access_token" | "refresh_token" | undefined;
955
955
  client_id?: string | undefined;
956
956
  client_secret?: string | undefined;
957
957
  };
@@ -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;
19
- audience?: string | undefined;
20
- organization?: string | undefined;
21
- code_challenge?: string | undefined;
22
- code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
23
- redirect_uri?: string | undefined;
24
- nonce?: string | undefined;
25
18
  state?: string | undefined;
26
- act_as?: string | undefined;
19
+ audience?: string | undefined;
20
+ scope?: string | undefined;
27
21
  response_type?: AuthorizationResponseType | undefined;
28
22
  response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
23
+ act_as?: string | undefined;
24
+ redirect_uri?: string | undefined;
25
+ organization?: string | undefined;
26
+ nonce?: string | 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;
55
- audience?: string | undefined;
56
- organization?: string | undefined;
57
- code_challenge?: string | undefined;
58
- code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
59
- redirect_uri?: string | undefined;
60
- nonce?: string | undefined;
61
54
  state?: string | undefined;
62
- act_as?: string | undefined;
55
+ audience?: string | undefined;
56
+ scope?: string | undefined;
63
57
  response_type?: AuthorizationResponseType | undefined;
64
58
  response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
59
+ act_as?: string | undefined;
60
+ redirect_uri?: string | undefined;
61
+ organization?: string | undefined;
62
+ nonce?: string | 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;
@@ -9,14 +9,14 @@ export declare const revokeRoutes: OpenAPIHono<{
9
9
  input: {
10
10
  form: {
11
11
  token: string;
12
- token_type_hint?: "refresh_token" | "access_token" | undefined;
12
+ token_type_hint?: "access_token" | "refresh_token" | undefined;
13
13
  client_id?: string | undefined;
14
14
  client_secret?: string | undefined;
15
15
  };
16
16
  } & {
17
17
  json: {
18
18
  token: string;
19
- token_type_hint?: "refresh_token" | "access_token" | undefined;
19
+ token_type_hint?: "access_token" | "refresh_token" | undefined;
20
20
  client_id?: string | undefined;
21
21
  client_secret?: string | undefined;
22
22
  };
@@ -28,14 +28,14 @@ export declare const revokeRoutes: OpenAPIHono<{
28
28
  input: {
29
29
  form: {
30
30
  token: string;
31
- token_type_hint?: "refresh_token" | "access_token" | undefined;
31
+ token_type_hint?: "access_token" | "refresh_token" | undefined;
32
32
  client_id?: string | undefined;
33
33
  client_secret?: string | undefined;
34
34
  };
35
35
  } & {
36
36
  json: {
37
37
  token: string;
38
- token_type_hint?: "refresh_token" | "access_token" | undefined;
38
+ token_type_hint?: "access_token" | "refresh_token" | undefined;
39
39
  client_id?: string | undefined;
40
40
  client_secret?: string | undefined;
41
41
  };
@@ -50,14 +50,14 @@ export declare const revokeRoutes: OpenAPIHono<{
50
50
  input: {
51
51
  form: {
52
52
  token: string;
53
- token_type_hint?: "refresh_token" | "access_token" | undefined;
53
+ token_type_hint?: "access_token" | "refresh_token" | undefined;
54
54
  client_id?: string | undefined;
55
55
  client_secret?: string | undefined;
56
56
  };
57
57
  } & {
58
58
  json: {
59
59
  token: string;
60
- token_type_hint?: "refresh_token" | "access_token" | undefined;
60
+ token_type_hint?: "access_token" | "refresh_token" | undefined;
61
61
  client_id?: string | undefined;
62
62
  client_secret?: string | undefined;
63
63
  };
@@ -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" | "webauthn-roaming" | "webauthn-platform" | "phone" | "totp";
41
41
  phone_number?: string | undefined;
42
42
  totp_secret?: string | undefined;
43
43
  credential_id?: string | undefined;
@@ -27,7 +27,7 @@ export declare const brandingRoutes: OpenAPIHono<{
27
27
  base_focus_color: string;
28
28
  base_hover_color: string;
29
29
  body_text: string;
30
- captcha_widget_theme: "dark" | "light" | "auto";
30
+ captcha_widget_theme: "auto" | "light" | "dark";
31
31
  error: string;
32
32
  header: string;
33
33
  icons: string;
@@ -78,7 +78,7 @@ export declare const brandingRoutes: OpenAPIHono<{
78
78
  background_color: string;
79
79
  background_image_url: string;
80
80
  page_layout: "center" | "left" | "right";
81
- logo_placement?: "none" | "widget" | "chip" | undefined;
81
+ logo_placement?: "widget" | "chip" | "none" | undefined;
82
82
  };
83
83
  widget: {
84
84
  header_text_alignment: "center" | "left" | "right";
@@ -117,7 +117,7 @@ export declare const brandingRoutes: OpenAPIHono<{
117
117
  base_focus_color: string;
118
118
  base_hover_color: string;
119
119
  body_text: string;
120
- captcha_widget_theme: "dark" | "light" | "auto";
120
+ captcha_widget_theme: "auto" | "light" | "dark";
121
121
  error: string;
122
122
  header: string;
123
123
  icons: string;
@@ -168,7 +168,7 @@ export declare const brandingRoutes: OpenAPIHono<{
168
168
  background_color: string;
169
169
  background_image_url: string;
170
170
  page_layout: "center" | "left" | "right";
171
- logo_placement?: "none" | "widget" | "chip" | undefined;
171
+ logo_placement?: "widget" | "chip" | "none" | undefined;
172
172
  };
173
173
  widget: {
174
174
  header_text_alignment: "center" | "left" | "right";
@@ -196,7 +196,7 @@ export declare const brandingRoutes: OpenAPIHono<{
196
196
  base_focus_color: string;
197
197
  base_hover_color: string;
198
198
  body_text: string;
199
- captcha_widget_theme: "dark" | "light" | "auto";
199
+ captcha_widget_theme: "auto" | "light" | "dark";
200
200
  error: string;
201
201
  header: string;
202
202
  icons: string;
@@ -247,7 +247,7 @@ export declare const brandingRoutes: OpenAPIHono<{
247
247
  background_color: string;
248
248
  background_image_url: string;
249
249
  page_layout: "center" | "left" | "right";
250
- logo_placement?: "none" | "widget" | "chip" | undefined;
250
+ logo_placement?: "widget" | "chip" | "none" | undefined;
251
251
  };
252
252
  widget: {
253
253
  header_text_alignment: "center" | "left" | "right";
@@ -286,7 +286,7 @@ export declare const brandingRoutes: OpenAPIHono<{
286
286
  font?: {
287
287
  url: string;
288
288
  } | undefined;
289
- dark_mode?: "dark" | "light" | "auto" | undefined;
289
+ dark_mode?: "auto" | "light" | "dark" | undefined;
290
290
  };
291
291
  outputFormat: "json";
292
292
  status: 200;
@@ -316,7 +316,7 @@ export declare const brandingRoutes: OpenAPIHono<{
316
316
  font?: {
317
317
  url: string;
318
318
  } | undefined;
319
- dark_mode?: "dark" | "light" | "auto" | undefined;
319
+ dark_mode?: "auto" | "light" | "dark" | undefined;
320
320
  };
321
321
  };
322
322
  output: {
@@ -335,7 +335,7 @@ export declare const brandingRoutes: OpenAPIHono<{
335
335
  font?: {
336
336
  url: string;
337
337
  } | undefined;
338
- dark_mode?: "dark" | "light" | "auto" | undefined;
338
+ dark_mode?: "auto" | "light" | "dark" | undefined;
339
339
  };
340
340
  outputFormat: "json";
341
341
  status: 200;
@@ -807,7 +807,7 @@ export declare const clientRoutes: OpenAPIHono<{
807
807
  } | undefined;
808
808
  } | undefined;
809
809
  passkey_options?: {
810
- challenge_ui?: "both" | "autofill" | "button" | undefined;
810
+ challenge_ui?: "button" | "both" | "autofill" | undefined;
811
811
  local_enrollment_enabled?: boolean | undefined;
812
812
  progressive_enrollment_enabled?: boolean | undefined;
813
813
  } | undefined;
@@ -961,7 +961,7 @@ export declare const clientRoutes: OpenAPIHono<{
961
961
  } | undefined;
962
962
  } | undefined;
963
963
  passkey_options?: {
964
- challenge_ui?: "both" | "autofill" | "button" | undefined;
964
+ challenge_ui?: "button" | "both" | "autofill" | undefined;
965
965
  local_enrollment_enabled?: boolean | undefined;
966
966
  progressive_enrollment_enabled?: boolean | undefined;
967
967
  } | undefined;
@@ -129,7 +129,7 @@ export declare const connectionRoutes: OpenAPIHono<{
129
129
  } | undefined;
130
130
  } | undefined;
131
131
  passkey_options?: {
132
- challenge_ui?: "both" | "autofill" | "button" | undefined;
132
+ challenge_ui?: "button" | "both" | "autofill" | undefined;
133
133
  local_enrollment_enabled?: boolean | undefined;
134
134
  progressive_enrollment_enabled?: boolean | undefined;
135
135
  } | undefined;
@@ -263,7 +263,7 @@ export declare const connectionRoutes: OpenAPIHono<{
263
263
  } | undefined;
264
264
  } | undefined;
265
265
  passkey_options?: {
266
- challenge_ui?: "both" | "autofill" | "button" | undefined;
266
+ challenge_ui?: "button" | "both" | "autofill" | undefined;
267
267
  local_enrollment_enabled?: boolean | undefined;
268
268
  progressive_enrollment_enabled?: boolean | undefined;
269
269
  } | undefined;
@@ -412,7 +412,7 @@ export declare const connectionRoutes: OpenAPIHono<{
412
412
  } | undefined;
413
413
  } | undefined;
414
414
  passkey_options?: {
415
- challenge_ui?: "both" | "autofill" | "button" | undefined;
415
+ challenge_ui?: "button" | "both" | "autofill" | undefined;
416
416
  local_enrollment_enabled?: boolean | undefined;
417
417
  progressive_enrollment_enabled?: boolean | undefined;
418
418
  } | undefined;
@@ -591,7 +591,7 @@ export declare const connectionRoutes: OpenAPIHono<{
591
591
  } | undefined;
592
592
  } | undefined;
593
593
  passkey_options?: {
594
- challenge_ui?: "both" | "autofill" | "button" | undefined;
594
+ challenge_ui?: "button" | "both" | "autofill" | undefined;
595
595
  local_enrollment_enabled?: boolean | undefined;
596
596
  progressive_enrollment_enabled?: boolean | undefined;
597
597
  } | undefined;
@@ -749,7 +749,7 @@ export declare const connectionRoutes: OpenAPIHono<{
749
749
  } | undefined;
750
750
  } | undefined;
751
751
  passkey_options?: {
752
- challenge_ui?: "both" | "autofill" | "button" | undefined;
752
+ challenge_ui?: "button" | "both" | "autofill" | undefined;
753
753
  local_enrollment_enabled?: boolean | undefined;
754
754
  progressive_enrollment_enabled?: boolean | undefined;
755
755
  } | 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;
@@ -30,7 +30,7 @@ export declare const customDomainRoutes: OpenAPIHono<{
30
30
  primary: boolean;
31
31
  status: "disabled" | "pending" | "pending_verification" | "ready";
32
32
  verification_method?: "txt" | undefined;
33
- custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
33
+ custom_client_ip_header?: "null" | "x-forwarded-for" | "cf-connecting-ip" | "true-client-ip" | "x-azure-clientip" | undefined;
34
34
  domain_metadata?: {
35
35
  [x: string]: string;
36
36
  } | undefined;
@@ -71,7 +71,7 @@ export declare const customDomainRoutes: OpenAPIHono<{
71
71
  primary: boolean;
72
72
  status: "disabled" | "pending" | "pending_verification" | "ready";
73
73
  verification_method?: "txt" | undefined;
74
- custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
74
+ custom_client_ip_header?: "null" | "x-forwarded-for" | "cf-connecting-ip" | "true-client-ip" | "x-azure-clientip" | undefined;
75
75
  domain_metadata?: {
76
76
  [x: string]: string;
77
77
  } | undefined;
@@ -126,7 +126,7 @@ export declare const customDomainRoutes: OpenAPIHono<{
126
126
  domain?: string | undefined;
127
127
  type?: "auth0_managed_certs" | "self_managed_certs" | undefined;
128
128
  verification_method?: "txt" | undefined;
129
- custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
129
+ custom_client_ip_header?: "null" | "x-forwarded-for" | "cf-connecting-ip" | "true-client-ip" | "x-azure-clientip" | undefined;
130
130
  domain_metadata?: Record<string, string> | undefined;
131
131
  custom_domain_id?: string | undefined;
132
132
  primary?: boolean | undefined;
@@ -153,7 +153,7 @@ export declare const customDomainRoutes: OpenAPIHono<{
153
153
  primary: boolean;
154
154
  status: "disabled" | "pending" | "pending_verification" | "ready";
155
155
  verification_method?: "txt" | undefined;
156
- custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
156
+ custom_client_ip_header?: "null" | "x-forwarded-for" | "cf-connecting-ip" | "true-client-ip" | "x-azure-clientip" | undefined;
157
157
  domain_metadata?: {
158
158
  [x: string]: string;
159
159
  } | undefined;
@@ -189,7 +189,7 @@ export declare const customDomainRoutes: OpenAPIHono<{
189
189
  custom_domain_id?: string | undefined;
190
190
  verification_method?: "txt" | undefined;
191
191
  tls_policy?: "recommended" | undefined;
192
- custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
192
+ custom_client_ip_header?: "null" | "x-forwarded-for" | "cf-connecting-ip" | "true-client-ip" | "x-azure-clientip" | undefined;
193
193
  domain_metadata?: Record<string, string> | undefined;
194
194
  };
195
195
  };
@@ -200,7 +200,7 @@ export declare const customDomainRoutes: OpenAPIHono<{
200
200
  primary: boolean;
201
201
  status: "disabled" | "pending" | "pending_verification" | "ready";
202
202
  verification_method?: "txt" | undefined;
203
- custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
203
+ custom_client_ip_header?: "null" | "x-forwarded-for" | "cf-connecting-ip" | "true-client-ip" | "x-azure-clientip" | undefined;
204
204
  domain_metadata?: {
205
205
  [x: string]: string;
206
206
  } | undefined;
@@ -246,7 +246,7 @@ export declare const customDomainRoutes: OpenAPIHono<{
246
246
  primary: boolean;
247
247
  status: "disabled" | "pending" | "pending_verification" | "ready";
248
248
  verification_method?: "txt" | undefined;
249
- custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
249
+ custom_client_ip_header?: "null" | "x-forwarded-for" | "cf-connecting-ip" | "true-client-ip" | "x-azure-clientip" | undefined;
250
250
  domain_metadata?: {
251
251
  [x: string]: string;
252
252
  } | undefined;
@@ -287,7 +287,7 @@ export declare const customDomainRoutes: OpenAPIHono<{
287
287
  primary: boolean;
288
288
  status: "disabled" | "pending" | "pending_verification" | "ready";
289
289
  verification_method?: "txt" | undefined;
290
- custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
290
+ custom_client_ip_header?: "null" | "x-forwarded-for" | "cf-connecting-ip" | "true-client-ip" | "x-azure-clientip" | undefined;
291
291
  domain_metadata?: {
292
292
  [x: string]: string;
293
293
  } | undefined;
@@ -59,6 +59,23 @@ 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: "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";
72
+ body: string;
73
+ subject: string;
74
+ }[];
75
+ outputFormat: "json";
76
+ status: 200;
77
+ };
78
+ };
62
79
  } & {
63
80
  "/:templateName": {
64
81
  $get: {