@convex-dev/better-auth 0.9.7 → 0.9.8

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.
Files changed (249) hide show
  1. package/dist/auth.d.ts.map +1 -0
  2. package/dist/{commonjs/auth.js → auth.js} +2 -2
  3. package/dist/auth.js.map +1 -0
  4. package/dist/client/adapter.d.ts +15 -0
  5. package/dist/client/adapter.d.ts.map +1 -0
  6. package/dist/{commonjs/client → client}/adapter.js +12 -3
  7. package/dist/client/adapter.js.map +1 -0
  8. package/dist/{commonjs/client → client}/adapterUtils.d.ts +15 -15
  9. package/dist/client/adapterUtils.d.ts.map +1 -0
  10. package/dist/{esm/client → client}/adapterUtils.js +1 -0
  11. package/dist/client/adapterUtils.js.map +1 -0
  12. package/dist/client/createSchema.d.ts.map +1 -0
  13. package/dist/client/createSchema.js.map +1 -0
  14. package/dist/{commonjs/client → client}/index.d.ts +23 -27
  15. package/dist/client/index.d.ts.map +1 -0
  16. package/dist/{commonjs/client → client}/index.js +24 -5
  17. package/dist/client/index.js.map +1 -0
  18. package/dist/client/plugins/index.d.ts.map +1 -0
  19. package/dist/client/plugins/index.js.map +1 -0
  20. package/dist/component/_generated/api.d.ts +36 -0
  21. package/dist/component/_generated/api.d.ts.map +1 -0
  22. package/{src → dist}/component/_generated/api.js +11 -3
  23. package/dist/component/_generated/api.js.map +1 -0
  24. package/dist/component/_generated/component.d.ts +794 -0
  25. package/dist/component/_generated/component.d.ts.map +1 -0
  26. package/dist/component/_generated/component.js +11 -0
  27. package/dist/component/_generated/component.js.map +1 -0
  28. package/dist/component/_generated/dataModel.d.ts +46 -0
  29. package/dist/component/_generated/dataModel.d.ts.map +1 -0
  30. package/dist/component/_generated/dataModel.js +11 -0
  31. package/dist/component/_generated/dataModel.js.map +1 -0
  32. package/{src → dist}/component/_generated/server.d.ts +10 -38
  33. package/dist/component/_generated/server.d.ts.map +1 -0
  34. package/dist/{commonjs/component → component}/_generated/server.js +9 -5
  35. package/dist/component/_generated/server.js.map +1 -0
  36. package/dist/{commonjs/component → component}/adapter.d.ts +11 -11
  37. package/dist/component/adapter.d.ts.map +1 -0
  38. package/dist/component/adapter.js.map +1 -0
  39. package/dist/{commonjs/component → component}/adapterTest.d.ts +2 -2
  40. package/dist/component/adapterTest.d.ts.map +1 -0
  41. package/dist/component/adapterTest.js.map +1 -0
  42. package/dist/component/convex.config.d.ts.map +1 -0
  43. package/dist/component/convex.config.js.map +1 -0
  44. package/dist/{commonjs/component → component}/schema.d.ts +6 -28
  45. package/dist/component/schema.d.ts.map +1 -0
  46. package/dist/{esm/component → component}/schema.js +2 -10
  47. package/dist/component/schema.js.map +1 -0
  48. package/dist/{esm/nextjs → nextjs}/index.d.ts +2 -2
  49. package/dist/nextjs/index.d.ts.map +1 -0
  50. package/dist/{commonjs/nextjs → nextjs}/index.js +1 -0
  51. package/dist/nextjs/index.js.map +1 -0
  52. package/dist/plugins/convex/client.d.ts.map +1 -0
  53. package/dist/{commonjs/plugins → plugins}/convex/client.js +1 -0
  54. package/dist/plugins/convex/client.js.map +1 -0
  55. package/dist/{commonjs/plugins → plugins}/convex/index.d.ts +22 -4
  56. package/dist/plugins/convex/index.d.ts.map +1 -0
  57. package/dist/{esm/plugins → plugins}/convex/index.js +2 -0
  58. package/dist/plugins/convex/index.js.map +1 -0
  59. package/dist/{commonjs/plugins → plugins}/cross-domain/client.d.ts +3 -3
  60. package/dist/plugins/cross-domain/client.d.ts.map +1 -0
  61. package/dist/{commonjs/plugins → plugins}/cross-domain/client.js +1 -0
  62. package/dist/plugins/cross-domain/client.js.map +1 -0
  63. package/dist/{commonjs/plugins → plugins}/cross-domain/index.d.ts +22 -5
  64. package/dist/plugins/cross-domain/index.d.ts.map +1 -0
  65. package/dist/{esm/plugins → plugins}/cross-domain/index.js +1 -0
  66. package/dist/plugins/cross-domain/index.js.map +1 -0
  67. package/dist/plugins/index.d.ts.map +1 -0
  68. package/dist/plugins/index.js.map +1 -0
  69. package/dist/{commonjs/react → react}/index.d.ts +4 -4
  70. package/dist/react/index.d.ts.map +1 -0
  71. package/dist/{commonjs/react → react}/index.js +9 -3
  72. package/dist/react/index.js.map +1 -0
  73. package/dist/{esm/react-start → react-start}/index.d.ts +2 -2
  74. package/dist/react-start/index.d.ts.map +1 -0
  75. package/dist/{commonjs/react-start → react-start}/index.js +3 -0
  76. package/dist/react-start/index.js.map +1 -0
  77. package/dist/{commonjs/utils → utils}/index.d.ts +2 -2
  78. package/dist/utils/index.d.ts.map +1 -0
  79. package/dist/{commonjs/utils → utils}/index.js +2 -0
  80. package/dist/utils/index.js.map +1 -0
  81. package/package.json +74 -124
  82. package/src/auth.ts +3 -3
  83. package/src/client/adapter.test.ts +2 -2
  84. package/src/client/adapter.ts +31 -23
  85. package/src/client/adapterUtils.ts +14 -14
  86. package/src/client/index.ts +40 -54
  87. package/src/component/_generated/api.ts +52 -0
  88. package/src/component/_generated/component.ts +2019 -0
  89. package/src/component/_generated/server.ts +161 -0
  90. package/src/component/adapterTest.ts +2 -2
  91. package/src/component/schema.ts +7 -15
  92. package/src/nextjs/index.ts +3 -2
  93. package/src/plugins/convex/client.ts +1 -1
  94. package/src/plugins/convex/index.ts +2 -1
  95. package/src/plugins/cross-domain/client.ts +3 -3
  96. package/src/plugins/cross-domain/index.ts +1 -2
  97. package/src/react/index.tsx +7 -6
  98. package/src/react-start/index.ts +6 -5
  99. package/src/test.ts +18 -0
  100. package/src/utils/index.ts +5 -5
  101. package/dist/commonjs/auth.d.ts.map +0 -1
  102. package/dist/commonjs/auth.js.map +0 -1
  103. package/dist/commonjs/client/adapter.d.ts +0 -15
  104. package/dist/commonjs/client/adapter.d.ts.map +0 -1
  105. package/dist/commonjs/client/adapter.js.map +0 -1
  106. package/dist/commonjs/client/adapterUtils.d.ts.map +0 -1
  107. package/dist/commonjs/client/adapterUtils.js +0 -437
  108. package/dist/commonjs/client/adapterUtils.js.map +0 -1
  109. package/dist/commonjs/client/createSchema.d.ts.map +0 -1
  110. package/dist/commonjs/client/createSchema.js.map +0 -1
  111. package/dist/commonjs/client/index.d.ts.map +0 -1
  112. package/dist/commonjs/client/index.js.map +0 -1
  113. package/dist/commonjs/client/plugins/index.d.ts.map +0 -1
  114. package/dist/commonjs/client/plugins/index.js.map +0 -1
  115. package/dist/commonjs/component/_generated/api.d.ts +0 -12
  116. package/dist/commonjs/component/_generated/api.d.ts.map +0 -1
  117. package/dist/commonjs/component/_generated/api.js +0 -22
  118. package/dist/commonjs/component/_generated/api.js.map +0 -1
  119. package/dist/commonjs/component/_generated/server.d.ts +0 -64
  120. package/dist/commonjs/component/_generated/server.d.ts.map +0 -1
  121. package/dist/commonjs/component/_generated/server.js.map +0 -1
  122. package/dist/commonjs/component/adapter.d.ts.map +0 -1
  123. package/dist/commonjs/component/adapter.js.map +0 -1
  124. package/dist/commonjs/component/adapterTest.d.ts.map +0 -1
  125. package/dist/commonjs/component/adapterTest.js.map +0 -1
  126. package/dist/commonjs/component/convex.config.d.ts.map +0 -1
  127. package/dist/commonjs/component/convex.config.js.map +0 -1
  128. package/dist/commonjs/component/schema.d.ts.map +0 -1
  129. package/dist/commonjs/component/schema.js +0 -147
  130. package/dist/commonjs/component/schema.js.map +0 -1
  131. package/dist/commonjs/nextjs/index.d.ts +0 -10
  132. package/dist/commonjs/nextjs/index.d.ts.map +0 -1
  133. package/dist/commonjs/nextjs/index.js.map +0 -1
  134. package/dist/commonjs/package.json +0 -3
  135. package/dist/commonjs/plugins/convex/client.d.ts.map +0 -1
  136. package/dist/commonjs/plugins/convex/client.js.map +0 -1
  137. package/dist/commonjs/plugins/convex/index.d.ts.map +0 -1
  138. package/dist/commonjs/plugins/convex/index.js +0 -261
  139. package/dist/commonjs/plugins/convex/index.js.map +0 -1
  140. package/dist/commonjs/plugins/cross-domain/client.d.ts.map +0 -1
  141. package/dist/commonjs/plugins/cross-domain/client.js.map +0 -1
  142. package/dist/commonjs/plugins/cross-domain/index.d.ts.map +0 -1
  143. package/dist/commonjs/plugins/cross-domain/index.js +0 -165
  144. package/dist/commonjs/plugins/cross-domain/index.js.map +0 -1
  145. package/dist/commonjs/plugins/index.d.ts.map +0 -1
  146. package/dist/commonjs/plugins/index.js.map +0 -1
  147. package/dist/commonjs/react/index.d.ts.map +0 -1
  148. package/dist/commonjs/react/index.js.map +0 -1
  149. package/dist/commonjs/react-start/index.d.ts +0 -43
  150. package/dist/commonjs/react-start/index.d.ts.map +0 -1
  151. package/dist/commonjs/react-start/index.js.map +0 -1
  152. package/dist/commonjs/utils/index.d.ts.map +0 -1
  153. package/dist/commonjs/utils/index.js.map +0 -1
  154. package/dist/esm/auth.d.ts +0 -4
  155. package/dist/esm/auth.d.ts.map +0 -1
  156. package/dist/esm/auth.js +0 -44
  157. package/dist/esm/auth.js.map +0 -1
  158. package/dist/esm/client/adapter.d.ts +0 -15
  159. package/dist/esm/client/adapter.d.ts.map +0 -1
  160. package/dist/esm/client/adapter.js +0 -264
  161. package/dist/esm/client/adapter.js.map +0 -1
  162. package/dist/esm/client/adapterUtils.d.ts +0 -66
  163. package/dist/esm/client/adapterUtils.d.ts.map +0 -1
  164. package/dist/esm/client/adapterUtils.js.map +0 -1
  165. package/dist/esm/client/createSchema.d.ts +0 -19
  166. package/dist/esm/client/createSchema.d.ts.map +0 -1
  167. package/dist/esm/client/createSchema.js +0 -108
  168. package/dist/esm/client/createSchema.js.map +0 -1
  169. package/dist/esm/client/index.d.ts +0 -279
  170. package/dist/esm/client/index.d.ts.map +0 -1
  171. package/dist/esm/client/index.js +0 -462
  172. package/dist/esm/client/index.js.map +0 -1
  173. package/dist/esm/client/plugins/index.d.ts +0 -3
  174. package/dist/esm/client/plugins/index.d.ts.map +0 -1
  175. package/dist/esm/client/plugins/index.js +0 -3
  176. package/dist/esm/client/plugins/index.js.map +0 -1
  177. package/dist/esm/component/_generated/api.d.ts +0 -12
  178. package/dist/esm/component/_generated/api.d.ts.map +0 -1
  179. package/dist/esm/component/_generated/api.js +0 -22
  180. package/dist/esm/component/_generated/api.js.map +0 -1
  181. package/dist/esm/component/_generated/server.d.ts +0 -64
  182. package/dist/esm/component/_generated/server.d.ts.map +0 -1
  183. package/dist/esm/component/_generated/server.js +0 -74
  184. package/dist/esm/component/_generated/server.js.map +0 -1
  185. package/dist/esm/component/adapter.d.ts +0 -130
  186. package/dist/esm/component/adapter.d.ts.map +0 -1
  187. package/dist/esm/component/adapter.js +0 -5
  188. package/dist/esm/component/adapter.js.map +0 -1
  189. package/dist/esm/component/adapterTest.d.ts +0 -17
  190. package/dist/esm/component/adapterTest.d.ts.map +0 -1
  191. package/dist/esm/component/adapterTest.js +0 -68
  192. package/dist/esm/component/adapterTest.js.map +0 -1
  193. package/dist/esm/component/convex.config.d.ts +0 -3
  194. package/dist/esm/component/convex.config.d.ts.map +0 -1
  195. package/dist/esm/component/convex.config.js +0 -4
  196. package/dist/esm/component/convex.config.js.map +0 -1
  197. package/dist/esm/component/schema.d.ts +0 -496
  198. package/dist/esm/component/schema.d.ts.map +0 -1
  199. package/dist/esm/component/schema.js.map +0 -1
  200. package/dist/esm/nextjs/index.d.ts.map +0 -1
  201. package/dist/esm/nextjs/index.js +0 -44
  202. package/dist/esm/nextjs/index.js.map +0 -1
  203. package/dist/esm/package.json +0 -3
  204. package/dist/esm/plugins/convex/client.d.ts +0 -6
  205. package/dist/esm/plugins/convex/client.d.ts.map +0 -1
  206. package/dist/esm/plugins/convex/client.js +0 -7
  207. package/dist/esm/plugins/convex/client.js.map +0 -1
  208. package/dist/esm/plugins/convex/index.d.ts +0 -291
  209. package/dist/esm/plugins/convex/index.d.ts.map +0 -1
  210. package/dist/esm/plugins/convex/index.js.map +0 -1
  211. package/dist/esm/plugins/cross-domain/client.d.ts +0 -132
  212. package/dist/esm/plugins/cross-domain/client.d.ts.map +0 -1
  213. package/dist/esm/plugins/cross-domain/client.js +0 -176
  214. package/dist/esm/plugins/cross-domain/client.js.map +0 -1
  215. package/dist/esm/plugins/cross-domain/index.d.ts +0 -89
  216. package/dist/esm/plugins/cross-domain/index.d.ts.map +0 -1
  217. package/dist/esm/plugins/cross-domain/index.js.map +0 -1
  218. package/dist/esm/plugins/index.d.ts +0 -3
  219. package/dist/esm/plugins/index.d.ts.map +0 -1
  220. package/dist/esm/plugins/index.js +0 -3
  221. package/dist/esm/plugins/index.js.map +0 -1
  222. package/dist/esm/react/index.d.ts +0 -30
  223. package/dist/esm/react/index.d.ts.map +0 -1
  224. package/dist/esm/react/index.js +0 -64
  225. package/dist/esm/react/index.js.map +0 -1
  226. package/dist/esm/react-start/index.d.ts.map +0 -1
  227. package/dist/esm/react-start/index.js +0 -122
  228. package/dist/esm/react-start/index.js.map +0 -1
  229. package/dist/esm/utils/index.d.ts +0 -14
  230. package/dist/esm/utils/index.d.ts.map +0 -1
  231. package/dist/esm/utils/index.js +0 -37
  232. package/dist/esm/utils/index.js.map +0 -1
  233. package/plugins/package.json +0 -5
  234. package/react/package.json +0 -5
  235. package/src/component/_generated/api.d.ts +0 -2145
  236. package/src/component/_generated/server.js +0 -90
  237. /package/dist/{commonjs/auth.d.ts → auth.d.ts} +0 -0
  238. /package/dist/{commonjs/client → client}/createSchema.d.ts +0 -0
  239. /package/dist/{commonjs/client → client}/createSchema.js +0 -0
  240. /package/dist/{commonjs/client → client}/plugins/index.d.ts +0 -0
  241. /package/dist/{commonjs/client → client}/plugins/index.js +0 -0
  242. /package/dist/{commonjs/component → component}/adapter.js +0 -0
  243. /package/dist/{commonjs/component → component}/adapterTest.js +0 -0
  244. /package/dist/{commonjs/component → component}/convex.config.d.ts +0 -0
  245. /package/dist/{commonjs/component → component}/convex.config.js +0 -0
  246. /package/dist/{commonjs/plugins → plugins}/convex/client.d.ts +0 -0
  247. /package/dist/{commonjs/plugins → plugins}/index.d.ts +0 -0
  248. /package/dist/{commonjs/plugins → plugins}/index.js +0 -0
  249. /package/src/component/_generated/{dataModel.d.ts → dataModel.ts} +0 -0
@@ -1,496 +0,0 @@
1
- export declare const tables: {
2
- user: import("convex/server").TableDefinition<import("convex/values").VObject<{
3
- userId?: string | null | undefined;
4
- image?: string | null | undefined;
5
- twoFactorEnabled?: boolean | null | undefined;
6
- isAnonymous?: boolean | null | undefined;
7
- username?: string | null | undefined;
8
- displayUsername?: string | null | undefined;
9
- phoneNumber?: string | null | undefined;
10
- phoneNumberVerified?: boolean | null | undefined;
11
- createdAt: number;
12
- updatedAt: number;
13
- email: string;
14
- emailVerified: boolean;
15
- name: string;
16
- }, {
17
- name: import("convex/values").VString<string, "required">;
18
- email: import("convex/values").VString<string, "required">;
19
- emailVerified: import("convex/values").VBoolean<boolean, "required">;
20
- image: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
21
- createdAt: import("convex/values").VFloat64<number, "required">;
22
- updatedAt: import("convex/values").VFloat64<number, "required">;
23
- twoFactorEnabled: import("convex/values").VUnion<boolean | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VBoolean<boolean, "required">], "optional", never>;
24
- isAnonymous: import("convex/values").VUnion<boolean | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VBoolean<boolean, "required">], "optional", never>;
25
- username: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
26
- displayUsername: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
27
- phoneNumber: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
28
- phoneNumberVerified: import("convex/values").VUnion<boolean | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VBoolean<boolean, "required">], "optional", never>;
29
- userId: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
30
- }, "required", "createdAt" | "userId" | "updatedAt" | "email" | "emailVerified" | "name" | "image" | "twoFactorEnabled" | "isAnonymous" | "username" | "displayUsername" | "phoneNumber" | "phoneNumberVerified">, {
31
- email_name: ["email", "name", "_creationTime"];
32
- name: ["name", "_creationTime"];
33
- userId: ["userId", "_creationTime"];
34
- username: ["username", "_creationTime"];
35
- phoneNumber: ["phoneNumber", "_creationTime"];
36
- }, {}, {}>;
37
- session: import("convex/server").TableDefinition<import("convex/values").VObject<{
38
- ipAddress?: string | null | undefined;
39
- userAgent?: string | null | undefined;
40
- token: string;
41
- createdAt: number;
42
- userId: string;
43
- updatedAt: number;
44
- expiresAt: number;
45
- }, {
46
- expiresAt: import("convex/values").VFloat64<number, "required">;
47
- token: import("convex/values").VString<string, "required">;
48
- createdAt: import("convex/values").VFloat64<number, "required">;
49
- updatedAt: import("convex/values").VFloat64<number, "required">;
50
- ipAddress: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
51
- userAgent: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
52
- userId: import("convex/values").VString<string, "required">;
53
- }, "required", "token" | "createdAt" | "userId" | "updatedAt" | "expiresAt" | "ipAddress" | "userAgent">, {
54
- expiresAt: ["expiresAt", "_creationTime"];
55
- expiresAt_userId: ["expiresAt", "userId", "_creationTime"];
56
- token: ["token", "_creationTime"];
57
- userId: ["userId", "_creationTime"];
58
- }, {}, {}>;
59
- account: import("convex/server").TableDefinition<import("convex/values").VObject<{
60
- password?: string | null | undefined;
61
- accessToken?: string | null | undefined;
62
- refreshToken?: string | null | undefined;
63
- idToken?: string | null | undefined;
64
- accessTokenExpiresAt?: number | null | undefined;
65
- refreshTokenExpiresAt?: number | null | undefined;
66
- scope?: string | null | undefined;
67
- createdAt: number;
68
- userId: string;
69
- updatedAt: number;
70
- accountId: string;
71
- providerId: string;
72
- }, {
73
- accountId: import("convex/values").VString<string, "required">;
74
- providerId: import("convex/values").VString<string, "required">;
75
- userId: import("convex/values").VString<string, "required">;
76
- accessToken: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
77
- refreshToken: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
78
- idToken: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
79
- accessTokenExpiresAt: import("convex/values").VUnion<number | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VFloat64<number, "required">], "optional", never>;
80
- refreshTokenExpiresAt: import("convex/values").VUnion<number | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VFloat64<number, "required">], "optional", never>;
81
- scope: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
82
- password: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
83
- createdAt: import("convex/values").VFloat64<number, "required">;
84
- updatedAt: import("convex/values").VFloat64<number, "required">;
85
- }, "required", "createdAt" | "userId" | "updatedAt" | "password" | "accountId" | "providerId" | "accessToken" | "refreshToken" | "idToken" | "accessTokenExpiresAt" | "refreshTokenExpiresAt" | "scope">, {
86
- accountId: ["accountId", "_creationTime"];
87
- accountId_providerId: ["accountId", "providerId", "_creationTime"];
88
- providerId_userId: ["providerId", "userId", "_creationTime"];
89
- userId: ["userId", "_creationTime"];
90
- }, {}, {}>;
91
- verification: import("convex/server").TableDefinition<import("convex/values").VObject<{
92
- value: string;
93
- createdAt: number;
94
- updatedAt: number;
95
- expiresAt: number;
96
- identifier: string;
97
- }, {
98
- identifier: import("convex/values").VString<string, "required">;
99
- value: import("convex/values").VString<string, "required">;
100
- expiresAt: import("convex/values").VFloat64<number, "required">;
101
- createdAt: import("convex/values").VFloat64<number, "required">;
102
- updatedAt: import("convex/values").VFloat64<number, "required">;
103
- }, "required", "value" | "createdAt" | "updatedAt" | "expiresAt" | "identifier">, {
104
- expiresAt: ["expiresAt", "_creationTime"];
105
- identifier: ["identifier", "_creationTime"];
106
- }, {}, {}>;
107
- twoFactor: import("convex/server").TableDefinition<import("convex/values").VObject<{
108
- userId: string;
109
- secret: string;
110
- backupCodes: string;
111
- }, {
112
- secret: import("convex/values").VString<string, "required">;
113
- backupCodes: import("convex/values").VString<string, "required">;
114
- userId: import("convex/values").VString<string, "required">;
115
- }, "required", "userId" | "secret" | "backupCodes">, {
116
- userId: ["userId", "_creationTime"];
117
- }, {}, {}>;
118
- passkey: import("convex/server").TableDefinition<import("convex/values").VObject<{
119
- createdAt?: number | null | undefined;
120
- name?: string | null | undefined;
121
- transports?: string | null | undefined;
122
- aaguid?: string | null | undefined;
123
- publicKey: string;
124
- userId: string;
125
- credentialID: string;
126
- counter: number;
127
- deviceType: string;
128
- backedUp: boolean;
129
- }, {
130
- name: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
131
- publicKey: import("convex/values").VString<string, "required">;
132
- userId: import("convex/values").VString<string, "required">;
133
- credentialID: import("convex/values").VString<string, "required">;
134
- counter: import("convex/values").VFloat64<number, "required">;
135
- deviceType: import("convex/values").VString<string, "required">;
136
- backedUp: import("convex/values").VBoolean<boolean, "required">;
137
- transports: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
138
- createdAt: import("convex/values").VUnion<number | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VFloat64<number, "required">], "optional", never>;
139
- aaguid: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
140
- }, "required", "publicKey" | "createdAt" | "userId" | "name" | "credentialID" | "counter" | "deviceType" | "backedUp" | "transports" | "aaguid">, {
141
- credentialID: ["credentialID", "_creationTime"];
142
- userId: ["userId", "_creationTime"];
143
- }, {}, {}>;
144
- oauthApplication: import("convex/server").TableDefinition<import("convex/values").VObject<{
145
- metadata?: string | null | undefined;
146
- createdAt?: number | null | undefined;
147
- userId?: string | null | undefined;
148
- updatedAt?: number | null | undefined;
149
- name?: string | null | undefined;
150
- type?: string | null | undefined;
151
- icon?: string | null | undefined;
152
- clientId?: string | null | undefined;
153
- clientSecret?: string | null | undefined;
154
- redirectURLs?: string | null | undefined;
155
- disabled?: boolean | null | undefined;
156
- }, {
157
- name: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
158
- icon: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
159
- metadata: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
160
- clientId: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
161
- clientSecret: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
162
- redirectURLs: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
163
- type: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
164
- disabled: import("convex/values").VUnion<boolean | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VBoolean<boolean, "required">], "optional", never>;
165
- userId: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
166
- createdAt: import("convex/values").VUnion<number | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VFloat64<number, "required">], "optional", never>;
167
- updatedAt: import("convex/values").VUnion<number | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VFloat64<number, "required">], "optional", never>;
168
- }, "required", "metadata" | "createdAt" | "userId" | "updatedAt" | "name" | "type" | "icon" | "clientId" | "clientSecret" | "redirectURLs" | "disabled">, {
169
- clientId: ["clientId", "_creationTime"];
170
- userId: ["userId", "_creationTime"];
171
- }, {}, {}>;
172
- oauthAccessToken: import("convex/server").TableDefinition<import("convex/values").VObject<{
173
- createdAt?: number | null | undefined;
174
- userId?: string | null | undefined;
175
- updatedAt?: number | null | undefined;
176
- accessToken?: string | null | undefined;
177
- refreshToken?: string | null | undefined;
178
- accessTokenExpiresAt?: number | null | undefined;
179
- refreshTokenExpiresAt?: number | null | undefined;
180
- clientId?: string | null | undefined;
181
- scopes?: string | null | undefined;
182
- }, {
183
- accessToken: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
184
- refreshToken: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
185
- accessTokenExpiresAt: import("convex/values").VUnion<number | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VFloat64<number, "required">], "optional", never>;
186
- refreshTokenExpiresAt: import("convex/values").VUnion<number | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VFloat64<number, "required">], "optional", never>;
187
- clientId: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
188
- userId: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
189
- scopes: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
190
- createdAt: import("convex/values").VUnion<number | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VFloat64<number, "required">], "optional", never>;
191
- updatedAt: import("convex/values").VUnion<number | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VFloat64<number, "required">], "optional", never>;
192
- }, "required", "createdAt" | "userId" | "updatedAt" | "accessToken" | "refreshToken" | "accessTokenExpiresAt" | "refreshTokenExpiresAt" | "clientId" | "scopes">, {
193
- accessToken: ["accessToken", "_creationTime"];
194
- refreshToken: ["refreshToken", "_creationTime"];
195
- clientId: ["clientId", "_creationTime"];
196
- userId: ["userId", "_creationTime"];
197
- }, {}, {}>;
198
- oauthConsent: import("convex/server").TableDefinition<import("convex/values").VObject<{
199
- createdAt?: number | null | undefined;
200
- userId?: string | null | undefined;
201
- updatedAt?: number | null | undefined;
202
- clientId?: string | null | undefined;
203
- scopes?: string | null | undefined;
204
- consentGiven?: boolean | null | undefined;
205
- }, {
206
- clientId: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
207
- userId: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
208
- scopes: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
209
- createdAt: import("convex/values").VUnion<number | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VFloat64<number, "required">], "optional", never>;
210
- updatedAt: import("convex/values").VUnion<number | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VFloat64<number, "required">], "optional", never>;
211
- consentGiven: import("convex/values").VUnion<boolean | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VBoolean<boolean, "required">], "optional", never>;
212
- }, "required", "createdAt" | "userId" | "updatedAt" | "clientId" | "scopes" | "consentGiven">, {
213
- clientId_userId: ["clientId", "userId", "_creationTime"];
214
- userId: ["userId", "_creationTime"];
215
- }, {}, {}>;
216
- jwks: import("convex/server").TableDefinition<import("convex/values").VObject<{
217
- publicKey: string;
218
- privateKey: string;
219
- createdAt: number;
220
- }, {
221
- publicKey: import("convex/values").VString<string, "required">;
222
- privateKey: import("convex/values").VString<string, "required">;
223
- createdAt: import("convex/values").VFloat64<number, "required">;
224
- }, "required", "publicKey" | "privateKey" | "createdAt">, {}, {}, {}>;
225
- rateLimit: import("convex/server").TableDefinition<import("convex/values").VObject<{
226
- count?: number | null | undefined;
227
- key?: string | null | undefined;
228
- lastRequest?: number | null | undefined;
229
- }, {
230
- key: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
231
- count: import("convex/values").VUnion<number | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VFloat64<number, "required">], "optional", never>;
232
- lastRequest: import("convex/values").VUnion<number | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VFloat64<number, "required">], "optional", never>;
233
- }, "required", "count" | "key" | "lastRequest">, {
234
- key: ["key", "_creationTime"];
235
- }, {}, {}>;
236
- ratelimit: import("convex/server").TableDefinition<import("convex/values").VObject<{
237
- count: number;
238
- key: string;
239
- lastRequest: number;
240
- }, {
241
- key: import("convex/values").VString<string, "required">;
242
- count: import("convex/values").VFloat64<number, "required">;
243
- lastRequest: import("convex/values").VFloat64<number, "required">;
244
- }, "required", "count" | "key" | "lastRequest">, {
245
- key: ["key", "_creationTime"];
246
- }, {}, {}>;
247
- };
248
- declare const schema: import("convex/server").SchemaDefinition<{
249
- user: import("convex/server").TableDefinition<import("convex/values").VObject<{
250
- userId?: string | null | undefined;
251
- image?: string | null | undefined;
252
- twoFactorEnabled?: boolean | null | undefined;
253
- isAnonymous?: boolean | null | undefined;
254
- username?: string | null | undefined;
255
- displayUsername?: string | null | undefined;
256
- phoneNumber?: string | null | undefined;
257
- phoneNumberVerified?: boolean | null | undefined;
258
- createdAt: number;
259
- updatedAt: number;
260
- email: string;
261
- emailVerified: boolean;
262
- name: string;
263
- }, {
264
- name: import("convex/values").VString<string, "required">;
265
- email: import("convex/values").VString<string, "required">;
266
- emailVerified: import("convex/values").VBoolean<boolean, "required">;
267
- image: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
268
- createdAt: import("convex/values").VFloat64<number, "required">;
269
- updatedAt: import("convex/values").VFloat64<number, "required">;
270
- twoFactorEnabled: import("convex/values").VUnion<boolean | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VBoolean<boolean, "required">], "optional", never>;
271
- isAnonymous: import("convex/values").VUnion<boolean | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VBoolean<boolean, "required">], "optional", never>;
272
- username: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
273
- displayUsername: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
274
- phoneNumber: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
275
- phoneNumberVerified: import("convex/values").VUnion<boolean | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VBoolean<boolean, "required">], "optional", never>;
276
- userId: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
277
- }, "required", "createdAt" | "userId" | "updatedAt" | "email" | "emailVerified" | "name" | "image" | "twoFactorEnabled" | "isAnonymous" | "username" | "displayUsername" | "phoneNumber" | "phoneNumberVerified">, {
278
- email_name: ["email", "name", "_creationTime"];
279
- name: ["name", "_creationTime"];
280
- userId: ["userId", "_creationTime"];
281
- username: ["username", "_creationTime"];
282
- phoneNumber: ["phoneNumber", "_creationTime"];
283
- }, {}, {}>;
284
- session: import("convex/server").TableDefinition<import("convex/values").VObject<{
285
- ipAddress?: string | null | undefined;
286
- userAgent?: string | null | undefined;
287
- token: string;
288
- createdAt: number;
289
- userId: string;
290
- updatedAt: number;
291
- expiresAt: number;
292
- }, {
293
- expiresAt: import("convex/values").VFloat64<number, "required">;
294
- token: import("convex/values").VString<string, "required">;
295
- createdAt: import("convex/values").VFloat64<number, "required">;
296
- updatedAt: import("convex/values").VFloat64<number, "required">;
297
- ipAddress: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
298
- userAgent: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
299
- userId: import("convex/values").VString<string, "required">;
300
- }, "required", "token" | "createdAt" | "userId" | "updatedAt" | "expiresAt" | "ipAddress" | "userAgent">, {
301
- expiresAt: ["expiresAt", "_creationTime"];
302
- expiresAt_userId: ["expiresAt", "userId", "_creationTime"];
303
- token: ["token", "_creationTime"];
304
- userId: ["userId", "_creationTime"];
305
- }, {}, {}>;
306
- account: import("convex/server").TableDefinition<import("convex/values").VObject<{
307
- password?: string | null | undefined;
308
- accessToken?: string | null | undefined;
309
- refreshToken?: string | null | undefined;
310
- idToken?: string | null | undefined;
311
- accessTokenExpiresAt?: number | null | undefined;
312
- refreshTokenExpiresAt?: number | null | undefined;
313
- scope?: string | null | undefined;
314
- createdAt: number;
315
- userId: string;
316
- updatedAt: number;
317
- accountId: string;
318
- providerId: string;
319
- }, {
320
- accountId: import("convex/values").VString<string, "required">;
321
- providerId: import("convex/values").VString<string, "required">;
322
- userId: import("convex/values").VString<string, "required">;
323
- accessToken: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
324
- refreshToken: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
325
- idToken: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
326
- accessTokenExpiresAt: import("convex/values").VUnion<number | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VFloat64<number, "required">], "optional", never>;
327
- refreshTokenExpiresAt: import("convex/values").VUnion<number | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VFloat64<number, "required">], "optional", never>;
328
- scope: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
329
- password: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
330
- createdAt: import("convex/values").VFloat64<number, "required">;
331
- updatedAt: import("convex/values").VFloat64<number, "required">;
332
- }, "required", "createdAt" | "userId" | "updatedAt" | "password" | "accountId" | "providerId" | "accessToken" | "refreshToken" | "idToken" | "accessTokenExpiresAt" | "refreshTokenExpiresAt" | "scope">, {
333
- accountId: ["accountId", "_creationTime"];
334
- accountId_providerId: ["accountId", "providerId", "_creationTime"];
335
- providerId_userId: ["providerId", "userId", "_creationTime"];
336
- userId: ["userId", "_creationTime"];
337
- }, {}, {}>;
338
- verification: import("convex/server").TableDefinition<import("convex/values").VObject<{
339
- value: string;
340
- createdAt: number;
341
- updatedAt: number;
342
- expiresAt: number;
343
- identifier: string;
344
- }, {
345
- identifier: import("convex/values").VString<string, "required">;
346
- value: import("convex/values").VString<string, "required">;
347
- expiresAt: import("convex/values").VFloat64<number, "required">;
348
- createdAt: import("convex/values").VFloat64<number, "required">;
349
- updatedAt: import("convex/values").VFloat64<number, "required">;
350
- }, "required", "value" | "createdAt" | "updatedAt" | "expiresAt" | "identifier">, {
351
- expiresAt: ["expiresAt", "_creationTime"];
352
- identifier: ["identifier", "_creationTime"];
353
- }, {}, {}>;
354
- twoFactor: import("convex/server").TableDefinition<import("convex/values").VObject<{
355
- userId: string;
356
- secret: string;
357
- backupCodes: string;
358
- }, {
359
- secret: import("convex/values").VString<string, "required">;
360
- backupCodes: import("convex/values").VString<string, "required">;
361
- userId: import("convex/values").VString<string, "required">;
362
- }, "required", "userId" | "secret" | "backupCodes">, {
363
- userId: ["userId", "_creationTime"];
364
- }, {}, {}>;
365
- passkey: import("convex/server").TableDefinition<import("convex/values").VObject<{
366
- createdAt?: number | null | undefined;
367
- name?: string | null | undefined;
368
- transports?: string | null | undefined;
369
- aaguid?: string | null | undefined;
370
- publicKey: string;
371
- userId: string;
372
- credentialID: string;
373
- counter: number;
374
- deviceType: string;
375
- backedUp: boolean;
376
- }, {
377
- name: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
378
- publicKey: import("convex/values").VString<string, "required">;
379
- userId: import("convex/values").VString<string, "required">;
380
- credentialID: import("convex/values").VString<string, "required">;
381
- counter: import("convex/values").VFloat64<number, "required">;
382
- deviceType: import("convex/values").VString<string, "required">;
383
- backedUp: import("convex/values").VBoolean<boolean, "required">;
384
- transports: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
385
- createdAt: import("convex/values").VUnion<number | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VFloat64<number, "required">], "optional", never>;
386
- aaguid: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
387
- }, "required", "publicKey" | "createdAt" | "userId" | "name" | "credentialID" | "counter" | "deviceType" | "backedUp" | "transports" | "aaguid">, {
388
- credentialID: ["credentialID", "_creationTime"];
389
- userId: ["userId", "_creationTime"];
390
- }, {}, {}>;
391
- oauthApplication: import("convex/server").TableDefinition<import("convex/values").VObject<{
392
- metadata?: string | null | undefined;
393
- createdAt?: number | null | undefined;
394
- userId?: string | null | undefined;
395
- updatedAt?: number | null | undefined;
396
- name?: string | null | undefined;
397
- type?: string | null | undefined;
398
- icon?: string | null | undefined;
399
- clientId?: string | null | undefined;
400
- clientSecret?: string | null | undefined;
401
- redirectURLs?: string | null | undefined;
402
- disabled?: boolean | null | undefined;
403
- }, {
404
- name: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
405
- icon: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
406
- metadata: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
407
- clientId: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
408
- clientSecret: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
409
- redirectURLs: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
410
- type: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
411
- disabled: import("convex/values").VUnion<boolean | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VBoolean<boolean, "required">], "optional", never>;
412
- userId: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
413
- createdAt: import("convex/values").VUnion<number | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VFloat64<number, "required">], "optional", never>;
414
- updatedAt: import("convex/values").VUnion<number | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VFloat64<number, "required">], "optional", never>;
415
- }, "required", "metadata" | "createdAt" | "userId" | "updatedAt" | "name" | "type" | "icon" | "clientId" | "clientSecret" | "redirectURLs" | "disabled">, {
416
- clientId: ["clientId", "_creationTime"];
417
- userId: ["userId", "_creationTime"];
418
- }, {}, {}>;
419
- oauthAccessToken: import("convex/server").TableDefinition<import("convex/values").VObject<{
420
- createdAt?: number | null | undefined;
421
- userId?: string | null | undefined;
422
- updatedAt?: number | null | undefined;
423
- accessToken?: string | null | undefined;
424
- refreshToken?: string | null | undefined;
425
- accessTokenExpiresAt?: number | null | undefined;
426
- refreshTokenExpiresAt?: number | null | undefined;
427
- clientId?: string | null | undefined;
428
- scopes?: string | null | undefined;
429
- }, {
430
- accessToken: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
431
- refreshToken: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
432
- accessTokenExpiresAt: import("convex/values").VUnion<number | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VFloat64<number, "required">], "optional", never>;
433
- refreshTokenExpiresAt: import("convex/values").VUnion<number | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VFloat64<number, "required">], "optional", never>;
434
- clientId: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
435
- userId: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
436
- scopes: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
437
- createdAt: import("convex/values").VUnion<number | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VFloat64<number, "required">], "optional", never>;
438
- updatedAt: import("convex/values").VUnion<number | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VFloat64<number, "required">], "optional", never>;
439
- }, "required", "createdAt" | "userId" | "updatedAt" | "accessToken" | "refreshToken" | "accessTokenExpiresAt" | "refreshTokenExpiresAt" | "clientId" | "scopes">, {
440
- accessToken: ["accessToken", "_creationTime"];
441
- refreshToken: ["refreshToken", "_creationTime"];
442
- clientId: ["clientId", "_creationTime"];
443
- userId: ["userId", "_creationTime"];
444
- }, {}, {}>;
445
- oauthConsent: import("convex/server").TableDefinition<import("convex/values").VObject<{
446
- createdAt?: number | null | undefined;
447
- userId?: string | null | undefined;
448
- updatedAt?: number | null | undefined;
449
- clientId?: string | null | undefined;
450
- scopes?: string | null | undefined;
451
- consentGiven?: boolean | null | undefined;
452
- }, {
453
- clientId: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
454
- userId: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
455
- scopes: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
456
- createdAt: import("convex/values").VUnion<number | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VFloat64<number, "required">], "optional", never>;
457
- updatedAt: import("convex/values").VUnion<number | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VFloat64<number, "required">], "optional", never>;
458
- consentGiven: import("convex/values").VUnion<boolean | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VBoolean<boolean, "required">], "optional", never>;
459
- }, "required", "createdAt" | "userId" | "updatedAt" | "clientId" | "scopes" | "consentGiven">, {
460
- clientId_userId: ["clientId", "userId", "_creationTime"];
461
- userId: ["userId", "_creationTime"];
462
- }, {}, {}>;
463
- jwks: import("convex/server").TableDefinition<import("convex/values").VObject<{
464
- publicKey: string;
465
- privateKey: string;
466
- createdAt: number;
467
- }, {
468
- publicKey: import("convex/values").VString<string, "required">;
469
- privateKey: import("convex/values").VString<string, "required">;
470
- createdAt: import("convex/values").VFloat64<number, "required">;
471
- }, "required", "publicKey" | "privateKey" | "createdAt">, {}, {}, {}>;
472
- rateLimit: import("convex/server").TableDefinition<import("convex/values").VObject<{
473
- count?: number | null | undefined;
474
- key?: string | null | undefined;
475
- lastRequest?: number | null | undefined;
476
- }, {
477
- key: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
478
- count: import("convex/values").VUnion<number | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VFloat64<number, "required">], "optional", never>;
479
- lastRequest: import("convex/values").VUnion<number | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VFloat64<number, "required">], "optional", never>;
480
- }, "required", "count" | "key" | "lastRequest">, {
481
- key: ["key", "_creationTime"];
482
- }, {}, {}>;
483
- ratelimit: import("convex/server").TableDefinition<import("convex/values").VObject<{
484
- count: number;
485
- key: string;
486
- lastRequest: number;
487
- }, {
488
- key: import("convex/values").VString<string, "required">;
489
- count: import("convex/values").VFloat64<number, "required">;
490
- lastRequest: import("convex/values").VFloat64<number, "required">;
491
- }, "required", "count" | "key" | "lastRequest">, {
492
- key: ["key", "_creationTime"];
493
- }, {}, {}>;
494
- }, true>;
495
- export default schema;
496
- //# sourceMappingURL=schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/component/schema.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0IlB,CAAC;AAEF,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAAuB,CAAC;AAEpC,eAAe,MAAM,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/component/schema.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,iCAAiC;AACjC,sEAAsE;AAEtE,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC1D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AC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;QAChD,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;KACvD,CAAC;SACC,KAAK,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,CAAC;IACxB,SAAS,EAAE,WAAW,CAAC;QACrB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;QACf,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;QACjB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;KACxB,CAAC;SACC,KAAK,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC;AAEpC,eAAe,MAAM,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/nextjs/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAiB,MAAM,WAAW,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEjD,eAAO,MAAM,QAAQ,GAAU,SAAS,SAAS,gBAAgB,EAC/D,YAAY,UAAU,CAAC,SAAS,CAAC,gCA8BlC,CAAC;AAeF,eAAO,MAAM,aAAa,GAAI,OAAO;IAAE,aAAa,CAAC,EAAE,MAAM,CAAA;CAAE;mBAC9C,OAAO;oBACN,OAAO;CACvB,CAAC"}
@@ -1,44 +0,0 @@
1
- import { createCookieGetter } from "better-auth/cookies";
2
- import { JWT_COOKIE_NAME } from "../plugins/convex/index.js";
3
- import { getStaticAuth } from "../client/index.js";
4
- export const getToken = async (createAuth) => {
5
- const options = getStaticAuth(createAuth).options;
6
- const { cookies } = await import("next/headers");
7
- const cookieStore = await cookies();
8
- const createCookie = createCookieGetter(options);
9
- const cookie = createCookie(JWT_COOKIE_NAME);
10
- const tokenCookie = cookieStore.get(cookie.name);
11
- // Warn if there's a secure cookie mismatch between Convex and Next.js
12
- if (!tokenCookie?.value) {
13
- const isSecure = cookie.name.startsWith("__Secure-");
14
- const insecureCookieName = cookie.name.replace("__Secure-", "");
15
- const insecureCookie = cookieStore.get(insecureCookieName);
16
- const secureCookieName = isSecure
17
- ? cookie.name
18
- : `__Secure-${insecureCookieName}`;
19
- const secureCookie = cookieStore.get(secureCookieName);
20
- if (isSecure && insecureCookie) {
21
- console.warn(`Looking for secure cookie ${cookie.name} but found insecure cookie ${insecureCookie.name}`);
22
- }
23
- if (!isSecure && secureCookie) {
24
- console.warn(`Looking for insecure cookie ${cookie.name} but found secure cookie ${secureCookie.name}`);
25
- }
26
- }
27
- return tokenCookie?.value;
28
- };
29
- const handler = (request, opts) => {
30
- const requestUrl = new URL(request.url);
31
- const convexSiteUrl = opts?.convexSiteUrl ?? process.env.NEXT_PUBLIC_CONVEX_SITE_URL;
32
- if (!convexSiteUrl) {
33
- throw new Error("NEXT_PUBLIC_CONVEX_SITE_URL is not set");
34
- }
35
- const nextUrl = `${convexSiteUrl}${requestUrl.pathname}${requestUrl.search}`;
36
- const newRequest = new Request(nextUrl, request);
37
- newRequest.headers.set("accept-encoding", "application/json");
38
- return fetch(newRequest, { method: request.method, redirect: "manual" });
39
- };
40
- export const nextJsHandler = (opts) => ({
41
- GET: (request) => handler(request, opts),
42
- POST: (request) => handler(request, opts),
43
- });
44
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/nextjs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAc,aAAa,EAAE,MAAM,WAAW,CAAC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AC1F,CAAC;QACJ,CAAC;IACH,CAAC;IACD,OAAO,WAAW,EAAE,KAAK,CAAC;AAC5B,CAAC,CAAC;AAEF,MAAM,OAAO,GAAG,CAAC,OAAgB,EAAE,IAAiC,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACxC,MAAM,aAAa,GACjB,IAAI,EAAE,aAAa,IAAI,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC;IACjE,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;IAC5D,CAAC;IACD,MAAM,OAAO,GAAG,GAAG,aAAa,GAAG,UAAU,CAAC,QAAQ,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC;IAC7E,MAAM,UAAU,GAAG,IAAI,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IACjD,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,CAAC;IAC9D,OAAO,KAAK,CAAC,UAAU,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,CAAC;AAC3E,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,IAAiC,EAAE,EAAE,CAAC,CAAC;IACnE,GAAG,EAAE,CAAC,OAAgB,EAAE,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC;IACjD,IAAI,EAAE,CAAC,OAAgB,EAAE,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC;CACnD,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- {
2
- "type": "module"
3
- }
@@ -1,6 +0,0 @@
1
- import { convex } from "./index.js";
2
- export declare const convexClient: () => {
3
- id: "convex";
4
- $InferServerPlugin: ReturnType<typeof convex>;
5
- };
6
- //# sourceMappingURL=client.d.ts.map