@robelest/convex-auth 0.0.4-preview.33 → 0.0.4-preview.34

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 (89) hide show
  1. package/dist/component/_generated/component.d.ts +1611 -2039
  2. package/dist/component/account.js +3 -0
  3. package/dist/component/convex.config.d.ts +2 -2
  4. package/dist/component/factor/device.js +3 -0
  5. package/dist/component/factor/passkey.js +3 -0
  6. package/dist/component/factor/totp.js +3 -0
  7. package/dist/component/group/invite.js +3 -0
  8. package/dist/component/group/member.js +3 -0
  9. package/dist/component/group.js +3 -0
  10. package/dist/component/model.d.ts +172 -149
  11. package/dist/component/model.js +22 -4
  12. package/dist/component/modules.js +24 -21
  13. package/dist/component/public/factors/devices.js +37 -106
  14. package/dist/component/public/factors/passkeys.js +29 -149
  15. package/dist/component/public/factors/totp.js +32 -159
  16. package/dist/component/public/groups/core.js +19 -82
  17. package/dist/component/public/groups/invites.js +15 -104
  18. package/dist/component/public/groups/members.js +26 -149
  19. package/dist/component/public/identity/accounts.js +12 -94
  20. package/dist/component/public/identity/codes.js +13 -73
  21. package/dist/component/public/identity/sessions.js +5 -107
  22. package/dist/component/public/identity/tokens.js +13 -103
  23. package/dist/component/public/identity/users.js +188 -185
  24. package/dist/component/public/identity/verifiers.js +17 -80
  25. package/dist/component/public/security/keys.js +13 -120
  26. package/dist/component/public/security/limits.js +0 -43
  27. package/dist/component/public/sso/audit.js +0 -28
  28. package/dist/component/public/sso/core.js +31 -104
  29. package/dist/component/public/sso/domains.js +0 -71
  30. package/dist/component/public/sso/scim.js +63 -239
  31. package/dist/component/public/sso/secrets.js +0 -30
  32. package/dist/component/public/sso/webhooks.js +23 -128
  33. package/dist/component/rateLimit.js +3 -0
  34. package/dist/component/schema.d.ts +380 -344
  35. package/dist/component/schema.js +11 -1
  36. package/dist/component/session.js +3 -0
  37. package/dist/component/sso/audit.js +3 -0
  38. package/dist/component/sso/connection/domain/verification.js +3 -0
  39. package/dist/component/sso/connection/domain.js +3 -0
  40. package/dist/component/sso/connection/scim/config.js +3 -0
  41. package/dist/component/sso/connection/scim/identity.js +3 -0
  42. package/dist/component/sso/connection/secret.js +3 -0
  43. package/dist/component/sso/connection.js +3 -0
  44. package/dist/component/sso/webhook/delivery.js +3 -0
  45. package/dist/component/sso/webhook/endpoint.js +3 -0
  46. package/dist/component/token/pkce.js +3 -0
  47. package/dist/component/token/refresh.js +3 -0
  48. package/dist/component/token/verification.js +3 -0
  49. package/dist/component/user/email.js +3 -0
  50. package/dist/component/user/key.js +3 -0
  51. package/dist/component/user.js +62 -0
  52. package/dist/core/index.d.ts +129 -27
  53. package/dist/core/index.js +2 -0
  54. package/dist/model.js +22 -4
  55. package/dist/providers/credentials.d.ts +1 -1
  56. package/dist/providers/github.js +6 -0
  57. package/dist/providers/password.js +1 -2
  58. package/dist/server/auth.d.ts +3 -2
  59. package/dist/server/auth.js +2 -1
  60. package/dist/server/context.js +30 -3
  61. package/dist/server/contract.js +42 -42
  62. package/dist/server/core.js +224 -86
  63. package/dist/server/db.js +45 -37
  64. package/dist/server/facade.d.ts +39 -0
  65. package/dist/server/facade.js +16 -0
  66. package/dist/server/index.d.ts +2 -2
  67. package/dist/server/index.js +2 -2
  68. package/dist/server/mounts.d.ts +105 -105
  69. package/dist/server/mutations/credentials/signin.js +3 -7
  70. package/dist/server/mutations/oauth.js +9 -6
  71. package/dist/server/runtime.d.ts +149 -48
  72. package/dist/server/runtime.js +10 -8
  73. package/dist/server/services/group.js +9 -9
  74. package/dist/server/sso/domain.d.ts +1 -1
  75. package/dist/server/sso/domain.js +40 -40
  76. package/dist/server/sso/http.js +18 -18
  77. package/dist/server/sso/oidc.js +1 -1
  78. package/dist/server/sso/policies.js +3 -3
  79. package/dist/server/sso/policy.js +12 -4
  80. package/dist/server/sso/provision.js +9 -9
  81. package/dist/server/sso/validators.js +2 -2
  82. package/dist/server/sso/webhook.js +8 -8
  83. package/dist/server/types.d.ts +184 -123
  84. package/dist/server/types.js +29 -24
  85. package/dist/server/users.js +49 -2
  86. package/dist/server/validators.d.ts +352 -329
  87. package/dist/server/validators.js +3 -2
  88. package/package.json +1 -1
  89. package/dist/component/public.js +0 -22
@@ -0,0 +1,3 @@
1
+ import { accountDelete, accountGet, accountInsert, accountList, accountPatch } from "./public/identity/accounts.js";
2
+
3
+ export { accountInsert as create, accountDelete as delete, accountGet as get, accountList as list, accountPatch as update };
@@ -1,7 +1,7 @@
1
- import * as convex_server4 from "convex/server";
1
+ import * as convex_server12 from "convex/server";
2
2
 
3
3
  //#region src/component/convex.config.d.ts
4
- declare const component: convex_server4.ComponentDefinition<any>;
4
+ declare const component: convex_server12.ComponentDefinition<any>;
5
5
  //#endregion
6
6
  export { component as default };
7
7
  //# sourceMappingURL=convex.config.d.ts.map
@@ -0,0 +1,3 @@
1
+ import { deviceAuthorize, deviceDelete, deviceGet, deviceInsert, deviceUpdate } from "../public/factors/devices.js";
2
+
3
+ export { deviceAuthorize as authorize, deviceInsert as create, deviceDelete as delete, deviceGet as get, deviceUpdate as update };
@@ -0,0 +1,3 @@
1
+ import { passkeyDelete, passkeyGet, passkeyInsert, passkeyList, passkeyUpdate } from "../public/factors/passkeys.js";
2
+
3
+ export { passkeyInsert as create, passkeyDelete as delete, passkeyGet as get, passkeyList as list, passkeyUpdate as update };
@@ -0,0 +1,3 @@
1
+ import { totpDelete, totpGet, totpInsert, totpList, totpUpdate } from "../public/factors/totp.js";
2
+
3
+ export { totpInsert as create, totpDelete as delete, totpGet as get, totpList as list, totpUpdate as update };
@@ -0,0 +1,3 @@
1
+ import { inviteAccept, inviteCreate, inviteGet, inviteList, inviteRedeem, inviteRevoke } from "../public/groups/invites.js";
2
+
3
+ export { inviteAccept as accept, inviteCreate as create, inviteGet as get, inviteList as list, inviteRedeem as redeem, inviteRevoke as revoke };
@@ -0,0 +1,3 @@
1
+ import { memberAdd, memberGet, memberList, memberRemove, memberResolve, memberUpdate } from "../public/groups/members.js";
2
+
3
+ export { memberAdd as create, memberRemove as delete, memberGet as get, memberList as list, memberResolve as resolve, memberUpdate as update };
@@ -0,0 +1,3 @@
1
+ import { groupAncestors, groupCreate, groupDelete, groupGet, groupList, groupUpdate } from "./public/groups/core.js";
2
+
3
+ export { groupAncestors as ancestors, groupCreate as create, groupDelete as delete, groupGet as get, groupList as list, groupUpdate as update };
@@ -1,59 +1,82 @@
1
- import * as convex_values477 from "convex/values";
1
+ import * as convex_values566 from "convex/values";
2
2
  import { Validator } from "convex/values";
3
3
 
4
4
  //#region src/component/model.d.ts
5
- declare const vPaginated: <V extends Validator<any, any, any>>(item: V) => convex_values477.VObject<{
5
+ declare const vPaginated: <V extends Validator<any, any, any>>(item: V) => convex_values566.VObject<{
6
6
  items: V["type"][];
7
7
  nextCursor: string | null;
8
8
  }, {
9
- items: convex_values477.VArray<V["type"][], V, "required">;
10
- nextCursor: convex_values477.VUnion<string | null, [convex_values477.VString<string, "required">, convex_values477.VNull<null, "required">], "required", never>;
9
+ items: convex_values566.VArray<V["type"][], V, "required">;
10
+ nextCursor: convex_values566.VUnion<string | null, [convex_values566.VString<string, "required">, convex_values566.VNull<null, "required">], "required", never>;
11
11
  }, "required", "items" | "nextCursor">;
12
- declare const vUserDoc: convex_values477.VObject<{
13
- name?: string | undefined;
12
+ declare const vUserDoc: convex_values566.VObject<{
14
13
  email?: string | undefined;
15
- phone?: string | undefined;
16
- extend?: any;
14
+ name?: string | undefined;
17
15
  image?: string | undefined;
16
+ extend?: any;
18
17
  emailVerificationTime?: number | undefined;
18
+ phone?: string | undefined;
19
19
  phoneVerificationTime?: number | undefined;
20
20
  isAnonymous?: boolean | undefined;
21
- hasTotp?: boolean | undefined;
21
+ lastActiveGroup?: convex_values566.GenericId<"Group"> | undefined;
22
22
  _creationTime: number;
23
- _id: convex_values477.GenericId<"User">;
23
+ _id: convex_values566.GenericId<"User">;
24
24
  }, {
25
- name: convex_values477.VString<string | undefined, "optional">;
26
- image: convex_values477.VString<string | undefined, "optional">;
27
- email: convex_values477.VString<string | undefined, "optional">;
28
- emailVerificationTime: convex_values477.VFloat64<number | undefined, "optional">;
29
- phone: convex_values477.VString<string | undefined, "optional">;
30
- phoneVerificationTime: convex_values477.VFloat64<number | undefined, "optional">;
31
- isAnonymous: convex_values477.VBoolean<boolean | undefined, "optional">;
32
- hasTotp: convex_values477.VBoolean<boolean | undefined, "optional">;
33
- extend: convex_values477.VAny<any, "optional", string>;
34
- _id: convex_values477.VId<convex_values477.GenericId<"User">, "required">;
35
- _creationTime: convex_values477.VFloat64<number, "required">;
36
- }, "required", "_creationTime" | "name" | "email" | "phone" | "extend" | "_id" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "hasTotp" | `extend.${string}`>;
37
- declare const vGroupDoc: convex_values477.VObject<{
38
- slug?: string | undefined;
25
+ name: convex_values566.VString<string | undefined, "optional">;
26
+ image: convex_values566.VString<string | undefined, "optional">;
27
+ email: convex_values566.VString<string | undefined, "optional">;
28
+ emailVerificationTime: convex_values566.VFloat64<number | undefined, "optional">;
29
+ phone: convex_values566.VString<string | undefined, "optional">;
30
+ phoneVerificationTime: convex_values566.VFloat64<number | undefined, "optional">;
31
+ isAnonymous: convex_values566.VBoolean<boolean | undefined, "optional">;
32
+ lastActiveGroup: convex_values566.VId<convex_values566.GenericId<"Group"> | undefined, "optional">;
33
+ extend: convex_values566.VAny<any, "optional", string>;
34
+ _id: convex_values566.VId<convex_values566.GenericId<"User">, "required">;
35
+ _creationTime: convex_values566.VFloat64<number, "required">;
36
+ }, "required", "email" | "_creationTime" | "name" | "image" | "extend" | "emailVerificationTime" | "phone" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "_id" | `extend.${string}`>;
37
+ declare const vUserEmailDoc: convex_values566.VObject<{
38
+ provider?: string | undefined;
39
+ connectionId?: convex_values566.GenericId<"GroupConnection"> | undefined;
40
+ verificationTime?: number | undefined;
41
+ accountId?: convex_values566.GenericId<"Account"> | undefined;
42
+ email: string;
43
+ _creationTime: number;
44
+ _id: convex_values566.GenericId<"UserEmail">;
45
+ source: "saml" | "oidc" | "scim" | "password" | "oauth";
46
+ userId: convex_values566.GenericId<"User">;
47
+ isPrimary: boolean;
48
+ }, {
49
+ userId: convex_values566.VId<convex_values566.GenericId<"User">, "required">;
50
+ email: convex_values566.VString<string, "required">;
51
+ verificationTime: convex_values566.VFloat64<number | undefined, "optional">;
52
+ isPrimary: convex_values566.VBoolean<boolean, "required">;
53
+ source: convex_values566.VUnion<"saml" | "oidc" | "scim" | "password" | "oauth", [convex_values566.VLiteral<"password", "required">, convex_values566.VLiteral<"oauth", "required">, convex_values566.VLiteral<"oidc", "required">, convex_values566.VLiteral<"saml", "required">, convex_values566.VLiteral<"scim", "required">], "required", never>;
54
+ accountId: convex_values566.VId<convex_values566.GenericId<"Account"> | undefined, "optional">;
55
+ provider: convex_values566.VString<string | undefined, "optional">;
56
+ connectionId: convex_values566.VId<convex_values566.GenericId<"GroupConnection"> | undefined, "optional">;
57
+ _id: convex_values566.VId<convex_values566.GenericId<"UserEmail">, "required">;
58
+ _creationTime: convex_values566.VFloat64<number, "required">;
59
+ }, "required", "email" | "_creationTime" | "provider" | "connectionId" | "_id" | "source" | "userId" | "verificationTime" | "isPrimary" | "accountId">;
60
+ declare const vGroupDoc: convex_values566.VObject<{
39
61
  type?: string | undefined;
40
62
  extend?: any;
41
- parentGroupId?: convex_values477.GenericId<"Group"> | undefined;
42
- rootGroupId?: convex_values477.GenericId<"Group"> | undefined;
63
+ slug?: string | undefined;
64
+ parentGroupId?: convex_values566.GenericId<"Group"> | undefined;
65
+ rootGroupId?: convex_values566.GenericId<"Group"> | undefined;
43
66
  isRoot?: boolean | undefined;
44
67
  tags?: {
45
- key: string;
46
68
  value: string;
69
+ key: string;
47
70
  }[] | undefined;
48
71
  policy?: {
49
72
  extend?: any;
50
- version: 1;
51
73
  identity: {
52
74
  accountLinking: {
53
- oidc: "verifiedEmail" | "none";
54
- saml: "verifiedEmail" | "none";
75
+ saml: "verifiedEmail" | "none" | "sameConnection";
76
+ oidc: "verifiedEmail" | "none" | "sameConnection";
55
77
  };
56
78
  };
79
+ version: 1;
57
80
  provisioning: {
58
81
  user: {
59
82
  createOnSignIn: boolean;
@@ -86,33 +109,33 @@ declare const vGroupDoc: convex_values477.VObject<{
86
109
  } | undefined;
87
110
  _creationTime: number;
88
111
  name: string;
89
- _id: convex_values477.GenericId<"Group">;
112
+ _id: convex_values566.GenericId<"Group">;
90
113
  }, {
91
- name: convex_values477.VString<string, "required">;
92
- slug: convex_values477.VString<string | undefined, "optional">;
93
- type: convex_values477.VString<string | undefined, "optional">;
94
- parentGroupId: convex_values477.VId<convex_values477.GenericId<"Group"> | undefined, "optional">;
95
- rootGroupId: convex_values477.VId<convex_values477.GenericId<"Group"> | undefined, "optional">;
96
- isRoot: convex_values477.VBoolean<boolean | undefined, "optional">;
97
- tags: convex_values477.VArray<{
98
- key: string;
114
+ name: convex_values566.VString<string, "required">;
115
+ slug: convex_values566.VString<string | undefined, "optional">;
116
+ type: convex_values566.VString<string | undefined, "optional">;
117
+ parentGroupId: convex_values566.VId<convex_values566.GenericId<"Group"> | undefined, "optional">;
118
+ rootGroupId: convex_values566.VId<convex_values566.GenericId<"Group"> | undefined, "optional">;
119
+ isRoot: convex_values566.VBoolean<boolean | undefined, "optional">;
120
+ tags: convex_values566.VArray<{
99
121
  value: string;
100
- }[] | undefined, convex_values477.VObject<{
101
122
  key: string;
123
+ }[] | undefined, convex_values566.VObject<{
102
124
  value: string;
125
+ key: string;
103
126
  }, {
104
- key: convex_values477.VString<string, "required">;
105
- value: convex_values477.VString<string, "required">;
106
- }, "required", "key" | "value">, "optional">;
107
- policy: convex_values477.VObject<{
127
+ key: convex_values566.VString<string, "required">;
128
+ value: convex_values566.VString<string, "required">;
129
+ }, "required", "value" | "key">, "optional">;
130
+ policy: convex_values566.VObject<{
108
131
  extend?: any;
109
- version: 1;
110
132
  identity: {
111
133
  accountLinking: {
112
- oidc: "verifiedEmail" | "none";
113
- saml: "verifiedEmail" | "none";
134
+ saml: "verifiedEmail" | "none" | "sameConnection";
135
+ oidc: "verifiedEmail" | "none" | "sameConnection";
114
136
  };
115
137
  };
138
+ version: 1;
116
139
  provisioning: {
117
140
  user: {
118
141
  createOnSignIn: boolean;
@@ -143,22 +166,22 @@ declare const vGroupDoc: convex_values477.VObject<{
143
166
  };
144
167
  };
145
168
  } | undefined, {
146
- version: convex_values477.VLiteral<1, "required">;
147
- identity: convex_values477.VObject<{
169
+ version: convex_values566.VLiteral<1, "required">;
170
+ identity: convex_values566.VObject<{
148
171
  accountLinking: {
149
- oidc: "verifiedEmail" | "none";
150
- saml: "verifiedEmail" | "none";
172
+ saml: "verifiedEmail" | "none" | "sameConnection";
173
+ oidc: "verifiedEmail" | "none" | "sameConnection";
151
174
  };
152
175
  }, {
153
- accountLinking: convex_values477.VObject<{
154
- oidc: "verifiedEmail" | "none";
155
- saml: "verifiedEmail" | "none";
176
+ accountLinking: convex_values566.VObject<{
177
+ saml: "verifiedEmail" | "none" | "sameConnection";
178
+ oidc: "verifiedEmail" | "none" | "sameConnection";
156
179
  }, {
157
- oidc: convex_values477.VUnion<"verifiedEmail" | "none", [convex_values477.VLiteral<"verifiedEmail", "required">, convex_values477.VLiteral<"none", "required">], "required", never>;
158
- saml: convex_values477.VUnion<"verifiedEmail" | "none", [convex_values477.VLiteral<"verifiedEmail", "required">, convex_values477.VLiteral<"none", "required">], "required", never>;
159
- }, "required", "oidc" | "saml">;
160
- }, "required", "accountLinking" | "accountLinking.oidc" | "accountLinking.saml">;
161
- provisioning: convex_values477.VObject<{
180
+ oidc: convex_values566.VUnion<"verifiedEmail" | "none" | "sameConnection", [convex_values566.VLiteral<"verifiedEmail", "required">, convex_values566.VLiteral<"none", "required">, convex_values566.VLiteral<"sameConnection", "required">], "required", never>;
181
+ saml: convex_values566.VUnion<"verifiedEmail" | "none" | "sameConnection", [convex_values566.VLiteral<"verifiedEmail", "required">, convex_values566.VLiteral<"none", "required">, convex_values566.VLiteral<"sameConnection", "required">], "required", never>;
182
+ }, "required", "saml" | "oidc">;
183
+ }, "required", "accountLinking" | "accountLinking.saml" | "accountLinking.oidc">;
184
+ provisioning: convex_values566.VObject<{
162
185
  user: {
163
186
  createOnSignIn: boolean;
164
187
  updateProfileOnLogin: "never" | "missing" | "always";
@@ -187,112 +210,111 @@ declare const vGroupDoc: convex_values477.VObject<{
187
210
  source: "protocol";
188
211
  };
189
212
  }, {
190
- user: convex_values477.VObject<{
213
+ user: convex_values566.VObject<{
191
214
  createOnSignIn: boolean;
192
215
  updateProfileOnLogin: "never" | "missing" | "always";
193
216
  updateProfileFromScim: "never" | "missing" | "always";
194
217
  authority: "app" | "sso" | "scim";
195
218
  }, {
196
- createOnSignIn: convex_values477.VBoolean<boolean, "required">;
197
- updateProfileOnLogin: convex_values477.VUnion<"never" | "missing" | "always", [convex_values477.VLiteral<"never", "required">, convex_values477.VLiteral<"missing", "required">, convex_values477.VLiteral<"always", "required">], "required", never>;
198
- updateProfileFromScim: convex_values477.VUnion<"never" | "missing" | "always", [convex_values477.VLiteral<"never", "required">, convex_values477.VLiteral<"missing", "required">, convex_values477.VLiteral<"always", "required">], "required", never>;
199
- authority: convex_values477.VUnion<"app" | "sso" | "scim", [convex_values477.VLiteral<"app", "required">, convex_values477.VLiteral<"sso", "required">, convex_values477.VLiteral<"scim", "required">], "required", never>;
219
+ createOnSignIn: convex_values566.VBoolean<boolean, "required">;
220
+ updateProfileOnLogin: convex_values566.VUnion<"never" | "missing" | "always", [convex_values566.VLiteral<"never", "required">, convex_values566.VLiteral<"missing", "required">, convex_values566.VLiteral<"always", "required">], "required", never>;
221
+ updateProfileFromScim: convex_values566.VUnion<"never" | "missing" | "always", [convex_values566.VLiteral<"never", "required">, convex_values566.VLiteral<"missing", "required">, convex_values566.VLiteral<"always", "required">], "required", never>;
222
+ authority: convex_values566.VUnion<"app" | "sso" | "scim", [convex_values566.VLiteral<"app", "required">, convex_values566.VLiteral<"sso", "required">, convex_values566.VLiteral<"scim", "required">], "required", never>;
200
223
  }, "required", "createOnSignIn" | "updateProfileOnLogin" | "updateProfileFromScim" | "authority">;
201
- scimReuse: convex_values477.VObject<{
224
+ scimReuse: convex_values566.VObject<{
202
225
  user: "none" | "externalId";
203
226
  }, {
204
- user: convex_values477.VUnion<"none" | "externalId", [convex_values477.VLiteral<"externalId", "required">, convex_values477.VLiteral<"none", "required">], "required", never>;
227
+ user: convex_values566.VUnion<"none" | "externalId", [convex_values566.VLiteral<"externalId", "required">, convex_values566.VLiteral<"none", "required">], "required", never>;
205
228
  }, "required", "user">;
206
- jit: convex_values477.VObject<{
229
+ jit: convex_values566.VObject<{
207
230
  defaultRole?: string | undefined;
208
231
  defaultRoleIds?: string[] | undefined;
209
232
  mode: "off" | "createUser" | "createUserAndMembership";
210
233
  }, {
211
- mode: convex_values477.VUnion<"off" | "createUser" | "createUserAndMembership", [convex_values477.VLiteral<"off", "required">, convex_values477.VLiteral<"createUser", "required">, convex_values477.VLiteral<"createUserAndMembership", "required">], "required", never>;
212
- defaultRole: convex_values477.VString<string | undefined, "optional">;
213
- defaultRoleIds: convex_values477.VArray<string[] | undefined, convex_values477.VString<string, "required">, "optional">;
234
+ mode: convex_values566.VUnion<"off" | "createUser" | "createUserAndMembership", [convex_values566.VLiteral<"off", "required">, convex_values566.VLiteral<"createUser", "required">, convex_values566.VLiteral<"createUserAndMembership", "required">], "required", never>;
235
+ defaultRole: convex_values566.VString<string | undefined, "optional">;
236
+ defaultRoleIds: convex_values566.VArray<string[] | undefined, convex_values566.VString<string, "required">, "optional">;
214
237
  }, "required", "mode" | "defaultRole" | "defaultRoleIds">;
215
- deprovision: convex_values477.VObject<{
238
+ deprovision: convex_values566.VObject<{
216
239
  mode: "soft" | "hard";
217
240
  }, {
218
- mode: convex_values477.VUnion<"soft" | "hard", [convex_values477.VLiteral<"soft", "required">, convex_values477.VLiteral<"hard", "required">], "required", never>;
241
+ mode: convex_values566.VUnion<"soft" | "hard", [convex_values566.VLiteral<"soft", "required">, convex_values566.VLiteral<"hard", "required">], "required", never>;
219
242
  }, "required", "mode">;
220
- groups: convex_values477.VObject<{
243
+ groups: convex_values566.VObject<{
221
244
  mapping?: Record<string, string[]> | undefined;
222
245
  mode: "ignore" | "sync";
223
246
  source: "protocol";
224
247
  }, {
225
- mode: convex_values477.VUnion<"ignore" | "sync", [convex_values477.VLiteral<"ignore", "required">, convex_values477.VLiteral<"sync", "required">], "required", never>;
226
- source: convex_values477.VLiteral<"protocol", "required">;
227
- mapping: convex_values477.VRecord<Record<string, string[]> | undefined, convex_values477.VString<string, "required">, convex_values477.VArray<string[], convex_values477.VString<string, "required">, "required">, "optional", string>;
248
+ mode: convex_values566.VUnion<"ignore" | "sync", [convex_values566.VLiteral<"ignore", "required">, convex_values566.VLiteral<"sync", "required">], "required", never>;
249
+ source: convex_values566.VLiteral<"protocol", "required">;
250
+ mapping: convex_values566.VRecord<Record<string, string[]> | undefined, convex_values566.VString<string, "required">, convex_values566.VArray<string[], convex_values566.VString<string, "required">, "required">, "optional", string>;
228
251
  }, "required", "mode" | "source" | "mapping" | `mapping.${string}`>;
229
- roles: convex_values477.VObject<{
252
+ roles: convex_values566.VObject<{
230
253
  mapping?: Record<string, string[]> | undefined;
231
254
  mode: "map" | "ignore";
232
255
  source: "protocol";
233
256
  }, {
234
- mode: convex_values477.VUnion<"map" | "ignore", [convex_values477.VLiteral<"ignore", "required">, convex_values477.VLiteral<"map", "required">], "required", never>;
235
- source: convex_values477.VLiteral<"protocol", "required">;
236
- mapping: convex_values477.VRecord<Record<string, string[]> | undefined, convex_values477.VString<string, "required">, convex_values477.VArray<string[], convex_values477.VString<string, "required">, "required">, "optional", string>;
257
+ mode: convex_values566.VUnion<"map" | "ignore", [convex_values566.VLiteral<"ignore", "required">, convex_values566.VLiteral<"map", "required">], "required", never>;
258
+ source: convex_values566.VLiteral<"protocol", "required">;
259
+ mapping: convex_values566.VRecord<Record<string, string[]> | undefined, convex_values566.VString<string, "required">, convex_values566.VArray<string[], convex_values566.VString<string, "required">, "required">, "optional", string>;
237
260
  }, "required", "mode" | "source" | "mapping" | `mapping.${string}`>;
238
261
  }, "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.mode" | "groups.source" | "groups.mapping" | `groups.mapping.${string}` | "roles.mode" | "roles.source" | "roles.mapping" | `roles.mapping.${string}`>;
239
- extend: convex_values477.VAny<any, "optional", string>;
240
- }, "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.mode" | "provisioning.groups.source" | "provisioning.groups.mapping" | `provisioning.groups.mapping.${string}` | "provisioning.roles.mode" | "provisioning.roles.source" | "provisioning.roles.mapping" | `provisioning.roles.mapping.${string}`>;
241
- extend: convex_values477.VAny<any, "optional", string>;
242
- _id: convex_values477.VId<convex_values477.GenericId<"Group">, "required">;
243
- _creationTime: convex_values477.VFloat64<number, "required">;
244
- }, "required", "_creationTime" | "name" | "slug" | "type" | "extend" | "_id" | `extend.${string}` | "parentGroupId" | "rootGroupId" | "isRoot" | "tags" | "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.mode" | "policy.provisioning.groups.source" | "policy.provisioning.groups.mapping" | `policy.provisioning.groups.mapping.${string}` | "policy.provisioning.roles.mode" | "policy.provisioning.roles.source" | "policy.provisioning.roles.mapping" | `policy.provisioning.roles.mapping.${string}`>;
245
- declare const vGroupMemberDoc: convex_values477.VObject<{
246
- status?: string | undefined;
262
+ extend: convex_values566.VAny<any, "optional", string>;
263
+ }, "optional", "identity" | "extend" | `extend.${string}` | "version" | "provisioning" | "identity.accountLinking" | "identity.accountLinking.saml" | "identity.accountLinking.oidc" | "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.mode" | "provisioning.groups.source" | "provisioning.groups.mapping" | `provisioning.groups.mapping.${string}` | "provisioning.roles.mode" | "provisioning.roles.source" | "provisioning.roles.mapping" | `provisioning.roles.mapping.${string}`>;
264
+ extend: convex_values566.VAny<any, "optional", string>;
265
+ _id: convex_values566.VId<convex_values566.GenericId<"Group">, "required">;
266
+ _creationTime: convex_values566.VFloat64<number, "required">;
267
+ }, "required", "_creationTime" | "name" | "type" | "extend" | "_id" | `extend.${string}` | "slug" | "parentGroupId" | "rootGroupId" | "isRoot" | "tags" | "policy" | "policy.identity" | "policy.extend" | `policy.extend.${string}` | "policy.version" | "policy.provisioning" | "policy.identity.accountLinking" | "policy.identity.accountLinking.saml" | "policy.identity.accountLinking.oidc" | "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.mode" | "policy.provisioning.groups.source" | "policy.provisioning.groups.mapping" | `policy.provisioning.groups.mapping.${string}` | "policy.provisioning.roles.mode" | "policy.provisioning.roles.source" | "policy.provisioning.roles.mapping" | `policy.provisioning.roles.mapping.${string}`>;
268
+ declare const vGroupMemberDoc: convex_values566.VObject<{
247
269
  extend?: any;
248
270
  role?: string | undefined;
249
271
  roleIds?: string[] | undefined;
272
+ status?: string | undefined;
250
273
  _creationTime: number;
251
- userId: convex_values477.GenericId<"User">;
252
- _id: convex_values477.GenericId<"GroupMember">;
253
- groupId: convex_values477.GenericId<"Group">;
274
+ _id: convex_values566.GenericId<"GroupMember">;
275
+ groupId: convex_values566.GenericId<"Group">;
276
+ userId: convex_values566.GenericId<"User">;
254
277
  }, {
255
- groupId: convex_values477.VId<convex_values477.GenericId<"Group">, "required">;
256
- userId: convex_values477.VId<convex_values477.GenericId<"User">, "required">;
257
- role: convex_values477.VString<string | undefined, "optional">;
258
- roleIds: convex_values477.VArray<string[] | undefined, convex_values477.VString<string, "required">, "optional">;
259
- status: convex_values477.VString<string | undefined, "optional">;
260
- extend: convex_values477.VAny<any, "optional", string>;
261
- _id: convex_values477.VId<convex_values477.GenericId<"GroupMember">, "required">;
262
- _creationTime: convex_values477.VFloat64<number, "required">;
263
- }, "required", "_creationTime" | "status" | "userId" | "extend" | "_id" | `extend.${string}` | "groupId" | "role" | "roleIds">;
264
- declare const vGroupInviteDoc: convex_values477.VObject<{
278
+ groupId: convex_values566.VId<convex_values566.GenericId<"Group">, "required">;
279
+ userId: convex_values566.VId<convex_values566.GenericId<"User">, "required">;
280
+ role: convex_values566.VString<string | undefined, "optional">;
281
+ roleIds: convex_values566.VArray<string[] | undefined, convex_values566.VString<string, "required">, "optional">;
282
+ status: convex_values566.VString<string | undefined, "optional">;
283
+ extend: convex_values566.VAny<any, "optional", string>;
284
+ _id: convex_values566.VId<convex_values566.GenericId<"GroupMember">, "required">;
285
+ _creationTime: convex_values566.VFloat64<number, "required">;
286
+ }, "required", "_creationTime" | "extend" | "_id" | `extend.${string}` | "groupId" | "userId" | "role" | "roleIds" | "status">;
287
+ declare const vGroupInviteDoc: convex_values566.VObject<{
265
288
  email?: string | undefined;
266
- expiresTime?: number | undefined;
267
- acceptedTime?: number | undefined;
268
289
  extend?: any;
269
- groupId?: convex_values477.GenericId<"Group"> | undefined;
290
+ groupId?: convex_values566.GenericId<"Group"> | undefined;
270
291
  role?: string | undefined;
271
292
  roleIds?: string[] | undefined;
272
- invitedByUserId?: convex_values477.GenericId<"User"> | undefined;
273
- acceptedByUserId?: convex_values477.GenericId<"User"> | undefined;
293
+ invitedByUserId?: convex_values566.GenericId<"User"> | undefined;
294
+ expiresTime?: number | undefined;
295
+ acceptedByUserId?: convex_values566.GenericId<"User"> | undefined;
296
+ acceptedTime?: number | undefined;
274
297
  _creationTime: number;
298
+ _id: convex_values566.GenericId<"GroupInvite">;
275
299
  status: "pending" | "accepted" | "revoked" | "expired";
276
- _id: convex_values477.GenericId<"GroupInvite">;
277
300
  tokenHash: string;
278
301
  }, {
279
- groupId: convex_values477.VId<convex_values477.GenericId<"Group"> | undefined, "optional">;
280
- invitedByUserId: convex_values477.VId<convex_values477.GenericId<"User"> | undefined, "optional">;
281
- email: convex_values477.VString<string | undefined, "optional">;
282
- tokenHash: convex_values477.VString<string, "required">;
283
- role: convex_values477.VString<string | undefined, "optional">;
284
- roleIds: convex_values477.VArray<string[] | undefined, convex_values477.VString<string, "required">, "optional">;
285
- status: convex_values477.VUnion<"pending" | "accepted" | "revoked" | "expired", [convex_values477.VLiteral<"pending", "required">, convex_values477.VLiteral<"accepted", "required">, convex_values477.VLiteral<"revoked", "required">, convex_values477.VLiteral<"expired", "required">], "required", never>;
286
- expiresTime: convex_values477.VFloat64<number | undefined, "optional">;
287
- acceptedByUserId: convex_values477.VId<convex_values477.GenericId<"User"> | undefined, "optional">;
288
- acceptedTime: convex_values477.VFloat64<number | undefined, "optional">;
289
- extend: convex_values477.VAny<any, "optional", string>;
290
- _id: convex_values477.VId<convex_values477.GenericId<"GroupInvite">, "required">;
291
- _creationTime: convex_values477.VFloat64<number, "required">;
292
- }, "required", "_creationTime" | "email" | "status" | "expiresTime" | "acceptedTime" | "extend" | "_id" | `extend.${string}` | "groupId" | "role" | "roleIds" | "invitedByUserId" | "tokenHash" | "acceptedByUserId">;
293
- declare const vApiKeyDoc: convex_values477.VObject<{
302
+ groupId: convex_values566.VId<convex_values566.GenericId<"Group"> | undefined, "optional">;
303
+ invitedByUserId: convex_values566.VId<convex_values566.GenericId<"User"> | undefined, "optional">;
304
+ email: convex_values566.VString<string | undefined, "optional">;
305
+ tokenHash: convex_values566.VString<string, "required">;
306
+ role: convex_values566.VString<string | undefined, "optional">;
307
+ roleIds: convex_values566.VArray<string[] | undefined, convex_values566.VString<string, "required">, "optional">;
308
+ status: convex_values566.VUnion<"pending" | "accepted" | "revoked" | "expired", [convex_values566.VLiteral<"pending", "required">, convex_values566.VLiteral<"accepted", "required">, convex_values566.VLiteral<"revoked", "required">, convex_values566.VLiteral<"expired", "required">], "required", never>;
309
+ expiresTime: convex_values566.VFloat64<number | undefined, "optional">;
310
+ acceptedByUserId: convex_values566.VId<convex_values566.GenericId<"User"> | undefined, "optional">;
311
+ acceptedTime: convex_values566.VFloat64<number | undefined, "optional">;
312
+ extend: convex_values566.VAny<any, "optional", string>;
313
+ _id: convex_values566.VId<convex_values566.GenericId<"GroupInvite">, "required">;
314
+ _creationTime: convex_values566.VFloat64<number, "required">;
315
+ }, "required", "email" | "_creationTime" | "extend" | "_id" | `extend.${string}` | "groupId" | "role" | "roleIds" | "status" | "invitedByUserId" | "tokenHash" | "expiresTime" | "acceptedByUserId" | "acceptedTime">;
316
+ declare const vApiKeyDoc: convex_values566.VObject<{
294
317
  lastUsedAt?: number | undefined;
295
- expiresAt?: number | undefined;
296
318
  rateLimit?: {
297
319
  maxRequests: number;
298
320
  windowMs: number;
@@ -301,56 +323,57 @@ declare const vApiKeyDoc: convex_values477.VObject<{
301
323
  attemptsLeft: number;
302
324
  lastAttemptTime: number;
303
325
  } | undefined;
326
+ expiresAt?: number | undefined;
304
327
  metadata?: any;
305
328
  _creationTime: number;
306
329
  name: string;
330
+ _id: convex_values566.GenericId<"ApiKey">;
331
+ userId: convex_values566.GenericId<"User">;
307
332
  revoked: boolean;
308
- userId: convex_values477.GenericId<"User">;
333
+ createdAt: number;
309
334
  prefix: string;
310
335
  hashedKey: string;
311
336
  scopes: {
312
337
  resource: string;
313
338
  actions: string[];
314
339
  }[];
315
- createdAt: number;
316
- _id: convex_values477.GenericId<"ApiKey">;
317
340
  }, {
318
- userId: convex_values477.VId<convex_values477.GenericId<"User">, "required">;
319
- prefix: convex_values477.VString<string, "required">;
320
- hashedKey: convex_values477.VString<string, "required">;
321
- name: convex_values477.VString<string, "required">;
322
- scopes: convex_values477.VArray<{
341
+ userId: convex_values566.VId<convex_values566.GenericId<"User">, "required">;
342
+ prefix: convex_values566.VString<string, "required">;
343
+ hashedKey: convex_values566.VString<string, "required">;
344
+ name: convex_values566.VString<string, "required">;
345
+ scopes: convex_values566.VArray<{
323
346
  resource: string;
324
347
  actions: string[];
325
- }[], convex_values477.VObject<{
348
+ }[], convex_values566.VObject<{
326
349
  resource: string;
327
350
  actions: string[];
328
351
  }, {
329
- resource: convex_values477.VString<string, "required">;
330
- actions: convex_values477.VArray<string[], convex_values477.VString<string, "required">, "required">;
352
+ resource: convex_values566.VString<string, "required">;
353
+ actions: convex_values566.VArray<string[], convex_values566.VString<string, "required">, "required">;
331
354
  }, "required", "resource" | "actions">, "required">;
332
- rateLimit: convex_values477.VObject<{
355
+ rateLimit: convex_values566.VObject<{
333
356
  maxRequests: number;
334
357
  windowMs: number;
335
358
  } | undefined, {
336
- maxRequests: convex_values477.VFloat64<number, "required">;
337
- windowMs: convex_values477.VFloat64<number, "required">;
359
+ maxRequests: convex_values566.VFloat64<number, "required">;
360
+ windowMs: convex_values566.VFloat64<number, "required">;
338
361
  }, "optional", "maxRequests" | "windowMs">;
339
- rateLimitState: convex_values477.VObject<{
362
+ rateLimitState: convex_values566.VObject<{
340
363
  attemptsLeft: number;
341
364
  lastAttemptTime: number;
342
365
  } | undefined, {
343
- attemptsLeft: convex_values477.VFloat64<number, "required">;
344
- lastAttemptTime: convex_values477.VFloat64<number, "required">;
366
+ attemptsLeft: convex_values566.VFloat64<number, "required">;
367
+ lastAttemptTime: convex_values566.VFloat64<number, "required">;
345
368
  }, "optional", "attemptsLeft" | "lastAttemptTime">;
346
- expiresAt: convex_values477.VFloat64<number | undefined, "optional">;
347
- lastUsedAt: convex_values477.VFloat64<number | undefined, "optional">;
348
- createdAt: convex_values477.VFloat64<number, "required">;
349
- revoked: convex_values477.VBoolean<boolean, "required">;
350
- metadata: convex_values477.VAny<any, "optional", string>;
351
- _id: convex_values477.VId<convex_values477.GenericId<"ApiKey">, "required">;
352
- _creationTime: convex_values477.VFloat64<number, "required">;
353
- }, "required", "_creationTime" | "name" | "revoked" | "lastUsedAt" | "expiresAt" | "userId" | "prefix" | "hashedKey" | "scopes" | "rateLimit" | "rateLimitState" | "createdAt" | "metadata" | "_id" | "rateLimit.maxRequests" | "rateLimit.windowMs" | "rateLimitState.attemptsLeft" | "rateLimitState.lastAttemptTime" | `metadata.${string}`>;
369
+ expiresAt: convex_values566.VFloat64<number | undefined, "optional">;
370
+ lastUsedAt: convex_values566.VFloat64<number | undefined, "optional">;
371
+ createdAt: convex_values566.VFloat64<number, "required">;
372
+ revoked: convex_values566.VBoolean<boolean, "required">;
373
+ metadata: convex_values566.VAny<any, "optional", string>;
374
+ _id: convex_values566.VId<convex_values566.GenericId<"ApiKey">, "required">;
375
+ _creationTime: convex_values566.VFloat64<number, "required">;
376
+ }, "required", "_creationTime" | "name" | "_id" | "userId" | "revoked" | "createdAt" | "lastUsedAt" | "prefix" | "hashedKey" | "scopes" | "rateLimit" | "rateLimitState" | "expiresAt" | "metadata" | "rateLimit.maxRequests" | "rateLimit.windowMs" | "rateLimitState.attemptsLeft" | "rateLimitState.lastAttemptTime" | `metadata.${string}`>;
354
377
  //#endregion
355
- export { vApiKeyDoc, vGroupDoc, vGroupInviteDoc, vGroupMemberDoc, vPaginated, vUserDoc };
378
+ export { vApiKeyDoc, vGroupDoc, vGroupInviteDoc, vGroupMemberDoc, vPaginated, vUserDoc, vUserEmailDoc };
356
379
  //# sourceMappingURL=model.d.ts.map
@@ -3,6 +3,7 @@ import { v } from "convex/values";
3
3
  //#region src/component/model.ts
4
4
  const TABLES = {
5
5
  User: "User",
6
+ UserEmail: "UserEmail",
6
7
  Session: "Session",
7
8
  Account: "Account",
8
9
  AuthVerifier: "AuthVerifier",
@@ -37,7 +38,7 @@ const vPaginated = (item) => v.object({
37
38
  });
38
39
  const vInviteStatus = v.union(v.literal("pending"), v.literal("accepted"), v.literal("revoked"), v.literal("expired"));
39
40
  const vDeviceStatus = v.union(v.literal("pending"), v.literal("authorized"), v.literal("denied"));
40
- const vGroupConnectionAccountLinkingPolicy = v.union(v.literal("verifiedEmail"), v.literal("none"));
41
+ const vGroupConnectionAccountLinkingPolicy = v.union(v.literal("verifiedEmail"), v.literal("none"), v.literal("sameConnection"));
41
42
  const vGroupConnectionScimReuseUserPolicy = v.union(v.literal("externalId"), v.literal("none"));
42
43
  const vGroupConnectionJitProvisioningMode = v.union(v.literal("off"), v.literal("createUser"), v.literal("createUserAndMembership"));
43
44
  const vGroupConnectionDeprovisionMode = v.union(v.literal("soft"), v.literal("hard"));
@@ -116,9 +117,26 @@ const vUserDoc = v.object({
116
117
  phone: v.optional(v.string()),
117
118
  phoneVerificationTime: v.optional(v.number()),
118
119
  isAnonymous: v.optional(v.boolean()),
119
- hasTotp: v.optional(v.boolean()),
120
+ lastActiveGroup: v.optional(v.id(TABLES.Group)),
120
121
  extend: v.optional(v.any())
121
122
  });
123
+ const vUserEmailSource = v.union(v.literal("password"), v.literal("oauth"), v.literal("oidc"), v.literal("saml"), v.literal("scim"));
124
+ const vProfileEmail = v.object({
125
+ email: v.string(),
126
+ primary: v.optional(v.boolean()),
127
+ verified: v.optional(v.boolean())
128
+ });
129
+ const vUserEmailDoc = v.object({
130
+ ...vDocMeta(TABLES.UserEmail),
131
+ userId: v.id(TABLES.User),
132
+ email: v.string(),
133
+ verificationTime: v.optional(v.number()),
134
+ isPrimary: v.boolean(),
135
+ source: vUserEmailSource,
136
+ accountId: v.optional(v.id(TABLES.Account)),
137
+ provider: v.optional(v.string()),
138
+ connectionId: v.optional(v.id(TABLES.GroupConnection))
139
+ });
122
140
  const vSessionDoc = v.object({
123
141
  ...vDocMeta(TABLES.Session),
124
142
  userId: v.id(TABLES.User),
@@ -360,7 +378,7 @@ const vRateLimitResult = v.object({
360
378
  attemptsLeft: v.number(),
361
379
  lastAttemptTime: v.number()
362
380
  });
363
- const vInviteAcceptByTokenResult = v.object({
381
+ const vInviteRedeemResult = v.object({
364
382
  inviteId: v.id(TABLES.GroupInvite),
365
383
  groupId: v.union(v.id(TABLES.Group), v.null()),
366
384
  memberId: v.optional(v.id(TABLES.GroupMember)),
@@ -369,5 +387,5 @@ const vInviteAcceptByTokenResult = v.object({
369
387
  });
370
388
 
371
389
  //#endregion
372
- export { TABLES, vAccountDoc, vApiKeyDoc, vApiKeyRateLimit, vApiKeyRateLimitState, vApiKeyScope, vAuditActorType, vAuditStatus, vAuthVerifierDoc, vDeviceCodeDoc, vDeviceStatus, vGroupAuditEventDoc, vGroupConnectionAccountLinkingPolicy, vGroupConnectionDeprovisionMode, vGroupConnectionDoc, vGroupConnectionDomainDoc, vGroupConnectionDomainVerificationDoc, vGroupConnectionGroupSyncMode, vGroupConnectionJitProvisioningMode, vGroupConnectionPolicy, vGroupConnectionProfileUpdateMode, vGroupConnectionProtocol, vGroupConnectionProvisioningAuthority, vGroupConnectionRoleSyncMode, vGroupConnectionScimConfigDoc, vGroupConnectionScimIdentityDoc, vGroupConnectionScimReuseUserPolicy, vGroupConnectionSecretDoc, vGroupConnectionSecretKind, vGroupConnectionStatus, vGroupDoc, vGroupInviteDoc, vGroupMemberDoc, vGroupWebhookDeliveryDoc, vGroupWebhookEndpointDoc, vInviteAcceptByTokenResult, vInviteStatus, vInviteTokenAcceptStatus, vMembershipStatus, vPaginated, vPasskeyDoc, vRateLimitDoc, vRateLimitResult, vRefreshTokenDoc, vScimResourceType, vScimStatus, vSessionDoc, vTag, vTotpFactorDoc, vUserDoc, vVerificationCodeDoc, vWebhookDeliveryStatus, vWebhookEndpointStatus };
390
+ export { TABLES, vAccountDoc, vApiKeyDoc, vApiKeyRateLimit, vApiKeyRateLimitState, vApiKeyScope, vAuditActorType, vAuditStatus, vAuthVerifierDoc, vDeviceCodeDoc, vDeviceStatus, vGroupAuditEventDoc, vGroupConnectionAccountLinkingPolicy, vGroupConnectionDeprovisionMode, vGroupConnectionDoc, vGroupConnectionDomainDoc, vGroupConnectionDomainVerificationDoc, vGroupConnectionGroupSyncMode, vGroupConnectionJitProvisioningMode, vGroupConnectionPolicy, vGroupConnectionProfileUpdateMode, vGroupConnectionProtocol, vGroupConnectionProvisioningAuthority, vGroupConnectionRoleSyncMode, vGroupConnectionScimConfigDoc, vGroupConnectionScimIdentityDoc, vGroupConnectionScimReuseUserPolicy, vGroupConnectionSecretDoc, vGroupConnectionSecretKind, vGroupConnectionStatus, vGroupDoc, vGroupInviteDoc, vGroupMemberDoc, vGroupWebhookDeliveryDoc, vGroupWebhookEndpointDoc, vInviteRedeemResult, vInviteStatus, vInviteTokenAcceptStatus, vMembershipStatus, vPaginated, vPasskeyDoc, vProfileEmail, vRateLimitDoc, vRateLimitResult, vRefreshTokenDoc, vScimResourceType, vScimStatus, vSessionDoc, vTag, vTotpFactorDoc, vUserDoc, vUserEmailDoc, vUserEmailSource, vVerificationCodeDoc, vWebhookDeliveryStatus, vWebhookEndpointStatus };
373
391
  //# sourceMappingURL=model.js.map