authhero 0.129.0 → 0.132.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 +10 -10
- package/dist/authhero.d.ts +9 -9
- package/dist/authhero.mjs +123 -119
- package/package.json +3 -3
package/dist/authhero.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export interface Totals {
|
|
|
23
23
|
length: number;
|
|
24
24
|
}
|
|
25
25
|
export declare const baseUserSchema: z.ZodObject<{
|
|
26
|
-
email: z.ZodOptional<z.ZodString>;
|
|
26
|
+
email: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
|
|
27
27
|
username: z.ZodOptional<z.ZodString>;
|
|
28
28
|
phone_number: z.ZodOptional<z.ZodString>;
|
|
29
29
|
given_name: z.ZodOptional<z.ZodString>;
|
|
@@ -70,7 +70,7 @@ export declare const baseUserSchema: z.ZodObject<{
|
|
|
70
70
|
}>;
|
|
71
71
|
export type BaseUser = z.infer<typeof baseUserSchema>;
|
|
72
72
|
export declare const userInsertSchema: z.ZodObject<{
|
|
73
|
-
email: z.ZodOptional<z.ZodString>;
|
|
73
|
+
email: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
|
|
74
74
|
username: z.ZodOptional<z.ZodString>;
|
|
75
75
|
phone_number: z.ZodOptional<z.ZodString>;
|
|
76
76
|
given_name: z.ZodOptional<z.ZodString>;
|
|
@@ -142,7 +142,7 @@ export declare const userSchema: z.ZodObject<{
|
|
|
142
142
|
user_id: z.ZodString;
|
|
143
143
|
is_social: z.ZodBoolean;
|
|
144
144
|
email: z.ZodOptional<z.ZodString>;
|
|
145
|
-
login_count: z.ZodNumber
|
|
145
|
+
login_count: z.ZodDefault<z.ZodNumber>;
|
|
146
146
|
identities: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
147
147
|
connection: z.ZodString;
|
|
148
148
|
user_id: z.ZodString;
|
|
@@ -285,7 +285,6 @@ export declare const userSchema: z.ZodObject<{
|
|
|
285
285
|
updated_at: string;
|
|
286
286
|
user_id: string;
|
|
287
287
|
is_social: boolean;
|
|
288
|
-
login_count: number;
|
|
289
288
|
email?: string | undefined;
|
|
290
289
|
email_verified?: boolean | undefined;
|
|
291
290
|
name?: string | undefined;
|
|
@@ -305,6 +304,7 @@ export declare const userSchema: z.ZodObject<{
|
|
|
305
304
|
verify_email?: boolean | undefined;
|
|
306
305
|
last_ip?: string | undefined;
|
|
307
306
|
last_login?: string | undefined;
|
|
307
|
+
login_count?: number | undefined;
|
|
308
308
|
identities?: {
|
|
309
309
|
connection: string;
|
|
310
310
|
user_id: string;
|
|
@@ -330,7 +330,7 @@ export declare const auth0UserResponseSchema: z.ZodObject<{
|
|
|
330
330
|
user_id: z.ZodString;
|
|
331
331
|
is_social: z.ZodBoolean;
|
|
332
332
|
email: z.ZodOptional<z.ZodString>;
|
|
333
|
-
login_count: z.ZodNumber
|
|
333
|
+
login_count: z.ZodDefault<z.ZodNumber>;
|
|
334
334
|
identities: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
335
335
|
connection: z.ZodString;
|
|
336
336
|
user_id: z.ZodString;
|
|
@@ -473,7 +473,6 @@ export declare const auth0UserResponseSchema: z.ZodObject<{
|
|
|
473
473
|
updated_at: string;
|
|
474
474
|
user_id: string;
|
|
475
475
|
is_social: boolean;
|
|
476
|
-
login_count: number;
|
|
477
476
|
email?: string | undefined;
|
|
478
477
|
email_verified?: boolean | undefined;
|
|
479
478
|
name?: string | undefined;
|
|
@@ -493,6 +492,7 @@ export declare const auth0UserResponseSchema: z.ZodObject<{
|
|
|
493
492
|
verify_email?: boolean | undefined;
|
|
494
493
|
last_ip?: string | undefined;
|
|
495
494
|
last_login?: string | undefined;
|
|
495
|
+
login_count?: number | undefined;
|
|
496
496
|
identities?: {
|
|
497
497
|
connection: string;
|
|
498
498
|
user_id: string;
|
|
@@ -521,6 +521,7 @@ export interface PostUsersBody extends BaseUser {
|
|
|
521
521
|
email_verified?: boolean;
|
|
522
522
|
}
|
|
523
523
|
export declare const userResponseSchema: z.ZodObject<{
|
|
524
|
+
email: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
|
|
524
525
|
username: z.ZodOptional<z.ZodString>;
|
|
525
526
|
phone_number: z.ZodOptional<z.ZodString>;
|
|
526
527
|
given_name: z.ZodOptional<z.ZodString>;
|
|
@@ -534,13 +535,13 @@ export declare const userResponseSchema: z.ZodObject<{
|
|
|
534
535
|
app_metadata: z.ZodOptional<z.ZodDefault<z.ZodAny>>;
|
|
535
536
|
user_metadata: z.ZodOptional<z.ZodDefault<z.ZodAny>>;
|
|
536
537
|
} & {
|
|
537
|
-
email: z.ZodString;
|
|
538
538
|
login_count: z.ZodNumber;
|
|
539
539
|
multifactor: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
540
540
|
last_ip: z.ZodOptional<z.ZodString>;
|
|
541
541
|
last_login: z.ZodOptional<z.ZodString>;
|
|
542
542
|
user_id: z.ZodString;
|
|
543
543
|
}, "strip", z.ZodAny, z.objectOutputType<{
|
|
544
|
+
email: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
|
|
544
545
|
username: z.ZodOptional<z.ZodString>;
|
|
545
546
|
phone_number: z.ZodOptional<z.ZodString>;
|
|
546
547
|
given_name: z.ZodOptional<z.ZodString>;
|
|
@@ -554,13 +555,13 @@ export declare const userResponseSchema: z.ZodObject<{
|
|
|
554
555
|
app_metadata: z.ZodOptional<z.ZodDefault<z.ZodAny>>;
|
|
555
556
|
user_metadata: z.ZodOptional<z.ZodDefault<z.ZodAny>>;
|
|
556
557
|
} & {
|
|
557
|
-
email: z.ZodString;
|
|
558
558
|
login_count: z.ZodNumber;
|
|
559
559
|
multifactor: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
560
560
|
last_ip: z.ZodOptional<z.ZodString>;
|
|
561
561
|
last_login: z.ZodOptional<z.ZodString>;
|
|
562
562
|
user_id: z.ZodString;
|
|
563
563
|
}, z.ZodAny, "strip">, z.objectInputType<{
|
|
564
|
+
email: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
|
|
564
565
|
username: z.ZodOptional<z.ZodString>;
|
|
565
566
|
phone_number: z.ZodOptional<z.ZodString>;
|
|
566
567
|
given_name: z.ZodOptional<z.ZodString>;
|
|
@@ -574,7 +575,6 @@ export declare const userResponseSchema: z.ZodObject<{
|
|
|
574
575
|
app_metadata: z.ZodOptional<z.ZodDefault<z.ZodAny>>;
|
|
575
576
|
user_metadata: z.ZodOptional<z.ZodDefault<z.ZodAny>>;
|
|
576
577
|
} & {
|
|
577
|
-
email: z.ZodString;
|
|
578
578
|
login_count: z.ZodNumber;
|
|
579
579
|
multifactor: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
580
580
|
last_ip: z.ZodOptional<z.ZodString>;
|