@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.
- package/dist/component/_generated/component.d.ts +6 -0
- package/dist/component/convex.config.js +2 -0
- package/dist/component/migrations.js +36 -0
- package/dist/component/model.d.ts +179 -177
- package/dist/component/model.js +1 -0
- package/dist/component/modules.js +1 -0
- package/dist/component/schema.d.ts +363 -361
- package/dist/component/schema.js +1 -0
- package/dist/core/index.d.ts +25 -25
- package/dist/core/index.js +4 -2
- package/dist/model.js +1 -0
- package/dist/server/auth.d.ts +4 -3
- package/dist/server/auth.js +2 -2
- package/dist/server/mounts.d.ts +32 -32
- package/dist/server/runtime.d.ts +11 -11
- package/dist/server/sso/domain.d.ts +1 -1
- package/dist/server/validators.d.ts +379 -371
- package/package.json +2 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as convex_values7 from "convex/values";
|
|
2
2
|
import { Infer, Validator, v } from "convex/values";
|
|
3
3
|
import * as convex_server13 from "convex/server";
|
|
4
4
|
|
|
@@ -39,81 +39,84 @@ type ExtendFor<TExtend extends AuthExtendValidators, K extends keyof AuthExtendV
|
|
|
39
39
|
* ```
|
|
40
40
|
*/
|
|
41
41
|
declare function buildAuthValidators<TExtend extends AuthExtendValidators>(extend?: TExtend): {
|
|
42
|
-
/** Single User document validator (extend-aware). */user:
|
|
43
|
-
name:
|
|
44
|
-
image:
|
|
45
|
-
email:
|
|
46
|
-
emailVerificationTime:
|
|
47
|
-
phone:
|
|
48
|
-
phoneVerificationTime:
|
|
49
|
-
isAnonymous:
|
|
50
|
-
lastActiveGroup:
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
42
|
+
/** Single User document validator (extend-aware). */user: convex_values7.VObject<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<{
|
|
43
|
+
name: convex_values7.VString<string | undefined, "optional">;
|
|
44
|
+
image: convex_values7.VString<string | undefined, "optional">;
|
|
45
|
+
email: convex_values7.VString<string | undefined, "optional">;
|
|
46
|
+
emailVerificationTime: convex_values7.VFloat64<number | undefined, "optional">;
|
|
47
|
+
phone: convex_values7.VString<string | undefined, "optional">;
|
|
48
|
+
phoneVerificationTime: convex_values7.VFloat64<number | undefined, "optional">;
|
|
49
|
+
isAnonymous: convex_values7.VBoolean<boolean | undefined, "optional">;
|
|
50
|
+
lastActiveGroup: convex_values7.VId<convex_values7.GenericId<"Group"> | undefined, "optional">;
|
|
51
|
+
hasTotp: convex_values7.VBoolean<boolean | undefined, "optional">;
|
|
52
|
+
extend: convex_values7.VAny<any, "optional", string>;
|
|
53
|
+
_id: convex_values7.VId<convex_values7.GenericId<"User">, "required">;
|
|
54
|
+
_creationTime: convex_values7.VFloat64<number, "required">;
|
|
54
55
|
}, "extend"> & {
|
|
55
|
-
extend:
|
|
56
|
-
})[Property]>, undefined> | undefined } & { [Property_1 in Exclude<"
|
|
57
|
-
name:
|
|
58
|
-
image:
|
|
59
|
-
email:
|
|
60
|
-
emailVerificationTime:
|
|
61
|
-
phone:
|
|
62
|
-
phoneVerificationTime:
|
|
63
|
-
isAnonymous:
|
|
64
|
-
lastActiveGroup:
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
56
|
+
extend: convex_values7.VOptional<ExtendFor<TExtend, "User">>;
|
|
57
|
+
})[Property]>, undefined> | undefined } & { [Property_1 in Exclude<"_creationTime", "name" | "email" | "phone" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"name", "name" | "email" | "phone" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"email", "name" | "email" | "phone" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"phone", "name" | "email" | "phone" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"image", "name" | "email" | "phone" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"emailVerificationTime", "name" | "email" | "phone" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"phoneVerificationTime", "name" | "email" | "phone" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"isAnonymous", "name" | "email" | "phone" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"lastActiveGroup", "name" | "email" | "phone" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"hasTotp", "name" | "email" | "phone" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"extend", "name" | "email" | "phone" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"_id", "name" | "email" | "phone" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)>]: Infer<(Omit<{
|
|
58
|
+
name: convex_values7.VString<string | undefined, "optional">;
|
|
59
|
+
image: convex_values7.VString<string | undefined, "optional">;
|
|
60
|
+
email: convex_values7.VString<string | undefined, "optional">;
|
|
61
|
+
emailVerificationTime: convex_values7.VFloat64<number | undefined, "optional">;
|
|
62
|
+
phone: convex_values7.VString<string | undefined, "optional">;
|
|
63
|
+
phoneVerificationTime: convex_values7.VFloat64<number | undefined, "optional">;
|
|
64
|
+
isAnonymous: convex_values7.VBoolean<boolean | undefined, "optional">;
|
|
65
|
+
lastActiveGroup: convex_values7.VId<convex_values7.GenericId<"Group"> | undefined, "optional">;
|
|
66
|
+
hasTotp: convex_values7.VBoolean<boolean | undefined, "optional">;
|
|
67
|
+
extend: convex_values7.VAny<any, "optional", string>;
|
|
68
|
+
_id: convex_values7.VId<convex_values7.GenericId<"User">, "required">;
|
|
69
|
+
_creationTime: convex_values7.VFloat64<number, "required">;
|
|
68
70
|
}, "extend"> & {
|
|
69
|
-
extend:
|
|
71
|
+
extend: convex_values7.VOptional<ExtendFor<TExtend, "User">>;
|
|
70
72
|
})[Property_1]> }>, Omit<{
|
|
71
|
-
name:
|
|
72
|
-
image:
|
|
73
|
-
email:
|
|
74
|
-
emailVerificationTime:
|
|
75
|
-
phone:
|
|
76
|
-
phoneVerificationTime:
|
|
77
|
-
isAnonymous:
|
|
78
|
-
lastActiveGroup:
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
73
|
+
name: convex_values7.VString<string | undefined, "optional">;
|
|
74
|
+
image: convex_values7.VString<string | undefined, "optional">;
|
|
75
|
+
email: convex_values7.VString<string | undefined, "optional">;
|
|
76
|
+
emailVerificationTime: convex_values7.VFloat64<number | undefined, "optional">;
|
|
77
|
+
phone: convex_values7.VString<string | undefined, "optional">;
|
|
78
|
+
phoneVerificationTime: convex_values7.VFloat64<number | undefined, "optional">;
|
|
79
|
+
isAnonymous: convex_values7.VBoolean<boolean | undefined, "optional">;
|
|
80
|
+
lastActiveGroup: convex_values7.VId<convex_values7.GenericId<"Group"> | undefined, "optional">;
|
|
81
|
+
hasTotp: convex_values7.VBoolean<boolean | undefined, "optional">;
|
|
82
|
+
extend: convex_values7.VAny<any, "optional", string>;
|
|
83
|
+
_id: convex_values7.VId<convex_values7.GenericId<"User">, "required">;
|
|
84
|
+
_creationTime: convex_values7.VFloat64<number, "required">;
|
|
82
85
|
}, "extend"> & {
|
|
83
|
-
extend:
|
|
84
|
-
}, "required", "
|
|
85
|
-
group:
|
|
86
|
-
name:
|
|
87
|
-
slug:
|
|
88
|
-
type:
|
|
89
|
-
parentGroupId:
|
|
90
|
-
rootGroupId:
|
|
91
|
-
isRoot:
|
|
92
|
-
tags:
|
|
93
|
-
value: string;
|
|
86
|
+
extend: convex_values7.VOptional<ExtendFor<TExtend, "User">>;
|
|
87
|
+
}, "required", "_creationTime" | "name" | "email" | "phone" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | "extend" | "_id" | `extend.${convex_values7.VOptional<ExtendFor<TExtend, "User">>["fieldPaths"]}`>; /** Single Group document validator (extend-aware). */
|
|
88
|
+
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<{
|
|
89
|
+
name: convex_values7.VString<string, "required">;
|
|
90
|
+
slug: convex_values7.VString<string | undefined, "optional">;
|
|
91
|
+
type: convex_values7.VString<string | undefined, "optional">;
|
|
92
|
+
parentGroupId: convex_values7.VId<convex_values7.GenericId<"Group"> | undefined, "optional">;
|
|
93
|
+
rootGroupId: convex_values7.VId<convex_values7.GenericId<"Group"> | undefined, "optional">;
|
|
94
|
+
isRoot: convex_values7.VBoolean<boolean | undefined, "optional">;
|
|
95
|
+
tags: convex_values7.VArray<{
|
|
94
96
|
key: string;
|
|
95
|
-
}[] | undefined, convex_values54.VObject<{
|
|
96
97
|
value: string;
|
|
98
|
+
}[] | undefined, convex_values7.VObject<{
|
|
97
99
|
key: string;
|
|
100
|
+
value: string;
|
|
98
101
|
}, {
|
|
99
|
-
key:
|
|
100
|
-
value:
|
|
101
|
-
}, "required", "
|
|
102
|
-
policy:
|
|
102
|
+
key: convex_values7.VString<string, "required">;
|
|
103
|
+
value: convex_values7.VString<string, "required">;
|
|
104
|
+
}, "required", "key" | "value">, "optional">;
|
|
105
|
+
policy: convex_values7.VObject<{
|
|
103
106
|
extend?: any;
|
|
107
|
+
version: 1;
|
|
104
108
|
identity: {
|
|
105
109
|
accountLinking: {
|
|
106
|
-
saml: "verifiedEmail" | "none" | "sameConnection";
|
|
107
110
|
oidc: "verifiedEmail" | "none" | "sameConnection";
|
|
111
|
+
saml: "verifiedEmail" | "none" | "sameConnection";
|
|
108
112
|
};
|
|
109
113
|
};
|
|
110
|
-
version: 1;
|
|
111
114
|
provisioning: {
|
|
112
115
|
user: {
|
|
113
116
|
createOnSignIn: boolean;
|
|
114
117
|
updateProfileOnLogin: "never" | "missing" | "always";
|
|
115
118
|
updateProfileFromScim: "never" | "missing" | "always";
|
|
116
|
-
authority: "
|
|
119
|
+
authority: "scim" | "app" | "sso";
|
|
117
120
|
};
|
|
118
121
|
scimReuse: {
|
|
119
122
|
user: "none" | "externalId";
|
|
@@ -128,37 +131,37 @@ declare function buildAuthValidators<TExtend extends AuthExtendValidators>(exten
|
|
|
128
131
|
};
|
|
129
132
|
groups: {
|
|
130
133
|
mapping?: Record<string, string[]> | undefined;
|
|
131
|
-
mode: "ignore" | "sync";
|
|
132
134
|
source: "protocol";
|
|
135
|
+
mode: "ignore" | "sync";
|
|
133
136
|
};
|
|
134
137
|
roles: {
|
|
135
138
|
mapping?: Record<string, string[]> | undefined;
|
|
136
|
-
mode: "map" | "ignore";
|
|
137
139
|
source: "protocol";
|
|
140
|
+
mode: "map" | "ignore";
|
|
138
141
|
};
|
|
139
142
|
};
|
|
140
143
|
} | undefined, {
|
|
141
|
-
version:
|
|
142
|
-
identity:
|
|
144
|
+
version: convex_values7.VLiteral<1, "required">;
|
|
145
|
+
identity: convex_values7.VObject<{
|
|
143
146
|
accountLinking: {
|
|
144
|
-
saml: "verifiedEmail" | "none" | "sameConnection";
|
|
145
147
|
oidc: "verifiedEmail" | "none" | "sameConnection";
|
|
148
|
+
saml: "verifiedEmail" | "none" | "sameConnection";
|
|
146
149
|
};
|
|
147
150
|
}, {
|
|
148
|
-
accountLinking:
|
|
149
|
-
saml: "verifiedEmail" | "none" | "sameConnection";
|
|
151
|
+
accountLinking: convex_values7.VObject<{
|
|
150
152
|
oidc: "verifiedEmail" | "none" | "sameConnection";
|
|
153
|
+
saml: "verifiedEmail" | "none" | "sameConnection";
|
|
151
154
|
}, {
|
|
152
|
-
oidc:
|
|
153
|
-
saml:
|
|
154
|
-
}, "required", "
|
|
155
|
-
}, "required", "accountLinking" | "accountLinking.
|
|
156
|
-
provisioning:
|
|
155
|
+
oidc: convex_values7.VUnion<"verifiedEmail" | "none" | "sameConnection", [convex_values7.VLiteral<"verifiedEmail", "required">, convex_values7.VLiteral<"none", "required">, convex_values7.VLiteral<"sameConnection", "required">], "required", never>;
|
|
156
|
+
saml: convex_values7.VUnion<"verifiedEmail" | "none" | "sameConnection", [convex_values7.VLiteral<"verifiedEmail", "required">, convex_values7.VLiteral<"none", "required">, convex_values7.VLiteral<"sameConnection", "required">], "required", never>;
|
|
157
|
+
}, "required", "oidc" | "saml">;
|
|
158
|
+
}, "required", "accountLinking" | "accountLinking.oidc" | "accountLinking.saml">;
|
|
159
|
+
provisioning: convex_values7.VObject<{
|
|
157
160
|
user: {
|
|
158
161
|
createOnSignIn: boolean;
|
|
159
162
|
updateProfileOnLogin: "never" | "missing" | "always";
|
|
160
163
|
updateProfileFromScim: "never" | "missing" | "always";
|
|
161
|
-
authority: "
|
|
164
|
+
authority: "scim" | "app" | "sso";
|
|
162
165
|
};
|
|
163
166
|
scimReuse: {
|
|
164
167
|
user: "none" | "externalId";
|
|
@@ -173,103 +176,103 @@ declare function buildAuthValidators<TExtend extends AuthExtendValidators>(exten
|
|
|
173
176
|
};
|
|
174
177
|
groups: {
|
|
175
178
|
mapping?: Record<string, string[]> | undefined;
|
|
176
|
-
mode: "ignore" | "sync";
|
|
177
179
|
source: "protocol";
|
|
180
|
+
mode: "ignore" | "sync";
|
|
178
181
|
};
|
|
179
182
|
roles: {
|
|
180
183
|
mapping?: Record<string, string[]> | undefined;
|
|
181
|
-
mode: "map" | "ignore";
|
|
182
184
|
source: "protocol";
|
|
185
|
+
mode: "map" | "ignore";
|
|
183
186
|
};
|
|
184
187
|
}, {
|
|
185
|
-
user:
|
|
188
|
+
user: convex_values7.VObject<{
|
|
186
189
|
createOnSignIn: boolean;
|
|
187
190
|
updateProfileOnLogin: "never" | "missing" | "always";
|
|
188
191
|
updateProfileFromScim: "never" | "missing" | "always";
|
|
189
|
-
authority: "
|
|
192
|
+
authority: "scim" | "app" | "sso";
|
|
190
193
|
}, {
|
|
191
|
-
createOnSignIn:
|
|
192
|
-
updateProfileOnLogin:
|
|
193
|
-
updateProfileFromScim:
|
|
194
|
-
authority:
|
|
194
|
+
createOnSignIn: convex_values7.VBoolean<boolean, "required">;
|
|
195
|
+
updateProfileOnLogin: convex_values7.VUnion<"never" | "missing" | "always", [convex_values7.VLiteral<"never", "required">, convex_values7.VLiteral<"missing", "required">, convex_values7.VLiteral<"always", "required">], "required", never>;
|
|
196
|
+
updateProfileFromScim: convex_values7.VUnion<"never" | "missing" | "always", [convex_values7.VLiteral<"never", "required">, convex_values7.VLiteral<"missing", "required">, convex_values7.VLiteral<"always", "required">], "required", never>;
|
|
197
|
+
authority: convex_values7.VUnion<"scim" | "app" | "sso", [convex_values7.VLiteral<"app", "required">, convex_values7.VLiteral<"sso", "required">, convex_values7.VLiteral<"scim", "required">], "required", never>;
|
|
195
198
|
}, "required", "createOnSignIn" | "updateProfileOnLogin" | "updateProfileFromScim" | "authority">;
|
|
196
|
-
scimReuse:
|
|
199
|
+
scimReuse: convex_values7.VObject<{
|
|
197
200
|
user: "none" | "externalId";
|
|
198
201
|
}, {
|
|
199
|
-
user:
|
|
202
|
+
user: convex_values7.VUnion<"none" | "externalId", [convex_values7.VLiteral<"externalId", "required">, convex_values7.VLiteral<"none", "required">], "required", never>;
|
|
200
203
|
}, "required", "user">;
|
|
201
|
-
jit:
|
|
204
|
+
jit: convex_values7.VObject<{
|
|
202
205
|
defaultRole?: string | undefined;
|
|
203
206
|
defaultRoleIds?: string[] | undefined;
|
|
204
207
|
mode: "off" | "createUser" | "createUserAndMembership";
|
|
205
208
|
}, {
|
|
206
|
-
mode:
|
|
207
|
-
defaultRole:
|
|
208
|
-
defaultRoleIds:
|
|
209
|
+
mode: convex_values7.VUnion<"off" | "createUser" | "createUserAndMembership", [convex_values7.VLiteral<"off", "required">, convex_values7.VLiteral<"createUser", "required">, convex_values7.VLiteral<"createUserAndMembership", "required">], "required", never>;
|
|
210
|
+
defaultRole: convex_values7.VString<string | undefined, "optional">;
|
|
211
|
+
defaultRoleIds: convex_values7.VArray<string[] | undefined, convex_values7.VString<string, "required">, "optional">;
|
|
209
212
|
}, "required", "mode" | "defaultRole" | "defaultRoleIds">;
|
|
210
|
-
deprovision:
|
|
213
|
+
deprovision: convex_values7.VObject<{
|
|
211
214
|
mode: "soft" | "hard";
|
|
212
215
|
}, {
|
|
213
|
-
mode:
|
|
216
|
+
mode: convex_values7.VUnion<"soft" | "hard", [convex_values7.VLiteral<"soft", "required">, convex_values7.VLiteral<"hard", "required">], "required", never>;
|
|
214
217
|
}, "required", "mode">;
|
|
215
|
-
groups:
|
|
218
|
+
groups: convex_values7.VObject<{
|
|
216
219
|
mapping?: Record<string, string[]> | undefined;
|
|
217
|
-
mode: "ignore" | "sync";
|
|
218
220
|
source: "protocol";
|
|
221
|
+
mode: "ignore" | "sync";
|
|
219
222
|
}, {
|
|
220
|
-
mode:
|
|
221
|
-
source:
|
|
222
|
-
mapping:
|
|
223
|
-
}, "required", "
|
|
224
|
-
roles:
|
|
223
|
+
mode: convex_values7.VUnion<"ignore" | "sync", [convex_values7.VLiteral<"ignore", "required">, convex_values7.VLiteral<"sync", "required">], "required", never>;
|
|
224
|
+
source: convex_values7.VLiteral<"protocol", "required">;
|
|
225
|
+
mapping: convex_values7.VRecord<Record<string, string[]> | undefined, convex_values7.VString<string, "required">, convex_values7.VArray<string[], convex_values7.VString<string, "required">, "required">, "optional", string>;
|
|
226
|
+
}, "required", "source" | "mode" | "mapping" | `mapping.${string}`>;
|
|
227
|
+
roles: convex_values7.VObject<{
|
|
225
228
|
mapping?: Record<string, string[]> | undefined;
|
|
226
|
-
mode: "map" | "ignore";
|
|
227
229
|
source: "protocol";
|
|
230
|
+
mode: "map" | "ignore";
|
|
228
231
|
}, {
|
|
229
|
-
mode:
|
|
230
|
-
source:
|
|
231
|
-
mapping:
|
|
232
|
-
}, "required", "
|
|
233
|
-
}, "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.
|
|
234
|
-
extend:
|
|
235
|
-
}, "optional", "
|
|
236
|
-
extend:
|
|
237
|
-
_id:
|
|
238
|
-
_creationTime:
|
|
232
|
+
mode: convex_values7.VUnion<"map" | "ignore", [convex_values7.VLiteral<"ignore", "required">, convex_values7.VLiteral<"map", "required">], "required", never>;
|
|
233
|
+
source: convex_values7.VLiteral<"protocol", "required">;
|
|
234
|
+
mapping: convex_values7.VRecord<Record<string, string[]> | undefined, convex_values7.VString<string, "required">, convex_values7.VArray<string[], convex_values7.VString<string, "required">, "required">, "optional", string>;
|
|
235
|
+
}, "required", "source" | "mode" | "mapping" | `mapping.${string}`>;
|
|
236
|
+
}, "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}`>;
|
|
237
|
+
extend: convex_values7.VAny<any, "optional", string>;
|
|
238
|
+
}, "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
|
+
extend: convex_values7.VAny<any, "optional", string>;
|
|
240
|
+
_id: convex_values7.VId<convex_values7.GenericId<"Group">, "required">;
|
|
241
|
+
_creationTime: convex_values7.VFloat64<number, "required">;
|
|
239
242
|
}, "extend"> & {
|
|
240
|
-
extend:
|
|
241
|
-
})[Property_2]>, undefined> | undefined } & { [Property_1_1 in Exclude<"_creationTime", "type" | "slug" | "parentGroupId" | "rootGroupId" | "isRoot" | "tags" | "policy" | (
|
|
242
|
-
name:
|
|
243
|
-
slug:
|
|
244
|
-
type:
|
|
245
|
-
parentGroupId:
|
|
246
|
-
rootGroupId:
|
|
247
|
-
isRoot:
|
|
248
|
-
tags:
|
|
249
|
-
value: string;
|
|
243
|
+
extend: convex_values7.VOptional<ExtendFor<TExtend, "Group">>;
|
|
244
|
+
})[Property_2]>, undefined> | undefined } & { [Property_1_1 in Exclude<"_creationTime", "type" | "slug" | "parentGroupId" | "rootGroupId" | "isRoot" | "tags" | "policy" | (convex_values7.VOptional<ExtendFor<TExtend, "Group">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"name", "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<{
|
|
245
|
+
name: convex_values7.VString<string, "required">;
|
|
246
|
+
slug: convex_values7.VString<string | undefined, "optional">;
|
|
247
|
+
type: convex_values7.VString<string | undefined, "optional">;
|
|
248
|
+
parentGroupId: convex_values7.VId<convex_values7.GenericId<"Group"> | undefined, "optional">;
|
|
249
|
+
rootGroupId: convex_values7.VId<convex_values7.GenericId<"Group"> | undefined, "optional">;
|
|
250
|
+
isRoot: convex_values7.VBoolean<boolean | undefined, "optional">;
|
|
251
|
+
tags: convex_values7.VArray<{
|
|
250
252
|
key: string;
|
|
251
|
-
}[] | undefined, convex_values54.VObject<{
|
|
252
253
|
value: string;
|
|
254
|
+
}[] | undefined, convex_values7.VObject<{
|
|
253
255
|
key: string;
|
|
256
|
+
value: string;
|
|
254
257
|
}, {
|
|
255
|
-
key:
|
|
256
|
-
value:
|
|
257
|
-
}, "required", "
|
|
258
|
-
policy:
|
|
258
|
+
key: convex_values7.VString<string, "required">;
|
|
259
|
+
value: convex_values7.VString<string, "required">;
|
|
260
|
+
}, "required", "key" | "value">, "optional">;
|
|
261
|
+
policy: convex_values7.VObject<{
|
|
259
262
|
extend?: any;
|
|
263
|
+
version: 1;
|
|
260
264
|
identity: {
|
|
261
265
|
accountLinking: {
|
|
262
|
-
saml: "verifiedEmail" | "none" | "sameConnection";
|
|
263
266
|
oidc: "verifiedEmail" | "none" | "sameConnection";
|
|
267
|
+
saml: "verifiedEmail" | "none" | "sameConnection";
|
|
264
268
|
};
|
|
265
269
|
};
|
|
266
|
-
version: 1;
|
|
267
270
|
provisioning: {
|
|
268
271
|
user: {
|
|
269
272
|
createOnSignIn: boolean;
|
|
270
273
|
updateProfileOnLogin: "never" | "missing" | "always";
|
|
271
274
|
updateProfileFromScim: "never" | "missing" | "always";
|
|
272
|
-
authority: "
|
|
275
|
+
authority: "scim" | "app" | "sso";
|
|
273
276
|
};
|
|
274
277
|
scimReuse: {
|
|
275
278
|
user: "none" | "externalId";
|
|
@@ -284,37 +287,37 @@ declare function buildAuthValidators<TExtend extends AuthExtendValidators>(exten
|
|
|
284
287
|
};
|
|
285
288
|
groups: {
|
|
286
289
|
mapping?: Record<string, string[]> | undefined;
|
|
287
|
-
mode: "ignore" | "sync";
|
|
288
290
|
source: "protocol";
|
|
291
|
+
mode: "ignore" | "sync";
|
|
289
292
|
};
|
|
290
293
|
roles: {
|
|
291
294
|
mapping?: Record<string, string[]> | undefined;
|
|
292
|
-
mode: "map" | "ignore";
|
|
293
295
|
source: "protocol";
|
|
296
|
+
mode: "map" | "ignore";
|
|
294
297
|
};
|
|
295
298
|
};
|
|
296
299
|
} | undefined, {
|
|
297
|
-
version:
|
|
298
|
-
identity:
|
|
300
|
+
version: convex_values7.VLiteral<1, "required">;
|
|
301
|
+
identity: convex_values7.VObject<{
|
|
299
302
|
accountLinking: {
|
|
300
|
-
saml: "verifiedEmail" | "none" | "sameConnection";
|
|
301
303
|
oidc: "verifiedEmail" | "none" | "sameConnection";
|
|
304
|
+
saml: "verifiedEmail" | "none" | "sameConnection";
|
|
302
305
|
};
|
|
303
306
|
}, {
|
|
304
|
-
accountLinking:
|
|
305
|
-
saml: "verifiedEmail" | "none" | "sameConnection";
|
|
307
|
+
accountLinking: convex_values7.VObject<{
|
|
306
308
|
oidc: "verifiedEmail" | "none" | "sameConnection";
|
|
309
|
+
saml: "verifiedEmail" | "none" | "sameConnection";
|
|
307
310
|
}, {
|
|
308
|
-
oidc:
|
|
309
|
-
saml:
|
|
310
|
-
}, "required", "
|
|
311
|
-
}, "required", "accountLinking" | "accountLinking.
|
|
312
|
-
provisioning:
|
|
311
|
+
oidc: convex_values7.VUnion<"verifiedEmail" | "none" | "sameConnection", [convex_values7.VLiteral<"verifiedEmail", "required">, convex_values7.VLiteral<"none", "required">, convex_values7.VLiteral<"sameConnection", "required">], "required", never>;
|
|
312
|
+
saml: convex_values7.VUnion<"verifiedEmail" | "none" | "sameConnection", [convex_values7.VLiteral<"verifiedEmail", "required">, convex_values7.VLiteral<"none", "required">, convex_values7.VLiteral<"sameConnection", "required">], "required", never>;
|
|
313
|
+
}, "required", "oidc" | "saml">;
|
|
314
|
+
}, "required", "accountLinking" | "accountLinking.oidc" | "accountLinking.saml">;
|
|
315
|
+
provisioning: convex_values7.VObject<{
|
|
313
316
|
user: {
|
|
314
317
|
createOnSignIn: boolean;
|
|
315
318
|
updateProfileOnLogin: "never" | "missing" | "always";
|
|
316
319
|
updateProfileFromScim: "never" | "missing" | "always";
|
|
317
|
-
authority: "
|
|
320
|
+
authority: "scim" | "app" | "sso";
|
|
318
321
|
};
|
|
319
322
|
scimReuse: {
|
|
320
323
|
user: "none" | "externalId";
|
|
@@ -329,103 +332,103 @@ declare function buildAuthValidators<TExtend extends AuthExtendValidators>(exten
|
|
|
329
332
|
};
|
|
330
333
|
groups: {
|
|
331
334
|
mapping?: Record<string, string[]> | undefined;
|
|
332
|
-
mode: "ignore" | "sync";
|
|
333
335
|
source: "protocol";
|
|
336
|
+
mode: "ignore" | "sync";
|
|
334
337
|
};
|
|
335
338
|
roles: {
|
|
336
339
|
mapping?: Record<string, string[]> | undefined;
|
|
337
|
-
mode: "map" | "ignore";
|
|
338
340
|
source: "protocol";
|
|
341
|
+
mode: "map" | "ignore";
|
|
339
342
|
};
|
|
340
343
|
}, {
|
|
341
|
-
user:
|
|
344
|
+
user: convex_values7.VObject<{
|
|
342
345
|
createOnSignIn: boolean;
|
|
343
346
|
updateProfileOnLogin: "never" | "missing" | "always";
|
|
344
347
|
updateProfileFromScim: "never" | "missing" | "always";
|
|
345
|
-
authority: "
|
|
348
|
+
authority: "scim" | "app" | "sso";
|
|
346
349
|
}, {
|
|
347
|
-
createOnSignIn:
|
|
348
|
-
updateProfileOnLogin:
|
|
349
|
-
updateProfileFromScim:
|
|
350
|
-
authority:
|
|
350
|
+
createOnSignIn: convex_values7.VBoolean<boolean, "required">;
|
|
351
|
+
updateProfileOnLogin: convex_values7.VUnion<"never" | "missing" | "always", [convex_values7.VLiteral<"never", "required">, convex_values7.VLiteral<"missing", "required">, convex_values7.VLiteral<"always", "required">], "required", never>;
|
|
352
|
+
updateProfileFromScim: convex_values7.VUnion<"never" | "missing" | "always", [convex_values7.VLiteral<"never", "required">, convex_values7.VLiteral<"missing", "required">, convex_values7.VLiteral<"always", "required">], "required", never>;
|
|
353
|
+
authority: convex_values7.VUnion<"scim" | "app" | "sso", [convex_values7.VLiteral<"app", "required">, convex_values7.VLiteral<"sso", "required">, convex_values7.VLiteral<"scim", "required">], "required", never>;
|
|
351
354
|
}, "required", "createOnSignIn" | "updateProfileOnLogin" | "updateProfileFromScim" | "authority">;
|
|
352
|
-
scimReuse:
|
|
355
|
+
scimReuse: convex_values7.VObject<{
|
|
353
356
|
user: "none" | "externalId";
|
|
354
357
|
}, {
|
|
355
|
-
user:
|
|
358
|
+
user: convex_values7.VUnion<"none" | "externalId", [convex_values7.VLiteral<"externalId", "required">, convex_values7.VLiteral<"none", "required">], "required", never>;
|
|
356
359
|
}, "required", "user">;
|
|
357
|
-
jit:
|
|
360
|
+
jit: convex_values7.VObject<{
|
|
358
361
|
defaultRole?: string | undefined;
|
|
359
362
|
defaultRoleIds?: string[] | undefined;
|
|
360
363
|
mode: "off" | "createUser" | "createUserAndMembership";
|
|
361
364
|
}, {
|
|
362
|
-
mode:
|
|
363
|
-
defaultRole:
|
|
364
|
-
defaultRoleIds:
|
|
365
|
+
mode: convex_values7.VUnion<"off" | "createUser" | "createUserAndMembership", [convex_values7.VLiteral<"off", "required">, convex_values7.VLiteral<"createUser", "required">, convex_values7.VLiteral<"createUserAndMembership", "required">], "required", never>;
|
|
366
|
+
defaultRole: convex_values7.VString<string | undefined, "optional">;
|
|
367
|
+
defaultRoleIds: convex_values7.VArray<string[] | undefined, convex_values7.VString<string, "required">, "optional">;
|
|
365
368
|
}, "required", "mode" | "defaultRole" | "defaultRoleIds">;
|
|
366
|
-
deprovision:
|
|
369
|
+
deprovision: convex_values7.VObject<{
|
|
367
370
|
mode: "soft" | "hard";
|
|
368
371
|
}, {
|
|
369
|
-
mode:
|
|
372
|
+
mode: convex_values7.VUnion<"soft" | "hard", [convex_values7.VLiteral<"soft", "required">, convex_values7.VLiteral<"hard", "required">], "required", never>;
|
|
370
373
|
}, "required", "mode">;
|
|
371
|
-
groups:
|
|
374
|
+
groups: convex_values7.VObject<{
|
|
372
375
|
mapping?: Record<string, string[]> | undefined;
|
|
373
|
-
mode: "ignore" | "sync";
|
|
374
376
|
source: "protocol";
|
|
377
|
+
mode: "ignore" | "sync";
|
|
375
378
|
}, {
|
|
376
|
-
mode:
|
|
377
|
-
source:
|
|
378
|
-
mapping:
|
|
379
|
-
}, "required", "
|
|
380
|
-
roles:
|
|
379
|
+
mode: convex_values7.VUnion<"ignore" | "sync", [convex_values7.VLiteral<"ignore", "required">, convex_values7.VLiteral<"sync", "required">], "required", never>;
|
|
380
|
+
source: convex_values7.VLiteral<"protocol", "required">;
|
|
381
|
+
mapping: convex_values7.VRecord<Record<string, string[]> | undefined, convex_values7.VString<string, "required">, convex_values7.VArray<string[], convex_values7.VString<string, "required">, "required">, "optional", string>;
|
|
382
|
+
}, "required", "source" | "mode" | "mapping" | `mapping.${string}`>;
|
|
383
|
+
roles: convex_values7.VObject<{
|
|
381
384
|
mapping?: Record<string, string[]> | undefined;
|
|
382
|
-
mode: "map" | "ignore";
|
|
383
385
|
source: "protocol";
|
|
386
|
+
mode: "map" | "ignore";
|
|
384
387
|
}, {
|
|
385
|
-
mode:
|
|
386
|
-
source:
|
|
387
|
-
mapping:
|
|
388
|
-
}, "required", "
|
|
389
|
-
}, "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.
|
|
390
|
-
extend:
|
|
391
|
-
}, "optional", "
|
|
392
|
-
extend:
|
|
393
|
-
_id:
|
|
394
|
-
_creationTime:
|
|
388
|
+
mode: convex_values7.VUnion<"map" | "ignore", [convex_values7.VLiteral<"ignore", "required">, convex_values7.VLiteral<"map", "required">], "required", never>;
|
|
389
|
+
source: convex_values7.VLiteral<"protocol", "required">;
|
|
390
|
+
mapping: convex_values7.VRecord<Record<string, string[]> | undefined, convex_values7.VString<string, "required">, convex_values7.VArray<string[], convex_values7.VString<string, "required">, "required">, "optional", string>;
|
|
391
|
+
}, "required", "source" | "mode" | "mapping" | `mapping.${string}`>;
|
|
392
|
+
}, "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}`>;
|
|
393
|
+
extend: convex_values7.VAny<any, "optional", string>;
|
|
394
|
+
}, "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
|
+
extend: convex_values7.VAny<any, "optional", string>;
|
|
396
|
+
_id: convex_values7.VId<convex_values7.GenericId<"Group">, "required">;
|
|
397
|
+
_creationTime: convex_values7.VFloat64<number, "required">;
|
|
395
398
|
}, "extend"> & {
|
|
396
|
-
extend:
|
|
399
|
+
extend: convex_values7.VOptional<ExtendFor<TExtend, "Group">>;
|
|
397
400
|
})[Property_1_1]> }>, Omit<{
|
|
398
|
-
name:
|
|
399
|
-
slug:
|
|
400
|
-
type:
|
|
401
|
-
parentGroupId:
|
|
402
|
-
rootGroupId:
|
|
403
|
-
isRoot:
|
|
404
|
-
tags:
|
|
405
|
-
value: string;
|
|
401
|
+
name: convex_values7.VString<string, "required">;
|
|
402
|
+
slug: convex_values7.VString<string | undefined, "optional">;
|
|
403
|
+
type: convex_values7.VString<string | undefined, "optional">;
|
|
404
|
+
parentGroupId: convex_values7.VId<convex_values7.GenericId<"Group"> | undefined, "optional">;
|
|
405
|
+
rootGroupId: convex_values7.VId<convex_values7.GenericId<"Group"> | undefined, "optional">;
|
|
406
|
+
isRoot: convex_values7.VBoolean<boolean | undefined, "optional">;
|
|
407
|
+
tags: convex_values7.VArray<{
|
|
406
408
|
key: string;
|
|
407
|
-
}[] | undefined, convex_values54.VObject<{
|
|
408
409
|
value: string;
|
|
410
|
+
}[] | undefined, convex_values7.VObject<{
|
|
409
411
|
key: string;
|
|
412
|
+
value: string;
|
|
410
413
|
}, {
|
|
411
|
-
key:
|
|
412
|
-
value:
|
|
413
|
-
}, "required", "
|
|
414
|
-
policy:
|
|
414
|
+
key: convex_values7.VString<string, "required">;
|
|
415
|
+
value: convex_values7.VString<string, "required">;
|
|
416
|
+
}, "required", "key" | "value">, "optional">;
|
|
417
|
+
policy: convex_values7.VObject<{
|
|
415
418
|
extend?: any;
|
|
419
|
+
version: 1;
|
|
416
420
|
identity: {
|
|
417
421
|
accountLinking: {
|
|
418
|
-
saml: "verifiedEmail" | "none" | "sameConnection";
|
|
419
422
|
oidc: "verifiedEmail" | "none" | "sameConnection";
|
|
423
|
+
saml: "verifiedEmail" | "none" | "sameConnection";
|
|
420
424
|
};
|
|
421
425
|
};
|
|
422
|
-
version: 1;
|
|
423
426
|
provisioning: {
|
|
424
427
|
user: {
|
|
425
428
|
createOnSignIn: boolean;
|
|
426
429
|
updateProfileOnLogin: "never" | "missing" | "always";
|
|
427
430
|
updateProfileFromScim: "never" | "missing" | "always";
|
|
428
|
-
authority: "
|
|
431
|
+
authority: "scim" | "app" | "sso";
|
|
429
432
|
};
|
|
430
433
|
scimReuse: {
|
|
431
434
|
user: "none" | "externalId";
|
|
@@ -440,37 +443,37 @@ declare function buildAuthValidators<TExtend extends AuthExtendValidators>(exten
|
|
|
440
443
|
};
|
|
441
444
|
groups: {
|
|
442
445
|
mapping?: Record<string, string[]> | undefined;
|
|
443
|
-
mode: "ignore" | "sync";
|
|
444
446
|
source: "protocol";
|
|
447
|
+
mode: "ignore" | "sync";
|
|
445
448
|
};
|
|
446
449
|
roles: {
|
|
447
450
|
mapping?: Record<string, string[]> | undefined;
|
|
448
|
-
mode: "map" | "ignore";
|
|
449
451
|
source: "protocol";
|
|
452
|
+
mode: "map" | "ignore";
|
|
450
453
|
};
|
|
451
454
|
};
|
|
452
455
|
} | undefined, {
|
|
453
|
-
version:
|
|
454
|
-
identity:
|
|
456
|
+
version: convex_values7.VLiteral<1, "required">;
|
|
457
|
+
identity: convex_values7.VObject<{
|
|
455
458
|
accountLinking: {
|
|
456
|
-
saml: "verifiedEmail" | "none" | "sameConnection";
|
|
457
459
|
oidc: "verifiedEmail" | "none" | "sameConnection";
|
|
460
|
+
saml: "verifiedEmail" | "none" | "sameConnection";
|
|
458
461
|
};
|
|
459
462
|
}, {
|
|
460
|
-
accountLinking:
|
|
461
|
-
saml: "verifiedEmail" | "none" | "sameConnection";
|
|
463
|
+
accountLinking: convex_values7.VObject<{
|
|
462
464
|
oidc: "verifiedEmail" | "none" | "sameConnection";
|
|
465
|
+
saml: "verifiedEmail" | "none" | "sameConnection";
|
|
463
466
|
}, {
|
|
464
|
-
oidc:
|
|
465
|
-
saml:
|
|
466
|
-
}, "required", "
|
|
467
|
-
}, "required", "accountLinking" | "accountLinking.
|
|
468
|
-
provisioning:
|
|
467
|
+
oidc: convex_values7.VUnion<"verifiedEmail" | "none" | "sameConnection", [convex_values7.VLiteral<"verifiedEmail", "required">, convex_values7.VLiteral<"none", "required">, convex_values7.VLiteral<"sameConnection", "required">], "required", never>;
|
|
468
|
+
saml: convex_values7.VUnion<"verifiedEmail" | "none" | "sameConnection", [convex_values7.VLiteral<"verifiedEmail", "required">, convex_values7.VLiteral<"none", "required">, convex_values7.VLiteral<"sameConnection", "required">], "required", never>;
|
|
469
|
+
}, "required", "oidc" | "saml">;
|
|
470
|
+
}, "required", "accountLinking" | "accountLinking.oidc" | "accountLinking.saml">;
|
|
471
|
+
provisioning: convex_values7.VObject<{
|
|
469
472
|
user: {
|
|
470
473
|
createOnSignIn: boolean;
|
|
471
474
|
updateProfileOnLogin: "never" | "missing" | "always";
|
|
472
475
|
updateProfileFromScim: "never" | "missing" | "always";
|
|
473
|
-
authority: "
|
|
476
|
+
authority: "scim" | "app" | "sso";
|
|
474
477
|
};
|
|
475
478
|
scimReuse: {
|
|
476
479
|
user: "none" | "externalId";
|
|
@@ -485,235 +488,240 @@ declare function buildAuthValidators<TExtend extends AuthExtendValidators>(exten
|
|
|
485
488
|
};
|
|
486
489
|
groups: {
|
|
487
490
|
mapping?: Record<string, string[]> | undefined;
|
|
488
|
-
mode: "ignore" | "sync";
|
|
489
491
|
source: "protocol";
|
|
492
|
+
mode: "ignore" | "sync";
|
|
490
493
|
};
|
|
491
494
|
roles: {
|
|
492
495
|
mapping?: Record<string, string[]> | undefined;
|
|
493
|
-
mode: "map" | "ignore";
|
|
494
496
|
source: "protocol";
|
|
497
|
+
mode: "map" | "ignore";
|
|
495
498
|
};
|
|
496
499
|
}, {
|
|
497
|
-
user:
|
|
500
|
+
user: convex_values7.VObject<{
|
|
498
501
|
createOnSignIn: boolean;
|
|
499
502
|
updateProfileOnLogin: "never" | "missing" | "always";
|
|
500
503
|
updateProfileFromScim: "never" | "missing" | "always";
|
|
501
|
-
authority: "
|
|
504
|
+
authority: "scim" | "app" | "sso";
|
|
502
505
|
}, {
|
|
503
|
-
createOnSignIn:
|
|
504
|
-
updateProfileOnLogin:
|
|
505
|
-
updateProfileFromScim:
|
|
506
|
-
authority:
|
|
506
|
+
createOnSignIn: convex_values7.VBoolean<boolean, "required">;
|
|
507
|
+
updateProfileOnLogin: convex_values7.VUnion<"never" | "missing" | "always", [convex_values7.VLiteral<"never", "required">, convex_values7.VLiteral<"missing", "required">, convex_values7.VLiteral<"always", "required">], "required", never>;
|
|
508
|
+
updateProfileFromScim: convex_values7.VUnion<"never" | "missing" | "always", [convex_values7.VLiteral<"never", "required">, convex_values7.VLiteral<"missing", "required">, convex_values7.VLiteral<"always", "required">], "required", never>;
|
|
509
|
+
authority: convex_values7.VUnion<"scim" | "app" | "sso", [convex_values7.VLiteral<"app", "required">, convex_values7.VLiteral<"sso", "required">, convex_values7.VLiteral<"scim", "required">], "required", never>;
|
|
507
510
|
}, "required", "createOnSignIn" | "updateProfileOnLogin" | "updateProfileFromScim" | "authority">;
|
|
508
|
-
scimReuse:
|
|
511
|
+
scimReuse: convex_values7.VObject<{
|
|
509
512
|
user: "none" | "externalId";
|
|
510
513
|
}, {
|
|
511
|
-
user:
|
|
514
|
+
user: convex_values7.VUnion<"none" | "externalId", [convex_values7.VLiteral<"externalId", "required">, convex_values7.VLiteral<"none", "required">], "required", never>;
|
|
512
515
|
}, "required", "user">;
|
|
513
|
-
jit:
|
|
516
|
+
jit: convex_values7.VObject<{
|
|
514
517
|
defaultRole?: string | undefined;
|
|
515
518
|
defaultRoleIds?: string[] | undefined;
|
|
516
519
|
mode: "off" | "createUser" | "createUserAndMembership";
|
|
517
520
|
}, {
|
|
518
|
-
mode:
|
|
519
|
-
defaultRole:
|
|
520
|
-
defaultRoleIds:
|
|
521
|
+
mode: convex_values7.VUnion<"off" | "createUser" | "createUserAndMembership", [convex_values7.VLiteral<"off", "required">, convex_values7.VLiteral<"createUser", "required">, convex_values7.VLiteral<"createUserAndMembership", "required">], "required", never>;
|
|
522
|
+
defaultRole: convex_values7.VString<string | undefined, "optional">;
|
|
523
|
+
defaultRoleIds: convex_values7.VArray<string[] | undefined, convex_values7.VString<string, "required">, "optional">;
|
|
521
524
|
}, "required", "mode" | "defaultRole" | "defaultRoleIds">;
|
|
522
|
-
deprovision:
|
|
525
|
+
deprovision: convex_values7.VObject<{
|
|
523
526
|
mode: "soft" | "hard";
|
|
524
527
|
}, {
|
|
525
|
-
mode:
|
|
528
|
+
mode: convex_values7.VUnion<"soft" | "hard", [convex_values7.VLiteral<"soft", "required">, convex_values7.VLiteral<"hard", "required">], "required", never>;
|
|
526
529
|
}, "required", "mode">;
|
|
527
|
-
groups:
|
|
530
|
+
groups: convex_values7.VObject<{
|
|
528
531
|
mapping?: Record<string, string[]> | undefined;
|
|
529
|
-
mode: "ignore" | "sync";
|
|
530
532
|
source: "protocol";
|
|
533
|
+
mode: "ignore" | "sync";
|
|
531
534
|
}, {
|
|
532
|
-
mode:
|
|
533
|
-
source:
|
|
534
|
-
mapping:
|
|
535
|
-
}, "required", "
|
|
536
|
-
roles:
|
|
535
|
+
mode: convex_values7.VUnion<"ignore" | "sync", [convex_values7.VLiteral<"ignore", "required">, convex_values7.VLiteral<"sync", "required">], "required", never>;
|
|
536
|
+
source: convex_values7.VLiteral<"protocol", "required">;
|
|
537
|
+
mapping: convex_values7.VRecord<Record<string, string[]> | undefined, convex_values7.VString<string, "required">, convex_values7.VArray<string[], convex_values7.VString<string, "required">, "required">, "optional", string>;
|
|
538
|
+
}, "required", "source" | "mode" | "mapping" | `mapping.${string}`>;
|
|
539
|
+
roles: convex_values7.VObject<{
|
|
537
540
|
mapping?: Record<string, string[]> | undefined;
|
|
538
|
-
mode: "map" | "ignore";
|
|
539
541
|
source: "protocol";
|
|
542
|
+
mode: "map" | "ignore";
|
|
540
543
|
}, {
|
|
541
|
-
mode:
|
|
542
|
-
source:
|
|
543
|
-
mapping:
|
|
544
|
-
}, "required", "
|
|
545
|
-
}, "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.
|
|
546
|
-
extend:
|
|
547
|
-
}, "optional", "
|
|
548
|
-
extend:
|
|
549
|
-
_id:
|
|
550
|
-
_creationTime:
|
|
544
|
+
mode: convex_values7.VUnion<"map" | "ignore", [convex_values7.VLiteral<"ignore", "required">, convex_values7.VLiteral<"map", "required">], "required", never>;
|
|
545
|
+
source: convex_values7.VLiteral<"protocol", "required">;
|
|
546
|
+
mapping: convex_values7.VRecord<Record<string, string[]> | undefined, convex_values7.VString<string, "required">, convex_values7.VArray<string[], convex_values7.VString<string, "required">, "required">, "optional", string>;
|
|
547
|
+
}, "required", "source" | "mode" | "mapping" | `mapping.${string}`>;
|
|
548
|
+
}, "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}`>;
|
|
549
|
+
extend: convex_values7.VAny<any, "optional", string>;
|
|
550
|
+
}, "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
|
+
extend: convex_values7.VAny<any, "optional", string>;
|
|
552
|
+
_id: convex_values7.VId<convex_values7.GenericId<"Group">, "required">;
|
|
553
|
+
_creationTime: convex_values7.VFloat64<number, "required">;
|
|
551
554
|
}, "extend"> & {
|
|
552
|
-
extend:
|
|
553
|
-
}, "required", "_creationTime" | "name" | "
|
|
554
|
-
member:
|
|
555
|
-
groupId:
|
|
556
|
-
userId:
|
|
557
|
-
role:
|
|
558
|
-
roleIds:
|
|
559
|
-
status:
|
|
560
|
-
extend:
|
|
561
|
-
_id:
|
|
562
|
-
_creationTime:
|
|
555
|
+
extend: convex_values7.VOptional<ExtendFor<TExtend, "Group">>;
|
|
556
|
+
}, "required", "_creationTime" | "name" | "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
|
+
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
|
+
groupId: convex_values7.VId<convex_values7.GenericId<"Group">, "required">;
|
|
559
|
+
userId: convex_values7.VId<convex_values7.GenericId<"User">, "required">;
|
|
560
|
+
role: convex_values7.VString<string | undefined, "optional">;
|
|
561
|
+
roleIds: convex_values7.VArray<string[] | undefined, convex_values7.VString<string, "required">, "optional">;
|
|
562
|
+
status: convex_values7.VString<string | undefined, "optional">;
|
|
563
|
+
extend: convex_values7.VAny<any, "optional", string>;
|
|
564
|
+
_id: convex_values7.VId<convex_values7.GenericId<"GroupMember">, "required">;
|
|
565
|
+
_creationTime: convex_values7.VFloat64<number, "required">;
|
|
563
566
|
}, "extend"> & {
|
|
564
|
-
extend:
|
|
565
|
-
})[Property_3]>, undefined> | undefined } & { [Property_1_2 in Exclude<"_creationTime", "
|
|
566
|
-
groupId:
|
|
567
|
-
userId:
|
|
568
|
-
role:
|
|
569
|
-
roleIds:
|
|
570
|
-
status:
|
|
571
|
-
extend:
|
|
572
|
-
_id:
|
|
573
|
-
_creationTime:
|
|
567
|
+
extend: convex_values7.VOptional<ExtendFor<TExtend, "GroupMember">>;
|
|
568
|
+
})[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
|
+
groupId: convex_values7.VId<convex_values7.GenericId<"Group">, "required">;
|
|
570
|
+
userId: convex_values7.VId<convex_values7.GenericId<"User">, "required">;
|
|
571
|
+
role: convex_values7.VString<string | undefined, "optional">;
|
|
572
|
+
roleIds: convex_values7.VArray<string[] | undefined, convex_values7.VString<string, "required">, "optional">;
|
|
573
|
+
status: convex_values7.VString<string | undefined, "optional">;
|
|
574
|
+
extend: convex_values7.VAny<any, "optional", string>;
|
|
575
|
+
_id: convex_values7.VId<convex_values7.GenericId<"GroupMember">, "required">;
|
|
576
|
+
_creationTime: convex_values7.VFloat64<number, "required">;
|
|
574
577
|
}, "extend"> & {
|
|
575
|
-
extend:
|
|
578
|
+
extend: convex_values7.VOptional<ExtendFor<TExtend, "GroupMember">>;
|
|
576
579
|
})[Property_1_2]> }>, Omit<{
|
|
577
|
-
groupId:
|
|
578
|
-
userId:
|
|
579
|
-
role:
|
|
580
|
-
roleIds:
|
|
581
|
-
status:
|
|
582
|
-
extend:
|
|
583
|
-
_id:
|
|
584
|
-
_creationTime:
|
|
580
|
+
groupId: convex_values7.VId<convex_values7.GenericId<"Group">, "required">;
|
|
581
|
+
userId: convex_values7.VId<convex_values7.GenericId<"User">, "required">;
|
|
582
|
+
role: convex_values7.VString<string | undefined, "optional">;
|
|
583
|
+
roleIds: convex_values7.VArray<string[] | undefined, convex_values7.VString<string, "required">, "optional">;
|
|
584
|
+
status: convex_values7.VString<string | undefined, "optional">;
|
|
585
|
+
extend: convex_values7.VAny<any, "optional", string>;
|
|
586
|
+
_id: convex_values7.VId<convex_values7.GenericId<"GroupMember">, "required">;
|
|
587
|
+
_creationTime: convex_values7.VFloat64<number, "required">;
|
|
585
588
|
}, "extend"> & {
|
|
586
|
-
extend:
|
|
587
|
-
}, "required", "_creationTime" | "extend" | "
|
|
588
|
-
invite:
|
|
589
|
+
extend: convex_values7.VOptional<ExtendFor<TExtend, "GroupMember">>;
|
|
590
|
+
}, "required", "_creationTime" | "extend" | "userId" | "status" | "groupId" | "role" | "roleIds" | "_id" | `extend.${convex_values7.VOptional<ExtendFor<TExtend, "GroupMember">>["fieldPaths"]}`>; /** Single GroupInvite document validator. */
|
|
591
|
+
invite: convex_values7.VObject<{
|
|
589
592
|
email?: string | undefined;
|
|
590
593
|
extend?: any;
|
|
591
|
-
groupId?:
|
|
594
|
+
groupId?: convex_values7.GenericId<"Group"> | undefined;
|
|
592
595
|
role?: string | undefined;
|
|
593
596
|
roleIds?: string[] | undefined;
|
|
594
|
-
invitedByUserId?:
|
|
597
|
+
invitedByUserId?: convex_values7.GenericId<"User"> | undefined;
|
|
595
598
|
expiresTime?: number | undefined;
|
|
596
|
-
acceptedByUserId?:
|
|
599
|
+
acceptedByUserId?: convex_values7.GenericId<"User"> | undefined;
|
|
597
600
|
acceptedTime?: number | undefined;
|
|
598
601
|
_creationTime: number;
|
|
599
|
-
_id: convex_values54.GenericId<"GroupInvite">;
|
|
600
602
|
status: "pending" | "accepted" | "revoked" | "expired";
|
|
601
603
|
tokenHash: string;
|
|
604
|
+
_id: convex_values7.GenericId<"GroupInvite">;
|
|
602
605
|
}, {
|
|
603
|
-
groupId:
|
|
604
|
-
invitedByUserId:
|
|
605
|
-
email:
|
|
606
|
-
tokenHash:
|
|
607
|
-
role:
|
|
608
|
-
roleIds:
|
|
609
|
-
status:
|
|
610
|
-
expiresTime:
|
|
611
|
-
acceptedByUserId:
|
|
612
|
-
acceptedTime:
|
|
613
|
-
extend:
|
|
614
|
-
_id:
|
|
615
|
-
_creationTime:
|
|
616
|
-
}, "required", "
|
|
617
|
-
email:
|
|
618
|
-
provider?: string | undefined;
|
|
619
|
-
connectionId?: convex_values54.GenericId<"GroupConnection"> | undefined;
|
|
606
|
+
groupId: convex_values7.VId<convex_values7.GenericId<"Group"> | undefined, "optional">;
|
|
607
|
+
invitedByUserId: convex_values7.VId<convex_values7.GenericId<"User"> | undefined, "optional">;
|
|
608
|
+
email: convex_values7.VString<string | undefined, "optional">;
|
|
609
|
+
tokenHash: convex_values7.VString<string, "required">;
|
|
610
|
+
role: convex_values7.VString<string | undefined, "optional">;
|
|
611
|
+
roleIds: convex_values7.VArray<string[] | undefined, convex_values7.VString<string, "required">, "optional">;
|
|
612
|
+
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
|
+
expiresTime: convex_values7.VFloat64<number | undefined, "optional">;
|
|
614
|
+
acceptedByUserId: convex_values7.VId<convex_values7.GenericId<"User"> | undefined, "optional">;
|
|
615
|
+
acceptedTime: convex_values7.VFloat64<number | undefined, "optional">;
|
|
616
|
+
extend: convex_values7.VAny<any, "optional", string>;
|
|
617
|
+
_id: convex_values7.VId<convex_values7.GenericId<"GroupInvite">, "required">;
|
|
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. */
|
|
620
|
+
email: convex_values7.VObject<{
|
|
620
621
|
verificationTime?: number | undefined;
|
|
621
|
-
accountId?:
|
|
622
|
-
|
|
622
|
+
accountId?: convex_values7.GenericId<"Account"> | undefined;
|
|
623
|
+
provider?: string | undefined;
|
|
624
|
+
connectionId?: convex_values7.GenericId<"GroupConnection"> | undefined;
|
|
623
625
|
_creationTime: number;
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
userId: convex_values54.GenericId<"User">;
|
|
626
|
+
email: string;
|
|
627
|
+
userId: convex_values7.GenericId<"User">;
|
|
627
628
|
isPrimary: boolean;
|
|
629
|
+
source: "password" | "oauth" | "oidc" | "saml" | "scim";
|
|
630
|
+
_id: convex_values7.GenericId<"UserEmail">;
|
|
628
631
|
}, {
|
|
629
|
-
userId:
|
|
630
|
-
email:
|
|
631
|
-
verificationTime:
|
|
632
|
-
isPrimary:
|
|
633
|
-
source:
|
|
634
|
-
accountId:
|
|
635
|
-
provider:
|
|
636
|
-
connectionId:
|
|
637
|
-
_id:
|
|
638
|
-
_creationTime:
|
|
639
|
-
}, "required", "
|
|
640
|
-
viewer:
|
|
641
|
-
name:
|
|
642
|
-
image:
|
|
643
|
-
email:
|
|
644
|
-
emailVerificationTime:
|
|
645
|
-
phone:
|
|
646
|
-
phoneVerificationTime:
|
|
647
|
-
isAnonymous:
|
|
648
|
-
lastActiveGroup:
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
632
|
+
userId: convex_values7.VId<convex_values7.GenericId<"User">, "required">;
|
|
633
|
+
email: convex_values7.VString<string, "required">;
|
|
634
|
+
verificationTime: convex_values7.VFloat64<number | undefined, "optional">;
|
|
635
|
+
isPrimary: convex_values7.VBoolean<boolean, "required">;
|
|
636
|
+
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: convex_values7.VId<convex_values7.GenericId<"Account"> | undefined, "optional">;
|
|
638
|
+
provider: convex_values7.VString<string | undefined, "optional">;
|
|
639
|
+
connectionId: convex_values7.VId<convex_values7.GenericId<"GroupConnection"> | undefined, "optional">;
|
|
640
|
+
_id: convex_values7.VId<convex_values7.GenericId<"UserEmail">, "required">;
|
|
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
|
+
name: convex_values7.VString<string | undefined, "optional">;
|
|
645
|
+
image: convex_values7.VString<string | undefined, "optional">;
|
|
646
|
+
email: convex_values7.VString<string | undefined, "optional">;
|
|
647
|
+
emailVerificationTime: convex_values7.VFloat64<number | undefined, "optional">;
|
|
648
|
+
phone: convex_values7.VString<string | undefined, "optional">;
|
|
649
|
+
phoneVerificationTime: convex_values7.VFloat64<number | undefined, "optional">;
|
|
650
|
+
isAnonymous: convex_values7.VBoolean<boolean | undefined, "optional">;
|
|
651
|
+
lastActiveGroup: convex_values7.VId<convex_values7.GenericId<"Group"> | undefined, "optional">;
|
|
652
|
+
hasTotp: convex_values7.VBoolean<boolean | undefined, "optional">;
|
|
653
|
+
extend: convex_values7.VAny<any, "optional", string>;
|
|
654
|
+
_id: convex_values7.VId<convex_values7.GenericId<"User">, "required">;
|
|
655
|
+
_creationTime: convex_values7.VFloat64<number, "required">;
|
|
652
656
|
}, "extend"> & {
|
|
653
|
-
extend:
|
|
654
|
-
})[Property]>, undefined> | undefined } & { [Property_1 in Exclude<"
|
|
655
|
-
name:
|
|
656
|
-
image:
|
|
657
|
-
email:
|
|
658
|
-
emailVerificationTime:
|
|
659
|
-
phone:
|
|
660
|
-
phoneVerificationTime:
|
|
661
|
-
isAnonymous:
|
|
662
|
-
lastActiveGroup:
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
657
|
+
extend: convex_values7.VOptional<ExtendFor<TExtend, "User">>;
|
|
658
|
+
})[Property]>, undefined> | undefined } & { [Property_1 in Exclude<"_creationTime", "name" | "email" | "phone" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"name", "name" | "email" | "phone" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"email", "name" | "email" | "phone" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"phone", "name" | "email" | "phone" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"image", "name" | "email" | "phone" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"emailVerificationTime", "name" | "email" | "phone" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"phoneVerificationTime", "name" | "email" | "phone" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"isAnonymous", "name" | "email" | "phone" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"lastActiveGroup", "name" | "email" | "phone" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"hasTotp", "name" | "email" | "phone" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"extend", "name" | "email" | "phone" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"_id", "name" | "email" | "phone" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)>]: Infer<(Omit<{
|
|
659
|
+
name: convex_values7.VString<string | undefined, "optional">;
|
|
660
|
+
image: convex_values7.VString<string | undefined, "optional">;
|
|
661
|
+
email: convex_values7.VString<string | undefined, "optional">;
|
|
662
|
+
emailVerificationTime: convex_values7.VFloat64<number | undefined, "optional">;
|
|
663
|
+
phone: convex_values7.VString<string | undefined, "optional">;
|
|
664
|
+
phoneVerificationTime: convex_values7.VFloat64<number | undefined, "optional">;
|
|
665
|
+
isAnonymous: convex_values7.VBoolean<boolean | undefined, "optional">;
|
|
666
|
+
lastActiveGroup: convex_values7.VId<convex_values7.GenericId<"Group"> | undefined, "optional">;
|
|
667
|
+
hasTotp: convex_values7.VBoolean<boolean | undefined, "optional">;
|
|
668
|
+
extend: convex_values7.VAny<any, "optional", string>;
|
|
669
|
+
_id: convex_values7.VId<convex_values7.GenericId<"User">, "required">;
|
|
670
|
+
_creationTime: convex_values7.VFloat64<number, "required">;
|
|
666
671
|
}, "extend"> & {
|
|
667
|
-
extend:
|
|
668
|
-
})[Property_1]> }> | null, [
|
|
669
|
-
name:
|
|
670
|
-
image:
|
|
671
|
-
email:
|
|
672
|
-
emailVerificationTime:
|
|
673
|
-
phone:
|
|
674
|
-
phoneVerificationTime:
|
|
675
|
-
isAnonymous:
|
|
676
|
-
lastActiveGroup:
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
672
|
+
extend: convex_values7.VOptional<ExtendFor<TExtend, "User">>;
|
|
673
|
+
})[Property_1]> }> | null, [convex_values7.VObject<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<{
|
|
674
|
+
name: convex_values7.VString<string | undefined, "optional">;
|
|
675
|
+
image: convex_values7.VString<string | undefined, "optional">;
|
|
676
|
+
email: convex_values7.VString<string | undefined, "optional">;
|
|
677
|
+
emailVerificationTime: convex_values7.VFloat64<number | undefined, "optional">;
|
|
678
|
+
phone: convex_values7.VString<string | undefined, "optional">;
|
|
679
|
+
phoneVerificationTime: convex_values7.VFloat64<number | undefined, "optional">;
|
|
680
|
+
isAnonymous: convex_values7.VBoolean<boolean | undefined, "optional">;
|
|
681
|
+
lastActiveGroup: convex_values7.VId<convex_values7.GenericId<"Group"> | undefined, "optional">;
|
|
682
|
+
hasTotp: convex_values7.VBoolean<boolean | undefined, "optional">;
|
|
683
|
+
extend: convex_values7.VAny<any, "optional", string>;
|
|
684
|
+
_id: convex_values7.VId<convex_values7.GenericId<"User">, "required">;
|
|
685
|
+
_creationTime: convex_values7.VFloat64<number, "required">;
|
|
680
686
|
}, "extend"> & {
|
|
681
|
-
extend:
|
|
682
|
-
})[Property]>, undefined> | undefined } & { [Property_1 in Exclude<"
|
|
683
|
-
name:
|
|
684
|
-
image:
|
|
685
|
-
email:
|
|
686
|
-
emailVerificationTime:
|
|
687
|
-
phone:
|
|
688
|
-
phoneVerificationTime:
|
|
689
|
-
isAnonymous:
|
|
690
|
-
lastActiveGroup:
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
687
|
+
extend: convex_values7.VOptional<ExtendFor<TExtend, "User">>;
|
|
688
|
+
})[Property]>, undefined> | undefined } & { [Property_1 in Exclude<"_creationTime", "name" | "email" | "phone" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"name", "name" | "email" | "phone" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"email", "name" | "email" | "phone" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"phone", "name" | "email" | "phone" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"image", "name" | "email" | "phone" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"emailVerificationTime", "name" | "email" | "phone" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"phoneVerificationTime", "name" | "email" | "phone" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"isAnonymous", "name" | "email" | "phone" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"lastActiveGroup", "name" | "email" | "phone" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"hasTotp", "name" | "email" | "phone" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"extend", "name" | "email" | "phone" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)> | Exclude<"_id", "name" | "email" | "phone" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | (convex_values7.VOptional<ExtendFor<TExtend, "User">>["isOptional"] extends "optional" ? "extend" : never)>]: Infer<(Omit<{
|
|
689
|
+
name: convex_values7.VString<string | undefined, "optional">;
|
|
690
|
+
image: convex_values7.VString<string | undefined, "optional">;
|
|
691
|
+
email: convex_values7.VString<string | undefined, "optional">;
|
|
692
|
+
emailVerificationTime: convex_values7.VFloat64<number | undefined, "optional">;
|
|
693
|
+
phone: convex_values7.VString<string | undefined, "optional">;
|
|
694
|
+
phoneVerificationTime: convex_values7.VFloat64<number | undefined, "optional">;
|
|
695
|
+
isAnonymous: convex_values7.VBoolean<boolean | undefined, "optional">;
|
|
696
|
+
lastActiveGroup: convex_values7.VId<convex_values7.GenericId<"Group"> | undefined, "optional">;
|
|
697
|
+
hasTotp: convex_values7.VBoolean<boolean | undefined, "optional">;
|
|
698
|
+
extend: convex_values7.VAny<any, "optional", string>;
|
|
699
|
+
_id: convex_values7.VId<convex_values7.GenericId<"User">, "required">;
|
|
700
|
+
_creationTime: convex_values7.VFloat64<number, "required">;
|
|
694
701
|
}, "extend"> & {
|
|
695
|
-
extend:
|
|
702
|
+
extend: convex_values7.VOptional<ExtendFor<TExtend, "User">>;
|
|
696
703
|
})[Property_1]> }>, Omit<{
|
|
697
|
-
name:
|
|
698
|
-
image:
|
|
699
|
-
email:
|
|
700
|
-
emailVerificationTime:
|
|
701
|
-
phone:
|
|
702
|
-
phoneVerificationTime:
|
|
703
|
-
isAnonymous:
|
|
704
|
-
lastActiveGroup:
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
704
|
+
name: convex_values7.VString<string | undefined, "optional">;
|
|
705
|
+
image: convex_values7.VString<string | undefined, "optional">;
|
|
706
|
+
email: convex_values7.VString<string | undefined, "optional">;
|
|
707
|
+
emailVerificationTime: convex_values7.VFloat64<number | undefined, "optional">;
|
|
708
|
+
phone: convex_values7.VString<string | undefined, "optional">;
|
|
709
|
+
phoneVerificationTime: convex_values7.VFloat64<number | undefined, "optional">;
|
|
710
|
+
isAnonymous: convex_values7.VBoolean<boolean | undefined, "optional">;
|
|
711
|
+
lastActiveGroup: convex_values7.VId<convex_values7.GenericId<"Group"> | undefined, "optional">;
|
|
712
|
+
hasTotp: convex_values7.VBoolean<boolean | undefined, "optional">;
|
|
713
|
+
extend: convex_values7.VAny<any, "optional", string>;
|
|
714
|
+
_id: convex_values7.VId<convex_values7.GenericId<"User">, "required">;
|
|
715
|
+
_creationTime: convex_values7.VFloat64<number, "required">;
|
|
708
716
|
}, "extend"> & {
|
|
709
|
-
extend:
|
|
710
|
-
}, "required", "
|
|
711
|
-
list: <V extends Validator<any, any, any>>(item: V) =>
|
|
717
|
+
extend: convex_values7.VOptional<ExtendFor<TExtend, "User">>;
|
|
718
|
+
}, "required", "_creationTime" | "name" | "email" | "phone" | "image" | "emailVerificationTime" | "phoneVerificationTime" | "isAnonymous" | "lastActiveGroup" | "hasTotp" | "extend" | "_id" | `extend.${convex_values7.VOptional<ExtendFor<TExtend, "User">>["fieldPaths"]}`>, convex_values7.VNull<null, "required">], "required", "_creationTime" | "name" | "email" | "phone" | "image" | "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
|
+
list: <V extends Validator<any, any, any>>(item: V) => convex_values7.VObject<{
|
|
712
720
|
items: V["type"][];
|
|
713
721
|
nextCursor: string | null;
|
|
714
722
|
}, {
|
|
715
|
-
items:
|
|
716
|
-
nextCursor:
|
|
723
|
+
items: convex_values7.VArray<V["type"][], V, "required">;
|
|
724
|
+
nextCursor: convex_values7.VUnion<string | null, [convex_values7.VString<string, "required">, convex_values7.VNull<null, "required">], "required", never>;
|
|
717
725
|
}, "required", "items" | "nextCursor">;
|
|
718
726
|
};
|
|
719
727
|
/**
|