@estifanos-sh/convex-auth 0.0.2 → 0.0.3

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 (298) hide show
  1. package/README.md +5 -5
  2. package/dist/_generated/component.d.ts +130 -61
  3. package/dist/_generated/component.d.ts.map +1 -1
  4. package/dist/_generated/dataModel.d.ts +28 -0
  5. package/dist/_generated/dataModel.d.ts.map +1 -0
  6. package/dist/bin.js +1 -2
  7. package/dist/browser/index.d.ts +2 -2
  8. package/dist/browser/index.d.ts.map +1 -1
  9. package/dist/browser/index.js.map +1 -1
  10. package/dist/client/core/types.d.ts +40 -79
  11. package/dist/client/core/types.d.ts.map +1 -1
  12. package/dist/client/core/types.js.map +1 -1
  13. package/dist/client/errors.d.ts +15 -0
  14. package/dist/client/errors.d.ts.map +1 -0
  15. package/dist/client/errors.js +8 -1
  16. package/dist/client/errors.js.map +1 -1
  17. package/dist/client/index.d.ts +6 -3
  18. package/dist/client/index.d.ts.map +1 -1
  19. package/dist/client/index.js +3 -2
  20. package/dist/client/index.js.map +1 -1
  21. package/dist/component/_generated/component.d.ts +130 -61
  22. package/dist/component/_generated/component.d.ts.map +1 -1
  23. package/dist/component/_generated/dataModel.d.ts +1 -1
  24. package/dist/component/_generated/server.d.ts +1 -1
  25. package/dist/component/account.d.ts +43 -37
  26. package/dist/component/account.d.ts.map +1 -1
  27. package/dist/component/account.js +14 -16
  28. package/dist/component/account.js.map +1 -1
  29. package/dist/component/connection/audit.d.ts +29 -29
  30. package/dist/component/connection/audit.d.ts.map +1 -1
  31. package/dist/component/connection/audit.js +2 -1
  32. package/dist/component/connection/audit.js.map +1 -1
  33. package/dist/component/connection/cache.d.ts +6 -6
  34. package/dist/component/connection/domain/verification.d.ts +19 -19
  35. package/dist/component/connection/domain.d.ts +20 -20
  36. package/dist/component/connection/saml/assertion.d.ts +4 -4
  37. package/dist/component/connection/saml/request.d.ts +9 -9
  38. package/dist/component/connection/saml/request.d.ts.map +1 -1
  39. package/dist/component/connection/scim/config.d.ts +13 -13
  40. package/dist/component/connection/scim/identity.d.ts +102 -59
  41. package/dist/component/connection/scim/identity.d.ts.map +1 -1
  42. package/dist/component/connection/scim/identity.js +357 -56
  43. package/dist/component/connection/scim/identity.js.map +1 -1
  44. package/dist/component/connection/secret.d.ts +15 -15
  45. package/dist/component/connection/secret.d.ts.map +1 -1
  46. package/dist/component/connection/webhook/delivery.d.ts +69 -53
  47. package/dist/component/connection/webhook/delivery.d.ts.map +1 -1
  48. package/dist/component/connection/webhook/delivery.js +127 -170
  49. package/dist/component/connection/webhook/delivery.js.map +1 -1
  50. package/dist/component/connection/webhook/endpoint.d.ts +21 -21
  51. package/dist/component/connection/webhook/events.d.ts +26 -0
  52. package/dist/component/connection/webhook/events.d.ts.map +1 -0
  53. package/dist/component/connection/webhook/events.js +39 -0
  54. package/dist/component/connection/webhook/events.js.map +1 -0
  55. package/dist/component/connection.d.ts +38 -38
  56. package/dist/component/connection.d.ts.map +1 -1
  57. package/dist/component/context.d.ts +115 -0
  58. package/dist/component/context.d.ts.map +1 -0
  59. package/dist/component/context.js +50 -0
  60. package/dist/component/context.js.map +1 -0
  61. package/dist/component/convex.config.d.ts +2 -2
  62. package/dist/component/crons.d.ts +2 -2
  63. package/dist/component/event.d.ts +134 -138
  64. package/dist/component/event.d.ts.map +1 -1
  65. package/dist/component/event.js +88 -117
  66. package/dist/component/event.js.map +1 -1
  67. package/dist/component/eventstream.d.ts +30 -0
  68. package/dist/component/eventstream.d.ts.map +1 -0
  69. package/dist/component/eventstream.js +51 -0
  70. package/dist/component/eventstream.js.map +1 -0
  71. package/dist/component/factor/device.d.ts +25 -24
  72. package/dist/component/factor/device.d.ts.map +1 -1
  73. package/dist/component/factor/device.js +5 -2
  74. package/dist/component/factor/device.js.map +1 -1
  75. package/dist/component/factor/passkey.d.ts +84 -75
  76. package/dist/component/factor/passkey.d.ts.map +1 -1
  77. package/dist/component/factor/passkey.js +6 -6
  78. package/dist/component/factor/passkey.js.map +1 -1
  79. package/dist/component/factor/totp.d.ts +54 -49
  80. package/dist/component/factor/totp.d.ts.map +1 -1
  81. package/dist/component/factor/totp.js +3 -3
  82. package/dist/component/factor/totp.js.map +1 -1
  83. package/dist/component/group/active.d.ts +326 -22
  84. package/dist/component/group/active.d.ts.map +1 -1
  85. package/dist/component/group/active.js +21 -11
  86. package/dist/component/group/active.js.map +1 -1
  87. package/dist/component/group/invite.d.ts +28 -28
  88. package/dist/component/group/invite.d.ts.map +1 -1
  89. package/dist/component/group/member.d.ts +34 -34
  90. package/dist/component/group.d.ts +47 -62
  91. package/dist/component/group.d.ts.map +1 -1
  92. package/dist/component/http.d.ts +2 -2
  93. package/dist/component/limits.d.ts +4 -4
  94. package/dist/component/maintenance.d.ts +2 -2
  95. package/dist/component/model.d.ts +1362 -1027
  96. package/dist/component/model.d.ts.map +1 -1
  97. package/dist/component/model.js +23 -6
  98. package/dist/component/model.js.map +1 -1
  99. package/dist/component/modules.d.ts +8 -2
  100. package/dist/component/modules.d.ts.map +1 -1
  101. package/dist/component/modules.js +3 -0
  102. package/dist/component/modules.js.map +1 -1
  103. package/dist/component/oauth/client.d.ts +20 -20
  104. package/dist/component/oauth/code.d.ts +14 -14
  105. package/dist/component/oauth/refresh.d.ts +19 -19
  106. package/dist/component/schema.d.ts +1100 -611
  107. package/dist/component/schema.d.ts.map +1 -1
  108. package/dist/component/schema.js +17 -4
  109. package/dist/component/schema.js.map +1 -1
  110. package/dist/component/session.d.ts +72 -32
  111. package/dist/component/session.d.ts.map +1 -1
  112. package/dist/component/session.js +120 -32
  113. package/dist/component/session.js.map +1 -1
  114. package/dist/component/token/continuation.d.ts +40 -18
  115. package/dist/component/token/continuation.d.ts.map +1 -1
  116. package/dist/component/token/continuation.js +57 -11
  117. package/dist/component/token/continuation.js.map +1 -1
  118. package/dist/component/token/pkce.d.ts +22 -22
  119. package/dist/component/token/pkce.d.ts.map +1 -1
  120. package/dist/component/token/refresh.d.ts +39 -35
  121. package/dist/component/token/refresh.d.ts.map +1 -1
  122. package/dist/component/token/refresh.js +11 -6
  123. package/dist/component/token/refresh.js.map +1 -1
  124. package/dist/component/token/verification.d.ts +36 -32
  125. package/dist/component/token/verification.d.ts.map +1 -1
  126. package/dist/component/token/verification.js +3 -3
  127. package/dist/component/token/verification.js.map +1 -1
  128. package/dist/component/user/email.d.ts +21 -21
  129. package/dist/component/user/key.d.ts +35 -35
  130. package/dist/component/user/key.d.ts.map +1 -1
  131. package/dist/component/user.d.ts +51 -45
  132. package/dist/component/user.d.ts.map +1 -1
  133. package/dist/core/index.d.ts +54 -90
  134. package/dist/core/index.d.ts.map +1 -1
  135. package/dist/core/index.js +1 -4
  136. package/dist/core/index.js.map +1 -1
  137. package/dist/expo/index.d.ts +3 -3
  138. package/dist/expo/index.d.ts.map +1 -1
  139. package/dist/expo/index.js.map +1 -1
  140. package/dist/model.js.map +1 -1
  141. package/dist/providers/anonymous.d.ts +11 -5
  142. package/dist/providers/anonymous.d.ts.map +1 -1
  143. package/dist/providers/anonymous.js +4 -1
  144. package/dist/providers/anonymous.js.map +1 -1
  145. package/dist/providers/apple.d.ts +1 -1
  146. package/dist/providers/credentials.d.ts +21 -13
  147. package/dist/providers/credentials.d.ts.map +1 -1
  148. package/dist/providers/credentials.js +2 -0
  149. package/dist/providers/credentials.js.map +1 -1
  150. package/dist/providers/custom.d.ts +3 -3
  151. package/dist/providers/custom.d.ts.map +1 -1
  152. package/dist/providers/custom.js.map +1 -1
  153. package/dist/providers/email.d.ts +3 -3
  154. package/dist/providers/email.d.ts.map +1 -1
  155. package/dist/providers/email.js.map +1 -1
  156. package/dist/providers/github.d.ts +1 -1
  157. package/dist/providers/google.d.ts +1 -1
  158. package/dist/providers/microsoft.d.ts +1 -1
  159. package/dist/providers/password.d.ts +103 -8
  160. package/dist/providers/password.d.ts.map +1 -1
  161. package/dist/providers/password.js +71 -26
  162. package/dist/providers/password.js.map +1 -1
  163. package/dist/providers/phone.d.ts +4 -3
  164. package/dist/providers/phone.d.ts.map +1 -1
  165. package/dist/providers/phone.js.map +1 -1
  166. package/dist/react/index.d.ts +40 -41
  167. package/dist/react/index.d.ts.map +1 -1
  168. package/dist/react/index.js +27 -52
  169. package/dist/react/index.js.map +1 -1
  170. package/dist/server/auth.d.ts +157 -117
  171. package/dist/server/auth.d.ts.map +1 -1
  172. package/dist/server/auth.js +41 -22
  173. package/dist/server/auth.js.map +1 -1
  174. package/dist/server/component/factor/db.js +4 -4
  175. package/dist/server/component/factor/db.js.map +1 -1
  176. package/dist/server/config.d.ts +2 -1
  177. package/dist/server/connection/domain.d.ts +4 -66
  178. package/dist/server/connection/domain.d.ts.map +1 -1
  179. package/dist/server/connection/domain.js +22 -4
  180. package/dist/server/connection/domain.js.map +1 -1
  181. package/dist/server/connection/group/service.js +6 -4
  182. package/dist/server/connection/group/service.js.map +1 -1
  183. package/dist/server/connection/http.js +94 -261
  184. package/dist/server/connection/http.js.map +1 -1
  185. package/dist/server/connection/oidc.js +8 -17
  186. package/dist/server/connection/oidc.js.map +1 -1
  187. package/dist/server/connection/policy/domain.js +4 -1
  188. package/dist/server/connection/policy/domain.js.map +1 -1
  189. package/dist/server/connection/policy.js +14 -13
  190. package/dist/server/connection/policy.js.map +1 -1
  191. package/dist/server/connection/provision.js +5 -19
  192. package/dist/server/connection/provision.js.map +1 -1
  193. package/dist/server/connection/webhook.js +4 -36
  194. package/dist/server/connection/webhook.js.map +1 -1
  195. package/dist/server/context.d.ts +2 -2
  196. package/dist/server/context.d.ts.map +1 -1
  197. package/dist/server/context.js +35 -24
  198. package/dist/server/context.js.map +1 -1
  199. package/dist/server/contract.d.ts.map +1 -1
  200. package/dist/server/contract.js +6 -14
  201. package/dist/server/contract.js.map +1 -1
  202. package/dist/server/core.js +6 -0
  203. package/dist/server/core.js.map +1 -1
  204. package/dist/server/cors.d.ts +2 -2
  205. package/dist/server/cors.d.ts.map +1 -1
  206. package/dist/server/crypto.js.map +1 -1
  207. package/dist/server/db.js +2 -1
  208. package/dist/server/db.js.map +1 -1
  209. package/dist/server/domains/context.js +34 -0
  210. package/dist/server/domains/context.js.map +1 -0
  211. package/dist/server/domains/factor.d.ts +3 -2
  212. package/dist/server/domains/factor.d.ts.map +1 -1
  213. package/dist/server/domains/factor.js.map +1 -1
  214. package/dist/server/domains/group.js.map +1 -1
  215. package/dist/server/domains/invite.js.map +1 -1
  216. package/dist/server/domains/key.js.map +1 -1
  217. package/dist/server/domains/member.js.map +1 -1
  218. package/dist/server/domains/session.js.map +1 -1
  219. package/dist/server/domains/user.js.map +1 -1
  220. package/dist/server/env.js +2 -22
  221. package/dist/server/env.js.map +1 -1
  222. package/dist/server/events.d.ts +0 -1
  223. package/dist/server/events.d.ts.map +1 -1
  224. package/dist/server/events.js +6 -6
  225. package/dist/server/events.js.map +1 -1
  226. package/dist/server/http.d.ts +1 -0
  227. package/dist/server/http.d.ts.map +1 -1
  228. package/dist/server/http.js +4 -4
  229. package/dist/server/http.js.map +1 -1
  230. package/dist/server/identity/claims.js +1 -1
  231. package/dist/server/identity/convex.d.ts +2 -0
  232. package/dist/server/identity/convex.d.ts.map +1 -1
  233. package/dist/server/index.d.ts +2 -3
  234. package/dist/server/index.js +1 -2
  235. package/dist/server/limits.js +21 -1
  236. package/dist/server/limits.js.map +1 -1
  237. package/dist/server/mutations/credentials/signin.js +6 -3
  238. package/dist/server/mutations/credentials/signin.js.map +1 -1
  239. package/dist/server/mutations/invalidate.js +5 -10
  240. package/dist/server/mutations/invalidate.js.map +1 -1
  241. package/dist/server/mutations/oauth.js +1 -1
  242. package/dist/server/mutations/oauth.js.map +1 -1
  243. package/dist/server/mutations/retrieve.js +4 -1
  244. package/dist/server/mutations/retrieve.js.map +1 -1
  245. package/dist/server/mutations/signin.js +2 -2
  246. package/dist/server/mutations/signin.js.map +1 -1
  247. package/dist/server/mutations/verify.js +4 -3
  248. package/dist/server/mutations/verify.js.map +1 -1
  249. package/dist/server/oauth/factory.js.map +1 -1
  250. package/dist/server/runtime.d.ts +107 -127
  251. package/dist/server/runtime.d.ts.map +1 -1
  252. package/dist/server/runtime.js +43 -28
  253. package/dist/server/runtime.js.map +1 -1
  254. package/dist/server/session/lifecycle.d.ts.map +1 -1
  255. package/dist/server/session/lifecycle.js +18 -3
  256. package/dist/server/session/lifecycle.js.map +1 -1
  257. package/dist/server/signin/flow.js +1 -1
  258. package/dist/server/signin/flow.js.map +1 -1
  259. package/dist/server/tokens.js +1 -0
  260. package/dist/server/tokens.js.map +1 -1
  261. package/dist/server/totp.js +3 -3
  262. package/dist/server/totp.js.map +1 -1
  263. package/dist/server/types.d.ts +63 -43
  264. package/dist/server/types.d.ts.map +1 -1
  265. package/dist/server/user/account.js +0 -1
  266. package/dist/server/user/account.js.map +1 -1
  267. package/dist/server/validators.d.ts +874 -917
  268. package/dist/server/validators.d.ts.map +1 -1
  269. package/dist/server/validators.js +33 -32
  270. package/dist/server/validators.js.map +1 -1
  271. package/dist/server/webauthn.js +4 -4
  272. package/dist/server/webauthn.js.map +1 -1
  273. package/dist/shared/brand.d.ts +3 -7
  274. package/dist/shared/brand.d.ts.map +1 -1
  275. package/dist/shared/params.d.ts +78 -0
  276. package/dist/shared/params.d.ts.map +1 -0
  277. package/dist/shared/results.d.ts +7 -1
  278. package/dist/shared/results.d.ts.map +1 -1
  279. package/dist/svelte/context.svelte.d.ts +23 -12
  280. package/dist/svelte/context.svelte.d.ts.map +1 -1
  281. package/dist/svelte/context.svelte.js +20 -13
  282. package/dist/svelte/index.d.ts +1 -4
  283. package/dist/svelte/index.d.ts.map +1 -1
  284. package/dist/svelte/index.js +1 -4
  285. package/dist/test.d.ts +1105 -611
  286. package/dist/test.d.ts.map +1 -1
  287. package/package.json +2 -1
  288. package/dist/server/env.d.ts +0 -28
  289. package/dist/server/env.d.ts.map +0 -1
  290. package/dist/svelte/AuthLoading.svelte +0 -13
  291. package/dist/svelte/AuthLoading.svelte.d.ts +0 -8
  292. package/dist/svelte/AuthLoading.svelte.d.ts.map +0 -1
  293. package/dist/svelte/SignedIn.svelte +0 -14
  294. package/dist/svelte/SignedIn.svelte.d.ts +0 -8
  295. package/dist/svelte/SignedIn.svelte.d.ts.map +0 -1
  296. package/dist/svelte/SignedOut.svelte +0 -13
  297. package/dist/svelte/SignedOut.svelte.d.ts +0 -8
  298. package/dist/svelte/SignedOut.svelte.d.ts.map +0 -1
package/dist/test.d.ts CHANGED
@@ -1,9 +1,9 @@
1
+ import { schema_d_exports } from "./component/schema.js";
2
+ import { dataModel_d_exports } from "./component/_generated/dataModel.js";
1
3
  import { component_d_exports } from "./component/_generated/component.js";
2
4
  import { convex_config_d_exports } from "./component/convex.config.js";
3
5
  import { model_d_exports } from "./component/model.js";
4
- import { schema_d_exports } from "./component/schema.js";
5
6
  import { index_d_exports } from "./component/index.js";
6
- import { dataModel_d_exports } from "./component/_generated/dataModel.js";
7
7
  import { session_d_exports } from "./component/session.js";
8
8
  import { account_d_exports } from "./component/account.js";
9
9
  import { connection_d_exports } from "./component/connection.js";
@@ -32,6 +32,7 @@ import { member_d_exports } from "./component/group/member.js";
32
32
  import { http_d_exports } from "./component/http.js";
33
33
  import { limits_d_exports } from "./component/limits.js";
34
34
  import { maintenance_d_exports } from "./component/maintenance.js";
35
+ import { eventstream_d_exports } from "./component/eventstream.js";
35
36
  import { key_d_exports } from "./component/user/key.js";
36
37
  import { refresh_d_exports } from "./component/token/refresh.js";
37
38
  import { continuation_d_exports } from "./component/token/continuation.js";
@@ -39,13 +40,16 @@ import { verification_d_exports as verification_d_exports$1 } from "./component/
39
40
  import { pkce_d_exports } from "./component/token/pkce.js";
40
41
  import { user_d_exports } from "./component/user.js";
41
42
  import { email_d_exports } from "./component/user/email.js";
43
+ import { context_d_exports } from "./component/context.js";
44
+ import { events_d_exports } from "./component/connection/webhook/events.js";
42
45
  import { client_d_exports } from "./component/oauth/client.js";
43
46
  import { code_d_exports } from "./component/oauth/code.js";
44
47
  import { refresh_d_exports as refresh_d_exports$1 } from "./component/oauth/refresh.js";
45
48
  import { api_d_exports } from "./component/_generated/api.js";
46
- import * as convex_values6 from "convex/values";
49
+ import * as convex_values82 from "convex/values";
47
50
  import * as convex_server24 from "convex/server";
48
51
  import { GenericSchema, SchemaDefinition } from "convex/server";
52
+ import * as _convex_dev_stream_server0 from "@convex-dev/stream/server";
49
53
  import { TestConvex } from "convex-test";
50
54
 
51
55
  //#region src/test.d.ts
@@ -73,189 +77,195 @@ declare function register(t: TestConvex<SchemaDefinition<GenericSchema, boolean>
73
77
  declare const testHelpers: {
74
78
  register: typeof register;
75
79
  schema: SchemaDefinition<{
76
- User: convex_server24.TableDefinition<convex_values6.VObject<{
77
- name?: string | undefined;
80
+ User: convex_server24.TableDefinition<convex_values82.VObject<{
78
81
  email?: string | undefined;
79
- image?: string | undefined;
82
+ extend?: any;
80
83
  phone?: string | undefined;
84
+ name?: string | undefined;
81
85
  firstName?: string | undefined;
82
86
  lastName?: string | undefined;
87
+ image?: string | undefined;
83
88
  emailVerificationTime?: number | undefined;
84
89
  phoneVerificationTime?: number | undefined;
85
90
  isAnonymous?: boolean | undefined;
86
- lastActiveGroup?: convex_values6.GenericId<"Group"> | undefined;
87
- extend?: any;
91
+ lastActiveGroup?: convex_values82.GenericId<"Group"> | undefined;
92
+ sessionEpoch?: number | undefined;
88
93
  }, {
89
- name: convex_values6.VString<string | undefined, "optional">;
90
- firstName: convex_values6.VString<string | undefined, "optional">;
91
- lastName: convex_values6.VString<string | undefined, "optional">;
92
- image: convex_values6.VString<string | undefined, "optional">;
93
- email: convex_values6.VString<string | undefined, "optional">;
94
- emailVerificationTime: convex_values6.VFloat64<number | undefined, "optional">;
95
- phone: convex_values6.VString<string | undefined, "optional">;
96
- phoneVerificationTime: convex_values6.VFloat64<number | undefined, "optional">;
97
- isAnonymous: convex_values6.VBoolean<boolean | undefined, "optional">;
98
- lastActiveGroup: convex_values6.VId<convex_values6.GenericId<"Group"> | undefined, "optional">;
99
- extend: convex_values6.VAny<any, "optional", string>;
100
- }, "required", "name" | "email" | "image" | "phone" | "firstName" | "lastName" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "extend" | `extend.${string}`>, {
94
+ name: convex_values82.VString<string | undefined, "optional">;
95
+ firstName: convex_values82.VString<string | undefined, "optional">;
96
+ lastName: convex_values82.VString<string | undefined, "optional">;
97
+ image: convex_values82.VString<string | undefined, "optional">;
98
+ email: convex_values82.VString<string | undefined, "optional">;
99
+ emailVerificationTime: convex_values82.VFloat64<number | undefined, "optional">;
100
+ phone: convex_values82.VString<string | undefined, "optional">;
101
+ phoneVerificationTime: convex_values82.VFloat64<number | undefined, "optional">;
102
+ isAnonymous: convex_values82.VBoolean<boolean | undefined, "optional">;
103
+ lastActiveGroup: convex_values82.VId<convex_values82.GenericId<"Group"> | undefined, "optional">;
104
+ sessionEpoch: convex_values82.VFloat64<number | undefined, "optional">;
105
+ extend: convex_values82.VAny<any, "optional", string>;
106
+ }, "required", "email" | "extend" | "phone" | "name" | "firstName" | "lastName" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "sessionEpoch" | `extend.${string}`>, {
101
107
  email: ["email", "_creationTime"];
102
108
  email_verified: ["email", "emailVerificationTime", "_creationTime"];
103
109
  phone: ["phone", "_creationTime"];
104
110
  phone_verified: ["phone", "phoneVerificationTime", "_creationTime"];
105
111
  }, {}, {}>;
106
- UserEmail: convex_server24.TableDefinition<convex_values6.VObject<{
107
- verificationTime?: number | undefined;
108
- accountId?: convex_values6.GenericId<"Account"> | undefined;
112
+ UserEmail: convex_server24.TableDefinition<convex_values82.VObject<{
109
113
  provider?: string | undefined;
110
- connectionId?: convex_values6.GenericId<"GroupConnection"> | undefined;
114
+ accountId?: convex_values82.GenericId<"Account"> | undefined;
115
+ connectionId?: convex_values82.GenericId<"GroupConnection"> | undefined;
116
+ verificationTime?: number | undefined;
111
117
  email: string;
112
- userId: convex_values6.GenericId<"User">;
118
+ userId: convex_values82.GenericId<"User">;
113
119
  isPrimary: boolean;
114
- source: "password" | "oauth" | "oidc" | "saml" | "scim";
120
+ source: "password" | "oauth" | "scim" | "oidc" | "saml";
115
121
  }, {
116
- userId: convex_values6.VId<convex_values6.GenericId<"User">, "required">;
117
- email: convex_values6.VString<string, "required">;
118
- verificationTime: convex_values6.VFloat64<number | undefined, "optional">;
119
- isPrimary: convex_values6.VBoolean<boolean, "required">;
120
- source: convex_values6.VUnion<"password" | "oauth" | "oidc" | "saml" | "scim", [convex_values6.VLiteral<"password", "required">, convex_values6.VLiteral<"oauth", "required">, convex_values6.VLiteral<"oidc", "required">, convex_values6.VLiteral<"saml", "required">, convex_values6.VLiteral<"scim", "required">], "required", never>;
121
- accountId: convex_values6.VId<convex_values6.GenericId<"Account"> | undefined, "optional">;
122
- provider: convex_values6.VString<string | undefined, "optional">;
123
- connectionId: convex_values6.VId<convex_values6.GenericId<"GroupConnection"> | undefined, "optional">;
124
- }, "required", "email" | "userId" | "verificationTime" | "isPrimary" | "source" | "accountId" | "provider" | "connectionId">, {
122
+ userId: convex_values82.VId<convex_values82.GenericId<"User">, "required">;
123
+ email: convex_values82.VString<string, "required">;
124
+ verificationTime: convex_values82.VFloat64<number | undefined, "optional">;
125
+ isPrimary: convex_values82.VBoolean<boolean, "required">;
126
+ source: convex_values82.VUnion<"password" | "oauth" | "scim" | "oidc" | "saml", [convex_values82.VLiteral<"password", "required">, convex_values82.VLiteral<"oauth", "required">, convex_values82.VLiteral<"oidc", "required">, convex_values82.VLiteral<"saml", "required">, convex_values82.VLiteral<"scim", "required">], "required", never>;
127
+ accountId: convex_values82.VId<convex_values82.GenericId<"Account"> | undefined, "optional">;
128
+ provider: convex_values82.VString<string | undefined, "optional">;
129
+ connectionId: convex_values82.VId<convex_values82.GenericId<"GroupConnection"> | undefined, "optional">;
130
+ }, "required", "email" | "provider" | "userId" | "accountId" | "connectionId" | "verificationTime" | "isPrimary" | "source">, {
125
131
  user_id: ["userId", "_creationTime"];
126
132
  user_id_email: ["userId", "email", "_creationTime"];
127
133
  connection_id_email: ["connectionId", "email", "_creationTime"];
128
134
  }, {}, {}>;
129
- Session: convex_server24.TableDefinition<convex_values6.VObject<{
130
- userId: convex_values6.GenericId<"User">;
135
+ Session: convex_server24.TableDefinition<convex_values82.VObject<{
136
+ epoch?: number | undefined;
137
+ userId: convex_values82.GenericId<"User">;
131
138
  expirationTime: number;
132
139
  }, {
133
- userId: convex_values6.VId<convex_values6.GenericId<"User">, "required">;
134
- expirationTime: convex_values6.VFloat64<number, "required">;
135
- }, "required", "userId" | "expirationTime">, {
140
+ userId: convex_values82.VId<convex_values82.GenericId<"User">, "required">;
141
+ expirationTime: convex_values82.VFloat64<number, "required">;
142
+ epoch: convex_values82.VFloat64<number | undefined, "optional">;
143
+ }, "required", "userId" | "expirationTime" | "epoch">, {
136
144
  user_id: ["userId", "_creationTime"];
145
+ user_id_epoch_expiration_time: ["userId", "epoch", "expirationTime", "_creationTime"];
137
146
  expiration_time: ["expirationTime", "_creationTime"];
138
147
  }, {}, {}>;
139
- Account: convex_server24.TableDefinition<convex_values6.VObject<{
140
- emailVerified?: string | undefined;
148
+ Account: convex_server24.TableDefinition<convex_values82.VObject<{
141
149
  extend?: any;
142
150
  secret?: string | undefined;
151
+ emailVerified?: string | undefined;
143
152
  phoneVerified?: string | undefined;
144
- userId: convex_values6.GenericId<"User">;
145
153
  provider: string;
154
+ userId: convex_values82.GenericId<"User">;
146
155
  providerAccountId: string;
147
156
  }, {
148
- userId: convex_values6.VId<convex_values6.GenericId<"User">, "required">;
149
- provider: convex_values6.VString<string, "required">;
150
- providerAccountId: convex_values6.VString<string, "required">;
151
- secret: convex_values6.VString<string | undefined, "optional">;
152
- emailVerified: convex_values6.VString<string | undefined, "optional">;
153
- phoneVerified: convex_values6.VString<string | undefined, "optional">;
154
- extend: convex_values6.VAny<any, "optional", string>;
155
- }, "required", "emailVerified" | "extend" | `extend.${string}` | "userId" | "provider" | "providerAccountId" | "secret" | "phoneVerified">, {
157
+ userId: convex_values82.VId<convex_values82.GenericId<"User">, "required">;
158
+ provider: convex_values82.VString<string, "required">;
159
+ providerAccountId: convex_values82.VString<string, "required">;
160
+ secret: convex_values82.VString<string | undefined, "optional">;
161
+ emailVerified: convex_values82.VString<string | undefined, "optional">;
162
+ phoneVerified: convex_values82.VString<string | undefined, "optional">;
163
+ extend: convex_values82.VAny<any, "optional", string>;
164
+ }, "required", "extend" | "provider" | "userId" | "providerAccountId" | `extend.${string}` | "secret" | "emailVerified" | "phoneVerified">, {
156
165
  user_id_provider: ["userId", "provider", "_creationTime"];
157
166
  provider_account_id: ["provider", "providerAccountId", "_creationTime"];
158
167
  }, {}, {}>;
159
- RefreshToken: convex_server24.TableDefinition<convex_values6.VObject<{
168
+ RefreshToken: convex_server24.TableDefinition<convex_values82.VObject<{
160
169
  firstUsedTime?: number | undefined;
161
- parentRefreshTokenId?: convex_values6.GenericId<"RefreshToken"> | undefined;
170
+ parentRefreshTokenId?: convex_values82.GenericId<"RefreshToken"> | undefined;
171
+ sessionId: convex_values82.GenericId<"Session">;
162
172
  expirationTime: number;
163
- sessionId: convex_values6.GenericId<"Session">;
164
173
  }, {
165
- sessionId: convex_values6.VId<convex_values6.GenericId<"Session">, "required">;
166
- expirationTime: convex_values6.VFloat64<number, "required">;
167
- firstUsedTime: convex_values6.VFloat64<number | undefined, "optional">;
168
- parentRefreshTokenId: convex_values6.VId<convex_values6.GenericId<"RefreshToken"> | undefined, "optional">;
169
- }, "required", "expirationTime" | "sessionId" | "firstUsedTime" | "parentRefreshTokenId">, {
174
+ sessionId: convex_values82.VId<convex_values82.GenericId<"Session">, "required">;
175
+ expirationTime: convex_values82.VFloat64<number, "required">;
176
+ firstUsedTime: convex_values82.VFloat64<number | undefined, "optional">;
177
+ parentRefreshTokenId: convex_values82.VId<convex_values82.GenericId<"RefreshToken"> | undefined, "optional">;
178
+ }, "required", "sessionId" | "expirationTime" | "firstUsedTime" | "parentRefreshTokenId">, {
170
179
  session_id: ["sessionId", "_creationTime"];
171
180
  session_id_first_used: ["sessionId", "firstUsedTime", "_creationTime"];
172
181
  session_id_parent_refresh_token_id: ["sessionId", "parentRefreshTokenId", "_creationTime"];
173
182
  expiration_time: ["expirationTime", "_creationTime"];
174
183
  }, {}, {}>;
175
- VerificationCode: convex_server24.TableDefinition<convex_values6.VObject<{
184
+ VerificationCode: convex_server24.TableDefinition<convex_values82.VObject<{
176
185
  emailVerified?: string | undefined;
177
186
  phoneVerified?: string | undefined;
178
187
  verifier?: string | undefined;
179
- accountId: convex_values6.GenericId<"Account">;
188
+ code: string;
180
189
  provider: string;
190
+ accountId: convex_values82.GenericId<"Account">;
181
191
  expirationTime: number;
182
- code: string;
183
192
  }, {
184
- accountId: convex_values6.VId<convex_values6.GenericId<"Account">, "required">;
185
- provider: convex_values6.VString<string, "required">;
186
- code: convex_values6.VString<string, "required">;
187
- expirationTime: convex_values6.VFloat64<number, "required">;
188
- verifier: convex_values6.VString<string | undefined, "optional">;
189
- emailVerified: convex_values6.VString<string | undefined, "optional">;
190
- phoneVerified: convex_values6.VString<string | undefined, "optional">;
191
- }, "required", "emailVerified" | "accountId" | "provider" | "expirationTime" | "phoneVerified" | "code" | "verifier">, {
193
+ accountId: convex_values82.VId<convex_values82.GenericId<"Account">, "required">;
194
+ provider: convex_values82.VString<string, "required">;
195
+ code: convex_values82.VString<string, "required">;
196
+ expirationTime: convex_values82.VFloat64<number, "required">;
197
+ verifier: convex_values82.VString<string | undefined, "optional">;
198
+ emailVerified: convex_values82.VString<string | undefined, "optional">;
199
+ phoneVerified: convex_values82.VString<string | undefined, "optional">;
200
+ }, "required", "code" | "provider" | "accountId" | "expirationTime" | "emailVerified" | "phoneVerified" | "verifier">, {
192
201
  account_id: ["accountId", "_creationTime"];
193
202
  code: ["code", "_creationTime"];
194
203
  expiration_time: ["expirationTime", "_creationTime"];
195
204
  }, {}, {}>;
196
- AuthVerifier: convex_server24.TableDefinition<convex_values6.VObject<{
205
+ AuthVerifier: convex_server24.TableDefinition<convex_values82.VObject<{
206
+ sessionId?: convex_values82.GenericId<"Session"> | undefined;
197
207
  expirationTime?: number | undefined;
198
- sessionId?: convex_values6.GenericId<"Session"> | undefined;
199
- continuationId?: convex_values6.GenericId<"AuthContinuation"> | undefined;
208
+ continuationId?: convex_values82.GenericId<"AuthContinuation"> | undefined;
200
209
  signature?: string | undefined;
201
210
  }, {
202
- sessionId: convex_values6.VId<convex_values6.GenericId<"Session"> | undefined, "optional">;
203
- continuationId: convex_values6.VId<convex_values6.GenericId<"AuthContinuation"> | undefined, "optional">;
204
- signature: convex_values6.VString<string | undefined, "optional">;
205
- expirationTime: convex_values6.VFloat64<number | undefined, "optional">;
206
- }, "required", "expirationTime" | "sessionId" | "continuationId" | "signature">, {
211
+ sessionId: convex_values82.VId<convex_values82.GenericId<"Session"> | undefined, "optional">;
212
+ continuationId: convex_values82.VId<convex_values82.GenericId<"AuthContinuation"> | undefined, "optional">;
213
+ signature: convex_values82.VString<string | undefined, "optional">;
214
+ expirationTime: convex_values82.VFloat64<number | undefined, "optional">;
215
+ }, "required", "sessionId" | "expirationTime" | "continuationId" | "signature">, {
207
216
  signature: ["signature", "_creationTime"];
208
217
  expiration_time: ["expirationTime", "_creationTime"];
209
218
  }, {}, {}>;
210
- AuthContinuation: convex_server24.TableDefinition<convex_values6.VObject<{
211
- userId: convex_values6.GenericId<"User">;
219
+ AuthContinuation: convex_server24.TableDefinition<convex_values82.VObject<{
212
220
  provider: string;
213
- expirationTime: number;
221
+ userId: convex_values82.GenericId<"User">;
214
222
  operation: "rotate";
223
+ expirationTime: number;
215
224
  }, {
216
- userId: convex_values6.VId<convex_values6.GenericId<"User">, "required">;
217
- provider: convex_values6.VString<string, "required">;
218
- operation: convex_values6.VLiteral<"rotate", "required">;
219
- expirationTime: convex_values6.VFloat64<number, "required">;
220
- }, "required", "userId" | "provider" | "expirationTime" | "operation">, {
225
+ userId: convex_values82.VId<convex_values82.GenericId<"User">, "required">;
226
+ provider: convex_values82.VString<string, "required">;
227
+ operation: convex_values82.VLiteral<"rotate", "required">;
228
+ expirationTime: convex_values82.VFloat64<number, "required">;
229
+ }, "required", "provider" | "userId" | "operation" | "expirationTime">, {
221
230
  expiration_time: ["expirationTime", "_creationTime"];
231
+ user_id_provider_operation_expiration_time: ["userId", "provider", "operation", "expirationTime", "_creationTime"];
222
232
  }, {}, {}>;
223
- PasswordReset: convex_server24.TableDefinition<convex_values6.VObject<{
224
- accountId: convex_values6.GenericId<"Account">;
233
+ PasswordReset: convex_server24.TableDefinition<convex_values82.VObject<{
234
+ accountId: convex_values82.GenericId<"Account">;
225
235
  secret: string;
226
- continuationId: convex_values6.GenericId<"AuthContinuation">;
236
+ continuationId: convex_values82.GenericId<"AuthContinuation">;
227
237
  }, {
228
- continuationId: convex_values6.VId<convex_values6.GenericId<"AuthContinuation">, "required">;
229
- accountId: convex_values6.VId<convex_values6.GenericId<"Account">, "required">;
230
- secret: convex_values6.VString<string, "required">;
238
+ continuationId: convex_values82.VId<convex_values82.GenericId<"AuthContinuation">, "required">;
239
+ accountId: convex_values82.VId<convex_values82.GenericId<"Account">, "required">;
240
+ secret: convex_values82.VString<string, "required">;
231
241
  }, "required", "accountId" | "secret" | "continuationId">, {
232
242
  continuation_id: ["continuationId", "_creationTime"];
233
243
  }, {}, {}>;
234
- SignInLimit: convex_server24.TableDefinition<convex_values6.VObject<{
244
+ SignInLimit: convex_server24.TableDefinition<convex_values82.VObject<{
235
245
  identifier: string;
236
246
  tokens: number;
237
247
  updatedAt: number;
238
248
  }, {
239
- identifier: convex_values6.VString<string, "required">;
240
- tokens: convex_values6.VFloat64<number, "required">;
241
- updatedAt: convex_values6.VFloat64<number, "required">;
249
+ identifier: convex_values82.VString<string, "required">;
250
+ tokens: convex_values82.VFloat64<number, "required">;
251
+ updatedAt: convex_values82.VFloat64<number, "required">;
242
252
  }, "required", "identifier" | "tokens" | "updatedAt">, {
243
253
  identifier: ["identifier", "_creationTime"];
244
254
  updated_at: ["updatedAt", "_creationTime"];
245
255
  }, {}, {}>;
246
- Passkey: convex_server24.TableDefinition<convex_values6.VObject<{
256
+ Passkey: convex_server24.TableDefinition<convex_values82.VObject<{
247
257
  name?: string | undefined;
248
258
  transports?: string[] | undefined;
249
259
  attestation?: {
250
260
  metadataDescription?: string | undefined;
261
+ verifiedAt: number;
262
+ status: "trusted";
251
263
  verifier: string;
252
264
  aaguid: string;
253
265
  format: string;
254
- verifiedAt: number;
255
- status: "trusted";
256
266
  } | undefined;
257
267
  lastUsedAt?: number | undefined;
258
- userId: convex_values6.GenericId<"User">;
268
+ userId: convex_values82.GenericId<"User">;
259
269
  credentialId: string;
260
270
  publicKey: ArrayBuffer;
261
271
  algorithm: number;
@@ -264,87 +274,87 @@ declare const testHelpers: {
264
274
  backedUp: boolean;
265
275
  createdAt: number;
266
276
  }, {
267
- userId: convex_values6.VId<convex_values6.GenericId<"User">, "required">;
268
- credentialId: convex_values6.VString<string, "required">;
269
- publicKey: convex_values6.VBytes<ArrayBuffer, "required">;
270
- algorithm: convex_values6.VFloat64<number, "required">;
271
- counter: convex_values6.VFloat64<number, "required">;
272
- transports: convex_values6.VArray<string[] | undefined, convex_values6.VString<string, "required">, "optional">;
273
- deviceType: convex_values6.VString<string, "required">;
274
- backedUp: convex_values6.VBoolean<boolean, "required">;
275
- name: convex_values6.VString<string | undefined, "optional">;
276
- attestation: convex_values6.VObject<{
277
+ userId: convex_values82.VId<convex_values82.GenericId<"User">, "required">;
278
+ credentialId: convex_values82.VString<string, "required">;
279
+ publicKey: convex_values82.VBytes<ArrayBuffer, "required">;
280
+ algorithm: convex_values82.VFloat64<number, "required">;
281
+ counter: convex_values82.VFloat64<number, "required">;
282
+ transports: convex_values82.VArray<string[] | undefined, convex_values82.VString<string, "required">, "optional">;
283
+ deviceType: convex_values82.VString<string, "required">;
284
+ backedUp: convex_values82.VBoolean<boolean, "required">;
285
+ name: convex_values82.VString<string | undefined, "optional">;
286
+ attestation: convex_values82.VObject<{
277
287
  metadataDescription?: string | undefined;
288
+ verifiedAt: number;
289
+ status: "trusted";
278
290
  verifier: string;
279
291
  aaguid: string;
280
292
  format: string;
281
- verifiedAt: number;
282
- status: "trusted";
283
293
  } | undefined, {
284
- verifier: convex_values6.VString<string, "required">;
285
- aaguid: convex_values6.VString<string, "required">;
286
- format: convex_values6.VString<string, "required">;
287
- metadataDescription: convex_values6.VString<string | undefined, "optional">;
288
- verifiedAt: convex_values6.VFloat64<number, "required">;
289
- status: convex_values6.VLiteral<"trusted", "required">;
290
- }, "optional", "verifier" | "aaguid" | "format" | "metadataDescription" | "verifiedAt" | "status">;
291
- createdAt: convex_values6.VFloat64<number, "required">;
292
- lastUsedAt: convex_values6.VFloat64<number | undefined, "optional">;
293
- }, "required", "name" | "userId" | "credentialId" | "publicKey" | "algorithm" | "counter" | "transports" | "deviceType" | "backedUp" | "attestation" | "createdAt" | "lastUsedAt" | "attestation.verifier" | "attestation.aaguid" | "attestation.format" | "attestation.metadataDescription" | "attestation.verifiedAt" | "attestation.status">, {
294
+ verifier: convex_values82.VString<string, "required">;
295
+ aaguid: convex_values82.VString<string, "required">;
296
+ format: convex_values82.VString<string, "required">;
297
+ metadataDescription: convex_values82.VString<string | undefined, "optional">;
298
+ verifiedAt: convex_values82.VFloat64<number, "required">;
299
+ status: convex_values82.VLiteral<"trusted", "required">;
300
+ }, "optional", "verifiedAt" | "status" | "verifier" | "aaguid" | "format" | "metadataDescription">;
301
+ createdAt: convex_values82.VFloat64<number, "required">;
302
+ lastUsedAt: convex_values82.VFloat64<number | undefined, "optional">;
303
+ }, "required", "userId" | "credentialId" | "name" | "publicKey" | "algorithm" | "counter" | "transports" | "deviceType" | "backedUp" | "attestation" | "createdAt" | "lastUsedAt" | "attestation.verifiedAt" | "attestation.status" | "attestation.verifier" | "attestation.aaguid" | "attestation.format" | "attestation.metadataDescription">, {
294
304
  user_id: ["userId", "_creationTime"];
295
305
  credential_id: ["credentialId", "_creationTime"];
296
306
  }, {}, {}>;
297
- TotpFactor: convex_server24.TableDefinition<convex_values6.VObject<{
307
+ TotpFactor: convex_server24.TableDefinition<convex_values82.VObject<{
298
308
  name?: string | undefined;
299
309
  lastUsedAt?: number | undefined;
300
- userId: convex_values6.GenericId<"User">;
310
+ userId: convex_values82.GenericId<"User">;
301
311
  secret: ArrayBuffer;
302
312
  createdAt: number;
303
313
  digits: number;
304
314
  period: number;
305
315
  verified: boolean;
306
316
  }, {
307
- userId: convex_values6.VId<convex_values6.GenericId<"User">, "required">;
308
- secret: convex_values6.VBytes<ArrayBuffer, "required">;
309
- digits: convex_values6.VFloat64<number, "required">;
310
- period: convex_values6.VFloat64<number, "required">;
311
- verified: convex_values6.VBoolean<boolean, "required">;
312
- name: convex_values6.VString<string | undefined, "optional">;
313
- createdAt: convex_values6.VFloat64<number, "required">;
314
- lastUsedAt: convex_values6.VFloat64<number | undefined, "optional">;
315
- }, "required", "name" | "userId" | "secret" | "createdAt" | "lastUsedAt" | "digits" | "period" | "verified">, {
317
+ userId: convex_values82.VId<convex_values82.GenericId<"User">, "required">;
318
+ secret: convex_values82.VBytes<ArrayBuffer, "required">;
319
+ digits: convex_values82.VFloat64<number, "required">;
320
+ period: convex_values82.VFloat64<number, "required">;
321
+ verified: convex_values82.VBoolean<boolean, "required">;
322
+ name: convex_values82.VString<string | undefined, "optional">;
323
+ createdAt: convex_values82.VFloat64<number, "required">;
324
+ lastUsedAt: convex_values82.VFloat64<number | undefined, "optional">;
325
+ }, "required", "userId" | "name" | "secret" | "createdAt" | "lastUsedAt" | "digits" | "period" | "verified">, {
316
326
  user_id: ["userId", "_creationTime"];
317
327
  user_id_verified: ["userId", "verified", "_creationTime"];
318
328
  }, {}, {}>;
319
- DeviceCode: convex_server24.TableDefinition<convex_values6.VObject<{
320
- userId?: convex_values6.GenericId<"User"> | undefined;
321
- sessionId?: convex_values6.GenericId<"Session"> | undefined;
329
+ DeviceCode: convex_server24.TableDefinition<convex_values82.VObject<{
330
+ userId?: convex_values82.GenericId<"User"> | undefined;
331
+ sessionId?: convex_values82.GenericId<"Session"> | undefined;
322
332
  lastPolledAt?: number | undefined;
333
+ expiresAt: number;
323
334
  status: "pending" | "authorized" | "denied";
324
335
  deviceCodeHash: string;
325
336
  userCode: string;
326
- expiresAt: number;
327
337
  interval: number;
328
338
  }, {
329
- deviceCodeHash: convex_values6.VString<string, "required">;
330
- userCode: convex_values6.VString<string, "required">;
331
- expiresAt: convex_values6.VFloat64<number, "required">;
332
- interval: convex_values6.VFloat64<number, "required">;
333
- status: convex_values6.VUnion<"pending" | "authorized" | "denied", [convex_values6.VLiteral<"pending", "required">, convex_values6.VLiteral<"authorized", "required">, convex_values6.VLiteral<"denied", "required">], "required", never>;
334
- userId: convex_values6.VId<convex_values6.GenericId<"User"> | undefined, "optional">;
335
- sessionId: convex_values6.VId<convex_values6.GenericId<"Session"> | undefined, "optional">;
336
- lastPolledAt: convex_values6.VFloat64<number | undefined, "optional">;
337
- }, "required", "userId" | "sessionId" | "status" | "deviceCodeHash" | "userCode" | "expiresAt" | "interval" | "lastPolledAt">, {
339
+ deviceCodeHash: convex_values82.VString<string, "required">;
340
+ userCode: convex_values82.VString<string, "required">;
341
+ expiresAt: convex_values82.VFloat64<number, "required">;
342
+ interval: convex_values82.VFloat64<number, "required">;
343
+ status: convex_values82.VUnion<"pending" | "authorized" | "denied", [convex_values82.VLiteral<"pending", "required">, convex_values82.VLiteral<"authorized", "required">, convex_values82.VLiteral<"denied", "required">], "required", never>;
344
+ userId: convex_values82.VId<convex_values82.GenericId<"User"> | undefined, "optional">;
345
+ sessionId: convex_values82.VId<convex_values82.GenericId<"Session"> | undefined, "optional">;
346
+ lastPolledAt: convex_values82.VFloat64<number | undefined, "optional">;
347
+ }, "required", "userId" | "sessionId" | "expiresAt" | "status" | "deviceCodeHash" | "userCode" | "interval" | "lastPolledAt">, {
338
348
  device_code_hash: ["deviceCodeHash", "_creationTime"];
339
349
  user_code_status: ["userCode", "status", "_creationTime"];
340
350
  expires_at: ["expiresAt", "_creationTime"];
341
351
  }, {}, {}>;
342
- Group: convex_server24.TableDefinition<convex_values6.VObject<{
343
- extend?: any;
352
+ Group: convex_server24.TableDefinition<convex_values82.VObject<{
344
353
  type?: string | undefined;
354
+ extend?: any;
345
355
  slug?: string | undefined;
346
- parentGroupId?: convex_values6.GenericId<"Group"> | undefined;
347
- rootGroupId?: convex_values6.GenericId<"Group"> | undefined;
356
+ parentGroupId?: convex_values82.GenericId<"Group"> | undefined;
357
+ rootGroupId?: convex_values82.GenericId<"Group"> | undefined;
348
358
  isRoot?: boolean | undefined;
349
359
  policy?: {
350
360
  extend?: any;
@@ -360,10 +370,7 @@ declare const testHelpers: {
360
370
  createOnSignIn: boolean;
361
371
  updateProfileOnLogin: "never" | "missing" | "always";
362
372
  updateProfileFromScim: "never" | "missing" | "always";
363
- authority: "scim" | "app" | "connection";
364
- };
365
- scimReuse: {
366
- user: "none" | "externalId";
373
+ authority: "scim" | "app";
367
374
  };
368
375
  jit: {
369
376
  defaultRole?: string | undefined;
@@ -387,13 +394,13 @@ declare const testHelpers: {
387
394
  } | undefined;
388
395
  name: string;
389
396
  }, {
390
- name: convex_values6.VString<string, "required">;
391
- slug: convex_values6.VString<string | undefined, "optional">;
392
- type: convex_values6.VString<string | undefined, "optional">;
393
- parentGroupId: convex_values6.VId<convex_values6.GenericId<"Group"> | undefined, "optional">;
394
- rootGroupId: convex_values6.VId<convex_values6.GenericId<"Group"> | undefined, "optional">;
395
- isRoot: convex_values6.VBoolean<boolean | undefined, "optional">;
396
- policy: convex_values6.VObject<{
397
+ name: convex_values82.VString<string, "required">;
398
+ slug: convex_values82.VString<string | undefined, "optional">;
399
+ type: convex_values82.VString<string | undefined, "optional">;
400
+ parentGroupId: convex_values82.VId<convex_values82.GenericId<"Group"> | undefined, "optional">;
401
+ rootGroupId: convex_values82.VId<convex_values82.GenericId<"Group"> | undefined, "optional">;
402
+ isRoot: convex_values82.VBoolean<boolean | undefined, "optional">;
403
+ policy: convex_values82.VObject<{
397
404
  extend?: any;
398
405
  version: 1;
399
406
  identity: {
@@ -407,10 +414,7 @@ declare const testHelpers: {
407
414
  createOnSignIn: boolean;
408
415
  updateProfileOnLogin: "never" | "missing" | "always";
409
416
  updateProfileFromScim: "never" | "missing" | "always";
410
- authority: "scim" | "app" | "connection";
411
- };
412
- scimReuse: {
413
- user: "none" | "externalId";
417
+ authority: "scim" | "app";
414
418
  };
415
419
  jit: {
416
420
  defaultRole?: string | undefined;
@@ -432,30 +436,27 @@ declare const testHelpers: {
432
436
  };
433
437
  };
434
438
  } | undefined, {
435
- version: convex_values6.VLiteral<1, "required">;
436
- identity: convex_values6.VObject<{
439
+ version: convex_values82.VLiteral<1, "required">;
440
+ identity: convex_values82.VObject<{
437
441
  accountLinking: {
438
442
  oidc: "verifiedEmail" | "none" | "sameConnection";
439
443
  saml: "verifiedEmail" | "none" | "sameConnection";
440
444
  };
441
445
  }, {
442
- accountLinking: convex_values6.VObject<{
446
+ accountLinking: convex_values82.VObject<{
443
447
  oidc: "verifiedEmail" | "none" | "sameConnection";
444
448
  saml: "verifiedEmail" | "none" | "sameConnection";
445
449
  }, {
446
- oidc: convex_values6.VUnion<"verifiedEmail" | "none" | "sameConnection", [convex_values6.VLiteral<"verifiedEmail", "required">, convex_values6.VLiteral<"none", "required">, convex_values6.VLiteral<"sameConnection", "required">], "required", never>;
447
- saml: convex_values6.VUnion<"verifiedEmail" | "none" | "sameConnection", [convex_values6.VLiteral<"verifiedEmail", "required">, convex_values6.VLiteral<"none", "required">, convex_values6.VLiteral<"sameConnection", "required">], "required", never>;
450
+ oidc: convex_values82.VUnion<"verifiedEmail" | "none" | "sameConnection", [convex_values82.VLiteral<"verifiedEmail", "required">, convex_values82.VLiteral<"none", "required">, convex_values82.VLiteral<"sameConnection", "required">], "required", never>;
451
+ saml: convex_values82.VUnion<"verifiedEmail" | "none" | "sameConnection", [convex_values82.VLiteral<"verifiedEmail", "required">, convex_values82.VLiteral<"none", "required">, convex_values82.VLiteral<"sameConnection", "required">], "required", never>;
448
452
  }, "required", "oidc" | "saml">;
449
453
  }, "required", "accountLinking" | "accountLinking.oidc" | "accountLinking.saml">;
450
- provisioning: convex_values6.VObject<{
454
+ provisioning: convex_values82.VObject<{
451
455
  user: {
452
456
  createOnSignIn: boolean;
453
457
  updateProfileOnLogin: "never" | "missing" | "always";
454
458
  updateProfileFromScim: "never" | "missing" | "always";
455
- authority: "scim" | "app" | "connection";
456
- };
457
- scimReuse: {
458
- user: "none" | "externalId";
459
+ authority: "scim" | "app";
459
460
  };
460
461
  jit: {
461
462
  defaultRole?: string | undefined;
@@ -476,59 +477,54 @@ declare const testHelpers: {
476
477
  mode: "map" | "ignore";
477
478
  };
478
479
  }, {
479
- user: convex_values6.VObject<{
480
+ user: convex_values82.VObject<{
480
481
  createOnSignIn: boolean;
481
482
  updateProfileOnLogin: "never" | "missing" | "always";
482
483
  updateProfileFromScim: "never" | "missing" | "always";
483
- authority: "scim" | "app" | "connection";
484
+ authority: "scim" | "app";
484
485
  }, {
485
- createOnSignIn: convex_values6.VBoolean<boolean, "required">;
486
- updateProfileOnLogin: convex_values6.VUnion<"never" | "missing" | "always", [convex_values6.VLiteral<"never", "required">, convex_values6.VLiteral<"missing", "required">, convex_values6.VLiteral<"always", "required">], "required", never>;
487
- updateProfileFromScim: convex_values6.VUnion<"never" | "missing" | "always", [convex_values6.VLiteral<"never", "required">, convex_values6.VLiteral<"missing", "required">, convex_values6.VLiteral<"always", "required">], "required", never>;
488
- authority: convex_values6.VUnion<"scim" | "app" | "connection", [convex_values6.VLiteral<"app", "required">, convex_values6.VLiteral<"connection", "required">, convex_values6.VLiteral<"scim", "required">], "required", never>;
486
+ createOnSignIn: convex_values82.VBoolean<boolean, "required">;
487
+ updateProfileOnLogin: convex_values82.VUnion<"never" | "missing" | "always", [convex_values82.VLiteral<"never", "required">, convex_values82.VLiteral<"missing", "required">, convex_values82.VLiteral<"always", "required">], "required", never>;
488
+ updateProfileFromScim: convex_values82.VUnion<"never" | "missing" | "always", [convex_values82.VLiteral<"never", "required">, convex_values82.VLiteral<"missing", "required">, convex_values82.VLiteral<"always", "required">], "required", never>;
489
+ authority: convex_values82.VUnion<"scim" | "app", [convex_values82.VLiteral<"app", "required">, convex_values82.VLiteral<"scim", "required">], "required", never>;
489
490
  }, "required", "createOnSignIn" | "updateProfileOnLogin" | "updateProfileFromScim" | "authority">;
490
- scimReuse: convex_values6.VObject<{
491
- user: "none" | "externalId";
492
- }, {
493
- user: convex_values6.VUnion<"none" | "externalId", [convex_values6.VLiteral<"externalId", "required">, convex_values6.VLiteral<"none", "required">], "required", never>;
494
- }, "required", "user">;
495
- jit: convex_values6.VObject<{
491
+ jit: convex_values82.VObject<{
496
492
  defaultRole?: string | undefined;
497
493
  defaultRoleIds?: string[] | undefined;
498
494
  mode: "off" | "createUser" | "createUserAndMembership";
499
495
  }, {
500
- mode: convex_values6.VUnion<"off" | "createUser" | "createUserAndMembership", [convex_values6.VLiteral<"off", "required">, convex_values6.VLiteral<"createUser", "required">, convex_values6.VLiteral<"createUserAndMembership", "required">], "required", never>;
501
- defaultRole: convex_values6.VString<string | undefined, "optional">;
502
- defaultRoleIds: convex_values6.VArray<string[] | undefined, convex_values6.VString<string, "required">, "optional">;
496
+ mode: convex_values82.VUnion<"off" | "createUser" | "createUserAndMembership", [convex_values82.VLiteral<"off", "required">, convex_values82.VLiteral<"createUser", "required">, convex_values82.VLiteral<"createUserAndMembership", "required">], "required", never>;
497
+ defaultRole: convex_values82.VString<string | undefined, "optional">;
498
+ defaultRoleIds: convex_values82.VArray<string[] | undefined, convex_values82.VString<string, "required">, "optional">;
503
499
  }, "required", "mode" | "defaultRole" | "defaultRoleIds">;
504
- deprovision: convex_values6.VObject<{
500
+ deprovision: convex_values82.VObject<{
505
501
  mode: "soft" | "hard";
506
502
  }, {
507
- mode: convex_values6.VUnion<"soft" | "hard", [convex_values6.VLiteral<"soft", "required">, convex_values6.VLiteral<"hard", "required">], "required", never>;
503
+ mode: convex_values82.VUnion<"soft" | "hard", [convex_values82.VLiteral<"soft", "required">, convex_values82.VLiteral<"hard", "required">], "required", never>;
508
504
  }, "required", "mode">;
509
- groups: convex_values6.VObject<{
505
+ groups: convex_values82.VObject<{
510
506
  mapping?: Record<string, string[]> | undefined;
511
507
  source: "protocol";
512
508
  mode: "ignore" | "sync";
513
509
  }, {
514
- mode: convex_values6.VUnion<"ignore" | "sync", [convex_values6.VLiteral<"ignore", "required">, convex_values6.VLiteral<"sync", "required">], "required", never>;
515
- source: convex_values6.VLiteral<"protocol", "required">;
516
- mapping: convex_values6.VRecord<Record<string, string[]> | undefined, convex_values6.VString<string, "required">, convex_values6.VArray<string[], convex_values6.VString<string, "required">, "required">, "optional", string>;
510
+ mode: convex_values82.VUnion<"ignore" | "sync", [convex_values82.VLiteral<"ignore", "required">, convex_values82.VLiteral<"sync", "required">], "required", never>;
511
+ source: convex_values82.VLiteral<"protocol", "required">;
512
+ mapping: convex_values82.VRecord<Record<string, string[]> | undefined, convex_values82.VString<string, "required">, convex_values82.VArray<string[], convex_values82.VString<string, "required">, "required">, "optional", string>;
517
513
  }, "required", "source" | "mode" | "mapping" | `mapping.${string}`>;
518
- roles: convex_values6.VObject<{
514
+ roles: convex_values82.VObject<{
519
515
  mapping?: Record<string, string[]> | undefined;
520
516
  source: "protocol";
521
517
  mode: "map" | "ignore";
522
518
  }, {
523
- mode: convex_values6.VUnion<"map" | "ignore", [convex_values6.VLiteral<"ignore", "required">, convex_values6.VLiteral<"map", "required">], "required", never>;
524
- source: convex_values6.VLiteral<"protocol", "required">;
525
- mapping: convex_values6.VRecord<Record<string, string[]> | undefined, convex_values6.VString<string, "required">, convex_values6.VArray<string[], convex_values6.VString<string, "required">, "required">, "optional", string>;
519
+ mode: convex_values82.VUnion<"map" | "ignore", [convex_values82.VLiteral<"ignore", "required">, convex_values82.VLiteral<"map", "required">], "required", never>;
520
+ source: convex_values82.VLiteral<"protocol", "required">;
521
+ mapping: convex_values82.VRecord<Record<string, string[]> | undefined, convex_values82.VString<string, "required">, convex_values82.VArray<string[], convex_values82.VString<string, "required">, "required">, "optional", string>;
526
522
  }, "required", "source" | "mode" | "mapping" | `mapping.${string}`>;
527
- }, "required", "user" | "scimReuse" | "jit" | "deprovision" | "groups" | "roles" | "user.createOnSignIn" | "user.updateProfileOnLogin" | "user.updateProfileFromScim" | "user.authority" | "scimReuse.user" | "jit.mode" | "jit.defaultRole" | "jit.defaultRoleIds" | "deprovision.mode" | "groups.source" | "groups.mode" | "groups.mapping" | `groups.mapping.${string}` | "roles.source" | "roles.mode" | "roles.mapping" | `roles.mapping.${string}`>;
528
- extend: convex_values6.VAny<any, "optional", string>;
529
- }, "optional", "extend" | `extend.${string}` | "version" | "identity" | "provisioning" | "identity.accountLinking" | "identity.accountLinking.oidc" | "identity.accountLinking.saml" | "provisioning.user" | "provisioning.scimReuse" | "provisioning.jit" | "provisioning.deprovision" | "provisioning.groups" | "provisioning.roles" | "provisioning.user.createOnSignIn" | "provisioning.user.updateProfileOnLogin" | "provisioning.user.updateProfileFromScim" | "provisioning.user.authority" | "provisioning.scimReuse.user" | "provisioning.jit.mode" | "provisioning.jit.defaultRole" | "provisioning.jit.defaultRoleIds" | "provisioning.deprovision.mode" | "provisioning.groups.source" | "provisioning.groups.mode" | "provisioning.groups.mapping" | `provisioning.groups.mapping.${string}` | "provisioning.roles.source" | "provisioning.roles.mode" | "provisioning.roles.mapping" | `provisioning.roles.mapping.${string}`>;
530
- extend: convex_values6.VAny<any, "optional", string>;
531
- }, "required", "name" | "extend" | "type" | `extend.${string}` | "slug" | "parentGroupId" | "rootGroupId" | "isRoot" | "policy" | "policy.extend" | `policy.extend.${string}` | "policy.version" | "policy.identity" | "policy.provisioning" | "policy.identity.accountLinking" | "policy.identity.accountLinking.oidc" | "policy.identity.accountLinking.saml" | "policy.provisioning.user" | "policy.provisioning.scimReuse" | "policy.provisioning.jit" | "policy.provisioning.deprovision" | "policy.provisioning.groups" | "policy.provisioning.roles" | "policy.provisioning.user.createOnSignIn" | "policy.provisioning.user.updateProfileOnLogin" | "policy.provisioning.user.updateProfileFromScim" | "policy.provisioning.user.authority" | "policy.provisioning.scimReuse.user" | "policy.provisioning.jit.mode" | "policy.provisioning.jit.defaultRole" | "policy.provisioning.jit.defaultRoleIds" | "policy.provisioning.deprovision.mode" | "policy.provisioning.groups.source" | "policy.provisioning.groups.mode" | "policy.provisioning.groups.mapping" | `policy.provisioning.groups.mapping.${string}` | "policy.provisioning.roles.source" | "policy.provisioning.roles.mode" | "policy.provisioning.roles.mapping" | `policy.provisioning.roles.mapping.${string}`>, {
523
+ }, "required", "user" | "jit" | "deprovision" | "groups" | "roles" | "user.createOnSignIn" | "user.updateProfileOnLogin" | "user.updateProfileFromScim" | "user.authority" | "jit.mode" | "jit.defaultRole" | "jit.defaultRoleIds" | "deprovision.mode" | "groups.source" | "groups.mode" | "groups.mapping" | `groups.mapping.${string}` | "roles.source" | "roles.mode" | "roles.mapping" | `roles.mapping.${string}`>;
524
+ extend: convex_values82.VAny<any, "optional", string>;
525
+ }, "optional", "extend" | "version" | `extend.${string}` | "identity" | "provisioning" | "identity.accountLinking" | "identity.accountLinking.oidc" | "identity.accountLinking.saml" | "provisioning.user" | "provisioning.jit" | "provisioning.deprovision" | "provisioning.groups" | "provisioning.roles" | "provisioning.user.createOnSignIn" | "provisioning.user.updateProfileOnLogin" | "provisioning.user.updateProfileFromScim" | "provisioning.user.authority" | "provisioning.jit.mode" | "provisioning.jit.defaultRole" | "provisioning.jit.defaultRoleIds" | "provisioning.deprovision.mode" | "provisioning.groups.source" | "provisioning.groups.mode" | "provisioning.groups.mapping" | `provisioning.groups.mapping.${string}` | "provisioning.roles.source" | "provisioning.roles.mode" | "provisioning.roles.mapping" | `provisioning.roles.mapping.${string}`>;
526
+ extend: convex_values82.VAny<any, "optional", string>;
527
+ }, "required", "type" | "extend" | "name" | `extend.${string}` | "slug" | "parentGroupId" | "rootGroupId" | "isRoot" | "policy" | "policy.extend" | "policy.version" | `policy.extend.${string}` | "policy.identity" | "policy.provisioning" | "policy.identity.accountLinking" | "policy.identity.accountLinking.oidc" | "policy.identity.accountLinking.saml" | "policy.provisioning.user" | "policy.provisioning.jit" | "policy.provisioning.deprovision" | "policy.provisioning.groups" | "policy.provisioning.roles" | "policy.provisioning.user.createOnSignIn" | "policy.provisioning.user.updateProfileOnLogin" | "policy.provisioning.user.updateProfileFromScim" | "policy.provisioning.user.authority" | "policy.provisioning.jit.mode" | "policy.provisioning.jit.defaultRole" | "policy.provisioning.jit.defaultRoleIds" | "policy.provisioning.deprovision.mode" | "policy.provisioning.groups.source" | "policy.provisioning.groups.mode" | "policy.provisioning.groups.mapping" | `policy.provisioning.groups.mapping.${string}` | "policy.provisioning.roles.source" | "policy.provisioning.roles.mode" | "policy.provisioning.roles.mapping" | `policy.provisioning.roles.mapping.${string}`>, {
532
528
  name: ["name", "_creationTime"];
533
529
  slug: ["slug", "_creationTime"];
534
530
  parent_group_id: ["parentGroupId", "_creationTime"];
@@ -540,66 +536,66 @@ declare const testHelpers: {
540
536
  type: ["type", "_creationTime"];
541
537
  type_parent_group_id: ["type", "parentGroupId", "_creationTime"];
542
538
  }, {}, {}>;
543
- GroupHierarchyOperation: convex_server24.TableDefinition<convex_values6.VObject<{
544
- newRootGroupId?: convex_values6.GenericId<"Group"> | undefined;
545
- expectedParentGroupId?: convex_values6.GenericId<"Group"> | undefined;
546
- groupId: convex_values6.GenericId<"Group">;
547
- phase: "planning" | "applying" | "cleaning";
539
+ GroupHierarchyOperation: convex_server24.TableDefinition<convex_values82.VObject<{
540
+ newRootGroupId?: convex_values82.GenericId<"Group"> | undefined;
541
+ expectedParentGroupId?: convex_values82.GenericId<"Group"> | undefined;
548
542
  kind: "remove" | "restamp";
543
+ groupId: convex_values82.GenericId<"Group">;
544
+ phase: "planning" | "applying" | "cleaning";
549
545
  }, {
550
- groupId: convex_values6.VId<convex_values6.GenericId<"Group">, "required">;
551
- kind: convex_values6.VUnion<"remove" | "restamp", [convex_values6.VLiteral<"remove", "required">, convex_values6.VLiteral<"restamp", "required">], "required", never>;
552
- phase: convex_values6.VUnion<"planning" | "applying" | "cleaning", [convex_values6.VLiteral<"planning", "required">, convex_values6.VLiteral<"applying", "required">, convex_values6.VLiteral<"cleaning", "required">], "required", never>;
553
- newRootGroupId: convex_values6.VId<convex_values6.GenericId<"Group"> | undefined, "optional">;
554
- expectedParentGroupId: convex_values6.VId<convex_values6.GenericId<"Group"> | undefined, "optional">;
555
- }, "required", "groupId" | "phase" | "newRootGroupId" | "expectedParentGroupId" | "kind">, {
546
+ groupId: convex_values82.VId<convex_values82.GenericId<"Group">, "required">;
547
+ kind: convex_values82.VUnion<"remove" | "restamp", [convex_values82.VLiteral<"remove", "required">, convex_values82.VLiteral<"restamp", "required">], "required", never>;
548
+ phase: convex_values82.VUnion<"planning" | "applying" | "cleaning", [convex_values82.VLiteral<"planning", "required">, convex_values82.VLiteral<"applying", "required">, convex_values82.VLiteral<"cleaning", "required">], "required", never>;
549
+ newRootGroupId: convex_values82.VId<convex_values82.GenericId<"Group"> | undefined, "optional">;
550
+ expectedParentGroupId: convex_values82.VId<convex_values82.GenericId<"Group"> | undefined, "optional">;
551
+ }, "required", "kind" | "groupId" | "phase" | "newRootGroupId" | "expectedParentGroupId">, {
556
552
  group_id_kind: ["groupId", "kind", "_creationTime"];
557
553
  group_id_kind_parent_root: ["groupId", "kind", "expectedParentGroupId", "newRootGroupId", "_creationTime"];
558
554
  }, {}, {}>;
559
- GroupHierarchyWork: convex_server24.TableDefinition<convex_values6.VObject<{
560
- expectedParentGroupId?: convex_values6.GenericId<"Group"> | undefined;
561
- parentWorkId?: convex_values6.GenericId<"GroupHierarchyWork"> | undefined;
555
+ GroupHierarchyWork: convex_server24.TableDefinition<convex_values82.VObject<{
556
+ expectedParentGroupId?: convex_values82.GenericId<"Group"> | undefined;
557
+ parentWorkId?: convex_values82.GenericId<"GroupHierarchyWork"> | undefined;
562
558
  eligible?: boolean | undefined;
563
559
  scanCursor?: string | undefined;
564
- groupId: convex_values6.GenericId<"Group">;
565
560
  kind: "remove" | "restamp";
566
- operationId: convex_values6.GenericId<"GroupHierarchyOperation">;
561
+ groupId: convex_values82.GenericId<"Group">;
562
+ operationId: convex_values82.GenericId<"GroupHierarchyOperation">;
567
563
  depth: number;
568
564
  planned: boolean;
569
565
  applied: boolean;
570
566
  }, {
571
- operationId: convex_values6.VId<convex_values6.GenericId<"GroupHierarchyOperation">, "required">;
572
- kind: convex_values6.VUnion<"remove" | "restamp", [convex_values6.VLiteral<"remove", "required">, convex_values6.VLiteral<"restamp", "required">], "required", never>;
573
- groupId: convex_values6.VId<convex_values6.GenericId<"Group">, "required">;
574
- parentWorkId: convex_values6.VId<convex_values6.GenericId<"GroupHierarchyWork"> | undefined, "optional">;
575
- expectedParentGroupId: convex_values6.VId<convex_values6.GenericId<"Group"> | undefined, "optional">;
576
- depth: convex_values6.VFloat64<number, "required">;
577
- planned: convex_values6.VBoolean<boolean, "required">;
578
- applied: convex_values6.VBoolean<boolean, "required">;
579
- eligible: convex_values6.VBoolean<boolean | undefined, "optional">;
580
- scanCursor: convex_values6.VString<string | undefined, "optional">;
581
- }, "required", "groupId" | "expectedParentGroupId" | "kind" | "operationId" | "parentWorkId" | "depth" | "planned" | "applied" | "eligible" | "scanCursor">, {
567
+ operationId: convex_values82.VId<convex_values82.GenericId<"GroupHierarchyOperation">, "required">;
568
+ kind: convex_values82.VUnion<"remove" | "restamp", [convex_values82.VLiteral<"remove", "required">, convex_values82.VLiteral<"restamp", "required">], "required", never>;
569
+ groupId: convex_values82.VId<convex_values82.GenericId<"Group">, "required">;
570
+ parentWorkId: convex_values82.VId<convex_values82.GenericId<"GroupHierarchyWork"> | undefined, "optional">;
571
+ expectedParentGroupId: convex_values82.VId<convex_values82.GenericId<"Group"> | undefined, "optional">;
572
+ depth: convex_values82.VFloat64<number, "required">;
573
+ planned: convex_values82.VBoolean<boolean, "required">;
574
+ applied: convex_values82.VBoolean<boolean, "required">;
575
+ eligible: convex_values82.VBoolean<boolean | undefined, "optional">;
576
+ scanCursor: convex_values82.VString<string | undefined, "optional">;
577
+ }, "required", "kind" | "groupId" | "expectedParentGroupId" | "operationId" | "parentWorkId" | "depth" | "planned" | "applied" | "eligible" | "scanCursor">, {
582
578
  operation_id_group_id: ["operationId", "groupId", "_creationTime"];
583
579
  operation_id_planned: ["operationId", "planned", "_creationTime"];
584
580
  operation_id_applied_depth: ["operationId", "applied", "depth", "_creationTime"];
585
581
  group_id: ["groupId", "_creationTime"];
586
582
  group_id_kind: ["groupId", "kind", "_creationTime"];
587
583
  }, {}, {}>;
588
- GroupMember: convex_server24.TableDefinition<convex_values6.VObject<{
584
+ GroupMember: convex_server24.TableDefinition<convex_values82.VObject<{
589
585
  extend?: any;
590
586
  status?: string | undefined;
591
587
  role?: string | undefined;
592
588
  roleIds?: string[] | undefined;
593
- userId: convex_values6.GenericId<"User">;
594
- groupId: convex_values6.GenericId<"Group">;
589
+ userId: convex_values82.GenericId<"User">;
590
+ groupId: convex_values82.GenericId<"Group">;
595
591
  }, {
596
- groupId: convex_values6.VId<convex_values6.GenericId<"Group">, "required">;
597
- userId: convex_values6.VId<convex_values6.GenericId<"User">, "required">;
598
- role: convex_values6.VString<string | undefined, "optional">;
599
- roleIds: convex_values6.VArray<string[] | undefined, convex_values6.VString<string, "required">, "optional">;
600
- status: convex_values6.VString<string | undefined, "optional">;
601
- extend: convex_values6.VAny<any, "optional", string>;
602
- }, "required", "extend" | `extend.${string}` | "userId" | "status" | "groupId" | "role" | "roleIds">, {
592
+ groupId: convex_values82.VId<convex_values82.GenericId<"Group">, "required">;
593
+ userId: convex_values82.VId<convex_values82.GenericId<"User">, "required">;
594
+ role: convex_values82.VString<string | undefined, "optional">;
595
+ roleIds: convex_values82.VArray<string[] | undefined, convex_values82.VString<string, "required">, "optional">;
596
+ status: convex_values82.VString<string | undefined, "optional">;
597
+ extend: convex_values82.VAny<any, "optional", string>;
598
+ }, "required", "extend" | "userId" | "groupId" | "status" | `extend.${string}` | "role" | "roleIds">, {
603
599
  group_id: ["groupId", "_creationTime"];
604
600
  group_id_user_id: ["groupId", "userId", "_creationTime"];
605
601
  group_id_status: ["groupId", "status", "_creationTime"];
@@ -607,31 +603,31 @@ declare const testHelpers: {
607
603
  user_id_status: ["userId", "status", "_creationTime"];
608
604
  status: ["status", "_creationTime"];
609
605
  }, {}, {}>;
610
- GroupInvite: convex_server24.TableDefinition<convex_values6.VObject<{
606
+ GroupInvite: convex_server24.TableDefinition<convex_values82.VObject<{
611
607
  email?: string | undefined;
612
608
  extend?: any;
613
- groupId?: convex_values6.GenericId<"Group"> | undefined;
609
+ groupId?: convex_values82.GenericId<"Group"> | undefined;
614
610
  role?: string | undefined;
615
611
  roleIds?: string[] | undefined;
616
- invitedByUserId?: convex_values6.GenericId<"User"> | undefined;
612
+ invitedByUserId?: convex_values82.GenericId<"User"> | undefined;
617
613
  expiresTime?: number | undefined;
618
- acceptedByUserId?: convex_values6.GenericId<"User"> | undefined;
614
+ acceptedByUserId?: convex_values82.GenericId<"User"> | undefined;
619
615
  acceptedTime?: number | undefined;
620
616
  status: "pending" | "accepted" | "revoked" | "expired";
621
617
  tokenHash: string;
622
618
  }, {
623
- groupId: convex_values6.VId<convex_values6.GenericId<"Group"> | undefined, "optional">;
624
- invitedByUserId: convex_values6.VId<convex_values6.GenericId<"User"> | undefined, "optional">;
625
- email: convex_values6.VString<string | undefined, "optional">;
626
- tokenHash: convex_values6.VString<string, "required">;
627
- role: convex_values6.VString<string | undefined, "optional">;
628
- roleIds: convex_values6.VArray<string[] | undefined, convex_values6.VString<string, "required">, "optional">;
629
- status: convex_values6.VUnion<"pending" | "accepted" | "revoked" | "expired", [convex_values6.VLiteral<"pending", "required">, convex_values6.VLiteral<"accepted", "required">, convex_values6.VLiteral<"revoked", "required">, convex_values6.VLiteral<"expired", "required">], "required", never>;
630
- expiresTime: convex_values6.VFloat64<number | undefined, "optional">;
631
- acceptedByUserId: convex_values6.VId<convex_values6.GenericId<"User"> | undefined, "optional">;
632
- acceptedTime: convex_values6.VFloat64<number | undefined, "optional">;
633
- extend: convex_values6.VAny<any, "optional", string>;
634
- }, "required", "email" | "extend" | `extend.${string}` | "status" | "groupId" | "role" | "roleIds" | "invitedByUserId" | "tokenHash" | "expiresTime" | "acceptedByUserId" | "acceptedTime">, {
619
+ groupId: convex_values82.VId<convex_values82.GenericId<"Group"> | undefined, "optional">;
620
+ invitedByUserId: convex_values82.VId<convex_values82.GenericId<"User"> | undefined, "optional">;
621
+ email: convex_values82.VString<string | undefined, "optional">;
622
+ tokenHash: convex_values82.VString<string, "required">;
623
+ role: convex_values82.VString<string | undefined, "optional">;
624
+ roleIds: convex_values82.VArray<string[] | undefined, convex_values82.VString<string, "required">, "optional">;
625
+ status: convex_values82.VUnion<"pending" | "accepted" | "revoked" | "expired", [convex_values82.VLiteral<"pending", "required">, convex_values82.VLiteral<"accepted", "required">, convex_values82.VLiteral<"revoked", "required">, convex_values82.VLiteral<"expired", "required">], "required", never>;
626
+ expiresTime: convex_values82.VFloat64<number | undefined, "optional">;
627
+ acceptedByUserId: convex_values82.VId<convex_values82.GenericId<"User"> | undefined, "optional">;
628
+ acceptedTime: convex_values82.VFloat64<number | undefined, "optional">;
629
+ extend: convex_values82.VAny<any, "optional", string>;
630
+ }, "required", "email" | "extend" | "groupId" | "status" | `extend.${string}` | "role" | "roleIds" | "invitedByUserId" | "tokenHash" | "expiresTime" | "acceptedByUserId" | "acceptedTime">, {
635
631
  token_hash: ["tokenHash", "_creationTime"];
636
632
  status: ["status", "_creationTime"];
637
633
  email_status: ["email", "status", "_creationTime"];
@@ -642,23 +638,23 @@ declare const testHelpers: {
642
638
  group_id_email_status: ["groupId", "email", "status", "_creationTime"];
643
639
  expires_time: ["expiresTime", "_creationTime"];
644
640
  }, {}, {}>;
645
- GroupConnection: convex_server24.TableDefinition<convex_values6.VObject<{
646
- name?: string | undefined;
641
+ GroupConnection: convex_server24.TableDefinition<convex_values82.VObject<{
647
642
  extend?: any;
643
+ name?: string | undefined;
648
644
  slug?: string | undefined;
649
645
  config?: any;
650
- status: "draft" | "active" | "disabled";
651
646
  protocol: "oidc" | "saml";
652
- groupId: convex_values6.GenericId<"Group">;
647
+ groupId: convex_values82.GenericId<"Group">;
648
+ status: "active" | "draft" | "disabled";
653
649
  }, {
654
- groupId: convex_values6.VId<convex_values6.GenericId<"Group">, "required">;
655
- slug: convex_values6.VString<string | undefined, "optional">;
656
- name: convex_values6.VString<string | undefined, "optional">;
657
- protocol: convex_values6.VUnion<"oidc" | "saml", [convex_values6.VLiteral<"oidc", "required">, convex_values6.VLiteral<"saml", "required">], "required", never>;
658
- status: convex_values6.VUnion<"draft" | "active" | "disabled", [convex_values6.VLiteral<"draft", "required">, convex_values6.VLiteral<"active", "required">, convex_values6.VLiteral<"disabled", "required">], "required", never>;
659
- config: convex_values6.VAny<any, "optional", string>;
660
- extend: convex_values6.VAny<any, "optional", string>;
661
- }, "required", "name" | "extend" | `extend.${string}` | "status" | "slug" | "protocol" | "groupId" | "config" | `config.${string}`>, {
650
+ groupId: convex_values82.VId<convex_values82.GenericId<"Group">, "required">;
651
+ slug: convex_values82.VString<string | undefined, "optional">;
652
+ name: convex_values82.VString<string | undefined, "optional">;
653
+ protocol: convex_values82.VUnion<"oidc" | "saml", [convex_values82.VLiteral<"oidc", "required">, convex_values82.VLiteral<"saml", "required">], "required", never>;
654
+ status: convex_values82.VUnion<"active" | "draft" | "disabled", [convex_values82.VLiteral<"draft", "required">, convex_values82.VLiteral<"active", "required">, convex_values82.VLiteral<"disabled", "required">], "required", never>;
655
+ config: convex_values82.VAny<any, "optional", string>;
656
+ extend: convex_values82.VAny<any, "optional", string>;
657
+ }, "required", "extend" | "name" | "protocol" | "groupId" | "status" | `extend.${string}` | "slug" | "config" | `config.${string}`>, {
662
658
  group_id: ["groupId", "_creationTime"];
663
659
  name: ["name", "_creationTime"];
664
660
  slug: ["slug", "_creationTime"];
@@ -667,137 +663,137 @@ declare const testHelpers: {
667
663
  group_id_status: ["groupId", "status", "_creationTime"];
668
664
  group_id_slug: ["groupId", "slug", "_creationTime"];
669
665
  }, {}, {}>;
670
- GroupConnectionDomain: convex_server24.TableDefinition<convex_values6.VObject<{
666
+ GroupConnectionDomain: convex_server24.TableDefinition<convex_values82.VObject<{
671
667
  verifiedAt?: number | undefined;
672
- isPrimary: boolean;
673
- connectionId: convex_values6.GenericId<"GroupConnection">;
674
- groupId: convex_values6.GenericId<"Group">;
668
+ connectionId: convex_values82.GenericId<"GroupConnection">;
675
669
  domain: string;
670
+ groupId: convex_values82.GenericId<"Group">;
671
+ isPrimary: boolean;
676
672
  }, {
677
- connectionId: convex_values6.VId<convex_values6.GenericId<"GroupConnection">, "required">;
678
- groupId: convex_values6.VId<convex_values6.GenericId<"Group">, "required">;
679
- domain: convex_values6.VString<string, "required">;
680
- isPrimary: convex_values6.VBoolean<boolean, "required">;
681
- verifiedAt: convex_values6.VFloat64<number | undefined, "optional">;
682
- }, "required", "isPrimary" | "connectionId" | "verifiedAt" | "groupId" | "domain">, {
673
+ connectionId: convex_values82.VId<convex_values82.GenericId<"GroupConnection">, "required">;
674
+ groupId: convex_values82.VId<convex_values82.GenericId<"Group">, "required">;
675
+ domain: convex_values82.VString<string, "required">;
676
+ isPrimary: convex_values82.VBoolean<boolean, "required">;
677
+ verifiedAt: convex_values82.VFloat64<number | undefined, "optional">;
678
+ }, "required", "connectionId" | "domain" | "verifiedAt" | "groupId" | "isPrimary">, {
683
679
  connection_id: ["connectionId", "_creationTime"];
684
680
  group_id: ["groupId", "_creationTime"];
685
681
  domain: ["domain", "_creationTime"];
686
682
  }, {}, {}>;
687
- SamlLoginRequest: convex_server24.TableDefinition<convex_values6.VObject<{
683
+ SamlLoginRequest: convex_server24.TableDefinition<convex_values82.VObject<{
688
684
  acceptedAt?: number | undefined;
689
- connectionId: convex_values6.GenericId<"GroupConnection">;
690
- createdAt: number;
691
- expiresAt: number;
692
685
  requestId: string;
686
+ connectionId: convex_values82.GenericId<"GroupConnection">;
687
+ expiresAt: number;
688
+ createdAt: number;
693
689
  }, {
694
- connectionId: convex_values6.VId<convex_values6.GenericId<"GroupConnection">, "required">;
695
- requestId: convex_values6.VString<string, "required">;
696
- createdAt: convex_values6.VFloat64<number, "required">;
697
- expiresAt: convex_values6.VFloat64<number, "required">;
698
- acceptedAt: convex_values6.VFloat64<number | undefined, "optional">;
699
- }, "required", "connectionId" | "createdAt" | "expiresAt" | "requestId" | "acceptedAt">, {
690
+ connectionId: convex_values82.VId<convex_values82.GenericId<"GroupConnection">, "required">;
691
+ requestId: convex_values82.VString<string, "required">;
692
+ createdAt: convex_values82.VFloat64<number, "required">;
693
+ expiresAt: convex_values82.VFloat64<number, "required">;
694
+ acceptedAt: convex_values82.VFloat64<number | undefined, "optional">;
695
+ }, "required", "requestId" | "connectionId" | "expiresAt" | "createdAt" | "acceptedAt">, {
700
696
  request_id: ["requestId", "_creationTime"];
701
697
  expires_at: ["expiresAt", "_creationTime"];
702
698
  }, {}, {}>;
703
- SamlSeenAssertion: convex_server24.TableDefinition<convex_values6.VObject<{
704
- connectionId: convex_values6.GenericId<"GroupConnection">;
699
+ SamlSeenAssertion: convex_server24.TableDefinition<convex_values82.VObject<{
700
+ connectionId: convex_values82.GenericId<"GroupConnection">;
705
701
  expiresAt: number;
706
702
  assertionId: string;
707
703
  }, {
708
- connectionId: convex_values6.VId<convex_values6.GenericId<"GroupConnection">, "required">;
709
- assertionId: convex_values6.VString<string, "required">;
710
- expiresAt: convex_values6.VFloat64<number, "required">;
704
+ connectionId: convex_values82.VId<convex_values82.GenericId<"GroupConnection">, "required">;
705
+ assertionId: convex_values82.VString<string, "required">;
706
+ expiresAt: convex_values82.VFloat64<number, "required">;
711
707
  }, "required", "connectionId" | "expiresAt" | "assertionId">, {
712
708
  connection_id_assertion_id: ["connectionId", "assertionId", "_creationTime"];
713
709
  expires_at: ["expiresAt", "_creationTime"];
714
710
  }, {}, {}>;
715
- GroupConnectionDomainVerification: convex_server24.TableDefinition<convex_values6.VObject<{
716
- connectionId: convex_values6.GenericId<"GroupConnection">;
717
- expiresAt: number;
718
- groupId: convex_values6.GenericId<"Group">;
719
- tokenHash: string;
711
+ GroupConnectionDomainVerification: convex_server24.TableDefinition<convex_values82.VObject<{
712
+ connectionId: convex_values82.GenericId<"GroupConnection">;
720
713
  domain: string;
721
- domainId: convex_values6.GenericId<"GroupConnectionDomain">;
722
714
  recordName: string;
715
+ expiresAt: number;
716
+ groupId: convex_values82.GenericId<"Group">;
717
+ tokenHash: string;
718
+ domainId: convex_values82.GenericId<"GroupConnectionDomain">;
723
719
  token: string;
724
720
  requestedAt: number;
725
721
  }, {
726
- connectionId: convex_values6.VId<convex_values6.GenericId<"GroupConnection">, "required">;
727
- groupId: convex_values6.VId<convex_values6.GenericId<"Group">, "required">;
728
- domainId: convex_values6.VId<convex_values6.GenericId<"GroupConnectionDomain">, "required">;
729
- domain: convex_values6.VString<string, "required">;
730
- recordName: convex_values6.VString<string, "required">;
731
- token: convex_values6.VString<string, "required">;
732
- tokenHash: convex_values6.VString<string, "required">;
733
- requestedAt: convex_values6.VFloat64<number, "required">;
734
- expiresAt: convex_values6.VFloat64<number, "required">;
735
- }, "required", "connectionId" | "expiresAt" | "groupId" | "tokenHash" | "domain" | "domainId" | "recordName" | "token" | "requestedAt">, {
722
+ connectionId: convex_values82.VId<convex_values82.GenericId<"GroupConnection">, "required">;
723
+ groupId: convex_values82.VId<convex_values82.GenericId<"Group">, "required">;
724
+ domainId: convex_values82.VId<convex_values82.GenericId<"GroupConnectionDomain">, "required">;
725
+ domain: convex_values82.VString<string, "required">;
726
+ recordName: convex_values82.VString<string, "required">;
727
+ token: convex_values82.VString<string, "required">;
728
+ tokenHash: convex_values82.VString<string, "required">;
729
+ requestedAt: convex_values82.VFloat64<number, "required">;
730
+ expiresAt: convex_values82.VFloat64<number, "required">;
731
+ }, "required", "connectionId" | "domain" | "recordName" | "expiresAt" | "groupId" | "tokenHash" | "domainId" | "token" | "requestedAt">, {
736
732
  connection_id: ["connectionId", "_creationTime"];
737
733
  domain_id: ["domainId", "_creationTime"];
738
734
  token_hash: ["tokenHash", "_creationTime"];
739
735
  expires_at: ["expiresAt", "_creationTime"];
740
736
  }, {}, {}>;
741
- GroupConnectionSecret: convex_server24.TableDefinition<convex_values6.VObject<{
742
- connectionId: convex_values6.GenericId<"GroupConnection">;
743
- updatedAt: number;
744
- groupId: convex_values6.GenericId<"Group">;
737
+ GroupConnectionSecret: convex_server24.TableDefinition<convex_values82.VObject<{
745
738
  kind: "oidc_client_secret";
739
+ connectionId: convex_values82.GenericId<"GroupConnection">;
740
+ groupId: convex_values82.GenericId<"Group">;
741
+ updatedAt: number;
746
742
  ciphertext: string;
747
743
  }, {
748
- connectionId: convex_values6.VId<convex_values6.GenericId<"GroupConnection">, "required">;
749
- groupId: convex_values6.VId<convex_values6.GenericId<"Group">, "required">;
750
- kind: convex_values6.VUnion<"oidc_client_secret", [convex_values6.VLiteral<"oidc_client_secret", "required">], "required", never>;
751
- ciphertext: convex_values6.VString<string, "required">;
752
- updatedAt: convex_values6.VFloat64<number, "required">;
753
- }, "required", "connectionId" | "updatedAt" | "groupId" | "kind" | "ciphertext">, {
744
+ connectionId: convex_values82.VId<convex_values82.GenericId<"GroupConnection">, "required">;
745
+ groupId: convex_values82.VId<convex_values82.GenericId<"Group">, "required">;
746
+ kind: convex_values82.VUnion<"oidc_client_secret", [convex_values82.VLiteral<"oidc_client_secret", "required">], "required", never>;
747
+ ciphertext: convex_values82.VString<string, "required">;
748
+ updatedAt: convex_values82.VFloat64<number, "required">;
749
+ }, "required", "kind" | "connectionId" | "groupId" | "updatedAt" | "ciphertext">, {
754
750
  connection_id: ["connectionId", "_creationTime"];
755
751
  connection_id_kind: ["connectionId", "kind", "_creationTime"];
756
752
  group_id: ["groupId", "_creationTime"];
757
753
  }, {}, {}>;
758
- GroupConnectionScimConfig: convex_server24.TableDefinition<convex_values6.VObject<{
754
+ GroupConnectionScimConfig: convex_server24.TableDefinition<convex_values82.VObject<{
759
755
  extend?: any;
760
756
  lastRotatedAt?: number | undefined;
761
- connectionId: convex_values6.GenericId<"GroupConnection">;
762
- status: "draft" | "active" | "disabled";
763
- groupId: convex_values6.GenericId<"Group">;
757
+ connectionId: convex_values82.GenericId<"GroupConnection">;
758
+ groupId: convex_values82.GenericId<"Group">;
759
+ status: "active" | "draft" | "disabled";
764
760
  tokenHash: string;
765
761
  basePath: string;
766
762
  }, {
767
- connectionId: convex_values6.VId<convex_values6.GenericId<"GroupConnection">, "required">;
768
- groupId: convex_values6.VId<convex_values6.GenericId<"Group">, "required">;
769
- status: convex_values6.VUnion<"draft" | "active" | "disabled", [convex_values6.VLiteral<"draft", "required">, convex_values6.VLiteral<"active", "required">, convex_values6.VLiteral<"disabled", "required">], "required", never>;
770
- basePath: convex_values6.VString<string, "required">;
771
- tokenHash: convex_values6.VString<string, "required">;
772
- lastRotatedAt: convex_values6.VFloat64<number | undefined, "optional">;
773
- extend: convex_values6.VAny<any, "optional", string>;
774
- }, "required", "extend" | `extend.${string}` | "connectionId" | "status" | "groupId" | "tokenHash" | "basePath" | "lastRotatedAt">, {
763
+ connectionId: convex_values82.VId<convex_values82.GenericId<"GroupConnection">, "required">;
764
+ groupId: convex_values82.VId<convex_values82.GenericId<"Group">, "required">;
765
+ status: convex_values82.VUnion<"active" | "draft" | "disabled", [convex_values82.VLiteral<"draft", "required">, convex_values82.VLiteral<"active", "required">, convex_values82.VLiteral<"disabled", "required">], "required", never>;
766
+ basePath: convex_values82.VString<string, "required">;
767
+ tokenHash: convex_values82.VString<string, "required">;
768
+ lastRotatedAt: convex_values82.VFloat64<number | undefined, "optional">;
769
+ extend: convex_values82.VAny<any, "optional", string>;
770
+ }, "required", "extend" | "connectionId" | "groupId" | "status" | `extend.${string}` | "tokenHash" | "basePath" | "lastRotatedAt">, {
775
771
  group_connection_id: ["connectionId", "_creationTime"];
776
772
  group_id: ["groupId", "_creationTime"];
777
773
  token_hash: ["tokenHash", "_creationTime"];
778
774
  status: ["status", "_creationTime"];
779
775
  }, {}, {}>;
780
- GroupConnectionScimIdentity: convex_server24.TableDefinition<convex_values6.VObject<{
781
- userId?: convex_values6.GenericId<"User"> | undefined;
776
+ GroupConnectionScimIdentity: convex_server24.TableDefinition<convex_values82.VObject<{
777
+ userId?: convex_values82.GenericId<"User"> | undefined;
778
+ externalId?: string | undefined;
782
779
  active?: boolean | undefined;
783
- mappedGroupId?: convex_values6.GenericId<"Group"> | undefined;
780
+ mappedGroupId?: convex_values82.GenericId<"Group"> | undefined;
784
781
  lastProvisionedAt?: number | undefined;
785
782
  raw?: any;
786
- connectionId: convex_values6.GenericId<"GroupConnection">;
787
- externalId: string;
788
- groupId: convex_values6.GenericId<"Group">;
783
+ connectionId: convex_values82.GenericId<"GroupConnection">;
789
784
  resourceType: "user" | "group";
785
+ groupId: convex_values82.GenericId<"Group">;
790
786
  }, {
791
- connectionId: convex_values6.VId<convex_values6.GenericId<"GroupConnection">, "required">;
792
- groupId: convex_values6.VId<convex_values6.GenericId<"Group">, "required">;
793
- resourceType: convex_values6.VUnion<"user" | "group", [convex_values6.VLiteral<"user", "required">, convex_values6.VLiteral<"group", "required">], "required", never>;
794
- externalId: convex_values6.VString<string, "required">;
795
- userId: convex_values6.VId<convex_values6.GenericId<"User"> | undefined, "optional">;
796
- mappedGroupId: convex_values6.VId<convex_values6.GenericId<"Group"> | undefined, "optional">;
797
- lastProvisionedAt: convex_values6.VFloat64<number | undefined, "optional">;
798
- active: convex_values6.VBoolean<boolean | undefined, "optional">;
799
- raw: convex_values6.VAny<any, "optional", string>;
800
- }, "required", "userId" | "connectionId" | "externalId" | "groupId" | "active" | "resourceType" | "mappedGroupId" | "lastProvisionedAt" | "raw" | `raw.${string}`>, {
787
+ connectionId: convex_values82.VId<convex_values82.GenericId<"GroupConnection">, "required">;
788
+ groupId: convex_values82.VId<convex_values82.GenericId<"Group">, "required">;
789
+ resourceType: convex_values82.VUnion<"user" | "group", [convex_values82.VLiteral<"user", "required">, convex_values82.VLiteral<"group", "required">], "required", never>;
790
+ externalId: convex_values82.VString<string | undefined, "optional">;
791
+ userId: convex_values82.VId<convex_values82.GenericId<"User"> | undefined, "optional">;
792
+ mappedGroupId: convex_values82.VId<convex_values82.GenericId<"Group"> | undefined, "optional">;
793
+ lastProvisionedAt: convex_values82.VFloat64<number | undefined, "optional">;
794
+ active: convex_values82.VBoolean<boolean | undefined, "optional">;
795
+ raw: convex_values82.VAny<any, "optional", string>;
796
+ }, "required", "userId" | "connectionId" | "resourceType" | "externalId" | "active" | "groupId" | "mappedGroupId" | "lastProvisionedAt" | "raw" | `raw.${string}`>, {
801
797
  group_connection_id: ["connectionId", "_creationTime"];
802
798
  group_id: ["groupId", "_creationTime"];
803
799
  group_connection_id_resource_type_external_id: ["connectionId", "resourceType", "externalId", "_creationTime"];
@@ -805,46 +801,44 @@ declare const testHelpers: {
805
801
  user_id: ["userId", "_creationTime"];
806
802
  mapped_group_id: ["mappedGroupId", "_creationTime"];
807
803
  }, {}, {}>;
808
- AuthEventProjection: convex_server24.TableDefinition<convex_values6.VObject<{
804
+ AuthEventProjection: convex_server24.TableDefinition<convex_values82.VObject<{
809
805
  requestId?: string | undefined;
810
- actorId?: string | undefined;
811
- subjectId?: string | undefined;
812
- errorCode?: string | undefined;
813
806
  ip?: string | undefined;
814
807
  userAgent?: string | undefined;
808
+ errorCode?: string | undefined;
815
809
  data?: {
810
+ profile?: Record<string, any> | undefined;
816
811
  type?: string | undefined;
817
812
  provider?: string | undefined;
818
- profile?: Record<string, any> | undefined;
819
813
  existingUserId?: string | undefined;
820
814
  } | {
821
815
  method?: string | undefined;
822
816
  provider: string;
823
817
  } | {
818
+ flow?: "reset" | "change" | undefined;
824
819
  userId?: string | undefined;
825
- sessionId?: string | undefined;
826
820
  reason?: string | undefined;
821
+ sessionId?: string | undefined;
827
822
  refreshTokenId?: string | undefined;
828
- flow?: "reset" | "change" | undefined;
829
823
  } | {
830
- accountId?: string | undefined;
831
824
  provider?: string | undefined;
832
825
  providerAccountId?: string | undefined;
826
+ accountId?: string | undefined;
833
827
  } | {
834
- name?: string | undefined;
835
- credentialId?: string | undefined;
836
828
  reason?: string | undefined;
837
829
  passkeyId?: string | undefined;
830
+ credentialId?: string | undefined;
838
831
  totpId?: string | undefined;
839
832
  keyId?: string | undefined;
833
+ name?: string | undefined;
840
834
  prefix?: string | undefined;
841
835
  } | {
842
836
  email?: string | undefined;
843
837
  phone?: string | undefined;
844
838
  userId?: string | undefined;
845
839
  } | {
846
- name?: string | undefined;
847
840
  userId?: string | undefined;
841
+ name?: string | undefined;
848
842
  clientId?: string | undefined;
849
843
  codeId?: string | undefined;
850
844
  scopes?: string[] | undefined;
@@ -852,16 +846,15 @@ declare const testHelpers: {
852
846
  grantType?: string | undefined;
853
847
  resource?: string | undefined;
854
848
  } | {
849
+ errorCode?: string | undefined;
855
850
  userId?: string | undefined;
856
851
  connectionId?: string | undefined;
857
- verifiedAt?: number | undefined;
858
- expiresAt?: number | undefined;
859
- version?: number | undefined;
852
+ changed?: string[] | undefined;
860
853
  protocol?: "oidc" | "saml" | undefined;
861
854
  domain?: string | undefined;
862
855
  recordName?: string | undefined;
863
- errorCode?: string | undefined;
864
- changed?: string[] | undefined;
856
+ expiresAt?: number | undefined;
857
+ verifiedAt?: number | undefined;
865
858
  metadataUrl?: string | undefined;
866
859
  domains?: string[] | undefined;
867
860
  issuer?: string | undefined;
@@ -869,82 +862,85 @@ declare const testHelpers: {
869
862
  jwksUri?: string | undefined;
870
863
  audience?: string | string[] | undefined;
871
864
  tokenEndpointAuthMethod?: string | undefined;
865
+ version?: number | undefined;
872
866
  } | {
873
867
  userId?: string | undefined;
868
+ scimConfigId?: string | undefined;
869
+ resourceType?: "user" | "group" | undefined;
870
+ resourceId?: string | undefined;
874
871
  operation?: string | undefined;
875
872
  externalId?: string | undefined;
876
- groupId?: string | undefined;
877
873
  active?: boolean | undefined;
878
- resourceType?: "user" | "group" | undefined;
879
- scimConfigId?: string | undefined;
880
- resourceId?: string | undefined;
874
+ groupId?: string | undefined;
881
875
  } | {
882
- status?: number | undefined;
883
876
  endpointId?: string | undefined;
884
877
  deliveryId?: string | undefined;
885
878
  sourceEventId?: string | undefined;
886
879
  sourceEventType?: "user.created" | "user.updated" | "session.signed_in" | "session.signed_out" | "session.invalidated" | "session.refresh_exchanged" | "session.refresh_reuse_detected" | "account.linked" | "account.unlinked" | "password.changed" | "passkey.added" | "passkey.removed" | "totp.enrolled" | "totp.removed" | "email.verified" | "phone.verified" | "api_key.created" | "api_key.revoked" | "oauth.client.created" | "oauth.client.revoked" | "oauth.code.created" | "oauth.token.created" | "oauth.token.exchanged" | "oauth.refresh.reuse_detected" | "oauth.refresh.revoked" | "connection.created" | "connection.updated" | "connection.removed" | "connection.login.succeeded" | "connection.login.failed" | "connection.domain.verification_requested" | "connection.domain.verified" | "connection.policy.updated" | "connection.saml.set" | "connection.saml.refreshed" | "connection.oidc.set" | "connection.scim.set" | "connection.scim.read" | "connection.scim.user.provisioned" | "connection.scim.user.updated" | "connection.scim.user.deactivated" | "connection.scim.user.reactivated" | "connection.scim.group.provisioned" | "connection.scim.group.updated" | "connection.scim.group.deactivated" | "connection.scim.group.reactivated" | "webhook.endpoint.created" | "webhook.endpoint.disabled" | "webhook.delivery.created" | "webhook.delivery.attempted" | "webhook.delivery.succeeded" | "webhook.delivery.failed" | undefined;
887
880
  attemptCount?: number | undefined;
881
+ status?: number | undefined;
888
882
  error?: string | undefined;
889
883
  } | undefined;
884
+ actorId?: string | undefined;
885
+ subjectId?: string | undefined;
886
+ eventId: string;
890
887
  kind: "user.created" | "user.updated" | "session.signed_in" | "session.signed_out" | "session.invalidated" | "session.refresh_exchanged" | "session.refresh_reuse_detected" | "account.linked" | "account.unlinked" | "password.changed" | "passkey.added" | "passkey.removed" | "totp.enrolled" | "totp.removed" | "email.verified" | "phone.verified" | "api_key.created" | "api_key.revoked" | "oauth.client.created" | "oauth.client.revoked" | "oauth.code.created" | "oauth.token.created" | "oauth.token.exchanged" | "oauth.refresh.reuse_detected" | "oauth.refresh.revoked" | "connection.created" | "connection.updated" | "connection.removed" | "connection.login.succeeded" | "connection.login.failed" | "connection.domain.verification_requested" | "connection.domain.verified" | "connection.policy.updated" | "connection.saml.set" | "connection.saml.refreshed" | "connection.oidc.set" | "connection.scim.set" | "connection.scim.read" | "connection.scim.user.provisioned" | "connection.scim.user.updated" | "connection.scim.user.deactivated" | "connection.scim.user.reactivated" | "connection.scim.group.provisioned" | "connection.scim.group.updated" | "connection.scim.group.deactivated" | "connection.scim.group.reactivated" | "webhook.endpoint.created" | "webhook.endpoint.disabled" | "webhook.delivery.created" | "webhook.delivery.attempted" | "webhook.delivery.succeeded" | "webhook.delivery.failed";
891
- targetKind: "user" | "connection" | "group" | "session" | "api_key" | "oauth_client" | "global";
892
- category: "email" | "phone" | "password" | "oauth" | "scim" | "user" | "connection" | "session" | "account" | "passkey" | "totp" | "api_key" | "webhook" | "security";
893
- actorType: "scim" | "user" | "api_key" | "webhook" | "oauth_client" | "system" | "anonymous";
894
- subjectType: "email" | "phone" | "user" | "connection" | "group" | "session" | "account" | "passkey" | "totp" | "api_key" | "oauth_client" | "system" | "oauth_code" | "scim_identity" | "webhook_endpoint" | "webhook_delivery";
888
+ category: "email" | "password" | "phone" | "user" | "session" | "account" | "passkey" | "totp" | "api_key" | "oauth" | "connection" | "scim" | "webhook" | "security";
889
+ occurredAt: number;
895
890
  outcome: "success" | "failure";
896
- eventId: string;
891
+ targetKind: "user" | "session" | "api_key" | "connection" | "oauth_client" | "group" | "global";
892
+ actorType: "user" | "api_key" | "scim" | "webhook" | "system" | "oauth_client" | "anonymous";
893
+ subjectType: "email" | "phone" | "user" | "session" | "account" | "passkey" | "totp" | "api_key" | "connection" | "system" | "oauth_client" | "oauth_code" | "group" | "scim_identity" | "webhook_endpoint" | "webhook_delivery";
897
894
  targetId: string;
898
- occurredAt: number;
899
895
  }, {
900
- eventId: convex_values6.VString<string, "required">;
901
- targetKind: convex_values6.VUnion<"user" | "connection" | "group" | "session" | "api_key" | "oauth_client" | "global", [convex_values6.VLiteral<"user", "required">, convex_values6.VLiteral<"session", "required">, convex_values6.VLiteral<"group", "required">, convex_values6.VLiteral<"connection", "required">, convex_values6.VLiteral<"oauth_client", "required">, convex_values6.VLiteral<"api_key", "required">, convex_values6.VLiteral<"global", "required">], "required", never>;
902
- targetId: convex_values6.VString<string, "required">;
903
- kind: convex_values6.VUnion<"user.created" | "user.updated" | "session.signed_in" | "session.signed_out" | "session.invalidated" | "session.refresh_exchanged" | "session.refresh_reuse_detected" | "account.linked" | "account.unlinked" | "password.changed" | "passkey.added" | "passkey.removed" | "totp.enrolled" | "totp.removed" | "email.verified" | "phone.verified" | "api_key.created" | "api_key.revoked" | "oauth.client.created" | "oauth.client.revoked" | "oauth.code.created" | "oauth.token.created" | "oauth.token.exchanged" | "oauth.refresh.reuse_detected" | "oauth.refresh.revoked" | "connection.created" | "connection.updated" | "connection.removed" | "connection.login.succeeded" | "connection.login.failed" | "connection.domain.verification_requested" | "connection.domain.verified" | "connection.policy.updated" | "connection.saml.set" | "connection.saml.refreshed" | "connection.oidc.set" | "connection.scim.set" | "connection.scim.read" | "connection.scim.user.provisioned" | "connection.scim.user.updated" | "connection.scim.user.deactivated" | "connection.scim.user.reactivated" | "connection.scim.group.provisioned" | "connection.scim.group.updated" | "connection.scim.group.deactivated" | "connection.scim.group.reactivated" | "webhook.endpoint.created" | "webhook.endpoint.disabled" | "webhook.delivery.created" | "webhook.delivery.attempted" | "webhook.delivery.succeeded" | "webhook.delivery.failed", convex_values6.VLiteral<"user.created" | "user.updated" | "session.signed_in" | "session.signed_out" | "session.invalidated" | "session.refresh_exchanged" | "session.refresh_reuse_detected" | "account.linked" | "account.unlinked" | "password.changed" | "passkey.added" | "passkey.removed" | "totp.enrolled" | "totp.removed" | "email.verified" | "phone.verified" | "api_key.created" | "api_key.revoked" | "oauth.client.created" | "oauth.client.revoked" | "oauth.code.created" | "oauth.token.created" | "oauth.token.exchanged" | "oauth.refresh.reuse_detected" | "oauth.refresh.revoked" | "connection.created" | "connection.updated" | "connection.removed" | "connection.login.succeeded" | "connection.login.failed" | "connection.domain.verification_requested" | "connection.domain.verified" | "connection.policy.updated" | "connection.saml.set" | "connection.saml.refreshed" | "connection.oidc.set" | "connection.scim.set" | "connection.scim.read" | "connection.scim.user.provisioned" | "connection.scim.user.updated" | "connection.scim.user.deactivated" | "connection.scim.user.reactivated" | "connection.scim.group.provisioned" | "connection.scim.group.updated" | "connection.scim.group.deactivated" | "connection.scim.group.reactivated" | "webhook.endpoint.created" | "webhook.endpoint.disabled" | "webhook.delivery.created" | "webhook.delivery.attempted" | "webhook.delivery.succeeded" | "webhook.delivery.failed", "required">[], "required", never>;
904
- category: convex_values6.VUnion<"email" | "phone" | "password" | "oauth" | "scim" | "user" | "connection" | "session" | "account" | "passkey" | "totp" | "api_key" | "webhook" | "security", convex_values6.VLiteral<"email" | "phone" | "password" | "oauth" | "scim" | "user" | "connection" | "session" | "account" | "passkey" | "totp" | "api_key" | "webhook" | "security", "required">[], "required", never>;
905
- occurredAt: convex_values6.VFloat64<number, "required">;
906
- actorType: convex_values6.VUnion<"scim" | "user" | "api_key" | "webhook" | "oauth_client" | "system" | "anonymous", [convex_values6.VLiteral<"user", "required">, convex_values6.VLiteral<"system", "required">, convex_values6.VLiteral<"scim", "required">, convex_values6.VLiteral<"api_key", "required">, convex_values6.VLiteral<"oauth_client", "required">, convex_values6.VLiteral<"webhook", "required">, convex_values6.VLiteral<"anonymous", "required">], "required", never>;
907
- actorId: convex_values6.VString<string | undefined, "optional">;
908
- subjectType: convex_values6.VUnion<"email" | "phone" | "user" | "connection" | "group" | "session" | "account" | "passkey" | "totp" | "api_key" | "oauth_client" | "system" | "oauth_code" | "scim_identity" | "webhook_endpoint" | "webhook_delivery", [convex_values6.VLiteral<"user", "required">, convex_values6.VLiteral<"session", "required">, convex_values6.VLiteral<"account", "required">, convex_values6.VLiteral<"passkey", "required">, convex_values6.VLiteral<"totp", "required">, convex_values6.VLiteral<"email", "required">, convex_values6.VLiteral<"phone", "required">, convex_values6.VLiteral<"api_key", "required">, convex_values6.VLiteral<"oauth_client", "required">, convex_values6.VLiteral<"oauth_code", "required">, convex_values6.VLiteral<"group", "required">, convex_values6.VLiteral<"connection", "required">, convex_values6.VLiteral<"scim_identity", "required">, convex_values6.VLiteral<"webhook_endpoint", "required">, convex_values6.VLiteral<"webhook_delivery", "required">, convex_values6.VLiteral<"system", "required">], "required", never>;
909
- subjectId: convex_values6.VString<string | undefined, "optional">;
910
- outcome: convex_values6.VUnion<"success" | "failure", [convex_values6.VLiteral<"success", "required">, convex_values6.VLiteral<"failure", "required">], "required", never>;
911
- errorCode: convex_values6.VString<string | undefined, "optional">;
912
- requestId: convex_values6.VString<string | undefined, "optional">;
913
- ip: convex_values6.VString<string | undefined, "optional">;
914
- userAgent: convex_values6.VString<string | undefined, "optional">;
915
- data: convex_values6.VUnion<{
896
+ eventId: convex_values82.VString<string, "required">;
897
+ targetKind: convex_values82.VUnion<"user" | "session" | "api_key" | "connection" | "oauth_client" | "group" | "global", [convex_values82.VLiteral<"user", "required">, convex_values82.VLiteral<"session", "required">, convex_values82.VLiteral<"group", "required">, convex_values82.VLiteral<"connection", "required">, convex_values82.VLiteral<"oauth_client", "required">, convex_values82.VLiteral<"api_key", "required">, convex_values82.VLiteral<"global", "required">], "required", never>;
898
+ targetId: convex_values82.VString<string, "required">;
899
+ kind: convex_values82.VUnion<"user.created" | "user.updated" | "session.signed_in" | "session.signed_out" | "session.invalidated" | "session.refresh_exchanged" | "session.refresh_reuse_detected" | "account.linked" | "account.unlinked" | "password.changed" | "passkey.added" | "passkey.removed" | "totp.enrolled" | "totp.removed" | "email.verified" | "phone.verified" | "api_key.created" | "api_key.revoked" | "oauth.client.created" | "oauth.client.revoked" | "oauth.code.created" | "oauth.token.created" | "oauth.token.exchanged" | "oauth.refresh.reuse_detected" | "oauth.refresh.revoked" | "connection.created" | "connection.updated" | "connection.removed" | "connection.login.succeeded" | "connection.login.failed" | "connection.domain.verification_requested" | "connection.domain.verified" | "connection.policy.updated" | "connection.saml.set" | "connection.saml.refreshed" | "connection.oidc.set" | "connection.scim.set" | "connection.scim.read" | "connection.scim.user.provisioned" | "connection.scim.user.updated" | "connection.scim.user.deactivated" | "connection.scim.user.reactivated" | "connection.scim.group.provisioned" | "connection.scim.group.updated" | "connection.scim.group.deactivated" | "connection.scim.group.reactivated" | "webhook.endpoint.created" | "webhook.endpoint.disabled" | "webhook.delivery.created" | "webhook.delivery.attempted" | "webhook.delivery.succeeded" | "webhook.delivery.failed", convex_values82.VLiteral<"user.created" | "user.updated" | "session.signed_in" | "session.signed_out" | "session.invalidated" | "session.refresh_exchanged" | "session.refresh_reuse_detected" | "account.linked" | "account.unlinked" | "password.changed" | "passkey.added" | "passkey.removed" | "totp.enrolled" | "totp.removed" | "email.verified" | "phone.verified" | "api_key.created" | "api_key.revoked" | "oauth.client.created" | "oauth.client.revoked" | "oauth.code.created" | "oauth.token.created" | "oauth.token.exchanged" | "oauth.refresh.reuse_detected" | "oauth.refresh.revoked" | "connection.created" | "connection.updated" | "connection.removed" | "connection.login.succeeded" | "connection.login.failed" | "connection.domain.verification_requested" | "connection.domain.verified" | "connection.policy.updated" | "connection.saml.set" | "connection.saml.refreshed" | "connection.oidc.set" | "connection.scim.set" | "connection.scim.read" | "connection.scim.user.provisioned" | "connection.scim.user.updated" | "connection.scim.user.deactivated" | "connection.scim.user.reactivated" | "connection.scim.group.provisioned" | "connection.scim.group.updated" | "connection.scim.group.deactivated" | "connection.scim.group.reactivated" | "webhook.endpoint.created" | "webhook.endpoint.disabled" | "webhook.delivery.created" | "webhook.delivery.attempted" | "webhook.delivery.succeeded" | "webhook.delivery.failed", "required">[], "required", never>;
900
+ category: convex_values82.VUnion<"email" | "password" | "phone" | "user" | "session" | "account" | "passkey" | "totp" | "api_key" | "oauth" | "connection" | "scim" | "webhook" | "security", convex_values82.VLiteral<"email" | "password" | "phone" | "user" | "session" | "account" | "passkey" | "totp" | "api_key" | "oauth" | "connection" | "scim" | "webhook" | "security", "required">[], "required", never>;
901
+ occurredAt: convex_values82.VFloat64<number, "required">;
902
+ actorType: convex_values82.VUnion<"user" | "api_key" | "scim" | "webhook" | "system" | "oauth_client" | "anonymous", [convex_values82.VLiteral<"user", "required">, convex_values82.VLiteral<"system", "required">, convex_values82.VLiteral<"scim", "required">, convex_values82.VLiteral<"api_key", "required">, convex_values82.VLiteral<"oauth_client", "required">, convex_values82.VLiteral<"webhook", "required">, convex_values82.VLiteral<"anonymous", "required">], "required", never>;
903
+ actorId: convex_values82.VString<string | undefined, "optional">;
904
+ subjectType: convex_values82.VUnion<"email" | "phone" | "user" | "session" | "account" | "passkey" | "totp" | "api_key" | "connection" | "system" | "oauth_client" | "oauth_code" | "group" | "scim_identity" | "webhook_endpoint" | "webhook_delivery", [convex_values82.VLiteral<"user", "required">, convex_values82.VLiteral<"session", "required">, convex_values82.VLiteral<"account", "required">, convex_values82.VLiteral<"passkey", "required">, convex_values82.VLiteral<"totp", "required">, convex_values82.VLiteral<"email", "required">, convex_values82.VLiteral<"phone", "required">, convex_values82.VLiteral<"api_key", "required">, convex_values82.VLiteral<"oauth_client", "required">, convex_values82.VLiteral<"oauth_code", "required">, convex_values82.VLiteral<"group", "required">, convex_values82.VLiteral<"connection", "required">, convex_values82.VLiteral<"scim_identity", "required">, convex_values82.VLiteral<"webhook_endpoint", "required">, convex_values82.VLiteral<"webhook_delivery", "required">, convex_values82.VLiteral<"system", "required">], "required", never>;
905
+ subjectId: convex_values82.VString<string | undefined, "optional">;
906
+ outcome: convex_values82.VUnion<"success" | "failure", [convex_values82.VLiteral<"success", "required">, convex_values82.VLiteral<"failure", "required">], "required", never>;
907
+ errorCode: convex_values82.VString<string | undefined, "optional">;
908
+ requestId: convex_values82.VString<string | undefined, "optional">;
909
+ ip: convex_values82.VString<string | undefined, "optional">;
910
+ userAgent: convex_values82.VString<string | undefined, "optional">;
911
+ data: convex_values82.VUnion<{
912
+ profile?: Record<string, any> | undefined;
916
913
  type?: string | undefined;
917
914
  provider?: string | undefined;
918
- profile?: Record<string, any> | undefined;
919
915
  existingUserId?: string | undefined;
920
916
  } | {
921
917
  method?: string | undefined;
922
918
  provider: string;
923
919
  } | {
920
+ flow?: "reset" | "change" | undefined;
924
921
  userId?: string | undefined;
925
- sessionId?: string | undefined;
926
922
  reason?: string | undefined;
923
+ sessionId?: string | undefined;
927
924
  refreshTokenId?: string | undefined;
928
- flow?: "reset" | "change" | undefined;
929
925
  } | {
930
- accountId?: string | undefined;
931
926
  provider?: string | undefined;
932
927
  providerAccountId?: string | undefined;
928
+ accountId?: string | undefined;
933
929
  } | {
934
- name?: string | undefined;
935
- credentialId?: string | undefined;
936
930
  reason?: string | undefined;
937
931
  passkeyId?: string | undefined;
932
+ credentialId?: string | undefined;
938
933
  totpId?: string | undefined;
939
934
  keyId?: string | undefined;
935
+ name?: string | undefined;
940
936
  prefix?: string | undefined;
941
937
  } | {
942
938
  email?: string | undefined;
943
939
  phone?: string | undefined;
944
940
  userId?: string | undefined;
945
941
  } | {
946
- name?: string | undefined;
947
942
  userId?: string | undefined;
943
+ name?: string | undefined;
948
944
  clientId?: string | undefined;
949
945
  codeId?: string | undefined;
950
946
  scopes?: string[] | undefined;
@@ -952,16 +948,15 @@ declare const testHelpers: {
952
948
  grantType?: string | undefined;
953
949
  resource?: string | undefined;
954
950
  } | {
951
+ errorCode?: string | undefined;
955
952
  userId?: string | undefined;
956
953
  connectionId?: string | undefined;
957
- verifiedAt?: number | undefined;
958
- expiresAt?: number | undefined;
959
- version?: number | undefined;
954
+ changed?: string[] | undefined;
960
955
  protocol?: "oidc" | "saml" | undefined;
961
956
  domain?: string | undefined;
962
957
  recordName?: string | undefined;
963
- errorCode?: string | undefined;
964
- changed?: string[] | undefined;
958
+ expiresAt?: number | undefined;
959
+ verifiedAt?: number | undefined;
965
960
  metadataUrl?: string | undefined;
966
961
  domains?: string[] | undefined;
967
962
  issuer?: string | undefined;
@@ -969,86 +964,87 @@ declare const testHelpers: {
969
964
  jwksUri?: string | undefined;
970
965
  audience?: string | string[] | undefined;
971
966
  tokenEndpointAuthMethod?: string | undefined;
967
+ version?: number | undefined;
972
968
  } | {
973
969
  userId?: string | undefined;
970
+ scimConfigId?: string | undefined;
971
+ resourceType?: "user" | "group" | undefined;
972
+ resourceId?: string | undefined;
974
973
  operation?: string | undefined;
975
974
  externalId?: string | undefined;
976
- groupId?: string | undefined;
977
975
  active?: boolean | undefined;
978
- resourceType?: "user" | "group" | undefined;
979
- scimConfigId?: string | undefined;
980
- resourceId?: string | undefined;
976
+ groupId?: string | undefined;
981
977
  } | {
982
- status?: number | undefined;
983
978
  endpointId?: string | undefined;
984
979
  deliveryId?: string | undefined;
985
980
  sourceEventId?: string | undefined;
986
981
  sourceEventType?: "user.created" | "user.updated" | "session.signed_in" | "session.signed_out" | "session.invalidated" | "session.refresh_exchanged" | "session.refresh_reuse_detected" | "account.linked" | "account.unlinked" | "password.changed" | "passkey.added" | "passkey.removed" | "totp.enrolled" | "totp.removed" | "email.verified" | "phone.verified" | "api_key.created" | "api_key.revoked" | "oauth.client.created" | "oauth.client.revoked" | "oauth.code.created" | "oauth.token.created" | "oauth.token.exchanged" | "oauth.refresh.reuse_detected" | "oauth.refresh.revoked" | "connection.created" | "connection.updated" | "connection.removed" | "connection.login.succeeded" | "connection.login.failed" | "connection.domain.verification_requested" | "connection.domain.verified" | "connection.policy.updated" | "connection.saml.set" | "connection.saml.refreshed" | "connection.oidc.set" | "connection.scim.set" | "connection.scim.read" | "connection.scim.user.provisioned" | "connection.scim.user.updated" | "connection.scim.user.deactivated" | "connection.scim.user.reactivated" | "connection.scim.group.provisioned" | "connection.scim.group.updated" | "connection.scim.group.deactivated" | "connection.scim.group.reactivated" | "webhook.endpoint.created" | "webhook.endpoint.disabled" | "webhook.delivery.created" | "webhook.delivery.attempted" | "webhook.delivery.succeeded" | "webhook.delivery.failed" | undefined;
987
982
  attemptCount?: number | undefined;
983
+ status?: number | undefined;
988
984
  error?: string | undefined;
989
- } | undefined, [convex_values6.VObject<{
985
+ } | undefined, [convex_values82.VObject<{
986
+ profile?: Record<string, any> | undefined;
990
987
  type?: string | undefined;
991
988
  provider?: string | undefined;
992
- profile?: Record<string, any> | undefined;
993
989
  existingUserId?: string | undefined;
994
990
  }, {
995
- type: convex_values6.VString<string | undefined, "optional">;
996
- provider: convex_values6.VString<string | undefined, "optional">;
997
- profile: convex_values6.VRecord<Record<string, any> | undefined, convex_values6.VString<string, "required">, convex_values6.VAny<any, "required", string>, "optional", string>;
998
- existingUserId: convex_values6.VString<string | undefined, "optional">;
999
- }, "required", "type" | "provider" | "profile" | "existingUserId" | `profile.${string}`>, convex_values6.VObject<{
991
+ type: convex_values82.VString<string | undefined, "optional">;
992
+ provider: convex_values82.VString<string | undefined, "optional">;
993
+ profile: convex_values82.VRecord<Record<string, any> | undefined, convex_values82.VString<string, "required">, convex_values82.VAny<any, "required", string>, "optional", string>;
994
+ existingUserId: convex_values82.VString<string | undefined, "optional">;
995
+ }, "required", "profile" | "type" | "provider" | "existingUserId" | `profile.${string}`>, convex_values82.VObject<{
1000
996
  method?: string | undefined;
1001
997
  provider: string;
1002
998
  }, {
1003
- provider: convex_values6.VString<string, "required">;
1004
- method: convex_values6.VString<string | undefined, "optional">;
1005
- }, "required", "provider" | "method">, convex_values6.VObject<{
999
+ provider: convex_values82.VString<string, "required">;
1000
+ method: convex_values82.VString<string | undefined, "optional">;
1001
+ }, "required", "provider" | "method">, convex_values82.VObject<{
1002
+ flow?: "reset" | "change" | undefined;
1006
1003
  userId?: string | undefined;
1007
- sessionId?: string | undefined;
1008
1004
  reason?: string | undefined;
1005
+ sessionId?: string | undefined;
1009
1006
  refreshTokenId?: string | undefined;
1010
- flow?: "reset" | "change" | undefined;
1011
1007
  }, {
1012
- userId: convex_values6.VString<string | undefined, "optional">;
1013
- reason: convex_values6.VString<string | undefined, "optional">;
1014
- sessionId: convex_values6.VString<string | undefined, "optional">;
1015
- refreshTokenId: convex_values6.VString<string | undefined, "optional">;
1016
- flow: convex_values6.VUnion<"reset" | "change" | undefined, [convex_values6.VLiteral<"reset", "required">, convex_values6.VLiteral<"change", "required">], "optional", never>;
1017
- }, "required", "userId" | "sessionId" | "reason" | "refreshTokenId" | "flow">, convex_values6.VObject<{
1018
- accountId?: string | undefined;
1008
+ userId: convex_values82.VString<string | undefined, "optional">;
1009
+ reason: convex_values82.VString<string | undefined, "optional">;
1010
+ sessionId: convex_values82.VString<string | undefined, "optional">;
1011
+ refreshTokenId: convex_values82.VString<string | undefined, "optional">;
1012
+ flow: convex_values82.VUnion<"reset" | "change" | undefined, [convex_values82.VLiteral<"reset", "required">, convex_values82.VLiteral<"change", "required">], "optional", never>;
1013
+ }, "required", "flow" | "userId" | "reason" | "sessionId" | "refreshTokenId">, convex_values82.VObject<{
1019
1014
  provider?: string | undefined;
1020
1015
  providerAccountId?: string | undefined;
1016
+ accountId?: string | undefined;
1021
1017
  }, {
1022
- provider: convex_values6.VString<string | undefined, "optional">;
1023
- providerAccountId: convex_values6.VString<string | undefined, "optional">;
1024
- accountId: convex_values6.VString<string | undefined, "optional">;
1025
- }, "required", "accountId" | "provider" | "providerAccountId">, convex_values6.VObject<{
1026
- name?: string | undefined;
1027
- credentialId?: string | undefined;
1018
+ provider: convex_values82.VString<string | undefined, "optional">;
1019
+ providerAccountId: convex_values82.VString<string | undefined, "optional">;
1020
+ accountId: convex_values82.VString<string | undefined, "optional">;
1021
+ }, "required", "provider" | "providerAccountId" | "accountId">, convex_values82.VObject<{
1028
1022
  reason?: string | undefined;
1029
1023
  passkeyId?: string | undefined;
1024
+ credentialId?: string | undefined;
1030
1025
  totpId?: string | undefined;
1031
1026
  keyId?: string | undefined;
1027
+ name?: string | undefined;
1032
1028
  prefix?: string | undefined;
1033
1029
  }, {
1034
- passkeyId: convex_values6.VString<string | undefined, "optional">;
1035
- credentialId: convex_values6.VString<string | undefined, "optional">;
1036
- totpId: convex_values6.VString<string | undefined, "optional">;
1037
- keyId: convex_values6.VString<string | undefined, "optional">;
1038
- name: convex_values6.VString<string | undefined, "optional">;
1039
- prefix: convex_values6.VString<string | undefined, "optional">;
1040
- reason: convex_values6.VString<string | undefined, "optional">;
1041
- }, "required", "name" | "credentialId" | "reason" | "passkeyId" | "totpId" | "keyId" | "prefix">, convex_values6.VObject<{
1030
+ passkeyId: convex_values82.VString<string | undefined, "optional">;
1031
+ credentialId: convex_values82.VString<string | undefined, "optional">;
1032
+ totpId: convex_values82.VString<string | undefined, "optional">;
1033
+ keyId: convex_values82.VString<string | undefined, "optional">;
1034
+ name: convex_values82.VString<string | undefined, "optional">;
1035
+ prefix: convex_values82.VString<string | undefined, "optional">;
1036
+ reason: convex_values82.VString<string | undefined, "optional">;
1037
+ }, "required", "reason" | "passkeyId" | "credentialId" | "totpId" | "keyId" | "name" | "prefix">, convex_values82.VObject<{
1042
1038
  email?: string | undefined;
1043
1039
  phone?: string | undefined;
1044
1040
  userId?: string | undefined;
1045
1041
  }, {
1046
- email: convex_values6.VString<string | undefined, "optional">;
1047
- phone: convex_values6.VString<string | undefined, "optional">;
1048
- userId: convex_values6.VString<string | undefined, "optional">;
1049
- }, "required", "email" | "phone" | "userId">, convex_values6.VObject<{
1050
- name?: string | undefined;
1042
+ email: convex_values82.VString<string | undefined, "optional">;
1043
+ phone: convex_values82.VString<string | undefined, "optional">;
1044
+ userId: convex_values82.VString<string | undefined, "optional">;
1045
+ }, "required", "email" | "phone" | "userId">, convex_values82.VObject<{
1051
1046
  userId?: string | undefined;
1047
+ name?: string | undefined;
1052
1048
  clientId?: string | undefined;
1053
1049
  codeId?: string | undefined;
1054
1050
  scopes?: string[] | undefined;
@@ -1056,25 +1052,24 @@ declare const testHelpers: {
1056
1052
  grantType?: string | undefined;
1057
1053
  resource?: string | undefined;
1058
1054
  }, {
1059
- clientId: convex_values6.VString<string | undefined, "optional">;
1060
- codeId: convex_values6.VString<string | undefined, "optional">;
1061
- name: convex_values6.VString<string | undefined, "optional">;
1062
- scopes: convex_values6.VArray<string[] | undefined, convex_values6.VString<string, "required">, "optional">;
1063
- redirectUri: convex_values6.VString<string | undefined, "optional">;
1064
- grantType: convex_values6.VString<string | undefined, "optional">;
1065
- resource: convex_values6.VString<string | undefined, "optional">;
1066
- userId: convex_values6.VString<string | undefined, "optional">;
1067
- }, "required", "name" | "userId" | "clientId" | "codeId" | "scopes" | "redirectUri" | "grantType" | "resource">, convex_values6.VObject<{
1055
+ clientId: convex_values82.VString<string | undefined, "optional">;
1056
+ codeId: convex_values82.VString<string | undefined, "optional">;
1057
+ name: convex_values82.VString<string | undefined, "optional">;
1058
+ scopes: convex_values82.VArray<string[] | undefined, convex_values82.VString<string, "required">, "optional">;
1059
+ redirectUri: convex_values82.VString<string | undefined, "optional">;
1060
+ grantType: convex_values82.VString<string | undefined, "optional">;
1061
+ resource: convex_values82.VString<string | undefined, "optional">;
1062
+ userId: convex_values82.VString<string | undefined, "optional">;
1063
+ }, "required", "userId" | "name" | "clientId" | "codeId" | "scopes" | "redirectUri" | "grantType" | "resource">, convex_values82.VObject<{
1064
+ errorCode?: string | undefined;
1068
1065
  userId?: string | undefined;
1069
1066
  connectionId?: string | undefined;
1070
- verifiedAt?: number | undefined;
1071
- expiresAt?: number | undefined;
1072
- version?: number | undefined;
1067
+ changed?: string[] | undefined;
1073
1068
  protocol?: "oidc" | "saml" | undefined;
1074
1069
  domain?: string | undefined;
1075
1070
  recordName?: string | undefined;
1076
- errorCode?: string | undefined;
1077
- changed?: string[] | undefined;
1071
+ expiresAt?: number | undefined;
1072
+ verifiedAt?: number | undefined;
1078
1073
  metadataUrl?: string | undefined;
1079
1074
  domains?: string[] | undefined;
1080
1075
  issuer?: string | undefined;
@@ -1082,60 +1077,61 @@ declare const testHelpers: {
1082
1077
  jwksUri?: string | undefined;
1083
1078
  audience?: string | string[] | undefined;
1084
1079
  tokenEndpointAuthMethod?: string | undefined;
1080
+ version?: number | undefined;
1085
1081
  }, {
1086
- connectionId: convex_values6.VString<string | undefined, "optional">;
1087
- changed: convex_values6.VArray<string[] | undefined, convex_values6.VString<string, "required">, "optional">;
1088
- userId: convex_values6.VString<string | undefined, "optional">;
1089
- protocol: convex_values6.VUnion<"oidc" | "saml" | undefined, [convex_values6.VLiteral<"oidc", "required">, convex_values6.VLiteral<"saml", "required">], "optional", never>;
1090
- domain: convex_values6.VString<string | undefined, "optional">;
1091
- recordName: convex_values6.VString<string | undefined, "optional">;
1092
- expiresAt: convex_values6.VFloat64<number | undefined, "optional">;
1093
- verifiedAt: convex_values6.VFloat64<number | undefined, "optional">;
1094
- metadataUrl: convex_values6.VString<string | undefined, "optional">;
1095
- domains: convex_values6.VArray<string[] | undefined, convex_values6.VString<string, "required">, "optional">;
1096
- issuer: convex_values6.VString<string | undefined, "optional">;
1097
- discoveryUrl: convex_values6.VString<string | undefined, "optional">;
1098
- jwksUri: convex_values6.VString<string | undefined, "optional">;
1099
- audience: convex_values6.VUnion<string | string[] | undefined, [convex_values6.VString<string, "required">, convex_values6.VArray<string[], convex_values6.VString<string, "required">, "required">], "optional", never>;
1100
- tokenEndpointAuthMethod: convex_values6.VString<string | undefined, "optional">;
1101
- version: convex_values6.VFloat64<number | undefined, "optional">;
1102
- errorCode: convex_values6.VString<string | undefined, "optional">;
1103
- }, "required", "userId" | "connectionId" | "verifiedAt" | "expiresAt" | "version" | "protocol" | "domain" | "recordName" | "errorCode" | "changed" | "metadataUrl" | "domains" | "issuer" | "discoveryUrl" | "jwksUri" | "audience" | "tokenEndpointAuthMethod">, convex_values6.VObject<{
1082
+ connectionId: convex_values82.VString<string | undefined, "optional">;
1083
+ changed: convex_values82.VArray<string[] | undefined, convex_values82.VString<string, "required">, "optional">;
1084
+ userId: convex_values82.VString<string | undefined, "optional">;
1085
+ protocol: convex_values82.VUnion<"oidc" | "saml" | undefined, [convex_values82.VLiteral<"oidc", "required">, convex_values82.VLiteral<"saml", "required">], "optional", never>;
1086
+ domain: convex_values82.VString<string | undefined, "optional">;
1087
+ recordName: convex_values82.VString<string | undefined, "optional">;
1088
+ expiresAt: convex_values82.VFloat64<number | undefined, "optional">;
1089
+ verifiedAt: convex_values82.VFloat64<number | undefined, "optional">;
1090
+ metadataUrl: convex_values82.VString<string | undefined, "optional">;
1091
+ domains: convex_values82.VArray<string[] | undefined, convex_values82.VString<string, "required">, "optional">;
1092
+ issuer: convex_values82.VString<string | undefined, "optional">;
1093
+ discoveryUrl: convex_values82.VString<string | undefined, "optional">;
1094
+ jwksUri: convex_values82.VString<string | undefined, "optional">;
1095
+ audience: convex_values82.VUnion<string | string[] | undefined, [convex_values82.VString<string, "required">, convex_values82.VArray<string[], convex_values82.VString<string, "required">, "required">], "optional", never>;
1096
+ tokenEndpointAuthMethod: convex_values82.VString<string | undefined, "optional">;
1097
+ version: convex_values82.VFloat64<number | undefined, "optional">;
1098
+ errorCode: convex_values82.VString<string | undefined, "optional">;
1099
+ }, "required", "errorCode" | "userId" | "connectionId" | "changed" | "protocol" | "domain" | "recordName" | "expiresAt" | "verifiedAt" | "metadataUrl" | "domains" | "issuer" | "discoveryUrl" | "jwksUri" | "audience" | "tokenEndpointAuthMethod" | "version">, convex_values82.VObject<{
1104
1100
  userId?: string | undefined;
1101
+ scimConfigId?: string | undefined;
1102
+ resourceType?: "user" | "group" | undefined;
1103
+ resourceId?: string | undefined;
1105
1104
  operation?: string | undefined;
1106
1105
  externalId?: string | undefined;
1107
- groupId?: string | undefined;
1108
1106
  active?: boolean | undefined;
1109
- resourceType?: "user" | "group" | undefined;
1110
- scimConfigId?: string | undefined;
1111
- resourceId?: string | undefined;
1107
+ groupId?: string | undefined;
1112
1108
  }, {
1113
- scimConfigId: convex_values6.VString<string | undefined, "optional">;
1114
- resourceType: convex_values6.VUnion<"user" | "group" | undefined, [convex_values6.VLiteral<"user", "required">, convex_values6.VLiteral<"group", "required">], "optional", never>;
1115
- resourceId: convex_values6.VString<string | undefined, "optional">;
1116
- operation: convex_values6.VString<string | undefined, "optional">;
1117
- externalId: convex_values6.VString<string | undefined, "optional">;
1118
- active: convex_values6.VBoolean<boolean | undefined, "optional">;
1119
- groupId: convex_values6.VString<string | undefined, "optional">;
1120
- userId: convex_values6.VString<string | undefined, "optional">;
1121
- }, "required", "userId" | "operation" | "externalId" | "groupId" | "active" | "resourceType" | "scimConfigId" | "resourceId">, convex_values6.VObject<{
1122
- status?: number | undefined;
1109
+ scimConfigId: convex_values82.VString<string | undefined, "optional">;
1110
+ resourceType: convex_values82.VUnion<"user" | "group" | undefined, [convex_values82.VLiteral<"user", "required">, convex_values82.VLiteral<"group", "required">], "optional", never>;
1111
+ resourceId: convex_values82.VString<string | undefined, "optional">;
1112
+ operation: convex_values82.VString<string | undefined, "optional">;
1113
+ externalId: convex_values82.VString<string | undefined, "optional">;
1114
+ active: convex_values82.VBoolean<boolean | undefined, "optional">;
1115
+ groupId: convex_values82.VString<string | undefined, "optional">;
1116
+ userId: convex_values82.VString<string | undefined, "optional">;
1117
+ }, "required", "userId" | "scimConfigId" | "resourceType" | "resourceId" | "operation" | "externalId" | "active" | "groupId">, convex_values82.VObject<{
1123
1118
  endpointId?: string | undefined;
1124
1119
  deliveryId?: string | undefined;
1125
1120
  sourceEventId?: string | undefined;
1126
1121
  sourceEventType?: "user.created" | "user.updated" | "session.signed_in" | "session.signed_out" | "session.invalidated" | "session.refresh_exchanged" | "session.refresh_reuse_detected" | "account.linked" | "account.unlinked" | "password.changed" | "passkey.added" | "passkey.removed" | "totp.enrolled" | "totp.removed" | "email.verified" | "phone.verified" | "api_key.created" | "api_key.revoked" | "oauth.client.created" | "oauth.client.revoked" | "oauth.code.created" | "oauth.token.created" | "oauth.token.exchanged" | "oauth.refresh.reuse_detected" | "oauth.refresh.revoked" | "connection.created" | "connection.updated" | "connection.removed" | "connection.login.succeeded" | "connection.login.failed" | "connection.domain.verification_requested" | "connection.domain.verified" | "connection.policy.updated" | "connection.saml.set" | "connection.saml.refreshed" | "connection.oidc.set" | "connection.scim.set" | "connection.scim.read" | "connection.scim.user.provisioned" | "connection.scim.user.updated" | "connection.scim.user.deactivated" | "connection.scim.user.reactivated" | "connection.scim.group.provisioned" | "connection.scim.group.updated" | "connection.scim.group.deactivated" | "connection.scim.group.reactivated" | "webhook.endpoint.created" | "webhook.endpoint.disabled" | "webhook.delivery.created" | "webhook.delivery.attempted" | "webhook.delivery.succeeded" | "webhook.delivery.failed" | undefined;
1127
1122
  attemptCount?: number | undefined;
1123
+ status?: number | undefined;
1128
1124
  error?: string | undefined;
1129
1125
  }, {
1130
- endpointId: convex_values6.VString<string | undefined, "optional">;
1131
- deliveryId: convex_values6.VString<string | undefined, "optional">;
1132
- sourceEventId: convex_values6.VString<string | undefined, "optional">;
1133
- sourceEventType: convex_values6.VUnion<"user.created" | "user.updated" | "session.signed_in" | "session.signed_out" | "session.invalidated" | "session.refresh_exchanged" | "session.refresh_reuse_detected" | "account.linked" | "account.unlinked" | "password.changed" | "passkey.added" | "passkey.removed" | "totp.enrolled" | "totp.removed" | "email.verified" | "phone.verified" | "api_key.created" | "api_key.revoked" | "oauth.client.created" | "oauth.client.revoked" | "oauth.code.created" | "oauth.token.created" | "oauth.token.exchanged" | "oauth.refresh.reuse_detected" | "oauth.refresh.revoked" | "connection.created" | "connection.updated" | "connection.removed" | "connection.login.succeeded" | "connection.login.failed" | "connection.domain.verification_requested" | "connection.domain.verified" | "connection.policy.updated" | "connection.saml.set" | "connection.saml.refreshed" | "connection.oidc.set" | "connection.scim.set" | "connection.scim.read" | "connection.scim.user.provisioned" | "connection.scim.user.updated" | "connection.scim.user.deactivated" | "connection.scim.user.reactivated" | "connection.scim.group.provisioned" | "connection.scim.group.updated" | "connection.scim.group.deactivated" | "connection.scim.group.reactivated" | "webhook.endpoint.created" | "webhook.endpoint.disabled" | "webhook.delivery.created" | "webhook.delivery.attempted" | "webhook.delivery.succeeded" | "webhook.delivery.failed" | undefined, convex_values6.VLiteral<"user.created" | "user.updated" | "session.signed_in" | "session.signed_out" | "session.invalidated" | "session.refresh_exchanged" | "session.refresh_reuse_detected" | "account.linked" | "account.unlinked" | "password.changed" | "passkey.added" | "passkey.removed" | "totp.enrolled" | "totp.removed" | "email.verified" | "phone.verified" | "api_key.created" | "api_key.revoked" | "oauth.client.created" | "oauth.client.revoked" | "oauth.code.created" | "oauth.token.created" | "oauth.token.exchanged" | "oauth.refresh.reuse_detected" | "oauth.refresh.revoked" | "connection.created" | "connection.updated" | "connection.removed" | "connection.login.succeeded" | "connection.login.failed" | "connection.domain.verification_requested" | "connection.domain.verified" | "connection.policy.updated" | "connection.saml.set" | "connection.saml.refreshed" | "connection.oidc.set" | "connection.scim.set" | "connection.scim.read" | "connection.scim.user.provisioned" | "connection.scim.user.updated" | "connection.scim.user.deactivated" | "connection.scim.user.reactivated" | "connection.scim.group.provisioned" | "connection.scim.group.updated" | "connection.scim.group.deactivated" | "connection.scim.group.reactivated" | "webhook.endpoint.created" | "webhook.endpoint.disabled" | "webhook.delivery.created" | "webhook.delivery.attempted" | "webhook.delivery.succeeded" | "webhook.delivery.failed", "required">[], "optional", never>;
1134
- attemptCount: convex_values6.VFloat64<number | undefined, "optional">;
1135
- status: convex_values6.VFloat64<number | undefined, "optional">;
1136
- error: convex_values6.VString<string | undefined, "optional">;
1137
- }, "required", "status" | "endpointId" | "deliveryId" | "sourceEventId" | "sourceEventType" | "attemptCount" | "error">], "optional", "name" | "email" | "phone" | "type" | "userId" | "accountId" | "provider" | "connectionId" | "providerAccountId" | "sessionId" | "operation" | "credentialId" | "verifiedAt" | "status" | "expiresAt" | "version" | "externalId" | "protocol" | "groupId" | "active" | "domain" | "recordName" | "resourceType" | "errorCode" | "profile" | "existingUserId" | `profile.${string}` | "method" | "reason" | "refreshTokenId" | "flow" | "passkeyId" | "totpId" | "keyId" | "prefix" | "clientId" | "codeId" | "scopes" | "redirectUri" | "grantType" | "resource" | "changed" | "metadataUrl" | "domains" | "issuer" | "discoveryUrl" | "jwksUri" | "audience" | "tokenEndpointAuthMethod" | "scimConfigId" | "resourceId" | "endpointId" | "deliveryId" | "sourceEventId" | "sourceEventType" | "attemptCount" | "error">;
1138
- }, "required", "kind" | "requestId" | "targetKind" | "category" | "actorType" | "subjectType" | "outcome" | "eventId" | "targetId" | "occurredAt" | "actorId" | "subjectId" | "errorCode" | "ip" | "userAgent" | "data" | "data.name" | "data.email" | "data.phone" | "data.type" | "data.userId" | "data.accountId" | "data.provider" | "data.connectionId" | "data.providerAccountId" | "data.sessionId" | "data.operation" | "data.credentialId" | "data.verifiedAt" | "data.status" | "data.expiresAt" | "data.version" | "data.externalId" | "data.protocol" | "data.groupId" | "data.active" | "data.domain" | "data.recordName" | "data.resourceType" | "data.errorCode" | "data.profile" | "data.existingUserId" | `data.profile.${string}` | "data.method" | "data.reason" | "data.refreshTokenId" | "data.flow" | "data.passkeyId" | "data.totpId" | "data.keyId" | "data.prefix" | "data.clientId" | "data.codeId" | "data.scopes" | "data.redirectUri" | "data.grantType" | "data.resource" | "data.changed" | "data.metadataUrl" | "data.domains" | "data.issuer" | "data.discoveryUrl" | "data.jwksUri" | "data.audience" | "data.tokenEndpointAuthMethod" | "data.scimConfigId" | "data.resourceId" | "data.endpointId" | "data.deliveryId" | "data.sourceEventId" | "data.sourceEventType" | "data.attemptCount" | "data.error">, {
1126
+ endpointId: convex_values82.VString<string | undefined, "optional">;
1127
+ deliveryId: convex_values82.VString<string | undefined, "optional">;
1128
+ sourceEventId: convex_values82.VString<string | undefined, "optional">;
1129
+ sourceEventType: convex_values82.VUnion<"user.created" | "user.updated" | "session.signed_in" | "session.signed_out" | "session.invalidated" | "session.refresh_exchanged" | "session.refresh_reuse_detected" | "account.linked" | "account.unlinked" | "password.changed" | "passkey.added" | "passkey.removed" | "totp.enrolled" | "totp.removed" | "email.verified" | "phone.verified" | "api_key.created" | "api_key.revoked" | "oauth.client.created" | "oauth.client.revoked" | "oauth.code.created" | "oauth.token.created" | "oauth.token.exchanged" | "oauth.refresh.reuse_detected" | "oauth.refresh.revoked" | "connection.created" | "connection.updated" | "connection.removed" | "connection.login.succeeded" | "connection.login.failed" | "connection.domain.verification_requested" | "connection.domain.verified" | "connection.policy.updated" | "connection.saml.set" | "connection.saml.refreshed" | "connection.oidc.set" | "connection.scim.set" | "connection.scim.read" | "connection.scim.user.provisioned" | "connection.scim.user.updated" | "connection.scim.user.deactivated" | "connection.scim.user.reactivated" | "connection.scim.group.provisioned" | "connection.scim.group.updated" | "connection.scim.group.deactivated" | "connection.scim.group.reactivated" | "webhook.endpoint.created" | "webhook.endpoint.disabled" | "webhook.delivery.created" | "webhook.delivery.attempted" | "webhook.delivery.succeeded" | "webhook.delivery.failed" | undefined, convex_values82.VLiteral<"user.created" | "user.updated" | "session.signed_in" | "session.signed_out" | "session.invalidated" | "session.refresh_exchanged" | "session.refresh_reuse_detected" | "account.linked" | "account.unlinked" | "password.changed" | "passkey.added" | "passkey.removed" | "totp.enrolled" | "totp.removed" | "email.verified" | "phone.verified" | "api_key.created" | "api_key.revoked" | "oauth.client.created" | "oauth.client.revoked" | "oauth.code.created" | "oauth.token.created" | "oauth.token.exchanged" | "oauth.refresh.reuse_detected" | "oauth.refresh.revoked" | "connection.created" | "connection.updated" | "connection.removed" | "connection.login.succeeded" | "connection.login.failed" | "connection.domain.verification_requested" | "connection.domain.verified" | "connection.policy.updated" | "connection.saml.set" | "connection.saml.refreshed" | "connection.oidc.set" | "connection.scim.set" | "connection.scim.read" | "connection.scim.user.provisioned" | "connection.scim.user.updated" | "connection.scim.user.deactivated" | "connection.scim.user.reactivated" | "connection.scim.group.provisioned" | "connection.scim.group.updated" | "connection.scim.group.deactivated" | "connection.scim.group.reactivated" | "webhook.endpoint.created" | "webhook.endpoint.disabled" | "webhook.delivery.created" | "webhook.delivery.attempted" | "webhook.delivery.succeeded" | "webhook.delivery.failed", "required">[], "optional", never>;
1130
+ attemptCount: convex_values82.VFloat64<number | undefined, "optional">;
1131
+ status: convex_values82.VFloat64<number | undefined, "optional">;
1132
+ error: convex_values82.VString<string | undefined, "optional">;
1133
+ }, "required", "endpointId" | "deliveryId" | "sourceEventId" | "sourceEventType" | "attemptCount" | "status" | "error">], "optional", "profile" | "email" | "type" | "flow" | "phone" | "errorCode" | "provider" | "existingUserId" | `profile.${string}` | "method" | "userId" | "reason" | "sessionId" | "refreshTokenId" | "providerAccountId" | "accountId" | "passkeyId" | "credentialId" | "totpId" | "keyId" | "name" | "prefix" | "clientId" | "codeId" | "scopes" | "redirectUri" | "grantType" | "resource" | "connectionId" | "changed" | "protocol" | "domain" | "recordName" | "expiresAt" | "verifiedAt" | "metadataUrl" | "domains" | "issuer" | "discoveryUrl" | "jwksUri" | "audience" | "tokenEndpointAuthMethod" | "version" | "scimConfigId" | "resourceType" | "resourceId" | "operation" | "externalId" | "active" | "groupId" | "endpointId" | "deliveryId" | "sourceEventId" | "sourceEventType" | "attemptCount" | "status" | "error">;
1134
+ }, "required", "eventId" | "kind" | "category" | "occurredAt" | "requestId" | "ip" | "userAgent" | "outcome" | "errorCode" | "data" | "data.profile" | "data.email" | "data.type" | "data.flow" | "data.phone" | "data.errorCode" | "data.provider" | "data.existingUserId" | `data.profile.${string}` | "data.method" | "data.userId" | "data.reason" | "data.sessionId" | "data.refreshTokenId" | "data.providerAccountId" | "data.accountId" | "data.passkeyId" | "data.credentialId" | "data.totpId" | "data.keyId" | "data.name" | "data.prefix" | "data.clientId" | "data.codeId" | "data.scopes" | "data.redirectUri" | "data.grantType" | "data.resource" | "data.connectionId" | "data.changed" | "data.protocol" | "data.domain" | "data.recordName" | "data.expiresAt" | "data.verifiedAt" | "data.metadataUrl" | "data.domains" | "data.issuer" | "data.discoveryUrl" | "data.jwksUri" | "data.audience" | "data.tokenEndpointAuthMethod" | "data.version" | "data.scimConfigId" | "data.resourceType" | "data.resourceId" | "data.operation" | "data.externalId" | "data.active" | "data.groupId" | "data.endpointId" | "data.deliveryId" | "data.sourceEventId" | "data.sourceEventType" | "data.attemptCount" | "data.status" | "data.error" | "targetKind" | "actorType" | "subjectType" | "targetId" | "actorId" | "subjectId">, {
1139
1135
  target_time: ["targetKind", "targetId", "occurredAt", "_creationTime"];
1140
1136
  target_kind_time: ["targetKind", "targetId", "kind", "occurredAt", "_creationTime"];
1141
1137
  target_outcome_time: ["targetKind", "targetId", "outcome", "occurredAt", "_creationTime"];
@@ -1149,64 +1145,64 @@ declare const testHelpers: {
1149
1145
  request_id_time: ["requestId", "occurredAt", "_creationTime"];
1150
1146
  occurred_at: ["occurredAt", "_creationTime"];
1151
1147
  }, {}, {}>;
1152
- GroupWebhookEndpoint: convex_server24.TableDefinition<convex_values6.VObject<{
1148
+ GroupWebhookEndpoint: convex_server24.TableDefinition<convex_values82.VObject<{
1153
1149
  extend?: any;
1154
- createdByUserId?: convex_values6.GenericId<"User"> | undefined;
1150
+ createdByUserId?: convex_values82.GenericId<"User"> | undefined;
1155
1151
  lastSuccessAt?: number | undefined;
1156
1152
  lastFailureAt?: number | undefined;
1157
- connectionId: convex_values6.GenericId<"GroupConnection">;
1153
+ connectionId: convex_values82.GenericId<"GroupConnection">;
1154
+ groupId: convex_values82.GenericId<"Group">;
1158
1155
  status: "active" | "disabled";
1159
- groupId: convex_values6.GenericId<"Group">;
1160
1156
  url: string;
1161
1157
  secretCiphertext: string;
1162
1158
  subscriptions: ("user.created" | "user.updated" | "session.signed_in" | "session.signed_out" | "session.invalidated" | "session.refresh_exchanged" | "session.refresh_reuse_detected" | "account.linked" | "account.unlinked" | "password.changed" | "passkey.added" | "passkey.removed" | "totp.enrolled" | "totp.removed" | "email.verified" | "phone.verified" | "api_key.created" | "api_key.revoked" | "oauth.client.created" | "oauth.client.revoked" | "oauth.code.created" | "oauth.token.created" | "oauth.token.exchanged" | "oauth.refresh.reuse_detected" | "oauth.refresh.revoked" | "connection.created" | "connection.updated" | "connection.removed" | "connection.login.succeeded" | "connection.login.failed" | "connection.domain.verification_requested" | "connection.domain.verified" | "connection.policy.updated" | "connection.saml.set" | "connection.saml.refreshed" | "connection.oidc.set" | "connection.scim.set" | "connection.scim.read" | "connection.scim.user.provisioned" | "connection.scim.user.updated" | "connection.scim.user.deactivated" | "connection.scim.user.reactivated" | "connection.scim.group.provisioned" | "connection.scim.group.updated" | "connection.scim.group.deactivated" | "connection.scim.group.reactivated" | "webhook.endpoint.created" | "webhook.endpoint.disabled" | "webhook.delivery.created" | "webhook.delivery.attempted" | "webhook.delivery.succeeded" | "webhook.delivery.failed")[];
1163
1159
  failureCount: number;
1164
1160
  }, {
1165
- connectionId: convex_values6.VId<convex_values6.GenericId<"GroupConnection">, "required">;
1166
- groupId: convex_values6.VId<convex_values6.GenericId<"Group">, "required">;
1167
- url: convex_values6.VString<string, "required">;
1168
- status: convex_values6.VUnion<"active" | "disabled", [convex_values6.VLiteral<"active", "required">, convex_values6.VLiteral<"disabled", "required">], "required", never>;
1169
- secretCiphertext: convex_values6.VString<string, "required">;
1170
- subscriptions: convex_values6.VArray<("user.created" | "user.updated" | "session.signed_in" | "session.signed_out" | "session.invalidated" | "session.refresh_exchanged" | "session.refresh_reuse_detected" | "account.linked" | "account.unlinked" | "password.changed" | "passkey.added" | "passkey.removed" | "totp.enrolled" | "totp.removed" | "email.verified" | "phone.verified" | "api_key.created" | "api_key.revoked" | "oauth.client.created" | "oauth.client.revoked" | "oauth.code.created" | "oauth.token.created" | "oauth.token.exchanged" | "oauth.refresh.reuse_detected" | "oauth.refresh.revoked" | "connection.created" | "connection.updated" | "connection.removed" | "connection.login.succeeded" | "connection.login.failed" | "connection.domain.verification_requested" | "connection.domain.verified" | "connection.policy.updated" | "connection.saml.set" | "connection.saml.refreshed" | "connection.oidc.set" | "connection.scim.set" | "connection.scim.read" | "connection.scim.user.provisioned" | "connection.scim.user.updated" | "connection.scim.user.deactivated" | "connection.scim.user.reactivated" | "connection.scim.group.provisioned" | "connection.scim.group.updated" | "connection.scim.group.deactivated" | "connection.scim.group.reactivated" | "webhook.endpoint.created" | "webhook.endpoint.disabled" | "webhook.delivery.created" | "webhook.delivery.attempted" | "webhook.delivery.succeeded" | "webhook.delivery.failed")[], convex_values6.VUnion<"user.created" | "user.updated" | "session.signed_in" | "session.signed_out" | "session.invalidated" | "session.refresh_exchanged" | "session.refresh_reuse_detected" | "account.linked" | "account.unlinked" | "password.changed" | "passkey.added" | "passkey.removed" | "totp.enrolled" | "totp.removed" | "email.verified" | "phone.verified" | "api_key.created" | "api_key.revoked" | "oauth.client.created" | "oauth.client.revoked" | "oauth.code.created" | "oauth.token.created" | "oauth.token.exchanged" | "oauth.refresh.reuse_detected" | "oauth.refresh.revoked" | "connection.created" | "connection.updated" | "connection.removed" | "connection.login.succeeded" | "connection.login.failed" | "connection.domain.verification_requested" | "connection.domain.verified" | "connection.policy.updated" | "connection.saml.set" | "connection.saml.refreshed" | "connection.oidc.set" | "connection.scim.set" | "connection.scim.read" | "connection.scim.user.provisioned" | "connection.scim.user.updated" | "connection.scim.user.deactivated" | "connection.scim.user.reactivated" | "connection.scim.group.provisioned" | "connection.scim.group.updated" | "connection.scim.group.deactivated" | "connection.scim.group.reactivated" | "webhook.endpoint.created" | "webhook.endpoint.disabled" | "webhook.delivery.created" | "webhook.delivery.attempted" | "webhook.delivery.succeeded" | "webhook.delivery.failed", convex_values6.VLiteral<"user.created" | "user.updated" | "session.signed_in" | "session.signed_out" | "session.invalidated" | "session.refresh_exchanged" | "session.refresh_reuse_detected" | "account.linked" | "account.unlinked" | "password.changed" | "passkey.added" | "passkey.removed" | "totp.enrolled" | "totp.removed" | "email.verified" | "phone.verified" | "api_key.created" | "api_key.revoked" | "oauth.client.created" | "oauth.client.revoked" | "oauth.code.created" | "oauth.token.created" | "oauth.token.exchanged" | "oauth.refresh.reuse_detected" | "oauth.refresh.revoked" | "connection.created" | "connection.updated" | "connection.removed" | "connection.login.succeeded" | "connection.login.failed" | "connection.domain.verification_requested" | "connection.domain.verified" | "connection.policy.updated" | "connection.saml.set" | "connection.saml.refreshed" | "connection.oidc.set" | "connection.scim.set" | "connection.scim.read" | "connection.scim.user.provisioned" | "connection.scim.user.updated" | "connection.scim.user.deactivated" | "connection.scim.user.reactivated" | "connection.scim.group.provisioned" | "connection.scim.group.updated" | "connection.scim.group.deactivated" | "connection.scim.group.reactivated" | "webhook.endpoint.created" | "webhook.endpoint.disabled" | "webhook.delivery.created" | "webhook.delivery.attempted" | "webhook.delivery.succeeded" | "webhook.delivery.failed", "required">[], "required", never>, "required">;
1171
- createdByUserId: convex_values6.VId<convex_values6.GenericId<"User"> | undefined, "optional">;
1172
- lastSuccessAt: convex_values6.VFloat64<number | undefined, "optional">;
1173
- lastFailureAt: convex_values6.VFloat64<number | undefined, "optional">;
1174
- failureCount: convex_values6.VFloat64<number, "required">;
1175
- extend: convex_values6.VAny<any, "optional", string>;
1176
- }, "required", "extend" | `extend.${string}` | "connectionId" | "status" | "groupId" | "url" | "secretCiphertext" | "subscriptions" | "createdByUserId" | "lastSuccessAt" | "lastFailureAt" | "failureCount">, {
1161
+ connectionId: convex_values82.VId<convex_values82.GenericId<"GroupConnection">, "required">;
1162
+ groupId: convex_values82.VId<convex_values82.GenericId<"Group">, "required">;
1163
+ url: convex_values82.VString<string, "required">;
1164
+ status: convex_values82.VUnion<"active" | "disabled", [convex_values82.VLiteral<"active", "required">, convex_values82.VLiteral<"disabled", "required">], "required", never>;
1165
+ secretCiphertext: convex_values82.VString<string, "required">;
1166
+ subscriptions: convex_values82.VArray<("user.created" | "user.updated" | "session.signed_in" | "session.signed_out" | "session.invalidated" | "session.refresh_exchanged" | "session.refresh_reuse_detected" | "account.linked" | "account.unlinked" | "password.changed" | "passkey.added" | "passkey.removed" | "totp.enrolled" | "totp.removed" | "email.verified" | "phone.verified" | "api_key.created" | "api_key.revoked" | "oauth.client.created" | "oauth.client.revoked" | "oauth.code.created" | "oauth.token.created" | "oauth.token.exchanged" | "oauth.refresh.reuse_detected" | "oauth.refresh.revoked" | "connection.created" | "connection.updated" | "connection.removed" | "connection.login.succeeded" | "connection.login.failed" | "connection.domain.verification_requested" | "connection.domain.verified" | "connection.policy.updated" | "connection.saml.set" | "connection.saml.refreshed" | "connection.oidc.set" | "connection.scim.set" | "connection.scim.read" | "connection.scim.user.provisioned" | "connection.scim.user.updated" | "connection.scim.user.deactivated" | "connection.scim.user.reactivated" | "connection.scim.group.provisioned" | "connection.scim.group.updated" | "connection.scim.group.deactivated" | "connection.scim.group.reactivated" | "webhook.endpoint.created" | "webhook.endpoint.disabled" | "webhook.delivery.created" | "webhook.delivery.attempted" | "webhook.delivery.succeeded" | "webhook.delivery.failed")[], convex_values82.VUnion<"user.created" | "user.updated" | "session.signed_in" | "session.signed_out" | "session.invalidated" | "session.refresh_exchanged" | "session.refresh_reuse_detected" | "account.linked" | "account.unlinked" | "password.changed" | "passkey.added" | "passkey.removed" | "totp.enrolled" | "totp.removed" | "email.verified" | "phone.verified" | "api_key.created" | "api_key.revoked" | "oauth.client.created" | "oauth.client.revoked" | "oauth.code.created" | "oauth.token.created" | "oauth.token.exchanged" | "oauth.refresh.reuse_detected" | "oauth.refresh.revoked" | "connection.created" | "connection.updated" | "connection.removed" | "connection.login.succeeded" | "connection.login.failed" | "connection.domain.verification_requested" | "connection.domain.verified" | "connection.policy.updated" | "connection.saml.set" | "connection.saml.refreshed" | "connection.oidc.set" | "connection.scim.set" | "connection.scim.read" | "connection.scim.user.provisioned" | "connection.scim.user.updated" | "connection.scim.user.deactivated" | "connection.scim.user.reactivated" | "connection.scim.group.provisioned" | "connection.scim.group.updated" | "connection.scim.group.deactivated" | "connection.scim.group.reactivated" | "webhook.endpoint.created" | "webhook.endpoint.disabled" | "webhook.delivery.created" | "webhook.delivery.attempted" | "webhook.delivery.succeeded" | "webhook.delivery.failed", convex_values82.VLiteral<"user.created" | "user.updated" | "session.signed_in" | "session.signed_out" | "session.invalidated" | "session.refresh_exchanged" | "session.refresh_reuse_detected" | "account.linked" | "account.unlinked" | "password.changed" | "passkey.added" | "passkey.removed" | "totp.enrolled" | "totp.removed" | "email.verified" | "phone.verified" | "api_key.created" | "api_key.revoked" | "oauth.client.created" | "oauth.client.revoked" | "oauth.code.created" | "oauth.token.created" | "oauth.token.exchanged" | "oauth.refresh.reuse_detected" | "oauth.refresh.revoked" | "connection.created" | "connection.updated" | "connection.removed" | "connection.login.succeeded" | "connection.login.failed" | "connection.domain.verification_requested" | "connection.domain.verified" | "connection.policy.updated" | "connection.saml.set" | "connection.saml.refreshed" | "connection.oidc.set" | "connection.scim.set" | "connection.scim.read" | "connection.scim.user.provisioned" | "connection.scim.user.updated" | "connection.scim.user.deactivated" | "connection.scim.user.reactivated" | "connection.scim.group.provisioned" | "connection.scim.group.updated" | "connection.scim.group.deactivated" | "connection.scim.group.reactivated" | "webhook.endpoint.created" | "webhook.endpoint.disabled" | "webhook.delivery.created" | "webhook.delivery.attempted" | "webhook.delivery.succeeded" | "webhook.delivery.failed", "required">[], "required", never>, "required">;
1167
+ createdByUserId: convex_values82.VId<convex_values82.GenericId<"User"> | undefined, "optional">;
1168
+ lastSuccessAt: convex_values82.VFloat64<number | undefined, "optional">;
1169
+ lastFailureAt: convex_values82.VFloat64<number | undefined, "optional">;
1170
+ failureCount: convex_values82.VFloat64<number, "required">;
1171
+ extend: convex_values82.VAny<any, "optional", string>;
1172
+ }, "required", "extend" | "connectionId" | "groupId" | "status" | `extend.${string}` | "url" | "secretCiphertext" | "subscriptions" | "createdByUserId" | "lastSuccessAt" | "lastFailureAt" | "failureCount">, {
1177
1173
  group_connection_id: ["connectionId", "_creationTime"];
1178
1174
  group_id: ["groupId", "_creationTime"];
1179
1175
  status: ["status", "_creationTime"];
1180
1176
  }, {}, {}>;
1181
- GroupWebhookDelivery: convex_server24.TableDefinition<convex_values6.VObject<{
1177
+ GroupWebhookDelivery: convex_server24.TableDefinition<convex_values82.VObject<{
1182
1178
  lastAttemptAt?: number | undefined;
1183
1179
  lastResponseStatus?: number | undefined;
1184
1180
  lastError?: string | undefined;
1185
- connectionId: convex_values6.GenericId<"GroupConnection">;
1186
- signature: string;
1187
- status: "pending" | "processing" | "delivered" | "failed";
1188
- kind: "user.created" | "user.updated" | "session.signed_in" | "session.signed_out" | "session.invalidated" | "session.refresh_exchanged" | "session.refresh_reuse_detected" | "account.linked" | "account.unlinked" | "password.changed" | "passkey.added" | "passkey.removed" | "totp.enrolled" | "totp.removed" | "email.verified" | "phone.verified" | "api_key.created" | "api_key.revoked" | "oauth.client.created" | "oauth.client.revoked" | "oauth.code.created" | "oauth.token.created" | "oauth.token.exchanged" | "oauth.refresh.reuse_detected" | "oauth.refresh.revoked" | "connection.created" | "connection.updated" | "connection.removed" | "connection.login.succeeded" | "connection.login.failed" | "connection.domain.verification_requested" | "connection.domain.verified" | "connection.policy.updated" | "connection.saml.set" | "connection.saml.refreshed" | "connection.oidc.set" | "connection.scim.set" | "connection.scim.read" | "connection.scim.user.provisioned" | "connection.scim.user.updated" | "connection.scim.user.deactivated" | "connection.scim.user.reactivated" | "connection.scim.group.provisioned" | "connection.scim.group.updated" | "connection.scim.group.deactivated" | "connection.scim.group.reactivated" | "webhook.endpoint.created" | "webhook.endpoint.disabled" | "webhook.delivery.created" | "webhook.delivery.attempted" | "webhook.delivery.succeeded" | "webhook.delivery.failed";
1189
1181
  eventId: string;
1190
- endpointId: convex_values6.GenericId<"GroupWebhookEndpoint">;
1182
+ kind: "user.created" | "user.updated" | "session.signed_in" | "session.signed_out" | "session.invalidated" | "session.refresh_exchanged" | "session.refresh_reuse_detected" | "account.linked" | "account.unlinked" | "password.changed" | "passkey.added" | "passkey.removed" | "totp.enrolled" | "totp.removed" | "email.verified" | "phone.verified" | "api_key.created" | "api_key.revoked" | "oauth.client.created" | "oauth.client.revoked" | "oauth.code.created" | "oauth.token.created" | "oauth.token.exchanged" | "oauth.refresh.reuse_detected" | "oauth.refresh.revoked" | "connection.created" | "connection.updated" | "connection.removed" | "connection.login.succeeded" | "connection.login.failed" | "connection.domain.verification_requested" | "connection.domain.verified" | "connection.policy.updated" | "connection.saml.set" | "connection.saml.refreshed" | "connection.oidc.set" | "connection.scim.set" | "connection.scim.read" | "connection.scim.user.provisioned" | "connection.scim.user.updated" | "connection.scim.user.deactivated" | "connection.scim.user.reactivated" | "connection.scim.group.provisioned" | "connection.scim.group.updated" | "connection.scim.group.deactivated" | "connection.scim.group.reactivated" | "webhook.endpoint.created" | "webhook.endpoint.disabled" | "webhook.delivery.created" | "webhook.delivery.attempted" | "webhook.delivery.succeeded" | "webhook.delivery.failed";
1183
+ connectionId: convex_values82.GenericId<"GroupConnection">;
1184
+ endpointId: convex_values82.GenericId<"GroupWebhookEndpoint">;
1191
1185
  attemptCount: number;
1186
+ status: "pending" | "failed" | "processing" | "delivered";
1187
+ signature: string;
1192
1188
  nextAttemptAt: number;
1193
1189
  payload: any;
1194
1190
  signedAt: number;
1195
1191
  }, {
1196
- connectionId: convex_values6.VId<convex_values6.GenericId<"GroupConnection">, "required">;
1197
- endpointId: convex_values6.VId<convex_values6.GenericId<"GroupWebhookEndpoint">, "required">;
1198
- eventId: convex_values6.VString<string, "required">;
1199
- kind: convex_values6.VUnion<"user.created" | "user.updated" | "session.signed_in" | "session.signed_out" | "session.invalidated" | "session.refresh_exchanged" | "session.refresh_reuse_detected" | "account.linked" | "account.unlinked" | "password.changed" | "passkey.added" | "passkey.removed" | "totp.enrolled" | "totp.removed" | "email.verified" | "phone.verified" | "api_key.created" | "api_key.revoked" | "oauth.client.created" | "oauth.client.revoked" | "oauth.code.created" | "oauth.token.created" | "oauth.token.exchanged" | "oauth.refresh.reuse_detected" | "oauth.refresh.revoked" | "connection.created" | "connection.updated" | "connection.removed" | "connection.login.succeeded" | "connection.login.failed" | "connection.domain.verification_requested" | "connection.domain.verified" | "connection.policy.updated" | "connection.saml.set" | "connection.saml.refreshed" | "connection.oidc.set" | "connection.scim.set" | "connection.scim.read" | "connection.scim.user.provisioned" | "connection.scim.user.updated" | "connection.scim.user.deactivated" | "connection.scim.user.reactivated" | "connection.scim.group.provisioned" | "connection.scim.group.updated" | "connection.scim.group.deactivated" | "connection.scim.group.reactivated" | "webhook.endpoint.created" | "webhook.endpoint.disabled" | "webhook.delivery.created" | "webhook.delivery.attempted" | "webhook.delivery.succeeded" | "webhook.delivery.failed", convex_values6.VLiteral<"user.created" | "user.updated" | "session.signed_in" | "session.signed_out" | "session.invalidated" | "session.refresh_exchanged" | "session.refresh_reuse_detected" | "account.linked" | "account.unlinked" | "password.changed" | "passkey.added" | "passkey.removed" | "totp.enrolled" | "totp.removed" | "email.verified" | "phone.verified" | "api_key.created" | "api_key.revoked" | "oauth.client.created" | "oauth.client.revoked" | "oauth.code.created" | "oauth.token.created" | "oauth.token.exchanged" | "oauth.refresh.reuse_detected" | "oauth.refresh.revoked" | "connection.created" | "connection.updated" | "connection.removed" | "connection.login.succeeded" | "connection.login.failed" | "connection.domain.verification_requested" | "connection.domain.verified" | "connection.policy.updated" | "connection.saml.set" | "connection.saml.refreshed" | "connection.oidc.set" | "connection.scim.set" | "connection.scim.read" | "connection.scim.user.provisioned" | "connection.scim.user.updated" | "connection.scim.user.deactivated" | "connection.scim.user.reactivated" | "connection.scim.group.provisioned" | "connection.scim.group.updated" | "connection.scim.group.deactivated" | "connection.scim.group.reactivated" | "webhook.endpoint.created" | "webhook.endpoint.disabled" | "webhook.delivery.created" | "webhook.delivery.attempted" | "webhook.delivery.succeeded" | "webhook.delivery.failed", "required">[], "required", never>;
1200
- status: convex_values6.VUnion<"pending" | "processing" | "delivered" | "failed", [convex_values6.VLiteral<"pending", "required">, convex_values6.VLiteral<"processing", "required">, convex_values6.VLiteral<"delivered", "required">, convex_values6.VLiteral<"failed", "required">], "required", never>;
1201
- attemptCount: convex_values6.VFloat64<number, "required">;
1202
- nextAttemptAt: convex_values6.VFloat64<number, "required">;
1203
- lastAttemptAt: convex_values6.VFloat64<number | undefined, "optional">;
1204
- lastResponseStatus: convex_values6.VFloat64<number | undefined, "optional">;
1205
- lastError: convex_values6.VString<string | undefined, "optional">;
1206
- payload: convex_values6.VAny<any, "required", string>;
1207
- signature: convex_values6.VString<string, "required">;
1208
- signedAt: convex_values6.VFloat64<number, "required">;
1209
- }, "required", "connectionId" | "signature" | "status" | "kind" | "eventId" | "endpointId" | "attemptCount" | "nextAttemptAt" | "lastAttemptAt" | "lastResponseStatus" | "lastError" | "payload" | "signedAt" | `payload.${string}`>, {
1192
+ connectionId: convex_values82.VId<convex_values82.GenericId<"GroupConnection">, "required">;
1193
+ endpointId: convex_values82.VId<convex_values82.GenericId<"GroupWebhookEndpoint">, "required">;
1194
+ eventId: convex_values82.VString<string, "required">;
1195
+ kind: convex_values82.VUnion<"user.created" | "user.updated" | "session.signed_in" | "session.signed_out" | "session.invalidated" | "session.refresh_exchanged" | "session.refresh_reuse_detected" | "account.linked" | "account.unlinked" | "password.changed" | "passkey.added" | "passkey.removed" | "totp.enrolled" | "totp.removed" | "email.verified" | "phone.verified" | "api_key.created" | "api_key.revoked" | "oauth.client.created" | "oauth.client.revoked" | "oauth.code.created" | "oauth.token.created" | "oauth.token.exchanged" | "oauth.refresh.reuse_detected" | "oauth.refresh.revoked" | "connection.created" | "connection.updated" | "connection.removed" | "connection.login.succeeded" | "connection.login.failed" | "connection.domain.verification_requested" | "connection.domain.verified" | "connection.policy.updated" | "connection.saml.set" | "connection.saml.refreshed" | "connection.oidc.set" | "connection.scim.set" | "connection.scim.read" | "connection.scim.user.provisioned" | "connection.scim.user.updated" | "connection.scim.user.deactivated" | "connection.scim.user.reactivated" | "connection.scim.group.provisioned" | "connection.scim.group.updated" | "connection.scim.group.deactivated" | "connection.scim.group.reactivated" | "webhook.endpoint.created" | "webhook.endpoint.disabled" | "webhook.delivery.created" | "webhook.delivery.attempted" | "webhook.delivery.succeeded" | "webhook.delivery.failed", convex_values82.VLiteral<"user.created" | "user.updated" | "session.signed_in" | "session.signed_out" | "session.invalidated" | "session.refresh_exchanged" | "session.refresh_reuse_detected" | "account.linked" | "account.unlinked" | "password.changed" | "passkey.added" | "passkey.removed" | "totp.enrolled" | "totp.removed" | "email.verified" | "phone.verified" | "api_key.created" | "api_key.revoked" | "oauth.client.created" | "oauth.client.revoked" | "oauth.code.created" | "oauth.token.created" | "oauth.token.exchanged" | "oauth.refresh.reuse_detected" | "oauth.refresh.revoked" | "connection.created" | "connection.updated" | "connection.removed" | "connection.login.succeeded" | "connection.login.failed" | "connection.domain.verification_requested" | "connection.domain.verified" | "connection.policy.updated" | "connection.saml.set" | "connection.saml.refreshed" | "connection.oidc.set" | "connection.scim.set" | "connection.scim.read" | "connection.scim.user.provisioned" | "connection.scim.user.updated" | "connection.scim.user.deactivated" | "connection.scim.user.reactivated" | "connection.scim.group.provisioned" | "connection.scim.group.updated" | "connection.scim.group.deactivated" | "connection.scim.group.reactivated" | "webhook.endpoint.created" | "webhook.endpoint.disabled" | "webhook.delivery.created" | "webhook.delivery.attempted" | "webhook.delivery.succeeded" | "webhook.delivery.failed", "required">[], "required", never>;
1196
+ status: convex_values82.VUnion<"pending" | "failed" | "processing" | "delivered", [convex_values82.VLiteral<"pending", "required">, convex_values82.VLiteral<"processing", "required">, convex_values82.VLiteral<"delivered", "required">, convex_values82.VLiteral<"failed", "required">], "required", never>;
1197
+ attemptCount: convex_values82.VFloat64<number, "required">;
1198
+ nextAttemptAt: convex_values82.VFloat64<number, "required">;
1199
+ lastAttemptAt: convex_values82.VFloat64<number | undefined, "optional">;
1200
+ lastResponseStatus: convex_values82.VFloat64<number | undefined, "optional">;
1201
+ lastError: convex_values82.VString<string | undefined, "optional">;
1202
+ payload: convex_values82.VAny<any, "required", string>;
1203
+ signature: convex_values82.VString<string, "required">;
1204
+ signedAt: convex_values82.VFloat64<number, "required">;
1205
+ }, "required", "eventId" | "kind" | "connectionId" | "endpointId" | "attemptCount" | "status" | "signature" | "nextAttemptAt" | "lastAttemptAt" | "lastResponseStatus" | "lastError" | "payload" | "signedAt" | `payload.${string}`>, {
1210
1206
  group_connection_id: ["connectionId", "_creationTime"];
1211
1207
  status_next_attempt_at: ["status", "nextAttemptAt", "_creationTime"];
1212
1208
  status_signed_at: ["status", "signedAt", "_creationTime"];
@@ -1214,10 +1210,10 @@ declare const testHelpers: {
1214
1210
  event_id: ["eventId", "_creationTime"];
1215
1211
  event_id_endpoint_id: ["eventId", "endpointId", "_creationTime"];
1216
1212
  }, {}, {}>;
1217
- ApiKey: convex_server24.TableDefinition<convex_values6.VObject<{
1213
+ ApiKey: convex_server24.TableDefinition<convex_values82.VObject<{
1218
1214
  extend?: any;
1219
- lastUsedAt?: number | undefined;
1220
1215
  expiresAt?: number | undefined;
1216
+ lastUsedAt?: number | undefined;
1221
1217
  rateLimit?: {
1222
1218
  maxRequests: number;
1223
1219
  windowMs: number;
@@ -1226,149 +1222,644 @@ declare const testHelpers: {
1226
1222
  attemptsLeft: number;
1227
1223
  lastAttemptTime: number;
1228
1224
  } | undefined;
1225
+ userId: convex_values82.GenericId<"User">;
1229
1226
  name: string;
1230
- userId: convex_values6.GenericId<"User">;
1231
- createdAt: number;
1232
- revoked: boolean;
1233
1227
  prefix: string;
1234
1228
  scopes: {
1235
1229
  resource: string;
1236
1230
  actions: string[];
1237
1231
  }[];
1232
+ createdAt: number;
1233
+ revoked: boolean;
1238
1234
  hashedKey: string;
1239
1235
  }, {
1240
- userId: convex_values6.VId<convex_values6.GenericId<"User">, "required">;
1241
- prefix: convex_values6.VString<string, "required">;
1242
- hashedKey: convex_values6.VString<string, "required">;
1243
- name: convex_values6.VString<string, "required">;
1244
- scopes: convex_values6.VArray<{
1236
+ userId: convex_values82.VId<convex_values82.GenericId<"User">, "required">;
1237
+ prefix: convex_values82.VString<string, "required">;
1238
+ hashedKey: convex_values82.VString<string, "required">;
1239
+ name: convex_values82.VString<string, "required">;
1240
+ scopes: convex_values82.VArray<{
1245
1241
  resource: string;
1246
1242
  actions: string[];
1247
- }[], convex_values6.VObject<{
1243
+ }[], convex_values82.VObject<{
1248
1244
  resource: string;
1249
1245
  actions: string[];
1250
1246
  }, {
1251
- resource: convex_values6.VString<string, "required">;
1252
- actions: convex_values6.VArray<string[], convex_values6.VString<string, "required">, "required">;
1247
+ resource: convex_values82.VString<string, "required">;
1248
+ actions: convex_values82.VArray<string[], convex_values82.VString<string, "required">, "required">;
1253
1249
  }, "required", "resource" | "actions">, "required">;
1254
- rateLimit: convex_values6.VObject<{
1250
+ rateLimit: convex_values82.VObject<{
1255
1251
  maxRequests: number;
1256
1252
  windowMs: number;
1257
1253
  } | undefined, {
1258
- maxRequests: convex_values6.VFloat64<number, "required">;
1259
- windowMs: convex_values6.VFloat64<number, "required">;
1254
+ maxRequests: convex_values82.VFloat64<number, "required">;
1255
+ windowMs: convex_values82.VFloat64<number, "required">;
1260
1256
  }, "optional", "maxRequests" | "windowMs">;
1261
- rateLimitState: convex_values6.VObject<{
1257
+ rateLimitState: convex_values82.VObject<{
1262
1258
  attemptsLeft: number;
1263
1259
  lastAttemptTime: number;
1264
1260
  } | undefined, {
1265
- attemptsLeft: convex_values6.VFloat64<number, "required">;
1266
- lastAttemptTime: convex_values6.VFloat64<number, "required">;
1261
+ attemptsLeft: convex_values82.VFloat64<number, "required">;
1262
+ lastAttemptTime: convex_values82.VFloat64<number, "required">;
1267
1263
  }, "optional", "attemptsLeft" | "lastAttemptTime">;
1268
- expiresAt: convex_values6.VFloat64<number | undefined, "optional">;
1269
- lastUsedAt: convex_values6.VFloat64<number | undefined, "optional">;
1270
- createdAt: convex_values6.VFloat64<number, "required">;
1271
- revoked: convex_values6.VBoolean<boolean, "required">;
1272
- extend: convex_values6.VAny<any, "optional", string>;
1273
- }, "required", "name" | "extend" | `extend.${string}` | "userId" | "createdAt" | "lastUsedAt" | "expiresAt" | "revoked" | "prefix" | "scopes" | "hashedKey" | "rateLimit" | "rateLimitState" | "rateLimit.maxRequests" | "rateLimit.windowMs" | "rateLimitState.attemptsLeft" | "rateLimitState.lastAttemptTime">, {
1264
+ expiresAt: convex_values82.VFloat64<number | undefined, "optional">;
1265
+ lastUsedAt: convex_values82.VFloat64<number | undefined, "optional">;
1266
+ createdAt: convex_values82.VFloat64<number, "required">;
1267
+ revoked: convex_values82.VBoolean<boolean, "required">;
1268
+ extend: convex_values82.VAny<any, "optional", string>;
1269
+ }, "required", "extend" | "userId" | "name" | "prefix" | "scopes" | "expiresAt" | `extend.${string}` | "createdAt" | "lastUsedAt" | "revoked" | "hashedKey" | "rateLimit" | "rateLimitState" | "rateLimit.maxRequests" | "rateLimit.windowMs" | "rateLimitState.attemptsLeft" | "rateLimitState.lastAttemptTime">, {
1274
1270
  user_id: ["userId", "_creationTime"];
1275
1271
  hashed_key: ["hashedKey", "_creationTime"];
1276
1272
  }, {}, {}>;
1277
- OAuthClient: convex_server24.TableDefinition<convex_values6.VObject<{
1273
+ OAuthClient: convex_server24.TableDefinition<convex_values82.VObject<{
1278
1274
  extend?: any;
1279
1275
  clientSecretHash?: string | undefined;
1280
1276
  registrationAccessTokenHash?: string | undefined;
1281
- createdBy?: convex_values6.GenericId<"User"> | undefined;
1277
+ createdBy?: convex_values82.GenericId<"User"> | undefined;
1282
1278
  revokedAt?: number | undefined;
1283
1279
  name: string;
1284
- revoked: boolean;
1285
1280
  clientId: string;
1286
1281
  scopes: string[];
1287
1282
  tokenEndpointAuthMethod: "none" | "client_secret_basic" | "client_secret_post";
1283
+ revoked: boolean;
1288
1284
  redirectUris: string[];
1289
1285
  grantTypes: string[];
1290
1286
  }, {
1291
- clientId: convex_values6.VString<string, "required">;
1292
- clientSecretHash: convex_values6.VString<string | undefined, "optional">;
1293
- name: convex_values6.VString<string, "required">;
1294
- redirectUris: convex_values6.VArray<string[], convex_values6.VString<string, "required">, "required">;
1295
- scopes: convex_values6.VArray<string[], convex_values6.VString<string, "required">, "required">;
1296
- grantTypes: convex_values6.VArray<string[], convex_values6.VString<string, "required">, "required">;
1297
- tokenEndpointAuthMethod: convex_values6.VUnion<"none" | "client_secret_basic" | "client_secret_post", [convex_values6.VLiteral<"client_secret_basic", "required">, convex_values6.VLiteral<"client_secret_post", "required">, convex_values6.VLiteral<"none", "required">], "required", never>;
1298
- registrationAccessTokenHash: convex_values6.VString<string | undefined, "optional">;
1299
- createdBy: convex_values6.VId<convex_values6.GenericId<"User"> | undefined, "optional">;
1300
- revoked: convex_values6.VBoolean<boolean, "required">;
1301
- revokedAt: convex_values6.VFloat64<number | undefined, "optional">;
1302
- extend: convex_values6.VAny<any, "optional", string>;
1303
- }, "required", "name" | "extend" | `extend.${string}` | "revoked" | "clientId" | "scopes" | "tokenEndpointAuthMethod" | "clientSecretHash" | "redirectUris" | "grantTypes" | "registrationAccessTokenHash" | "createdBy" | "revokedAt">, {
1287
+ clientId: convex_values82.VString<string, "required">;
1288
+ clientSecretHash: convex_values82.VString<string | undefined, "optional">;
1289
+ name: convex_values82.VString<string, "required">;
1290
+ redirectUris: convex_values82.VArray<string[], convex_values82.VString<string, "required">, "required">;
1291
+ scopes: convex_values82.VArray<string[], convex_values82.VString<string, "required">, "required">;
1292
+ grantTypes: convex_values82.VArray<string[], convex_values82.VString<string, "required">, "required">;
1293
+ tokenEndpointAuthMethod: convex_values82.VUnion<"none" | "client_secret_basic" | "client_secret_post", [convex_values82.VLiteral<"client_secret_basic", "required">, convex_values82.VLiteral<"client_secret_post", "required">, convex_values82.VLiteral<"none", "required">], "required", never>;
1294
+ registrationAccessTokenHash: convex_values82.VString<string | undefined, "optional">;
1295
+ createdBy: convex_values82.VId<convex_values82.GenericId<"User"> | undefined, "optional">;
1296
+ revoked: convex_values82.VBoolean<boolean, "required">;
1297
+ revokedAt: convex_values82.VFloat64<number | undefined, "optional">;
1298
+ extend: convex_values82.VAny<any, "optional", string>;
1299
+ }, "required", "extend" | "name" | "clientId" | "scopes" | "tokenEndpointAuthMethod" | `extend.${string}` | "revoked" | "clientSecretHash" | "redirectUris" | "grantTypes" | "registrationAccessTokenHash" | "createdBy" | "revokedAt">, {
1304
1300
  client_id: ["clientId", "_creationTime"];
1305
1301
  created_by: ["createdBy", "_creationTime"];
1306
1302
  created_by_revoked: ["createdBy", "revoked", "_creationTime"];
1307
1303
  revoked: ["revoked", "_creationTime"];
1308
1304
  revoked_at: ["revoked", "revokedAt", "_creationTime"];
1309
1305
  }, {}, {}>;
1310
- OAuthCode: convex_server24.TableDefinition<convex_values6.VObject<{
1306
+ OAuthCode: convex_server24.TableDefinition<convex_values82.VObject<{
1311
1307
  resource?: string | undefined;
1312
1308
  usedAt?: number | undefined;
1313
- userId: convex_values6.GenericId<"User">;
1314
- expiresAt: number;
1309
+ userId: convex_values82.GenericId<"User">;
1315
1310
  clientId: string;
1316
1311
  scopes: string[];
1317
1312
  redirectUri: string;
1313
+ expiresAt: number;
1318
1314
  codeHash: string;
1319
1315
  codeChallenge: string;
1320
1316
  }, {
1321
- codeHash: convex_values6.VString<string, "required">;
1322
- userId: convex_values6.VId<convex_values6.GenericId<"User">, "required">;
1323
- clientId: convex_values6.VString<string, "required">;
1324
- redirectUri: convex_values6.VString<string, "required">;
1325
- scopes: convex_values6.VArray<string[], convex_values6.VString<string, "required">, "required">;
1326
- codeChallenge: convex_values6.VString<string, "required">;
1327
- resource: convex_values6.VString<string | undefined, "optional">;
1328
- expiresAt: convex_values6.VFloat64<number, "required">;
1329
- usedAt: convex_values6.VFloat64<number | undefined, "optional">;
1330
- }, "required", "userId" | "expiresAt" | "clientId" | "scopes" | "redirectUri" | "resource" | "codeHash" | "codeChallenge" | "usedAt">, {
1317
+ codeHash: convex_values82.VString<string, "required">;
1318
+ userId: convex_values82.VId<convex_values82.GenericId<"User">, "required">;
1319
+ clientId: convex_values82.VString<string, "required">;
1320
+ redirectUri: convex_values82.VString<string, "required">;
1321
+ scopes: convex_values82.VArray<string[], convex_values82.VString<string, "required">, "required">;
1322
+ codeChallenge: convex_values82.VString<string, "required">;
1323
+ resource: convex_values82.VString<string | undefined, "optional">;
1324
+ expiresAt: convex_values82.VFloat64<number, "required">;
1325
+ usedAt: convex_values82.VFloat64<number | undefined, "optional">;
1326
+ }, "required", "userId" | "clientId" | "scopes" | "redirectUri" | "resource" | "expiresAt" | "codeHash" | "codeChallenge" | "usedAt">, {
1331
1327
  code_hash: ["codeHash", "_creationTime"];
1332
1328
  user_id: ["userId", "_creationTime"];
1333
1329
  expires_at: ["expiresAt", "_creationTime"];
1334
1330
  }, {}, {}>;
1335
- OAuthRefreshGrant: convex_server24.TableDefinition<convex_values6.VObject<{
1331
+ OAuthRefreshGrant: convex_server24.TableDefinition<convex_values82.VObject<{
1336
1332
  resource?: string | undefined;
1337
1333
  revokedAt?: number | undefined;
1338
- userId: convex_values6.GenericId<"User">;
1339
- expiresAt: number;
1334
+ userId: convex_values82.GenericId<"User">;
1340
1335
  clientId: string;
1341
1336
  scopes: string[];
1337
+ expiresAt: number;
1342
1338
  }, {
1343
- clientId: convex_values6.VString<string, "required">;
1344
- userId: convex_values6.VId<convex_values6.GenericId<"User">, "required">;
1345
- scopes: convex_values6.VArray<string[], convex_values6.VString<string, "required">, "required">;
1346
- resource: convex_values6.VString<string | undefined, "optional">;
1347
- expiresAt: convex_values6.VFloat64<number, "required">;
1348
- revokedAt: convex_values6.VFloat64<number | undefined, "optional">;
1349
- }, "required", "userId" | "expiresAt" | "clientId" | "scopes" | "resource" | "revokedAt">, {
1339
+ clientId: convex_values82.VString<string, "required">;
1340
+ userId: convex_values82.VId<convex_values82.GenericId<"User">, "required">;
1341
+ scopes: convex_values82.VArray<string[], convex_values82.VString<string, "required">, "required">;
1342
+ resource: convex_values82.VString<string | undefined, "optional">;
1343
+ expiresAt: convex_values82.VFloat64<number, "required">;
1344
+ revokedAt: convex_values82.VFloat64<number | undefined, "optional">;
1345
+ }, "required", "userId" | "clientId" | "scopes" | "resource" | "expiresAt" | "revokedAt">, {
1350
1346
  expires_at: ["expiresAt", "_creationTime"];
1351
1347
  revoked_at: ["revokedAt", "_creationTime"];
1352
1348
  }, {}, {}>;
1353
- OAuthRefreshToken: convex_server24.TableDefinition<convex_values6.VObject<{
1349
+ OAuthRefreshToken: convex_server24.TableDefinition<convex_values82.VObject<{
1354
1350
  firstUsedTime?: number | undefined;
1355
- parentTokenId?: convex_values6.GenericId<"OAuthRefreshToken"> | undefined;
1351
+ parentTokenId?: convex_values82.GenericId<"OAuthRefreshToken"> | undefined;
1356
1352
  expiresAt: number;
1357
1353
  tokenHash: string;
1358
- grantId: convex_values6.GenericId<"OAuthRefreshGrant">;
1354
+ grantId: convex_values82.GenericId<"OAuthRefreshGrant">;
1359
1355
  }, {
1360
- tokenHash: convex_values6.VString<string, "required">;
1361
- grantId: convex_values6.VId<convex_values6.GenericId<"OAuthRefreshGrant">, "required">;
1362
- expiresAt: convex_values6.VFloat64<number, "required">;
1363
- firstUsedTime: convex_values6.VFloat64<number | undefined, "optional">;
1364
- parentTokenId: convex_values6.VId<convex_values6.GenericId<"OAuthRefreshToken"> | undefined, "optional">;
1365
- }, "required", "firstUsedTime" | "expiresAt" | "tokenHash" | "grantId" | "parentTokenId">, {
1356
+ tokenHash: convex_values82.VString<string, "required">;
1357
+ grantId: convex_values82.VId<convex_values82.GenericId<"OAuthRefreshGrant">, "required">;
1358
+ expiresAt: convex_values82.VFloat64<number, "required">;
1359
+ firstUsedTime: convex_values82.VFloat64<number | undefined, "optional">;
1360
+ parentTokenId: convex_values82.VId<convex_values82.GenericId<"OAuthRefreshToken"> | undefined, "optional">;
1361
+ }, "required", "expiresAt" | "firstUsedTime" | "tokenHash" | "grantId" | "parentTokenId">, {
1366
1362
  token_hash: ["tokenHash", "_creationTime"];
1367
1363
  grant_id: ["grantId", "_creationTime"];
1368
1364
  grant_id_first_used: ["grantId", "firstUsedTime", "_creationTime"];
1369
1365
  grant_id_parent_token_id_first_used: ["grantId", "parentTokenId", "firstUsedTime", "_creationTime"];
1370
1366
  expires_at: ["expiresAt", "_creationTime"];
1371
1367
  }, {}, {}>;
1368
+ AuthEventStream: convex_server24.TableDefinition<convex_values82.VUnion<{
1369
+ key?: string | undefined;
1370
+ expiresAt?: number | undefined;
1371
+ attempt: number;
1372
+ status: "pending";
1373
+ restarts: number;
1374
+ } | {
1375
+ key?: string | undefined;
1376
+ expiresAt?: number | undefined;
1377
+ attempt: number;
1378
+ status: "streaming";
1379
+ restarts: number;
1380
+ } | {
1381
+ key?: string | undefined;
1382
+ expiresAt?: number | undefined;
1383
+ attempt: number;
1384
+ status: "done";
1385
+ restarts: number;
1386
+ } | {
1387
+ key?: string | undefined;
1388
+ expiresAt?: number | undefined;
1389
+ attempt: number;
1390
+ status: "canceled";
1391
+ restarts: number;
1392
+ } | {
1393
+ key?: string | undefined;
1394
+ expiresAt?: number | undefined;
1395
+ attempt: number;
1396
+ status: "failed";
1397
+ restarts: number;
1398
+ error: {
1399
+ code: string;
1400
+ message: string;
1401
+ };
1402
+ } | {
1403
+ key?: string | undefined;
1404
+ expiresAt?: number | undefined;
1405
+ attempt: number;
1406
+ status: "deleting";
1407
+ restarts: number;
1408
+ deletingAt: number;
1409
+ }, [convex_values82.VObject<{
1410
+ key?: string | undefined;
1411
+ expiresAt?: number | undefined;
1412
+ attempt: number;
1413
+ status: "pending";
1414
+ restarts: number;
1415
+ }, {
1416
+ status: convex_values82.VLiteral<"pending", "required">;
1417
+ key: convex_values82.VString<string | undefined, "optional">;
1418
+ attempt: convex_values82.VFloat64<number, "required">;
1419
+ expiresAt: convex_values82.VFloat64<number | undefined, "optional">;
1420
+ restarts: convex_values82.VFloat64<number, "required">;
1421
+ }, "required", "expiresAt" | "status" | "attempt" | "key" | "restarts">, convex_values82.VObject<{
1422
+ key?: string | undefined;
1423
+ expiresAt?: number | undefined;
1424
+ attempt: number;
1425
+ status: "streaming";
1426
+ restarts: number;
1427
+ }, {
1428
+ status: convex_values82.VLiteral<"streaming", "required">;
1429
+ key: convex_values82.VString<string | undefined, "optional">;
1430
+ attempt: convex_values82.VFloat64<number, "required">;
1431
+ expiresAt: convex_values82.VFloat64<number | undefined, "optional">;
1432
+ restarts: convex_values82.VFloat64<number, "required">;
1433
+ }, "required", "expiresAt" | "status" | "attempt" | "key" | "restarts">, convex_values82.VObject<{
1434
+ key?: string | undefined;
1435
+ expiresAt?: number | undefined;
1436
+ attempt: number;
1437
+ status: "done";
1438
+ restarts: number;
1439
+ }, {
1440
+ status: convex_values82.VLiteral<"done", "required">;
1441
+ key: convex_values82.VString<string | undefined, "optional">;
1442
+ attempt: convex_values82.VFloat64<number, "required">;
1443
+ expiresAt: convex_values82.VFloat64<number | undefined, "optional">;
1444
+ restarts: convex_values82.VFloat64<number, "required">;
1445
+ }, "required", "expiresAt" | "status" | "attempt" | "key" | "restarts">, convex_values82.VObject<{
1446
+ key?: string | undefined;
1447
+ expiresAt?: number | undefined;
1448
+ attempt: number;
1449
+ status: "canceled";
1450
+ restarts: number;
1451
+ }, {
1452
+ status: convex_values82.VLiteral<"canceled", "required">;
1453
+ key: convex_values82.VString<string | undefined, "optional">;
1454
+ attempt: convex_values82.VFloat64<number, "required">;
1455
+ expiresAt: convex_values82.VFloat64<number | undefined, "optional">;
1456
+ restarts: convex_values82.VFloat64<number, "required">;
1457
+ }, "required", "expiresAt" | "status" | "attempt" | "key" | "restarts">, convex_values82.VObject<{
1458
+ key?: string | undefined;
1459
+ expiresAt?: number | undefined;
1460
+ attempt: number;
1461
+ status: "failed";
1462
+ restarts: number;
1463
+ error: {
1464
+ code: string;
1465
+ message: string;
1466
+ };
1467
+ }, {
1468
+ status: convex_values82.VLiteral<"failed", "required">;
1469
+ error: convex_values82.VObject<{
1470
+ code: string;
1471
+ message: string;
1472
+ }, {
1473
+ code: convex_values82.VString<string, "required">;
1474
+ message: convex_values82.VString<string, "required">;
1475
+ }, "required", "code" | "message">;
1476
+ key: convex_values82.VString<string | undefined, "optional">;
1477
+ attempt: convex_values82.VFloat64<number, "required">;
1478
+ expiresAt: convex_values82.VFloat64<number | undefined, "optional">;
1479
+ restarts: convex_values82.VFloat64<number, "required">;
1480
+ }, "required", "expiresAt" | "status" | "error" | "attempt" | "key" | "restarts" | "error.code" | "error.message">, convex_values82.VObject<{
1481
+ key?: string | undefined;
1482
+ expiresAt?: number | undefined;
1483
+ attempt: number;
1484
+ status: "deleting";
1485
+ restarts: number;
1486
+ deletingAt: number;
1487
+ }, {
1488
+ status: convex_values82.VLiteral<"deleting", "required">;
1489
+ deletingAt: convex_values82.VFloat64<number, "required">;
1490
+ key: convex_values82.VString<string | undefined, "optional">;
1491
+ attempt: convex_values82.VFloat64<number, "required">;
1492
+ expiresAt: convex_values82.VFloat64<number | undefined, "optional">;
1493
+ restarts: convex_values82.VFloat64<number, "required">;
1494
+ }, "required", "expiresAt" | "status" | "attempt" | "key" | "restarts" | "deletingAt">], "required", "expiresAt" | "status" | "error" | "attempt" | "key" | "restarts" | "error.code" | "error.message" | "deletingAt">, Record<"by_key", ["key", "_creationTime"]> & Record<"by_expiresAt", ["expiresAt", "_creationTime"]>, {}, {}>;
1495
+ AuthEventStreamEvents: convex_server24.TableDefinition<convex_values82.Validator<Omit<_convex_dev_stream_server0.StreamEventDoc<"AuthEventStream", convex_values82.VObject<{
1496
+ request?: {
1497
+ requestId?: string | undefined;
1498
+ ip?: string | undefined;
1499
+ userAgent?: string | undefined;
1500
+ } | undefined;
1501
+ errorCode?: string | undefined;
1502
+ data?: {
1503
+ profile?: Record<string, any> | undefined;
1504
+ type?: string | undefined;
1505
+ provider?: string | undefined;
1506
+ existingUserId?: string | undefined;
1507
+ } | {
1508
+ method?: string | undefined;
1509
+ provider: string;
1510
+ } | {
1511
+ flow?: "reset" | "change" | undefined;
1512
+ userId?: string | undefined;
1513
+ reason?: string | undefined;
1514
+ sessionId?: string | undefined;
1515
+ refreshTokenId?: string | undefined;
1516
+ } | {
1517
+ provider?: string | undefined;
1518
+ providerAccountId?: string | undefined;
1519
+ accountId?: string | undefined;
1520
+ } | {
1521
+ reason?: string | undefined;
1522
+ passkeyId?: string | undefined;
1523
+ credentialId?: string | undefined;
1524
+ totpId?: string | undefined;
1525
+ keyId?: string | undefined;
1526
+ name?: string | undefined;
1527
+ prefix?: string | undefined;
1528
+ } | {
1529
+ email?: string | undefined;
1530
+ phone?: string | undefined;
1531
+ userId?: string | undefined;
1532
+ } | {
1533
+ userId?: string | undefined;
1534
+ name?: string | undefined;
1535
+ clientId?: string | undefined;
1536
+ codeId?: string | undefined;
1537
+ scopes?: string[] | undefined;
1538
+ redirectUri?: string | undefined;
1539
+ grantType?: string | undefined;
1540
+ resource?: string | undefined;
1541
+ } | {
1542
+ errorCode?: string | undefined;
1543
+ userId?: string | undefined;
1544
+ connectionId?: string | undefined;
1545
+ changed?: string[] | undefined;
1546
+ protocol?: "oidc" | "saml" | undefined;
1547
+ domain?: string | undefined;
1548
+ recordName?: string | undefined;
1549
+ expiresAt?: number | undefined;
1550
+ verifiedAt?: number | undefined;
1551
+ metadataUrl?: string | undefined;
1552
+ domains?: string[] | undefined;
1553
+ issuer?: string | undefined;
1554
+ discoveryUrl?: string | undefined;
1555
+ jwksUri?: string | undefined;
1556
+ audience?: string | string[] | undefined;
1557
+ tokenEndpointAuthMethod?: string | undefined;
1558
+ version?: number | undefined;
1559
+ } | {
1560
+ userId?: string | undefined;
1561
+ scimConfigId?: string | undefined;
1562
+ resourceType?: "user" | "group" | undefined;
1563
+ resourceId?: string | undefined;
1564
+ operation?: string | undefined;
1565
+ externalId?: string | undefined;
1566
+ active?: boolean | undefined;
1567
+ groupId?: string | undefined;
1568
+ } | {
1569
+ endpointId?: string | undefined;
1570
+ deliveryId?: string | undefined;
1571
+ sourceEventId?: string | undefined;
1572
+ sourceEventType?: "user.created" | "user.updated" | "session.signed_in" | "session.signed_out" | "session.invalidated" | "session.refresh_exchanged" | "session.refresh_reuse_detected" | "account.linked" | "account.unlinked" | "password.changed" | "passkey.added" | "passkey.removed" | "totp.enrolled" | "totp.removed" | "email.verified" | "phone.verified" | "api_key.created" | "api_key.revoked" | "oauth.client.created" | "oauth.client.revoked" | "oauth.code.created" | "oauth.token.created" | "oauth.token.exchanged" | "oauth.refresh.reuse_detected" | "oauth.refresh.revoked" | "connection.created" | "connection.updated" | "connection.removed" | "connection.login.succeeded" | "connection.login.failed" | "connection.domain.verification_requested" | "connection.domain.verified" | "connection.policy.updated" | "connection.saml.set" | "connection.saml.refreshed" | "connection.oidc.set" | "connection.scim.set" | "connection.scim.read" | "connection.scim.user.provisioned" | "connection.scim.user.updated" | "connection.scim.user.deactivated" | "connection.scim.user.reactivated" | "connection.scim.group.provisioned" | "connection.scim.group.updated" | "connection.scim.group.deactivated" | "connection.scim.group.reactivated" | "webhook.endpoint.created" | "webhook.endpoint.disabled" | "webhook.delivery.created" | "webhook.delivery.attempted" | "webhook.delivery.succeeded" | "webhook.delivery.failed" | undefined;
1573
+ attemptCount?: number | undefined;
1574
+ status?: number | undefined;
1575
+ error?: string | undefined;
1576
+ } | undefined;
1577
+ eventId: string;
1578
+ kind: "user.created" | "user.updated" | "session.signed_in" | "session.signed_out" | "session.invalidated" | "session.refresh_exchanged" | "session.refresh_reuse_detected" | "account.linked" | "account.unlinked" | "password.changed" | "passkey.added" | "passkey.removed" | "totp.enrolled" | "totp.removed" | "email.verified" | "phone.verified" | "api_key.created" | "api_key.revoked" | "oauth.client.created" | "oauth.client.revoked" | "oauth.code.created" | "oauth.token.created" | "oauth.token.exchanged" | "oauth.refresh.reuse_detected" | "oauth.refresh.revoked" | "connection.created" | "connection.updated" | "connection.removed" | "connection.login.succeeded" | "connection.login.failed" | "connection.domain.verification_requested" | "connection.domain.verified" | "connection.policy.updated" | "connection.saml.set" | "connection.saml.refreshed" | "connection.oidc.set" | "connection.scim.set" | "connection.scim.read" | "connection.scim.user.provisioned" | "connection.scim.user.updated" | "connection.scim.user.deactivated" | "connection.scim.user.reactivated" | "connection.scim.group.provisioned" | "connection.scim.group.updated" | "connection.scim.group.deactivated" | "connection.scim.group.reactivated" | "webhook.endpoint.created" | "webhook.endpoint.disabled" | "webhook.delivery.created" | "webhook.delivery.attempted" | "webhook.delivery.succeeded" | "webhook.delivery.failed";
1579
+ category: "email" | "password" | "phone" | "user" | "session" | "account" | "passkey" | "totp" | "api_key" | "oauth" | "connection" | "scim" | "webhook" | "security";
1580
+ occurredAt: number;
1581
+ actor: {
1582
+ id?: string | undefined;
1583
+ type: "user" | "api_key" | "scim" | "webhook" | "system" | "oauth_client" | "anonymous";
1584
+ };
1585
+ subject: {
1586
+ id?: string | undefined;
1587
+ type: "email" | "phone" | "user" | "session" | "account" | "passkey" | "totp" | "api_key" | "connection" | "system" | "oauth_client" | "oauth_code" | "group" | "scim_identity" | "webhook_endpoint" | "webhook_delivery";
1588
+ };
1589
+ targets: {
1590
+ id: string;
1591
+ kind: "user" | "session" | "api_key" | "connection" | "oauth_client" | "group" | "global";
1592
+ }[];
1593
+ outcome: "success" | "failure";
1594
+ }, {
1595
+ eventId: convex_values82.VString<string, "required">;
1596
+ kind: convex_values82.VUnion<"user.created" | "user.updated" | "session.signed_in" | "session.signed_out" | "session.invalidated" | "session.refresh_exchanged" | "session.refresh_reuse_detected" | "account.linked" | "account.unlinked" | "password.changed" | "passkey.added" | "passkey.removed" | "totp.enrolled" | "totp.removed" | "email.verified" | "phone.verified" | "api_key.created" | "api_key.revoked" | "oauth.client.created" | "oauth.client.revoked" | "oauth.code.created" | "oauth.token.created" | "oauth.token.exchanged" | "oauth.refresh.reuse_detected" | "oauth.refresh.revoked" | "connection.created" | "connection.updated" | "connection.removed" | "connection.login.succeeded" | "connection.login.failed" | "connection.domain.verification_requested" | "connection.domain.verified" | "connection.policy.updated" | "connection.saml.set" | "connection.saml.refreshed" | "connection.oidc.set" | "connection.scim.set" | "connection.scim.read" | "connection.scim.user.provisioned" | "connection.scim.user.updated" | "connection.scim.user.deactivated" | "connection.scim.user.reactivated" | "connection.scim.group.provisioned" | "connection.scim.group.updated" | "connection.scim.group.deactivated" | "connection.scim.group.reactivated" | "webhook.endpoint.created" | "webhook.endpoint.disabled" | "webhook.delivery.created" | "webhook.delivery.attempted" | "webhook.delivery.succeeded" | "webhook.delivery.failed", convex_values82.VLiteral<"user.created" | "user.updated" | "session.signed_in" | "session.signed_out" | "session.invalidated" | "session.refresh_exchanged" | "session.refresh_reuse_detected" | "account.linked" | "account.unlinked" | "password.changed" | "passkey.added" | "passkey.removed" | "totp.enrolled" | "totp.removed" | "email.verified" | "phone.verified" | "api_key.created" | "api_key.revoked" | "oauth.client.created" | "oauth.client.revoked" | "oauth.code.created" | "oauth.token.created" | "oauth.token.exchanged" | "oauth.refresh.reuse_detected" | "oauth.refresh.revoked" | "connection.created" | "connection.updated" | "connection.removed" | "connection.login.succeeded" | "connection.login.failed" | "connection.domain.verification_requested" | "connection.domain.verified" | "connection.policy.updated" | "connection.saml.set" | "connection.saml.refreshed" | "connection.oidc.set" | "connection.scim.set" | "connection.scim.read" | "connection.scim.user.provisioned" | "connection.scim.user.updated" | "connection.scim.user.deactivated" | "connection.scim.user.reactivated" | "connection.scim.group.provisioned" | "connection.scim.group.updated" | "connection.scim.group.deactivated" | "connection.scim.group.reactivated" | "webhook.endpoint.created" | "webhook.endpoint.disabled" | "webhook.delivery.created" | "webhook.delivery.attempted" | "webhook.delivery.succeeded" | "webhook.delivery.failed", "required">[], "required", never>;
1597
+ category: convex_values82.VUnion<"email" | "password" | "phone" | "user" | "session" | "account" | "passkey" | "totp" | "api_key" | "oauth" | "connection" | "scim" | "webhook" | "security", convex_values82.VLiteral<"email" | "password" | "phone" | "user" | "session" | "account" | "passkey" | "totp" | "api_key" | "oauth" | "connection" | "scim" | "webhook" | "security", "required">[], "required", never>;
1598
+ occurredAt: convex_values82.VFloat64<number, "required">;
1599
+ actor: convex_values82.VObject<{
1600
+ id?: string | undefined;
1601
+ type: "user" | "api_key" | "scim" | "webhook" | "system" | "oauth_client" | "anonymous";
1602
+ }, {
1603
+ type: convex_values82.VUnion<"user" | "api_key" | "scim" | "webhook" | "system" | "oauth_client" | "anonymous", [convex_values82.VLiteral<"user", "required">, convex_values82.VLiteral<"system", "required">, convex_values82.VLiteral<"scim", "required">, convex_values82.VLiteral<"api_key", "required">, convex_values82.VLiteral<"oauth_client", "required">, convex_values82.VLiteral<"webhook", "required">, convex_values82.VLiteral<"anonymous", "required">], "required", never>;
1604
+ id: convex_values82.VString<string | undefined, "optional">;
1605
+ }, "required", "type" | "id">;
1606
+ subject: convex_values82.VObject<{
1607
+ id?: string | undefined;
1608
+ type: "email" | "phone" | "user" | "session" | "account" | "passkey" | "totp" | "api_key" | "connection" | "system" | "oauth_client" | "oauth_code" | "group" | "scim_identity" | "webhook_endpoint" | "webhook_delivery";
1609
+ }, {
1610
+ type: convex_values82.VUnion<"email" | "phone" | "user" | "session" | "account" | "passkey" | "totp" | "api_key" | "connection" | "system" | "oauth_client" | "oauth_code" | "group" | "scim_identity" | "webhook_endpoint" | "webhook_delivery", [convex_values82.VLiteral<"user", "required">, convex_values82.VLiteral<"session", "required">, convex_values82.VLiteral<"account", "required">, convex_values82.VLiteral<"passkey", "required">, convex_values82.VLiteral<"totp", "required">, convex_values82.VLiteral<"email", "required">, convex_values82.VLiteral<"phone", "required">, convex_values82.VLiteral<"api_key", "required">, convex_values82.VLiteral<"oauth_client", "required">, convex_values82.VLiteral<"oauth_code", "required">, convex_values82.VLiteral<"group", "required">, convex_values82.VLiteral<"connection", "required">, convex_values82.VLiteral<"scim_identity", "required">, convex_values82.VLiteral<"webhook_endpoint", "required">, convex_values82.VLiteral<"webhook_delivery", "required">, convex_values82.VLiteral<"system", "required">], "required", never>;
1611
+ id: convex_values82.VString<string | undefined, "optional">;
1612
+ }, "required", "type" | "id">;
1613
+ targets: convex_values82.VArray<{
1614
+ id: string;
1615
+ kind: "user" | "session" | "api_key" | "connection" | "oauth_client" | "group" | "global";
1616
+ }[], convex_values82.VObject<{
1617
+ id: string;
1618
+ kind: "user" | "session" | "api_key" | "connection" | "oauth_client" | "group" | "global";
1619
+ }, {
1620
+ kind: convex_values82.VUnion<"user" | "session" | "api_key" | "connection" | "oauth_client" | "group" | "global", [convex_values82.VLiteral<"user", "required">, convex_values82.VLiteral<"session", "required">, convex_values82.VLiteral<"group", "required">, convex_values82.VLiteral<"connection", "required">, convex_values82.VLiteral<"oauth_client", "required">, convex_values82.VLiteral<"api_key", "required">, convex_values82.VLiteral<"global", "required">], "required", never>;
1621
+ id: convex_values82.VString<string, "required">;
1622
+ }, "required", "id" | "kind">, "required">;
1623
+ request: convex_values82.VObject<{
1624
+ requestId?: string | undefined;
1625
+ ip?: string | undefined;
1626
+ userAgent?: string | undefined;
1627
+ } | undefined, {
1628
+ requestId: convex_values82.VString<string | undefined, "optional">;
1629
+ ip: convex_values82.VString<string | undefined, "optional">;
1630
+ userAgent: convex_values82.VString<string | undefined, "optional">;
1631
+ }, "optional", "requestId" | "ip" | "userAgent">;
1632
+ outcome: convex_values82.VUnion<"success" | "failure", [convex_values82.VLiteral<"success", "required">, convex_values82.VLiteral<"failure", "required">], "required", never>;
1633
+ errorCode: convex_values82.VString<string | undefined, "optional">;
1634
+ data: convex_values82.VUnion<{
1635
+ profile?: Record<string, any> | undefined;
1636
+ type?: string | undefined;
1637
+ provider?: string | undefined;
1638
+ existingUserId?: string | undefined;
1639
+ } | {
1640
+ method?: string | undefined;
1641
+ provider: string;
1642
+ } | {
1643
+ flow?: "reset" | "change" | undefined;
1644
+ userId?: string | undefined;
1645
+ reason?: string | undefined;
1646
+ sessionId?: string | undefined;
1647
+ refreshTokenId?: string | undefined;
1648
+ } | {
1649
+ provider?: string | undefined;
1650
+ providerAccountId?: string | undefined;
1651
+ accountId?: string | undefined;
1652
+ } | {
1653
+ reason?: string | undefined;
1654
+ passkeyId?: string | undefined;
1655
+ credentialId?: string | undefined;
1656
+ totpId?: string | undefined;
1657
+ keyId?: string | undefined;
1658
+ name?: string | undefined;
1659
+ prefix?: string | undefined;
1660
+ } | {
1661
+ email?: string | undefined;
1662
+ phone?: string | undefined;
1663
+ userId?: string | undefined;
1664
+ } | {
1665
+ userId?: string | undefined;
1666
+ name?: string | undefined;
1667
+ clientId?: string | undefined;
1668
+ codeId?: string | undefined;
1669
+ scopes?: string[] | undefined;
1670
+ redirectUri?: string | undefined;
1671
+ grantType?: string | undefined;
1672
+ resource?: string | undefined;
1673
+ } | {
1674
+ errorCode?: string | undefined;
1675
+ userId?: string | undefined;
1676
+ connectionId?: string | undefined;
1677
+ changed?: string[] | undefined;
1678
+ protocol?: "oidc" | "saml" | undefined;
1679
+ domain?: string | undefined;
1680
+ recordName?: string | undefined;
1681
+ expiresAt?: number | undefined;
1682
+ verifiedAt?: number | undefined;
1683
+ metadataUrl?: string | undefined;
1684
+ domains?: string[] | undefined;
1685
+ issuer?: string | undefined;
1686
+ discoveryUrl?: string | undefined;
1687
+ jwksUri?: string | undefined;
1688
+ audience?: string | string[] | undefined;
1689
+ tokenEndpointAuthMethod?: string | undefined;
1690
+ version?: number | undefined;
1691
+ } | {
1692
+ userId?: string | undefined;
1693
+ scimConfigId?: string | undefined;
1694
+ resourceType?: "user" | "group" | undefined;
1695
+ resourceId?: string | undefined;
1696
+ operation?: string | undefined;
1697
+ externalId?: string | undefined;
1698
+ active?: boolean | undefined;
1699
+ groupId?: string | undefined;
1700
+ } | {
1701
+ endpointId?: string | undefined;
1702
+ deliveryId?: string | undefined;
1703
+ sourceEventId?: string | undefined;
1704
+ sourceEventType?: "user.created" | "user.updated" | "session.signed_in" | "session.signed_out" | "session.invalidated" | "session.refresh_exchanged" | "session.refresh_reuse_detected" | "account.linked" | "account.unlinked" | "password.changed" | "passkey.added" | "passkey.removed" | "totp.enrolled" | "totp.removed" | "email.verified" | "phone.verified" | "api_key.created" | "api_key.revoked" | "oauth.client.created" | "oauth.client.revoked" | "oauth.code.created" | "oauth.token.created" | "oauth.token.exchanged" | "oauth.refresh.reuse_detected" | "oauth.refresh.revoked" | "connection.created" | "connection.updated" | "connection.removed" | "connection.login.succeeded" | "connection.login.failed" | "connection.domain.verification_requested" | "connection.domain.verified" | "connection.policy.updated" | "connection.saml.set" | "connection.saml.refreshed" | "connection.oidc.set" | "connection.scim.set" | "connection.scim.read" | "connection.scim.user.provisioned" | "connection.scim.user.updated" | "connection.scim.user.deactivated" | "connection.scim.user.reactivated" | "connection.scim.group.provisioned" | "connection.scim.group.updated" | "connection.scim.group.deactivated" | "connection.scim.group.reactivated" | "webhook.endpoint.created" | "webhook.endpoint.disabled" | "webhook.delivery.created" | "webhook.delivery.attempted" | "webhook.delivery.succeeded" | "webhook.delivery.failed" | undefined;
1705
+ attemptCount?: number | undefined;
1706
+ status?: number | undefined;
1707
+ error?: string | undefined;
1708
+ } | undefined, [convex_values82.VObject<{
1709
+ profile?: Record<string, any> | undefined;
1710
+ type?: string | undefined;
1711
+ provider?: string | undefined;
1712
+ existingUserId?: string | undefined;
1713
+ }, {
1714
+ type: convex_values82.VString<string | undefined, "optional">;
1715
+ provider: convex_values82.VString<string | undefined, "optional">;
1716
+ profile: convex_values82.VRecord<Record<string, any> | undefined, convex_values82.VString<string, "required">, convex_values82.VAny<any, "required", string>, "optional", string>;
1717
+ existingUserId: convex_values82.VString<string | undefined, "optional">;
1718
+ }, "required", "profile" | "type" | "provider" | "existingUserId" | `profile.${string}`>, convex_values82.VObject<{
1719
+ method?: string | undefined;
1720
+ provider: string;
1721
+ }, {
1722
+ provider: convex_values82.VString<string, "required">;
1723
+ method: convex_values82.VString<string | undefined, "optional">;
1724
+ }, "required", "provider" | "method">, convex_values82.VObject<{
1725
+ flow?: "reset" | "change" | undefined;
1726
+ userId?: string | undefined;
1727
+ reason?: string | undefined;
1728
+ sessionId?: string | undefined;
1729
+ refreshTokenId?: string | undefined;
1730
+ }, {
1731
+ userId: convex_values82.VString<string | undefined, "optional">;
1732
+ reason: convex_values82.VString<string | undefined, "optional">;
1733
+ sessionId: convex_values82.VString<string | undefined, "optional">;
1734
+ refreshTokenId: convex_values82.VString<string | undefined, "optional">;
1735
+ flow: convex_values82.VUnion<"reset" | "change" | undefined, [convex_values82.VLiteral<"reset", "required">, convex_values82.VLiteral<"change", "required">], "optional", never>;
1736
+ }, "required", "flow" | "userId" | "reason" | "sessionId" | "refreshTokenId">, convex_values82.VObject<{
1737
+ provider?: string | undefined;
1738
+ providerAccountId?: string | undefined;
1739
+ accountId?: string | undefined;
1740
+ }, {
1741
+ provider: convex_values82.VString<string | undefined, "optional">;
1742
+ providerAccountId: convex_values82.VString<string | undefined, "optional">;
1743
+ accountId: convex_values82.VString<string | undefined, "optional">;
1744
+ }, "required", "provider" | "providerAccountId" | "accountId">, convex_values82.VObject<{
1745
+ reason?: string | undefined;
1746
+ passkeyId?: string | undefined;
1747
+ credentialId?: string | undefined;
1748
+ totpId?: string | undefined;
1749
+ keyId?: string | undefined;
1750
+ name?: string | undefined;
1751
+ prefix?: string | undefined;
1752
+ }, {
1753
+ passkeyId: convex_values82.VString<string | undefined, "optional">;
1754
+ credentialId: convex_values82.VString<string | undefined, "optional">;
1755
+ totpId: convex_values82.VString<string | undefined, "optional">;
1756
+ keyId: convex_values82.VString<string | undefined, "optional">;
1757
+ name: convex_values82.VString<string | undefined, "optional">;
1758
+ prefix: convex_values82.VString<string | undefined, "optional">;
1759
+ reason: convex_values82.VString<string | undefined, "optional">;
1760
+ }, "required", "reason" | "passkeyId" | "credentialId" | "totpId" | "keyId" | "name" | "prefix">, convex_values82.VObject<{
1761
+ email?: string | undefined;
1762
+ phone?: string | undefined;
1763
+ userId?: string | undefined;
1764
+ }, {
1765
+ email: convex_values82.VString<string | undefined, "optional">;
1766
+ phone: convex_values82.VString<string | undefined, "optional">;
1767
+ userId: convex_values82.VString<string | undefined, "optional">;
1768
+ }, "required", "email" | "phone" | "userId">, convex_values82.VObject<{
1769
+ userId?: string | undefined;
1770
+ name?: string | undefined;
1771
+ clientId?: string | undefined;
1772
+ codeId?: string | undefined;
1773
+ scopes?: string[] | undefined;
1774
+ redirectUri?: string | undefined;
1775
+ grantType?: string | undefined;
1776
+ resource?: string | undefined;
1777
+ }, {
1778
+ clientId: convex_values82.VString<string | undefined, "optional">;
1779
+ codeId: convex_values82.VString<string | undefined, "optional">;
1780
+ name: convex_values82.VString<string | undefined, "optional">;
1781
+ scopes: convex_values82.VArray<string[] | undefined, convex_values82.VString<string, "required">, "optional">;
1782
+ redirectUri: convex_values82.VString<string | undefined, "optional">;
1783
+ grantType: convex_values82.VString<string | undefined, "optional">;
1784
+ resource: convex_values82.VString<string | undefined, "optional">;
1785
+ userId: convex_values82.VString<string | undefined, "optional">;
1786
+ }, "required", "userId" | "name" | "clientId" | "codeId" | "scopes" | "redirectUri" | "grantType" | "resource">, convex_values82.VObject<{
1787
+ errorCode?: string | undefined;
1788
+ userId?: string | undefined;
1789
+ connectionId?: string | undefined;
1790
+ changed?: string[] | undefined;
1791
+ protocol?: "oidc" | "saml" | undefined;
1792
+ domain?: string | undefined;
1793
+ recordName?: string | undefined;
1794
+ expiresAt?: number | undefined;
1795
+ verifiedAt?: number | undefined;
1796
+ metadataUrl?: string | undefined;
1797
+ domains?: string[] | undefined;
1798
+ issuer?: string | undefined;
1799
+ discoveryUrl?: string | undefined;
1800
+ jwksUri?: string | undefined;
1801
+ audience?: string | string[] | undefined;
1802
+ tokenEndpointAuthMethod?: string | undefined;
1803
+ version?: number | undefined;
1804
+ }, {
1805
+ connectionId: convex_values82.VString<string | undefined, "optional">;
1806
+ changed: convex_values82.VArray<string[] | undefined, convex_values82.VString<string, "required">, "optional">;
1807
+ userId: convex_values82.VString<string | undefined, "optional">;
1808
+ protocol: convex_values82.VUnion<"oidc" | "saml" | undefined, [convex_values82.VLiteral<"oidc", "required">, convex_values82.VLiteral<"saml", "required">], "optional", never>;
1809
+ domain: convex_values82.VString<string | undefined, "optional">;
1810
+ recordName: convex_values82.VString<string | undefined, "optional">;
1811
+ expiresAt: convex_values82.VFloat64<number | undefined, "optional">;
1812
+ verifiedAt: convex_values82.VFloat64<number | undefined, "optional">;
1813
+ metadataUrl: convex_values82.VString<string | undefined, "optional">;
1814
+ domains: convex_values82.VArray<string[] | undefined, convex_values82.VString<string, "required">, "optional">;
1815
+ issuer: convex_values82.VString<string | undefined, "optional">;
1816
+ discoveryUrl: convex_values82.VString<string | undefined, "optional">;
1817
+ jwksUri: convex_values82.VString<string | undefined, "optional">;
1818
+ audience: convex_values82.VUnion<string | string[] | undefined, [convex_values82.VString<string, "required">, convex_values82.VArray<string[], convex_values82.VString<string, "required">, "required">], "optional", never>;
1819
+ tokenEndpointAuthMethod: convex_values82.VString<string | undefined, "optional">;
1820
+ version: convex_values82.VFloat64<number | undefined, "optional">;
1821
+ errorCode: convex_values82.VString<string | undefined, "optional">;
1822
+ }, "required", "errorCode" | "userId" | "connectionId" | "changed" | "protocol" | "domain" | "recordName" | "expiresAt" | "verifiedAt" | "metadataUrl" | "domains" | "issuer" | "discoveryUrl" | "jwksUri" | "audience" | "tokenEndpointAuthMethod" | "version">, convex_values82.VObject<{
1823
+ userId?: string | undefined;
1824
+ scimConfigId?: string | undefined;
1825
+ resourceType?: "user" | "group" | undefined;
1826
+ resourceId?: string | undefined;
1827
+ operation?: string | undefined;
1828
+ externalId?: string | undefined;
1829
+ active?: boolean | undefined;
1830
+ groupId?: string | undefined;
1831
+ }, {
1832
+ scimConfigId: convex_values82.VString<string | undefined, "optional">;
1833
+ resourceType: convex_values82.VUnion<"user" | "group" | undefined, [convex_values82.VLiteral<"user", "required">, convex_values82.VLiteral<"group", "required">], "optional", never>;
1834
+ resourceId: convex_values82.VString<string | undefined, "optional">;
1835
+ operation: convex_values82.VString<string | undefined, "optional">;
1836
+ externalId: convex_values82.VString<string | undefined, "optional">;
1837
+ active: convex_values82.VBoolean<boolean | undefined, "optional">;
1838
+ groupId: convex_values82.VString<string | undefined, "optional">;
1839
+ userId: convex_values82.VString<string | undefined, "optional">;
1840
+ }, "required", "userId" | "scimConfigId" | "resourceType" | "resourceId" | "operation" | "externalId" | "active" | "groupId">, convex_values82.VObject<{
1841
+ endpointId?: string | undefined;
1842
+ deliveryId?: string | undefined;
1843
+ sourceEventId?: string | undefined;
1844
+ sourceEventType?: "user.created" | "user.updated" | "session.signed_in" | "session.signed_out" | "session.invalidated" | "session.refresh_exchanged" | "session.refresh_reuse_detected" | "account.linked" | "account.unlinked" | "password.changed" | "passkey.added" | "passkey.removed" | "totp.enrolled" | "totp.removed" | "email.verified" | "phone.verified" | "api_key.created" | "api_key.revoked" | "oauth.client.created" | "oauth.client.revoked" | "oauth.code.created" | "oauth.token.created" | "oauth.token.exchanged" | "oauth.refresh.reuse_detected" | "oauth.refresh.revoked" | "connection.created" | "connection.updated" | "connection.removed" | "connection.login.succeeded" | "connection.login.failed" | "connection.domain.verification_requested" | "connection.domain.verified" | "connection.policy.updated" | "connection.saml.set" | "connection.saml.refreshed" | "connection.oidc.set" | "connection.scim.set" | "connection.scim.read" | "connection.scim.user.provisioned" | "connection.scim.user.updated" | "connection.scim.user.deactivated" | "connection.scim.user.reactivated" | "connection.scim.group.provisioned" | "connection.scim.group.updated" | "connection.scim.group.deactivated" | "connection.scim.group.reactivated" | "webhook.endpoint.created" | "webhook.endpoint.disabled" | "webhook.delivery.created" | "webhook.delivery.attempted" | "webhook.delivery.succeeded" | "webhook.delivery.failed" | undefined;
1845
+ attemptCount?: number | undefined;
1846
+ status?: number | undefined;
1847
+ error?: string | undefined;
1848
+ }, {
1849
+ endpointId: convex_values82.VString<string | undefined, "optional">;
1850
+ deliveryId: convex_values82.VString<string | undefined, "optional">;
1851
+ sourceEventId: convex_values82.VString<string | undefined, "optional">;
1852
+ sourceEventType: convex_values82.VUnion<"user.created" | "user.updated" | "session.signed_in" | "session.signed_out" | "session.invalidated" | "session.refresh_exchanged" | "session.refresh_reuse_detected" | "account.linked" | "account.unlinked" | "password.changed" | "passkey.added" | "passkey.removed" | "totp.enrolled" | "totp.removed" | "email.verified" | "phone.verified" | "api_key.created" | "api_key.revoked" | "oauth.client.created" | "oauth.client.revoked" | "oauth.code.created" | "oauth.token.created" | "oauth.token.exchanged" | "oauth.refresh.reuse_detected" | "oauth.refresh.revoked" | "connection.created" | "connection.updated" | "connection.removed" | "connection.login.succeeded" | "connection.login.failed" | "connection.domain.verification_requested" | "connection.domain.verified" | "connection.policy.updated" | "connection.saml.set" | "connection.saml.refreshed" | "connection.oidc.set" | "connection.scim.set" | "connection.scim.read" | "connection.scim.user.provisioned" | "connection.scim.user.updated" | "connection.scim.user.deactivated" | "connection.scim.user.reactivated" | "connection.scim.group.provisioned" | "connection.scim.group.updated" | "connection.scim.group.deactivated" | "connection.scim.group.reactivated" | "webhook.endpoint.created" | "webhook.endpoint.disabled" | "webhook.delivery.created" | "webhook.delivery.attempted" | "webhook.delivery.succeeded" | "webhook.delivery.failed" | undefined, convex_values82.VLiteral<"user.created" | "user.updated" | "session.signed_in" | "session.signed_out" | "session.invalidated" | "session.refresh_exchanged" | "session.refresh_reuse_detected" | "account.linked" | "account.unlinked" | "password.changed" | "passkey.added" | "passkey.removed" | "totp.enrolled" | "totp.removed" | "email.verified" | "phone.verified" | "api_key.created" | "api_key.revoked" | "oauth.client.created" | "oauth.client.revoked" | "oauth.code.created" | "oauth.token.created" | "oauth.token.exchanged" | "oauth.refresh.reuse_detected" | "oauth.refresh.revoked" | "connection.created" | "connection.updated" | "connection.removed" | "connection.login.succeeded" | "connection.login.failed" | "connection.domain.verification_requested" | "connection.domain.verified" | "connection.policy.updated" | "connection.saml.set" | "connection.saml.refreshed" | "connection.oidc.set" | "connection.scim.set" | "connection.scim.read" | "connection.scim.user.provisioned" | "connection.scim.user.updated" | "connection.scim.user.deactivated" | "connection.scim.user.reactivated" | "connection.scim.group.provisioned" | "connection.scim.group.updated" | "connection.scim.group.deactivated" | "connection.scim.group.reactivated" | "webhook.endpoint.created" | "webhook.endpoint.disabled" | "webhook.delivery.created" | "webhook.delivery.attempted" | "webhook.delivery.succeeded" | "webhook.delivery.failed", "required">[], "optional", never>;
1853
+ attemptCount: convex_values82.VFloat64<number | undefined, "optional">;
1854
+ status: convex_values82.VFloat64<number | undefined, "optional">;
1855
+ error: convex_values82.VString<string | undefined, "optional">;
1856
+ }, "required", "endpointId" | "deliveryId" | "sourceEventId" | "sourceEventType" | "attemptCount" | "status" | "error">], "optional", "profile" | "email" | "type" | "flow" | "phone" | "errorCode" | "provider" | "existingUserId" | `profile.${string}` | "method" | "userId" | "reason" | "sessionId" | "refreshTokenId" | "providerAccountId" | "accountId" | "passkeyId" | "credentialId" | "totpId" | "keyId" | "name" | "prefix" | "clientId" | "codeId" | "scopes" | "redirectUri" | "grantType" | "resource" | "connectionId" | "changed" | "protocol" | "domain" | "recordName" | "expiresAt" | "verifiedAt" | "metadataUrl" | "domains" | "issuer" | "discoveryUrl" | "jwksUri" | "audience" | "tokenEndpointAuthMethod" | "version" | "scimConfigId" | "resourceType" | "resourceId" | "operation" | "externalId" | "active" | "groupId" | "endpointId" | "deliveryId" | "sourceEventId" | "sourceEventType" | "attemptCount" | "status" | "error">;
1857
+ }, "required", "eventId" | "kind" | "category" | "occurredAt" | "actor" | "subject" | "targets" | "request" | "outcome" | "errorCode" | "data" | "actor.type" | "actor.id" | "subject.type" | "subject.id" | "request.requestId" | "request.ip" | "request.userAgent" | "data.profile" | "data.email" | "data.type" | "data.flow" | "data.phone" | "data.errorCode" | "data.provider" | "data.existingUserId" | `data.profile.${string}` | "data.method" | "data.userId" | "data.reason" | "data.sessionId" | "data.refreshTokenId" | "data.providerAccountId" | "data.accountId" | "data.passkeyId" | "data.credentialId" | "data.totpId" | "data.keyId" | "data.name" | "data.prefix" | "data.clientId" | "data.codeId" | "data.scopes" | "data.redirectUri" | "data.grantType" | "data.resource" | "data.connectionId" | "data.changed" | "data.protocol" | "data.domain" | "data.recordName" | "data.expiresAt" | "data.verifiedAt" | "data.metadataUrl" | "data.domains" | "data.issuer" | "data.discoveryUrl" | "data.jwksUri" | "data.audience" | "data.tokenEndpointAuthMethod" | "data.version" | "data.scimConfigId" | "data.resourceType" | "data.resourceId" | "data.operation" | "data.externalId" | "data.active" | "data.groupId" | "data.endpointId" | "data.deliveryId" | "data.sourceEventId" | "data.sourceEventType" | "data.attemptCount" | "data.status" | "data.error">, {
1858
+ eventId: ReturnType<() => convex_values82.VString<string, "required">>;
1859
+ }>, "_creationTime" | "_id">, "required", string>, {
1860
+ by_streamId_and_attempt_and_commitTs: ["streamId", "attempt", "commitTs", "_creationTime"];
1861
+ event_id: ["eventId", "_creationTime"];
1862
+ }, {}, {}>;
1372
1863
  }, true>;
1373
1864
  modules: {
1374
1865
  "./component/_generated/api.ts": () => Promise<typeof api_d_exports>;
@@ -1381,6 +1872,7 @@ declare const testHelpers: {
1381
1872
  "./component/http.ts": () => Promise<typeof http_d_exports>;
1382
1873
  "./component/index.ts": () => Promise<typeof index_d_exports>;
1383
1874
  "./component/event.ts": () => Promise<typeof event_d_exports>;
1875
+ "./component/eventstream.ts": () => Promise<typeof eventstream_d_exports>;
1384
1876
  "./component/limits.ts": () => Promise<typeof limits_d_exports>;
1385
1877
  "./component/maintenance.ts": () => Promise<typeof maintenance_d_exports>;
1386
1878
  "./component/model.ts": () => Promise<typeof model_d_exports>;
@@ -1401,6 +1893,7 @@ declare const testHelpers: {
1401
1893
  "./component/factor/totp.ts": () => Promise<typeof totp_d_exports>;
1402
1894
  "./component/factor/device.ts": () => Promise<typeof device_d_exports>;
1403
1895
  "./component/connection.ts": () => Promise<typeof connection_d_exports>;
1896
+ "./component/context.ts": () => Promise<typeof context_d_exports>;
1404
1897
  "./component/connection/saml/request.ts": () => Promise<typeof request_d_exports>;
1405
1898
  "./component/connection/saml/assertion.ts": () => Promise<typeof assertion_d_exports>;
1406
1899
  "./component/connection/domain.ts": () => Promise<typeof domain_d_exports>;
@@ -1412,6 +1905,7 @@ declare const testHelpers: {
1412
1905
  "./component/connection/cache.ts": () => Promise<typeof cache_d_exports>;
1413
1906
  "./component/connection/webhook/endpoint.ts": () => Promise<typeof endpoint_d_exports>;
1414
1907
  "./component/connection/webhook/delivery.ts": () => Promise<typeof delivery_d_exports>;
1908
+ "./component/connection/webhook/events.ts": () => Promise<typeof events_d_exports>;
1415
1909
  "./component/oauth/client.ts": () => Promise<typeof client_d_exports>;
1416
1910
  "./component/oauth/code.ts": () => Promise<typeof code_d_exports>;
1417
1911
  "./component/oauth/refresh.ts": () => Promise<typeof refresh_d_exports$1>;