@convex-dev/better-auth 0.7.0-alpha.8 → 0.7.0
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/commonjs/client/adapter.d.ts +10 -1
- package/dist/commonjs/client/adapter.d.ts.map +1 -1
- package/dist/commonjs/client/adapter.js +190 -192
- package/dist/commonjs/client/adapter.js.map +1 -1
- package/dist/commonjs/client/index.d.ts +283 -179
- package/dist/commonjs/client/index.d.ts.map +1 -1
- package/dist/commonjs/client/index.js +59 -67
- package/dist/commonjs/client/index.js.map +1 -1
- package/dist/commonjs/component/adapterTest.d.ts +19 -0
- package/dist/commonjs/component/adapterTest.d.ts.map +1 -0
- package/dist/commonjs/component/adapterTest.js +82 -0
- package/dist/commonjs/component/adapterTest.js.map +1 -0
- package/dist/commonjs/component/lib.d.ts +308 -536
- package/dist/commonjs/component/lib.d.ts.map +1 -1
- package/dist/commonjs/component/lib.js +469 -292
- package/dist/commonjs/component/lib.js.map +1 -1
- package/dist/commonjs/component/schema.d.ts +465 -26
- package/dist/commonjs/component/schema.d.ts.map +1 -1
- package/dist/commonjs/component/schema.js +334 -18
- package/dist/commonjs/component/schema.js.map +1 -1
- package/dist/commonjs/component/util.d.ts +944 -68
- package/dist/commonjs/component/util.d.ts.map +1 -1
- package/dist/commonjs/nextjs/index.d.ts.map +1 -1
- package/dist/commonjs/nextjs/index.js +3 -9
- package/dist/commonjs/nextjs/index.js.map +1 -1
- package/dist/commonjs/plugins/convex/index.d.ts +14 -11
- package/dist/commonjs/plugins/convex/index.d.ts.map +1 -1
- package/dist/commonjs/plugins/convex/index.js +3 -2
- package/dist/commonjs/plugins/convex/index.js.map +1 -1
- package/dist/commonjs/plugins/cross-domain/client.d.ts +1 -1
- package/dist/commonjs/plugins/cross-domain/index.d.ts +5 -3
- package/dist/commonjs/plugins/cross-domain/index.d.ts.map +1 -1
- package/dist/commonjs/plugins/cross-domain/index.js +19 -5
- package/dist/commonjs/plugins/cross-domain/index.js.map +1 -1
- package/dist/commonjs/react/client.d.ts +1 -1
- package/dist/commonjs/react/client.d.ts.map +1 -1
- package/dist/commonjs/react/client.js +3 -9
- package/dist/commonjs/react/client.js.map +1 -1
- package/dist/commonjs/react-start/index.d.ts +4 -4
- package/dist/commonjs/react-start/index.d.ts.map +1 -1
- package/dist/commonjs/react-start/index.js +3 -0
- package/dist/commonjs/react-start/index.js.map +1 -1
- package/dist/commonjs/utils/index.d.ts +2 -0
- package/dist/commonjs/utils/index.d.ts.map +1 -0
- package/dist/commonjs/utils/index.js +8 -0
- package/dist/commonjs/utils/index.js.map +1 -0
- package/dist/esm/client/adapter.d.ts +10 -1
- package/dist/esm/client/adapter.d.ts.map +1 -1
- package/dist/esm/client/adapter.js +190 -192
- package/dist/esm/client/adapter.js.map +1 -1
- package/dist/esm/client/index.d.ts +283 -179
- package/dist/esm/client/index.d.ts.map +1 -1
- package/dist/esm/client/index.js +59 -67
- package/dist/esm/client/index.js.map +1 -1
- package/dist/esm/component/adapterTest.d.ts +19 -0
- package/dist/esm/component/adapterTest.d.ts.map +1 -0
- package/dist/esm/component/adapterTest.js +82 -0
- package/dist/esm/component/adapterTest.js.map +1 -0
- package/dist/esm/component/lib.d.ts +308 -536
- package/dist/esm/component/lib.d.ts.map +1 -1
- package/dist/esm/component/lib.js +469 -292
- package/dist/esm/component/lib.js.map +1 -1
- package/dist/esm/component/schema.d.ts +465 -26
- package/dist/esm/component/schema.d.ts.map +1 -1
- package/dist/esm/component/schema.js +334 -18
- package/dist/esm/component/schema.js.map +1 -1
- package/dist/esm/component/util.d.ts +944 -68
- package/dist/esm/component/util.d.ts.map +1 -1
- package/dist/esm/nextjs/index.d.ts.map +1 -1
- package/dist/esm/nextjs/index.js +3 -9
- package/dist/esm/nextjs/index.js.map +1 -1
- package/dist/esm/plugins/convex/index.d.ts +14 -11
- package/dist/esm/plugins/convex/index.d.ts.map +1 -1
- package/dist/esm/plugins/convex/index.js +3 -2
- package/dist/esm/plugins/convex/index.js.map +1 -1
- package/dist/esm/plugins/cross-domain/client.d.ts +1 -1
- package/dist/esm/plugins/cross-domain/index.d.ts +5 -3
- package/dist/esm/plugins/cross-domain/index.d.ts.map +1 -1
- package/dist/esm/plugins/cross-domain/index.js +19 -5
- package/dist/esm/plugins/cross-domain/index.js.map +1 -1
- package/dist/esm/react/client.d.ts +1 -1
- package/dist/esm/react/client.d.ts.map +1 -1
- package/dist/esm/react/client.js +3 -9
- package/dist/esm/react/client.js.map +1 -1
- package/dist/esm/react-start/index.d.ts +4 -4
- package/dist/esm/react-start/index.d.ts.map +1 -1
- package/dist/esm/react-start/index.js +3 -0
- package/dist/esm/react-start/index.js.map +1 -1
- package/dist/esm/utils/index.d.ts +2 -0
- package/dist/esm/utils/index.d.ts.map +1 -0
- package/dist/esm/utils/index.js +8 -0
- package/dist/esm/utils/index.js.map +1 -0
- package/package.json +24 -7
- package/src/client/adapter.test.ts +378 -0
- package/src/client/adapter.ts +206 -198
- package/src/client/index.ts +60 -80
- package/src/component/_generated/api.d.ts +2189 -171
- package/src/component/adapterTest.ts +141 -0
- package/src/component/lib.ts +648 -342
- package/src/component/schema.ts +349 -18
- package/src/nextjs/index.ts +3 -14
- package/src/plugins/convex/index.ts +5 -2
- package/src/plugins/cross-domain/index.ts +19 -5
- package/src/react/client.tsx +5 -11
- package/src/react-start/index.ts +4 -1
- package/src/client/cors.ts +0 -425
- /package/src/{util.ts → utils/index.ts} +0 -0
|
@@ -6,17 +6,27 @@ export declare const vv: {
|
|
|
6
6
|
_creationTime: number;
|
|
7
7
|
image?: string | undefined;
|
|
8
8
|
twoFactorEnabled?: boolean | undefined;
|
|
9
|
+
isAnonymous?: boolean | undefined;
|
|
10
|
+
username?: string | undefined;
|
|
11
|
+
displayUsername?: string | undefined;
|
|
12
|
+
phoneNumber?: string | undefined;
|
|
13
|
+
phoneNumberVerified?: boolean | undefined;
|
|
14
|
+
stripeCustomerId?: string | undefined;
|
|
15
|
+
userId?: string | undefined;
|
|
9
16
|
name: string;
|
|
10
17
|
email: string;
|
|
11
18
|
emailVerified: boolean;
|
|
12
|
-
userId: string;
|
|
13
19
|
createdAt: number;
|
|
14
20
|
updatedAt: number;
|
|
15
21
|
};
|
|
16
|
-
fieldPaths: ("name" | "email" | "emailVerified" | "image" | "twoFactorEnabled" | "
|
|
22
|
+
fieldPaths: ("name" | "email" | "emailVerified" | "image" | "createdAt" | "updatedAt" | "twoFactorEnabled" | "isAnonymous" | "username" | "displayUsername" | "phoneNumber" | "phoneNumberVerified" | "stripeCustomerId" | "userId" | "_creationTime") | "_id";
|
|
17
23
|
indexes: {
|
|
18
|
-
|
|
24
|
+
email_name: ["email", "name", "_creationTime"];
|
|
25
|
+
name: ["name", "_creationTime"];
|
|
19
26
|
userId: ["userId", "_creationTime"];
|
|
27
|
+
email: ["email", "_creationTime"];
|
|
28
|
+
username: ["username", "_creationTime"];
|
|
29
|
+
phoneNumber: ["phoneNumber", "_creationTime"];
|
|
20
30
|
by_id: ["_id"];
|
|
21
31
|
by_creation_time: ["_creationTime"];
|
|
22
32
|
};
|
|
@@ -29,18 +39,19 @@ export declare const vv: {
|
|
|
29
39
|
_creationTime: number;
|
|
30
40
|
ipAddress?: string | undefined;
|
|
31
41
|
userAgent?: string | undefined;
|
|
32
|
-
|
|
42
|
+
activeOrganizationId?: string | undefined;
|
|
33
43
|
createdAt: number;
|
|
34
44
|
updatedAt: number;
|
|
45
|
+
userId: string;
|
|
35
46
|
expiresAt: number;
|
|
36
47
|
token: string;
|
|
37
48
|
};
|
|
38
|
-
fieldPaths: ("
|
|
49
|
+
fieldPaths: ("createdAt" | "updatedAt" | "userId" | "_creationTime" | "expiresAt" | "token" | "ipAddress" | "userAgent" | "activeOrganizationId") | "_id";
|
|
39
50
|
indexes: {
|
|
51
|
+
expiresAt: ["expiresAt", "_creationTime"];
|
|
52
|
+
expiresAt_userId: ["expiresAt", "userId", "_creationTime"];
|
|
40
53
|
token: ["token", "_creationTime"];
|
|
41
54
|
userId: ["userId", "_creationTime"];
|
|
42
|
-
expiresAt: ["expiresAt", "_creationTime"];
|
|
43
|
-
userId_expiresAt: ["userId", "expiresAt", "_creationTime"];
|
|
44
55
|
by_id: ["_id"];
|
|
45
56
|
by_creation_time: ["_creationTime"];
|
|
46
57
|
};
|
|
@@ -58,18 +69,38 @@ export declare const vv: {
|
|
|
58
69
|
refreshTokenExpiresAt?: number | undefined;
|
|
59
70
|
scope?: string | undefined;
|
|
60
71
|
password?: string | undefined;
|
|
61
|
-
userId: string;
|
|
62
72
|
createdAt: number;
|
|
63
73
|
updatedAt: number;
|
|
74
|
+
userId: string;
|
|
64
75
|
accountId: string;
|
|
65
76
|
providerId: string;
|
|
66
77
|
};
|
|
67
|
-
fieldPaths: ("
|
|
78
|
+
fieldPaths: ("createdAt" | "updatedAt" | "userId" | "_creationTime" | "accountId" | "providerId" | "accessToken" | "refreshToken" | "idToken" | "accessTokenExpiresAt" | "refreshTokenExpiresAt" | "scope" | "password") | "_id";
|
|
68
79
|
indexes: {
|
|
69
|
-
userId: ["userId", "_creationTime"];
|
|
70
80
|
accountId: ["accountId", "_creationTime"];
|
|
71
|
-
|
|
72
|
-
|
|
81
|
+
accountId_providerId: ["accountId", "providerId", "_creationTime"];
|
|
82
|
+
providerId_userId: ["providerId", "userId", "_creationTime"];
|
|
83
|
+
userId: ["userId", "_creationTime"];
|
|
84
|
+
by_id: ["_id"];
|
|
85
|
+
by_creation_time: ["_creationTime"];
|
|
86
|
+
};
|
|
87
|
+
searchIndexes: {};
|
|
88
|
+
vectorIndexes: {};
|
|
89
|
+
};
|
|
90
|
+
verification: {
|
|
91
|
+
document: {
|
|
92
|
+
_id: import("convex/values").GenericId<"verification">;
|
|
93
|
+
_creationTime: number;
|
|
94
|
+
createdAt?: number | undefined;
|
|
95
|
+
updatedAt?: number | undefined;
|
|
96
|
+
expiresAt: number;
|
|
97
|
+
identifier: string;
|
|
98
|
+
value: string;
|
|
99
|
+
};
|
|
100
|
+
fieldPaths: ("createdAt" | "updatedAt" | "_creationTime" | "expiresAt" | "identifier" | "value") | "_id";
|
|
101
|
+
indexes: {
|
|
102
|
+
expiresAt: ["expiresAt", "_creationTime"];
|
|
103
|
+
identifier: ["identifier", "_creationTime"];
|
|
73
104
|
by_id: ["_id"];
|
|
74
105
|
by_creation_time: ["_creationTime"];
|
|
75
106
|
};
|
|
@@ -93,20 +124,242 @@ export declare const vv: {
|
|
|
93
124
|
searchIndexes: {};
|
|
94
125
|
vectorIndexes: {};
|
|
95
126
|
};
|
|
96
|
-
|
|
127
|
+
passkey: {
|
|
97
128
|
document: {
|
|
98
|
-
_id: import("convex/values").GenericId<"
|
|
129
|
+
_id: import("convex/values").GenericId<"passkey">;
|
|
130
|
+
_creationTime: number;
|
|
131
|
+
name?: string | undefined;
|
|
132
|
+
createdAt?: number | undefined;
|
|
133
|
+
transports?: string | undefined;
|
|
134
|
+
aaguid?: string | undefined;
|
|
135
|
+
userId: string;
|
|
136
|
+
publicKey: string;
|
|
137
|
+
credentialID: string;
|
|
138
|
+
counter: number;
|
|
139
|
+
deviceType: string;
|
|
140
|
+
backedUp: boolean;
|
|
141
|
+
};
|
|
142
|
+
fieldPaths: ("name" | "createdAt" | "userId" | "_creationTime" | "publicKey" | "credentialID" | "counter" | "deviceType" | "backedUp" | "transports" | "aaguid") | "_id";
|
|
143
|
+
indexes: {
|
|
144
|
+
credentialID: ["credentialID", "_creationTime"];
|
|
145
|
+
userId: ["userId", "_creationTime"];
|
|
146
|
+
by_id: ["_id"];
|
|
147
|
+
by_creation_time: ["_creationTime"];
|
|
148
|
+
};
|
|
149
|
+
searchIndexes: {};
|
|
150
|
+
vectorIndexes: {};
|
|
151
|
+
};
|
|
152
|
+
apikey: {
|
|
153
|
+
document: {
|
|
154
|
+
_id: import("convex/values").GenericId<"apikey">;
|
|
155
|
+
_creationTime: number;
|
|
156
|
+
name?: string | undefined;
|
|
157
|
+
expiresAt?: number | undefined;
|
|
158
|
+
start?: string | undefined;
|
|
159
|
+
prefix?: string | undefined;
|
|
160
|
+
refillInterval?: number | undefined;
|
|
161
|
+
refillAmount?: number | undefined;
|
|
162
|
+
lastRefillAt?: number | undefined;
|
|
163
|
+
enabled?: boolean | undefined;
|
|
164
|
+
rateLimitEnabled?: boolean | undefined;
|
|
165
|
+
rateLimitTimeWindow?: number | undefined;
|
|
166
|
+
rateLimitMax?: number | undefined;
|
|
167
|
+
requestCount?: number | undefined;
|
|
168
|
+
remaining?: number | undefined;
|
|
169
|
+
lastRequest?: number | undefined;
|
|
170
|
+
permissions?: string | undefined;
|
|
171
|
+
metadata?: string | undefined;
|
|
172
|
+
createdAt: number;
|
|
173
|
+
updatedAt: number;
|
|
174
|
+
userId: string;
|
|
175
|
+
key: string;
|
|
176
|
+
};
|
|
177
|
+
fieldPaths: ("name" | "createdAt" | "updatedAt" | "userId" | "_creationTime" | "expiresAt" | "start" | "prefix" | "key" | "refillInterval" | "refillAmount" | "lastRefillAt" | "enabled" | "rateLimitEnabled" | "rateLimitTimeWindow" | "rateLimitMax" | "requestCount" | "remaining" | "lastRequest" | "permissions" | "metadata") | "_id";
|
|
178
|
+
indexes: {
|
|
179
|
+
key: ["key", "_creationTime"];
|
|
180
|
+
userId: ["userId", "_creationTime"];
|
|
181
|
+
by_id: ["_id"];
|
|
182
|
+
by_creation_time: ["_creationTime"];
|
|
183
|
+
};
|
|
184
|
+
searchIndexes: {};
|
|
185
|
+
vectorIndexes: {};
|
|
186
|
+
};
|
|
187
|
+
oauthApplication: {
|
|
188
|
+
document: {
|
|
189
|
+
_id: import("convex/values").GenericId<"oauthApplication">;
|
|
190
|
+
_creationTime: number;
|
|
191
|
+
name?: string | undefined;
|
|
192
|
+
createdAt?: number | undefined;
|
|
193
|
+
updatedAt?: number | undefined;
|
|
194
|
+
userId?: string | undefined;
|
|
195
|
+
type?: string | undefined;
|
|
196
|
+
metadata?: string | undefined;
|
|
197
|
+
icon?: string | undefined;
|
|
198
|
+
clientId?: string | undefined;
|
|
199
|
+
clientSecret?: string | undefined;
|
|
200
|
+
redirectURLs?: string | undefined;
|
|
201
|
+
disabled?: boolean | undefined;
|
|
202
|
+
};
|
|
203
|
+
fieldPaths: ("name" | "createdAt" | "updatedAt" | "userId" | "type" | "_creationTime" | "metadata" | "icon" | "clientId" | "clientSecret" | "redirectURLs" | "disabled") | "_id";
|
|
204
|
+
indexes: {
|
|
205
|
+
clientId: ["clientId", "_creationTime"];
|
|
206
|
+
by_id: ["_id"];
|
|
207
|
+
by_creation_time: ["_creationTime"];
|
|
208
|
+
};
|
|
209
|
+
searchIndexes: {};
|
|
210
|
+
vectorIndexes: {};
|
|
211
|
+
};
|
|
212
|
+
oauthAccessToken: {
|
|
213
|
+
document: {
|
|
214
|
+
_id: import("convex/values").GenericId<"oauthAccessToken">;
|
|
215
|
+
_creationTime: number;
|
|
216
|
+
createdAt?: number | undefined;
|
|
217
|
+
updatedAt?: number | undefined;
|
|
218
|
+
userId?: string | undefined;
|
|
219
|
+
accessToken?: string | undefined;
|
|
220
|
+
refreshToken?: string | undefined;
|
|
221
|
+
accessTokenExpiresAt?: number | undefined;
|
|
222
|
+
refreshTokenExpiresAt?: number | undefined;
|
|
223
|
+
clientId?: string | undefined;
|
|
224
|
+
scopes?: string | undefined;
|
|
225
|
+
};
|
|
226
|
+
fieldPaths: ("createdAt" | "updatedAt" | "userId" | "_creationTime" | "accessToken" | "refreshToken" | "accessTokenExpiresAt" | "refreshTokenExpiresAt" | "clientId" | "scopes") | "_id";
|
|
227
|
+
indexes: {
|
|
228
|
+
accessToken: ["accessToken", "_creationTime"];
|
|
229
|
+
refreshToken: ["refreshToken", "_creationTime"];
|
|
230
|
+
by_id: ["_id"];
|
|
231
|
+
by_creation_time: ["_creationTime"];
|
|
232
|
+
};
|
|
233
|
+
searchIndexes: {};
|
|
234
|
+
vectorIndexes: {};
|
|
235
|
+
};
|
|
236
|
+
oauthConsent: {
|
|
237
|
+
document: {
|
|
238
|
+
_id: import("convex/values").GenericId<"oauthConsent">;
|
|
99
239
|
_creationTime: number;
|
|
100
240
|
createdAt?: number | undefined;
|
|
101
241
|
updatedAt?: number | undefined;
|
|
242
|
+
userId?: string | undefined;
|
|
243
|
+
clientId?: string | undefined;
|
|
244
|
+
scopes?: string | undefined;
|
|
245
|
+
consentGiven?: boolean | undefined;
|
|
246
|
+
};
|
|
247
|
+
fieldPaths: ("createdAt" | "updatedAt" | "userId" | "_creationTime" | "clientId" | "scopes" | "consentGiven") | "_id";
|
|
248
|
+
indexes: {
|
|
249
|
+
clientId_userId: ["clientId", "userId", "_creationTime"];
|
|
250
|
+
by_id: ["_id"];
|
|
251
|
+
by_creation_time: ["_creationTime"];
|
|
252
|
+
};
|
|
253
|
+
searchIndexes: {};
|
|
254
|
+
vectorIndexes: {};
|
|
255
|
+
};
|
|
256
|
+
organization: {
|
|
257
|
+
document: {
|
|
258
|
+
_id: import("convex/values").GenericId<"organization">;
|
|
259
|
+
_creationTime: number;
|
|
260
|
+
metadata?: string | undefined;
|
|
261
|
+
slug?: string | undefined;
|
|
262
|
+
logo?: string | undefined;
|
|
263
|
+
name: string;
|
|
264
|
+
createdAt: number;
|
|
265
|
+
};
|
|
266
|
+
fieldPaths: ("name" | "createdAt" | "_creationTime" | "metadata" | "slug" | "logo") | "_id";
|
|
267
|
+
indexes: {
|
|
268
|
+
name: ["name", "_creationTime"];
|
|
269
|
+
slug: ["slug", "_creationTime"];
|
|
270
|
+
by_id: ["_id"];
|
|
271
|
+
by_creation_time: ["_creationTime"];
|
|
272
|
+
};
|
|
273
|
+
searchIndexes: {};
|
|
274
|
+
vectorIndexes: {};
|
|
275
|
+
};
|
|
276
|
+
member: {
|
|
277
|
+
document: {
|
|
278
|
+
_id: import("convex/values").GenericId<"member">;
|
|
279
|
+
_creationTime: number;
|
|
280
|
+
teamId?: string | undefined;
|
|
281
|
+
createdAt: number;
|
|
282
|
+
userId: string;
|
|
283
|
+
organizationId: string;
|
|
284
|
+
role: string;
|
|
285
|
+
};
|
|
286
|
+
fieldPaths: ("createdAt" | "userId" | "_creationTime" | "organizationId" | "role" | "teamId") | "_id";
|
|
287
|
+
indexes: {
|
|
288
|
+
organizationId_userId: ["organizationId", "userId", "_creationTime"];
|
|
289
|
+
organizationId: ["organizationId", "_creationTime"];
|
|
290
|
+
userId: ["userId", "_creationTime"];
|
|
291
|
+
role: ["role", "_creationTime"];
|
|
292
|
+
teamId: ["teamId", "_creationTime"];
|
|
293
|
+
by_id: ["_id"];
|
|
294
|
+
by_creation_time: ["_creationTime"];
|
|
295
|
+
};
|
|
296
|
+
searchIndexes: {};
|
|
297
|
+
vectorIndexes: {};
|
|
298
|
+
};
|
|
299
|
+
invitation: {
|
|
300
|
+
document: {
|
|
301
|
+
_id: import("convex/values").GenericId<"invitation">;
|
|
302
|
+
_creationTime: number;
|
|
303
|
+
role?: string | undefined;
|
|
304
|
+
teamId?: string | undefined;
|
|
305
|
+
email: string;
|
|
102
306
|
expiresAt: number;
|
|
103
|
-
|
|
104
|
-
|
|
307
|
+
organizationId: string;
|
|
308
|
+
status: string;
|
|
309
|
+
inviterId: string;
|
|
105
310
|
};
|
|
106
|
-
fieldPaths: ("
|
|
311
|
+
fieldPaths: ("email" | "_creationTime" | "expiresAt" | "organizationId" | "role" | "teamId" | "status" | "inviterId") | "_id";
|
|
107
312
|
indexes: {
|
|
108
|
-
|
|
109
|
-
|
|
313
|
+
email_organizationId_status: ["email", "organizationId", "status", "_creationTime"];
|
|
314
|
+
organizationId_status: ["organizationId", "status", "_creationTime"];
|
|
315
|
+
organizationId: ["organizationId", "_creationTime"];
|
|
316
|
+
email: ["email", "_creationTime"];
|
|
317
|
+
role: ["role", "_creationTime"];
|
|
318
|
+
teamId: ["teamId", "_creationTime"];
|
|
319
|
+
status: ["status", "_creationTime"];
|
|
320
|
+
inviterId: ["inviterId", "_creationTime"];
|
|
321
|
+
by_id: ["_id"];
|
|
322
|
+
by_creation_time: ["_creationTime"];
|
|
323
|
+
};
|
|
324
|
+
searchIndexes: {};
|
|
325
|
+
vectorIndexes: {};
|
|
326
|
+
};
|
|
327
|
+
team: {
|
|
328
|
+
document: {
|
|
329
|
+
_id: import("convex/values").GenericId<"team">;
|
|
330
|
+
_creationTime: number;
|
|
331
|
+
updatedAt?: number | undefined;
|
|
332
|
+
name: string;
|
|
333
|
+
createdAt: number;
|
|
334
|
+
organizationId: string;
|
|
335
|
+
};
|
|
336
|
+
fieldPaths: ("name" | "createdAt" | "updatedAt" | "_creationTime" | "organizationId") | "_id";
|
|
337
|
+
indexes: {
|
|
338
|
+
organizationId: ["organizationId", "_creationTime"];
|
|
339
|
+
by_id: ["_id"];
|
|
340
|
+
by_creation_time: ["_creationTime"];
|
|
341
|
+
};
|
|
342
|
+
searchIndexes: {};
|
|
343
|
+
vectorIndexes: {};
|
|
344
|
+
};
|
|
345
|
+
ssoProvider: {
|
|
346
|
+
document: {
|
|
347
|
+
_id: import("convex/values").GenericId<"ssoProvider">;
|
|
348
|
+
_creationTime: number;
|
|
349
|
+
userId?: string | undefined;
|
|
350
|
+
organizationId?: string | undefined;
|
|
351
|
+
oidcConfig?: string | undefined;
|
|
352
|
+
samlConfig?: string | undefined;
|
|
353
|
+
providerId: string;
|
|
354
|
+
issuer: string;
|
|
355
|
+
domain: string;
|
|
356
|
+
};
|
|
357
|
+
fieldPaths: ("userId" | "_creationTime" | "providerId" | "organizationId" | "issuer" | "oidcConfig" | "samlConfig" | "domain") | "_id";
|
|
358
|
+
indexes: {
|
|
359
|
+
organizationId: ["organizationId", "_creationTime"];
|
|
360
|
+
domain: ["domain", "_creationTime"];
|
|
361
|
+
userId: ["userId", "_creationTime"];
|
|
362
|
+
providerId: ["providerId", "_creationTime"];
|
|
110
363
|
by_id: ["_id"];
|
|
111
364
|
by_creation_time: ["_creationTime"];
|
|
112
365
|
};
|
|
@@ -117,13 +370,54 @@ export declare const vv: {
|
|
|
117
370
|
document: {
|
|
118
371
|
_id: import("convex/values").GenericId<"jwks">;
|
|
119
372
|
_creationTime: number;
|
|
120
|
-
id?: string | undefined;
|
|
121
373
|
createdAt: number;
|
|
122
374
|
publicKey: string;
|
|
123
375
|
privateKey: string;
|
|
124
376
|
};
|
|
125
|
-
fieldPaths: "_id" | ("
|
|
377
|
+
fieldPaths: "_id" | ("createdAt" | "_creationTime" | "publicKey" | "privateKey");
|
|
378
|
+
indexes: {
|
|
379
|
+
by_id: ["_id"];
|
|
380
|
+
by_creation_time: ["_creationTime"];
|
|
381
|
+
};
|
|
382
|
+
searchIndexes: {};
|
|
383
|
+
vectorIndexes: {};
|
|
384
|
+
};
|
|
385
|
+
subscription: {
|
|
386
|
+
document: {
|
|
387
|
+
_id: import("convex/values").GenericId<"subscription">;
|
|
388
|
+
_creationTime: number;
|
|
389
|
+
stripeCustomerId?: string | undefined;
|
|
390
|
+
status?: string | undefined;
|
|
391
|
+
stripeSubscriptionId?: string | undefined;
|
|
392
|
+
periodStart?: number | undefined;
|
|
393
|
+
periodEnd?: number | undefined;
|
|
394
|
+
cancelAtPeriodEnd?: boolean | undefined;
|
|
395
|
+
seats?: number | undefined;
|
|
396
|
+
plan: string;
|
|
397
|
+
referenceId: string;
|
|
398
|
+
};
|
|
399
|
+
fieldPaths: ("stripeCustomerId" | "_creationTime" | "status" | "plan" | "referenceId" | "stripeSubscriptionId" | "periodStart" | "periodEnd" | "cancelAtPeriodEnd" | "seats") | "_id";
|
|
400
|
+
indexes: {
|
|
401
|
+
stripeSubscriptionId: ["stripeSubscriptionId", "_creationTime"];
|
|
402
|
+
stripeCustomerId: ["stripeCustomerId", "_creationTime"];
|
|
403
|
+
referenceId: ["referenceId", "_creationTime"];
|
|
404
|
+
by_id: ["_id"];
|
|
405
|
+
by_creation_time: ["_creationTime"];
|
|
406
|
+
};
|
|
407
|
+
searchIndexes: {};
|
|
408
|
+
vectorIndexes: {};
|
|
409
|
+
};
|
|
410
|
+
rateLimit: {
|
|
411
|
+
document: {
|
|
412
|
+
_id: import("convex/values").GenericId<"rateLimit">;
|
|
413
|
+
_creationTime: number;
|
|
414
|
+
key?: string | undefined;
|
|
415
|
+
lastRequest?: number | undefined;
|
|
416
|
+
count?: number | undefined;
|
|
417
|
+
};
|
|
418
|
+
fieldPaths: ("_creationTime" | "key" | "lastRequest" | "count") | "_id";
|
|
126
419
|
indexes: {
|
|
420
|
+
key: ["key", "_creationTime"];
|
|
127
421
|
by_id: ["_id"];
|
|
128
422
|
by_creation_time: ["_creationTime"];
|
|
129
423
|
};
|
|
@@ -138,17 +432,27 @@ export declare const vv: {
|
|
|
138
432
|
_creationTime: number;
|
|
139
433
|
image?: string | undefined;
|
|
140
434
|
twoFactorEnabled?: boolean | undefined;
|
|
435
|
+
isAnonymous?: boolean | undefined;
|
|
436
|
+
username?: string | undefined;
|
|
437
|
+
displayUsername?: string | undefined;
|
|
438
|
+
phoneNumber?: string | undefined;
|
|
439
|
+
phoneNumberVerified?: boolean | undefined;
|
|
440
|
+
stripeCustomerId?: string | undefined;
|
|
441
|
+
userId?: string | undefined;
|
|
141
442
|
name: string;
|
|
142
443
|
email: string;
|
|
143
444
|
emailVerified: boolean;
|
|
144
|
-
userId: string;
|
|
145
445
|
createdAt: number;
|
|
146
446
|
updatedAt: number;
|
|
147
447
|
};
|
|
148
|
-
fieldPaths: ("name" | "email" | "emailVerified" | "image" | "twoFactorEnabled" | "
|
|
448
|
+
fieldPaths: ("name" | "email" | "emailVerified" | "image" | "createdAt" | "updatedAt" | "twoFactorEnabled" | "isAnonymous" | "username" | "displayUsername" | "phoneNumber" | "phoneNumberVerified" | "stripeCustomerId" | "userId" | "_creationTime") | "_id";
|
|
149
449
|
indexes: {
|
|
150
|
-
|
|
450
|
+
email_name: ["email", "name", "_creationTime"];
|
|
451
|
+
name: ["name", "_creationTime"];
|
|
151
452
|
userId: ["userId", "_creationTime"];
|
|
453
|
+
email: ["email", "_creationTime"];
|
|
454
|
+
username: ["username", "_creationTime"];
|
|
455
|
+
phoneNumber: ["phoneNumber", "_creationTime"];
|
|
152
456
|
by_id: ["_id"];
|
|
153
457
|
by_creation_time: ["_creationTime"];
|
|
154
458
|
};
|
|
@@ -161,18 +465,19 @@ export declare const vv: {
|
|
|
161
465
|
_creationTime: number;
|
|
162
466
|
ipAddress?: string | undefined;
|
|
163
467
|
userAgent?: string | undefined;
|
|
164
|
-
|
|
468
|
+
activeOrganizationId?: string | undefined;
|
|
165
469
|
createdAt: number;
|
|
166
470
|
updatedAt: number;
|
|
471
|
+
userId: string;
|
|
167
472
|
expiresAt: number;
|
|
168
473
|
token: string;
|
|
169
474
|
};
|
|
170
|
-
fieldPaths: ("
|
|
475
|
+
fieldPaths: ("createdAt" | "updatedAt" | "userId" | "_creationTime" | "expiresAt" | "token" | "ipAddress" | "userAgent" | "activeOrganizationId") | "_id";
|
|
171
476
|
indexes: {
|
|
477
|
+
expiresAt: ["expiresAt", "_creationTime"];
|
|
478
|
+
expiresAt_userId: ["expiresAt", "userId", "_creationTime"];
|
|
172
479
|
token: ["token", "_creationTime"];
|
|
173
480
|
userId: ["userId", "_creationTime"];
|
|
174
|
-
expiresAt: ["expiresAt", "_creationTime"];
|
|
175
|
-
userId_expiresAt: ["userId", "expiresAt", "_creationTime"];
|
|
176
481
|
by_id: ["_id"];
|
|
177
482
|
by_creation_time: ["_creationTime"];
|
|
178
483
|
};
|
|
@@ -190,18 +495,38 @@ export declare const vv: {
|
|
|
190
495
|
refreshTokenExpiresAt?: number | undefined;
|
|
191
496
|
scope?: string | undefined;
|
|
192
497
|
password?: string | undefined;
|
|
193
|
-
userId: string;
|
|
194
498
|
createdAt: number;
|
|
195
499
|
updatedAt: number;
|
|
500
|
+
userId: string;
|
|
196
501
|
accountId: string;
|
|
197
502
|
providerId: string;
|
|
198
503
|
};
|
|
199
|
-
fieldPaths: ("
|
|
504
|
+
fieldPaths: ("createdAt" | "updatedAt" | "userId" | "_creationTime" | "accountId" | "providerId" | "accessToken" | "refreshToken" | "idToken" | "accessTokenExpiresAt" | "refreshTokenExpiresAt" | "scope" | "password") | "_id";
|
|
200
505
|
indexes: {
|
|
201
|
-
userId: ["userId", "_creationTime"];
|
|
202
506
|
accountId: ["accountId", "_creationTime"];
|
|
203
|
-
|
|
204
|
-
|
|
507
|
+
accountId_providerId: ["accountId", "providerId", "_creationTime"];
|
|
508
|
+
providerId_userId: ["providerId", "userId", "_creationTime"];
|
|
509
|
+
userId: ["userId", "_creationTime"];
|
|
510
|
+
by_id: ["_id"];
|
|
511
|
+
by_creation_time: ["_creationTime"];
|
|
512
|
+
};
|
|
513
|
+
searchIndexes: {};
|
|
514
|
+
vectorIndexes: {};
|
|
515
|
+
};
|
|
516
|
+
verification: {
|
|
517
|
+
document: {
|
|
518
|
+
_id: import("convex/values").GenericId<"verification">;
|
|
519
|
+
_creationTime: number;
|
|
520
|
+
createdAt?: number | undefined;
|
|
521
|
+
updatedAt?: number | undefined;
|
|
522
|
+
expiresAt: number;
|
|
523
|
+
identifier: string;
|
|
524
|
+
value: string;
|
|
525
|
+
};
|
|
526
|
+
fieldPaths: ("createdAt" | "updatedAt" | "_creationTime" | "expiresAt" | "identifier" | "value") | "_id";
|
|
527
|
+
indexes: {
|
|
528
|
+
expiresAt: ["expiresAt", "_creationTime"];
|
|
529
|
+
identifier: ["identifier", "_creationTime"];
|
|
205
530
|
by_id: ["_id"];
|
|
206
531
|
by_creation_time: ["_creationTime"];
|
|
207
532
|
};
|
|
@@ -225,20 +550,242 @@ export declare const vv: {
|
|
|
225
550
|
searchIndexes: {};
|
|
226
551
|
vectorIndexes: {};
|
|
227
552
|
};
|
|
228
|
-
|
|
553
|
+
passkey: {
|
|
229
554
|
document: {
|
|
230
|
-
_id: import("convex/values").GenericId<"
|
|
555
|
+
_id: import("convex/values").GenericId<"passkey">;
|
|
556
|
+
_creationTime: number;
|
|
557
|
+
name?: string | undefined;
|
|
558
|
+
createdAt?: number | undefined;
|
|
559
|
+
transports?: string | undefined;
|
|
560
|
+
aaguid?: string | undefined;
|
|
561
|
+
userId: string;
|
|
562
|
+
publicKey: string;
|
|
563
|
+
credentialID: string;
|
|
564
|
+
counter: number;
|
|
565
|
+
deviceType: string;
|
|
566
|
+
backedUp: boolean;
|
|
567
|
+
};
|
|
568
|
+
fieldPaths: ("name" | "createdAt" | "userId" | "_creationTime" | "publicKey" | "credentialID" | "counter" | "deviceType" | "backedUp" | "transports" | "aaguid") | "_id";
|
|
569
|
+
indexes: {
|
|
570
|
+
credentialID: ["credentialID", "_creationTime"];
|
|
571
|
+
userId: ["userId", "_creationTime"];
|
|
572
|
+
by_id: ["_id"];
|
|
573
|
+
by_creation_time: ["_creationTime"];
|
|
574
|
+
};
|
|
575
|
+
searchIndexes: {};
|
|
576
|
+
vectorIndexes: {};
|
|
577
|
+
};
|
|
578
|
+
apikey: {
|
|
579
|
+
document: {
|
|
580
|
+
_id: import("convex/values").GenericId<"apikey">;
|
|
581
|
+
_creationTime: number;
|
|
582
|
+
name?: string | undefined;
|
|
583
|
+
expiresAt?: number | undefined;
|
|
584
|
+
start?: string | undefined;
|
|
585
|
+
prefix?: string | undefined;
|
|
586
|
+
refillInterval?: number | undefined;
|
|
587
|
+
refillAmount?: number | undefined;
|
|
588
|
+
lastRefillAt?: number | undefined;
|
|
589
|
+
enabled?: boolean | undefined;
|
|
590
|
+
rateLimitEnabled?: boolean | undefined;
|
|
591
|
+
rateLimitTimeWindow?: number | undefined;
|
|
592
|
+
rateLimitMax?: number | undefined;
|
|
593
|
+
requestCount?: number | undefined;
|
|
594
|
+
remaining?: number | undefined;
|
|
595
|
+
lastRequest?: number | undefined;
|
|
596
|
+
permissions?: string | undefined;
|
|
597
|
+
metadata?: string | undefined;
|
|
598
|
+
createdAt: number;
|
|
599
|
+
updatedAt: number;
|
|
600
|
+
userId: string;
|
|
601
|
+
key: string;
|
|
602
|
+
};
|
|
603
|
+
fieldPaths: ("name" | "createdAt" | "updatedAt" | "userId" | "_creationTime" | "expiresAt" | "start" | "prefix" | "key" | "refillInterval" | "refillAmount" | "lastRefillAt" | "enabled" | "rateLimitEnabled" | "rateLimitTimeWindow" | "rateLimitMax" | "requestCount" | "remaining" | "lastRequest" | "permissions" | "metadata") | "_id";
|
|
604
|
+
indexes: {
|
|
605
|
+
key: ["key", "_creationTime"];
|
|
606
|
+
userId: ["userId", "_creationTime"];
|
|
607
|
+
by_id: ["_id"];
|
|
608
|
+
by_creation_time: ["_creationTime"];
|
|
609
|
+
};
|
|
610
|
+
searchIndexes: {};
|
|
611
|
+
vectorIndexes: {};
|
|
612
|
+
};
|
|
613
|
+
oauthApplication: {
|
|
614
|
+
document: {
|
|
615
|
+
_id: import("convex/values").GenericId<"oauthApplication">;
|
|
616
|
+
_creationTime: number;
|
|
617
|
+
name?: string | undefined;
|
|
618
|
+
createdAt?: number | undefined;
|
|
619
|
+
updatedAt?: number | undefined;
|
|
620
|
+
userId?: string | undefined;
|
|
621
|
+
type?: string | undefined;
|
|
622
|
+
metadata?: string | undefined;
|
|
623
|
+
icon?: string | undefined;
|
|
624
|
+
clientId?: string | undefined;
|
|
625
|
+
clientSecret?: string | undefined;
|
|
626
|
+
redirectURLs?: string | undefined;
|
|
627
|
+
disabled?: boolean | undefined;
|
|
628
|
+
};
|
|
629
|
+
fieldPaths: ("name" | "createdAt" | "updatedAt" | "userId" | "type" | "_creationTime" | "metadata" | "icon" | "clientId" | "clientSecret" | "redirectURLs" | "disabled") | "_id";
|
|
630
|
+
indexes: {
|
|
631
|
+
clientId: ["clientId", "_creationTime"];
|
|
632
|
+
by_id: ["_id"];
|
|
633
|
+
by_creation_time: ["_creationTime"];
|
|
634
|
+
};
|
|
635
|
+
searchIndexes: {};
|
|
636
|
+
vectorIndexes: {};
|
|
637
|
+
};
|
|
638
|
+
oauthAccessToken: {
|
|
639
|
+
document: {
|
|
640
|
+
_id: import("convex/values").GenericId<"oauthAccessToken">;
|
|
641
|
+
_creationTime: number;
|
|
642
|
+
createdAt?: number | undefined;
|
|
643
|
+
updatedAt?: number | undefined;
|
|
644
|
+
userId?: string | undefined;
|
|
645
|
+
accessToken?: string | undefined;
|
|
646
|
+
refreshToken?: string | undefined;
|
|
647
|
+
accessTokenExpiresAt?: number | undefined;
|
|
648
|
+
refreshTokenExpiresAt?: number | undefined;
|
|
649
|
+
clientId?: string | undefined;
|
|
650
|
+
scopes?: string | undefined;
|
|
651
|
+
};
|
|
652
|
+
fieldPaths: ("createdAt" | "updatedAt" | "userId" | "_creationTime" | "accessToken" | "refreshToken" | "accessTokenExpiresAt" | "refreshTokenExpiresAt" | "clientId" | "scopes") | "_id";
|
|
653
|
+
indexes: {
|
|
654
|
+
accessToken: ["accessToken", "_creationTime"];
|
|
655
|
+
refreshToken: ["refreshToken", "_creationTime"];
|
|
656
|
+
by_id: ["_id"];
|
|
657
|
+
by_creation_time: ["_creationTime"];
|
|
658
|
+
};
|
|
659
|
+
searchIndexes: {};
|
|
660
|
+
vectorIndexes: {};
|
|
661
|
+
};
|
|
662
|
+
oauthConsent: {
|
|
663
|
+
document: {
|
|
664
|
+
_id: import("convex/values").GenericId<"oauthConsent">;
|
|
231
665
|
_creationTime: number;
|
|
232
666
|
createdAt?: number | undefined;
|
|
233
667
|
updatedAt?: number | undefined;
|
|
668
|
+
userId?: string | undefined;
|
|
669
|
+
clientId?: string | undefined;
|
|
670
|
+
scopes?: string | undefined;
|
|
671
|
+
consentGiven?: boolean | undefined;
|
|
672
|
+
};
|
|
673
|
+
fieldPaths: ("createdAt" | "updatedAt" | "userId" | "_creationTime" | "clientId" | "scopes" | "consentGiven") | "_id";
|
|
674
|
+
indexes: {
|
|
675
|
+
clientId_userId: ["clientId", "userId", "_creationTime"];
|
|
676
|
+
by_id: ["_id"];
|
|
677
|
+
by_creation_time: ["_creationTime"];
|
|
678
|
+
};
|
|
679
|
+
searchIndexes: {};
|
|
680
|
+
vectorIndexes: {};
|
|
681
|
+
};
|
|
682
|
+
organization: {
|
|
683
|
+
document: {
|
|
684
|
+
_id: import("convex/values").GenericId<"organization">;
|
|
685
|
+
_creationTime: number;
|
|
686
|
+
metadata?: string | undefined;
|
|
687
|
+
slug?: string | undefined;
|
|
688
|
+
logo?: string | undefined;
|
|
689
|
+
name: string;
|
|
690
|
+
createdAt: number;
|
|
691
|
+
};
|
|
692
|
+
fieldPaths: ("name" | "createdAt" | "_creationTime" | "metadata" | "slug" | "logo") | "_id";
|
|
693
|
+
indexes: {
|
|
694
|
+
name: ["name", "_creationTime"];
|
|
695
|
+
slug: ["slug", "_creationTime"];
|
|
696
|
+
by_id: ["_id"];
|
|
697
|
+
by_creation_time: ["_creationTime"];
|
|
698
|
+
};
|
|
699
|
+
searchIndexes: {};
|
|
700
|
+
vectorIndexes: {};
|
|
701
|
+
};
|
|
702
|
+
member: {
|
|
703
|
+
document: {
|
|
704
|
+
_id: import("convex/values").GenericId<"member">;
|
|
705
|
+
_creationTime: number;
|
|
706
|
+
teamId?: string | undefined;
|
|
707
|
+
createdAt: number;
|
|
708
|
+
userId: string;
|
|
709
|
+
organizationId: string;
|
|
710
|
+
role: string;
|
|
711
|
+
};
|
|
712
|
+
fieldPaths: ("createdAt" | "userId" | "_creationTime" | "organizationId" | "role" | "teamId") | "_id";
|
|
713
|
+
indexes: {
|
|
714
|
+
organizationId_userId: ["organizationId", "userId", "_creationTime"];
|
|
715
|
+
organizationId: ["organizationId", "_creationTime"];
|
|
716
|
+
userId: ["userId", "_creationTime"];
|
|
717
|
+
role: ["role", "_creationTime"];
|
|
718
|
+
teamId: ["teamId", "_creationTime"];
|
|
719
|
+
by_id: ["_id"];
|
|
720
|
+
by_creation_time: ["_creationTime"];
|
|
721
|
+
};
|
|
722
|
+
searchIndexes: {};
|
|
723
|
+
vectorIndexes: {};
|
|
724
|
+
};
|
|
725
|
+
invitation: {
|
|
726
|
+
document: {
|
|
727
|
+
_id: import("convex/values").GenericId<"invitation">;
|
|
728
|
+
_creationTime: number;
|
|
729
|
+
role?: string | undefined;
|
|
730
|
+
teamId?: string | undefined;
|
|
731
|
+
email: string;
|
|
234
732
|
expiresAt: number;
|
|
235
|
-
|
|
236
|
-
|
|
733
|
+
organizationId: string;
|
|
734
|
+
status: string;
|
|
735
|
+
inviterId: string;
|
|
237
736
|
};
|
|
238
|
-
fieldPaths: ("
|
|
737
|
+
fieldPaths: ("email" | "_creationTime" | "expiresAt" | "organizationId" | "role" | "teamId" | "status" | "inviterId") | "_id";
|
|
239
738
|
indexes: {
|
|
240
|
-
|
|
241
|
-
|
|
739
|
+
email_organizationId_status: ["email", "organizationId", "status", "_creationTime"];
|
|
740
|
+
organizationId_status: ["organizationId", "status", "_creationTime"];
|
|
741
|
+
organizationId: ["organizationId", "_creationTime"];
|
|
742
|
+
email: ["email", "_creationTime"];
|
|
743
|
+
role: ["role", "_creationTime"];
|
|
744
|
+
teamId: ["teamId", "_creationTime"];
|
|
745
|
+
status: ["status", "_creationTime"];
|
|
746
|
+
inviterId: ["inviterId", "_creationTime"];
|
|
747
|
+
by_id: ["_id"];
|
|
748
|
+
by_creation_time: ["_creationTime"];
|
|
749
|
+
};
|
|
750
|
+
searchIndexes: {};
|
|
751
|
+
vectorIndexes: {};
|
|
752
|
+
};
|
|
753
|
+
team: {
|
|
754
|
+
document: {
|
|
755
|
+
_id: import("convex/values").GenericId<"team">;
|
|
756
|
+
_creationTime: number;
|
|
757
|
+
updatedAt?: number | undefined;
|
|
758
|
+
name: string;
|
|
759
|
+
createdAt: number;
|
|
760
|
+
organizationId: string;
|
|
761
|
+
};
|
|
762
|
+
fieldPaths: ("name" | "createdAt" | "updatedAt" | "_creationTime" | "organizationId") | "_id";
|
|
763
|
+
indexes: {
|
|
764
|
+
organizationId: ["organizationId", "_creationTime"];
|
|
765
|
+
by_id: ["_id"];
|
|
766
|
+
by_creation_time: ["_creationTime"];
|
|
767
|
+
};
|
|
768
|
+
searchIndexes: {};
|
|
769
|
+
vectorIndexes: {};
|
|
770
|
+
};
|
|
771
|
+
ssoProvider: {
|
|
772
|
+
document: {
|
|
773
|
+
_id: import("convex/values").GenericId<"ssoProvider">;
|
|
774
|
+
_creationTime: number;
|
|
775
|
+
userId?: string | undefined;
|
|
776
|
+
organizationId?: string | undefined;
|
|
777
|
+
oidcConfig?: string | undefined;
|
|
778
|
+
samlConfig?: string | undefined;
|
|
779
|
+
providerId: string;
|
|
780
|
+
issuer: string;
|
|
781
|
+
domain: string;
|
|
782
|
+
};
|
|
783
|
+
fieldPaths: ("userId" | "_creationTime" | "providerId" | "organizationId" | "issuer" | "oidcConfig" | "samlConfig" | "domain") | "_id";
|
|
784
|
+
indexes: {
|
|
785
|
+
organizationId: ["organizationId", "_creationTime"];
|
|
786
|
+
domain: ["domain", "_creationTime"];
|
|
787
|
+
userId: ["userId", "_creationTime"];
|
|
788
|
+
providerId: ["providerId", "_creationTime"];
|
|
242
789
|
by_id: ["_id"];
|
|
243
790
|
by_creation_time: ["_creationTime"];
|
|
244
791
|
};
|
|
@@ -249,13 +796,54 @@ export declare const vv: {
|
|
|
249
796
|
document: {
|
|
250
797
|
_id: import("convex/values").GenericId<"jwks">;
|
|
251
798
|
_creationTime: number;
|
|
252
|
-
id?: string | undefined;
|
|
253
799
|
createdAt: number;
|
|
254
800
|
publicKey: string;
|
|
255
801
|
privateKey: string;
|
|
256
802
|
};
|
|
257
|
-
fieldPaths: "_id" | ("
|
|
803
|
+
fieldPaths: "_id" | ("createdAt" | "_creationTime" | "publicKey" | "privateKey");
|
|
804
|
+
indexes: {
|
|
805
|
+
by_id: ["_id"];
|
|
806
|
+
by_creation_time: ["_creationTime"];
|
|
807
|
+
};
|
|
808
|
+
searchIndexes: {};
|
|
809
|
+
vectorIndexes: {};
|
|
810
|
+
};
|
|
811
|
+
subscription: {
|
|
812
|
+
document: {
|
|
813
|
+
_id: import("convex/values").GenericId<"subscription">;
|
|
814
|
+
_creationTime: number;
|
|
815
|
+
stripeCustomerId?: string | undefined;
|
|
816
|
+
status?: string | undefined;
|
|
817
|
+
stripeSubscriptionId?: string | undefined;
|
|
818
|
+
periodStart?: number | undefined;
|
|
819
|
+
periodEnd?: number | undefined;
|
|
820
|
+
cancelAtPeriodEnd?: boolean | undefined;
|
|
821
|
+
seats?: number | undefined;
|
|
822
|
+
plan: string;
|
|
823
|
+
referenceId: string;
|
|
824
|
+
};
|
|
825
|
+
fieldPaths: ("stripeCustomerId" | "_creationTime" | "status" | "plan" | "referenceId" | "stripeSubscriptionId" | "periodStart" | "periodEnd" | "cancelAtPeriodEnd" | "seats") | "_id";
|
|
826
|
+
indexes: {
|
|
827
|
+
stripeSubscriptionId: ["stripeSubscriptionId", "_creationTime"];
|
|
828
|
+
stripeCustomerId: ["stripeCustomerId", "_creationTime"];
|
|
829
|
+
referenceId: ["referenceId", "_creationTime"];
|
|
830
|
+
by_id: ["_id"];
|
|
831
|
+
by_creation_time: ["_creationTime"];
|
|
832
|
+
};
|
|
833
|
+
searchIndexes: {};
|
|
834
|
+
vectorIndexes: {};
|
|
835
|
+
};
|
|
836
|
+
rateLimit: {
|
|
837
|
+
document: {
|
|
838
|
+
_id: import("convex/values").GenericId<"rateLimit">;
|
|
839
|
+
_creationTime: number;
|
|
840
|
+
key?: string | undefined;
|
|
841
|
+
lastRequest?: number | undefined;
|
|
842
|
+
count?: number | undefined;
|
|
843
|
+
};
|
|
844
|
+
fieldPaths: ("_creationTime" | "key" | "lastRequest" | "count") | "_id";
|
|
258
845
|
indexes: {
|
|
846
|
+
key: ["key", "_creationTime"];
|
|
259
847
|
by_id: ["_id"];
|
|
260
848
|
by_creation_time: ["_creationTime"];
|
|
261
849
|
};
|
|
@@ -266,10 +854,16 @@ export declare const vv: {
|
|
|
266
854
|
user: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
267
855
|
image?: string | undefined;
|
|
268
856
|
twoFactorEnabled?: boolean | undefined;
|
|
857
|
+
isAnonymous?: boolean | undefined;
|
|
858
|
+
username?: string | undefined;
|
|
859
|
+
displayUsername?: string | undefined;
|
|
860
|
+
phoneNumber?: string | undefined;
|
|
861
|
+
phoneNumberVerified?: boolean | undefined;
|
|
862
|
+
stripeCustomerId?: string | undefined;
|
|
863
|
+
userId?: string | undefined;
|
|
269
864
|
name: string;
|
|
270
865
|
email: string;
|
|
271
866
|
emailVerified: boolean;
|
|
272
|
-
userId: string;
|
|
273
867
|
createdAt: number;
|
|
274
868
|
updatedAt: number;
|
|
275
869
|
}, {
|
|
@@ -277,20 +871,31 @@ export declare const vv: {
|
|
|
277
871
|
email: import("convex/values").VString<string, "required">;
|
|
278
872
|
emailVerified: import("convex/values").VBoolean<boolean, "required">;
|
|
279
873
|
image: import("convex/values").VString<string | undefined, "optional">;
|
|
280
|
-
twoFactorEnabled: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
281
|
-
userId: import("convex/values").VString<string, "required">;
|
|
282
874
|
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
283
875
|
updatedAt: import("convex/values").VFloat64<number, "required">;
|
|
284
|
-
|
|
285
|
-
|
|
876
|
+
twoFactorEnabled: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
877
|
+
isAnonymous: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
878
|
+
username: import("convex/values").VString<string | undefined, "optional">;
|
|
879
|
+
displayUsername: import("convex/values").VString<string | undefined, "optional">;
|
|
880
|
+
phoneNumber: import("convex/values").VString<string | undefined, "optional">;
|
|
881
|
+
phoneNumberVerified: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
882
|
+
stripeCustomerId: import("convex/values").VString<string | undefined, "optional">;
|
|
883
|
+
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
884
|
+
}, "required", "name" | "email" | "emailVerified" | "image" | "createdAt" | "updatedAt" | "twoFactorEnabled" | "isAnonymous" | "username" | "displayUsername" | "phoneNumber" | "phoneNumberVerified" | "stripeCustomerId" | "userId">, {
|
|
885
|
+
email_name: ["email", "name", "_creationTime"];
|
|
886
|
+
name: ["name", "_creationTime"];
|
|
286
887
|
userId: ["userId", "_creationTime"];
|
|
888
|
+
email: ["email", "_creationTime"];
|
|
889
|
+
username: ["username", "_creationTime"];
|
|
890
|
+
phoneNumber: ["phoneNumber", "_creationTime"];
|
|
287
891
|
}, {}, {}>;
|
|
288
892
|
session: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
289
893
|
ipAddress?: string | undefined;
|
|
290
894
|
userAgent?: string | undefined;
|
|
291
|
-
|
|
895
|
+
activeOrganizationId?: string | undefined;
|
|
292
896
|
createdAt: number;
|
|
293
897
|
updatedAt: number;
|
|
898
|
+
userId: string;
|
|
294
899
|
expiresAt: number;
|
|
295
900
|
token: string;
|
|
296
901
|
}, {
|
|
@@ -301,11 +906,12 @@ export declare const vv: {
|
|
|
301
906
|
ipAddress: import("convex/values").VString<string | undefined, "optional">;
|
|
302
907
|
userAgent: import("convex/values").VString<string | undefined, "optional">;
|
|
303
908
|
userId: import("convex/values").VString<string, "required">;
|
|
304
|
-
|
|
909
|
+
activeOrganizationId: import("convex/values").VString<string | undefined, "optional">;
|
|
910
|
+
}, "required", "createdAt" | "updatedAt" | "userId" | "expiresAt" | "token" | "ipAddress" | "userAgent" | "activeOrganizationId">, {
|
|
911
|
+
expiresAt: ["expiresAt", "_creationTime"];
|
|
912
|
+
expiresAt_userId: ["expiresAt", "userId", "_creationTime"];
|
|
305
913
|
token: ["token", "_creationTime"];
|
|
306
914
|
userId: ["userId", "_creationTime"];
|
|
307
|
-
expiresAt: ["expiresAt", "_creationTime"];
|
|
308
|
-
userId_expiresAt: ["userId", "expiresAt", "_creationTime"];
|
|
309
915
|
}, {}, {}>;
|
|
310
916
|
account: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
311
917
|
accessToken?: string | undefined;
|
|
@@ -315,9 +921,9 @@ export declare const vv: {
|
|
|
315
921
|
refreshTokenExpiresAt?: number | undefined;
|
|
316
922
|
scope?: string | undefined;
|
|
317
923
|
password?: string | undefined;
|
|
318
|
-
userId: string;
|
|
319
924
|
createdAt: number;
|
|
320
925
|
updatedAt: number;
|
|
926
|
+
userId: string;
|
|
321
927
|
accountId: string;
|
|
322
928
|
providerId: string;
|
|
323
929
|
}, {
|
|
@@ -333,11 +939,27 @@ export declare const vv: {
|
|
|
333
939
|
password: import("convex/values").VString<string | undefined, "optional">;
|
|
334
940
|
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
335
941
|
updatedAt: import("convex/values").VFloat64<number, "required">;
|
|
336
|
-
}, "required", "
|
|
337
|
-
userId: ["userId", "_creationTime"];
|
|
942
|
+
}, "required", "createdAt" | "updatedAt" | "userId" | "accountId" | "providerId" | "accessToken" | "refreshToken" | "idToken" | "accessTokenExpiresAt" | "refreshTokenExpiresAt" | "scope" | "password">, {
|
|
338
943
|
accountId: ["accountId", "_creationTime"];
|
|
339
|
-
|
|
340
|
-
|
|
944
|
+
accountId_providerId: ["accountId", "providerId", "_creationTime"];
|
|
945
|
+
providerId_userId: ["providerId", "userId", "_creationTime"];
|
|
946
|
+
userId: ["userId", "_creationTime"];
|
|
947
|
+
}, {}, {}>;
|
|
948
|
+
verification: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
949
|
+
createdAt?: number | undefined;
|
|
950
|
+
updatedAt?: number | undefined;
|
|
951
|
+
expiresAt: number;
|
|
952
|
+
identifier: string;
|
|
953
|
+
value: string;
|
|
954
|
+
}, {
|
|
955
|
+
identifier: import("convex/values").VString<string, "required">;
|
|
956
|
+
value: import("convex/values").VString<string, "required">;
|
|
957
|
+
expiresAt: import("convex/values").VFloat64<number, "required">;
|
|
958
|
+
createdAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
959
|
+
updatedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
960
|
+
}, "required", "createdAt" | "updatedAt" | "expiresAt" | "identifier" | "value">, {
|
|
961
|
+
expiresAt: ["expiresAt", "_creationTime"];
|
|
962
|
+
identifier: ["identifier", "_creationTime"];
|
|
341
963
|
}, {}, {}>;
|
|
342
964
|
twoFactor: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
343
965
|
userId: string;
|
|
@@ -350,24 +972,243 @@ export declare const vv: {
|
|
|
350
972
|
}, "required", "userId" | "secret" | "backupCodes">, {
|
|
351
973
|
userId: ["userId", "_creationTime"];
|
|
352
974
|
}, {}, {}>;
|
|
353
|
-
|
|
975
|
+
passkey: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
976
|
+
name?: string | undefined;
|
|
977
|
+
createdAt?: number | undefined;
|
|
978
|
+
transports?: string | undefined;
|
|
979
|
+
aaguid?: string | undefined;
|
|
980
|
+
userId: string;
|
|
981
|
+
publicKey: string;
|
|
982
|
+
credentialID: string;
|
|
983
|
+
counter: number;
|
|
984
|
+
deviceType: string;
|
|
985
|
+
backedUp: boolean;
|
|
986
|
+
}, {
|
|
987
|
+
name: import("convex/values").VString<string | undefined, "optional">;
|
|
988
|
+
publicKey: import("convex/values").VString<string, "required">;
|
|
989
|
+
userId: import("convex/values").VString<string, "required">;
|
|
990
|
+
credentialID: import("convex/values").VString<string, "required">;
|
|
991
|
+
counter: import("convex/values").VFloat64<number, "required">;
|
|
992
|
+
deviceType: import("convex/values").VString<string, "required">;
|
|
993
|
+
backedUp: import("convex/values").VBoolean<boolean, "required">;
|
|
994
|
+
transports: import("convex/values").VString<string | undefined, "optional">;
|
|
995
|
+
createdAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
996
|
+
aaguid: import("convex/values").VString<string | undefined, "optional">;
|
|
997
|
+
}, "required", "name" | "createdAt" | "userId" | "publicKey" | "credentialID" | "counter" | "deviceType" | "backedUp" | "transports" | "aaguid">, {
|
|
998
|
+
credentialID: ["credentialID", "_creationTime"];
|
|
999
|
+
userId: ["userId", "_creationTime"];
|
|
1000
|
+
}, {}, {}>;
|
|
1001
|
+
apikey: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
1002
|
+
name?: string | undefined;
|
|
1003
|
+
expiresAt?: number | undefined;
|
|
1004
|
+
start?: string | undefined;
|
|
1005
|
+
prefix?: string | undefined;
|
|
1006
|
+
refillInterval?: number | undefined;
|
|
1007
|
+
refillAmount?: number | undefined;
|
|
1008
|
+
lastRefillAt?: number | undefined;
|
|
1009
|
+
enabled?: boolean | undefined;
|
|
1010
|
+
rateLimitEnabled?: boolean | undefined;
|
|
1011
|
+
rateLimitTimeWindow?: number | undefined;
|
|
1012
|
+
rateLimitMax?: number | undefined;
|
|
1013
|
+
requestCount?: number | undefined;
|
|
1014
|
+
remaining?: number | undefined;
|
|
1015
|
+
lastRequest?: number | undefined;
|
|
1016
|
+
permissions?: string | undefined;
|
|
1017
|
+
metadata?: string | undefined;
|
|
1018
|
+
createdAt: number;
|
|
1019
|
+
updatedAt: number;
|
|
1020
|
+
userId: string;
|
|
1021
|
+
key: string;
|
|
1022
|
+
}, {
|
|
1023
|
+
name: import("convex/values").VString<string | undefined, "optional">;
|
|
1024
|
+
start: import("convex/values").VString<string | undefined, "optional">;
|
|
1025
|
+
prefix: import("convex/values").VString<string | undefined, "optional">;
|
|
1026
|
+
key: import("convex/values").VString<string, "required">;
|
|
1027
|
+
userId: import("convex/values").VString<string, "required">;
|
|
1028
|
+
refillInterval: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1029
|
+
refillAmount: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1030
|
+
lastRefillAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1031
|
+
enabled: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
1032
|
+
rateLimitEnabled: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
1033
|
+
rateLimitTimeWindow: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1034
|
+
rateLimitMax: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1035
|
+
requestCount: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1036
|
+
remaining: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1037
|
+
lastRequest: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1038
|
+
expiresAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1039
|
+
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
1040
|
+
updatedAt: import("convex/values").VFloat64<number, "required">;
|
|
1041
|
+
permissions: import("convex/values").VString<string | undefined, "optional">;
|
|
1042
|
+
metadata: import("convex/values").VString<string | undefined, "optional">;
|
|
1043
|
+
}, "required", "name" | "createdAt" | "updatedAt" | "userId" | "expiresAt" | "start" | "prefix" | "key" | "refillInterval" | "refillAmount" | "lastRefillAt" | "enabled" | "rateLimitEnabled" | "rateLimitTimeWindow" | "rateLimitMax" | "requestCount" | "remaining" | "lastRequest" | "permissions" | "metadata">, {
|
|
1044
|
+
key: ["key", "_creationTime"];
|
|
1045
|
+
userId: ["userId", "_creationTime"];
|
|
1046
|
+
}, {}, {}>;
|
|
1047
|
+
oauthApplication: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
1048
|
+
name?: string | undefined;
|
|
1049
|
+
createdAt?: number | undefined;
|
|
1050
|
+
updatedAt?: number | undefined;
|
|
1051
|
+
userId?: string | undefined;
|
|
1052
|
+
type?: string | undefined;
|
|
1053
|
+
metadata?: string | undefined;
|
|
1054
|
+
icon?: string | undefined;
|
|
1055
|
+
clientId?: string | undefined;
|
|
1056
|
+
clientSecret?: string | undefined;
|
|
1057
|
+
redirectURLs?: string | undefined;
|
|
1058
|
+
disabled?: boolean | undefined;
|
|
1059
|
+
}, {
|
|
1060
|
+
name: import("convex/values").VString<string | undefined, "optional">;
|
|
1061
|
+
icon: import("convex/values").VString<string | undefined, "optional">;
|
|
1062
|
+
metadata: import("convex/values").VString<string | undefined, "optional">;
|
|
1063
|
+
clientId: import("convex/values").VString<string | undefined, "optional">;
|
|
1064
|
+
clientSecret: import("convex/values").VString<string | undefined, "optional">;
|
|
1065
|
+
redirectURLs: import("convex/values").VString<string | undefined, "optional">;
|
|
1066
|
+
type: import("convex/values").VString<string | undefined, "optional">;
|
|
1067
|
+
disabled: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
1068
|
+
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
1069
|
+
createdAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1070
|
+
updatedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1071
|
+
}, "required", "name" | "createdAt" | "updatedAt" | "userId" | "type" | "metadata" | "icon" | "clientId" | "clientSecret" | "redirectURLs" | "disabled">, {
|
|
1072
|
+
clientId: ["clientId", "_creationTime"];
|
|
1073
|
+
}, {}, {}>;
|
|
1074
|
+
oauthAccessToken: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
354
1075
|
createdAt?: number | undefined;
|
|
355
1076
|
updatedAt?: number | undefined;
|
|
1077
|
+
userId?: string | undefined;
|
|
1078
|
+
accessToken?: string | undefined;
|
|
1079
|
+
refreshToken?: string | undefined;
|
|
1080
|
+
accessTokenExpiresAt?: number | undefined;
|
|
1081
|
+
refreshTokenExpiresAt?: number | undefined;
|
|
1082
|
+
clientId?: string | undefined;
|
|
1083
|
+
scopes?: string | undefined;
|
|
1084
|
+
}, {
|
|
1085
|
+
accessToken: import("convex/values").VString<string | undefined, "optional">;
|
|
1086
|
+
refreshToken: import("convex/values").VString<string | undefined, "optional">;
|
|
1087
|
+
accessTokenExpiresAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1088
|
+
refreshTokenExpiresAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1089
|
+
clientId: import("convex/values").VString<string | undefined, "optional">;
|
|
1090
|
+
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
1091
|
+
scopes: import("convex/values").VString<string | undefined, "optional">;
|
|
1092
|
+
createdAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1093
|
+
updatedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1094
|
+
}, "required", "createdAt" | "updatedAt" | "userId" | "accessToken" | "refreshToken" | "accessTokenExpiresAt" | "refreshTokenExpiresAt" | "clientId" | "scopes">, {
|
|
1095
|
+
accessToken: ["accessToken", "_creationTime"];
|
|
1096
|
+
refreshToken: ["refreshToken", "_creationTime"];
|
|
1097
|
+
}, {}, {}>;
|
|
1098
|
+
oauthConsent: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
1099
|
+
createdAt?: number | undefined;
|
|
1100
|
+
updatedAt?: number | undefined;
|
|
1101
|
+
userId?: string | undefined;
|
|
1102
|
+
clientId?: string | undefined;
|
|
1103
|
+
scopes?: string | undefined;
|
|
1104
|
+
consentGiven?: boolean | undefined;
|
|
1105
|
+
}, {
|
|
1106
|
+
clientId: import("convex/values").VString<string | undefined, "optional">;
|
|
1107
|
+
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
1108
|
+
scopes: import("convex/values").VString<string | undefined, "optional">;
|
|
1109
|
+
createdAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1110
|
+
updatedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1111
|
+
consentGiven: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
1112
|
+
}, "required", "createdAt" | "updatedAt" | "userId" | "clientId" | "scopes" | "consentGiven">, {
|
|
1113
|
+
clientId_userId: ["clientId", "userId", "_creationTime"];
|
|
1114
|
+
}, {}, {}>;
|
|
1115
|
+
organization: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
1116
|
+
metadata?: string | undefined;
|
|
1117
|
+
slug?: string | undefined;
|
|
1118
|
+
logo?: string | undefined;
|
|
1119
|
+
name: string;
|
|
1120
|
+
createdAt: number;
|
|
1121
|
+
}, {
|
|
1122
|
+
name: import("convex/values").VString<string, "required">;
|
|
1123
|
+
slug: import("convex/values").VString<string | undefined, "optional">;
|
|
1124
|
+
logo: import("convex/values").VString<string | undefined, "optional">;
|
|
1125
|
+
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
1126
|
+
metadata: import("convex/values").VString<string | undefined, "optional">;
|
|
1127
|
+
}, "required", "name" | "createdAt" | "metadata" | "slug" | "logo">, {
|
|
1128
|
+
name: ["name", "_creationTime"];
|
|
1129
|
+
slug: ["slug", "_creationTime"];
|
|
1130
|
+
}, {}, {}>;
|
|
1131
|
+
member: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
1132
|
+
teamId?: string | undefined;
|
|
1133
|
+
createdAt: number;
|
|
1134
|
+
userId: string;
|
|
1135
|
+
organizationId: string;
|
|
1136
|
+
role: string;
|
|
1137
|
+
}, {
|
|
1138
|
+
organizationId: import("convex/values").VString<string, "required">;
|
|
1139
|
+
userId: import("convex/values").VString<string, "required">;
|
|
1140
|
+
role: import("convex/values").VString<string, "required">;
|
|
1141
|
+
teamId: import("convex/values").VString<string | undefined, "optional">;
|
|
1142
|
+
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
1143
|
+
}, "required", "createdAt" | "userId" | "organizationId" | "role" | "teamId">, {
|
|
1144
|
+
organizationId_userId: ["organizationId", "userId", "_creationTime"];
|
|
1145
|
+
organizationId: ["organizationId", "_creationTime"];
|
|
1146
|
+
userId: ["userId", "_creationTime"];
|
|
1147
|
+
role: ["role", "_creationTime"];
|
|
1148
|
+
teamId: ["teamId", "_creationTime"];
|
|
1149
|
+
}, {}, {}>;
|
|
1150
|
+
invitation: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
1151
|
+
role?: string | undefined;
|
|
1152
|
+
teamId?: string | undefined;
|
|
1153
|
+
email: string;
|
|
356
1154
|
expiresAt: number;
|
|
357
|
-
|
|
358
|
-
|
|
1155
|
+
organizationId: string;
|
|
1156
|
+
status: string;
|
|
1157
|
+
inviterId: string;
|
|
359
1158
|
}, {
|
|
360
|
-
|
|
361
|
-
|
|
1159
|
+
organizationId: import("convex/values").VString<string, "required">;
|
|
1160
|
+
email: import("convex/values").VString<string, "required">;
|
|
1161
|
+
role: import("convex/values").VString<string | undefined, "optional">;
|
|
1162
|
+
teamId: import("convex/values").VString<string | undefined, "optional">;
|
|
1163
|
+
status: import("convex/values").VString<string, "required">;
|
|
362
1164
|
expiresAt: import("convex/values").VFloat64<number, "required">;
|
|
363
|
-
|
|
1165
|
+
inviterId: import("convex/values").VString<string, "required">;
|
|
1166
|
+
}, "required", "email" | "expiresAt" | "organizationId" | "role" | "teamId" | "status" | "inviterId">, {
|
|
1167
|
+
email_organizationId_status: ["email", "organizationId", "status", "_creationTime"];
|
|
1168
|
+
organizationId_status: ["organizationId", "status", "_creationTime"];
|
|
1169
|
+
organizationId: ["organizationId", "_creationTime"];
|
|
1170
|
+
email: ["email", "_creationTime"];
|
|
1171
|
+
role: ["role", "_creationTime"];
|
|
1172
|
+
teamId: ["teamId", "_creationTime"];
|
|
1173
|
+
status: ["status", "_creationTime"];
|
|
1174
|
+
inviterId: ["inviterId", "_creationTime"];
|
|
1175
|
+
}, {}, {}>;
|
|
1176
|
+
team: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
1177
|
+
updatedAt?: number | undefined;
|
|
1178
|
+
name: string;
|
|
1179
|
+
createdAt: number;
|
|
1180
|
+
organizationId: string;
|
|
1181
|
+
}, {
|
|
1182
|
+
name: import("convex/values").VString<string, "required">;
|
|
1183
|
+
organizationId: import("convex/values").VString<string, "required">;
|
|
1184
|
+
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
364
1185
|
updatedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
365
|
-
}, "required", "
|
|
366
|
-
|
|
367
|
-
|
|
1186
|
+
}, "required", "name" | "createdAt" | "updatedAt" | "organizationId">, {
|
|
1187
|
+
organizationId: ["organizationId", "_creationTime"];
|
|
1188
|
+
}, {}, {}>;
|
|
1189
|
+
ssoProvider: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
1190
|
+
userId?: string | undefined;
|
|
1191
|
+
organizationId?: string | undefined;
|
|
1192
|
+
oidcConfig?: string | undefined;
|
|
1193
|
+
samlConfig?: string | undefined;
|
|
1194
|
+
providerId: string;
|
|
1195
|
+
issuer: string;
|
|
1196
|
+
domain: string;
|
|
1197
|
+
}, {
|
|
1198
|
+
issuer: import("convex/values").VString<string, "required">;
|
|
1199
|
+
oidcConfig: import("convex/values").VString<string | undefined, "optional">;
|
|
1200
|
+
samlConfig: import("convex/values").VString<string | undefined, "optional">;
|
|
1201
|
+
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
1202
|
+
providerId: import("convex/values").VString<string, "required">;
|
|
1203
|
+
organizationId: import("convex/values").VString<string | undefined, "optional">;
|
|
1204
|
+
domain: import("convex/values").VString<string, "required">;
|
|
1205
|
+
}, "required", "userId" | "providerId" | "organizationId" | "issuer" | "oidcConfig" | "samlConfig" | "domain">, {
|
|
1206
|
+
organizationId: ["organizationId", "_creationTime"];
|
|
1207
|
+
domain: ["domain", "_creationTime"];
|
|
1208
|
+
userId: ["userId", "_creationTime"];
|
|
1209
|
+
providerId: ["providerId", "_creationTime"];
|
|
368
1210
|
}, {}, {}>;
|
|
369
1211
|
jwks: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
370
|
-
id?: string | undefined;
|
|
371
1212
|
createdAt: number;
|
|
372
1213
|
publicKey: string;
|
|
373
1214
|
privateKey: string;
|
|
@@ -375,8 +1216,43 @@ export declare const vv: {
|
|
|
375
1216
|
publicKey: import("convex/values").VString<string, "required">;
|
|
376
1217
|
privateKey: import("convex/values").VString<string, "required">;
|
|
377
1218
|
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
378
|
-
|
|
379
|
-
|
|
1219
|
+
}, "required", "createdAt" | "publicKey" | "privateKey">, {}, {}, {}>;
|
|
1220
|
+
subscription: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
1221
|
+
stripeCustomerId?: string | undefined;
|
|
1222
|
+
status?: string | undefined;
|
|
1223
|
+
stripeSubscriptionId?: string | undefined;
|
|
1224
|
+
periodStart?: number | undefined;
|
|
1225
|
+
periodEnd?: number | undefined;
|
|
1226
|
+
cancelAtPeriodEnd?: boolean | undefined;
|
|
1227
|
+
seats?: number | undefined;
|
|
1228
|
+
plan: string;
|
|
1229
|
+
referenceId: string;
|
|
1230
|
+
}, {
|
|
1231
|
+
plan: import("convex/values").VString<string, "required">;
|
|
1232
|
+
referenceId: import("convex/values").VString<string, "required">;
|
|
1233
|
+
stripeCustomerId: import("convex/values").VString<string | undefined, "optional">;
|
|
1234
|
+
stripeSubscriptionId: import("convex/values").VString<string | undefined, "optional">;
|
|
1235
|
+
status: import("convex/values").VString<string | undefined, "optional">;
|
|
1236
|
+
periodStart: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1237
|
+
periodEnd: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1238
|
+
cancelAtPeriodEnd: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
1239
|
+
seats: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1240
|
+
}, "required", "stripeCustomerId" | "status" | "plan" | "referenceId" | "stripeSubscriptionId" | "periodStart" | "periodEnd" | "cancelAtPeriodEnd" | "seats">, {
|
|
1241
|
+
stripeSubscriptionId: ["stripeSubscriptionId", "_creationTime"];
|
|
1242
|
+
stripeCustomerId: ["stripeCustomerId", "_creationTime"];
|
|
1243
|
+
referenceId: ["referenceId", "_creationTime"];
|
|
1244
|
+
}, {}, {}>;
|
|
1245
|
+
rateLimit: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
1246
|
+
key?: string | undefined;
|
|
1247
|
+
lastRequest?: number | undefined;
|
|
1248
|
+
count?: number | undefined;
|
|
1249
|
+
}, {
|
|
1250
|
+
key: import("convex/values").VString<string | undefined, "optional">;
|
|
1251
|
+
count: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1252
|
+
lastRequest: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1253
|
+
}, "required", "key" | "lastRequest" | "count">, {
|
|
1254
|
+
key: ["key", "_creationTime"];
|
|
1255
|
+
}, {}, {}>;
|
|
380
1256
|
}[TableName]["validator"], {
|
|
381
1257
|
_id: import("convex/values").VId<import("convex/values").GenericId<TableName>, "required">;
|
|
382
1258
|
_creationTime: import("convex/values").VFloat64<number, "required">;
|