authhero 9.10.0 → 9.11.1

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 (39) hide show
  1. package/dist/assets/u/widget/index.esm.js +1 -1
  2. package/dist/authhero.cjs +146 -146
  3. package/dist/authhero.d.ts +494 -250
  4. package/dist/authhero.mjs +15108 -14199
  5. package/dist/tsconfig.types.tsbuildinfo +1 -1
  6. package/dist/types/helpers/dcr/metadata-mapping.d.ts +1 -1
  7. package/dist/types/helpers/reserved-claims.d.ts +19 -3
  8. package/dist/types/helpers/run-retention.d.ts +5 -0
  9. package/dist/types/helpers/users-import/map.d.ts +128 -0
  10. package/dist/types/helpers/users-import/process.d.ts +95 -0
  11. package/dist/types/helpers/users-import-cleanup.d.ts +26 -0
  12. package/dist/types/index.d.ts +369 -246
  13. package/dist/types/routes/auth-api/index.d.ts +9 -9
  14. package/dist/types/routes/auth-api/passwordless.d.ts +8 -8
  15. package/dist/types/routes/auth-api/well-known.d.ts +1 -1
  16. package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
  17. package/dist/types/routes/management-api/branding.d.ts +9 -9
  18. package/dist/types/routes/management-api/client-grants.d.ts +9 -9
  19. package/dist/types/routes/management-api/failed-events.d.ts +1 -1
  20. package/dist/types/routes/management-api/guardian.d.ts +5 -5
  21. package/dist/types/routes/management-api/helpers.d.ts +1 -1
  22. package/dist/types/routes/management-api/index.d.ts +333 -214
  23. package/dist/types/routes/management-api/jobs.d.ts +133 -0
  24. package/dist/types/routes/management-api/keys.d.ts +12 -12
  25. package/dist/types/routes/management-api/logs.d.ts +4 -4
  26. package/dist/types/routes/management-api/migration-sources.d.ts +6 -6
  27. package/dist/types/routes/management-api/organizations.d.ts +1 -1
  28. package/dist/types/routes/management-api/prompts.d.ts +4 -4
  29. package/dist/types/routes/management-api/tenant-export-import.d.ts +5 -5
  30. package/dist/types/routes/management-api/tenant-operations.d.ts +32 -8
  31. package/dist/types/routes/management-api/users.d.ts +12 -12
  32. package/dist/types/routes/universal-login/u2-index.d.ts +5 -5
  33. package/dist/types/routes/universal-login/u2-routes.d.ts +5 -5
  34. package/dist/types/state-machines/login-session.d.ts +1 -1
  35. package/dist/types/types/AuthHeroConfig.d.ts +34 -0
  36. package/dist/types/types/Bindings.d.ts +3 -0
  37. package/dist/types/types/auth0/UserImport.d.ts +317 -0
  38. package/dist/types/utils/jwks.d.ts +2 -2
  39. package/package.json +6 -6
@@ -741,15 +741,15 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
741
741
  scope?: string | undefined;
742
742
  username?: string | undefined;
743
743
  audience?: string | undefined;
744
+ nonce?: string | undefined;
744
745
  organization?: string | undefined;
745
- state?: string | undefined;
746
746
  redirect_uri?: string | undefined;
747
- prompt?: string | undefined;
748
- ui_locales?: string | undefined;
747
+ state?: string | undefined;
749
748
  act_as?: string | undefined;
750
- nonce?: string | undefined;
749
+ prompt?: string | undefined;
751
750
  code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
752
751
  code_challenge?: string | undefined;
752
+ ui_locales?: string | undefined;
753
753
  max_age?: number | undefined;
754
754
  acr_values?: string | undefined;
755
755
  claims?: {
@@ -777,15 +777,15 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
777
777
  scope?: string | undefined;
778
778
  username?: string | undefined;
779
779
  audience?: string | undefined;
780
+ nonce?: string | undefined;
780
781
  organization?: string | undefined;
781
- state?: string | undefined;
782
782
  redirect_uri?: string | undefined;
783
- prompt?: string | undefined;
784
- ui_locales?: string | undefined;
783
+ state?: string | undefined;
785
784
  act_as?: string | undefined;
786
- nonce?: string | undefined;
785
+ prompt?: string | undefined;
787
786
  code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
788
787
  code_challenge?: string | undefined;
788
+ ui_locales?: string | undefined;
789
789
  max_age?: number | undefined;
790
790
  acr_values?: string | undefined;
791
791
  claims?: {
@@ -1520,7 +1520,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
1520
1520
  output: {
1521
1521
  keys: {
1522
1522
  alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
1523
- kty: "EC" | "RSA" | "oct";
1523
+ kty: "RSA" | "EC" | "oct";
1524
1524
  kid?: string | undefined;
1525
1525
  use?: "sig" | "enc" | undefined;
1526
1526
  n?: string | undefined;
@@ -19,15 +19,15 @@ export declare const passwordlessRoutes: OpenAPIHono<{
19
19
  scope?: string | undefined;
20
20
  username?: string | undefined;
21
21
  audience?: string | undefined;
22
+ nonce?: string | undefined;
22
23
  organization?: string | undefined;
23
- state?: string | undefined;
24
24
  redirect_uri?: string | undefined;
25
- prompt?: string | undefined;
26
- ui_locales?: string | undefined;
25
+ state?: string | undefined;
27
26
  act_as?: string | undefined;
28
- nonce?: 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?: {
@@ -55,15 +55,15 @@ export declare const passwordlessRoutes: OpenAPIHono<{
55
55
  scope?: string | undefined;
56
56
  username?: string | undefined;
57
57
  audience?: string | undefined;
58
+ nonce?: string | undefined;
58
59
  organization?: string | undefined;
59
- state?: string | undefined;
60
60
  redirect_uri?: string | undefined;
61
- prompt?: string | undefined;
62
- ui_locales?: string | undefined;
61
+ state?: string | undefined;
63
62
  act_as?: string | undefined;
64
- nonce?: 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?: {
@@ -9,7 +9,7 @@ export declare const wellKnownRoutes: import("hono/hono-base").HonoBase<{
9
9
  output: {
10
10
  keys: {
11
11
  alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
12
- kty: "EC" | "RSA" | "oct";
12
+ kty: "RSA" | "EC" | "oct";
13
13
  kid?: string | undefined;
14
14
  use?: "sig" | "enc" | undefined;
15
15
  n?: 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;
@@ -78,12 +78,12 @@ 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?: "widget" | "none" | "chip" | undefined;
81
+ logo_placement?: "none" | "widget" | "chip" | undefined;
82
82
  };
83
83
  widget: {
84
84
  header_text_alignment: "center" | "left" | "right";
85
85
  logo_height: number;
86
- logo_position: "center" | "left" | "right" | "none";
86
+ logo_position: "none" | "center" | "left" | "right";
87
87
  logo_url: string;
88
88
  social_buttons_layout: "bottom" | "top";
89
89
  };
@@ -168,12 +168,12 @@ 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?: "widget" | "none" | "chip" | undefined;
171
+ logo_placement?: "none" | "widget" | "chip" | undefined;
172
172
  };
173
173
  widget: {
174
174
  header_text_alignment: "center" | "left" | "right";
175
175
  logo_height: number;
176
- logo_position: "center" | "left" | "right" | "none";
176
+ logo_position: "none" | "center" | "left" | "right";
177
177
  logo_url: string;
178
178
  social_buttons_layout: "bottom" | "top";
179
179
  };
@@ -247,12 +247,12 @@ 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?: "widget" | "none" | "chip" | undefined;
250
+ logo_placement?: "none" | "widget" | "chip" | undefined;
251
251
  };
252
252
  widget: {
253
253
  header_text_alignment: "center" | "left" | "right";
254
254
  logo_height: number;
255
- logo_position: "center" | "left" | "right" | "none";
255
+ logo_position: "none" | "center" | "left" | "right";
256
256
  logo_url: string;
257
257
  social_buttons_layout: "bottom" | "top";
258
258
  };
@@ -409,7 +409,7 @@ export declare const brandingRoutes: OpenAPIHono<{
409
409
  } & {
410
410
  json: {
411
411
  body?: string | undefined;
412
- screen?: "password" | "login" | "identifier" | "signup" | undefined;
412
+ screen?: "identifier" | "signup" | "password" | "login" | undefined;
413
413
  branding?: {
414
414
  colors?: {
415
415
  primary: string;
@@ -495,12 +495,12 @@ export declare const brandingRoutes: OpenAPIHono<{
495
495
  background_color: string;
496
496
  background_image_url: string;
497
497
  page_layout: "center" | "left" | "right";
498
- logo_placement?: "widget" | "none" | "chip" | undefined;
498
+ logo_placement?: "none" | "widget" | "chip" | undefined;
499
499
  } | undefined;
500
500
  widget?: {
501
501
  header_text_alignment: "center" | "left" | "right";
502
502
  logo_height: number;
503
- logo_position: "center" | "left" | "right" | "none";
503
+ logo_position: "none" | "center" | "left" | "right";
504
504
  logo_url: string;
505
505
  social_buttons_layout: "bottom" | "top";
506
506
  } | 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?: "user" | "client" | undefined;
19
+ subject_type?: "client" | "user" | 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?: "user" | "client" | undefined;
34
+ subject_type?: "client" | "user" | 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?: "user" | "client" | undefined;
50
+ subject_type?: "client" | "user" | undefined;
51
51
  authorization_details_types?: string[] | undefined;
52
52
  created_at?: string | undefined;
53
53
  updated_at?: string | undefined;
@@ -63,7 +63,7 @@ export declare const clientGrantRoutes: OpenAPIHono<{
63
63
  organization_usage?: "deny" | "allow" | "require" | undefined;
64
64
  allow_any_organization?: boolean | undefined;
65
65
  is_system?: boolean | undefined;
66
- subject_type?: "user" | "client" | undefined;
66
+ subject_type?: "client" | "user" | undefined;
67
67
  authorization_details_types?: string[] | undefined;
68
68
  created_at?: string | undefined;
69
69
  updated_at?: string | undefined;
@@ -94,7 +94,7 @@ export declare const clientGrantRoutes: OpenAPIHono<{
94
94
  organization_usage?: "deny" | "allow" | "require" | undefined;
95
95
  allow_any_organization?: boolean | undefined;
96
96
  is_system?: boolean | undefined;
97
- subject_type?: "user" | "client" | undefined;
97
+ subject_type?: "client" | "user" | undefined;
98
98
  authorization_details_types?: string[] | undefined;
99
99
  created_at?: string | undefined;
100
100
  updated_at?: string | undefined;
@@ -139,7 +139,7 @@ export declare const clientGrantRoutes: OpenAPIHono<{
139
139
  organization_usage?: "deny" | "allow" | "require" | undefined;
140
140
  allow_any_organization?: boolean | undefined;
141
141
  is_system?: boolean | undefined;
142
- subject_type?: "user" | "client" | undefined;
142
+ subject_type?: "client" | "user" | undefined;
143
143
  authorization_details_types?: string[] | undefined;
144
144
  };
145
145
  };
@@ -151,7 +151,7 @@ export declare const clientGrantRoutes: OpenAPIHono<{
151
151
  organization_usage?: "deny" | "allow" | "require" | undefined;
152
152
  allow_any_organization?: boolean | undefined;
153
153
  is_system?: boolean | undefined;
154
- subject_type?: "user" | "client" | undefined;
154
+ subject_type?: "client" | "user" | undefined;
155
155
  authorization_details_types?: string[] | undefined;
156
156
  created_at?: string | undefined;
157
157
  updated_at?: string | undefined;
@@ -175,7 +175,7 @@ export declare const clientGrantRoutes: OpenAPIHono<{
175
175
  organization_usage?: "deny" | "allow" | "require" | undefined;
176
176
  allow_any_organization?: boolean | undefined;
177
177
  is_system?: boolean | undefined;
178
- subject_type?: "user" | "client" | undefined;
178
+ subject_type?: "client" | "user" | undefined;
179
179
  authorization_details_types?: string[] | undefined;
180
180
  };
181
181
  };
@@ -187,7 +187,7 @@ export declare const clientGrantRoutes: OpenAPIHono<{
187
187
  organization_usage?: "deny" | "allow" | "require" | undefined;
188
188
  allow_any_organization?: boolean | undefined;
189
189
  is_system?: boolean | undefined;
190
- subject_type?: "user" | "client" | undefined;
190
+ subject_type?: "client" | "user" | undefined;
191
191
  authorization_details_types?: string[] | undefined;
192
192
  created_at?: string | undefined;
193
193
  updated_at?: string | undefined;
@@ -30,7 +30,7 @@ export declare const failedEventsRoutes: OpenAPIHono<{
30
30
  log_type: string;
31
31
  category: "user_action" | "admin_action" | "system" | "api";
32
32
  actor: {
33
- type: "client_credentials" | "system" | "user" | "admin" | "api_key";
33
+ type: "client_credentials" | "user" | "system" | "admin" | "api_key";
34
34
  id?: string | undefined;
35
35
  email?: string | undefined;
36
36
  org_id?: string | undefined;
@@ -12,7 +12,7 @@ export declare const guardianRoutes: OpenAPIHono<{
12
12
  };
13
13
  };
14
14
  output: {
15
- name: "email" | "sms" | "otp" | "duo" | "push-notification" | "webauthn-roaming" | "webauthn-platform" | "recovery-code";
15
+ name: "email" | "sms" | "otp" | "duo" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "recovery-code";
16
16
  enabled: boolean;
17
17
  trial_expired?: boolean | undefined;
18
18
  }[];
@@ -167,7 +167,7 @@ export declare const guardianRoutes: OpenAPIHono<{
167
167
  $get: {
168
168
  input: {
169
169
  param: {
170
- factor_name: "email" | "sms" | "otp" | "duo" | "push-notification" | "webauthn-roaming" | "webauthn-platform" | "recovery-code";
170
+ factor_name: "email" | "sms" | "otp" | "duo" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "recovery-code";
171
171
  };
172
172
  } & {
173
173
  header: {
@@ -175,7 +175,7 @@ export declare const guardianRoutes: OpenAPIHono<{
175
175
  };
176
176
  };
177
177
  output: {
178
- name: "email" | "sms" | "otp" | "duo" | "push-notification" | "webauthn-roaming" | "webauthn-platform" | "recovery-code";
178
+ name: "email" | "sms" | "otp" | "duo" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "recovery-code";
179
179
  enabled: boolean;
180
180
  trial_expired?: boolean | undefined;
181
181
  };
@@ -188,7 +188,7 @@ export declare const guardianRoutes: OpenAPIHono<{
188
188
  $put: {
189
189
  input: {
190
190
  param: {
191
- factor_name: "email" | "sms" | "otp" | "duo" | "push-notification" | "webauthn-roaming" | "webauthn-platform" | "recovery-code";
191
+ factor_name: "email" | "sms" | "otp" | "duo" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "recovery-code";
192
192
  };
193
193
  } & {
194
194
  header: {
@@ -200,7 +200,7 @@ export declare const guardianRoutes: OpenAPIHono<{
200
200
  };
201
201
  };
202
202
  output: {
203
- name: "email" | "sms" | "otp" | "duo" | "push-notification" | "webauthn-roaming" | "webauthn-platform" | "recovery-code";
203
+ name: "email" | "sms" | "otp" | "duo" | "webauthn-roaming" | "webauthn-platform" | "push-notification" | "recovery-code";
204
204
  enabled: boolean;
205
205
  trial_expired?: boolean | undefined;
206
206
  };
@@ -23,7 +23,7 @@ export declare function requireTenantId(ctx: {
23
23
  * `totalsSchema.extend({ roles: z.array(roleSchema) })` pattern repeated
24
24
  * across the management-api modules.
25
25
  */
26
- export declare function withTotals<T extends z.ZodRawShape>(items: T): z.ZodObject<(("next" | "length" | "start" | "limit" | "total") & keyof T extends never ? {
26
+ export declare function withTotals<T extends z.ZodRawShape>(items: T): z.ZodObject<(("total" | "length" | "start" | "limit" | "next") & keyof T extends never ? {
27
27
  start: z.ZodNumber;
28
28
  limit: z.ZodNumber;
29
29
  length: z.ZodNumber;