authhero 7.0.0 → 7.1.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 (32) hide show
  1. package/dist/assets/u/widget/index.esm.js +1 -1
  2. package/dist/authhero.cjs +105 -105
  3. package/dist/authhero.d.ts +194 -209
  4. package/dist/authhero.mjs +9211 -9198
  5. package/dist/stats.html +1 -1
  6. package/dist/tsconfig.types.tsbuildinfo +1 -1
  7. package/dist/types/authentication-flows/passwordless.d.ts +1 -1
  8. package/dist/types/helpers/dcr/metadata-mapping.d.ts +2 -2
  9. package/dist/types/index.d.ts +173 -191
  10. package/dist/types/routes/auth-api/index.d.ts +10 -10
  11. package/dist/types/routes/auth-api/passwordless.d.ts +8 -8
  12. package/dist/types/routes/auth-api/register/index.d.ts +2 -2
  13. package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
  14. package/dist/types/routes/management-api/client-grants.d.ts +8 -8
  15. package/dist/types/routes/management-api/clients.d.ts +7 -7
  16. package/dist/types/routes/management-api/connections.d.ts +1 -1
  17. package/dist/types/routes/management-api/custom-domains.d.ts +1 -19
  18. package/dist/types/routes/management-api/forms.d.ts +119 -119
  19. package/dist/types/routes/management-api/guardian.d.ts +5 -5
  20. package/dist/types/routes/management-api/index.d.ts +157 -175
  21. package/dist/types/routes/management-api/logs.d.ts +3 -3
  22. package/dist/types/routes/management-api/migration-sources.d.ts +6 -6
  23. package/dist/types/routes/management-api/prompts.d.ts +4 -4
  24. package/dist/types/routes/management-api/users.d.ts +2 -2
  25. package/dist/types/routes/proxy-control-plane/index.d.ts +10 -15
  26. package/dist/types/routes/proxy-control-plane/verify.d.ts +10 -5
  27. package/dist/types/routes/universal-login/common.d.ts +2 -2
  28. package/dist/types/routes/universal-login/flow-api.d.ts +12 -12
  29. package/dist/types/routes/universal-login/u2-index.d.ts +6 -6
  30. package/dist/types/routes/universal-login/u2-routes.d.ts +6 -6
  31. package/dist/types/types/AuthHeroConfig.d.ts +11 -13
  32. package/package.json +5 -5
@@ -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?: "client_secret_post" | "client_secret_basic" | "none" | "client_secret_jwt" | "private_key_jwt" | undefined;
291
+ token_endpoint_auth_method?: "client_secret_post" | "client_secret_basic" | "none" | "private_key_jwt" | "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?: "client_secret_post" | "client_secret_basic" | "none" | "client_secret_jwt" | "private_key_jwt" | undefined;
380
+ token_endpoint_auth_method?: "client_secret_post" | "client_secret_basic" | "none" | "private_key_jwt" | "client_secret_jwt" | undefined;
381
381
  jwks_uri?: string | undefined;
382
382
  jwks?: Record<string, unknown> | undefined;
383
383
  software_id?: string | undefined;
@@ -729,14 +729,14 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
729
729
  username?: string | undefined;
730
730
  audience?: string | undefined;
731
731
  state?: string | undefined;
732
- prompt?: string | undefined;
733
- ui_locales?: string | undefined;
734
732
  organization?: string | undefined;
735
- redirect_uri?: string | undefined;
736
- act_as?: string | undefined;
737
733
  nonce?: string | undefined;
734
+ act_as?: string | undefined;
735
+ redirect_uri?: string | undefined;
736
+ prompt?: string | undefined;
738
737
  code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
739
738
  code_challenge?: string | undefined;
739
+ ui_locales?: string | undefined;
740
740
  max_age?: number | undefined;
741
741
  acr_values?: string | undefined;
742
742
  claims?: {
@@ -765,14 +765,14 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
765
765
  username?: string | undefined;
766
766
  audience?: string | undefined;
767
767
  state?: string | undefined;
768
- prompt?: string | undefined;
769
- ui_locales?: string | undefined;
770
768
  organization?: string | undefined;
771
- redirect_uri?: string | undefined;
772
- act_as?: string | undefined;
773
769
  nonce?: string | undefined;
770
+ act_as?: string | undefined;
771
+ redirect_uri?: string | undefined;
772
+ prompt?: string | undefined;
774
773
  code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
775
774
  code_challenge?: string | undefined;
775
+ ui_locales?: string | undefined;
776
776
  max_age?: number | undefined;
777
777
  acr_values?: string | undefined;
778
778
  claims?: {
@@ -20,14 +20,14 @@ export declare const passwordlessRoutes: OpenAPIHono<{
20
20
  username?: string | undefined;
21
21
  audience?: string | undefined;
22
22
  state?: string | undefined;
23
- prompt?: string | undefined;
24
- ui_locales?: string | undefined;
25
23
  organization?: string | undefined;
26
- redirect_uri?: string | undefined;
27
- act_as?: string | undefined;
28
24
  nonce?: string | undefined;
25
+ act_as?: string | undefined;
26
+ redirect_uri?: string | undefined;
27
+ prompt?: string | undefined;
29
28
  code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
30
29
  code_challenge?: string | undefined;
30
+ ui_locales?: string | undefined;
31
31
  max_age?: number | undefined;
32
32
  acr_values?: string | undefined;
33
33
  claims?: {
@@ -56,14 +56,14 @@ export declare const passwordlessRoutes: OpenAPIHono<{
56
56
  username?: string | undefined;
57
57
  audience?: string | undefined;
58
58
  state?: string | undefined;
59
- prompt?: string | undefined;
60
- ui_locales?: string | undefined;
61
59
  organization?: string | undefined;
62
- redirect_uri?: string | undefined;
63
- act_as?: string | undefined;
64
60
  nonce?: string | undefined;
61
+ act_as?: string | undefined;
62
+ redirect_uri?: string | undefined;
63
+ prompt?: string | undefined;
65
64
  code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
66
65
  code_challenge?: string | undefined;
66
+ ui_locales?: string | undefined;
67
67
  max_age?: number | undefined;
68
68
  acr_values?: string | undefined;
69
69
  claims?: {
@@ -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?: "client_secret_post" | "client_secret_basic" | "none" | "client_secret_jwt" | "private_key_jwt" | undefined;
21
+ token_endpoint_auth_method?: "client_secret_post" | "client_secret_basic" | "none" | "private_key_jwt" | "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?: "client_secret_post" | "client_secret_basic" | "none" | "client_secret_jwt" | "private_key_jwt" | undefined;
110
+ token_endpoint_auth_method?: "client_secret_post" | "client_secret_basic" | "none" | "private_key_jwt" | "client_secret_jwt" | undefined;
111
111
  jwks_uri?: string | undefined;
112
112
  jwks?: Record<string, unknown> | undefined;
113
113
  software_id?: string | undefined;
@@ -37,7 +37,7 @@ export declare const authenticationMethodsRoutes: OpenAPIHono<{
37
37
  };
38
38
  } & {
39
39
  json: {
40
- type: "email" | "passkey" | "push" | "webauthn-roaming" | "webauthn-platform" | "phone" | "totp";
40
+ type: "email" | "passkey" | "push" | "phone" | "totp" | "webauthn-roaming" | "webauthn-platform";
41
41
  phone_number?: string | undefined;
42
42
  totp_secret?: string | undefined;
43
43
  credential_id?: string | undefined;
@@ -16,7 +16,7 @@ export declare const clientGrantRoutes: OpenAPIHono<{
16
16
  audience?: string | undefined;
17
17
  client_id?: string | undefined;
18
18
  allow_any_organization?: string | undefined;
19
- subject_type?: "client" | "user" | undefined;
19
+ subject_type?: "user" | "client" | undefined;
20
20
  };
21
21
  } & {
22
22
  header: {
@@ -31,7 +31,7 @@ export declare const clientGrantRoutes: OpenAPIHono<{
31
31
  organization_usage?: "deny" | "allow" | "require" | undefined;
32
32
  allow_any_organization?: boolean | undefined;
33
33
  is_system?: boolean | undefined;
34
- subject_type?: "client" | "user" | undefined;
34
+ subject_type?: "user" | "client" | undefined;
35
35
  authorization_details_types?: string[] | undefined;
36
36
  created_at?: string | undefined;
37
37
  updated_at?: string | undefined;
@@ -47,7 +47,7 @@ export declare const clientGrantRoutes: OpenAPIHono<{
47
47
  organization_usage?: "deny" | "allow" | "require" | undefined;
48
48
  allow_any_organization?: boolean | undefined;
49
49
  is_system?: boolean | undefined;
50
- subject_type?: "client" | "user" | undefined;
50
+ subject_type?: "user" | "client" | undefined;
51
51
  authorization_details_types?: string[] | undefined;
52
52
  created_at?: string | undefined;
53
53
  updated_at?: string | undefined;
@@ -78,7 +78,7 @@ export declare const clientGrantRoutes: OpenAPIHono<{
78
78
  organization_usage?: "deny" | "allow" | "require" | undefined;
79
79
  allow_any_organization?: boolean | undefined;
80
80
  is_system?: boolean | undefined;
81
- subject_type?: "client" | "user" | undefined;
81
+ subject_type?: "user" | "client" | undefined;
82
82
  authorization_details_types?: string[] | undefined;
83
83
  created_at?: string | undefined;
84
84
  updated_at?: string | undefined;
@@ -123,7 +123,7 @@ export declare const clientGrantRoutes: OpenAPIHono<{
123
123
  organization_usage?: "deny" | "allow" | "require" | undefined;
124
124
  allow_any_organization?: boolean | undefined;
125
125
  is_system?: boolean | undefined;
126
- subject_type?: "client" | "user" | undefined;
126
+ subject_type?: "user" | "client" | undefined;
127
127
  authorization_details_types?: string[] | undefined;
128
128
  };
129
129
  };
@@ -135,7 +135,7 @@ export declare const clientGrantRoutes: OpenAPIHono<{
135
135
  organization_usage?: "deny" | "allow" | "require" | undefined;
136
136
  allow_any_organization?: boolean | undefined;
137
137
  is_system?: boolean | undefined;
138
- subject_type?: "client" | "user" | undefined;
138
+ subject_type?: "user" | "client" | undefined;
139
139
  authorization_details_types?: string[] | undefined;
140
140
  created_at?: string | undefined;
141
141
  updated_at?: string | undefined;
@@ -159,7 +159,7 @@ export declare const clientGrantRoutes: OpenAPIHono<{
159
159
  organization_usage?: "deny" | "allow" | "require" | undefined;
160
160
  allow_any_organization?: boolean | undefined;
161
161
  is_system?: boolean | undefined;
162
- subject_type?: "client" | "user" | undefined;
162
+ subject_type?: "user" | "client" | undefined;
163
163
  authorization_details_types?: string[] | undefined;
164
164
  };
165
165
  };
@@ -171,7 +171,7 @@ export declare const clientGrantRoutes: OpenAPIHono<{
171
171
  organization_usage?: "deny" | "allow" | "require" | undefined;
172
172
  allow_any_organization?: boolean | undefined;
173
173
  is_system?: boolean | undefined;
174
- subject_type?: "client" | "user" | undefined;
174
+ subject_type?: "user" | "client" | undefined;
175
175
  authorization_details_types?: string[] | undefined;
176
176
  created_at?: string | undefined;
177
177
  updated_at?: 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?: "client_secret_post" | "client_secret_basic" | "none" | "client_secret_jwt" | "private_key_jwt" | undefined;
75
+ token_endpoint_auth_method?: "client_secret_post" | "client_secret_basic" | "none" | "private_key_jwt" | "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?: "client_secret_post" | "client_secret_basic" | "none" | "client_secret_jwt" | "private_key_jwt" | undefined;
171
+ token_endpoint_auth_method?: "client_secret_post" | "client_secret_basic" | "none" | "private_key_jwt" | "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?: "client_secret_post" | "client_secret_basic" | "none" | "client_secret_jwt" | "private_key_jwt" | undefined;
282
+ token_endpoint_auth_method?: "client_secret_post" | "client_secret_basic" | "none" | "private_key_jwt" | "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?: "client_secret_post" | "client_secret_basic" | "none" | "client_secret_jwt" | "private_key_jwt" | undefined;
392
+ token_endpoint_auth_method?: "client_secret_post" | "client_secret_basic" | "none" | "private_key_jwt" | "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?: "client_secret_post" | "client_secret_basic" | "none" | "client_secret_jwt" | "private_key_jwt" | undefined;
472
+ token_endpoint_auth_method?: "client_secret_post" | "client_secret_basic" | "none" | "private_key_jwt" | "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?: "client_secret_post" | "client_secret_basic" | "none" | "client_secret_jwt" | "private_key_jwt" | undefined;
561
+ token_endpoint_auth_method?: "client_secret_post" | "client_secret_basic" | "none" | "private_key_jwt" | "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?: "client_secret_post" | "client_secret_basic" | "none" | "client_secret_jwt" | "private_key_jwt" | undefined;
641
+ token_endpoint_auth_method?: "client_secret_post" | "client_secret_basic" | "none" | "private_key_jwt" | "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;
@@ -123,27 +123,9 @@ export declare const customDomainRoutes: OpenAPIHono<{
123
123
  };
124
124
  } & {
125
125
  json: {
126
- domain?: string | undefined;
127
- type?: "auth0_managed_certs" | "self_managed_certs" | undefined;
128
- verification_method?: "txt" | undefined;
126
+ tls_policy?: "recommended" | undefined;
129
127
  custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
130
128
  domain_metadata?: Record<string, string> | undefined;
131
- custom_domain_id?: string | undefined;
132
- primary?: boolean | undefined;
133
- status?: "disabled" | "pending" | "ready" | "pending_verification" | undefined;
134
- origin_domain_name?: string | undefined;
135
- verification?: {
136
- methods: ({
137
- name: "txt";
138
- record: string;
139
- domain: string;
140
- } | {
141
- name: "http";
142
- http_body: string;
143
- http_url: string;
144
- })[];
145
- } | undefined;
146
- tls_policy?: string | undefined;
147
129
  };
148
130
  };
149
131
  output: {