authhero 0.281.0 → 0.283.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 +35 -35
- package/dist/authhero.d.ts +42 -59
- package/dist/authhero.mjs +17231 -17258
- package/dist/stats.html +1 -1
- package/package.json +3 -3
package/dist/authhero.d.ts
CHANGED
|
@@ -5,18 +5,37 @@ import { Context } from 'hono';
|
|
|
5
5
|
import { FC, JSXNode, PropsWithChildren } from 'hono/jsx';
|
|
6
6
|
import { CountryCode } from 'libphonenumber-js';
|
|
7
7
|
|
|
8
|
+
export declare const auth0QuerySchema: z.ZodObject<{
|
|
9
|
+
page: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodString>>, number, string | undefined>;
|
|
10
|
+
per_page: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodString>>, number, string | undefined>;
|
|
11
|
+
include_totals: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodString>>, boolean, string | undefined>;
|
|
12
|
+
sort: z.ZodOptional<z.ZodString>;
|
|
13
|
+
q: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
page: number;
|
|
16
|
+
per_page: number;
|
|
17
|
+
include_totals: boolean;
|
|
18
|
+
sort?: string | undefined;
|
|
19
|
+
q?: string | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
page?: string | undefined;
|
|
22
|
+
sort?: string | undefined;
|
|
23
|
+
per_page?: string | undefined;
|
|
24
|
+
include_totals?: string | undefined;
|
|
25
|
+
q?: string | undefined;
|
|
26
|
+
}>;
|
|
8
27
|
export declare const totalsSchema: z.ZodObject<{
|
|
9
28
|
start: z.ZodNumber;
|
|
10
29
|
limit: z.ZodNumber;
|
|
11
30
|
length: z.ZodNumber;
|
|
12
31
|
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
length: number;
|
|
13
33
|
start: number;
|
|
14
34
|
limit: number;
|
|
15
|
-
length: number;
|
|
16
35
|
}, {
|
|
36
|
+
length: number;
|
|
17
37
|
start: number;
|
|
18
38
|
limit: number;
|
|
19
|
-
length: number;
|
|
20
39
|
}>;
|
|
21
40
|
export interface Totals {
|
|
22
41
|
start: number;
|
|
@@ -90,13 +109,12 @@ export declare const userInsertSchema: z.ZodObject<{
|
|
|
90
109
|
last_ip: z.ZodOptional<z.ZodString>;
|
|
91
110
|
last_login: z.ZodOptional<z.ZodString>;
|
|
92
111
|
user_id: z.ZodOptional<z.ZodString>;
|
|
93
|
-
provider: z.
|
|
94
|
-
connection: z.
|
|
112
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
113
|
+
connection: z.ZodString;
|
|
95
114
|
is_social: z.ZodOptional<z.ZodBoolean>;
|
|
96
115
|
}, "strip", z.ZodTypeAny, {
|
|
97
116
|
email_verified: boolean;
|
|
98
117
|
connection: string;
|
|
99
|
-
provider: string;
|
|
100
118
|
email?: string | undefined;
|
|
101
119
|
name?: string | undefined;
|
|
102
120
|
username?: string | undefined;
|
|
@@ -104,6 +122,7 @@ export declare const userInsertSchema: z.ZodObject<{
|
|
|
104
122
|
phone_number?: string | undefined;
|
|
105
123
|
family_name?: string | undefined;
|
|
106
124
|
user_id?: string | undefined;
|
|
125
|
+
provider?: string | undefined;
|
|
107
126
|
profileData?: string | undefined;
|
|
108
127
|
nickname?: string | undefined;
|
|
109
128
|
picture?: string | undefined;
|
|
@@ -116,6 +135,7 @@ export declare const userInsertSchema: z.ZodObject<{
|
|
|
116
135
|
last_login?: string | undefined;
|
|
117
136
|
is_social?: boolean | undefined;
|
|
118
137
|
}, {
|
|
138
|
+
connection: string;
|
|
119
139
|
email?: string | undefined;
|
|
120
140
|
email_verified?: boolean | undefined;
|
|
121
141
|
name?: string | undefined;
|
|
@@ -123,7 +143,6 @@ export declare const userInsertSchema: z.ZodObject<{
|
|
|
123
143
|
given_name?: string | undefined;
|
|
124
144
|
phone_number?: string | undefined;
|
|
125
145
|
family_name?: string | undefined;
|
|
126
|
-
connection?: string | undefined;
|
|
127
146
|
user_id?: string | undefined;
|
|
128
147
|
provider?: string | undefined;
|
|
129
148
|
profileData?: string | undefined;
|
|
@@ -141,6 +160,7 @@ export declare const userInsertSchema: z.ZodObject<{
|
|
|
141
160
|
export type UserInsert = z.infer<typeof userInsertSchema>;
|
|
142
161
|
export declare const userSchema: z.ZodObject<{
|
|
143
162
|
user_id: z.ZodString;
|
|
163
|
+
provider: z.ZodString;
|
|
144
164
|
is_social: z.ZodBoolean;
|
|
145
165
|
email: z.ZodOptional<z.ZodString>;
|
|
146
166
|
login_count: z.ZodDefault<z.ZodNumber>;
|
|
@@ -235,8 +255,7 @@ export declare const userSchema: z.ZodObject<{
|
|
|
235
255
|
verify_email: z.ZodOptional<z.ZodBoolean>;
|
|
236
256
|
last_ip: z.ZodOptional<z.ZodString>;
|
|
237
257
|
last_login: z.ZodOptional<z.ZodString>;
|
|
238
|
-
|
|
239
|
-
connection: z.ZodDefault<z.ZodString>;
|
|
258
|
+
connection: z.ZodString;
|
|
240
259
|
}, "strip", z.ZodTypeAny, {
|
|
241
260
|
created_at: string;
|
|
242
261
|
updated_at: string;
|
|
@@ -284,7 +303,9 @@ export declare const userSchema: z.ZodObject<{
|
|
|
284
303
|
}, {
|
|
285
304
|
created_at: string;
|
|
286
305
|
updated_at: string;
|
|
306
|
+
connection: string;
|
|
287
307
|
user_id: string;
|
|
308
|
+
provider: string;
|
|
288
309
|
is_social: boolean;
|
|
289
310
|
email?: string | undefined;
|
|
290
311
|
email_verified?: boolean | undefined;
|
|
@@ -293,8 +314,6 @@ export declare const userSchema: z.ZodObject<{
|
|
|
293
314
|
given_name?: string | undefined;
|
|
294
315
|
phone_number?: string | undefined;
|
|
295
316
|
family_name?: string | undefined;
|
|
296
|
-
connection?: string | undefined;
|
|
297
|
-
provider?: string | undefined;
|
|
298
317
|
profileData?: string | undefined;
|
|
299
318
|
nickname?: string | undefined;
|
|
300
319
|
picture?: string | undefined;
|
|
@@ -329,6 +348,7 @@ export declare const userSchema: z.ZodObject<{
|
|
|
329
348
|
export type User = z.infer<typeof userSchema>;
|
|
330
349
|
export declare const auth0UserResponseSchema: z.ZodObject<{
|
|
331
350
|
user_id: z.ZodString;
|
|
351
|
+
provider: z.ZodString;
|
|
332
352
|
is_social: z.ZodBoolean;
|
|
333
353
|
email: z.ZodOptional<z.ZodString>;
|
|
334
354
|
login_count: z.ZodDefault<z.ZodNumber>;
|
|
@@ -423,8 +443,7 @@ export declare const auth0UserResponseSchema: z.ZodObject<{
|
|
|
423
443
|
verify_email: z.ZodOptional<z.ZodBoolean>;
|
|
424
444
|
last_ip: z.ZodOptional<z.ZodString>;
|
|
425
445
|
last_login: z.ZodOptional<z.ZodString>;
|
|
426
|
-
|
|
427
|
-
connection: z.ZodDefault<z.ZodString>;
|
|
446
|
+
connection: z.ZodString;
|
|
428
447
|
}, "strip", z.ZodTypeAny, {
|
|
429
448
|
created_at: string;
|
|
430
449
|
updated_at: string;
|
|
@@ -472,7 +491,9 @@ export declare const auth0UserResponseSchema: z.ZodObject<{
|
|
|
472
491
|
}, {
|
|
473
492
|
created_at: string;
|
|
474
493
|
updated_at: string;
|
|
494
|
+
connection: string;
|
|
475
495
|
user_id: string;
|
|
496
|
+
provider: string;
|
|
476
497
|
is_social: boolean;
|
|
477
498
|
email?: string | undefined;
|
|
478
499
|
email_verified?: boolean | undefined;
|
|
@@ -481,8 +502,6 @@ export declare const auth0UserResponseSchema: z.ZodObject<{
|
|
|
481
502
|
given_name?: string | undefined;
|
|
482
503
|
phone_number?: string | undefined;
|
|
483
504
|
family_name?: string | undefined;
|
|
484
|
-
connection?: string | undefined;
|
|
485
|
-
provider?: string | undefined;
|
|
486
505
|
profileData?: string | undefined;
|
|
487
506
|
nickname?: string | undefined;
|
|
488
507
|
picture?: string | undefined;
|
|
@@ -8181,29 +8200,29 @@ export declare const brandingSchema: z.ZodObject<{
|
|
|
8181
8200
|
end: z.ZodOptional<z.ZodString>;
|
|
8182
8201
|
angle_deg: z.ZodOptional<z.ZodNumber>;
|
|
8183
8202
|
}, "strip", z.ZodTypeAny, {
|
|
8184
|
-
start?: string | undefined;
|
|
8185
8203
|
type?: string | undefined;
|
|
8204
|
+
start?: string | undefined;
|
|
8186
8205
|
end?: string | undefined;
|
|
8187
8206
|
angle_deg?: number | undefined;
|
|
8188
8207
|
}, {
|
|
8189
|
-
start?: string | undefined;
|
|
8190
8208
|
type?: string | undefined;
|
|
8209
|
+
start?: string | undefined;
|
|
8191
8210
|
end?: string | undefined;
|
|
8192
8211
|
angle_deg?: number | undefined;
|
|
8193
8212
|
}>>;
|
|
8194
8213
|
}, "strip", z.ZodTypeAny, {
|
|
8195
8214
|
primary: string;
|
|
8196
8215
|
page_background?: {
|
|
8197
|
-
start?: string | undefined;
|
|
8198
8216
|
type?: string | undefined;
|
|
8217
|
+
start?: string | undefined;
|
|
8199
8218
|
end?: string | undefined;
|
|
8200
8219
|
angle_deg?: number | undefined;
|
|
8201
8220
|
} | undefined;
|
|
8202
8221
|
}, {
|
|
8203
8222
|
primary: string;
|
|
8204
8223
|
page_background?: {
|
|
8205
|
-
start?: string | undefined;
|
|
8206
8224
|
type?: string | undefined;
|
|
8225
|
+
start?: string | undefined;
|
|
8207
8226
|
end?: string | undefined;
|
|
8208
8227
|
angle_deg?: number | undefined;
|
|
8209
8228
|
} | undefined;
|
|
@@ -8222,8 +8241,8 @@ export declare const brandingSchema: z.ZodObject<{
|
|
|
8222
8241
|
colors?: {
|
|
8223
8242
|
primary: string;
|
|
8224
8243
|
page_background?: {
|
|
8225
|
-
start?: string | undefined;
|
|
8226
8244
|
type?: string | undefined;
|
|
8245
|
+
start?: string | undefined;
|
|
8227
8246
|
end?: string | undefined;
|
|
8228
8247
|
angle_deg?: number | undefined;
|
|
8229
8248
|
} | undefined;
|
|
@@ -8238,8 +8257,8 @@ export declare const brandingSchema: z.ZodObject<{
|
|
|
8238
8257
|
colors?: {
|
|
8239
8258
|
primary: string;
|
|
8240
8259
|
page_background?: {
|
|
8241
|
-
start?: string | undefined;
|
|
8242
8260
|
type?: string | undefined;
|
|
8261
|
+
start?: string | undefined;
|
|
8243
8262
|
end?: string | undefined;
|
|
8244
8263
|
angle_deg?: number | undefined;
|
|
8245
8264
|
} | undefined;
|
|
@@ -12793,8 +12812,6 @@ export declare const Auth0Client: z.ZodObject<{
|
|
|
12793
12812
|
}>;
|
|
12794
12813
|
export declare const LocationInfo: z.ZodObject<{
|
|
12795
12814
|
country_code: z.ZodString;
|
|
12796
|
-
country_code3: z.ZodString;
|
|
12797
|
-
country_name: z.ZodString;
|
|
12798
12815
|
city_name: z.ZodString;
|
|
12799
12816
|
latitude: z.ZodString;
|
|
12800
12817
|
longitude: z.ZodString;
|
|
@@ -12802,8 +12819,6 @@ export declare const LocationInfo: z.ZodObject<{
|
|
|
12802
12819
|
continent_code: z.ZodString;
|
|
12803
12820
|
}, "strip", z.ZodTypeAny, {
|
|
12804
12821
|
country_code: string;
|
|
12805
|
-
country_code3: string;
|
|
12806
|
-
country_name: string;
|
|
12807
12822
|
city_name: string;
|
|
12808
12823
|
latitude: string;
|
|
12809
12824
|
longitude: string;
|
|
@@ -12811,8 +12826,6 @@ export declare const LocationInfo: z.ZodObject<{
|
|
|
12811
12826
|
continent_code: string;
|
|
12812
12827
|
}, {
|
|
12813
12828
|
country_code: string;
|
|
12814
|
-
country_code3: string;
|
|
12815
|
-
country_name: string;
|
|
12816
12829
|
city_name: string;
|
|
12817
12830
|
latitude: string;
|
|
12818
12831
|
longitude: string;
|
|
@@ -12864,8 +12877,6 @@ export declare const logInsertSchema: z.ZodObject<{
|
|
|
12864
12877
|
log_id: z.ZodOptional<z.ZodString>;
|
|
12865
12878
|
location_info: z.ZodOptional<z.ZodObject<{
|
|
12866
12879
|
country_code: z.ZodString;
|
|
12867
|
-
country_code3: z.ZodString;
|
|
12868
|
-
country_name: z.ZodString;
|
|
12869
12880
|
city_name: z.ZodString;
|
|
12870
12881
|
latitude: z.ZodString;
|
|
12871
12882
|
longitude: z.ZodString;
|
|
@@ -12873,8 +12884,6 @@ export declare const logInsertSchema: z.ZodObject<{
|
|
|
12873
12884
|
continent_code: z.ZodString;
|
|
12874
12885
|
}, "strip", z.ZodTypeAny, {
|
|
12875
12886
|
country_code: string;
|
|
12876
|
-
country_code3: string;
|
|
12877
|
-
country_name: string;
|
|
12878
12887
|
city_name: string;
|
|
12879
12888
|
latitude: string;
|
|
12880
12889
|
longitude: string;
|
|
@@ -12882,8 +12891,6 @@ export declare const logInsertSchema: z.ZodObject<{
|
|
|
12882
12891
|
continent_code: string;
|
|
12883
12892
|
}, {
|
|
12884
12893
|
country_code: string;
|
|
12885
|
-
country_code3: string;
|
|
12886
|
-
country_name: string;
|
|
12887
12894
|
city_name: string;
|
|
12888
12895
|
latitude: string;
|
|
12889
12896
|
longitude: string;
|
|
@@ -12919,8 +12926,6 @@ export declare const logInsertSchema: z.ZodObject<{
|
|
|
12919
12926
|
log_id?: string | undefined;
|
|
12920
12927
|
location_info?: {
|
|
12921
12928
|
country_code: string;
|
|
12922
|
-
country_code3: string;
|
|
12923
|
-
country_name: string;
|
|
12924
12929
|
city_name: string;
|
|
12925
12930
|
latitude: string;
|
|
12926
12931
|
longitude: string;
|
|
@@ -12956,8 +12961,6 @@ export declare const logInsertSchema: z.ZodObject<{
|
|
|
12956
12961
|
log_id?: string | undefined;
|
|
12957
12962
|
location_info?: {
|
|
12958
12963
|
country_code: string;
|
|
12959
|
-
country_code3: string;
|
|
12960
|
-
country_name: string;
|
|
12961
12964
|
city_name: string;
|
|
12962
12965
|
latitude: string;
|
|
12963
12966
|
longitude: string;
|
|
@@ -13011,8 +13014,6 @@ export declare const logSchema: z.ZodObject<{
|
|
|
13011
13014
|
}>>;
|
|
13012
13015
|
location_info: z.ZodOptional<z.ZodObject<{
|
|
13013
13016
|
country_code: z.ZodString;
|
|
13014
|
-
country_code3: z.ZodString;
|
|
13015
|
-
country_name: z.ZodString;
|
|
13016
13017
|
city_name: z.ZodString;
|
|
13017
13018
|
latitude: z.ZodString;
|
|
13018
13019
|
longitude: z.ZodString;
|
|
@@ -13020,8 +13021,6 @@ export declare const logSchema: z.ZodObject<{
|
|
|
13020
13021
|
continent_code: z.ZodString;
|
|
13021
13022
|
}, "strip", z.ZodTypeAny, {
|
|
13022
13023
|
country_code: string;
|
|
13023
|
-
country_code3: string;
|
|
13024
|
-
country_name: string;
|
|
13025
13024
|
city_name: string;
|
|
13026
13025
|
latitude: string;
|
|
13027
13026
|
longitude: string;
|
|
@@ -13029,8 +13028,6 @@ export declare const logSchema: z.ZodObject<{
|
|
|
13029
13028
|
continent_code: string;
|
|
13030
13029
|
}, {
|
|
13031
13030
|
country_code: string;
|
|
13032
|
-
country_code3: string;
|
|
13033
|
-
country_name: string;
|
|
13034
13031
|
city_name: string;
|
|
13035
13032
|
latitude: string;
|
|
13036
13033
|
longitude: string;
|
|
@@ -13066,8 +13063,6 @@ export declare const logSchema: z.ZodObject<{
|
|
|
13066
13063
|
} | undefined;
|
|
13067
13064
|
location_info?: {
|
|
13068
13065
|
country_code: string;
|
|
13069
|
-
country_code3: string;
|
|
13070
|
-
country_name: string;
|
|
13071
13066
|
city_name: string;
|
|
13072
13067
|
latitude: string;
|
|
13073
13068
|
longitude: string;
|
|
@@ -13103,8 +13098,6 @@ export declare const logSchema: z.ZodObject<{
|
|
|
13103
13098
|
} | undefined;
|
|
13104
13099
|
location_info?: {
|
|
13105
13100
|
country_code: string;
|
|
13106
|
-
country_code3: string;
|
|
13107
|
-
country_name: string;
|
|
13108
13101
|
city_name: string;
|
|
13109
13102
|
latitude: string;
|
|
13110
13103
|
longitude: string;
|
|
@@ -17311,8 +17304,6 @@ export interface InvitesAdapter {
|
|
|
17311
17304
|
}
|
|
17312
17305
|
export interface GeoInfo {
|
|
17313
17306
|
country_code: string;
|
|
17314
|
-
country_code3: string;
|
|
17315
|
-
country_name: string;
|
|
17316
17307
|
city_name: string;
|
|
17317
17308
|
latitude: string;
|
|
17318
17309
|
longitude: string;
|
|
@@ -17444,8 +17435,6 @@ export type HookRequest = {
|
|
|
17444
17435
|
cityName?: string;
|
|
17445
17436
|
continentCode?: string;
|
|
17446
17437
|
countryCode?: string;
|
|
17447
|
-
countryCode3?: string;
|
|
17448
|
-
countryName?: string;
|
|
17449
17438
|
latitude?: number;
|
|
17450
17439
|
longitude?: number;
|
|
17451
17440
|
subdivisionCode?: string;
|
|
@@ -20967,8 +20956,6 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
20967
20956
|
} | undefined;
|
|
20968
20957
|
location_info?: {
|
|
20969
20958
|
country_code: string;
|
|
20970
|
-
country_code3: string;
|
|
20971
|
-
country_name: string;
|
|
20972
20959
|
city_name: string;
|
|
20973
20960
|
latitude: string;
|
|
20974
20961
|
longitude: string;
|
|
@@ -21008,8 +20995,6 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
21008
20995
|
} | undefined;
|
|
21009
20996
|
location_info?: {
|
|
21010
20997
|
country_code: string;
|
|
21011
|
-
country_code3: string;
|
|
21012
|
-
country_name: string;
|
|
21013
20998
|
city_name: string;
|
|
21014
20999
|
latitude: string;
|
|
21015
21000
|
longitude: string;
|
|
@@ -21063,8 +21048,6 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
21063
21048
|
} | undefined;
|
|
21064
21049
|
location_info?: {
|
|
21065
21050
|
country_code: string;
|
|
21066
|
-
country_code3: string;
|
|
21067
|
-
country_name: string;
|
|
21068
21051
|
city_name: string;
|
|
21069
21052
|
latitude: string;
|
|
21070
21053
|
longitude: string;
|
|
@@ -22735,9 +22718,9 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
22735
22718
|
};
|
|
22736
22719
|
} & {
|
|
22737
22720
|
json: {
|
|
22721
|
+
connection: string;
|
|
22738
22722
|
name?: string | undefined;
|
|
22739
22723
|
password?: string | undefined;
|
|
22740
|
-
connection?: string | undefined;
|
|
22741
22724
|
email?: string | undefined;
|
|
22742
22725
|
given_name?: string | undefined;
|
|
22743
22726
|
family_name?: string | undefined;
|
|
@@ -23884,8 +23867,8 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
23884
23867
|
colors?: {
|
|
23885
23868
|
primary: string;
|
|
23886
23869
|
page_background?: {
|
|
23887
|
-
start?: string | undefined | undefined;
|
|
23888
23870
|
type?: string | undefined | undefined;
|
|
23871
|
+
start?: string | undefined | undefined;
|
|
23889
23872
|
end?: string | undefined | undefined;
|
|
23890
23873
|
angle_deg?: number | undefined | undefined;
|
|
23891
23874
|
} | undefined;
|
|
@@ -23913,8 +23896,8 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
23913
23896
|
colors?: {
|
|
23914
23897
|
primary: string;
|
|
23915
23898
|
page_background?: {
|
|
23916
|
-
start?: string | undefined;
|
|
23917
23899
|
type?: string | undefined;
|
|
23900
|
+
start?: string | undefined;
|
|
23918
23901
|
end?: string | undefined;
|
|
23919
23902
|
angle_deg?: number | undefined;
|
|
23920
23903
|
} | undefined;
|