@convex-dev/better-auth 0.8.0-alpha.6 → 0.8.0-alpha.8
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.map +1 -1
- package/dist/commonjs/client/adapter.js +2 -1
- package/dist/commonjs/client/adapter.js.map +1 -1
- package/dist/commonjs/client/index.d.ts +13 -13
- package/dist/commonjs/component/lib.d.ts +13 -13
- package/dist/commonjs/component/schema.d.ts +47 -40
- package/dist/commonjs/component/schema.d.ts.map +1 -1
- package/dist/commonjs/component/schema.js +36 -29
- package/dist/commonjs/component/schema.js.map +1 -1
- package/dist/commonjs/component/util.d.ts +97 -94
- package/dist/commonjs/component/util.d.ts.map +1 -1
- package/dist/commonjs/plugins/convex/index.d.ts.map +1 -1
- package/dist/esm/client/adapter.d.ts.map +1 -1
- package/dist/esm/client/adapter.js +2 -1
- package/dist/esm/client/adapter.js.map +1 -1
- package/dist/esm/client/index.d.ts +13 -13
- package/dist/esm/component/lib.d.ts +13 -13
- package/dist/esm/component/schema.d.ts +47 -40
- package/dist/esm/component/schema.d.ts.map +1 -1
- package/dist/esm/component/schema.js +36 -29
- package/dist/esm/component/schema.js.map +1 -1
- package/dist/esm/component/util.d.ts +97 -94
- package/dist/esm/component/util.d.ts.map +1 -1
- package/dist/esm/plugins/convex/index.d.ts.map +1 -1
- package/package.json +7 -3
- package/src/client/adapter.ts +2 -1
- package/src/component/schema.ts +38 -31
|
@@ -259,6 +259,42 @@ export declare const vv: {
|
|
|
259
259
|
searchIndexes: {};
|
|
260
260
|
vectorIndexes: {};
|
|
261
261
|
};
|
|
262
|
+
team: {
|
|
263
|
+
document: {
|
|
264
|
+
_id: import("convex/values").GenericId<"team">;
|
|
265
|
+
_creationTime: number;
|
|
266
|
+
updatedAt?: number | null | undefined;
|
|
267
|
+
name: string;
|
|
268
|
+
createdAt: number;
|
|
269
|
+
organizationId: string;
|
|
270
|
+
};
|
|
271
|
+
fieldPaths: ("name" | "createdAt" | "updatedAt" | "_creationTime" | "organizationId") | "_id";
|
|
272
|
+
indexes: {
|
|
273
|
+
organizationId: ["organizationId", "_creationTime"];
|
|
274
|
+
by_id: ["_id"];
|
|
275
|
+
by_creation_time: ["_creationTime"];
|
|
276
|
+
};
|
|
277
|
+
searchIndexes: {};
|
|
278
|
+
vectorIndexes: {};
|
|
279
|
+
};
|
|
280
|
+
teamMember: {
|
|
281
|
+
document: {
|
|
282
|
+
_id: import("convex/values").GenericId<"teamMember">;
|
|
283
|
+
_creationTime: number;
|
|
284
|
+
createdAt?: number | null | undefined;
|
|
285
|
+
userId: string;
|
|
286
|
+
teamId: string;
|
|
287
|
+
};
|
|
288
|
+
fieldPaths: ("createdAt" | "userId" | "teamId" | "_creationTime") | "_id";
|
|
289
|
+
indexes: {
|
|
290
|
+
teamId: ["teamId", "_creationTime"];
|
|
291
|
+
userId: ["userId", "_creationTime"];
|
|
292
|
+
by_id: ["_id"];
|
|
293
|
+
by_creation_time: ["_creationTime"];
|
|
294
|
+
};
|
|
295
|
+
searchIndexes: {};
|
|
296
|
+
vectorIndexes: {};
|
|
297
|
+
};
|
|
262
298
|
organization: {
|
|
263
299
|
document: {
|
|
264
300
|
_id: import("convex/values").GenericId<"organization">;
|
|
@@ -325,41 +361,6 @@ export declare const vv: {
|
|
|
325
361
|
searchIndexes: {};
|
|
326
362
|
vectorIndexes: {};
|
|
327
363
|
};
|
|
328
|
-
team: {
|
|
329
|
-
document: {
|
|
330
|
-
_id: import("convex/values").GenericId<"team">;
|
|
331
|
-
_creationTime: number;
|
|
332
|
-
updatedAt?: number | null | undefined;
|
|
333
|
-
name: string;
|
|
334
|
-
createdAt: number;
|
|
335
|
-
organizationId: string;
|
|
336
|
-
};
|
|
337
|
-
fieldPaths: ("name" | "createdAt" | "updatedAt" | "_creationTime" | "organizationId") | "_id";
|
|
338
|
-
indexes: {
|
|
339
|
-
organizationId: ["organizationId", "_creationTime"];
|
|
340
|
-
by_id: ["_id"];
|
|
341
|
-
by_creation_time: ["_creationTime"];
|
|
342
|
-
};
|
|
343
|
-
searchIndexes: {};
|
|
344
|
-
vectorIndexes: {};
|
|
345
|
-
};
|
|
346
|
-
teamMember: {
|
|
347
|
-
document: {
|
|
348
|
-
_id: import("convex/values").GenericId<"teamMember">;
|
|
349
|
-
_creationTime: number;
|
|
350
|
-
createdAt?: number | null | undefined;
|
|
351
|
-
userId: string;
|
|
352
|
-
teamId: string;
|
|
353
|
-
};
|
|
354
|
-
fieldPaths: ("createdAt" | "userId" | "teamId" | "_creationTime") | "_id";
|
|
355
|
-
indexes: {
|
|
356
|
-
userId: ["userId", "_creationTime"];
|
|
357
|
-
by_id: ["_id"];
|
|
358
|
-
by_creation_time: ["_creationTime"];
|
|
359
|
-
};
|
|
360
|
-
searchIndexes: {};
|
|
361
|
-
vectorIndexes: {};
|
|
362
|
-
};
|
|
363
364
|
ssoProvider: {
|
|
364
365
|
document: {
|
|
365
366
|
_id: import("convex/values").GenericId<"ssoProvider">;
|
|
@@ -722,6 +723,42 @@ export declare const vv: {
|
|
|
722
723
|
searchIndexes: {};
|
|
723
724
|
vectorIndexes: {};
|
|
724
725
|
};
|
|
726
|
+
team: {
|
|
727
|
+
document: {
|
|
728
|
+
_id: import("convex/values").GenericId<"team">;
|
|
729
|
+
_creationTime: number;
|
|
730
|
+
updatedAt?: number | null | undefined;
|
|
731
|
+
name: string;
|
|
732
|
+
createdAt: number;
|
|
733
|
+
organizationId: string;
|
|
734
|
+
};
|
|
735
|
+
fieldPaths: ("name" | "createdAt" | "updatedAt" | "_creationTime" | "organizationId") | "_id";
|
|
736
|
+
indexes: {
|
|
737
|
+
organizationId: ["organizationId", "_creationTime"];
|
|
738
|
+
by_id: ["_id"];
|
|
739
|
+
by_creation_time: ["_creationTime"];
|
|
740
|
+
};
|
|
741
|
+
searchIndexes: {};
|
|
742
|
+
vectorIndexes: {};
|
|
743
|
+
};
|
|
744
|
+
teamMember: {
|
|
745
|
+
document: {
|
|
746
|
+
_id: import("convex/values").GenericId<"teamMember">;
|
|
747
|
+
_creationTime: number;
|
|
748
|
+
createdAt?: number | null | undefined;
|
|
749
|
+
userId: string;
|
|
750
|
+
teamId: string;
|
|
751
|
+
};
|
|
752
|
+
fieldPaths: ("createdAt" | "userId" | "teamId" | "_creationTime") | "_id";
|
|
753
|
+
indexes: {
|
|
754
|
+
teamId: ["teamId", "_creationTime"];
|
|
755
|
+
userId: ["userId", "_creationTime"];
|
|
756
|
+
by_id: ["_id"];
|
|
757
|
+
by_creation_time: ["_creationTime"];
|
|
758
|
+
};
|
|
759
|
+
searchIndexes: {};
|
|
760
|
+
vectorIndexes: {};
|
|
761
|
+
};
|
|
725
762
|
organization: {
|
|
726
763
|
document: {
|
|
727
764
|
_id: import("convex/values").GenericId<"organization">;
|
|
@@ -788,41 +825,6 @@ export declare const vv: {
|
|
|
788
825
|
searchIndexes: {};
|
|
789
826
|
vectorIndexes: {};
|
|
790
827
|
};
|
|
791
|
-
team: {
|
|
792
|
-
document: {
|
|
793
|
-
_id: import("convex/values").GenericId<"team">;
|
|
794
|
-
_creationTime: number;
|
|
795
|
-
updatedAt?: number | null | undefined;
|
|
796
|
-
name: string;
|
|
797
|
-
createdAt: number;
|
|
798
|
-
organizationId: string;
|
|
799
|
-
};
|
|
800
|
-
fieldPaths: ("name" | "createdAt" | "updatedAt" | "_creationTime" | "organizationId") | "_id";
|
|
801
|
-
indexes: {
|
|
802
|
-
organizationId: ["organizationId", "_creationTime"];
|
|
803
|
-
by_id: ["_id"];
|
|
804
|
-
by_creation_time: ["_creationTime"];
|
|
805
|
-
};
|
|
806
|
-
searchIndexes: {};
|
|
807
|
-
vectorIndexes: {};
|
|
808
|
-
};
|
|
809
|
-
teamMember: {
|
|
810
|
-
document: {
|
|
811
|
-
_id: import("convex/values").GenericId<"teamMember">;
|
|
812
|
-
_creationTime: number;
|
|
813
|
-
createdAt?: number | null | undefined;
|
|
814
|
-
userId: string;
|
|
815
|
-
teamId: string;
|
|
816
|
-
};
|
|
817
|
-
fieldPaths: ("createdAt" | "userId" | "teamId" | "_creationTime") | "_id";
|
|
818
|
-
indexes: {
|
|
819
|
-
userId: ["userId", "_creationTime"];
|
|
820
|
-
by_id: ["_id"];
|
|
821
|
-
by_creation_time: ["_creationTime"];
|
|
822
|
-
};
|
|
823
|
-
searchIndexes: {};
|
|
824
|
-
vectorIndexes: {};
|
|
825
|
-
};
|
|
826
828
|
ssoProvider: {
|
|
827
829
|
document: {
|
|
828
830
|
_id: import("convex/values").GenericId<"ssoProvider">;
|
|
@@ -1199,6 +1201,31 @@ export declare const vv: {
|
|
|
1199
1201
|
}, "required", "createdAt" | "updatedAt" | "userId" | "clientId" | "scopes" | "consentGiven">, {
|
|
1200
1202
|
clientId_userId: ["clientId", "userId", "_creationTime"];
|
|
1201
1203
|
}, {}, {}>;
|
|
1204
|
+
team: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
1205
|
+
updatedAt?: number | null | undefined;
|
|
1206
|
+
name: string;
|
|
1207
|
+
createdAt: number;
|
|
1208
|
+
organizationId: string;
|
|
1209
|
+
}, {
|
|
1210
|
+
name: import("convex/values").VString<string, "required">;
|
|
1211
|
+
organizationId: import("convex/values").VString<string, "required">;
|
|
1212
|
+
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
1213
|
+
updatedAt: import("convex/values").VUnion<number | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VFloat64<number, "required">], "optional", never>;
|
|
1214
|
+
}, "required", "name" | "createdAt" | "updatedAt" | "organizationId">, {
|
|
1215
|
+
organizationId: ["organizationId", "_creationTime"];
|
|
1216
|
+
}, {}, {}>;
|
|
1217
|
+
teamMember: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
1218
|
+
createdAt?: number | null | undefined;
|
|
1219
|
+
userId: string;
|
|
1220
|
+
teamId: string;
|
|
1221
|
+
}, {
|
|
1222
|
+
teamId: import("convex/values").VString<string, "required">;
|
|
1223
|
+
userId: import("convex/values").VString<string, "required">;
|
|
1224
|
+
createdAt: import("convex/values").VUnion<number | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VFloat64<number, "required">], "optional", never>;
|
|
1225
|
+
}, "required", "createdAt" | "userId" | "teamId">, {
|
|
1226
|
+
teamId: ["teamId", "_creationTime"];
|
|
1227
|
+
userId: ["userId", "_creationTime"];
|
|
1228
|
+
}, {}, {}>;
|
|
1202
1229
|
organization: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
1203
1230
|
metadata?: string | null | undefined;
|
|
1204
1231
|
slug?: string | null | undefined;
|
|
@@ -1254,30 +1281,6 @@ export declare const vv: {
|
|
|
1254
1281
|
status: ["status", "_creationTime"];
|
|
1255
1282
|
inviterId: ["inviterId", "_creationTime"];
|
|
1256
1283
|
}, {}, {}>;
|
|
1257
|
-
team: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
1258
|
-
updatedAt?: number | null | undefined;
|
|
1259
|
-
name: string;
|
|
1260
|
-
createdAt: number;
|
|
1261
|
-
organizationId: string;
|
|
1262
|
-
}, {
|
|
1263
|
-
name: import("convex/values").VString<string, "required">;
|
|
1264
|
-
organizationId: import("convex/values").VString<string, "required">;
|
|
1265
|
-
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
1266
|
-
updatedAt: import("convex/values").VUnion<number | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VFloat64<number, "required">], "optional", never>;
|
|
1267
|
-
}, "required", "name" | "createdAt" | "updatedAt" | "organizationId">, {
|
|
1268
|
-
organizationId: ["organizationId", "_creationTime"];
|
|
1269
|
-
}, {}, {}>;
|
|
1270
|
-
teamMember: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
1271
|
-
createdAt?: number | null | undefined;
|
|
1272
|
-
userId: string;
|
|
1273
|
-
teamId: string;
|
|
1274
|
-
}, {
|
|
1275
|
-
teamId: import("convex/values").VString<string, "required">;
|
|
1276
|
-
userId: import("convex/values").VString<string, "required">;
|
|
1277
|
-
createdAt: import("convex/values").VUnion<number | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VFloat64<number, "required">], "optional", never>;
|
|
1278
|
-
}, "required", "createdAt" | "userId" | "teamId">, {
|
|
1279
|
-
userId: ["userId", "_creationTime"];
|
|
1280
|
-
}, {}, {}>;
|
|
1281
1284
|
ssoProvider: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
1282
1285
|
userId?: string | null | undefined;
|
|
1283
1286
|
organizationId?: string | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../src/component/util.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,EAAE
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../src/component/util.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAqXyuuF,CAAC;qCAAkD,CAAC;;;;;;;;;iCAA0Q,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAD3jvF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../src/client/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EACL,gBAAgB,EAGjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EAGhB,MAAM,eAAe,CAAC;AA8EvB,KAAK,UAAU,GACX,eAAe,CAAC,GAAG,CAAC,GACpB,kBAAkB,CAAC,GAAG,CAAC,GACvB,gBAAgB,CAAC,GAAG,CAAC,CAAC;AAE1B,UAAU,mBAAmB;IAC3B;;OAEG;IACH,SAAS,CAAC,EAAE,gBAAgB,CAAC;CAC9B;AACD,eAAO,MAAM,aAAa,GACxB,KAAK,UAAU,EACf,WAAW,UAAU,EACrB,SAAQ,mBAAwB,
|
|
1
|
+
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../src/client/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EACL,gBAAgB,EAGjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EAGhB,MAAM,eAAe,CAAC;AA8EvB,KAAK,UAAU,GACX,eAAe,CAAC,GAAG,CAAC,GACpB,kBAAkB,CAAC,GAAG,CAAC,GACvB,gBAAgB,CAAC,GAAG,CAAC,CAAC;AAE1B,UAAU,mBAAmB;IAC3B;;OAEG;IACH,SAAS,CAAC,EAAE,gBAAgB,CAAC;CAC9B;AACD,eAAO,MAAM,aAAa,GACxB,KAAK,UAAU,EACf,WAAW,UAAU,EACrB,SAAQ,mBAAwB,wFAyKjC,CAAC"}
|
|
@@ -77,7 +77,8 @@ export const convexAdapter = (ctx, component, config = {}) => {
|
|
|
77
77
|
return data;
|
|
78
78
|
},
|
|
79
79
|
},
|
|
80
|
-
adapter: () => {
|
|
80
|
+
adapter: ({ options }) => {
|
|
81
|
+
options.telemetry = { enabled: false };
|
|
81
82
|
return {
|
|
82
83
|
id: "convex",
|
|
83
84
|
create: async ({ model, data, select }) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.js","sourceRoot":"","sources":["../../../src/client/adapter.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,aAAa,GACd,MAAM,sBAAsB,CAAC;AAU9B,MAAM,gBAAgB,GAAG,KAAK,EAC5B,IAMC,EACD,EAAE,KAAK,EAAE,QAAQ,KAA4C,EAAE,EAC/D,EAAE;IACF,MAAM,KAAK,GAKP;QACF,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,IAAI;QACZ,IAAI,EAAE,EAAE;QACR,KAAK,EAAE,CAAC;KACT,CAAC;IACF,MAAM,QAAQ,GAAG,CACf,MAAuE,EACvE,EAAE;QACF,KAAK,CAAC,MAAM;YACV,MAAM,CAAC,UAAU,KAAK,kBAAkB;gBACxC,MAAM,CAAC,UAAU,KAAK,eAAe;gBACnC,CAAC,CAAC,MAAM,CAAC,WAAW,IAAI,MAAM,CAAC,cAAc;gBAC7C,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC;QAC5B,IAAI,MAAM,CAAC,IAA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AC;oBACD,MAAM,MAAM,GAAG,MAAM,gBAAgB,CAAC,KAAK,EAAE,EAAE,cAAc,EAAE,EAAE,EAAE;wBACjE,OAAO,MAAM,GAAG,CAAC,WAAW,CAAC,SAAS,CAAC,SAAS,CAAC,GAAG,CAAC,UAAU,EAAE;4BAC/D,GAAG,IAAI;4BACP,KAAK,EAAE,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC;4BAC7B,cAAc;yBACf,CAAC,CAAC;oBACL,CAAC,CAAC,CAAC;oBACH,OAAO,MAAM,CAAC,KAAK,CAAC;gBACtB,CAAC;gBACD,UAAU,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;oBACzB,IAAI,CAAC,CAAC,aAAa,IAAI,GAAG,CAAC,EAAE,CAAC;wBAC5B,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAC;oBAC9C,CAAC;oBACD,MAAM,MAAM,GAAG,MAAM,gBAAgB,CAAC,KAAK,EAAE,EAAE,cAAc,EAAE,EAAE,EAAE;wBACjE,OAAO,MAAM,GAAG,CAAC,WAAW,CAAC,SAAS,CAAC,SAAS,CAAC,GAAG,CAAC,UAAU,EAAE;4BAC/D,KAAK,EAAE;gCACL,GAAG,IAAI;gCACP,KAAK,EAAE,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC;gCAC7B,cAAc;6BACf;yBACF,CAAC,CAAC;oBACL,CAAC,CAAC,CAAC;oBACH,OAAO,MAAM,CAAC,KAAK,CAAC;gBACtB,CAAC;aACF,CAAC;QACJ,CAAC;KACF,CAAC,CAAC;AACL,CAAC,CAAC"}
|
|
@@ -423,6 +423,19 @@ export declare class BetterAuth<UserId extends string = string> {
|
|
|
423
423
|
clientId?: string | null | undefined;
|
|
424
424
|
scopes?: string | null | undefined;
|
|
425
425
|
consentGiven?: boolean | null | undefined;
|
|
426
|
+
} | {
|
|
427
|
+
_id: string;
|
|
428
|
+
_creationTime: number;
|
|
429
|
+
updatedAt?: number | null | undefined;
|
|
430
|
+
name: string;
|
|
431
|
+
createdAt: number;
|
|
432
|
+
organizationId: string;
|
|
433
|
+
} | {
|
|
434
|
+
_id: string;
|
|
435
|
+
_creationTime: number;
|
|
436
|
+
createdAt?: number | null | undefined;
|
|
437
|
+
userId: string;
|
|
438
|
+
teamId: string;
|
|
426
439
|
} | {
|
|
427
440
|
_id: string;
|
|
428
441
|
_creationTime: number;
|
|
@@ -448,19 +461,6 @@ export declare class BetterAuth<UserId extends string = string> {
|
|
|
448
461
|
organizationId: string;
|
|
449
462
|
status: string;
|
|
450
463
|
inviterId: string;
|
|
451
|
-
} | {
|
|
452
|
-
_id: string;
|
|
453
|
-
_creationTime: number;
|
|
454
|
-
updatedAt?: number | null | undefined;
|
|
455
|
-
name: string;
|
|
456
|
-
createdAt: number;
|
|
457
|
-
organizationId: string;
|
|
458
|
-
} | {
|
|
459
|
-
_id: string;
|
|
460
|
-
_creationTime: number;
|
|
461
|
-
createdAt?: number | null | undefined;
|
|
462
|
-
userId: string;
|
|
463
|
-
teamId: string;
|
|
464
464
|
} | {
|
|
465
465
|
_id: string;
|
|
466
466
|
_creationTime: number;
|
|
@@ -250,6 +250,19 @@ export declare const updateOne: import("convex/server").RegisteredMutation<"publ
|
|
|
250
250
|
clientId?: string | null | undefined;
|
|
251
251
|
scopes?: string | null | undefined;
|
|
252
252
|
consentGiven?: boolean | null | undefined;
|
|
253
|
+
} | {
|
|
254
|
+
_id: import("convex/values").GenericId<"team">;
|
|
255
|
+
_creationTime: number;
|
|
256
|
+
updatedAt?: number | null | undefined;
|
|
257
|
+
name: string;
|
|
258
|
+
createdAt: number;
|
|
259
|
+
organizationId: string;
|
|
260
|
+
} | {
|
|
261
|
+
_id: import("convex/values").GenericId<"teamMember">;
|
|
262
|
+
_creationTime: number;
|
|
263
|
+
createdAt?: number | null | undefined;
|
|
264
|
+
userId: string;
|
|
265
|
+
teamId: string;
|
|
253
266
|
} | {
|
|
254
267
|
_id: import("convex/values").GenericId<"organization">;
|
|
255
268
|
_creationTime: number;
|
|
@@ -275,19 +288,6 @@ export declare const updateOne: import("convex/server").RegisteredMutation<"publ
|
|
|
275
288
|
organizationId: string;
|
|
276
289
|
status: string;
|
|
277
290
|
inviterId: string;
|
|
278
|
-
} | {
|
|
279
|
-
_id: import("convex/values").GenericId<"team">;
|
|
280
|
-
_creationTime: number;
|
|
281
|
-
updatedAt?: number | null | undefined;
|
|
282
|
-
name: string;
|
|
283
|
-
createdAt: number;
|
|
284
|
-
organizationId: string;
|
|
285
|
-
} | {
|
|
286
|
-
_id: import("convex/values").GenericId<"teamMember">;
|
|
287
|
-
_creationTime: number;
|
|
288
|
-
createdAt?: number | null | undefined;
|
|
289
|
-
userId: string;
|
|
290
|
-
teamId: string;
|
|
291
291
|
} | {
|
|
292
292
|
_id: import("convex/values").GenericId<"ssoProvider">;
|
|
293
293
|
_creationTime: number;
|
|
@@ -273,6 +273,31 @@ declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
273
273
|
}, "required", "createdAt" | "updatedAt" | "userId" | "clientId" | "scopes" | "consentGiven">, {
|
|
274
274
|
clientId_userId: ["clientId", "userId", "_creationTime"];
|
|
275
275
|
}, {}, {}>;
|
|
276
|
+
team: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
277
|
+
updatedAt?: number | null | undefined;
|
|
278
|
+
name: string;
|
|
279
|
+
createdAt: number;
|
|
280
|
+
organizationId: string;
|
|
281
|
+
}, {
|
|
282
|
+
name: import("convex/values").VString<string, "required">;
|
|
283
|
+
organizationId: import("convex/values").VString<string, "required">;
|
|
284
|
+
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
285
|
+
updatedAt: import("convex/values").VUnion<number | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VFloat64<number, "required">], "optional", never>;
|
|
286
|
+
}, "required", "name" | "createdAt" | "updatedAt" | "organizationId">, {
|
|
287
|
+
organizationId: ["organizationId", "_creationTime"];
|
|
288
|
+
}, {}, {}>;
|
|
289
|
+
teamMember: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
290
|
+
createdAt?: number | null | undefined;
|
|
291
|
+
userId: string;
|
|
292
|
+
teamId: string;
|
|
293
|
+
}, {
|
|
294
|
+
teamId: import("convex/values").VString<string, "required">;
|
|
295
|
+
userId: import("convex/values").VString<string, "required">;
|
|
296
|
+
createdAt: import("convex/values").VUnion<number | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VFloat64<number, "required">], "optional", never>;
|
|
297
|
+
}, "required", "createdAt" | "userId" | "teamId">, {
|
|
298
|
+
teamId: ["teamId", "_creationTime"];
|
|
299
|
+
userId: ["userId", "_creationTime"];
|
|
300
|
+
}, {}, {}>;
|
|
276
301
|
organization: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
277
302
|
metadata?: string | null | undefined;
|
|
278
303
|
slug?: string | null | undefined;
|
|
@@ -328,30 +353,6 @@ declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
328
353
|
status: ["status", "_creationTime"];
|
|
329
354
|
inviterId: ["inviterId", "_creationTime"];
|
|
330
355
|
}, {}, {}>;
|
|
331
|
-
team: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
332
|
-
updatedAt?: number | null | undefined;
|
|
333
|
-
name: string;
|
|
334
|
-
createdAt: number;
|
|
335
|
-
organizationId: string;
|
|
336
|
-
}, {
|
|
337
|
-
name: import("convex/values").VString<string, "required">;
|
|
338
|
-
organizationId: import("convex/values").VString<string, "required">;
|
|
339
|
-
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
340
|
-
updatedAt: import("convex/values").VUnion<number | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VFloat64<number, "required">], "optional", never>;
|
|
341
|
-
}, "required", "name" | "createdAt" | "updatedAt" | "organizationId">, {
|
|
342
|
-
organizationId: ["organizationId", "_creationTime"];
|
|
343
|
-
}, {}, {}>;
|
|
344
|
-
teamMember: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
345
|
-
createdAt?: number | null | undefined;
|
|
346
|
-
userId: string;
|
|
347
|
-
teamId: string;
|
|
348
|
-
}, {
|
|
349
|
-
teamId: import("convex/values").VString<string, "required">;
|
|
350
|
-
userId: import("convex/values").VString<string, "required">;
|
|
351
|
-
createdAt: import("convex/values").VUnion<number | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VFloat64<number, "required">], "optional", never>;
|
|
352
|
-
}, "required", "createdAt" | "userId" | "teamId">, {
|
|
353
|
-
userId: ["userId", "_creationTime"];
|
|
354
|
-
}, {}, {}>;
|
|
355
356
|
ssoProvider: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
356
357
|
userId?: string | null | undefined;
|
|
357
358
|
organizationId?: string | null | undefined;
|
|
@@ -512,6 +513,28 @@ export declare const specialFields: {
|
|
|
512
513
|
unique: boolean;
|
|
513
514
|
};
|
|
514
515
|
};
|
|
516
|
+
team: {
|
|
517
|
+
organizationId: {
|
|
518
|
+
references: {
|
|
519
|
+
model: string;
|
|
520
|
+
field: string;
|
|
521
|
+
};
|
|
522
|
+
};
|
|
523
|
+
};
|
|
524
|
+
teamMember: {
|
|
525
|
+
teamId: {
|
|
526
|
+
references: {
|
|
527
|
+
model: string;
|
|
528
|
+
field: string;
|
|
529
|
+
};
|
|
530
|
+
};
|
|
531
|
+
userId: {
|
|
532
|
+
references: {
|
|
533
|
+
model: string;
|
|
534
|
+
field: string;
|
|
535
|
+
};
|
|
536
|
+
};
|
|
537
|
+
};
|
|
515
538
|
organization: {
|
|
516
539
|
name: {
|
|
517
540
|
sortable: boolean;
|
|
@@ -564,22 +587,6 @@ export declare const specialFields: {
|
|
|
564
587
|
};
|
|
565
588
|
};
|
|
566
589
|
};
|
|
567
|
-
team: {
|
|
568
|
-
organizationId: {
|
|
569
|
-
references: {
|
|
570
|
-
model: string;
|
|
571
|
-
field: string;
|
|
572
|
-
};
|
|
573
|
-
};
|
|
574
|
-
};
|
|
575
|
-
teamMember: {
|
|
576
|
-
userId: {
|
|
577
|
-
references: {
|
|
578
|
-
model: string;
|
|
579
|
-
field: string;
|
|
580
|
-
};
|
|
581
|
-
};
|
|
582
|
-
};
|
|
583
590
|
ssoProvider: {
|
|
584
591
|
userId: {
|
|
585
592
|
references: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/component/schema.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/component/schema.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAuQV,CAAC;AAEH,eAAe,MAAM,CAAC;AAEtB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyKzB,CAAC"}
|
|
@@ -153,6 +153,20 @@ const schema = defineSchema({
|
|
|
153
153
|
consentGiven: v.optional(v.union(v.null(), v.boolean())),
|
|
154
154
|
})
|
|
155
155
|
.index("clientId_userId", ["clientId", "userId"]),
|
|
156
|
+
team: defineTable({
|
|
157
|
+
name: v.string(),
|
|
158
|
+
organizationId: v.string(),
|
|
159
|
+
createdAt: v.number(),
|
|
160
|
+
updatedAt: v.optional(v.union(v.null(), v.number())),
|
|
161
|
+
})
|
|
162
|
+
.index("organizationId", ["organizationId"]),
|
|
163
|
+
teamMember: defineTable({
|
|
164
|
+
teamId: v.string(),
|
|
165
|
+
userId: v.string(),
|
|
166
|
+
createdAt: v.optional(v.union(v.null(), v.number())),
|
|
167
|
+
})
|
|
168
|
+
.index("teamId", ["teamId"])
|
|
169
|
+
.index("userId", ["userId"]),
|
|
156
170
|
organization: defineTable({
|
|
157
171
|
name: v.string(),
|
|
158
172
|
slug: v.optional(v.union(v.null(), v.string())),
|
|
@@ -186,19 +200,6 @@ const schema = defineSchema({
|
|
|
186
200
|
.index("teamId", ["teamId"])
|
|
187
201
|
.index("status", ["status"])
|
|
188
202
|
.index("inviterId", ["inviterId"]),
|
|
189
|
-
team: defineTable({
|
|
190
|
-
name: v.string(),
|
|
191
|
-
organizationId: v.string(),
|
|
192
|
-
createdAt: v.number(),
|
|
193
|
-
updatedAt: v.optional(v.union(v.null(), v.number())),
|
|
194
|
-
})
|
|
195
|
-
.index("organizationId", ["organizationId"]),
|
|
196
|
-
teamMember: defineTable({
|
|
197
|
-
teamId: v.string(),
|
|
198
|
-
userId: v.string(),
|
|
199
|
-
createdAt: v.optional(v.union(v.null(), v.number())),
|
|
200
|
-
})
|
|
201
|
-
.index("userId", ["userId"]),
|
|
202
203
|
ssoProvider: defineTable({
|
|
203
204
|
issuer: v.string(),
|
|
204
205
|
oidcConfig: v.optional(v.union(v.null(), v.string())),
|
|
@@ -323,6 +324,28 @@ export const specialFields = {
|
|
|
323
324
|
unique: true
|
|
324
325
|
}
|
|
325
326
|
},
|
|
327
|
+
team: {
|
|
328
|
+
organizationId: {
|
|
329
|
+
references: {
|
|
330
|
+
model: "organization",
|
|
331
|
+
field: "id"
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
teamMember: {
|
|
336
|
+
teamId: {
|
|
337
|
+
references: {
|
|
338
|
+
model: "team",
|
|
339
|
+
field: "id"
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
userId: {
|
|
343
|
+
references: {
|
|
344
|
+
model: "user",
|
|
345
|
+
field: "id"
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
},
|
|
326
349
|
organization: {
|
|
327
350
|
name: {
|
|
328
351
|
sortable: true
|
|
@@ -375,22 +398,6 @@ export const specialFields = {
|
|
|
375
398
|
}
|
|
376
399
|
}
|
|
377
400
|
},
|
|
378
|
-
team: {
|
|
379
|
-
organizationId: {
|
|
380
|
-
references: {
|
|
381
|
-
model: "organization",
|
|
382
|
-
field: "id"
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
},
|
|
386
|
-
teamMember: {
|
|
387
|
-
userId: {
|
|
388
|
-
references: {
|
|
389
|
-
model: "user",
|
|
390
|
-
field: "id"
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
},
|
|
394
401
|
ssoProvider: {
|
|
395
402
|
userId: {
|
|
396
403
|
references: {
|