authhero 4.31.0 → 4.33.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/js/client.js +1 -1
- package/dist/assets/u/widget/authhero-widget.esm.js +1 -1
- package/dist/assets/u/widget/index.esm.js +1 -1
- package/dist/assets/u/widget/p-1107d60e.entry.js +1 -0
- package/dist/assets/u/widget/p-5hZ8Vbm9.js +2 -0
- package/dist/assets/u/widget/p-b2d3d319.entry.js +1 -0
- package/dist/authhero.cjs +68 -66
- package/dist/authhero.d.ts +44 -54
- package/dist/authhero.mjs +16744 -15841
- package/dist/client.js +1 -1
- package/dist/stats.html +1 -1
- package/package.json +4 -4
- package/dist/assets/u/widget/p-130714cc.entry.js +0 -1
- package/dist/assets/u/widget/p-2c7cceee.entry.js +0 -1
- package/dist/assets/u/widget/p-ARKBiJrR.js +0 -2
package/dist/authhero.d.ts
CHANGED
|
@@ -1226,9 +1226,23 @@ export declare const userInsertSchema: z.ZodObject<{
|
|
|
1226
1226
|
provider: z.ZodOptional<z.ZodString>;
|
|
1227
1227
|
connection: z.ZodString;
|
|
1228
1228
|
is_social: z.ZodOptional<z.ZodBoolean>;
|
|
1229
|
+
password: z.ZodOptional<z.ZodObject<{
|
|
1230
|
+
hash: z.ZodString;
|
|
1231
|
+
algorithm: z.ZodString;
|
|
1232
|
+
}, "strip", z.ZodTypeAny, {
|
|
1233
|
+
hash: string;
|
|
1234
|
+
algorithm: string;
|
|
1235
|
+
}, {
|
|
1236
|
+
hash: string;
|
|
1237
|
+
algorithm: string;
|
|
1238
|
+
}>>;
|
|
1229
1239
|
}, "strip", z.ZodTypeAny, {
|
|
1230
1240
|
email_verified: boolean;
|
|
1231
1241
|
connection: string;
|
|
1242
|
+
password?: {
|
|
1243
|
+
hash: string;
|
|
1244
|
+
algorithm: string;
|
|
1245
|
+
} | undefined;
|
|
1232
1246
|
name?: string | undefined;
|
|
1233
1247
|
user_id?: string | undefined;
|
|
1234
1248
|
email?: string | undefined;
|
|
@@ -1266,6 +1280,10 @@ export declare const userInsertSchema: z.ZodObject<{
|
|
|
1266
1280
|
is_social?: boolean | undefined;
|
|
1267
1281
|
}, {
|
|
1268
1282
|
connection: string;
|
|
1283
|
+
password?: {
|
|
1284
|
+
hash: string;
|
|
1285
|
+
algorithm: string;
|
|
1286
|
+
} | undefined;
|
|
1269
1287
|
name?: string | undefined;
|
|
1270
1288
|
user_id?: string | undefined;
|
|
1271
1289
|
email?: string | undefined;
|
|
@@ -1385,17 +1403,19 @@ export declare const userSchema: z.ZodObject<{
|
|
|
1385
1403
|
}>, "many">>;
|
|
1386
1404
|
created_at: z.ZodString;
|
|
1387
1405
|
updated_at: z.ZodString;
|
|
1406
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1407
|
+
email_verified: z.ZodDefault<z.ZodBoolean>;
|
|
1388
1408
|
username: z.ZodOptional<z.ZodString>;
|
|
1409
|
+
given_name: z.ZodOptional<z.ZodString>;
|
|
1389
1410
|
phone_number: z.ZodOptional<z.ZodString>;
|
|
1390
1411
|
phone_verified: z.ZodOptional<z.ZodBoolean>;
|
|
1391
|
-
given_name: z.ZodOptional<z.ZodString>;
|
|
1392
1412
|
family_name: z.ZodOptional<z.ZodString>;
|
|
1413
|
+
connection: z.ZodString;
|
|
1414
|
+
profileData: z.ZodOptional<z.ZodString>;
|
|
1393
1415
|
nickname: z.ZodOptional<z.ZodString>;
|
|
1394
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1395
1416
|
picture: z.ZodOptional<z.ZodString>;
|
|
1396
1417
|
locale: z.ZodOptional<z.ZodString>;
|
|
1397
1418
|
linked_to: z.ZodOptional<z.ZodString>;
|
|
1398
|
-
profileData: z.ZodOptional<z.ZodString>;
|
|
1399
1419
|
app_metadata: z.ZodOptional<z.ZodDefault<z.ZodAny>>;
|
|
1400
1420
|
user_metadata: z.ZodOptional<z.ZodDefault<z.ZodAny>>;
|
|
1401
1421
|
middle_name: z.ZodOptional<z.ZodString>;
|
|
@@ -1427,11 +1447,9 @@ export declare const userSchema: z.ZodObject<{
|
|
|
1427
1447
|
postal_code?: string | undefined;
|
|
1428
1448
|
country?: string | undefined;
|
|
1429
1449
|
}>>;
|
|
1430
|
-
email_verified: z.ZodDefault<z.ZodBoolean>;
|
|
1431
1450
|
verify_email: z.ZodOptional<z.ZodBoolean>;
|
|
1432
1451
|
last_ip: z.ZodOptional<z.ZodString>;
|
|
1433
1452
|
last_login: z.ZodOptional<z.ZodString>;
|
|
1434
|
-
connection: z.ZodString;
|
|
1435
1453
|
}, "strip", z.ZodTypeAny, {
|
|
1436
1454
|
created_at: string;
|
|
1437
1455
|
updated_at: string;
|
|
@@ -1635,17 +1653,19 @@ export declare const auth0UserResponseSchema: z.ZodObject<{
|
|
|
1635
1653
|
}>, "many">>;
|
|
1636
1654
|
created_at: z.ZodString;
|
|
1637
1655
|
updated_at: z.ZodString;
|
|
1656
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1657
|
+
email_verified: z.ZodDefault<z.ZodBoolean>;
|
|
1638
1658
|
username: z.ZodOptional<z.ZodString>;
|
|
1659
|
+
given_name: z.ZodOptional<z.ZodString>;
|
|
1639
1660
|
phone_number: z.ZodOptional<z.ZodString>;
|
|
1640
1661
|
phone_verified: z.ZodOptional<z.ZodBoolean>;
|
|
1641
|
-
given_name: z.ZodOptional<z.ZodString>;
|
|
1642
1662
|
family_name: z.ZodOptional<z.ZodString>;
|
|
1663
|
+
connection: z.ZodString;
|
|
1664
|
+
profileData: z.ZodOptional<z.ZodString>;
|
|
1643
1665
|
nickname: z.ZodOptional<z.ZodString>;
|
|
1644
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1645
1666
|
picture: z.ZodOptional<z.ZodString>;
|
|
1646
1667
|
locale: z.ZodOptional<z.ZodString>;
|
|
1647
1668
|
linked_to: z.ZodOptional<z.ZodString>;
|
|
1648
|
-
profileData: z.ZodOptional<z.ZodString>;
|
|
1649
1669
|
app_metadata: z.ZodOptional<z.ZodDefault<z.ZodAny>>;
|
|
1650
1670
|
user_metadata: z.ZodOptional<z.ZodDefault<z.ZodAny>>;
|
|
1651
1671
|
middle_name: z.ZodOptional<z.ZodString>;
|
|
@@ -1677,11 +1697,9 @@ export declare const auth0UserResponseSchema: z.ZodObject<{
|
|
|
1677
1697
|
postal_code?: string | undefined;
|
|
1678
1698
|
country?: string | undefined;
|
|
1679
1699
|
}>>;
|
|
1680
|
-
email_verified: z.ZodDefault<z.ZodBoolean>;
|
|
1681
1700
|
verify_email: z.ZodOptional<z.ZodBoolean>;
|
|
1682
1701
|
last_ip: z.ZodOptional<z.ZodString>;
|
|
1683
1702
|
last_login: z.ZodOptional<z.ZodString>;
|
|
1684
|
-
connection: z.ZodString;
|
|
1685
1703
|
}, "strip", z.ZodTypeAny, {
|
|
1686
1704
|
created_at: string;
|
|
1687
1705
|
updated_at: string;
|
|
@@ -29333,6 +29351,8 @@ export type ScreenLink = z.infer<typeof screenLinkSchema>;
|
|
|
29333
29351
|
* This is what the API returns to the widget - no flow routing logic
|
|
29334
29352
|
*/
|
|
29335
29353
|
export declare const uiScreenSchema: z.ZodObject<{
|
|
29354
|
+
/** Screen identifier for CSS targeting (e.g., 'identifier', 'enter-password', 'signup') */
|
|
29355
|
+
name: z.ZodOptional<z.ZodString>;
|
|
29336
29356
|
action: z.ZodString;
|
|
29337
29357
|
method: z.ZodEnum<[
|
|
29338
29358
|
"POST",
|
|
@@ -30763,6 +30783,8 @@ export declare const uiScreenSchema: z.ZodObject<{
|
|
|
30763
30783
|
id?: string | undefined;
|
|
30764
30784
|
linkText?: string | undefined;
|
|
30765
30785
|
}>, "many">>;
|
|
30786
|
+
/** Footer HTML content displayed at the very bottom of the widget (e.g., terms and conditions) */
|
|
30787
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
30766
30788
|
}, "strip", z.ZodTypeAny, {
|
|
30767
30789
|
action: string;
|
|
30768
30790
|
components: ({
|
|
@@ -31128,6 +31150,7 @@ export declare const uiScreenSchema: z.ZodObject<{
|
|
|
31128
31150
|
method: "POST" | "GET";
|
|
31129
31151
|
description?: string | undefined;
|
|
31130
31152
|
title?: string | undefined;
|
|
31153
|
+
name?: string | undefined;
|
|
31131
31154
|
links?: {
|
|
31132
31155
|
text: string;
|
|
31133
31156
|
href: string;
|
|
@@ -31139,6 +31162,7 @@ export declare const uiScreenSchema: z.ZodObject<{
|
|
|
31139
31162
|
text: string;
|
|
31140
31163
|
id?: number | undefined;
|
|
31141
31164
|
}[] | undefined;
|
|
31165
|
+
footer?: string | undefined;
|
|
31142
31166
|
}, {
|
|
31143
31167
|
action: string;
|
|
31144
31168
|
components: ({
|
|
@@ -31504,6 +31528,7 @@ export declare const uiScreenSchema: z.ZodObject<{
|
|
|
31504
31528
|
method: "POST" | "GET";
|
|
31505
31529
|
description?: string | undefined;
|
|
31506
31530
|
title?: string | undefined;
|
|
31531
|
+
name?: string | undefined;
|
|
31507
31532
|
links?: {
|
|
31508
31533
|
text: string;
|
|
31509
31534
|
href: string;
|
|
@@ -31515,6 +31540,7 @@ export declare const uiScreenSchema: z.ZodObject<{
|
|
|
31515
31540
|
text: string;
|
|
31516
31541
|
id?: number | undefined;
|
|
31517
31542
|
}[] | undefined;
|
|
31543
|
+
footer?: string | undefined;
|
|
31518
31544
|
}>;
|
|
31519
31545
|
export type UiScreen = z.infer<typeof uiScreenSchema>;
|
|
31520
31546
|
export declare function isBlockComponent(component: FormNodeComponent): component is BlockComponent;
|
|
@@ -50170,6 +50196,8 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
50170
50196
|
input: {
|
|
50171
50197
|
query: {
|
|
50172
50198
|
state: string;
|
|
50199
|
+
error?: string | undefined;
|
|
50200
|
+
error_description?: string | undefined;
|
|
50173
50201
|
impersonation?: string | undefined;
|
|
50174
50202
|
};
|
|
50175
50203
|
};
|
|
@@ -50472,6 +50500,8 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
50472
50500
|
input: {
|
|
50473
50501
|
query: {
|
|
50474
50502
|
state: string;
|
|
50503
|
+
error?: string | undefined;
|
|
50504
|
+
error_description?: string | undefined;
|
|
50475
50505
|
};
|
|
50476
50506
|
};
|
|
50477
50507
|
output: Response;
|
|
@@ -50485,6 +50515,8 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
50485
50515
|
input: {
|
|
50486
50516
|
query: {
|
|
50487
50517
|
state: string;
|
|
50518
|
+
error?: string | undefined;
|
|
50519
|
+
error_description?: string | undefined;
|
|
50488
50520
|
};
|
|
50489
50521
|
} & {
|
|
50490
50522
|
form: Record<string, string>;
|
|
@@ -50496,6 +50528,8 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
50496
50528
|
input: {
|
|
50497
50529
|
query: {
|
|
50498
50530
|
state: string;
|
|
50531
|
+
error?: string | undefined;
|
|
50532
|
+
error_description?: string | undefined;
|
|
50499
50533
|
};
|
|
50500
50534
|
} & {
|
|
50501
50535
|
form: Record<string, string>;
|
|
@@ -50506,50 +50540,6 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
50506
50540
|
};
|
|
50507
50541
|
};
|
|
50508
50542
|
}, "/"> & import("hono/types").MergeSchemaPath<{
|
|
50509
|
-
"/": {
|
|
50510
|
-
$get: {
|
|
50511
|
-
input: {
|
|
50512
|
-
query: {
|
|
50513
|
-
state: string;
|
|
50514
|
-
};
|
|
50515
|
-
};
|
|
50516
|
-
output: Response;
|
|
50517
|
-
outputFormat: "json";
|
|
50518
|
-
status: import("hono/utils/http-status").StatusCode;
|
|
50519
|
-
} | {
|
|
50520
|
-
input: {
|
|
50521
|
-
query: {
|
|
50522
|
-
state: string;
|
|
50523
|
-
};
|
|
50524
|
-
};
|
|
50525
|
-
output: {};
|
|
50526
|
-
outputFormat: string;
|
|
50527
|
-
status: 302;
|
|
50528
|
-
};
|
|
50529
|
-
};
|
|
50530
|
-
} & {
|
|
50531
|
-
"/": {
|
|
50532
|
-
$post: {
|
|
50533
|
-
input: {
|
|
50534
|
-
query: {
|
|
50535
|
-
state: string;
|
|
50536
|
-
};
|
|
50537
|
-
};
|
|
50538
|
-
output: Response;
|
|
50539
|
-
outputFormat: "json";
|
|
50540
|
-
status: import("hono/utils/http-status").StatusCode;
|
|
50541
|
-
} | {
|
|
50542
|
-
input: {
|
|
50543
|
-
query: {
|
|
50544
|
-
state: string;
|
|
50545
|
-
};
|
|
50546
|
-
};
|
|
50547
|
-
output: {};
|
|
50548
|
-
outputFormat: string;
|
|
50549
|
-
status: 302;
|
|
50550
|
-
};
|
|
50551
|
-
};
|
|
50552
|
-
}, "/check-account"> & import("hono/types").MergeSchemaPath<{
|
|
50553
50543
|
"/:screenId": {
|
|
50554
50544
|
$get: {
|
|
50555
50545
|
input: {
|