authhero 9.10.0 → 9.11.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.
- package/dist/assets/u/widget/index.esm.js +1 -1
- package/dist/authhero.cjs +146 -146
- package/dist/authhero.d.ts +341 -119
- package/dist/authhero.mjs +15107 -14199
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/helpers/dcr/metadata-mapping.d.ts +1 -1
- package/dist/types/helpers/reserved-claims.d.ts +2 -2
- package/dist/types/helpers/run-retention.d.ts +5 -0
- package/dist/types/helpers/users-import/map.d.ts +128 -0
- package/dist/types/helpers/users-import/process.d.ts +95 -0
- package/dist/types/helpers/users-import-cleanup.d.ts +26 -0
- package/dist/types/index.d.ts +238 -115
- package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
- package/dist/types/routes/management-api/branding.d.ts +9 -9
- package/dist/types/routes/management-api/client-grants.d.ts +9 -9
- package/dist/types/routes/management-api/failed-events.d.ts +2 -2
- package/dist/types/routes/management-api/helpers.d.ts +1 -1
- package/dist/types/routes/management-api/index.d.ts +194 -75
- package/dist/types/routes/management-api/jobs.d.ts +133 -0
- package/dist/types/routes/management-api/logs.d.ts +4 -4
- package/dist/types/routes/management-api/organizations.d.ts +1 -1
- package/dist/types/routes/management-api/prompts.d.ts +4 -4
- package/dist/types/routes/management-api/tenant-export-import.d.ts +5 -5
- package/dist/types/routes/management-api/tenant-operations.d.ts +33 -9
- package/dist/types/routes/management-api/users.d.ts +2 -2
- package/dist/types/routes/universal-login/flow-api.d.ts +4 -4
- package/dist/types/state-machines/login-session.d.ts +1 -1
- package/dist/types/types/AuthHeroConfig.d.ts +13 -0
- package/dist/types/types/Bindings.d.ts +2 -0
- package/dist/types/types/auth0/UserImport.d.ts +317 -0
- package/package.json +6 -6
|
@@ -37,7 +37,7 @@ export declare const authenticationMethodsRoutes: OpenAPIHono<{
|
|
|
37
37
|
};
|
|
38
38
|
} & {
|
|
39
39
|
json: {
|
|
40
|
-
type: "email" | "passkey" | "
|
|
40
|
+
type: "email" | "passkey" | "totp" | "phone" | "push" | "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?: "
|
|
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: "
|
|
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?: "
|
|
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: "
|
|
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?: "
|
|
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: "
|
|
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?: "
|
|
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?: "
|
|
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: "
|
|
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?: "
|
|
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?: "
|
|
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?: "
|
|
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?: "
|
|
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?: "
|
|
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?: "
|
|
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?: "
|
|
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?: "
|
|
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?: "
|
|
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;
|
|
@@ -28,9 +28,9 @@ export declare const failedEventsRoutes: OpenAPIHono<{
|
|
|
28
28
|
tenant_id: string;
|
|
29
29
|
event_type: string;
|
|
30
30
|
log_type: string;
|
|
31
|
-
category: "
|
|
31
|
+
category: "system" | "user_action" | "admin_action" | "api";
|
|
32
32
|
actor: {
|
|
33
|
-
type: "client_credentials" | "
|
|
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;
|
|
@@ -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<(("
|
|
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;
|