@robelest/convex-auth 0.0.4-preview.36 → 0.0.4-preview.37
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.
- package/dist/component/model.d.ts +143 -143
- package/dist/component/schema.d.ts +302 -302
- package/dist/model.js +1 -1
- package/dist/server/mounts.d.ts +2 -2
- package/dist/server/validators.d.ts +81 -85
- package/dist/server/validators.js +74 -12
- package/package.json +1 -1
package/dist/model.js
CHANGED
|
@@ -388,5 +388,5 @@ const vInviteRedeemResult = v.object({
|
|
|
388
388
|
});
|
|
389
389
|
|
|
390
390
|
//#endregion
|
|
391
|
-
export {
|
|
391
|
+
export { vGroupConnectionPolicy, vInviteStatus, vPaginated, vProfileEmail, vTag, vUserEmailSource };
|
|
392
392
|
//# sourceMappingURL=model.js.map
|
package/dist/server/mounts.d.ts
CHANGED
|
@@ -441,10 +441,10 @@ declare function sso<TAuthorization extends AuthAuthorizationConfig | undefined
|
|
|
441
441
|
configure: convex_server19.RegisteredMutation<"public", {
|
|
442
442
|
profile?: {
|
|
443
443
|
mapping?: {
|
|
444
|
+
emailVerified?: string | undefined;
|
|
444
445
|
name?: string | undefined;
|
|
445
446
|
email?: string | undefined;
|
|
446
447
|
image?: string | undefined;
|
|
447
|
-
emailVerified?: string | undefined;
|
|
448
448
|
groups?: string | undefined;
|
|
449
449
|
roles?: string | undefined;
|
|
450
450
|
subject?: string | undefined;
|
|
@@ -1161,10 +1161,10 @@ declare function createAuthGroupSso<TAuthorization extends AuthAuthorizationConf
|
|
|
1161
1161
|
configureOidc: convex_server19.RegisteredMutation<"public", {
|
|
1162
1162
|
profile?: {
|
|
1163
1163
|
mapping?: {
|
|
1164
|
+
emailVerified?: string | undefined;
|
|
1164
1165
|
name?: string | undefined;
|
|
1165
1166
|
email?: string | undefined;
|
|
1166
1167
|
image?: string | undefined;
|
|
1167
|
-
emailVerified?: string | undefined;
|
|
1168
1168
|
groups?: string | undefined;
|
|
1169
1169
|
roles?: string | undefined;
|
|
1170
1170
|
subject?: string | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as convex_values7 from "convex/values";
|
|
2
|
-
import { Infer, Validator, v } from "convex/values";
|
|
2
|
+
import { GenericId, Infer, VId, Validator, v } from "convex/values";
|
|
3
3
|
import * as convex_server13 from "convex/server";
|
|
4
4
|
|
|
5
5
|
//#region src/server/validators.d.ts
|
|
@@ -17,12 +17,8 @@ type AuthExtendValidators = {
|
|
|
17
17
|
type ExtendFor<TExtend extends AuthExtendValidators, K extends keyof AuthExtendValidators> = TExtend[K] extends Validator<any, any, any> ? TExtend[K] : ReturnType<typeof v.any>;
|
|
18
18
|
/**
|
|
19
19
|
* Build the `auth.v.*` validator namespace from the consumer's `extend`
|
|
20
|
-
* config.
|
|
21
|
-
*
|
|
22
|
-
* `vUserDoc`/`vGroupDoc`/`vGroupMemberDoc` already declare an
|
|
23
|
-
* `extend: v.optional(v.any())` field; this rebuilds each with the
|
|
24
|
-
* supplied validator so the inferred type carries the real shape while
|
|
25
|
-
* the runtime validator still accepts the stored document.
|
|
20
|
+
* config. Each doc validator's `extend` field is rebuilt with the
|
|
21
|
+
* supplied validator so the inferred type carries the real shape.
|
|
26
22
|
*
|
|
27
23
|
* @typeParam TExtend - The consumer's per-table `extend` validators.
|
|
28
24
|
* @param extend - The `extend` map from `createAuth` config. Defaults to
|
|
@@ -39,7 +35,9 @@ type ExtendFor<TExtend extends AuthExtendValidators, K extends keyof AuthExtendV
|
|
|
39
35
|
* ```
|
|
40
36
|
*/
|
|
41
37
|
declare function buildAuthValidators<TExtend extends AuthExtendValidators>(extend?: TExtend): {
|
|
42
|
-
/** Single User document validator (extend-aware). */user: convex_values7.VObject<convex_server13.Expand<{ [Property in "name" | "email" | "
|
|
38
|
+
/** Single User document validator (extend-aware). */user: convex_values7.VObject<convex_server13.Expand<{ [Property in "name" | "email" | "image" | "phone" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)]?: Exclude<Infer<(Omit<{
|
|
39
|
+
_id: VId<GenericId<"User">, "required">;
|
|
40
|
+
_creationTime: convex_values7.VFloat64<number, "required">;
|
|
43
41
|
name: convex_values7.VString<string | undefined, "optional">;
|
|
44
42
|
image: convex_values7.VString<string | undefined, "optional">;
|
|
45
43
|
email: convex_values7.VString<string | undefined, "optional">;
|
|
@@ -47,14 +45,14 @@ declare function buildAuthValidators<TExtend extends AuthExtendValidators>(exten
|
|
|
47
45
|
phone: convex_values7.VString<string | undefined, "optional">;
|
|
48
46
|
phoneVerificationTime: convex_values7.VFloat64<number | undefined, "optional">;
|
|
49
47
|
isAnonymous: convex_values7.VBoolean<boolean | undefined, "optional">;
|
|
50
|
-
lastActiveGroup:
|
|
48
|
+
lastActiveGroup: VId<GenericId<"Group"> | undefined, "optional">;
|
|
51
49
|
hasTotp: convex_values7.VBoolean<boolean | undefined, "optional">;
|
|
52
50
|
extend: convex_values7.VAny<any, "optional", string>;
|
|
53
|
-
_id: convex_values7.VId<convex_values7.GenericId<"User">, "required">;
|
|
54
|
-
_creationTime: convex_values7.VFloat64<number, "required">;
|
|
55
51
|
}, "extend"> & {
|
|
56
52
|
extend: convex_values7.VOptional<ExtendFor<TExtend, "User">>;
|
|
57
|
-
})[Property]>, undefined> | undefined } & { [Property_1 in Exclude<"
|
|
53
|
+
})[Property]>, undefined> | undefined } & { [Property_1 in Exclude<"name", "name" | "email" | "image" | "phone" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"email", "name" | "email" | "image" | "phone" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"image", "name" | "email" | "image" | "phone" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"_creationTime", "name" | "email" | "image" | "phone" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"phone", "name" | "email" | "image" | "phone" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"emailVerificationTime", "name" | "email" | "image" | "phone" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"phoneVerificationTime", "name" | "email" | "image" | "phone" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"isAnonymous", "name" | "email" | "image" | "phone" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"lastActiveGroup", "name" | "email" | "image" | "phone" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"hasTotp", "name" | "email" | "image" | "phone" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"extend", "name" | "email" | "image" | "phone" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"_id", "name" | "email" | "image" | "phone" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)>]: Infer<(Omit<{
|
|
54
|
+
_id: VId<GenericId<"User">, "required">;
|
|
55
|
+
_creationTime: convex_values7.VFloat64<number, "required">;
|
|
58
56
|
name: convex_values7.VString<string | undefined, "optional">;
|
|
59
57
|
image: convex_values7.VString<string | undefined, "optional">;
|
|
60
58
|
email: convex_values7.VString<string | undefined, "optional">;
|
|
@@ -62,14 +60,14 @@ declare function buildAuthValidators<TExtend extends AuthExtendValidators>(exten
|
|
|
62
60
|
phone: convex_values7.VString<string | undefined, "optional">;
|
|
63
61
|
phoneVerificationTime: convex_values7.VFloat64<number | undefined, "optional">;
|
|
64
62
|
isAnonymous: convex_values7.VBoolean<boolean | undefined, "optional">;
|
|
65
|
-
lastActiveGroup:
|
|
63
|
+
lastActiveGroup: VId<GenericId<"Group"> | undefined, "optional">;
|
|
66
64
|
hasTotp: convex_values7.VBoolean<boolean | undefined, "optional">;
|
|
67
65
|
extend: convex_values7.VAny<any, "optional", string>;
|
|
68
|
-
_id: convex_values7.VId<convex_values7.GenericId<"User">, "required">;
|
|
69
|
-
_creationTime: convex_values7.VFloat64<number, "required">;
|
|
70
66
|
}, "extend"> & {
|
|
71
67
|
extend: convex_values7.VOptional<ExtendFor<TExtend, "User">>;
|
|
72
68
|
})[Property_1]> }>, Omit<{
|
|
69
|
+
_id: VId<GenericId<"User">, "required">;
|
|
70
|
+
_creationTime: convex_values7.VFloat64<number, "required">;
|
|
73
71
|
name: convex_values7.VString<string | undefined, "optional">;
|
|
74
72
|
image: convex_values7.VString<string | undefined, "optional">;
|
|
75
73
|
email: convex_values7.VString<string | undefined, "optional">;
|
|
@@ -77,20 +75,20 @@ declare function buildAuthValidators<TExtend extends AuthExtendValidators>(exten
|
|
|
77
75
|
phone: convex_values7.VString<string | undefined, "optional">;
|
|
78
76
|
phoneVerificationTime: convex_values7.VFloat64<number | undefined, "optional">;
|
|
79
77
|
isAnonymous: convex_values7.VBoolean<boolean | undefined, "optional">;
|
|
80
|
-
lastActiveGroup:
|
|
78
|
+
lastActiveGroup: VId<GenericId<"Group"> | undefined, "optional">;
|
|
81
79
|
hasTotp: convex_values7.VBoolean<boolean | undefined, "optional">;
|
|
82
80
|
extend: convex_values7.VAny<any, "optional", string>;
|
|
83
|
-
_id: convex_values7.VId<convex_values7.GenericId<"User">, "required">;
|
|
84
|
-
_creationTime: convex_values7.VFloat64<number, "required">;
|
|
85
81
|
}, "extend"> & {
|
|
86
82
|
extend: convex_values7.VOptional<ExtendFor<TExtend, "User">>;
|
|
87
|
-
}, "required", "
|
|
83
|
+
}, "required", "name" | "email" | "image" | "_creationTime" | "phone" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | "extend" | "_id" | `extend.${convex_values7.VOptional<ExtendFor<TExtend, "User">>["fieldPaths"]}`>; /** Single Group document validator (extend-aware). */
|
|
88
84
|
group: convex_values7.VObject<convex_server13.Expand<{ [Property_2 in "type" | "slug" | "parentGroupId" | "rootGroupId" | "isRoot" | "tags" | "policy" | (convex_values7.VOptional<ExtendFor<TExtend, "Group">>["isOptional"] extends "optional" ? "extend" : never)]?: Exclude<Infer<(Omit<{
|
|
85
|
+
_id: VId<GenericId<"Group">, "required">;
|
|
86
|
+
_creationTime: convex_values7.VFloat64<number, "required">;
|
|
89
87
|
name: convex_values7.VString<string, "required">;
|
|
90
88
|
slug: convex_values7.VString<string | undefined, "optional">;
|
|
91
89
|
type: convex_values7.VString<string | undefined, "optional">;
|
|
92
|
-
parentGroupId:
|
|
93
|
-
rootGroupId:
|
|
90
|
+
parentGroupId: VId<GenericId<"Group"> | undefined, "optional">;
|
|
91
|
+
rootGroupId: VId<GenericId<"Group"> | undefined, "optional">;
|
|
94
92
|
isRoot: convex_values7.VBoolean<boolean | undefined, "optional">;
|
|
95
93
|
tags: convex_values7.VArray<{
|
|
96
94
|
key: string;
|
|
@@ -237,16 +235,16 @@ declare function buildAuthValidators<TExtend extends AuthExtendValidators>(exten
|
|
|
237
235
|
extend: convex_values7.VAny<any, "optional", string>;
|
|
238
236
|
}, "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}`>;
|
|
239
237
|
extend: convex_values7.VAny<any, "optional", string>;
|
|
240
|
-
_id: convex_values7.VId<convex_values7.GenericId<"Group">, "required">;
|
|
241
|
-
_creationTime: convex_values7.VFloat64<number, "required">;
|
|
242
238
|
}, "extend"> & {
|
|
243
239
|
extend: convex_values7.VOptional<ExtendFor<TExtend, "Group">>;
|
|
244
|
-
})[Property_2]>, undefined> | undefined } & { [Property_1_1 in Exclude<"
|
|
240
|
+
})[Property_2]>, undefined> | undefined } & { [Property_1_1 in Exclude<"name", "type" | "slug" | "parentGroupId" | "rootGroupId" | "isRoot" | "tags" | "policy" | (convex_values7.VOptional<ExtendFor<TExtend, "Group">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"_creationTime", "type" | "slug" | "parentGroupId" | "rootGroupId" | "isRoot" | "tags" | "policy" | (convex_values7.VOptional<ExtendFor<TExtend, "Group">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"extend", "type" | "slug" | "parentGroupId" | "rootGroupId" | "isRoot" | "tags" | "policy" | (convex_values7.VOptional<ExtendFor<TExtend, "Group">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"type", "type" | "slug" | "parentGroupId" | "rootGroupId" | "isRoot" | "tags" | "policy" | (convex_values7.VOptional<ExtendFor<TExtend, "Group">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"slug", "type" | "slug" | "parentGroupId" | "rootGroupId" | "isRoot" | "tags" | "policy" | (convex_values7.VOptional<ExtendFor<TExtend, "Group">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"parentGroupId", "type" | "slug" | "parentGroupId" | "rootGroupId" | "isRoot" | "tags" | "policy" | (convex_values7.VOptional<ExtendFor<TExtend, "Group">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"rootGroupId", "type" | "slug" | "parentGroupId" | "rootGroupId" | "isRoot" | "tags" | "policy" | (convex_values7.VOptional<ExtendFor<TExtend, "Group">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"isRoot", "type" | "slug" | "parentGroupId" | "rootGroupId" | "isRoot" | "tags" | "policy" | (convex_values7.VOptional<ExtendFor<TExtend, "Group">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"tags", "type" | "slug" | "parentGroupId" | "rootGroupId" | "isRoot" | "tags" | "policy" | (convex_values7.VOptional<ExtendFor<TExtend, "Group">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"policy", "type" | "slug" | "parentGroupId" | "rootGroupId" | "isRoot" | "tags" | "policy" | (convex_values7.VOptional<ExtendFor<TExtend, "Group">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"_id", "type" | "slug" | "parentGroupId" | "rootGroupId" | "isRoot" | "tags" | "policy" | (convex_values7.VOptional<ExtendFor<TExtend, "Group">>["isOptional"] extends "optional" ? "extend" : never)>]: Infer<(Omit<{
|
|
241
|
+
_id: VId<GenericId<"Group">, "required">;
|
|
242
|
+
_creationTime: convex_values7.VFloat64<number, "required">;
|
|
245
243
|
name: convex_values7.VString<string, "required">;
|
|
246
244
|
slug: convex_values7.VString<string | undefined, "optional">;
|
|
247
245
|
type: convex_values7.VString<string | undefined, "optional">;
|
|
248
|
-
parentGroupId:
|
|
249
|
-
rootGroupId:
|
|
246
|
+
parentGroupId: VId<GenericId<"Group"> | undefined, "optional">;
|
|
247
|
+
rootGroupId: VId<GenericId<"Group"> | undefined, "optional">;
|
|
250
248
|
isRoot: convex_values7.VBoolean<boolean | undefined, "optional">;
|
|
251
249
|
tags: convex_values7.VArray<{
|
|
252
250
|
key: string;
|
|
@@ -393,16 +391,16 @@ declare function buildAuthValidators<TExtend extends AuthExtendValidators>(exten
|
|
|
393
391
|
extend: convex_values7.VAny<any, "optional", string>;
|
|
394
392
|
}, "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}`>;
|
|
395
393
|
extend: convex_values7.VAny<any, "optional", string>;
|
|
396
|
-
_id: convex_values7.VId<convex_values7.GenericId<"Group">, "required">;
|
|
397
|
-
_creationTime: convex_values7.VFloat64<number, "required">;
|
|
398
394
|
}, "extend"> & {
|
|
399
395
|
extend: convex_values7.VOptional<ExtendFor<TExtend, "Group">>;
|
|
400
396
|
})[Property_1_1]> }>, Omit<{
|
|
397
|
+
_id: VId<GenericId<"Group">, "required">;
|
|
398
|
+
_creationTime: convex_values7.VFloat64<number, "required">;
|
|
401
399
|
name: convex_values7.VString<string, "required">;
|
|
402
400
|
slug: convex_values7.VString<string | undefined, "optional">;
|
|
403
401
|
type: convex_values7.VString<string | undefined, "optional">;
|
|
404
|
-
parentGroupId:
|
|
405
|
-
rootGroupId:
|
|
402
|
+
parentGroupId: VId<GenericId<"Group"> | undefined, "optional">;
|
|
403
|
+
rootGroupId: VId<GenericId<"Group"> | undefined, "optional">;
|
|
406
404
|
isRoot: convex_values7.VBoolean<boolean | undefined, "optional">;
|
|
407
405
|
tags: convex_values7.VArray<{
|
|
408
406
|
key: string;
|
|
@@ -549,98 +547,98 @@ declare function buildAuthValidators<TExtend extends AuthExtendValidators>(exten
|
|
|
549
547
|
extend: convex_values7.VAny<any, "optional", string>;
|
|
550
548
|
}, "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}`>;
|
|
551
549
|
extend: convex_values7.VAny<any, "optional", string>;
|
|
552
|
-
_id: convex_values7.VId<convex_values7.GenericId<"Group">, "required">;
|
|
553
|
-
_creationTime: convex_values7.VFloat64<number, "required">;
|
|
554
550
|
}, "extend"> & {
|
|
555
551
|
extend: convex_values7.VOptional<ExtendFor<TExtend, "Group">>;
|
|
556
|
-
}, "required", "
|
|
552
|
+
}, "required", "name" | "_creationTime" | "extend" | "type" | "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" | `extend.${convex_values7.VOptional<ExtendFor<TExtend, "Group">>["fieldPaths"]}`>; /** Single GroupMember document validator (extend-aware). */
|
|
557
553
|
member: convex_values7.VObject<convex_server13.Expand<{ [Property_3 in "status" | "role" | "roleIds" | (convex_values7.VOptional<ExtendFor<TExtend, "GroupMember">>["isOptional"] extends "optional" ? "extend" : never)]?: Exclude<Infer<(Omit<{
|
|
558
|
-
|
|
559
|
-
|
|
554
|
+
_id: VId<GenericId<"GroupMember">, "required">;
|
|
555
|
+
_creationTime: convex_values7.VFloat64<number, "required">;
|
|
556
|
+
groupId: VId<GenericId<"Group">, "required">;
|
|
557
|
+
userId: VId<GenericId<"User">, "required">;
|
|
560
558
|
role: convex_values7.VString<string | undefined, "optional">;
|
|
561
559
|
roleIds: convex_values7.VArray<string[] | undefined, convex_values7.VString<string, "required">, "optional">;
|
|
562
560
|
status: convex_values7.VString<string | undefined, "optional">;
|
|
563
561
|
extend: convex_values7.VAny<any, "optional", string>;
|
|
564
|
-
_id: convex_values7.VId<convex_values7.GenericId<"GroupMember">, "required">;
|
|
565
|
-
_creationTime: convex_values7.VFloat64<number, "required">;
|
|
566
562
|
}, "extend"> & {
|
|
567
563
|
extend: convex_values7.VOptional<ExtendFor<TExtend, "GroupMember">>;
|
|
568
564
|
})[Property_3]>, undefined> | undefined } & { [Property_1_2 in Exclude<"_creationTime", "status" | "role" | "roleIds" | (convex_values7.VOptional<ExtendFor<TExtend, "GroupMember">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"extend", "status" | "role" | "roleIds" | (convex_values7.VOptional<ExtendFor<TExtend, "GroupMember">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"userId", "status" | "role" | "roleIds" | (convex_values7.VOptional<ExtendFor<TExtend, "GroupMember">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"status", "status" | "role" | "roleIds" | (convex_values7.VOptional<ExtendFor<TExtend, "GroupMember">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"groupId", "status" | "role" | "roleIds" | (convex_values7.VOptional<ExtendFor<TExtend, "GroupMember">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"role", "status" | "role" | "roleIds" | (convex_values7.VOptional<ExtendFor<TExtend, "GroupMember">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"roleIds", "status" | "role" | "roleIds" | (convex_values7.VOptional<ExtendFor<TExtend, "GroupMember">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"_id", "status" | "role" | "roleIds" | (convex_values7.VOptional<ExtendFor<TExtend, "GroupMember">>["isOptional"] extends "optional" ? "extend" : never)>]: Infer<(Omit<{
|
|
569
|
-
|
|
570
|
-
|
|
565
|
+
_id: VId<GenericId<"GroupMember">, "required">;
|
|
566
|
+
_creationTime: convex_values7.VFloat64<number, "required">;
|
|
567
|
+
groupId: VId<GenericId<"Group">, "required">;
|
|
568
|
+
userId: VId<GenericId<"User">, "required">;
|
|
571
569
|
role: convex_values7.VString<string | undefined, "optional">;
|
|
572
570
|
roleIds: convex_values7.VArray<string[] | undefined, convex_values7.VString<string, "required">, "optional">;
|
|
573
571
|
status: convex_values7.VString<string | undefined, "optional">;
|
|
574
572
|
extend: convex_values7.VAny<any, "optional", string>;
|
|
575
|
-
_id: convex_values7.VId<convex_values7.GenericId<"GroupMember">, "required">;
|
|
576
|
-
_creationTime: convex_values7.VFloat64<number, "required">;
|
|
577
573
|
}, "extend"> & {
|
|
578
574
|
extend: convex_values7.VOptional<ExtendFor<TExtend, "GroupMember">>;
|
|
579
575
|
})[Property_1_2]> }>, Omit<{
|
|
580
|
-
|
|
581
|
-
|
|
576
|
+
_id: VId<GenericId<"GroupMember">, "required">;
|
|
577
|
+
_creationTime: convex_values7.VFloat64<number, "required">;
|
|
578
|
+
groupId: VId<GenericId<"Group">, "required">;
|
|
579
|
+
userId: VId<GenericId<"User">, "required">;
|
|
582
580
|
role: convex_values7.VString<string | undefined, "optional">;
|
|
583
581
|
roleIds: convex_values7.VArray<string[] | undefined, convex_values7.VString<string, "required">, "optional">;
|
|
584
582
|
status: convex_values7.VString<string | undefined, "optional">;
|
|
585
583
|
extend: convex_values7.VAny<any, "optional", string>;
|
|
586
|
-
_id: convex_values7.VId<convex_values7.GenericId<"GroupMember">, "required">;
|
|
587
|
-
_creationTime: convex_values7.VFloat64<number, "required">;
|
|
588
584
|
}, "extend"> & {
|
|
589
585
|
extend: convex_values7.VOptional<ExtendFor<TExtend, "GroupMember">>;
|
|
590
586
|
}, "required", "_creationTime" | "extend" | "userId" | "status" | "groupId" | "role" | "roleIds" | "_id" | `extend.${convex_values7.VOptional<ExtendFor<TExtend, "GroupMember">>["fieldPaths"]}`>; /** Single GroupInvite document validator. */
|
|
591
587
|
invite: convex_values7.VObject<{
|
|
592
588
|
email?: string | undefined;
|
|
593
589
|
extend?: any;
|
|
594
|
-
groupId?:
|
|
590
|
+
groupId?: GenericId<"Group"> | undefined;
|
|
595
591
|
role?: string | undefined;
|
|
596
592
|
roleIds?: string[] | undefined;
|
|
597
|
-
invitedByUserId?:
|
|
593
|
+
invitedByUserId?: GenericId<"User"> | undefined;
|
|
598
594
|
expiresTime?: number | undefined;
|
|
599
|
-
acceptedByUserId?:
|
|
595
|
+
acceptedByUserId?: GenericId<"User"> | undefined;
|
|
600
596
|
acceptedTime?: number | undefined;
|
|
601
597
|
_creationTime: number;
|
|
602
598
|
status: "pending" | "accepted" | "revoked" | "expired";
|
|
603
599
|
tokenHash: string;
|
|
604
|
-
_id:
|
|
600
|
+
_id: GenericId<"GroupInvite">;
|
|
605
601
|
}, {
|
|
606
|
-
|
|
607
|
-
|
|
602
|
+
_id: VId<GenericId<"GroupInvite">, "required">;
|
|
603
|
+
_creationTime: convex_values7.VFloat64<number, "required">;
|
|
604
|
+
groupId: VId<GenericId<"Group"> | undefined, "optional">;
|
|
605
|
+
invitedByUserId: VId<GenericId<"User"> | undefined, "optional">;
|
|
608
606
|
email: convex_values7.VString<string | undefined, "optional">;
|
|
609
607
|
tokenHash: convex_values7.VString<string, "required">;
|
|
610
608
|
role: convex_values7.VString<string | undefined, "optional">;
|
|
611
609
|
roleIds: convex_values7.VArray<string[] | undefined, convex_values7.VString<string, "required">, "optional">;
|
|
612
610
|
status: convex_values7.VUnion<"pending" | "accepted" | "revoked" | "expired", [convex_values7.VLiteral<"pending", "required">, convex_values7.VLiteral<"accepted", "required">, convex_values7.VLiteral<"revoked", "required">, convex_values7.VLiteral<"expired", "required">], "required", never>;
|
|
613
611
|
expiresTime: convex_values7.VFloat64<number | undefined, "optional">;
|
|
614
|
-
acceptedByUserId:
|
|
612
|
+
acceptedByUserId: VId<GenericId<"User"> | undefined, "optional">;
|
|
615
613
|
acceptedTime: convex_values7.VFloat64<number | undefined, "optional">;
|
|
616
614
|
extend: convex_values7.VAny<any, "optional", string>;
|
|
617
|
-
|
|
618
|
-
_creationTime: convex_values7.VFloat64<number, "required">;
|
|
619
|
-
}, "required", "_creationTime" | "email" | "extend" | `extend.${string}` | "status" | "groupId" | "role" | "roleIds" | "invitedByUserId" | "tokenHash" | "expiresTime" | "acceptedByUserId" | "acceptedTime" | "_id">; /** Single UserEmail document validator. */
|
|
615
|
+
}, "required", "email" | "_creationTime" | "extend" | `extend.${string}` | "status" | "groupId" | "role" | "roleIds" | "invitedByUserId" | "tokenHash" | "expiresTime" | "acceptedByUserId" | "acceptedTime" | "_id">; /** Single UserEmail document validator. */
|
|
620
616
|
email: convex_values7.VObject<{
|
|
621
617
|
verificationTime?: number | undefined;
|
|
622
|
-
accountId?:
|
|
618
|
+
accountId?: GenericId<"Account"> | undefined;
|
|
623
619
|
provider?: string | undefined;
|
|
624
|
-
connectionId?:
|
|
625
|
-
_creationTime: number;
|
|
620
|
+
connectionId?: GenericId<"GroupConnection"> | undefined;
|
|
626
621
|
email: string;
|
|
627
|
-
|
|
622
|
+
_creationTime: number;
|
|
623
|
+
userId: GenericId<"User">;
|
|
628
624
|
isPrimary: boolean;
|
|
629
625
|
source: "password" | "oauth" | "oidc" | "saml" | "scim";
|
|
630
|
-
_id:
|
|
626
|
+
_id: GenericId<"UserEmail">;
|
|
631
627
|
}, {
|
|
632
|
-
|
|
628
|
+
_id: VId<GenericId<"UserEmail">, "required">;
|
|
629
|
+
_creationTime: convex_values7.VFloat64<number, "required">;
|
|
630
|
+
userId: VId<GenericId<"User">, "required">;
|
|
633
631
|
email: convex_values7.VString<string, "required">;
|
|
634
632
|
verificationTime: convex_values7.VFloat64<number | undefined, "optional">;
|
|
635
633
|
isPrimary: convex_values7.VBoolean<boolean, "required">;
|
|
636
634
|
source: convex_values7.VUnion<"password" | "oauth" | "oidc" | "saml" | "scim", [convex_values7.VLiteral<"password", "required">, convex_values7.VLiteral<"oauth", "required">, convex_values7.VLiteral<"oidc", "required">, convex_values7.VLiteral<"saml", "required">, convex_values7.VLiteral<"scim", "required">], "required", never>;
|
|
637
|
-
accountId:
|
|
635
|
+
accountId: VId<GenericId<"Account"> | undefined, "optional">;
|
|
638
636
|
provider: convex_values7.VString<string | undefined, "optional">;
|
|
639
|
-
connectionId:
|
|
640
|
-
|
|
637
|
+
connectionId: VId<GenericId<"GroupConnection"> | undefined, "optional">;
|
|
638
|
+
}, "required", "email" | "_creationTime" | "userId" | "verificationTime" | "isPrimary" | "source" | "accountId" | "provider" | "connectionId" | "_id">; /** `User | null` — for a `viewer`/current-user query. */
|
|
639
|
+
viewer: convex_values7.VUnion<convex_server13.Expand<{ [Property in "name" | "email" | "image" | "phone" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)]?: Exclude<Infer<(Omit<{
|
|
640
|
+
_id: VId<GenericId<"User">, "required">;
|
|
641
641
|
_creationTime: convex_values7.VFloat64<number, "required">;
|
|
642
|
-
}, "required", "_creationTime" | "email" | "userId" | "verificationTime" | "isPrimary" | "source" | "accountId" | "provider" | "connectionId" | "_id">; /** `User | null` — for a `viewer`/current-user query. */
|
|
643
|
-
viewer: convex_values7.VUnion<convex_server13.Expand<{ [Property in "name" | "email" | "phone" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)]?: Exclude<Infer<(Omit<{
|
|
644
642
|
name: convex_values7.VString<string | undefined, "optional">;
|
|
645
643
|
image: convex_values7.VString<string | undefined, "optional">;
|
|
646
644
|
email: convex_values7.VString<string | undefined, "optional">;
|
|
@@ -648,14 +646,14 @@ declare function buildAuthValidators<TExtend extends AuthExtendValidators>(exten
|
|
|
648
646
|
phone: convex_values7.VString<string | undefined, "optional">;
|
|
649
647
|
phoneVerificationTime: convex_values7.VFloat64<number | undefined, "optional">;
|
|
650
648
|
isAnonymous: convex_values7.VBoolean<boolean | undefined, "optional">;
|
|
651
|
-
lastActiveGroup:
|
|
649
|
+
lastActiveGroup: VId<GenericId<"Group"> | undefined, "optional">;
|
|
652
650
|
hasTotp: convex_values7.VBoolean<boolean | undefined, "optional">;
|
|
653
651
|
extend: convex_values7.VAny<any, "optional", string>;
|
|
654
|
-
_id: convex_values7.VId<convex_values7.GenericId<"User">, "required">;
|
|
655
|
-
_creationTime: convex_values7.VFloat64<number, "required">;
|
|
656
652
|
}, "extend"> & {
|
|
657
653
|
extend: convex_values7.VOptional<ExtendFor<TExtend, "User">>;
|
|
658
|
-
})[Property]>, undefined> | undefined } & { [Property_1 in Exclude<"
|
|
654
|
+
})[Property]>, undefined> | undefined } & { [Property_1 in Exclude<"name", "name" | "email" | "image" | "phone" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"email", "name" | "email" | "image" | "phone" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"image", "name" | "email" | "image" | "phone" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"_creationTime", "name" | "email" | "image" | "phone" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"phone", "name" | "email" | "image" | "phone" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"emailVerificationTime", "name" | "email" | "image" | "phone" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"phoneVerificationTime", "name" | "email" | "image" | "phone" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"isAnonymous", "name" | "email" | "image" | "phone" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"lastActiveGroup", "name" | "email" | "image" | "phone" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"hasTotp", "name" | "email" | "image" | "phone" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"extend", "name" | "email" | "image" | "phone" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"_id", "name" | "email" | "image" | "phone" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)>]: Infer<(Omit<{
|
|
655
|
+
_id: VId<GenericId<"User">, "required">;
|
|
656
|
+
_creationTime: convex_values7.VFloat64<number, "required">;
|
|
659
657
|
name: convex_values7.VString<string | undefined, "optional">;
|
|
660
658
|
image: convex_values7.VString<string | undefined, "optional">;
|
|
661
659
|
email: convex_values7.VString<string | undefined, "optional">;
|
|
@@ -663,14 +661,14 @@ declare function buildAuthValidators<TExtend extends AuthExtendValidators>(exten
|
|
|
663
661
|
phone: convex_values7.VString<string | undefined, "optional">;
|
|
664
662
|
phoneVerificationTime: convex_values7.VFloat64<number | undefined, "optional">;
|
|
665
663
|
isAnonymous: convex_values7.VBoolean<boolean | undefined, "optional">;
|
|
666
|
-
lastActiveGroup:
|
|
664
|
+
lastActiveGroup: VId<GenericId<"Group"> | undefined, "optional">;
|
|
667
665
|
hasTotp: convex_values7.VBoolean<boolean | undefined, "optional">;
|
|
668
666
|
extend: convex_values7.VAny<any, "optional", string>;
|
|
669
|
-
_id: convex_values7.VId<convex_values7.GenericId<"User">, "required">;
|
|
670
|
-
_creationTime: convex_values7.VFloat64<number, "required">;
|
|
671
667
|
}, "extend"> & {
|
|
672
668
|
extend: convex_values7.VOptional<ExtendFor<TExtend, "User">>;
|
|
673
|
-
})[Property_1]> }> | null, [convex_values7.VObject<convex_server13.Expand<{ [Property in "name" | "email" | "
|
|
669
|
+
})[Property_1]> }> | null, [convex_values7.VObject<convex_server13.Expand<{ [Property in "name" | "email" | "image" | "phone" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)]?: Exclude<Infer<(Omit<{
|
|
670
|
+
_id: VId<GenericId<"User">, "required">;
|
|
671
|
+
_creationTime: convex_values7.VFloat64<number, "required">;
|
|
674
672
|
name: convex_values7.VString<string | undefined, "optional">;
|
|
675
673
|
image: convex_values7.VString<string | undefined, "optional">;
|
|
676
674
|
email: convex_values7.VString<string | undefined, "optional">;
|
|
@@ -678,14 +676,14 @@ declare function buildAuthValidators<TExtend extends AuthExtendValidators>(exten
|
|
|
678
676
|
phone: convex_values7.VString<string | undefined, "optional">;
|
|
679
677
|
phoneVerificationTime: convex_values7.VFloat64<number | undefined, "optional">;
|
|
680
678
|
isAnonymous: convex_values7.VBoolean<boolean | undefined, "optional">;
|
|
681
|
-
lastActiveGroup:
|
|
679
|
+
lastActiveGroup: VId<GenericId<"Group"> | undefined, "optional">;
|
|
682
680
|
hasTotp: convex_values7.VBoolean<boolean | undefined, "optional">;
|
|
683
681
|
extend: convex_values7.VAny<any, "optional", string>;
|
|
684
|
-
_id: convex_values7.VId<convex_values7.GenericId<"User">, "required">;
|
|
685
|
-
_creationTime: convex_values7.VFloat64<number, "required">;
|
|
686
682
|
}, "extend"> & {
|
|
687
683
|
extend: convex_values7.VOptional<ExtendFor<TExtend, "User">>;
|
|
688
|
-
})[Property]>, undefined> | undefined } & { [Property_1 in Exclude<"
|
|
684
|
+
})[Property]>, undefined> | undefined } & { [Property_1 in Exclude<"name", "name" | "email" | "image" | "phone" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"email", "name" | "email" | "image" | "phone" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"image", "name" | "email" | "image" | "phone" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"_creationTime", "name" | "email" | "image" | "phone" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"phone", "name" | "email" | "image" | "phone" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"emailVerificationTime", "name" | "email" | "image" | "phone" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"phoneVerificationTime", "name" | "email" | "image" | "phone" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"isAnonymous", "name" | "email" | "image" | "phone" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"lastActiveGroup", "name" | "email" | "image" | "phone" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"hasTotp", "name" | "email" | "image" | "phone" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"extend", "name" | "email" | "image" | "phone" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"_id", "name" | "email" | "image" | "phone" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)>]: Infer<(Omit<{
|
|
685
|
+
_id: VId<GenericId<"User">, "required">;
|
|
686
|
+
_creationTime: convex_values7.VFloat64<number, "required">;
|
|
689
687
|
name: convex_values7.VString<string | undefined, "optional">;
|
|
690
688
|
image: convex_values7.VString<string | undefined, "optional">;
|
|
691
689
|
email: convex_values7.VString<string | undefined, "optional">;
|
|
@@ -693,14 +691,14 @@ declare function buildAuthValidators<TExtend extends AuthExtendValidators>(exten
|
|
|
693
691
|
phone: convex_values7.VString<string | undefined, "optional">;
|
|
694
692
|
phoneVerificationTime: convex_values7.VFloat64<number | undefined, "optional">;
|
|
695
693
|
isAnonymous: convex_values7.VBoolean<boolean | undefined, "optional">;
|
|
696
|
-
lastActiveGroup:
|
|
694
|
+
lastActiveGroup: VId<GenericId<"Group"> | undefined, "optional">;
|
|
697
695
|
hasTotp: convex_values7.VBoolean<boolean | undefined, "optional">;
|
|
698
696
|
extend: convex_values7.VAny<any, "optional", string>;
|
|
699
|
-
_id: convex_values7.VId<convex_values7.GenericId<"User">, "required">;
|
|
700
|
-
_creationTime: convex_values7.VFloat64<number, "required">;
|
|
701
697
|
}, "extend"> & {
|
|
702
698
|
extend: convex_values7.VOptional<ExtendFor<TExtend, "User">>;
|
|
703
699
|
})[Property_1]> }>, Omit<{
|
|
700
|
+
_id: VId<GenericId<"User">, "required">;
|
|
701
|
+
_creationTime: convex_values7.VFloat64<number, "required">;
|
|
704
702
|
name: convex_values7.VString<string | undefined, "optional">;
|
|
705
703
|
image: convex_values7.VString<string | undefined, "optional">;
|
|
706
704
|
email: convex_values7.VString<string | undefined, "optional">;
|
|
@@ -708,14 +706,12 @@ declare function buildAuthValidators<TExtend extends AuthExtendValidators>(exten
|
|
|
708
706
|
phone: convex_values7.VString<string | undefined, "optional">;
|
|
709
707
|
phoneVerificationTime: convex_values7.VFloat64<number | undefined, "optional">;
|
|
710
708
|
isAnonymous: convex_values7.VBoolean<boolean | undefined, "optional">;
|
|
711
|
-
lastActiveGroup:
|
|
709
|
+
lastActiveGroup: VId<GenericId<"Group"> | undefined, "optional">;
|
|
712
710
|
hasTotp: convex_values7.VBoolean<boolean | undefined, "optional">;
|
|
713
711
|
extend: convex_values7.VAny<any, "optional", string>;
|
|
714
|
-
_id: convex_values7.VId<convex_values7.GenericId<"User">, "required">;
|
|
715
|
-
_creationTime: convex_values7.VFloat64<number, "required">;
|
|
716
712
|
}, "extend"> & {
|
|
717
713
|
extend: convex_values7.VOptional<ExtendFor<TExtend, "User">>;
|
|
718
|
-
}, "required", "
|
|
714
|
+
}, "required", "name" | "email" | "image" | "_creationTime" | "phone" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | "extend" | "_id" | `extend.${convex_values7.VOptional<ExtendFor<TExtend, "User">>["fieldPaths"]}`>, convex_values7.VNull<null, "required">], "required", "name" | "email" | "image" | "_creationTime" | "phone" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | "extend" | "_id" | `extend.${convex_values7.VOptional<ExtendFor<TExtend, "User">>["fieldPaths"]}`>; /** Wrap any item validator in the `{ items, nextCursor }` page shape. */
|
|
719
715
|
list: <V extends Validator<any, any, any>>(item: V) => convex_values7.VObject<{
|
|
720
716
|
items: V["type"][];
|
|
721
717
|
nextCursor: string | null;
|