authhero 0.30.0 → 0.31.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 +22 -22
- package/dist/authhero.d.ts +38 -4
- package/dist/authhero.mjs +6258 -6053
- package/package.json +3 -3
package/dist/authhero.d.ts
CHANGED
|
@@ -98,10 +98,12 @@ 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
102
|
}>, "strip", z.ZodTypeAny, {
|
|
102
103
|
email_verified: boolean;
|
|
103
104
|
connection: string;
|
|
104
105
|
provider: string;
|
|
106
|
+
is_social: boolean;
|
|
105
107
|
email?: string | undefined;
|
|
106
108
|
name?: string | undefined;
|
|
107
109
|
username?: string | undefined;
|
|
@@ -119,6 +121,7 @@ export declare const userInsertSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
119
121
|
last_ip?: string | undefined;
|
|
120
122
|
last_login?: string | undefined;
|
|
121
123
|
}, {
|
|
124
|
+
is_social: boolean;
|
|
122
125
|
email?: string | undefined;
|
|
123
126
|
email_verified?: boolean | undefined;
|
|
124
127
|
name?: string | undefined;
|
|
@@ -139,10 +142,10 @@ export declare const userInsertSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
139
142
|
last_ip?: string | undefined;
|
|
140
143
|
last_login?: string | undefined;
|
|
141
144
|
}>;
|
|
145
|
+
export type UserInsert = z.infer<typeof userInsertSchema>;
|
|
142
146
|
export declare const userSchema: z.ZodObject<{
|
|
143
147
|
user_id: z.ZodString;
|
|
144
148
|
email: z.ZodString;
|
|
145
|
-
is_social: z.ZodBoolean;
|
|
146
149
|
login_count: z.ZodNumber;
|
|
147
150
|
identities: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
148
151
|
connection: z.ZodString;
|
|
@@ -236,6 +239,7 @@ export declare const userSchema: z.ZodObject<{
|
|
|
236
239
|
last_login: z.ZodOptional<z.ZodString>;
|
|
237
240
|
provider: z.ZodDefault<z.ZodString>;
|
|
238
241
|
connection: z.ZodDefault<z.ZodString>;
|
|
242
|
+
is_social: z.ZodBoolean;
|
|
239
243
|
}, "strip", z.ZodTypeAny, {
|
|
240
244
|
created_at: string;
|
|
241
245
|
updated_at: string;
|
|
@@ -327,7 +331,6 @@ export type User = z.infer<typeof userSchema>;
|
|
|
327
331
|
export declare const auth0UserResponseSchema: z.ZodObject<{
|
|
328
332
|
user_id: z.ZodString;
|
|
329
333
|
email: z.ZodString;
|
|
330
|
-
is_social: z.ZodBoolean;
|
|
331
334
|
login_count: z.ZodNumber;
|
|
332
335
|
identities: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
333
336
|
connection: z.ZodString;
|
|
@@ -421,6 +424,7 @@ export declare const auth0UserResponseSchema: z.ZodObject<{
|
|
|
421
424
|
last_login: z.ZodOptional<z.ZodString>;
|
|
422
425
|
provider: z.ZodDefault<z.ZodString>;
|
|
423
426
|
connection: z.ZodDefault<z.ZodString>;
|
|
427
|
+
is_social: z.ZodBoolean;
|
|
424
428
|
}, "strip", z.ZodTypeAny, {
|
|
425
429
|
created_at: string;
|
|
426
430
|
updated_at: string;
|
|
@@ -2468,7 +2472,10 @@ export declare enum LogTypes {
|
|
|
2468
2472
|
SUCCESS_SILENT_AUTH = "ssa",
|
|
2469
2473
|
SUCCESS_VERIFICATION_EMAIL = "sv",
|
|
2470
2474
|
SUCCESS_VERIFICATION_EMAIL_REQUEST = "svr",
|
|
2471
|
-
CODE_LINK_SENT = "cls"
|
|
2475
|
+
CODE_LINK_SENT = "cls",
|
|
2476
|
+
BLOCKED_ACCOUNT_EMAIL = "limit_wc",
|
|
2477
|
+
BLOCKED_ACCOUNT_IP = "limit_sul",
|
|
2478
|
+
BLOCKED_IP_ADDRESS = "limit_mu"
|
|
2472
2479
|
}
|
|
2473
2480
|
declare const LogType: z.ZodEnum<[
|
|
2474
2481
|
"cls",
|
|
@@ -4275,7 +4282,7 @@ export interface ListUsersResponse extends Totals {
|
|
|
4275
4282
|
}
|
|
4276
4283
|
export interface UserDataAdapter {
|
|
4277
4284
|
get(tenant_id: string, id: string): Promise<User | null>;
|
|
4278
|
-
create(tenantId: string, user:
|
|
4285
|
+
create(tenantId: string, user: UserInsert): Promise<User>;
|
|
4279
4286
|
remove(tenantId: string, id: string): Promise<boolean>;
|
|
4280
4287
|
list(tenantId: string, params: ListParams): Promise<ListUsersResponse>;
|
|
4281
4288
|
update(tenantId: string, id: string, user: Partial<User>): Promise<boolean>;
|
|
@@ -5769,6 +5776,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
5769
5776
|
};
|
|
5770
5777
|
} & {
|
|
5771
5778
|
json: {
|
|
5779
|
+
is_social: boolean;
|
|
5772
5780
|
verify_email?: boolean | undefined;
|
|
5773
5781
|
email?: string | undefined;
|
|
5774
5782
|
last_ip?: string | undefined;
|
|
@@ -5872,6 +5880,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
5872
5880
|
provider?: string | undefined;
|
|
5873
5881
|
email_verified?: boolean | undefined;
|
|
5874
5882
|
connection?: string | undefined;
|
|
5883
|
+
is_social?: boolean | undefined;
|
|
5875
5884
|
};
|
|
5876
5885
|
};
|
|
5877
5886
|
output: {};
|
|
@@ -6196,6 +6205,31 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
6196
6205
|
Bindings: Bindings;
|
|
6197
6206
|
Variables: Variables;
|
|
6198
6207
|
}, import("hono/types").MergeSchemaPath<{
|
|
6208
|
+
"/": {
|
|
6209
|
+
$post: {
|
|
6210
|
+
input: {
|
|
6211
|
+
json: {
|
|
6212
|
+
username: string;
|
|
6213
|
+
client_id: string;
|
|
6214
|
+
otp: string;
|
|
6215
|
+
credential_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
|
|
6216
|
+
realm: "email";
|
|
6217
|
+
scope?: string | undefined;
|
|
6218
|
+
} | {
|
|
6219
|
+
password: string;
|
|
6220
|
+
username: string;
|
|
6221
|
+
client_id: string;
|
|
6222
|
+
credential_type: "http://auth0.com/oauth/grant-type/password-realm";
|
|
6223
|
+
realm: "Username-Password-Authentication";
|
|
6224
|
+
scope?: string | undefined;
|
|
6225
|
+
};
|
|
6226
|
+
};
|
|
6227
|
+
output: {};
|
|
6228
|
+
outputFormat: string;
|
|
6229
|
+
status: 200;
|
|
6230
|
+
};
|
|
6231
|
+
};
|
|
6232
|
+
}, "/co/authenticate"> & import("hono/types").MergeSchemaPath<{
|
|
6199
6233
|
"/start": {
|
|
6200
6234
|
$post: {
|
|
6201
6235
|
input: {
|