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

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.
@@ -1,88 +1,90 @@
1
- import * as convex_values566 from "convex/values";
1
+ import * as convex_values530 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_values566.VObject<{
5
+ declare const vPaginated: <V extends Validator<any, any, any>>(item: V) => convex_values530.VObject<{
6
6
  items: V["type"][];
7
7
  nextCursor: string | null;
8
8
  }, {
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>;
9
+ items: convex_values530.VArray<V["type"][], V, "required">;
10
+ nextCursor: convex_values530.VUnion<string | null, [convex_values530.VString<string, "required">, convex_values530.VNull<null, "required">], "required", never>;
11
11
  }, "required", "items" | "nextCursor">;
12
- declare const vUserDoc: convex_values566.VObject<{
13
- email?: string | undefined;
12
+ declare const vUserDoc: convex_values530.VObject<{
14
13
  name?: string | undefined;
14
+ email?: string | undefined;
15
+ phone?: string | undefined;
15
16
  image?: string | undefined;
16
- extend?: any;
17
17
  emailVerificationTime?: number | undefined;
18
- phone?: string | undefined;
19
18
  phoneVerificationTime?: number | undefined;
20
19
  isAnonymous?: boolean | undefined;
21
- lastActiveGroup?: convex_values566.GenericId<"Group"> | undefined;
20
+ lastActiveGroup?: convex_values530.GenericId<"Group"> | undefined;
21
+ hasTotp?: boolean | undefined;
22
+ extend?: any;
22
23
  _creationTime: number;
23
- _id: convex_values566.GenericId<"User">;
24
+ _id: convex_values530.GenericId<"User">;
24
25
  }, {
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;
26
+ name: convex_values530.VString<string | undefined, "optional">;
27
+ image: convex_values530.VString<string | undefined, "optional">;
28
+ email: convex_values530.VString<string | undefined, "optional">;
29
+ emailVerificationTime: convex_values530.VFloat64<number | undefined, "optional">;
30
+ phone: convex_values530.VString<string | undefined, "optional">;
31
+ phoneVerificationTime: convex_values530.VFloat64<number | undefined, "optional">;
32
+ isAnonymous: convex_values530.VBoolean<boolean | undefined, "optional">;
33
+ lastActiveGroup: convex_values530.VId<convex_values530.GenericId<"Group"> | undefined, "optional">;
34
+ hasTotp: convex_values530.VBoolean<boolean | undefined, "optional">;
35
+ extend: convex_values530.VAny<any, "optional", string>;
36
+ _id: convex_values530.VId<convex_values530.GenericId<"User">, "required">;
37
+ _creationTime: convex_values530.VFloat64<number, "required">;
38
+ }, "required", "_creationTime" | "name" | "email" | "phone" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | "extend" | `extend.${string}` | "_id">;
39
+ declare const vUserEmailDoc: convex_values530.VObject<{
40
40
  verificationTime?: number | undefined;
41
- accountId?: convex_values566.GenericId<"Account"> | undefined;
42
- email: string;
41
+ accountId?: convex_values530.GenericId<"Account"> | undefined;
42
+ provider?: string | undefined;
43
+ connectionId?: convex_values530.GenericId<"GroupConnection"> | undefined;
43
44
  _creationTime: number;
44
- _id: convex_values566.GenericId<"UserEmail">;
45
- source: "saml" | "oidc" | "scim" | "password" | "oauth";
46
- userId: convex_values566.GenericId<"User">;
45
+ email: string;
46
+ userId: convex_values530.GenericId<"User">;
47
47
  isPrimary: boolean;
48
+ source: "password" | "oauth" | "oidc" | "saml" | "scim";
49
+ _id: convex_values530.GenericId<"UserEmail">;
48
50
  }, {
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<{
61
- type?: string | undefined;
51
+ userId: convex_values530.VId<convex_values530.GenericId<"User">, "required">;
52
+ email: convex_values530.VString<string, "required">;
53
+ verificationTime: convex_values530.VFloat64<number | undefined, "optional">;
54
+ isPrimary: convex_values530.VBoolean<boolean, "required">;
55
+ source: convex_values530.VUnion<"password" | "oauth" | "oidc" | "saml" | "scim", [convex_values530.VLiteral<"password", "required">, convex_values530.VLiteral<"oauth", "required">, convex_values530.VLiteral<"oidc", "required">, convex_values530.VLiteral<"saml", "required">, convex_values530.VLiteral<"scim", "required">], "required", never>;
56
+ accountId: convex_values530.VId<convex_values530.GenericId<"Account"> | undefined, "optional">;
57
+ provider: convex_values530.VString<string | undefined, "optional">;
58
+ connectionId: convex_values530.VId<convex_values530.GenericId<"GroupConnection"> | undefined, "optional">;
59
+ _id: convex_values530.VId<convex_values530.GenericId<"UserEmail">, "required">;
60
+ _creationTime: convex_values530.VFloat64<number, "required">;
61
+ }, "required", "_creationTime" | "email" | "userId" | "verificationTime" | "isPrimary" | "source" | "accountId" | "provider" | "connectionId" | "_id">;
62
+ declare const vGroupDoc: convex_values530.VObject<{
62
63
  extend?: any;
64
+ type?: string | undefined;
63
65
  slug?: string | undefined;
64
- parentGroupId?: convex_values566.GenericId<"Group"> | undefined;
65
- rootGroupId?: convex_values566.GenericId<"Group"> | undefined;
66
+ parentGroupId?: convex_values530.GenericId<"Group"> | undefined;
67
+ rootGroupId?: convex_values530.GenericId<"Group"> | undefined;
66
68
  isRoot?: boolean | undefined;
67
69
  tags?: {
68
- value: string;
69
70
  key: string;
71
+ value: string;
70
72
  }[] | undefined;
71
73
  policy?: {
72
74
  extend?: any;
75
+ version: 1;
73
76
  identity: {
74
77
  accountLinking: {
75
- saml: "verifiedEmail" | "none" | "sameConnection";
76
78
  oidc: "verifiedEmail" | "none" | "sameConnection";
79
+ saml: "verifiedEmail" | "none" | "sameConnection";
77
80
  };
78
81
  };
79
- version: 1;
80
82
  provisioning: {
81
83
  user: {
82
84
  createOnSignIn: boolean;
83
85
  updateProfileOnLogin: "never" | "missing" | "always";
84
86
  updateProfileFromScim: "never" | "missing" | "always";
85
- authority: "app" | "sso" | "scim";
87
+ authority: "scim" | "app" | "sso";
86
88
  };
87
89
  scimReuse: {
88
90
  user: "none" | "externalId";
@@ -97,51 +99,51 @@ declare const vGroupDoc: convex_values566.VObject<{
97
99
  };
98
100
  groups: {
99
101
  mapping?: Record<string, string[]> | undefined;
100
- mode: "ignore" | "sync";
101
102
  source: "protocol";
103
+ mode: "ignore" | "sync";
102
104
  };
103
105
  roles: {
104
106
  mapping?: Record<string, string[]> | undefined;
105
- mode: "map" | "ignore";
106
107
  source: "protocol";
108
+ mode: "map" | "ignore";
107
109
  };
108
110
  };
109
111
  } | undefined;
110
112
  _creationTime: number;
111
113
  name: string;
112
- _id: convex_values566.GenericId<"Group">;
114
+ _id: convex_values530.GenericId<"Group">;
113
115
  }, {
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<{
121
- value: string;
116
+ name: convex_values530.VString<string, "required">;
117
+ slug: convex_values530.VString<string | undefined, "optional">;
118
+ type: convex_values530.VString<string | undefined, "optional">;
119
+ parentGroupId: convex_values530.VId<convex_values530.GenericId<"Group"> | undefined, "optional">;
120
+ rootGroupId: convex_values530.VId<convex_values530.GenericId<"Group"> | undefined, "optional">;
121
+ isRoot: convex_values530.VBoolean<boolean | undefined, "optional">;
122
+ tags: convex_values530.VArray<{
122
123
  key: string;
123
- }[] | undefined, convex_values566.VObject<{
124
124
  value: string;
125
+ }[] | undefined, convex_values530.VObject<{
125
126
  key: string;
127
+ value: string;
126
128
  }, {
127
- key: convex_values566.VString<string, "required">;
128
- value: convex_values566.VString<string, "required">;
129
- }, "required", "value" | "key">, "optional">;
130
- policy: convex_values566.VObject<{
129
+ key: convex_values530.VString<string, "required">;
130
+ value: convex_values530.VString<string, "required">;
131
+ }, "required", "key" | "value">, "optional">;
132
+ policy: convex_values530.VObject<{
131
133
  extend?: any;
134
+ version: 1;
132
135
  identity: {
133
136
  accountLinking: {
134
- saml: "verifiedEmail" | "none" | "sameConnection";
135
137
  oidc: "verifiedEmail" | "none" | "sameConnection";
138
+ saml: "verifiedEmail" | "none" | "sameConnection";
136
139
  };
137
140
  };
138
- version: 1;
139
141
  provisioning: {
140
142
  user: {
141
143
  createOnSignIn: boolean;
142
144
  updateProfileOnLogin: "never" | "missing" | "always";
143
145
  updateProfileFromScim: "never" | "missing" | "always";
144
- authority: "app" | "sso" | "scim";
146
+ authority: "scim" | "app" | "sso";
145
147
  };
146
148
  scimReuse: {
147
149
  user: "none" | "externalId";
@@ -156,37 +158,37 @@ declare const vGroupDoc: convex_values566.VObject<{
156
158
  };
157
159
  groups: {
158
160
  mapping?: Record<string, string[]> | undefined;
159
- mode: "ignore" | "sync";
160
161
  source: "protocol";
162
+ mode: "ignore" | "sync";
161
163
  };
162
164
  roles: {
163
165
  mapping?: Record<string, string[]> | undefined;
164
- mode: "map" | "ignore";
165
166
  source: "protocol";
167
+ mode: "map" | "ignore";
166
168
  };
167
169
  };
168
170
  } | undefined, {
169
- version: convex_values566.VLiteral<1, "required">;
170
- identity: convex_values566.VObject<{
171
+ version: convex_values530.VLiteral<1, "required">;
172
+ identity: convex_values530.VObject<{
171
173
  accountLinking: {
172
- saml: "verifiedEmail" | "none" | "sameConnection";
173
174
  oidc: "verifiedEmail" | "none" | "sameConnection";
175
+ saml: "verifiedEmail" | "none" | "sameConnection";
174
176
  };
175
177
  }, {
176
- accountLinking: convex_values566.VObject<{
177
- saml: "verifiedEmail" | "none" | "sameConnection";
178
+ accountLinking: convex_values530.VObject<{
178
179
  oidc: "verifiedEmail" | "none" | "sameConnection";
180
+ saml: "verifiedEmail" | "none" | "sameConnection";
179
181
  }, {
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<{
182
+ oidc: convex_values530.VUnion<"verifiedEmail" | "none" | "sameConnection", [convex_values530.VLiteral<"verifiedEmail", "required">, convex_values530.VLiteral<"none", "required">, convex_values530.VLiteral<"sameConnection", "required">], "required", never>;
183
+ saml: convex_values530.VUnion<"verifiedEmail" | "none" | "sameConnection", [convex_values530.VLiteral<"verifiedEmail", "required">, convex_values530.VLiteral<"none", "required">, convex_values530.VLiteral<"sameConnection", "required">], "required", never>;
184
+ }, "required", "oidc" | "saml">;
185
+ }, "required", "accountLinking" | "accountLinking.oidc" | "accountLinking.saml">;
186
+ provisioning: convex_values530.VObject<{
185
187
  user: {
186
188
  createOnSignIn: boolean;
187
189
  updateProfileOnLogin: "never" | "missing" | "always";
188
190
  updateProfileFromScim: "never" | "missing" | "always";
189
- authority: "app" | "sso" | "scim";
191
+ authority: "scim" | "app" | "sso";
190
192
  };
191
193
  scimReuse: {
192
194
  user: "none" | "externalId";
@@ -201,120 +203,122 @@ declare const vGroupDoc: convex_values566.VObject<{
201
203
  };
202
204
  groups: {
203
205
  mapping?: Record<string, string[]> | undefined;
204
- mode: "ignore" | "sync";
205
206
  source: "protocol";
207
+ mode: "ignore" | "sync";
206
208
  };
207
209
  roles: {
208
210
  mapping?: Record<string, string[]> | undefined;
209
- mode: "map" | "ignore";
210
211
  source: "protocol";
212
+ mode: "map" | "ignore";
211
213
  };
212
214
  }, {
213
- user: convex_values566.VObject<{
215
+ user: convex_values530.VObject<{
214
216
  createOnSignIn: boolean;
215
217
  updateProfileOnLogin: "never" | "missing" | "always";
216
218
  updateProfileFromScim: "never" | "missing" | "always";
217
- authority: "app" | "sso" | "scim";
219
+ authority: "scim" | "app" | "sso";
218
220
  }, {
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>;
221
+ createOnSignIn: convex_values530.VBoolean<boolean, "required">;
222
+ updateProfileOnLogin: convex_values530.VUnion<"never" | "missing" | "always", [convex_values530.VLiteral<"never", "required">, convex_values530.VLiteral<"missing", "required">, convex_values530.VLiteral<"always", "required">], "required", never>;
223
+ updateProfileFromScim: convex_values530.VUnion<"never" | "missing" | "always", [convex_values530.VLiteral<"never", "required">, convex_values530.VLiteral<"missing", "required">, convex_values530.VLiteral<"always", "required">], "required", never>;
224
+ authority: convex_values530.VUnion<"scim" | "app" | "sso", [convex_values530.VLiteral<"app", "required">, convex_values530.VLiteral<"sso", "required">, convex_values530.VLiteral<"scim", "required">], "required", never>;
223
225
  }, "required", "createOnSignIn" | "updateProfileOnLogin" | "updateProfileFromScim" | "authority">;
224
- scimReuse: convex_values566.VObject<{
226
+ scimReuse: convex_values530.VObject<{
225
227
  user: "none" | "externalId";
226
228
  }, {
227
- user: convex_values566.VUnion<"none" | "externalId", [convex_values566.VLiteral<"externalId", "required">, convex_values566.VLiteral<"none", "required">], "required", never>;
229
+ user: convex_values530.VUnion<"none" | "externalId", [convex_values530.VLiteral<"externalId", "required">, convex_values530.VLiteral<"none", "required">], "required", never>;
228
230
  }, "required", "user">;
229
- jit: convex_values566.VObject<{
231
+ jit: convex_values530.VObject<{
230
232
  defaultRole?: string | undefined;
231
233
  defaultRoleIds?: string[] | undefined;
232
234
  mode: "off" | "createUser" | "createUserAndMembership";
233
235
  }, {
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">;
236
+ mode: convex_values530.VUnion<"off" | "createUser" | "createUserAndMembership", [convex_values530.VLiteral<"off", "required">, convex_values530.VLiteral<"createUser", "required">, convex_values530.VLiteral<"createUserAndMembership", "required">], "required", never>;
237
+ defaultRole: convex_values530.VString<string | undefined, "optional">;
238
+ defaultRoleIds: convex_values530.VArray<string[] | undefined, convex_values530.VString<string, "required">, "optional">;
237
239
  }, "required", "mode" | "defaultRole" | "defaultRoleIds">;
238
- deprovision: convex_values566.VObject<{
240
+ deprovision: convex_values530.VObject<{
239
241
  mode: "soft" | "hard";
240
242
  }, {
241
- mode: convex_values566.VUnion<"soft" | "hard", [convex_values566.VLiteral<"soft", "required">, convex_values566.VLiteral<"hard", "required">], "required", never>;
243
+ mode: convex_values530.VUnion<"soft" | "hard", [convex_values530.VLiteral<"soft", "required">, convex_values530.VLiteral<"hard", "required">], "required", never>;
242
244
  }, "required", "mode">;
243
- groups: convex_values566.VObject<{
245
+ groups: convex_values530.VObject<{
244
246
  mapping?: Record<string, string[]> | undefined;
245
- mode: "ignore" | "sync";
246
247
  source: "protocol";
248
+ mode: "ignore" | "sync";
247
249
  }, {
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>;
251
- }, "required", "mode" | "source" | "mapping" | `mapping.${string}`>;
252
- roles: convex_values566.VObject<{
250
+ mode: convex_values530.VUnion<"ignore" | "sync", [convex_values530.VLiteral<"ignore", "required">, convex_values530.VLiteral<"sync", "required">], "required", never>;
251
+ source: convex_values530.VLiteral<"protocol", "required">;
252
+ mapping: convex_values530.VRecord<Record<string, string[]> | undefined, convex_values530.VString<string, "required">, convex_values530.VArray<string[], convex_values530.VString<string, "required">, "required">, "optional", string>;
253
+ }, "required", "source" | "mode" | "mapping" | `mapping.${string}`>;
254
+ roles: convex_values530.VObject<{
253
255
  mapping?: Record<string, string[]> | undefined;
254
- mode: "map" | "ignore";
255
256
  source: "protocol";
257
+ mode: "map" | "ignore";
256
258
  }, {
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>;
260
- }, "required", "mode" | "source" | "mapping" | `mapping.${string}`>;
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}`>;
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<{
259
+ mode: convex_values530.VUnion<"map" | "ignore", [convex_values530.VLiteral<"ignore", "required">, convex_values530.VLiteral<"map", "required">], "required", never>;
260
+ source: convex_values530.VLiteral<"protocol", "required">;
261
+ mapping: convex_values530.VRecord<Record<string, string[]> | undefined, convex_values530.VString<string, "required">, convex_values530.VArray<string[], convex_values530.VString<string, "required">, "required">, "optional", string>;
262
+ }, "required", "source" | "mode" | "mapping" | `mapping.${string}`>;
263
+ }, "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}`>;
264
+ extend: convex_values530.VAny<any, "optional", string>;
265
+ }, "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}`>;
266
+ extend: convex_values530.VAny<any, "optional", string>;
267
+ _id: convex_values530.VId<convex_values530.GenericId<"Group">, "required">;
268
+ _creationTime: convex_values530.VFloat64<number, "required">;
269
+ }, "required", "_creationTime" | "name" | "extend" | "type" | `extend.${string}` | "slug" | "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.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}` | "_id">;
270
+ declare const vGroupMemberDoc: convex_values530.VObject<{
269
271
  extend?: any;
272
+ status?: string | undefined;
270
273
  role?: string | undefined;
271
274
  roleIds?: string[] | undefined;
272
- status?: string | undefined;
273
275
  _creationTime: number;
274
- _id: convex_values566.GenericId<"GroupMember">;
275
- groupId: convex_values566.GenericId<"Group">;
276
- userId: convex_values566.GenericId<"User">;
276
+ userId: convex_values530.GenericId<"User">;
277
+ groupId: convex_values530.GenericId<"Group">;
278
+ _id: convex_values530.GenericId<"GroupMember">;
277
279
  }, {
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<{
280
+ groupId: convex_values530.VId<convex_values530.GenericId<"Group">, "required">;
281
+ userId: convex_values530.VId<convex_values530.GenericId<"User">, "required">;
282
+ role: convex_values530.VString<string | undefined, "optional">;
283
+ roleIds: convex_values530.VArray<string[] | undefined, convex_values530.VString<string, "required">, "optional">;
284
+ status: convex_values530.VString<string | undefined, "optional">;
285
+ extend: convex_values530.VAny<any, "optional", string>;
286
+ _id: convex_values530.VId<convex_values530.GenericId<"GroupMember">, "required">;
287
+ _creationTime: convex_values530.VFloat64<number, "required">;
288
+ }, "required", "_creationTime" | "extend" | `extend.${string}` | "userId" | "status" | "groupId" | "role" | "roleIds" | "_id">;
289
+ declare const vGroupInviteDoc: convex_values530.VObject<{
288
290
  email?: string | undefined;
289
291
  extend?: any;
290
- groupId?: convex_values566.GenericId<"Group"> | undefined;
292
+ groupId?: convex_values530.GenericId<"Group"> | undefined;
291
293
  role?: string | undefined;
292
294
  roleIds?: string[] | undefined;
293
- invitedByUserId?: convex_values566.GenericId<"User"> | undefined;
295
+ invitedByUserId?: convex_values530.GenericId<"User"> | undefined;
294
296
  expiresTime?: number | undefined;
295
- acceptedByUserId?: convex_values566.GenericId<"User"> | undefined;
297
+ acceptedByUserId?: convex_values530.GenericId<"User"> | undefined;
296
298
  acceptedTime?: number | undefined;
297
299
  _creationTime: number;
298
- _id: convex_values566.GenericId<"GroupInvite">;
299
300
  status: "pending" | "accepted" | "revoked" | "expired";
300
301
  tokenHash: string;
302
+ _id: convex_values530.GenericId<"GroupInvite">;
301
303
  }, {
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<{
304
+ groupId: convex_values530.VId<convex_values530.GenericId<"Group"> | undefined, "optional">;
305
+ invitedByUserId: convex_values530.VId<convex_values530.GenericId<"User"> | undefined, "optional">;
306
+ email: convex_values530.VString<string | undefined, "optional">;
307
+ tokenHash: convex_values530.VString<string, "required">;
308
+ role: convex_values530.VString<string | undefined, "optional">;
309
+ roleIds: convex_values530.VArray<string[] | undefined, convex_values530.VString<string, "required">, "optional">;
310
+ status: convex_values530.VUnion<"pending" | "accepted" | "revoked" | "expired", [convex_values530.VLiteral<"pending", "required">, convex_values530.VLiteral<"accepted", "required">, convex_values530.VLiteral<"revoked", "required">, convex_values530.VLiteral<"expired", "required">], "required", never>;
311
+ expiresTime: convex_values530.VFloat64<number | undefined, "optional">;
312
+ acceptedByUserId: convex_values530.VId<convex_values530.GenericId<"User"> | undefined, "optional">;
313
+ acceptedTime: convex_values530.VFloat64<number | undefined, "optional">;
314
+ extend: convex_values530.VAny<any, "optional", string>;
315
+ _id: convex_values530.VId<convex_values530.GenericId<"GroupInvite">, "required">;
316
+ _creationTime: convex_values530.VFloat64<number, "required">;
317
+ }, "required", "_creationTime" | "email" | "extend" | `extend.${string}` | "status" | "groupId" | "role" | "roleIds" | "invitedByUserId" | "tokenHash" | "expiresTime" | "acceptedByUserId" | "acceptedTime" | "_id">;
318
+ declare const vApiKeyDoc: convex_values530.VObject<{
317
319
  lastUsedAt?: number | undefined;
320
+ expiresAt?: number | undefined;
321
+ metadata?: any;
318
322
  rateLimit?: {
319
323
  maxRequests: number;
320
324
  windowMs: number;
@@ -323,57 +327,55 @@ declare const vApiKeyDoc: convex_values566.VObject<{
323
327
  attemptsLeft: number;
324
328
  lastAttemptTime: number;
325
329
  } | undefined;
326
- expiresAt?: number | undefined;
327
- metadata?: any;
328
330
  _creationTime: number;
329
331
  name: string;
330
- _id: convex_values566.GenericId<"ApiKey">;
331
- userId: convex_values566.GenericId<"User">;
332
- revoked: boolean;
332
+ userId: convex_values530.GenericId<"User">;
333
333
  createdAt: number;
334
+ revoked: boolean;
334
335
  prefix: string;
335
336
  hashedKey: string;
336
337
  scopes: {
337
338
  resource: string;
338
339
  actions: string[];
339
340
  }[];
341
+ _id: convex_values530.GenericId<"ApiKey">;
340
342
  }, {
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<{
343
+ userId: convex_values530.VId<convex_values530.GenericId<"User">, "required">;
344
+ prefix: convex_values530.VString<string, "required">;
345
+ hashedKey: convex_values530.VString<string, "required">;
346
+ name: convex_values530.VString<string, "required">;
347
+ scopes: convex_values530.VArray<{
346
348
  resource: string;
347
349
  actions: string[];
348
- }[], convex_values566.VObject<{
350
+ }[], convex_values530.VObject<{
349
351
  resource: string;
350
352
  actions: string[];
351
353
  }, {
352
- resource: convex_values566.VString<string, "required">;
353
- actions: convex_values566.VArray<string[], convex_values566.VString<string, "required">, "required">;
354
+ resource: convex_values530.VString<string, "required">;
355
+ actions: convex_values530.VArray<string[], convex_values530.VString<string, "required">, "required">;
354
356
  }, "required", "resource" | "actions">, "required">;
355
- rateLimit: convex_values566.VObject<{
357
+ rateLimit: convex_values530.VObject<{
356
358
  maxRequests: number;
357
359
  windowMs: number;
358
360
  } | undefined, {
359
- maxRequests: convex_values566.VFloat64<number, "required">;
360
- windowMs: convex_values566.VFloat64<number, "required">;
361
+ maxRequests: convex_values530.VFloat64<number, "required">;
362
+ windowMs: convex_values530.VFloat64<number, "required">;
361
363
  }, "optional", "maxRequests" | "windowMs">;
362
- rateLimitState: convex_values566.VObject<{
364
+ rateLimitState: convex_values530.VObject<{
363
365
  attemptsLeft: number;
364
366
  lastAttemptTime: number;
365
367
  } | undefined, {
366
- attemptsLeft: convex_values566.VFloat64<number, "required">;
367
- lastAttemptTime: convex_values566.VFloat64<number, "required">;
368
+ attemptsLeft: convex_values530.VFloat64<number, "required">;
369
+ lastAttemptTime: convex_values530.VFloat64<number, "required">;
368
370
  }, "optional", "attemptsLeft" | "lastAttemptTime">;
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}`>;
371
+ expiresAt: convex_values530.VFloat64<number | undefined, "optional">;
372
+ lastUsedAt: convex_values530.VFloat64<number | undefined, "optional">;
373
+ createdAt: convex_values530.VFloat64<number, "required">;
374
+ revoked: convex_values530.VBoolean<boolean, "required">;
375
+ metadata: convex_values530.VAny<any, "optional", string>;
376
+ _id: convex_values530.VId<convex_values530.GenericId<"ApiKey">, "required">;
377
+ _creationTime: convex_values530.VFloat64<number, "required">;
378
+ }, "required", "_creationTime" | "name" | "userId" | "createdAt" | "lastUsedAt" | "expiresAt" | "revoked" | "metadata" | `metadata.${string}` | "prefix" | "hashedKey" | "scopes" | "rateLimit" | "rateLimitState" | "rateLimit.maxRequests" | "rateLimit.windowMs" | "rateLimitState.attemptsLeft" | "rateLimitState.lastAttemptTime" | "_id">;
377
379
  //#endregion
378
380
  export { vApiKeyDoc, vGroupDoc, vGroupInviteDoc, vGroupMemberDoc, vPaginated, vUserDoc, vUserEmailDoc };
379
381
  //# sourceMappingURL=model.d.ts.map
@@ -118,6 +118,7 @@ const vUserDoc = v.object({
118
118
  phoneVerificationTime: v.optional(v.number()),
119
119
  isAnonymous: v.optional(v.boolean()),
120
120
  lastActiveGroup: v.optional(v.id(TABLES.Group)),
121
+ hasTotp: v.optional(v.boolean()),
121
122
  extend: v.optional(v.any())
122
123
  });
123
124
  const vUserEmailSource = v.union(v.literal("password"), v.literal("oauth"), v.literal("oidc"), v.literal("saml"), v.literal("scim"));
@@ -8,6 +8,7 @@ const modules = {
8
8
  "./component/functions.ts": () => import("./functions.js"),
9
9
  "./component/http.ts": () => import("./http.js"),
10
10
  "./component/index.ts": () => import("./index.js"),
11
+ "./component/migrations.ts": () => import("./migrations.js"),
11
12
  "./component/model.ts": () => import("./model.js"),
12
13
  "./component/group.ts": () => import("./group.js"),
13
14
  "./component/group/member.ts": () => import("./group/member.js"),