@convex-dev/better-auth 0.10.13 → 0.11.1
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/auth-options.d.ts.map +1 -1
- package/dist/auth-options.js +0 -2
- package/dist/auth-options.js.map +1 -1
- package/dist/client/adapter-utils.d.ts +10 -10
- package/dist/client/adapter-utils.d.ts.map +1 -1
- package/dist/client/adapter-utils.js +41 -32
- package/dist/client/adapter-utils.js.map +1 -1
- package/dist/client/adapter.d.ts +1 -1
- package/dist/client/adapter.d.ts.map +1 -1
- package/dist/client/adapter.js +113 -7
- package/dist/client/adapter.js.map +1 -1
- package/dist/client/create-api.d.ts +8 -7
- package/dist/client/create-api.d.ts.map +1 -1
- package/dist/client/create-api.js +1 -0
- package/dist/client/create-api.js.map +1 -1
- package/dist/client/create-client.d.ts +1 -1
- package/dist/client/create-client.d.ts.map +1 -1
- package/dist/client/create-client.js +8 -7
- package/dist/client/create-client.js.map +1 -1
- package/dist/client/create-schema.d.ts +0 -1
- package/dist/client/create-schema.d.ts.map +1 -1
- package/dist/client/create-schema.js +0 -1
- package/dist/client/create-schema.js.map +1 -1
- package/dist/component/_generated/api.d.ts +12 -0
- package/dist/component/_generated/api.d.ts.map +1 -1
- package/dist/component/_generated/api.js.map +1 -1
- package/dist/component/_generated/component.d.ts +7407 -92
- package/dist/component/_generated/component.d.ts.map +1 -1
- package/dist/component/adapter.d.ts +8 -7
- package/dist/component/adapter.d.ts.map +1 -1
- package/dist/component/adapterTest.d.ts +1 -7
- package/dist/component/adapterTest.d.ts.map +1 -1
- package/dist/component/adapterTest.js +193 -390
- package/dist/component/adapterTest.js.map +1 -1
- package/dist/component/schema.d.ts +35 -74
- package/dist/component/schema.d.ts.map +1 -1
- package/dist/component/schema.js +16 -21
- package/dist/component/schema.js.map +1 -1
- package/dist/component/testProfiles/adapterAdditionalFields.d.ts +131 -0
- package/dist/component/testProfiles/adapterAdditionalFields.d.ts.map +1 -0
- package/dist/component/testProfiles/adapterAdditionalFields.js +5 -0
- package/dist/component/testProfiles/adapterAdditionalFields.js.map +1 -0
- package/dist/component/testProfiles/adapterOrganizationJoins.d.ts +131 -0
- package/dist/component/testProfiles/adapterOrganizationJoins.d.ts.map +1 -0
- package/dist/component/testProfiles/adapterOrganizationJoins.js +5 -0
- package/dist/component/testProfiles/adapterOrganizationJoins.js.map +1 -0
- package/dist/component/testProfiles/adapterPluginTable.d.ts +131 -0
- package/dist/component/testProfiles/adapterPluginTable.d.ts.map +1 -0
- package/dist/component/testProfiles/adapterPluginTable.js +5 -0
- package/dist/component/testProfiles/adapterPluginTable.js.map +1 -0
- package/dist/component/testProfiles/adapterRenameField.d.ts +131 -0
- package/dist/component/testProfiles/adapterRenameField.d.ts.map +1 -0
- package/dist/component/testProfiles/adapterRenameField.js +5 -0
- package/dist/component/testProfiles/adapterRenameField.js.map +1 -0
- package/dist/component/testProfiles/adapterRenameUserCustom.d.ts +131 -0
- package/dist/component/testProfiles/adapterRenameUserCustom.d.ts.map +1 -0
- package/dist/component/testProfiles/adapterRenameUserCustom.js +5 -0
- package/dist/component/testProfiles/adapterRenameUserCustom.js.map +1 -0
- package/dist/component/testProfiles/adapterRenameUserTable.d.ts +131 -0
- package/dist/component/testProfiles/adapterRenameUserTable.d.ts.map +1 -0
- package/dist/component/testProfiles/adapterRenameUserTable.js +5 -0
- package/dist/component/testProfiles/adapterRenameUserTable.js.map +1 -0
- package/dist/component/testProfiles/auth-options.profile-additional-fields.d.ts +3 -0
- package/dist/component/testProfiles/auth-options.profile-additional-fields.d.ts.map +1 -0
- package/dist/component/testProfiles/auth-options.profile-additional-fields.js +38 -0
- package/dist/component/testProfiles/auth-options.profile-additional-fields.js.map +1 -0
- package/dist/component/testProfiles/auth-options.profile-plugin-table.d.ts +3 -0
- package/dist/component/testProfiles/auth-options.profile-plugin-table.d.ts.map +1 -0
- package/dist/component/testProfiles/auth-options.profile-plugin-table.js +92 -0
- package/dist/component/testProfiles/auth-options.profile-plugin-table.js.map +1 -0
- package/dist/component/testProfiles/auth-options.profile-rename-joins.d.ts +6 -0
- package/dist/component/testProfiles/auth-options.profile-rename-joins.d.ts.map +1 -0
- package/dist/component/testProfiles/auth-options.profile-rename-joins.js +49 -0
- package/dist/component/testProfiles/auth-options.profile-rename-joins.js.map +1 -0
- package/dist/component/testProfiles/schema.profile-additional-fields.d.ts +227 -0
- package/dist/component/testProfiles/schema.profile-additional-fields.d.ts.map +1 -0
- package/dist/component/testProfiles/schema.profile-additional-fields.js +37 -0
- package/dist/component/testProfiles/schema.profile-additional-fields.js.map +1 -0
- package/dist/component/testProfiles/schema.profile-plugin-table.d.ts +450 -0
- package/dist/component/testProfiles/schema.profile-plugin-table.d.ts.map +1 -0
- package/dist/component/testProfiles/schema.profile-plugin-table.js +116 -0
- package/dist/component/testProfiles/schema.profile-plugin-table.js.map +1 -0
- package/dist/nextjs/index.d.ts.map +1 -1
- package/dist/nextjs/index.js +1 -0
- package/dist/nextjs/index.js.map +1 -1
- package/dist/plugins/convex/index.d.ts +131 -12
- package/dist/plugins/convex/index.d.ts.map +1 -1
- package/dist/plugins/convex/index.js +12 -5
- package/dist/plugins/convex/index.js.map +1 -1
- package/dist/plugins/cross-domain/client.d.ts +1 -1
- package/dist/plugins/cross-domain/index.d.ts +126 -1
- package/dist/plugins/cross-domain/index.d.ts.map +1 -1
- package/dist/plugins/cross-domain/index.js +10 -15
- package/dist/plugins/cross-domain/index.js.map +1 -1
- package/dist/react-start/index.d.ts.map +1 -1
- package/dist/react-start/index.js +1 -0
- package/dist/react-start/index.js.map +1 -1
- package/dist/test/adapter-factory/auth-flow.d.ts +42 -0
- package/dist/test/adapter-factory/auth-flow.d.ts.map +1 -0
- package/dist/test/adapter-factory/auth-flow.js +145 -0
- package/dist/test/adapter-factory/auth-flow.js.map +1 -0
- package/dist/test/adapter-factory/basic.d.ts +190 -0
- package/dist/test/adapter-factory/basic.d.ts.map +1 -0
- package/dist/test/adapter-factory/basic.js +2713 -0
- package/dist/test/adapter-factory/basic.js.map +1 -0
- package/dist/test/adapter-factory/convex-custom.d.ts +18 -0
- package/dist/test/adapter-factory/convex-custom.d.ts.map +1 -0
- package/dist/test/adapter-factory/convex-custom.js +610 -0
- package/dist/test/adapter-factory/convex-custom.js.map +1 -0
- package/dist/test/adapter-factory/index.d.ts +11 -0
- package/dist/test/adapter-factory/index.d.ts.map +1 -0
- package/dist/test/adapter-factory/index.js +11 -0
- package/dist/test/adapter-factory/index.js.map +1 -0
- package/dist/test/adapter-factory/joins.d.ts +18 -0
- package/dist/test/adapter-factory/joins.d.ts.map +1 -0
- package/dist/test/adapter-factory/joins.js +22 -0
- package/dist/test/adapter-factory/joins.js.map +1 -0
- package/dist/test/adapter-factory/number-id.d.ts +18 -0
- package/dist/test/adapter-factory/number-id.d.ts.map +1 -0
- package/dist/test/adapter-factory/number-id.js +36 -0
- package/dist/test/adapter-factory/number-id.js.map +1 -0
- package/dist/test/adapter-factory/profile-additional-fields.d.ts +71 -0
- package/dist/test/adapter-factory/profile-additional-fields.d.ts.map +1 -0
- package/dist/test/adapter-factory/profile-additional-fields.js +44 -0
- package/dist/test/adapter-factory/profile-additional-fields.js.map +1 -0
- package/dist/test/adapter-factory/profile-plugin-table.d.ts +19 -0
- package/dist/test/adapter-factory/profile-plugin-table.d.ts.map +1 -0
- package/dist/test/adapter-factory/profile-plugin-table.js +25 -0
- package/dist/test/adapter-factory/profile-plugin-table.js.map +1 -0
- package/dist/test/adapter-factory/profile-rename-joins.d.ts +73 -0
- package/dist/test/adapter-factory/profile-rename-joins.d.ts.map +1 -0
- package/dist/test/adapter-factory/profile-rename-joins.js +34 -0
- package/dist/test/adapter-factory/profile-rename-joins.js.map +1 -0
- package/dist/test/adapter-factory/transactions.d.ts +21 -0
- package/dist/test/adapter-factory/transactions.d.ts.map +1 -0
- package/dist/test/adapter-factory/transactions.js +28 -0
- package/dist/test/adapter-factory/transactions.js.map +1 -0
- package/dist/test/adapter-factory/uuid.d.ts +18 -0
- package/dist/test/adapter-factory/uuid.d.ts.map +1 -0
- package/dist/test/adapter-factory/uuid.js +58 -0
- package/dist/test/adapter-factory/uuid.js.map +1 -0
- package/dist/utils/index.d.ts +18 -3
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +8 -4
- package/src/auth-options.ts +0 -2
- package/src/client/adapter-utils.ts +80 -73
- package/src/client/adapter.test.ts +2 -74
- package/src/client/adapter.ts +142 -7
- package/src/client/create-api.ts +1 -0
- package/src/client/create-client.ts +14 -6
- package/src/client/create-schema.ts +0 -1
- package/src/component/_generated/api.ts +12 -0
- package/src/component/_generated/component.ts +19454 -215
- package/src/component/adapterTest.ts +250 -466
- package/src/component/schema.ts +21 -26
- package/src/component/testProfiles/adapterAdditionalFields.ts +13 -0
- package/src/component/testProfiles/adapterOrganizationJoins.ts +13 -0
- package/src/component/testProfiles/adapterPluginTable.ts +13 -0
- package/src/component/testProfiles/adapterRenameField.ts +13 -0
- package/src/component/testProfiles/adapterRenameUserCustom.ts +13 -0
- package/src/component/testProfiles/adapterRenameUserTable.ts +13 -0
- package/src/component/testProfiles/auth-options.profile-additional-fields.ts +39 -0
- package/src/component/testProfiles/auth-options.profile-plugin-table.ts +93 -0
- package/src/component/testProfiles/auth-options.profile-rename-joins.ts +54 -0
- package/src/component/testProfiles/schema.profile-additional-fields.ts +39 -0
- package/src/component/testProfiles/schema.profile-plugin-table.ts +130 -0
- package/src/nextjs/index.ts +1 -0
- package/src/plugins/convex/index.test.ts +55 -0
- package/src/plugins/convex/index.ts +26 -11
- package/src/plugins/cross-domain/index.test.ts +67 -0
- package/src/plugins/cross-domain/index.ts +10 -21
- package/src/react-start/index.ts +1 -0
- package/src/test/adapter-factory/auth-flow.ts +170 -0
- package/src/test/adapter-factory/basic.ts +3190 -0
- package/src/test/adapter-factory/convex-custom.ts +706 -0
- package/src/test/adapter-factory/index.ts +10 -0
- package/src/test/adapter-factory/joins.ts +28 -0
- package/src/test/adapter-factory/number-id.ts +45 -0
- package/src/test/adapter-factory/profile-additional-fields.ts +84 -0
- package/src/test/adapter-factory/profile-plugin-table.ts +37 -0
- package/src/test/adapter-factory/profile-rename-joins.ts +67 -0
- package/src/test/adapter-factory/transactions.ts +38 -0
- package/src/test/adapter-factory/uuid.ts +67 -0
- package/src/utils/index.ts +25 -3
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is auto-generated. Do not edit this file manually.
|
|
3
|
+
* To regenerate the schema, run:
|
|
4
|
+
* `npx @better-auth/cli generate --output src/component/schema.ts -y`
|
|
5
|
+
*
|
|
6
|
+
* To customize the schema, generate to an alternate file and import
|
|
7
|
+
* the table definitions to your schema file. See
|
|
8
|
+
* https://labs.convex.dev/better-auth/features/local-install#adding-custom-indexes.
|
|
9
|
+
*/
|
|
1
10
|
export declare const tables: {
|
|
2
11
|
user: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
3
12
|
image?: string | null | undefined;
|
|
@@ -115,43 +124,17 @@ export declare const tables: {
|
|
|
115
124
|
}, "required", "userId" | "secret" | "backupCodes">, {
|
|
116
125
|
userId: ["userId", "_creationTime"];
|
|
117
126
|
}, {}, {}>;
|
|
118
|
-
passkey: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
119
|
-
createdAt?: number | null | undefined;
|
|
120
|
-
name?: string | null | undefined;
|
|
121
|
-
transports?: string | null | undefined;
|
|
122
|
-
aaguid?: string | null | undefined;
|
|
123
|
-
userId: string;
|
|
124
|
-
publicKey: string;
|
|
125
|
-
credentialID: string;
|
|
126
|
-
counter: number;
|
|
127
|
-
deviceType: string;
|
|
128
|
-
backedUp: boolean;
|
|
129
|
-
}, {
|
|
130
|
-
name: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
|
|
131
|
-
publicKey: import("convex/values").VString<string, "required">;
|
|
132
|
-
userId: import("convex/values").VString<string, "required">;
|
|
133
|
-
credentialID: import("convex/values").VString<string, "required">;
|
|
134
|
-
counter: import("convex/values").VFloat64<number, "required">;
|
|
135
|
-
deviceType: import("convex/values").VString<string, "required">;
|
|
136
|
-
backedUp: import("convex/values").VBoolean<boolean, "required">;
|
|
137
|
-
transports: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
|
|
138
|
-
createdAt: import("convex/values").VUnion<number | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VFloat64<number, "required">], "optional", never>;
|
|
139
|
-
aaguid: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
|
|
140
|
-
}, "required", "createdAt" | "name" | "userId" | "publicKey" | "credentialID" | "counter" | "deviceType" | "backedUp" | "transports" | "aaguid">, {
|
|
141
|
-
credentialID: ["credentialID", "_creationTime"];
|
|
142
|
-
userId: ["userId", "_creationTime"];
|
|
143
|
-
}, {}, {}>;
|
|
144
127
|
oauthApplication: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
145
128
|
type?: string | null | undefined;
|
|
129
|
+
metadata?: string | null | undefined;
|
|
146
130
|
createdAt?: number | null | undefined;
|
|
147
131
|
updatedAt?: number | null | undefined;
|
|
148
132
|
name?: string | null | undefined;
|
|
149
133
|
userId?: string | null | undefined;
|
|
150
|
-
metadata?: string | null | undefined;
|
|
151
134
|
icon?: string | null | undefined;
|
|
152
135
|
clientId?: string | null | undefined;
|
|
153
136
|
clientSecret?: string | null | undefined;
|
|
154
|
-
|
|
137
|
+
redirectUrls?: string | null | undefined;
|
|
155
138
|
disabled?: boolean | null | undefined;
|
|
156
139
|
}, {
|
|
157
140
|
name: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
|
|
@@ -159,13 +142,13 @@ export declare const tables: {
|
|
|
159
142
|
metadata: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
|
|
160
143
|
clientId: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
|
|
161
144
|
clientSecret: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
|
|
162
|
-
|
|
145
|
+
redirectUrls: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
|
|
163
146
|
type: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
|
|
164
147
|
disabled: import("convex/values").VUnion<boolean | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VBoolean<boolean, "required">], "optional", never>;
|
|
165
148
|
userId: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
|
|
166
149
|
createdAt: import("convex/values").VUnion<number | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VFloat64<number, "required">], "optional", never>;
|
|
167
150
|
updatedAt: import("convex/values").VUnion<number | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VFloat64<number, "required">], "optional", never>;
|
|
168
|
-
}, "required", "type" | "
|
|
151
|
+
}, "required", "type" | "metadata" | "createdAt" | "updatedAt" | "name" | "userId" | "icon" | "clientId" | "clientSecret" | "redirectUrls" | "disabled">, {
|
|
169
152
|
clientId: ["clientId", "_creationTime"];
|
|
170
153
|
userId: ["userId", "_creationTime"];
|
|
171
154
|
}, {}, {}>;
|
|
@@ -214,6 +197,7 @@ export declare const tables: {
|
|
|
214
197
|
userId: ["userId", "_creationTime"];
|
|
215
198
|
}, {}, {}>;
|
|
216
199
|
jwks: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
200
|
+
expiresAt?: number | null | undefined;
|
|
217
201
|
createdAt: number;
|
|
218
202
|
publicKey: string;
|
|
219
203
|
privateKey: string;
|
|
@@ -221,15 +205,16 @@ export declare const tables: {
|
|
|
221
205
|
publicKey: import("convex/values").VString<string, "required">;
|
|
222
206
|
privateKey: import("convex/values").VString<string, "required">;
|
|
223
207
|
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
224
|
-
|
|
208
|
+
expiresAt: import("convex/values").VUnion<number | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VFloat64<number, "required">], "optional", never>;
|
|
209
|
+
}, "required", "createdAt" | "expiresAt" | "publicKey" | "privateKey">, {}, {}, {}>;
|
|
225
210
|
rateLimit: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
226
|
-
key
|
|
227
|
-
count
|
|
228
|
-
lastRequest
|
|
211
|
+
key: string;
|
|
212
|
+
count: number;
|
|
213
|
+
lastRequest: number;
|
|
229
214
|
}, {
|
|
230
|
-
key: import("convex/values").
|
|
231
|
-
count: import("convex/values").
|
|
232
|
-
lastRequest: import("convex/values").
|
|
215
|
+
key: import("convex/values").VString<string, "required">;
|
|
216
|
+
count: import("convex/values").VFloat64<number, "required">;
|
|
217
|
+
lastRequest: import("convex/values").VFloat64<number, "required">;
|
|
233
218
|
}, "required", "key" | "count" | "lastRequest">, {
|
|
234
219
|
key: ["key", "_creationTime"];
|
|
235
220
|
}, {}, {}>;
|
|
@@ -351,43 +336,17 @@ declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
351
336
|
}, "required", "userId" | "secret" | "backupCodes">, {
|
|
352
337
|
userId: ["userId", "_creationTime"];
|
|
353
338
|
}, {}, {}>;
|
|
354
|
-
passkey: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
355
|
-
createdAt?: number | null | undefined;
|
|
356
|
-
name?: string | null | undefined;
|
|
357
|
-
transports?: string | null | undefined;
|
|
358
|
-
aaguid?: string | null | undefined;
|
|
359
|
-
userId: string;
|
|
360
|
-
publicKey: string;
|
|
361
|
-
credentialID: string;
|
|
362
|
-
counter: number;
|
|
363
|
-
deviceType: string;
|
|
364
|
-
backedUp: boolean;
|
|
365
|
-
}, {
|
|
366
|
-
name: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
|
|
367
|
-
publicKey: import("convex/values").VString<string, "required">;
|
|
368
|
-
userId: import("convex/values").VString<string, "required">;
|
|
369
|
-
credentialID: import("convex/values").VString<string, "required">;
|
|
370
|
-
counter: import("convex/values").VFloat64<number, "required">;
|
|
371
|
-
deviceType: import("convex/values").VString<string, "required">;
|
|
372
|
-
backedUp: import("convex/values").VBoolean<boolean, "required">;
|
|
373
|
-
transports: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
|
|
374
|
-
createdAt: import("convex/values").VUnion<number | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VFloat64<number, "required">], "optional", never>;
|
|
375
|
-
aaguid: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
|
|
376
|
-
}, "required", "createdAt" | "name" | "userId" | "publicKey" | "credentialID" | "counter" | "deviceType" | "backedUp" | "transports" | "aaguid">, {
|
|
377
|
-
credentialID: ["credentialID", "_creationTime"];
|
|
378
|
-
userId: ["userId", "_creationTime"];
|
|
379
|
-
}, {}, {}>;
|
|
380
339
|
oauthApplication: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
381
340
|
type?: string | null | undefined;
|
|
341
|
+
metadata?: string | null | undefined;
|
|
382
342
|
createdAt?: number | null | undefined;
|
|
383
343
|
updatedAt?: number | null | undefined;
|
|
384
344
|
name?: string | null | undefined;
|
|
385
345
|
userId?: string | null | undefined;
|
|
386
|
-
metadata?: string | null | undefined;
|
|
387
346
|
icon?: string | null | undefined;
|
|
388
347
|
clientId?: string | null | undefined;
|
|
389
348
|
clientSecret?: string | null | undefined;
|
|
390
|
-
|
|
349
|
+
redirectUrls?: string | null | undefined;
|
|
391
350
|
disabled?: boolean | null | undefined;
|
|
392
351
|
}, {
|
|
393
352
|
name: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
|
|
@@ -395,13 +354,13 @@ declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
395
354
|
metadata: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
|
|
396
355
|
clientId: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
|
|
397
356
|
clientSecret: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
|
|
398
|
-
|
|
357
|
+
redirectUrls: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
|
|
399
358
|
type: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
|
|
400
359
|
disabled: import("convex/values").VUnion<boolean | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VBoolean<boolean, "required">], "optional", never>;
|
|
401
360
|
userId: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VString<string, "required">], "optional", never>;
|
|
402
361
|
createdAt: import("convex/values").VUnion<number | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VFloat64<number, "required">], "optional", never>;
|
|
403
362
|
updatedAt: import("convex/values").VUnion<number | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VFloat64<number, "required">], "optional", never>;
|
|
404
|
-
}, "required", "type" | "
|
|
363
|
+
}, "required", "type" | "metadata" | "createdAt" | "updatedAt" | "name" | "userId" | "icon" | "clientId" | "clientSecret" | "redirectUrls" | "disabled">, {
|
|
405
364
|
clientId: ["clientId", "_creationTime"];
|
|
406
365
|
userId: ["userId", "_creationTime"];
|
|
407
366
|
}, {}, {}>;
|
|
@@ -450,6 +409,7 @@ declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
450
409
|
userId: ["userId", "_creationTime"];
|
|
451
410
|
}, {}, {}>;
|
|
452
411
|
jwks: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
412
|
+
expiresAt?: number | null | undefined;
|
|
453
413
|
createdAt: number;
|
|
454
414
|
publicKey: string;
|
|
455
415
|
privateKey: string;
|
|
@@ -457,15 +417,16 @@ declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
457
417
|
publicKey: import("convex/values").VString<string, "required">;
|
|
458
418
|
privateKey: import("convex/values").VString<string, "required">;
|
|
459
419
|
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
460
|
-
|
|
420
|
+
expiresAt: import("convex/values").VUnion<number | null | undefined, [import("convex/values").VNull<null, "required">, import("convex/values").VFloat64<number, "required">], "optional", never>;
|
|
421
|
+
}, "required", "createdAt" | "expiresAt" | "publicKey" | "privateKey">, {}, {}, {}>;
|
|
461
422
|
rateLimit: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
462
|
-
key
|
|
463
|
-
count
|
|
464
|
-
lastRequest
|
|
423
|
+
key: string;
|
|
424
|
+
count: number;
|
|
425
|
+
lastRequest: number;
|
|
465
426
|
}, {
|
|
466
|
-
key: import("convex/values").
|
|
467
|
-
count: import("convex/values").
|
|
468
|
-
lastRequest: import("convex/values").
|
|
427
|
+
key: import("convex/values").VString<string, "required">;
|
|
428
|
+
count: import("convex/values").VFloat64<number, "required">;
|
|
429
|
+
lastRequest: import("convex/values").VFloat64<number, "required">;
|
|
469
430
|
}, "required", "key" | "count" | "lastRequest">, {
|
|
470
431
|
key: ["key", "_creationTime"];
|
|
471
432
|
}, {}, {}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/component/schema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/component/schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAKH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuHlB,CAAC;AAEF,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAAuB,CAAC;AAEpC,eAAe,MAAM,CAAC"}
|
package/dist/component/schema.js
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* This file is auto-generated. Do not edit this file manually.
|
|
3
|
+
* To regenerate the schema, run:
|
|
4
|
+
* `npx @better-auth/cli generate --output src/component/schema.ts -y`
|
|
5
|
+
*
|
|
6
|
+
* To customize the schema, generate to an alternate file and import
|
|
7
|
+
* the table definitions to your schema file. See
|
|
8
|
+
* https://labs.convex.dev/better-auth/features/local-install#adding-custom-indexes.
|
|
9
|
+
*/
|
|
4
10
|
import { defineSchema, defineTable } from "convex/server";
|
|
5
11
|
import { v } from "convex/values";
|
|
6
12
|
export const tables = {
|
|
@@ -68,20 +74,7 @@ export const tables = {
|
|
|
68
74
|
secret: v.string(),
|
|
69
75
|
backupCodes: v.string(),
|
|
70
76
|
userId: v.string(),
|
|
71
|
-
}).index("userId", ["userId"]),
|
|
72
|
-
passkey: defineTable({
|
|
73
|
-
name: v.optional(v.union(v.null(), v.string())),
|
|
74
|
-
publicKey: v.string(),
|
|
75
|
-
userId: v.string(),
|
|
76
|
-
credentialID: v.string(),
|
|
77
|
-
counter: v.number(),
|
|
78
|
-
deviceType: v.string(),
|
|
79
|
-
backedUp: v.boolean(),
|
|
80
|
-
transports: v.optional(v.union(v.null(), v.string())),
|
|
81
|
-
createdAt: v.optional(v.union(v.null(), v.number())),
|
|
82
|
-
aaguid: v.optional(v.union(v.null(), v.string())),
|
|
83
77
|
})
|
|
84
|
-
.index("credentialID", ["credentialID"])
|
|
85
78
|
.index("userId", ["userId"]),
|
|
86
79
|
oauthApplication: defineTable({
|
|
87
80
|
name: v.optional(v.union(v.null(), v.string())),
|
|
@@ -89,7 +82,7 @@ export const tables = {
|
|
|
89
82
|
metadata: v.optional(v.union(v.null(), v.string())),
|
|
90
83
|
clientId: v.optional(v.union(v.null(), v.string())),
|
|
91
84
|
clientSecret: v.optional(v.union(v.null(), v.string())),
|
|
92
|
-
|
|
85
|
+
redirectUrls: v.optional(v.union(v.null(), v.string())),
|
|
93
86
|
type: v.optional(v.union(v.null(), v.string())),
|
|
94
87
|
disabled: v.optional(v.union(v.null(), v.boolean())),
|
|
95
88
|
userId: v.optional(v.union(v.null(), v.string())),
|
|
@@ -127,12 +120,14 @@ export const tables = {
|
|
|
127
120
|
publicKey: v.string(),
|
|
128
121
|
privateKey: v.string(),
|
|
129
122
|
createdAt: v.number(),
|
|
123
|
+
expiresAt: v.optional(v.union(v.null(), v.number())),
|
|
130
124
|
}),
|
|
131
125
|
rateLimit: defineTable({
|
|
132
|
-
key: v.
|
|
133
|
-
count: v.
|
|
134
|
-
lastRequest: v.
|
|
135
|
-
})
|
|
126
|
+
key: v.string(),
|
|
127
|
+
count: v.number(),
|
|
128
|
+
lastRequest: v.number(),
|
|
129
|
+
})
|
|
130
|
+
.index("key", ["key"]),
|
|
136
131
|
};
|
|
137
132
|
const schema = defineSchema(tables);
|
|
138
133
|
export default schema;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/component/schema.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/component/schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAElC,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,IAAI,EAAE,WAAW,CAAC;QAChB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;QAChB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;QACjB,aAAa,EAAE,CAAC,CAAC,OAAO,EAAE;QAC1B,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;QAChD,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;QACrB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;QACrB,gBAAgB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;QAC5D,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;QACvD,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;QACnD,eAAe,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CA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C,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;KACzD,CAAC;SACC,KAAK,CAAC,iBAAiB,EAAE,CAAC,UAAU,EAAC,QAAQ,CAAC,CAAC;SAC/C,KAAK,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,CAAC;IAC9B,IAAI,EAAE,WAAW,CAAC;QAChB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;QACrB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;QACtB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;QACrB,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;KACrD,CAAC;IACF,SAAS,EAAE,WAAW,CAAC;QACrB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;QACf,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;QACjB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;KACxB,CAAC;SACC,KAAK,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC;AAEpC,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
export declare const create: import("convex/server").RegisteredMutation<"public", {
|
|
2
|
+
onCreateHandle?: string | undefined;
|
|
3
|
+
select?: string[] | undefined;
|
|
4
|
+
input: {
|
|
5
|
+
data: {
|
|
6
|
+
[x: string]: any;
|
|
7
|
+
[x: number]: any;
|
|
8
|
+
[x: symbol]: any;
|
|
9
|
+
};
|
|
10
|
+
model: string;
|
|
11
|
+
};
|
|
12
|
+
}, Promise<any>>, findOne: import("convex/server").RegisteredQuery<"public", {
|
|
13
|
+
join?: any;
|
|
14
|
+
select?: string[] | undefined;
|
|
15
|
+
where?: {
|
|
16
|
+
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
17
|
+
connector?: "AND" | "OR" | undefined;
|
|
18
|
+
value: string | number | boolean | string[] | number[] | null;
|
|
19
|
+
field: string;
|
|
20
|
+
}[] | undefined;
|
|
21
|
+
model: string;
|
|
22
|
+
}, Promise<import("convex/server").GenericDocument | null>>, findMany: import("convex/server").RegisteredQuery<"public", {
|
|
23
|
+
join?: any;
|
|
24
|
+
select?: string[] | undefined;
|
|
25
|
+
limit?: number | undefined;
|
|
26
|
+
offset?: number | undefined;
|
|
27
|
+
sortBy?: {
|
|
28
|
+
field: string;
|
|
29
|
+
direction: "asc" | "desc";
|
|
30
|
+
} | undefined;
|
|
31
|
+
where?: {
|
|
32
|
+
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
33
|
+
connector?: "AND" | "OR" | undefined;
|
|
34
|
+
value: string | number | boolean | string[] | number[] | null;
|
|
35
|
+
field: string;
|
|
36
|
+
}[] | undefined;
|
|
37
|
+
paginationOpts: {
|
|
38
|
+
id?: number;
|
|
39
|
+
endCursor?: string | null;
|
|
40
|
+
maximumRowsRead?: number;
|
|
41
|
+
maximumBytesRead?: number;
|
|
42
|
+
numItems: number;
|
|
43
|
+
cursor: string | null;
|
|
44
|
+
};
|
|
45
|
+
model: string;
|
|
46
|
+
}, Promise<import("convex/server").PaginationResult<import("convex/server").GenericDocument>>>, updateOne: import("convex/server").RegisteredMutation<"public", {
|
|
47
|
+
onUpdateHandle?: string | undefined;
|
|
48
|
+
input: {
|
|
49
|
+
where?: {
|
|
50
|
+
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
51
|
+
connector?: "AND" | "OR" | undefined;
|
|
52
|
+
value: string | number | boolean | string[] | number[] | null;
|
|
53
|
+
field: string;
|
|
54
|
+
}[] | undefined;
|
|
55
|
+
update: {
|
|
56
|
+
[x: string]: unknown;
|
|
57
|
+
[x: number]: unknown;
|
|
58
|
+
[x: symbol]: unknown;
|
|
59
|
+
};
|
|
60
|
+
model: import("../_generated/dataModel.js").TableNames;
|
|
61
|
+
};
|
|
62
|
+
}, Promise<any>>, updateMany: import("convex/server").RegisteredMutation<"public", {
|
|
63
|
+
onUpdateHandle?: string | undefined;
|
|
64
|
+
input: {
|
|
65
|
+
where?: {
|
|
66
|
+
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
67
|
+
connector?: "AND" | "OR" | undefined;
|
|
68
|
+
value: string | number | boolean | string[] | number[] | null;
|
|
69
|
+
field: string;
|
|
70
|
+
}[] | undefined;
|
|
71
|
+
update: {
|
|
72
|
+
[x: string]: unknown;
|
|
73
|
+
[x: number]: unknown;
|
|
74
|
+
[x: symbol]: unknown;
|
|
75
|
+
};
|
|
76
|
+
model: import("../_generated/dataModel.js").TableNames;
|
|
77
|
+
};
|
|
78
|
+
paginationOpts: {
|
|
79
|
+
id?: number;
|
|
80
|
+
endCursor?: string | null;
|
|
81
|
+
maximumRowsRead?: number;
|
|
82
|
+
maximumBytesRead?: number;
|
|
83
|
+
numItems: number;
|
|
84
|
+
cursor: string | null;
|
|
85
|
+
};
|
|
86
|
+
}, Promise<{
|
|
87
|
+
count: number;
|
|
88
|
+
ids: import("convex/values").Value[];
|
|
89
|
+
isDone: boolean;
|
|
90
|
+
continueCursor: import("convex/server").Cursor;
|
|
91
|
+
splitCursor?: import("convex/server").Cursor | null;
|
|
92
|
+
pageStatus?: "SplitRecommended" | "SplitRequired" | null;
|
|
93
|
+
}>>, deleteOne: import("convex/server").RegisteredMutation<"public", {
|
|
94
|
+
onDeleteHandle?: string | undefined;
|
|
95
|
+
input: {
|
|
96
|
+
where?: {
|
|
97
|
+
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
98
|
+
connector?: "AND" | "OR" | undefined;
|
|
99
|
+
value: string | number | boolean | string[] | number[] | null;
|
|
100
|
+
field: string;
|
|
101
|
+
}[] | undefined;
|
|
102
|
+
model: import("../_generated/dataModel.js").TableNames;
|
|
103
|
+
};
|
|
104
|
+
}, Promise<import("convex/server").GenericDocument | undefined>>, deleteMany: import("convex/server").RegisteredMutation<"public", {
|
|
105
|
+
onDeleteHandle?: string | undefined;
|
|
106
|
+
input: {
|
|
107
|
+
where?: {
|
|
108
|
+
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
109
|
+
connector?: "AND" | "OR" | undefined;
|
|
110
|
+
value: string | number | boolean | string[] | number[] | null;
|
|
111
|
+
field: string;
|
|
112
|
+
}[] | undefined;
|
|
113
|
+
model: import("../_generated/dataModel.js").TableNames;
|
|
114
|
+
};
|
|
115
|
+
paginationOpts: {
|
|
116
|
+
id?: number;
|
|
117
|
+
endCursor?: string | null;
|
|
118
|
+
maximumRowsRead?: number;
|
|
119
|
+
maximumBytesRead?: number;
|
|
120
|
+
numItems: number;
|
|
121
|
+
cursor: string | null;
|
|
122
|
+
};
|
|
123
|
+
}, Promise<{
|
|
124
|
+
count: number;
|
|
125
|
+
ids: import("convex/values").Value[];
|
|
126
|
+
isDone: boolean;
|
|
127
|
+
continueCursor: import("convex/server").Cursor;
|
|
128
|
+
splitCursor?: import("convex/server").Cursor | null;
|
|
129
|
+
pageStatus?: "SplitRecommended" | "SplitRequired" | null;
|
|
130
|
+
}>>;
|
|
131
|
+
//# sourceMappingURL=adapterAdditionalFields.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adapterAdditionalFields.d.ts","sourceRoot":"","sources":["../../../src/component/testProfiles/adapterAdditionalFields.ts"],"names":[],"mappings":"AAIA,eAAO,MACN,MAAM;;;;;;;;;;;kBACN,OAAO;;;;;;;;;;6DACP,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;gGACR,SAAS;;;;;;;;;;;;;;;;kBACT,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KACV,SAAS;;;;;;;;;;;kEACT,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;GACgD,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { createApi } from "../../client/index.js";
|
|
2
|
+
import { additionalFieldsProfileOptions } from "./auth-options.profile-additional-fields.js";
|
|
3
|
+
import schema from "./schema.profile-additional-fields.js";
|
|
4
|
+
export const { create, findOne, findMany, updateOne, updateMany, deleteOne, deleteMany, } = createApi(schema, () => additionalFieldsProfileOptions);
|
|
5
|
+
//# sourceMappingURL=adapterAdditionalFields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adapterAdditionalFields.js","sourceRoot":"","sources":["../../../src/component/testProfiles/adapterAdditionalFields.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,8BAA8B,EAAE,MAAM,6CAA6C,CAAC;AAC7F,OAAO,MAAM,MAAM,uCAAuC,CAAC;AAE3D,MAAM,CAAC,MAAM,EACZ,MAAM,EACN,OAAO,EACP,QAAQ,EACR,SAAS,EACT,UAAU,EACV,SAAS,EACT,UAAU,GACV,GAAG,SAAS,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,8BAA8B,CAAC,CAAC"}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
export declare const create: import("convex/server").RegisteredMutation<"public", {
|
|
2
|
+
onCreateHandle?: string | undefined;
|
|
3
|
+
select?: string[] | undefined;
|
|
4
|
+
input: {
|
|
5
|
+
data: {
|
|
6
|
+
[x: string]: any;
|
|
7
|
+
[x: number]: any;
|
|
8
|
+
[x: symbol]: any;
|
|
9
|
+
};
|
|
10
|
+
model: string;
|
|
11
|
+
};
|
|
12
|
+
}, Promise<any>>, findOne: import("convex/server").RegisteredQuery<"public", {
|
|
13
|
+
join?: any;
|
|
14
|
+
select?: string[] | undefined;
|
|
15
|
+
where?: {
|
|
16
|
+
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
17
|
+
connector?: "AND" | "OR" | undefined;
|
|
18
|
+
value: string | number | boolean | string[] | number[] | null;
|
|
19
|
+
field: string;
|
|
20
|
+
}[] | undefined;
|
|
21
|
+
model: string;
|
|
22
|
+
}, Promise<import("convex/server").GenericDocument | null>>, findMany: import("convex/server").RegisteredQuery<"public", {
|
|
23
|
+
join?: any;
|
|
24
|
+
select?: string[] | undefined;
|
|
25
|
+
limit?: number | undefined;
|
|
26
|
+
offset?: number | undefined;
|
|
27
|
+
sortBy?: {
|
|
28
|
+
field: string;
|
|
29
|
+
direction: "asc" | "desc";
|
|
30
|
+
} | undefined;
|
|
31
|
+
where?: {
|
|
32
|
+
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
33
|
+
connector?: "AND" | "OR" | undefined;
|
|
34
|
+
value: string | number | boolean | string[] | number[] | null;
|
|
35
|
+
field: string;
|
|
36
|
+
}[] | undefined;
|
|
37
|
+
paginationOpts: {
|
|
38
|
+
id?: number;
|
|
39
|
+
endCursor?: string | null;
|
|
40
|
+
maximumRowsRead?: number;
|
|
41
|
+
maximumBytesRead?: number;
|
|
42
|
+
numItems: number;
|
|
43
|
+
cursor: string | null;
|
|
44
|
+
};
|
|
45
|
+
model: string;
|
|
46
|
+
}, Promise<import("convex/server").PaginationResult<import("convex/server").GenericDocument>>>, updateOne: import("convex/server").RegisteredMutation<"public", {
|
|
47
|
+
onUpdateHandle?: string | undefined;
|
|
48
|
+
input: {
|
|
49
|
+
where?: {
|
|
50
|
+
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
51
|
+
connector?: "AND" | "OR" | undefined;
|
|
52
|
+
value: string | number | boolean | string[] | number[] | null;
|
|
53
|
+
field: string;
|
|
54
|
+
}[] | undefined;
|
|
55
|
+
update: {
|
|
56
|
+
[x: string]: unknown;
|
|
57
|
+
[x: number]: unknown;
|
|
58
|
+
[x: symbol]: unknown;
|
|
59
|
+
};
|
|
60
|
+
model: import("../_generated/dataModel.js").TableNames;
|
|
61
|
+
};
|
|
62
|
+
}, Promise<any>>, updateMany: import("convex/server").RegisteredMutation<"public", {
|
|
63
|
+
onUpdateHandle?: string | undefined;
|
|
64
|
+
input: {
|
|
65
|
+
where?: {
|
|
66
|
+
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
67
|
+
connector?: "AND" | "OR" | undefined;
|
|
68
|
+
value: string | number | boolean | string[] | number[] | null;
|
|
69
|
+
field: string;
|
|
70
|
+
}[] | undefined;
|
|
71
|
+
update: {
|
|
72
|
+
[x: string]: unknown;
|
|
73
|
+
[x: number]: unknown;
|
|
74
|
+
[x: symbol]: unknown;
|
|
75
|
+
};
|
|
76
|
+
model: import("../_generated/dataModel.js").TableNames;
|
|
77
|
+
};
|
|
78
|
+
paginationOpts: {
|
|
79
|
+
id?: number;
|
|
80
|
+
endCursor?: string | null;
|
|
81
|
+
maximumRowsRead?: number;
|
|
82
|
+
maximumBytesRead?: number;
|
|
83
|
+
numItems: number;
|
|
84
|
+
cursor: string | null;
|
|
85
|
+
};
|
|
86
|
+
}, Promise<{
|
|
87
|
+
count: number;
|
|
88
|
+
ids: import("convex/values").Value[];
|
|
89
|
+
isDone: boolean;
|
|
90
|
+
continueCursor: import("convex/server").Cursor;
|
|
91
|
+
splitCursor?: import("convex/server").Cursor | null;
|
|
92
|
+
pageStatus?: "SplitRecommended" | "SplitRequired" | null;
|
|
93
|
+
}>>, deleteOne: import("convex/server").RegisteredMutation<"public", {
|
|
94
|
+
onDeleteHandle?: string | undefined;
|
|
95
|
+
input: {
|
|
96
|
+
where?: {
|
|
97
|
+
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
98
|
+
connector?: "AND" | "OR" | undefined;
|
|
99
|
+
value: string | number | boolean | string[] | number[] | null;
|
|
100
|
+
field: string;
|
|
101
|
+
}[] | undefined;
|
|
102
|
+
model: import("../_generated/dataModel.js").TableNames;
|
|
103
|
+
};
|
|
104
|
+
}, Promise<import("convex/server").GenericDocument | undefined>>, deleteMany: import("convex/server").RegisteredMutation<"public", {
|
|
105
|
+
onDeleteHandle?: string | undefined;
|
|
106
|
+
input: {
|
|
107
|
+
where?: {
|
|
108
|
+
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
109
|
+
connector?: "AND" | "OR" | undefined;
|
|
110
|
+
value: string | number | boolean | string[] | number[] | null;
|
|
111
|
+
field: string;
|
|
112
|
+
}[] | undefined;
|
|
113
|
+
model: import("../_generated/dataModel.js").TableNames;
|
|
114
|
+
};
|
|
115
|
+
paginationOpts: {
|
|
116
|
+
id?: number;
|
|
117
|
+
endCursor?: string | null;
|
|
118
|
+
maximumRowsRead?: number;
|
|
119
|
+
maximumBytesRead?: number;
|
|
120
|
+
numItems: number;
|
|
121
|
+
cursor: string | null;
|
|
122
|
+
};
|
|
123
|
+
}, Promise<{
|
|
124
|
+
count: number;
|
|
125
|
+
ids: import("convex/values").Value[];
|
|
126
|
+
isDone: boolean;
|
|
127
|
+
continueCursor: import("convex/server").Cursor;
|
|
128
|
+
splitCursor?: import("convex/server").Cursor | null;
|
|
129
|
+
pageStatus?: "SplitRecommended" | "SplitRequired" | null;
|
|
130
|
+
}>>;
|
|
131
|
+
//# sourceMappingURL=adapterOrganizationJoins.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adapterOrganizationJoins.d.ts","sourceRoot":"","sources":["../../../src/component/testProfiles/adapterOrganizationJoins.ts"],"names":[],"mappings":"AAIA,eAAO,MACL,MAAM;;;;;;;;;;;kBACN,OAAO;;;;;;;;;;6DACP,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;gGACR,SAAS;;;;;;;;;;;;;;;;kBACT,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KACV,SAAS;;;;;;;;;;;kEACT,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;GACgD,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { createApi } from "../../client/index.js";
|
|
2
|
+
import { organizationJoinsProfileOptions } from "./auth-options.profile-rename-joins.js";
|
|
3
|
+
import schema from "./schema.profile-plugin-table.js";
|
|
4
|
+
export const { create, findOne, findMany, updateOne, updateMany, deleteOne, deleteMany, } = createApi(schema, () => organizationJoinsProfileOptions);
|
|
5
|
+
//# sourceMappingURL=adapterOrganizationJoins.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adapterOrganizationJoins.js","sourceRoot":"","sources":["../../../src/component/testProfiles/adapterOrganizationJoins.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,+BAA+B,EAAE,MAAM,wCAAwC,CAAC;AACzF,OAAO,MAAM,MAAM,kCAAkC,CAAC;AAEtD,MAAM,CAAC,MAAM,EACX,MAAM,EACN,OAAO,EACP,QAAQ,EACR,SAAS,EACT,UAAU,EACV,SAAS,EACT,UAAU,GACX,GAAG,SAAS,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,+BAA+B,CAAC,CAAC"}
|