authhero 0.112.0 → 0.113.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/authhero.cjs +33 -33
- package/dist/authhero.d.ts +40 -18
- package/dist/authhero.mjs +3184 -3186
- package/package.json +3 -3
package/dist/authhero.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export interface Totals {
|
|
|
25
25
|
export declare const baseUserSchema: z.ZodObject<{
|
|
26
26
|
email: z.ZodOptional<z.ZodString>;
|
|
27
27
|
username: z.ZodOptional<z.ZodString>;
|
|
28
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
28
29
|
given_name: z.ZodOptional<z.ZodString>;
|
|
29
30
|
family_name: z.ZodOptional<z.ZodString>;
|
|
30
31
|
nickname: z.ZodOptional<z.ZodString>;
|
|
@@ -41,6 +42,7 @@ export declare const baseUserSchema: z.ZodObject<{
|
|
|
41
42
|
name?: string | undefined;
|
|
42
43
|
username?: string | undefined;
|
|
43
44
|
given_name?: string | undefined;
|
|
45
|
+
phone_number?: string | undefined;
|
|
44
46
|
family_name?: string | undefined;
|
|
45
47
|
user_id?: string | undefined;
|
|
46
48
|
profileData?: string | undefined;
|
|
@@ -55,6 +57,7 @@ export declare const baseUserSchema: z.ZodObject<{
|
|
|
55
57
|
name?: string | undefined;
|
|
56
58
|
username?: string | undefined;
|
|
57
59
|
given_name?: string | undefined;
|
|
60
|
+
phone_number?: string | undefined;
|
|
58
61
|
family_name?: string | undefined;
|
|
59
62
|
user_id?: string | undefined;
|
|
60
63
|
profileData?: string | undefined;
|
|
@@ -69,6 +72,7 @@ export type BaseUser = z.infer<typeof baseUserSchema>;
|
|
|
69
72
|
export declare const userInsertSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
70
73
|
email: z.ZodOptional<z.ZodString>;
|
|
71
74
|
username: z.ZodOptional<z.ZodString>;
|
|
75
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
72
76
|
given_name: z.ZodOptional<z.ZodString>;
|
|
73
77
|
family_name: z.ZodOptional<z.ZodString>;
|
|
74
78
|
nickname: z.ZodOptional<z.ZodString>;
|
|
@@ -97,6 +101,7 @@ export declare const userInsertSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
97
101
|
name?: string | undefined;
|
|
98
102
|
username?: string | undefined;
|
|
99
103
|
given_name?: string | undefined;
|
|
104
|
+
phone_number?: string | undefined;
|
|
100
105
|
family_name?: string | undefined;
|
|
101
106
|
user_id?: string | undefined;
|
|
102
107
|
profileData?: string | undefined;
|
|
@@ -116,6 +121,7 @@ export declare const userInsertSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
116
121
|
name?: string | undefined;
|
|
117
122
|
username?: string | undefined;
|
|
118
123
|
given_name?: string | undefined;
|
|
124
|
+
phone_number?: string | undefined;
|
|
119
125
|
family_name?: string | undefined;
|
|
120
126
|
connection?: string | undefined;
|
|
121
127
|
user_id?: string | undefined;
|
|
@@ -136,7 +142,7 @@ export type UserInsert = z.infer<typeof userInsertSchema>;
|
|
|
136
142
|
export declare const userSchema: z.ZodObject<{
|
|
137
143
|
user_id: z.ZodString;
|
|
138
144
|
is_social: z.ZodBoolean;
|
|
139
|
-
email: z.ZodString
|
|
145
|
+
email: z.ZodOptional<z.ZodString>;
|
|
140
146
|
login_count: z.ZodNumber;
|
|
141
147
|
identities: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
142
148
|
connection: z.ZodString;
|
|
@@ -214,6 +220,7 @@ export declare const userSchema: z.ZodObject<{
|
|
|
214
220
|
created_at: z.ZodString;
|
|
215
221
|
updated_at: z.ZodString;
|
|
216
222
|
username: z.ZodOptional<z.ZodString>;
|
|
223
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
217
224
|
given_name: z.ZodOptional<z.ZodString>;
|
|
218
225
|
family_name: z.ZodOptional<z.ZodString>;
|
|
219
226
|
nickname: z.ZodOptional<z.ZodString>;
|
|
@@ -233,16 +240,17 @@ export declare const userSchema: z.ZodObject<{
|
|
|
233
240
|
}, "strip", z.ZodTypeAny, {
|
|
234
241
|
created_at: string;
|
|
235
242
|
updated_at: string;
|
|
236
|
-
email: string;
|
|
237
243
|
email_verified: boolean;
|
|
238
244
|
connection: string;
|
|
239
245
|
user_id: string;
|
|
240
246
|
provider: string;
|
|
241
247
|
is_social: boolean;
|
|
242
248
|
login_count: number;
|
|
249
|
+
email?: string | undefined;
|
|
243
250
|
name?: string | undefined;
|
|
244
251
|
username?: string | undefined;
|
|
245
252
|
given_name?: string | undefined;
|
|
253
|
+
phone_number?: string | undefined;
|
|
246
254
|
family_name?: string | undefined;
|
|
247
255
|
profileData?: string | undefined;
|
|
248
256
|
nickname?: string | undefined;
|
|
@@ -276,14 +284,15 @@ export declare const userSchema: z.ZodObject<{
|
|
|
276
284
|
}, {
|
|
277
285
|
created_at: string;
|
|
278
286
|
updated_at: string;
|
|
279
|
-
email: string;
|
|
280
287
|
user_id: string;
|
|
281
288
|
is_social: boolean;
|
|
282
289
|
login_count: number;
|
|
290
|
+
email?: string | undefined;
|
|
283
291
|
email_verified?: boolean | undefined;
|
|
284
292
|
name?: string | undefined;
|
|
285
293
|
username?: string | undefined;
|
|
286
294
|
given_name?: string | undefined;
|
|
295
|
+
phone_number?: string | undefined;
|
|
287
296
|
family_name?: string | undefined;
|
|
288
297
|
connection?: string | undefined;
|
|
289
298
|
provider?: string | undefined;
|
|
@@ -321,7 +330,7 @@ export type User = z.infer<typeof userSchema>;
|
|
|
321
330
|
export declare const auth0UserResponseSchema: z.ZodObject<{
|
|
322
331
|
user_id: z.ZodString;
|
|
323
332
|
is_social: z.ZodBoolean;
|
|
324
|
-
email: z.ZodString
|
|
333
|
+
email: z.ZodOptional<z.ZodString>;
|
|
325
334
|
login_count: z.ZodNumber;
|
|
326
335
|
identities: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
327
336
|
connection: z.ZodString;
|
|
@@ -399,6 +408,7 @@ export declare const auth0UserResponseSchema: z.ZodObject<{
|
|
|
399
408
|
created_at: z.ZodString;
|
|
400
409
|
updated_at: z.ZodString;
|
|
401
410
|
username: z.ZodOptional<z.ZodString>;
|
|
411
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
402
412
|
given_name: z.ZodOptional<z.ZodString>;
|
|
403
413
|
family_name: z.ZodOptional<z.ZodString>;
|
|
404
414
|
nickname: z.ZodOptional<z.ZodString>;
|
|
@@ -418,16 +428,17 @@ export declare const auth0UserResponseSchema: z.ZodObject<{
|
|
|
418
428
|
}, "strip", z.ZodTypeAny, {
|
|
419
429
|
created_at: string;
|
|
420
430
|
updated_at: string;
|
|
421
|
-
email: string;
|
|
422
431
|
email_verified: boolean;
|
|
423
432
|
connection: string;
|
|
424
433
|
user_id: string;
|
|
425
434
|
provider: string;
|
|
426
435
|
is_social: boolean;
|
|
427
436
|
login_count: number;
|
|
437
|
+
email?: string | undefined;
|
|
428
438
|
name?: string | undefined;
|
|
429
439
|
username?: string | undefined;
|
|
430
440
|
given_name?: string | undefined;
|
|
441
|
+
phone_number?: string | undefined;
|
|
431
442
|
family_name?: string | undefined;
|
|
432
443
|
profileData?: string | undefined;
|
|
433
444
|
nickname?: string | undefined;
|
|
@@ -461,14 +472,15 @@ export declare const auth0UserResponseSchema: z.ZodObject<{
|
|
|
461
472
|
}, {
|
|
462
473
|
created_at: string;
|
|
463
474
|
updated_at: string;
|
|
464
|
-
email: string;
|
|
465
475
|
user_id: string;
|
|
466
476
|
is_social: boolean;
|
|
467
477
|
login_count: number;
|
|
478
|
+
email?: string | undefined;
|
|
468
479
|
email_verified?: boolean | undefined;
|
|
469
480
|
name?: string | undefined;
|
|
470
481
|
username?: string | undefined;
|
|
471
482
|
given_name?: string | undefined;
|
|
483
|
+
phone_number?: string | undefined;
|
|
472
484
|
family_name?: string | undefined;
|
|
473
485
|
connection?: string | undefined;
|
|
474
486
|
provider?: string | undefined;
|
|
@@ -512,6 +524,7 @@ export interface PostUsersBody extends BaseUser {
|
|
|
512
524
|
export declare const userResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
513
525
|
email: z.ZodOptional<z.ZodString>;
|
|
514
526
|
username: z.ZodOptional<z.ZodString>;
|
|
527
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
515
528
|
given_name: z.ZodOptional<z.ZodString>;
|
|
516
529
|
family_name: z.ZodOptional<z.ZodString>;
|
|
517
530
|
nickname: z.ZodOptional<z.ZodString>;
|
|
@@ -533,6 +546,7 @@ export declare const userResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
533
546
|
}>, "strip", z.ZodAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
534
547
|
email: z.ZodOptional<z.ZodString>;
|
|
535
548
|
username: z.ZodOptional<z.ZodString>;
|
|
549
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
536
550
|
given_name: z.ZodOptional<z.ZodString>;
|
|
537
551
|
family_name: z.ZodOptional<z.ZodString>;
|
|
538
552
|
nickname: z.ZodOptional<z.ZodString>;
|
|
@@ -554,6 +568,7 @@ export declare const userResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
554
568
|
}>, z.ZodAny, "strip">, z.objectInputType<z.objectUtil.extendShape<{
|
|
555
569
|
email: z.ZodOptional<z.ZodString>;
|
|
556
570
|
username: z.ZodOptional<z.ZodString>;
|
|
571
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
557
572
|
given_name: z.ZodOptional<z.ZodString>;
|
|
558
573
|
family_name: z.ZodOptional<z.ZodString>;
|
|
559
574
|
nickname: z.ZodOptional<z.ZodString>;
|
|
@@ -6555,16 +6570,17 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
6555
6570
|
output: {
|
|
6556
6571
|
created_at: string;
|
|
6557
6572
|
updated_at: string;
|
|
6558
|
-
email: string;
|
|
6559
6573
|
email_verified: boolean;
|
|
6560
6574
|
connection: string;
|
|
6561
6575
|
user_id: string;
|
|
6562
6576
|
provider: string;
|
|
6563
6577
|
is_social: boolean;
|
|
6564
6578
|
login_count: number;
|
|
6579
|
+
email?: string | undefined;
|
|
6565
6580
|
name?: string | undefined;
|
|
6566
6581
|
username?: string | undefined;
|
|
6567
6582
|
given_name?: string | undefined;
|
|
6583
|
+
phone_number?: string | undefined;
|
|
6568
6584
|
family_name?: string | undefined;
|
|
6569
6585
|
profileData?: string | undefined;
|
|
6570
6586
|
nickname?: string | undefined;
|
|
@@ -6591,8 +6607,8 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
6591
6607
|
family_name?: string | undefined;
|
|
6592
6608
|
name?: string | undefined;
|
|
6593
6609
|
username?: string | undefined;
|
|
6594
|
-
email_verified?: boolean | undefined;
|
|
6595
6610
|
phone_number?: string | undefined;
|
|
6611
|
+
email_verified?: boolean | undefined;
|
|
6596
6612
|
phone_verified?: boolean | undefined;
|
|
6597
6613
|
} | undefined;
|
|
6598
6614
|
}[] | undefined;
|
|
@@ -6603,16 +6619,17 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
6603
6619
|
users: {
|
|
6604
6620
|
created_at: string;
|
|
6605
6621
|
updated_at: string;
|
|
6606
|
-
email: string;
|
|
6607
6622
|
email_verified: boolean;
|
|
6608
6623
|
connection: string;
|
|
6609
6624
|
user_id: string;
|
|
6610
6625
|
provider: string;
|
|
6611
6626
|
is_social: boolean;
|
|
6612
6627
|
login_count: number;
|
|
6628
|
+
email?: string | undefined;
|
|
6613
6629
|
name?: string | undefined;
|
|
6614
6630
|
username?: string | undefined;
|
|
6615
6631
|
given_name?: string | undefined;
|
|
6632
|
+
phone_number?: string | undefined;
|
|
6616
6633
|
family_name?: string | undefined;
|
|
6617
6634
|
profileData?: string | undefined;
|
|
6618
6635
|
nickname?: string | undefined;
|
|
@@ -6639,8 +6656,8 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
6639
6656
|
family_name?: string | undefined;
|
|
6640
6657
|
name?: string | undefined;
|
|
6641
6658
|
username?: string | undefined;
|
|
6642
|
-
email_verified?: boolean | undefined;
|
|
6643
6659
|
phone_number?: string | undefined;
|
|
6660
|
+
email_verified?: boolean | undefined;
|
|
6644
6661
|
phone_verified?: boolean | undefined;
|
|
6645
6662
|
} | undefined;
|
|
6646
6663
|
}[] | undefined;
|
|
@@ -6665,16 +6682,17 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
6665
6682
|
output: {
|
|
6666
6683
|
created_at: string;
|
|
6667
6684
|
updated_at: string;
|
|
6668
|
-
email: string;
|
|
6669
6685
|
email_verified: boolean;
|
|
6670
6686
|
connection: string;
|
|
6671
6687
|
user_id: string;
|
|
6672
6688
|
provider: string;
|
|
6673
6689
|
is_social: boolean;
|
|
6674
6690
|
login_count: number;
|
|
6691
|
+
email?: string | undefined;
|
|
6675
6692
|
name?: string | undefined;
|
|
6676
6693
|
username?: string | undefined;
|
|
6677
6694
|
given_name?: string | undefined;
|
|
6695
|
+
phone_number?: string | undefined;
|
|
6678
6696
|
family_name?: string | undefined;
|
|
6679
6697
|
profileData?: string | undefined;
|
|
6680
6698
|
nickname?: string | undefined;
|
|
@@ -6701,8 +6719,8 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
6701
6719
|
family_name?: string | undefined;
|
|
6702
6720
|
name?: string | undefined;
|
|
6703
6721
|
username?: string | undefined;
|
|
6704
|
-
email_verified?: boolean | undefined;
|
|
6705
6722
|
phone_number?: string | undefined;
|
|
6723
|
+
email_verified?: boolean | undefined;
|
|
6706
6724
|
phone_verified?: boolean | undefined;
|
|
6707
6725
|
} | undefined;
|
|
6708
6726
|
}[] | undefined;
|
|
@@ -6749,6 +6767,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
6749
6767
|
verify_email?: boolean | undefined;
|
|
6750
6768
|
last_ip?: string | undefined;
|
|
6751
6769
|
last_login?: string | undefined;
|
|
6770
|
+
phone_number?: string | undefined;
|
|
6752
6771
|
nickname?: string | undefined;
|
|
6753
6772
|
linked_to?: string | undefined;
|
|
6754
6773
|
profileData?: string | undefined;
|
|
@@ -6762,16 +6781,17 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
6762
6781
|
output: {
|
|
6763
6782
|
created_at: string;
|
|
6764
6783
|
updated_at: string;
|
|
6765
|
-
email: string;
|
|
6766
6784
|
email_verified: boolean;
|
|
6767
6785
|
connection: string;
|
|
6768
6786
|
user_id: string;
|
|
6769
6787
|
provider: string;
|
|
6770
6788
|
is_social: boolean;
|
|
6771
6789
|
login_count: number;
|
|
6790
|
+
email?: string | undefined;
|
|
6772
6791
|
name?: string | undefined;
|
|
6773
6792
|
username?: string | undefined;
|
|
6774
6793
|
given_name?: string | undefined;
|
|
6794
|
+
phone_number?: string | undefined;
|
|
6775
6795
|
family_name?: string | undefined;
|
|
6776
6796
|
profileData?: string | undefined;
|
|
6777
6797
|
nickname?: string | undefined;
|
|
@@ -6798,8 +6818,8 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
6798
6818
|
family_name?: string | undefined;
|
|
6799
6819
|
name?: string | undefined;
|
|
6800
6820
|
username?: string | undefined;
|
|
6801
|
-
email_verified?: boolean | undefined;
|
|
6802
6821
|
phone_number?: string | undefined;
|
|
6822
|
+
email_verified?: boolean | undefined;
|
|
6803
6823
|
phone_verified?: boolean | undefined;
|
|
6804
6824
|
} | undefined;
|
|
6805
6825
|
}[] | undefined;
|
|
@@ -6834,6 +6854,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
6834
6854
|
verify_email?: boolean | undefined;
|
|
6835
6855
|
last_ip?: string | undefined;
|
|
6836
6856
|
last_login?: string | undefined;
|
|
6857
|
+
phone_number?: string | undefined;
|
|
6837
6858
|
nickname?: string | undefined;
|
|
6838
6859
|
linked_to?: string | undefined;
|
|
6839
6860
|
profileData?: string | undefined;
|
|
@@ -6896,16 +6917,17 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
6896
6917
|
output: {
|
|
6897
6918
|
created_at: string;
|
|
6898
6919
|
updated_at: string;
|
|
6899
|
-
email: string;
|
|
6900
6920
|
email_verified: boolean;
|
|
6901
6921
|
connection: string;
|
|
6902
6922
|
user_id: string;
|
|
6903
6923
|
provider: string;
|
|
6904
6924
|
is_social: boolean;
|
|
6905
6925
|
login_count: number;
|
|
6926
|
+
email?: string | undefined;
|
|
6906
6927
|
name?: string | undefined;
|
|
6907
6928
|
username?: string | undefined;
|
|
6908
6929
|
given_name?: string | undefined;
|
|
6930
|
+
phone_number?: string | undefined;
|
|
6909
6931
|
family_name?: string | undefined;
|
|
6910
6932
|
profileData?: string | undefined;
|
|
6911
6933
|
nickname?: string | undefined;
|
|
@@ -6932,8 +6954,8 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
6932
6954
|
family_name?: string | undefined;
|
|
6933
6955
|
name?: string | undefined;
|
|
6934
6956
|
username?: string | undefined;
|
|
6935
|
-
email_verified?: boolean | undefined;
|
|
6936
6957
|
phone_number?: string | undefined;
|
|
6958
|
+
email_verified?: boolean | undefined;
|
|
6937
6959
|
phone_verified?: boolean | undefined;
|
|
6938
6960
|
} | undefined;
|
|
6939
6961
|
}[] | undefined;
|
|
@@ -7577,6 +7599,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
7577
7599
|
} | {
|
|
7578
7600
|
client_id: string;
|
|
7579
7601
|
connection: "sms";
|
|
7602
|
+
phone_number: string;
|
|
7580
7603
|
authParams: {
|
|
7581
7604
|
nonce?: string | undefined;
|
|
7582
7605
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
@@ -7594,7 +7617,6 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
7594
7617
|
ui_locales?: string | undefined;
|
|
7595
7618
|
vendor_id?: string | undefined;
|
|
7596
7619
|
};
|
|
7597
|
-
phone_number: string;
|
|
7598
7620
|
send: "code" | "link";
|
|
7599
7621
|
};
|
|
7600
7622
|
};
|
|
@@ -7637,11 +7659,11 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
7637
7659
|
};
|
|
7638
7660
|
};
|
|
7639
7661
|
output: {
|
|
7640
|
-
email: string;
|
|
7641
7662
|
app_metadata: {};
|
|
7642
7663
|
user_metadata: {};
|
|
7643
7664
|
email_verified: boolean;
|
|
7644
7665
|
_id: string;
|
|
7666
|
+
email?: string | undefined;
|
|
7645
7667
|
};
|
|
7646
7668
|
outputFormat: "json";
|
|
7647
7669
|
status: 200;
|