authhero 0.31.0 → 0.32.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 +65 -22
- package/dist/authhero.d.ts +77 -13
- package/dist/authhero.mjs +8288 -6980
- package/package.json +4 -3
package/dist/authhero.d.ts
CHANGED
|
@@ -98,12 +98,11 @@ export declare const userInsertSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
98
98
|
user_id: z.ZodOptional<z.ZodString>;
|
|
99
99
|
provider: z.ZodDefault<z.ZodString>;
|
|
100
100
|
connection: z.ZodDefault<z.ZodString>;
|
|
101
|
-
is_social: z.ZodBoolean
|
|
101
|
+
is_social: z.ZodOptional<z.ZodBoolean>;
|
|
102
102
|
}>, "strip", z.ZodTypeAny, {
|
|
103
103
|
email_verified: boolean;
|
|
104
104
|
connection: string;
|
|
105
105
|
provider: string;
|
|
106
|
-
is_social: boolean;
|
|
107
106
|
email?: string | undefined;
|
|
108
107
|
name?: string | undefined;
|
|
109
108
|
username?: string | undefined;
|
|
@@ -120,8 +119,8 @@ export declare const userInsertSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
120
119
|
verify_email?: boolean | undefined;
|
|
121
120
|
last_ip?: string | undefined;
|
|
122
121
|
last_login?: string | undefined;
|
|
122
|
+
is_social?: boolean | undefined;
|
|
123
123
|
}, {
|
|
124
|
-
is_social: boolean;
|
|
125
124
|
email?: string | undefined;
|
|
126
125
|
email_verified?: boolean | undefined;
|
|
127
126
|
name?: string | undefined;
|
|
@@ -141,10 +140,12 @@ export declare const userInsertSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
141
140
|
verify_email?: boolean | undefined;
|
|
142
141
|
last_ip?: string | undefined;
|
|
143
142
|
last_login?: string | undefined;
|
|
143
|
+
is_social?: boolean | undefined;
|
|
144
144
|
}>;
|
|
145
145
|
export type UserInsert = z.infer<typeof userInsertSchema>;
|
|
146
146
|
export declare const userSchema: z.ZodObject<{
|
|
147
147
|
user_id: z.ZodString;
|
|
148
|
+
is_social: z.ZodBoolean;
|
|
148
149
|
email: z.ZodString;
|
|
149
150
|
login_count: z.ZodNumber;
|
|
150
151
|
identities: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -239,7 +240,6 @@ export declare const userSchema: z.ZodObject<{
|
|
|
239
240
|
last_login: z.ZodOptional<z.ZodString>;
|
|
240
241
|
provider: z.ZodDefault<z.ZodString>;
|
|
241
242
|
connection: z.ZodDefault<z.ZodString>;
|
|
242
|
-
is_social: z.ZodBoolean;
|
|
243
243
|
}, "strip", z.ZodTypeAny, {
|
|
244
244
|
created_at: string;
|
|
245
245
|
updated_at: string;
|
|
@@ -330,6 +330,7 @@ export declare const userSchema: z.ZodObject<{
|
|
|
330
330
|
export type User = z.infer<typeof userSchema>;
|
|
331
331
|
export declare const auth0UserResponseSchema: z.ZodObject<{
|
|
332
332
|
user_id: z.ZodString;
|
|
333
|
+
is_social: z.ZodBoolean;
|
|
333
334
|
email: z.ZodString;
|
|
334
335
|
login_count: z.ZodNumber;
|
|
335
336
|
identities: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -424,7 +425,6 @@ export declare const auth0UserResponseSchema: z.ZodObject<{
|
|
|
424
425
|
last_login: z.ZodOptional<z.ZodString>;
|
|
425
426
|
provider: z.ZodDefault<z.ZodString>;
|
|
426
427
|
connection: z.ZodDefault<z.ZodString>;
|
|
427
|
-
is_social: z.ZodBoolean;
|
|
428
428
|
}, "strip", z.ZodTypeAny, {
|
|
429
429
|
created_at: string;
|
|
430
430
|
updated_at: string;
|
|
@@ -2501,7 +2501,10 @@ declare const LogType: z.ZodEnum<[
|
|
|
2501
2501
|
"ss",
|
|
2502
2502
|
"ssa",
|
|
2503
2503
|
"sv",
|
|
2504
|
-
"svr"
|
|
2504
|
+
"svr",
|
|
2505
|
+
"limit_wc",
|
|
2506
|
+
"limit_sul",
|
|
2507
|
+
"limit_mu"
|
|
2505
2508
|
]>;
|
|
2506
2509
|
type LogType$1 = z.infer<typeof LogType>;
|
|
2507
2510
|
export declare const Auth0Client: z.ZodObject<{
|
|
@@ -2552,7 +2555,10 @@ export declare const logSchema: z.ZodObject<{
|
|
|
2552
2555
|
"ss",
|
|
2553
2556
|
"ssa",
|
|
2554
2557
|
"sv",
|
|
2555
|
-
"svr"
|
|
2558
|
+
"svr",
|
|
2559
|
+
"limit_wc",
|
|
2560
|
+
"limit_sul",
|
|
2561
|
+
"limit_mu"
|
|
2556
2562
|
]>;
|
|
2557
2563
|
date: z.ZodString;
|
|
2558
2564
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -2597,7 +2603,7 @@ export declare const logSchema: z.ZodObject<{
|
|
|
2597
2603
|
} | undefined;
|
|
2598
2604
|
}>>;
|
|
2599
2605
|
}, "strip", z.ZodTypeAny, {
|
|
2600
|
-
type: "fsa" | "fs" | "f" | "fp" | "fcp" | "fc" | "fu" | "fh" | "fcoa" | "sapi" | "scp" | "scpr" | "scu" | "scoa" | "seacft" | "serft" | "s" | "slo" | "ss" | "ssa" | "sv" | "svr" | "cls";
|
|
2606
|
+
type: "fsa" | "fs" | "f" | "fp" | "fcp" | "fc" | "fu" | "fh" | "fcoa" | "sapi" | "scp" | "scpr" | "scu" | "scoa" | "seacft" | "serft" | "s" | "slo" | "ss" | "ssa" | "sv" | "svr" | "cls" | "limit_wc" | "limit_sul" | "limit_mu";
|
|
2601
2607
|
date: string;
|
|
2602
2608
|
ip: string;
|
|
2603
2609
|
user_agent: string;
|
|
@@ -2625,7 +2631,7 @@ export declare const logSchema: z.ZodObject<{
|
|
|
2625
2631
|
} | undefined;
|
|
2626
2632
|
} | undefined;
|
|
2627
2633
|
}, {
|
|
2628
|
-
type: "fsa" | "fs" | "f" | "fp" | "fcp" | "fc" | "fu" | "fh" | "fcoa" | "sapi" | "scp" | "scpr" | "scu" | "scoa" | "seacft" | "serft" | "s" | "slo" | "ss" | "ssa" | "sv" | "svr" | "cls";
|
|
2634
|
+
type: "fsa" | "fs" | "f" | "fp" | "fcp" | "fc" | "fu" | "fh" | "fcoa" | "sapi" | "scp" | "scpr" | "scu" | "scoa" | "seacft" | "serft" | "s" | "slo" | "ss" | "ssa" | "sv" | "svr" | "cls" | "limit_wc" | "limit_sul" | "limit_mu";
|
|
2629
2635
|
date: string;
|
|
2630
2636
|
ip: string;
|
|
2631
2637
|
user_agent: string;
|
|
@@ -4942,7 +4948,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
4942
4948
|
};
|
|
4943
4949
|
};
|
|
4944
4950
|
output: {
|
|
4945
|
-
type: "fsa" | "fs" | "f" | "fp" | "fcp" | "fc" | "fu" | "fh" | "fcoa" | "sapi" | "scp" | "scpr" | "scu" | "scoa" | "seacft" | "serft" | "s" | "slo" | "ss" | "ssa" | "sv" | "svr" | "cls";
|
|
4951
|
+
type: "fsa" | "fs" | "f" | "fp" | "fcp" | "fc" | "fu" | "fh" | "fcoa" | "sapi" | "scp" | "scpr" | "scu" | "scoa" | "seacft" | "serft" | "s" | "slo" | "ss" | "ssa" | "sv" | "svr" | "cls" | "limit_wc" | "limit_sul" | "limit_mu";
|
|
4946
4952
|
date: string;
|
|
4947
4953
|
ip: string;
|
|
4948
4954
|
user_agent: string;
|
|
@@ -4974,7 +4980,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
4974
4980
|
limit: number;
|
|
4975
4981
|
length: number;
|
|
4976
4982
|
logs: {
|
|
4977
|
-
type: "fsa" | "fs" | "f" | "fp" | "fcp" | "fc" | "fu" | "fh" | "fcoa" | "sapi" | "scp" | "scpr" | "scu" | "scoa" | "seacft" | "serft" | "s" | "slo" | "ss" | "ssa" | "sv" | "svr" | "cls";
|
|
4983
|
+
type: "fsa" | "fs" | "f" | "fp" | "fcp" | "fc" | "fu" | "fh" | "fcoa" | "sapi" | "scp" | "scpr" | "scu" | "scoa" | "seacft" | "serft" | "s" | "slo" | "ss" | "ssa" | "sv" | "svr" | "cls" | "limit_wc" | "limit_sul" | "limit_mu";
|
|
4978
4984
|
date: string;
|
|
4979
4985
|
ip: string;
|
|
4980
4986
|
user_agent: string;
|
|
@@ -5020,7 +5026,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
5020
5026
|
};
|
|
5021
5027
|
};
|
|
5022
5028
|
output: {
|
|
5023
|
-
type: "fsa" | "fs" | "f" | "fp" | "fcp" | "fc" | "fu" | "fh" | "fcoa" | "sapi" | "scp" | "scpr" | "scu" | "scoa" | "seacft" | "serft" | "s" | "slo" | "ss" | "ssa" | "sv" | "svr" | "cls";
|
|
5029
|
+
type: "fsa" | "fs" | "f" | "fp" | "fcp" | "fc" | "fu" | "fh" | "fcoa" | "sapi" | "scp" | "scpr" | "scu" | "scoa" | "seacft" | "serft" | "s" | "slo" | "ss" | "ssa" | "sv" | "svr" | "cls" | "limit_wc" | "limit_sul" | "limit_mu";
|
|
5024
5030
|
date: string;
|
|
5025
5031
|
ip: string;
|
|
5026
5032
|
user_agent: string;
|
|
@@ -5776,7 +5782,6 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
5776
5782
|
};
|
|
5777
5783
|
} & {
|
|
5778
5784
|
json: {
|
|
5779
|
-
is_social: boolean;
|
|
5780
5785
|
verify_email?: boolean | undefined;
|
|
5781
5786
|
email?: string | undefined;
|
|
5782
5787
|
last_ip?: string | undefined;
|
|
@@ -5796,6 +5801,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
5796
5801
|
provider?: string | undefined;
|
|
5797
5802
|
email_verified?: boolean | undefined;
|
|
5798
5803
|
connection?: string | undefined;
|
|
5804
|
+
is_social?: boolean | undefined;
|
|
5799
5805
|
};
|
|
5800
5806
|
};
|
|
5801
5807
|
output: {
|
|
@@ -6205,6 +6211,64 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
6205
6211
|
Bindings: Bindings;
|
|
6206
6212
|
Variables: Variables;
|
|
6207
6213
|
}, import("hono/types").MergeSchemaPath<{
|
|
6214
|
+
"/": {
|
|
6215
|
+
$get: {
|
|
6216
|
+
input: {
|
|
6217
|
+
query: {
|
|
6218
|
+
client_id: string;
|
|
6219
|
+
redirect_uri: string;
|
|
6220
|
+
state: string;
|
|
6221
|
+
connection?: string | undefined;
|
|
6222
|
+
audience?: string | undefined;
|
|
6223
|
+
scope?: string | undefined;
|
|
6224
|
+
response_type?: AuthorizationResponseType | undefined;
|
|
6225
|
+
response_mode?: AuthorizationResponseMode | undefined;
|
|
6226
|
+
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
6227
|
+
auth0Client?: string | undefined;
|
|
6228
|
+
vendor_id?: string | undefined;
|
|
6229
|
+
nonce?: string | undefined;
|
|
6230
|
+
prompt?: string | undefined;
|
|
6231
|
+
code_challenge?: string | undefined;
|
|
6232
|
+
ui_locales?: string | undefined;
|
|
6233
|
+
realm?: string | undefined;
|
|
6234
|
+
login_ticket?: string | undefined;
|
|
6235
|
+
login_hint?: string | undefined;
|
|
6236
|
+
max_age?: string | undefined;
|
|
6237
|
+
};
|
|
6238
|
+
};
|
|
6239
|
+
output: {};
|
|
6240
|
+
outputFormat: string;
|
|
6241
|
+
status: 200;
|
|
6242
|
+
} | {
|
|
6243
|
+
input: {
|
|
6244
|
+
query: {
|
|
6245
|
+
client_id: string;
|
|
6246
|
+
redirect_uri: string;
|
|
6247
|
+
state: string;
|
|
6248
|
+
connection?: string | undefined;
|
|
6249
|
+
audience?: string | undefined;
|
|
6250
|
+
scope?: string | undefined;
|
|
6251
|
+
response_type?: AuthorizationResponseType | undefined;
|
|
6252
|
+
response_mode?: AuthorizationResponseMode | undefined;
|
|
6253
|
+
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
6254
|
+
auth0Client?: string | undefined;
|
|
6255
|
+
vendor_id?: string | undefined;
|
|
6256
|
+
nonce?: string | undefined;
|
|
6257
|
+
prompt?: string | undefined;
|
|
6258
|
+
code_challenge?: string | undefined;
|
|
6259
|
+
ui_locales?: string | undefined;
|
|
6260
|
+
realm?: string | undefined;
|
|
6261
|
+
login_ticket?: string | undefined;
|
|
6262
|
+
login_hint?: string | undefined;
|
|
6263
|
+
max_age?: string | undefined;
|
|
6264
|
+
};
|
|
6265
|
+
};
|
|
6266
|
+
output: {};
|
|
6267
|
+
outputFormat: string;
|
|
6268
|
+
status: 302;
|
|
6269
|
+
};
|
|
6270
|
+
};
|
|
6271
|
+
}, "/authorize"> & import("hono/types").MergeSchemaPath<{
|
|
6208
6272
|
"/": {
|
|
6209
6273
|
$post: {
|
|
6210
6274
|
input: {
|