authhero 0.30.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.
@@ -98,6 +98,7 @@ 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.ZodOptional<z.ZodBoolean>;
101
102
  }>, "strip", z.ZodTypeAny, {
102
103
  email_verified: boolean;
103
104
  connection: string;
@@ -118,6 +119,7 @@ export declare const userInsertSchema: z.ZodObject<z.objectUtil.extendShape<{
118
119
  verify_email?: boolean | undefined;
119
120
  last_ip?: string | undefined;
120
121
  last_login?: string | undefined;
122
+ is_social?: boolean | undefined;
121
123
  }, {
122
124
  email?: string | undefined;
123
125
  email_verified?: boolean | undefined;
@@ -138,11 +140,13 @@ export declare const userInsertSchema: z.ZodObject<z.objectUtil.extendShape<{
138
140
  verify_email?: boolean | undefined;
139
141
  last_ip?: string | undefined;
140
142
  last_login?: string | undefined;
143
+ is_social?: boolean | 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
- email: z.ZodString;
145
148
  is_social: z.ZodBoolean;
149
+ email: z.ZodString;
146
150
  login_count: z.ZodNumber;
147
151
  identities: z.ZodOptional<z.ZodArray<z.ZodObject<{
148
152
  connection: z.ZodString;
@@ -326,8 +330,8 @@ export declare const userSchema: z.ZodObject<{
326
330
  export type User = z.infer<typeof userSchema>;
327
331
  export declare const auth0UserResponseSchema: z.ZodObject<{
328
332
  user_id: z.ZodString;
329
- email: z.ZodString;
330
333
  is_social: z.ZodBoolean;
334
+ email: z.ZodString;
331
335
  login_count: z.ZodNumber;
332
336
  identities: z.ZodOptional<z.ZodArray<z.ZodObject<{
333
337
  connection: z.ZodString;
@@ -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",
@@ -2494,7 +2501,10 @@ declare const LogType: z.ZodEnum<[
2494
2501
  "ss",
2495
2502
  "ssa",
2496
2503
  "sv",
2497
- "svr"
2504
+ "svr",
2505
+ "limit_wc",
2506
+ "limit_sul",
2507
+ "limit_mu"
2498
2508
  ]>;
2499
2509
  type LogType$1 = z.infer<typeof LogType>;
2500
2510
  export declare const Auth0Client: z.ZodObject<{
@@ -2545,7 +2555,10 @@ export declare const logSchema: z.ZodObject<{
2545
2555
  "ss",
2546
2556
  "ssa",
2547
2557
  "sv",
2548
- "svr"
2558
+ "svr",
2559
+ "limit_wc",
2560
+ "limit_sul",
2561
+ "limit_mu"
2549
2562
  ]>;
2550
2563
  date: z.ZodString;
2551
2564
  description: z.ZodOptional<z.ZodString>;
@@ -2590,7 +2603,7 @@ export declare const logSchema: z.ZodObject<{
2590
2603
  } | undefined;
2591
2604
  }>>;
2592
2605
  }, "strip", z.ZodTypeAny, {
2593
- 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";
2594
2607
  date: string;
2595
2608
  ip: string;
2596
2609
  user_agent: string;
@@ -2618,7 +2631,7 @@ export declare const logSchema: z.ZodObject<{
2618
2631
  } | undefined;
2619
2632
  } | undefined;
2620
2633
  }, {
2621
- 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";
2622
2635
  date: string;
2623
2636
  ip: string;
2624
2637
  user_agent: string;
@@ -4275,7 +4288,7 @@ export interface ListUsersResponse extends Totals {
4275
4288
  }
4276
4289
  export interface UserDataAdapter {
4277
4290
  get(tenant_id: string, id: string): Promise<User | null>;
4278
- create(tenantId: string, user: User): Promise<User>;
4291
+ create(tenantId: string, user: UserInsert): Promise<User>;
4279
4292
  remove(tenantId: string, id: string): Promise<boolean>;
4280
4293
  list(tenantId: string, params: ListParams): Promise<ListUsersResponse>;
4281
4294
  update(tenantId: string, id: string, user: Partial<User>): Promise<boolean>;
@@ -4935,7 +4948,7 @@ export declare function init(config: AuthHeroConfig): {
4935
4948
  };
4936
4949
  };
4937
4950
  output: {
4938
- 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";
4939
4952
  date: string;
4940
4953
  ip: string;
4941
4954
  user_agent: string;
@@ -4967,7 +4980,7 @@ export declare function init(config: AuthHeroConfig): {
4967
4980
  limit: number;
4968
4981
  length: number;
4969
4982
  logs: {
4970
- 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";
4971
4984
  date: string;
4972
4985
  ip: string;
4973
4986
  user_agent: string;
@@ -5013,7 +5026,7 @@ export declare function init(config: AuthHeroConfig): {
5013
5026
  };
5014
5027
  };
5015
5028
  output: {
5016
- 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";
5017
5030
  date: string;
5018
5031
  ip: string;
5019
5032
  user_agent: string;
@@ -5788,6 +5801,7 @@ export declare function init(config: AuthHeroConfig): {
5788
5801
  provider?: string | undefined;
5789
5802
  email_verified?: boolean | undefined;
5790
5803
  connection?: string | undefined;
5804
+ is_social?: boolean | undefined;
5791
5805
  };
5792
5806
  };
5793
5807
  output: {
@@ -5872,6 +5886,7 @@ export declare function init(config: AuthHeroConfig): {
5872
5886
  provider?: string | undefined;
5873
5887
  email_verified?: boolean | undefined;
5874
5888
  connection?: string | undefined;
5889
+ is_social?: boolean | undefined;
5875
5890
  };
5876
5891
  };
5877
5892
  output: {};
@@ -6196,6 +6211,89 @@ export declare function init(config: AuthHeroConfig): {
6196
6211
  Bindings: Bindings;
6197
6212
  Variables: Variables;
6198
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<{
6272
+ "/": {
6273
+ $post: {
6274
+ input: {
6275
+ json: {
6276
+ username: string;
6277
+ client_id: string;
6278
+ otp: string;
6279
+ credential_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
6280
+ realm: "email";
6281
+ scope?: string | undefined;
6282
+ } | {
6283
+ password: string;
6284
+ username: string;
6285
+ client_id: string;
6286
+ credential_type: "http://auth0.com/oauth/grant-type/password-realm";
6287
+ realm: "Username-Password-Authentication";
6288
+ scope?: string | undefined;
6289
+ };
6290
+ };
6291
+ output: {};
6292
+ outputFormat: string;
6293
+ status: 200;
6294
+ };
6295
+ };
6296
+ }, "/co/authenticate"> & import("hono/types").MergeSchemaPath<{
6199
6297
  "/start": {
6200
6298
  $post: {
6201
6299
  input: {