authhero 0.31.0 → 0.32.1
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 +64 -6
- package/dist/authhero.mjs +8248 -6940
- 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;
|
|
@@ -5776,7 +5776,6 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
5776
5776
|
};
|
|
5777
5777
|
} & {
|
|
5778
5778
|
json: {
|
|
5779
|
-
is_social: boolean;
|
|
5780
5779
|
verify_email?: boolean | undefined;
|
|
5781
5780
|
email?: string | undefined;
|
|
5782
5781
|
last_ip?: string | undefined;
|
|
@@ -5796,6 +5795,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
5796
5795
|
provider?: string | undefined;
|
|
5797
5796
|
email_verified?: boolean | undefined;
|
|
5798
5797
|
connection?: string | undefined;
|
|
5798
|
+
is_social?: boolean | undefined;
|
|
5799
5799
|
};
|
|
5800
5800
|
};
|
|
5801
5801
|
output: {
|
|
@@ -6205,6 +6205,64 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
6205
6205
|
Bindings: Bindings;
|
|
6206
6206
|
Variables: Variables;
|
|
6207
6207
|
}, import("hono/types").MergeSchemaPath<{
|
|
6208
|
+
"/": {
|
|
6209
|
+
$get: {
|
|
6210
|
+
input: {
|
|
6211
|
+
query: {
|
|
6212
|
+
client_id: string;
|
|
6213
|
+
redirect_uri: string;
|
|
6214
|
+
state: string;
|
|
6215
|
+
connection?: string | undefined;
|
|
6216
|
+
audience?: string | undefined;
|
|
6217
|
+
scope?: string | undefined;
|
|
6218
|
+
response_type?: AuthorizationResponseType | undefined;
|
|
6219
|
+
response_mode?: AuthorizationResponseMode | undefined;
|
|
6220
|
+
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
6221
|
+
auth0Client?: string | undefined;
|
|
6222
|
+
vendor_id?: string | undefined;
|
|
6223
|
+
nonce?: string | undefined;
|
|
6224
|
+
prompt?: string | undefined;
|
|
6225
|
+
code_challenge?: string | undefined;
|
|
6226
|
+
ui_locales?: string | undefined;
|
|
6227
|
+
realm?: string | undefined;
|
|
6228
|
+
login_ticket?: string | undefined;
|
|
6229
|
+
login_hint?: string | undefined;
|
|
6230
|
+
max_age?: string | undefined;
|
|
6231
|
+
};
|
|
6232
|
+
};
|
|
6233
|
+
output: {};
|
|
6234
|
+
outputFormat: string;
|
|
6235
|
+
status: 200;
|
|
6236
|
+
} | {
|
|
6237
|
+
input: {
|
|
6238
|
+
query: {
|
|
6239
|
+
client_id: string;
|
|
6240
|
+
redirect_uri: string;
|
|
6241
|
+
state: string;
|
|
6242
|
+
connection?: string | undefined;
|
|
6243
|
+
audience?: string | undefined;
|
|
6244
|
+
scope?: string | undefined;
|
|
6245
|
+
response_type?: AuthorizationResponseType | undefined;
|
|
6246
|
+
response_mode?: AuthorizationResponseMode | undefined;
|
|
6247
|
+
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
6248
|
+
auth0Client?: string | undefined;
|
|
6249
|
+
vendor_id?: string | undefined;
|
|
6250
|
+
nonce?: string | undefined;
|
|
6251
|
+
prompt?: string | undefined;
|
|
6252
|
+
code_challenge?: string | undefined;
|
|
6253
|
+
ui_locales?: string | undefined;
|
|
6254
|
+
realm?: string | undefined;
|
|
6255
|
+
login_ticket?: string | undefined;
|
|
6256
|
+
login_hint?: string | undefined;
|
|
6257
|
+
max_age?: string | undefined;
|
|
6258
|
+
};
|
|
6259
|
+
};
|
|
6260
|
+
output: {};
|
|
6261
|
+
outputFormat: string;
|
|
6262
|
+
status: 302;
|
|
6263
|
+
};
|
|
6264
|
+
};
|
|
6265
|
+
}, "/authorize"> & import("hono/types").MergeSchemaPath<{
|
|
6208
6266
|
"/": {
|
|
6209
6267
|
$post: {
|
|
6210
6268
|
input: {
|