authhero 0.282.0 → 0.284.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 +13 -49
- package/dist/authhero.mjs +15806 -15796
- package/dist/stats.html +1 -1
- package/package.json +4 -4
package/dist/authhero.d.ts
CHANGED
|
@@ -109,13 +109,12 @@ export declare const userInsertSchema: z.ZodObject<{
|
|
|
109
109
|
last_ip: z.ZodOptional<z.ZodString>;
|
|
110
110
|
last_login: z.ZodOptional<z.ZodString>;
|
|
111
111
|
user_id: z.ZodOptional<z.ZodString>;
|
|
112
|
-
provider: z.
|
|
113
|
-
connection: z.
|
|
112
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
113
|
+
connection: z.ZodString;
|
|
114
114
|
is_social: z.ZodOptional<z.ZodBoolean>;
|
|
115
115
|
}, "strip", z.ZodTypeAny, {
|
|
116
116
|
email_verified: boolean;
|
|
117
117
|
connection: string;
|
|
118
|
-
provider: string;
|
|
119
118
|
email?: string | undefined;
|
|
120
119
|
name?: string | undefined;
|
|
121
120
|
username?: string | undefined;
|
|
@@ -123,6 +122,7 @@ export declare const userInsertSchema: z.ZodObject<{
|
|
|
123
122
|
phone_number?: string | undefined;
|
|
124
123
|
family_name?: string | undefined;
|
|
125
124
|
user_id?: string | undefined;
|
|
125
|
+
provider?: string | undefined;
|
|
126
126
|
profileData?: string | undefined;
|
|
127
127
|
nickname?: string | undefined;
|
|
128
128
|
picture?: string | undefined;
|
|
@@ -135,6 +135,7 @@ export declare const userInsertSchema: z.ZodObject<{
|
|
|
135
135
|
last_login?: string | undefined;
|
|
136
136
|
is_social?: boolean | undefined;
|
|
137
137
|
}, {
|
|
138
|
+
connection: string;
|
|
138
139
|
email?: string | undefined;
|
|
139
140
|
email_verified?: boolean | undefined;
|
|
140
141
|
name?: string | undefined;
|
|
@@ -142,7 +143,6 @@ export declare const userInsertSchema: z.ZodObject<{
|
|
|
142
143
|
given_name?: string | undefined;
|
|
143
144
|
phone_number?: string | undefined;
|
|
144
145
|
family_name?: string | undefined;
|
|
145
|
-
connection?: string | undefined;
|
|
146
146
|
user_id?: string | undefined;
|
|
147
147
|
provider?: string | undefined;
|
|
148
148
|
profileData?: string | undefined;
|
|
@@ -160,6 +160,7 @@ export declare const userInsertSchema: z.ZodObject<{
|
|
|
160
160
|
export type UserInsert = z.infer<typeof userInsertSchema>;
|
|
161
161
|
export declare const userSchema: z.ZodObject<{
|
|
162
162
|
user_id: z.ZodString;
|
|
163
|
+
provider: z.ZodString;
|
|
163
164
|
is_social: z.ZodBoolean;
|
|
164
165
|
email: z.ZodOptional<z.ZodString>;
|
|
165
166
|
login_count: z.ZodDefault<z.ZodNumber>;
|
|
@@ -254,8 +255,7 @@ export declare const userSchema: z.ZodObject<{
|
|
|
254
255
|
verify_email: z.ZodOptional<z.ZodBoolean>;
|
|
255
256
|
last_ip: z.ZodOptional<z.ZodString>;
|
|
256
257
|
last_login: z.ZodOptional<z.ZodString>;
|
|
257
|
-
|
|
258
|
-
connection: z.ZodDefault<z.ZodString>;
|
|
258
|
+
connection: z.ZodString;
|
|
259
259
|
}, "strip", z.ZodTypeAny, {
|
|
260
260
|
created_at: string;
|
|
261
261
|
updated_at: string;
|
|
@@ -303,7 +303,9 @@ export declare const userSchema: z.ZodObject<{
|
|
|
303
303
|
}, {
|
|
304
304
|
created_at: string;
|
|
305
305
|
updated_at: string;
|
|
306
|
+
connection: string;
|
|
306
307
|
user_id: string;
|
|
308
|
+
provider: string;
|
|
307
309
|
is_social: boolean;
|
|
308
310
|
email?: string | undefined;
|
|
309
311
|
email_verified?: boolean | undefined;
|
|
@@ -312,8 +314,6 @@ export declare const userSchema: z.ZodObject<{
|
|
|
312
314
|
given_name?: string | undefined;
|
|
313
315
|
phone_number?: string | undefined;
|
|
314
316
|
family_name?: string | undefined;
|
|
315
|
-
connection?: string | undefined;
|
|
316
|
-
provider?: string | undefined;
|
|
317
317
|
profileData?: string | undefined;
|
|
318
318
|
nickname?: string | undefined;
|
|
319
319
|
picture?: string | undefined;
|
|
@@ -348,6 +348,7 @@ export declare const userSchema: z.ZodObject<{
|
|
|
348
348
|
export type User = z.infer<typeof userSchema>;
|
|
349
349
|
export declare const auth0UserResponseSchema: z.ZodObject<{
|
|
350
350
|
user_id: z.ZodString;
|
|
351
|
+
provider: z.ZodString;
|
|
351
352
|
is_social: z.ZodBoolean;
|
|
352
353
|
email: z.ZodOptional<z.ZodString>;
|
|
353
354
|
login_count: z.ZodDefault<z.ZodNumber>;
|
|
@@ -442,8 +443,7 @@ export declare const auth0UserResponseSchema: z.ZodObject<{
|
|
|
442
443
|
verify_email: z.ZodOptional<z.ZodBoolean>;
|
|
443
444
|
last_ip: z.ZodOptional<z.ZodString>;
|
|
444
445
|
last_login: z.ZodOptional<z.ZodString>;
|
|
445
|
-
|
|
446
|
-
connection: z.ZodDefault<z.ZodString>;
|
|
446
|
+
connection: z.ZodString;
|
|
447
447
|
}, "strip", z.ZodTypeAny, {
|
|
448
448
|
created_at: string;
|
|
449
449
|
updated_at: string;
|
|
@@ -491,7 +491,9 @@ export declare const auth0UserResponseSchema: z.ZodObject<{
|
|
|
491
491
|
}, {
|
|
492
492
|
created_at: string;
|
|
493
493
|
updated_at: string;
|
|
494
|
+
connection: string;
|
|
494
495
|
user_id: string;
|
|
496
|
+
provider: string;
|
|
495
497
|
is_social: boolean;
|
|
496
498
|
email?: string | undefined;
|
|
497
499
|
email_verified?: boolean | undefined;
|
|
@@ -500,8 +502,6 @@ export declare const auth0UserResponseSchema: z.ZodObject<{
|
|
|
500
502
|
given_name?: string | undefined;
|
|
501
503
|
phone_number?: string | undefined;
|
|
502
504
|
family_name?: string | undefined;
|
|
503
|
-
connection?: string | undefined;
|
|
504
|
-
provider?: string | undefined;
|
|
505
505
|
profileData?: string | undefined;
|
|
506
506
|
nickname?: string | undefined;
|
|
507
507
|
picture?: string | undefined;
|
|
@@ -12812,8 +12812,6 @@ export declare const Auth0Client: z.ZodObject<{
|
|
|
12812
12812
|
}>;
|
|
12813
12813
|
export declare const LocationInfo: z.ZodObject<{
|
|
12814
12814
|
country_code: z.ZodString;
|
|
12815
|
-
country_code3: z.ZodString;
|
|
12816
|
-
country_name: z.ZodString;
|
|
12817
12815
|
city_name: z.ZodString;
|
|
12818
12816
|
latitude: z.ZodString;
|
|
12819
12817
|
longitude: z.ZodString;
|
|
@@ -12821,8 +12819,6 @@ export declare const LocationInfo: z.ZodObject<{
|
|
|
12821
12819
|
continent_code: z.ZodString;
|
|
12822
12820
|
}, "strip", z.ZodTypeAny, {
|
|
12823
12821
|
country_code: string;
|
|
12824
|
-
country_code3: string;
|
|
12825
|
-
country_name: string;
|
|
12826
12822
|
city_name: string;
|
|
12827
12823
|
latitude: string;
|
|
12828
12824
|
longitude: string;
|
|
@@ -12830,8 +12826,6 @@ export declare const LocationInfo: z.ZodObject<{
|
|
|
12830
12826
|
continent_code: string;
|
|
12831
12827
|
}, {
|
|
12832
12828
|
country_code: string;
|
|
12833
|
-
country_code3: string;
|
|
12834
|
-
country_name: string;
|
|
12835
12829
|
city_name: string;
|
|
12836
12830
|
latitude: string;
|
|
12837
12831
|
longitude: string;
|
|
@@ -12883,8 +12877,6 @@ export declare const logInsertSchema: z.ZodObject<{
|
|
|
12883
12877
|
log_id: z.ZodOptional<z.ZodString>;
|
|
12884
12878
|
location_info: z.ZodOptional<z.ZodObject<{
|
|
12885
12879
|
country_code: z.ZodString;
|
|
12886
|
-
country_code3: z.ZodString;
|
|
12887
|
-
country_name: z.ZodString;
|
|
12888
12880
|
city_name: z.ZodString;
|
|
12889
12881
|
latitude: z.ZodString;
|
|
12890
12882
|
longitude: z.ZodString;
|
|
@@ -12892,8 +12884,6 @@ export declare const logInsertSchema: z.ZodObject<{
|
|
|
12892
12884
|
continent_code: z.ZodString;
|
|
12893
12885
|
}, "strip", z.ZodTypeAny, {
|
|
12894
12886
|
country_code: string;
|
|
12895
|
-
country_code3: string;
|
|
12896
|
-
country_name: string;
|
|
12897
12887
|
city_name: string;
|
|
12898
12888
|
latitude: string;
|
|
12899
12889
|
longitude: string;
|
|
@@ -12901,8 +12891,6 @@ export declare const logInsertSchema: z.ZodObject<{
|
|
|
12901
12891
|
continent_code: string;
|
|
12902
12892
|
}, {
|
|
12903
12893
|
country_code: string;
|
|
12904
|
-
country_code3: string;
|
|
12905
|
-
country_name: string;
|
|
12906
12894
|
city_name: string;
|
|
12907
12895
|
latitude: string;
|
|
12908
12896
|
longitude: string;
|
|
@@ -12938,8 +12926,6 @@ export declare const logInsertSchema: z.ZodObject<{
|
|
|
12938
12926
|
log_id?: string | undefined;
|
|
12939
12927
|
location_info?: {
|
|
12940
12928
|
country_code: string;
|
|
12941
|
-
country_code3: string;
|
|
12942
|
-
country_name: string;
|
|
12943
12929
|
city_name: string;
|
|
12944
12930
|
latitude: string;
|
|
12945
12931
|
longitude: string;
|
|
@@ -12975,8 +12961,6 @@ export declare const logInsertSchema: z.ZodObject<{
|
|
|
12975
12961
|
log_id?: string | undefined;
|
|
12976
12962
|
location_info?: {
|
|
12977
12963
|
country_code: string;
|
|
12978
|
-
country_code3: string;
|
|
12979
|
-
country_name: string;
|
|
12980
12964
|
city_name: string;
|
|
12981
12965
|
latitude: string;
|
|
12982
12966
|
longitude: string;
|
|
@@ -13030,8 +13014,6 @@ export declare const logSchema: z.ZodObject<{
|
|
|
13030
13014
|
}>>;
|
|
13031
13015
|
location_info: z.ZodOptional<z.ZodObject<{
|
|
13032
13016
|
country_code: z.ZodString;
|
|
13033
|
-
country_code3: z.ZodString;
|
|
13034
|
-
country_name: z.ZodString;
|
|
13035
13017
|
city_name: z.ZodString;
|
|
13036
13018
|
latitude: z.ZodString;
|
|
13037
13019
|
longitude: z.ZodString;
|
|
@@ -13039,8 +13021,6 @@ export declare const logSchema: z.ZodObject<{
|
|
|
13039
13021
|
continent_code: z.ZodString;
|
|
13040
13022
|
}, "strip", z.ZodTypeAny, {
|
|
13041
13023
|
country_code: string;
|
|
13042
|
-
country_code3: string;
|
|
13043
|
-
country_name: string;
|
|
13044
13024
|
city_name: string;
|
|
13045
13025
|
latitude: string;
|
|
13046
13026
|
longitude: string;
|
|
@@ -13048,8 +13028,6 @@ export declare const logSchema: z.ZodObject<{
|
|
|
13048
13028
|
continent_code: string;
|
|
13049
13029
|
}, {
|
|
13050
13030
|
country_code: string;
|
|
13051
|
-
country_code3: string;
|
|
13052
|
-
country_name: string;
|
|
13053
13031
|
city_name: string;
|
|
13054
13032
|
latitude: string;
|
|
13055
13033
|
longitude: string;
|
|
@@ -13085,8 +13063,6 @@ export declare const logSchema: z.ZodObject<{
|
|
|
13085
13063
|
} | undefined;
|
|
13086
13064
|
location_info?: {
|
|
13087
13065
|
country_code: string;
|
|
13088
|
-
country_code3: string;
|
|
13089
|
-
country_name: string;
|
|
13090
13066
|
city_name: string;
|
|
13091
13067
|
latitude: string;
|
|
13092
13068
|
longitude: string;
|
|
@@ -13122,8 +13098,6 @@ export declare const logSchema: z.ZodObject<{
|
|
|
13122
13098
|
} | undefined;
|
|
13123
13099
|
location_info?: {
|
|
13124
13100
|
country_code: string;
|
|
13125
|
-
country_code3: string;
|
|
13126
|
-
country_name: string;
|
|
13127
13101
|
city_name: string;
|
|
13128
13102
|
latitude: string;
|
|
13129
13103
|
longitude: string;
|
|
@@ -17330,8 +17304,6 @@ export interface InvitesAdapter {
|
|
|
17330
17304
|
}
|
|
17331
17305
|
export interface GeoInfo {
|
|
17332
17306
|
country_code: string;
|
|
17333
|
-
country_code3: string;
|
|
17334
|
-
country_name: string;
|
|
17335
17307
|
city_name: string;
|
|
17336
17308
|
latitude: string;
|
|
17337
17309
|
longitude: string;
|
|
@@ -17463,8 +17435,6 @@ export type HookRequest = {
|
|
|
17463
17435
|
cityName?: string;
|
|
17464
17436
|
continentCode?: string;
|
|
17465
17437
|
countryCode?: string;
|
|
17466
|
-
countryCode3?: string;
|
|
17467
|
-
countryName?: string;
|
|
17468
17438
|
latitude?: number;
|
|
17469
17439
|
longitude?: number;
|
|
17470
17440
|
subdivisionCode?: string;
|
|
@@ -20986,8 +20956,6 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
20986
20956
|
} | undefined;
|
|
20987
20957
|
location_info?: {
|
|
20988
20958
|
country_code: string;
|
|
20989
|
-
country_code3: string;
|
|
20990
|
-
country_name: string;
|
|
20991
20959
|
city_name: string;
|
|
20992
20960
|
latitude: string;
|
|
20993
20961
|
longitude: string;
|
|
@@ -21027,8 +20995,6 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
21027
20995
|
} | undefined;
|
|
21028
20996
|
location_info?: {
|
|
21029
20997
|
country_code: string;
|
|
21030
|
-
country_code3: string;
|
|
21031
|
-
country_name: string;
|
|
21032
20998
|
city_name: string;
|
|
21033
20999
|
latitude: string;
|
|
21034
21000
|
longitude: string;
|
|
@@ -21082,8 +21048,6 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
21082
21048
|
} | undefined;
|
|
21083
21049
|
location_info?: {
|
|
21084
21050
|
country_code: string;
|
|
21085
|
-
country_code3: string;
|
|
21086
|
-
country_name: string;
|
|
21087
21051
|
city_name: string;
|
|
21088
21052
|
latitude: string;
|
|
21089
21053
|
longitude: string;
|
|
@@ -22754,9 +22718,9 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
22754
22718
|
};
|
|
22755
22719
|
} & {
|
|
22756
22720
|
json: {
|
|
22721
|
+
connection: string;
|
|
22757
22722
|
name?: string | undefined;
|
|
22758
22723
|
password?: string | undefined;
|
|
22759
|
-
connection?: string | undefined;
|
|
22760
22724
|
email?: string | undefined;
|
|
22761
22725
|
given_name?: string | undefined;
|
|
22762
22726
|
family_name?: string | undefined;
|