authhero 0.29.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.
@@ -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: User): Promise<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>;
@@ -4425,6 +4432,8 @@ export type Bindings = {
4425
4432
  emailProviders?: {
4426
4433
  [key: string]: EmailService;
4427
4434
  };
4435
+ DEFAULT_TENANT_ID?: string;
4436
+ DEFAULT_CLIENT_ID?: string;
4428
4437
  JWKS_CACHE_TIMEOUT_IN_SECONDS: number;
4429
4438
  ORGANIZATION_NAME: string;
4430
4439
  };
@@ -5767,6 +5776,7 @@ export declare function init(config: AuthHeroConfig): {
5767
5776
  };
5768
5777
  } & {
5769
5778
  json: {
5779
+ is_social: boolean;
5770
5780
  verify_email?: boolean | undefined;
5771
5781
  email?: string | undefined;
5772
5782
  last_ip?: string | undefined;
@@ -5870,6 +5880,7 @@ export declare function init(config: AuthHeroConfig): {
5870
5880
  provider?: string | undefined;
5871
5881
  email_verified?: boolean | undefined;
5872
5882
  connection?: string | undefined;
5883
+ is_social?: boolean | undefined;
5873
5884
  };
5874
5885
  };
5875
5886
  output: {};
@@ -6194,6 +6205,85 @@ export declare function init(config: AuthHeroConfig): {
6194
6205
  Bindings: Bindings;
6195
6206
  Variables: Variables;
6196
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<{
6233
+ "/start": {
6234
+ $post: {
6235
+ input: {
6236
+ json: {
6237
+ email: string;
6238
+ client_id: string;
6239
+ connection: string;
6240
+ authParams: {
6241
+ username?: string | undefined;
6242
+ audience?: string | undefined;
6243
+ scope?: string | undefined;
6244
+ response_type?: AuthorizationResponseType | undefined;
6245
+ response_mode?: AuthorizationResponseMode | undefined;
6246
+ redirect_uri?: string | undefined;
6247
+ code_challenge_method?: CodeChallengeMethod | undefined;
6248
+ vendor_id?: string | undefined;
6249
+ act_as?: string | undefined;
6250
+ state?: string | undefined;
6251
+ nonce?: string | undefined;
6252
+ prompt?: string | undefined;
6253
+ code_challenge?: string | undefined;
6254
+ ui_locales?: string | undefined;
6255
+ };
6256
+ send: "code" | "link";
6257
+ };
6258
+ };
6259
+ output: {};
6260
+ outputFormat: string;
6261
+ status: 200;
6262
+ };
6263
+ };
6264
+ } & {
6265
+ "/verify_redirect": {
6266
+ $get: {
6267
+ input: {
6268
+ query: {
6269
+ email: string;
6270
+ client_id: string;
6271
+ connection: string;
6272
+ scope: string;
6273
+ response_type: AuthorizationResponseType;
6274
+ redirect_uri: string;
6275
+ state: string;
6276
+ verification_code: string;
6277
+ audience?: string | undefined;
6278
+ nonce?: string | undefined;
6279
+ };
6280
+ };
6281
+ output: {};
6282
+ outputFormat: string;
6283
+ status: 302;
6284
+ };
6285
+ };
6286
+ }, "/passwordless"> & import("hono/types").MergeSchemaPath<{
6197
6287
  "/signup": {
6198
6288
  $post: {
6199
6289
  input: {