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