@authhero/kysely-adapter 0.26.0 → 0.26.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.
@@ -30,12 +30,11 @@ declare const userInsertSchema: z.ZodObject<z.objectUtil.extendShape<{
30
30
  user_id: z.ZodOptional<z.ZodString>;
31
31
  provider: z.ZodDefault<z.ZodString>;
32
32
  connection: z.ZodDefault<z.ZodString>;
33
- is_social: z.ZodBoolean;
33
+ is_social: z.ZodOptional<z.ZodBoolean>;
34
34
  }>, "strip", z.ZodTypeAny, {
35
35
  email_verified: boolean;
36
36
  connection: string;
37
37
  provider: string;
38
- is_social: boolean;
39
38
  email?: string | undefined;
40
39
  name?: string | undefined;
41
40
  username?: string | undefined;
@@ -52,8 +51,8 @@ declare const userInsertSchema: z.ZodObject<z.objectUtil.extendShape<{
52
51
  verify_email?: boolean | undefined;
53
52
  last_ip?: string | undefined;
54
53
  last_login?: string | undefined;
54
+ is_social?: boolean | undefined;
55
55
  }, {
56
- is_social: boolean;
57
56
  email?: string | undefined;
58
57
  email_verified?: boolean | undefined;
59
58
  name?: string | undefined;
@@ -73,10 +72,12 @@ declare const userInsertSchema: z.ZodObject<z.objectUtil.extendShape<{
73
72
  verify_email?: boolean | undefined;
74
73
  last_ip?: string | undefined;
75
74
  last_login?: string | undefined;
75
+ is_social?: boolean | undefined;
76
76
  }>;
77
77
  export type UserInsert = z.infer<typeof userInsertSchema>;
78
78
  declare const userSchema: z.ZodObject<{
79
79
  user_id: z.ZodString;
80
+ is_social: z.ZodBoolean;
80
81
  email: z.ZodString;
81
82
  login_count: z.ZodNumber;
82
83
  identities: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -171,7 +172,6 @@ declare const userSchema: z.ZodObject<{
171
172
  last_login: z.ZodOptional<z.ZodString>;
172
173
  provider: z.ZodDefault<z.ZodString>;
173
174
  connection: z.ZodDefault<z.ZodString>;
174
- is_social: z.ZodBoolean;
175
175
  }, "strip", z.ZodTypeAny, {
176
176
  created_at: string;
177
177
  updated_at: string;
@@ -1747,7 +1747,10 @@ declare const LogType: z.ZodEnum<[
1747
1747
  "ss",
1748
1748
  "ssa",
1749
1749
  "sv",
1750
- "svr"
1750
+ "svr",
1751
+ "limit_wc",
1752
+ "limit_sul",
1753
+ "limit_mu"
1751
1754
  ]>;
1752
1755
  export type LogType$1 = z.infer<typeof LogType>;
1753
1756
  declare const logSchema: z.ZodObject<{
@@ -1775,7 +1778,10 @@ declare const logSchema: z.ZodObject<{
1775
1778
  "ss",
1776
1779
  "ssa",
1777
1780
  "sv",
1778
- "svr"
1781
+ "svr",
1782
+ "limit_wc",
1783
+ "limit_sul",
1784
+ "limit_mu"
1779
1785
  ]>;
1780
1786
  date: z.ZodString;
1781
1787
  description: z.ZodOptional<z.ZodString>;
@@ -1820,7 +1826,7 @@ declare const logSchema: z.ZodObject<{
1820
1826
  } | undefined;
1821
1827
  }>>;
1822
1828
  }, "strip", z.ZodTypeAny, {
1823
- type: "fsa" | "fs" | "f" | "fp" | "fcp" | "fc" | "fu" | "fh" | "fcoa" | "sapi" | "scp" | "scpr" | "scu" | "scoa" | "seacft" | "serft" | "s" | "slo" | "ss" | "ssa" | "sv" | "svr" | "cls";
1829
+ 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";
1824
1830
  date: string;
1825
1831
  ip: string;
1826
1832
  user_agent: string;
@@ -1848,7 +1854,7 @@ declare const logSchema: z.ZodObject<{
1848
1854
  } | undefined;
1849
1855
  } | undefined;
1850
1856
  }, {
1851
- type: "fsa" | "fs" | "f" | "fp" | "fcp" | "fc" | "fu" | "fh" | "fcoa" | "sapi" | "scp" | "scpr" | "scu" | "scoa" | "seacft" | "serft" | "s" | "slo" | "ss" | "ssa" | "sv" | "svr" | "cls";
1857
+ 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";
1852
1858
  date: string;
1853
1859
  ip: string;
1854
1860
  user_agent: string;
@@ -3031,12 +3031,13 @@ const Un = i.object({
3031
3031
  user_id: i.string().optional(),
3032
3032
  provider: i.string().default("email"),
3033
3033
  connection: i.string().default("email"),
3034
- is_social: i.boolean()
3034
+ is_social: i.boolean().optional()
3035
3035
  });
3036
3036
  i.object({
3037
3037
  ...rs.shape,
3038
3038
  ...Un.shape,
3039
3039
  user_id: i.string(),
3040
+ is_social: i.boolean(),
3040
3041
  // TODO: this not might be correct if you use the username
3041
3042
  email: i.string(),
3042
3043
  login_count: i.number(),
@@ -3378,8 +3379,14 @@ const ws = i.object({
3378
3379
  // SUCCESS_SILENT_AUTH,
3379
3380
  "sv",
3380
3381
  // SUCCESS_VERIFICATION_EMAIL
3381
- "svr"
3382
+ "svr",
3382
3383
  // SUCCESS_VERIFICATION_EMAIL_REQUEST
3384
+ "limit_wc",
3385
+ // BLOCKED_ACCOUNT_EMAIL
3386
+ "limit_sul",
3387
+ // BLOCKED_ACCOUNT_IP
3388
+ "limit_mu"
3389
+ // BLOCKED_IP_ADDRESS
3383
3390
  ]), ks = i.object({
3384
3391
  name: i.string(),
3385
3392
  version: i.string(),
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "type": "git",
12
12
  "url": "https://github.com/markusahlstrand/authhero"
13
13
  },
14
- "version": "0.26.0",
14
+ "version": "0.26.1",
15
15
  "files": [
16
16
  "dist"
17
17
  ],
@@ -41,7 +41,7 @@
41
41
  "dependencies": {
42
42
  "kysely": "^0.27.4",
43
43
  "nanoid": "^5.0.8",
44
- "@authhero/adapter-interfaces": "^0.34.0"
44
+ "@authhero/adapter-interfaces": "^0.35.0"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "@hono/zod-openapi": "^0.16.4",