@llmops/core 0.2.12-beta.1 → 0.2.12-beta.2
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/db/index.d.mts +1 -1
- package/dist/{index-BO5Rse5J.d.mts → index-Bj69w0EU.d.mts} +35 -35
- package/dist/index.d.cts +222 -222
- package/dist/index.d.mts +490 -490
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { $ as variantsSchema, A as ProviderConfig, B as VariantVersionsTable, C as Environment, D as Insertable, E as EnvironmentsTable, F as TargetingRule, G as configsSchema, H as WorkspaceSettings, I as TargetingRulesTable, J as llmRequestsSchema, K as environmentSecretsSchema, L as Updateable, M as SCHEMA_METADATA, N as Selectable, O as LLMRequest, P as TableName, Q as variantVersionsSchema, R as Variant, S as Database, T as EnvironmentSecretsTable, U as WorkspaceSettingsTable, V as VariantsTable, W as configVariantsSchema, X as schemas, Y as providerConfigsSchema, Z as targetingRulesSchema, _ as validateTableData, a as createDatabaseFromConnection, b as ConfigVariantsTable, c as executeWithSchema, d as getMigrations, et as workspaceSettingsSchema, f as matchType, g as validatePartialTableData, h as parseTableData, i as createDatabase, j as ProviderConfigsTable, k as LLMRequestsTable, l as MigrationOptions, m as parsePartialTableData, n as DatabaseOptions, o as detectDatabaseType, p as runAutoMigrations, q as environmentsSchema, r as DatabaseType, s as createNeonDialect, t as DatabaseConnection, u as MigrationResult, v as Config, w as EnvironmentSecret, x as ConfigsTable, y as ConfigVariant, z as VariantVersion } from "./index-
|
|
1
|
+
import { $ as variantsSchema, A as ProviderConfig, B as VariantVersionsTable, C as Environment, D as Insertable, E as EnvironmentsTable, F as TargetingRule, G as configsSchema, H as WorkspaceSettings, I as TargetingRulesTable, J as llmRequestsSchema, K as environmentSecretsSchema, L as Updateable, M as SCHEMA_METADATA, N as Selectable, O as LLMRequest, P as TableName, Q as variantVersionsSchema, R as Variant, S as Database, T as EnvironmentSecretsTable, U as WorkspaceSettingsTable, V as VariantsTable, W as configVariantsSchema, X as schemas, Y as providerConfigsSchema, Z as targetingRulesSchema, _ as validateTableData, a as createDatabaseFromConnection, b as ConfigVariantsTable, c as executeWithSchema, d as getMigrations, et as workspaceSettingsSchema, f as matchType, g as validatePartialTableData, h as parseTableData, i as createDatabase, j as ProviderConfigsTable, k as LLMRequestsTable, l as MigrationOptions, m as parsePartialTableData, n as DatabaseOptions, o as detectDatabaseType, p as runAutoMigrations, q as environmentsSchema, r as DatabaseType, s as createNeonDialect, t as DatabaseConnection, u as MigrationResult, v as Config, w as EnvironmentSecret, x as ConfigsTable, y as ConfigVariant, z as VariantVersion } from "./index-Bj69w0EU.mjs";
|
|
2
2
|
import gateway from "@llmops/gateway";
|
|
3
3
|
import { Kysely } from "kysely";
|
|
4
4
|
import pino from "pino";
|
|
5
|
-
import * as
|
|
5
|
+
import * as zod0 from "zod";
|
|
6
6
|
import z$1, { z } from "zod";
|
|
7
7
|
import * as better_auth0 from "better-auth";
|
|
8
8
|
import { BetterAuthOptions } from "better-auth";
|
|
@@ -1122,10 +1122,10 @@ declare const costSummarySchema: z$1.ZodObject<{
|
|
|
1122
1122
|
tags: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodArray<z$1.ZodString>>>;
|
|
1123
1123
|
groupBy: z$1.ZodOptional<z$1.ZodEnum<{
|
|
1124
1124
|
provider: "provider";
|
|
1125
|
-
config: "config";
|
|
1126
1125
|
model: "model";
|
|
1127
1126
|
day: "day";
|
|
1128
1127
|
hour: "hour";
|
|
1128
|
+
config: "config";
|
|
1129
1129
|
}>>;
|
|
1130
1130
|
}, z$1.core.$strip>;
|
|
1131
1131
|
declare const createLLMRequestsDataLayer: (db: Kysely<Database>) => {
|
|
@@ -1140,13 +1140,11 @@ declare const createLLMRequestsDataLayer: (db: Kysely<Database>) => {
|
|
|
1140
1140
|
* Insert a single LLM request log
|
|
1141
1141
|
*/
|
|
1142
1142
|
insertRequest: (request: LLMRequestInsert) => Promise<{
|
|
1143
|
-
|
|
1144
|
-
createdAt: Date;
|
|
1145
|
-
updatedAt: Date;
|
|
1143
|
+
configId: string | null;
|
|
1146
1144
|
variantId: string | null;
|
|
1145
|
+
id: string;
|
|
1147
1146
|
provider: string;
|
|
1148
1147
|
environmentId: string | null;
|
|
1149
|
-
configId: string | null;
|
|
1150
1148
|
requestId: string;
|
|
1151
1149
|
providerConfigId: string | null;
|
|
1152
1150
|
model: string;
|
|
@@ -1163,6 +1161,8 @@ declare const createLLMRequestsDataLayer: (db: Kysely<Database>) => {
|
|
|
1163
1161
|
isStreaming: boolean;
|
|
1164
1162
|
userId: string | null;
|
|
1165
1163
|
tags: Record<string, string>;
|
|
1164
|
+
createdAt: Date;
|
|
1165
|
+
updatedAt: Date;
|
|
1166
1166
|
} | undefined>;
|
|
1167
1167
|
/**
|
|
1168
1168
|
* List LLM requests with filtering and pagination
|
|
@@ -1170,13 +1170,11 @@ declare const createLLMRequestsDataLayer: (db: Kysely<Database>) => {
|
|
|
1170
1170
|
*/
|
|
1171
1171
|
listRequests: (params?: z$1.infer<typeof listRequestsSchema>) => Promise<{
|
|
1172
1172
|
data: {
|
|
1173
|
-
|
|
1174
|
-
createdAt: Date;
|
|
1175
|
-
updatedAt: Date;
|
|
1173
|
+
configId: string | null;
|
|
1176
1174
|
variantId: string | null;
|
|
1175
|
+
id: string;
|
|
1177
1176
|
provider: string;
|
|
1178
1177
|
environmentId: string | null;
|
|
1179
|
-
configId: string | null;
|
|
1180
1178
|
requestId: string;
|
|
1181
1179
|
providerConfigId: string | null;
|
|
1182
1180
|
model: string;
|
|
@@ -1193,6 +1191,8 @@ declare const createLLMRequestsDataLayer: (db: Kysely<Database>) => {
|
|
|
1193
1191
|
isStreaming: boolean;
|
|
1194
1192
|
userId: string | null;
|
|
1195
1193
|
tags: Record<string, string>;
|
|
1194
|
+
createdAt: Date;
|
|
1195
|
+
updatedAt: Date;
|
|
1196
1196
|
}[];
|
|
1197
1197
|
total: number;
|
|
1198
1198
|
limit: number;
|
|
@@ -1202,13 +1202,11 @@ declare const createLLMRequestsDataLayer: (db: Kysely<Database>) => {
|
|
|
1202
1202
|
* Get a single request by requestId
|
|
1203
1203
|
*/
|
|
1204
1204
|
getRequestByRequestId: (requestId: string) => Promise<{
|
|
1205
|
-
|
|
1206
|
-
createdAt: Date;
|
|
1207
|
-
updatedAt: Date;
|
|
1205
|
+
configId: string | null;
|
|
1208
1206
|
variantId: string | null;
|
|
1207
|
+
id: string;
|
|
1209
1208
|
provider: string;
|
|
1210
1209
|
environmentId: string | null;
|
|
1211
|
-
configId: string | null;
|
|
1212
1210
|
requestId: string;
|
|
1213
1211
|
providerConfigId: string | null;
|
|
1214
1212
|
model: string;
|
|
@@ -1225,6 +1223,8 @@ declare const createLLMRequestsDataLayer: (db: Kysely<Database>) => {
|
|
|
1225
1223
|
isStreaming: boolean;
|
|
1226
1224
|
userId: string | null;
|
|
1227
1225
|
tags: Record<string, string>;
|
|
1226
|
+
createdAt: Date;
|
|
1227
|
+
updatedAt: Date;
|
|
1228
1228
|
} | undefined>;
|
|
1229
1229
|
/**
|
|
1230
1230
|
* Get total cost for a date range with optional filters
|
|
@@ -1330,10 +1330,10 @@ declare const createWorkspaceSettingsDataLayer: (db: Kysely<Database>) => {
|
|
|
1330
1330
|
getWorkspaceSettings: () => Promise<{
|
|
1331
1331
|
name: string | null;
|
|
1332
1332
|
id: string;
|
|
1333
|
-
createdAt: Date;
|
|
1334
|
-
updatedAt: Date;
|
|
1335
1333
|
setupComplete: boolean;
|
|
1336
1334
|
superAdminId: string | null;
|
|
1335
|
+
createdAt: Date;
|
|
1336
|
+
updatedAt: Date;
|
|
1337
1337
|
} | undefined>;
|
|
1338
1338
|
/**
|
|
1339
1339
|
* Update workspace settings
|
|
@@ -1341,10 +1341,10 @@ declare const createWorkspaceSettingsDataLayer: (db: Kysely<Database>) => {
|
|
|
1341
1341
|
updateWorkspaceSettings: (params: z$1.infer<typeof updateWorkspaceSettings>) => Promise<{
|
|
1342
1342
|
name: string | null;
|
|
1343
1343
|
id: string;
|
|
1344
|
-
createdAt: Date;
|
|
1345
|
-
updatedAt: Date;
|
|
1346
1344
|
setupComplete: boolean;
|
|
1347
1345
|
superAdminId: string | null;
|
|
1346
|
+
createdAt: Date;
|
|
1347
|
+
updatedAt: Date;
|
|
1348
1348
|
} | undefined>;
|
|
1349
1349
|
/**
|
|
1350
1350
|
* Get the super admin user ID
|
|
@@ -1364,10 +1364,10 @@ declare const createWorkspaceSettingsDataLayer: (db: Kysely<Database>) => {
|
|
|
1364
1364
|
markSetupComplete: () => Promise<{
|
|
1365
1365
|
name: string | null;
|
|
1366
1366
|
id: string;
|
|
1367
|
-
createdAt: Date;
|
|
1368
|
-
updatedAt: Date;
|
|
1369
1367
|
setupComplete: boolean;
|
|
1370
1368
|
superAdminId: string | null;
|
|
1369
|
+
createdAt: Date;
|
|
1370
|
+
updatedAt: Date;
|
|
1371
1371
|
} | undefined>;
|
|
1372
1372
|
};
|
|
1373
1373
|
//#endregion
|
|
@@ -1401,56 +1401,56 @@ declare const createProviderConfigsDataLayer: (db: Kysely<Database>) => {
|
|
|
1401
1401
|
createProviderConfig: (params: z$1.infer<typeof createProviderConfig>) => Promise<{
|
|
1402
1402
|
name: string | null;
|
|
1403
1403
|
id: string;
|
|
1404
|
+
config: Record<string, unknown>;
|
|
1405
|
+
providerId: string;
|
|
1406
|
+
enabled: boolean;
|
|
1404
1407
|
createdAt: Date;
|
|
1405
1408
|
updatedAt: Date;
|
|
1406
|
-
enabled: boolean;
|
|
1407
|
-
providerId: string;
|
|
1408
|
-
config: Record<string, unknown>;
|
|
1409
1409
|
} | undefined>;
|
|
1410
1410
|
updateProviderConfig: (params: z$1.infer<typeof updateProviderConfig>) => Promise<{
|
|
1411
1411
|
name: string | null;
|
|
1412
1412
|
id: string;
|
|
1413
|
+
config: Record<string, unknown>;
|
|
1414
|
+
providerId: string;
|
|
1415
|
+
enabled: boolean;
|
|
1413
1416
|
createdAt: Date;
|
|
1414
1417
|
updatedAt: Date;
|
|
1415
|
-
enabled: boolean;
|
|
1416
|
-
providerId: string;
|
|
1417
|
-
config: Record<string, unknown>;
|
|
1418
1418
|
} | undefined>;
|
|
1419
1419
|
getProviderConfigById: (params: z$1.infer<typeof getProviderConfigById>) => Promise<{
|
|
1420
1420
|
name: string | null;
|
|
1421
1421
|
id: string;
|
|
1422
|
+
config: Record<string, unknown>;
|
|
1423
|
+
providerId: string;
|
|
1424
|
+
enabled: boolean;
|
|
1422
1425
|
createdAt: Date;
|
|
1423
1426
|
updatedAt: Date;
|
|
1424
|
-
enabled: boolean;
|
|
1425
|
-
providerId: string;
|
|
1426
|
-
config: Record<string, unknown>;
|
|
1427
1427
|
} | undefined>;
|
|
1428
1428
|
getProviderConfigByProviderId: (params: z$1.infer<typeof getProviderConfigByProviderId>) => Promise<{
|
|
1429
1429
|
name: string | null;
|
|
1430
1430
|
id: string;
|
|
1431
|
+
config: Record<string, unknown>;
|
|
1432
|
+
providerId: string;
|
|
1433
|
+
enabled: boolean;
|
|
1431
1434
|
createdAt: Date;
|
|
1432
1435
|
updatedAt: Date;
|
|
1433
|
-
enabled: boolean;
|
|
1434
|
-
providerId: string;
|
|
1435
|
-
config: Record<string, unknown>;
|
|
1436
1436
|
} | undefined>;
|
|
1437
1437
|
deleteProviderConfig: (params: z$1.infer<typeof deleteProviderConfig>) => Promise<{
|
|
1438
1438
|
name: string | null;
|
|
1439
1439
|
id: string;
|
|
1440
|
+
config: Record<string, unknown>;
|
|
1441
|
+
providerId: string;
|
|
1442
|
+
enabled: boolean;
|
|
1440
1443
|
createdAt: Date;
|
|
1441
1444
|
updatedAt: Date;
|
|
1442
|
-
enabled: boolean;
|
|
1443
|
-
providerId: string;
|
|
1444
|
-
config: Record<string, unknown>;
|
|
1445
1445
|
} | undefined>;
|
|
1446
1446
|
listProviderConfigs: (params?: z$1.infer<typeof listProviderConfigs>) => Promise<{
|
|
1447
1447
|
name: string | null;
|
|
1448
1448
|
id: string;
|
|
1449
|
+
config: Record<string, unknown>;
|
|
1450
|
+
providerId: string;
|
|
1451
|
+
enabled: boolean;
|
|
1449
1452
|
createdAt: Date;
|
|
1450
1453
|
updatedAt: Date;
|
|
1451
|
-
enabled: boolean;
|
|
1452
|
-
providerId: string;
|
|
1453
|
-
config: Record<string, unknown>;
|
|
1454
1454
|
}[]>;
|
|
1455
1455
|
countProviderConfigs: () => Promise<number>;
|
|
1456
1456
|
/**
|
|
@@ -1460,11 +1460,11 @@ declare const createProviderConfigsDataLayer: (db: Kysely<Database>) => {
|
|
|
1460
1460
|
upsertProviderConfig: (params: z$1.infer<typeof createProviderConfig>) => Promise<{
|
|
1461
1461
|
name: string | null;
|
|
1462
1462
|
id: string;
|
|
1463
|
+
config: Record<string, unknown>;
|
|
1464
|
+
providerId: string;
|
|
1465
|
+
enabled: boolean;
|
|
1463
1466
|
createdAt: Date;
|
|
1464
1467
|
updatedAt: Date;
|
|
1465
|
-
enabled: boolean;
|
|
1466
|
-
providerId: string;
|
|
1467
|
-
config: Record<string, unknown>;
|
|
1468
1468
|
} | undefined>;
|
|
1469
1469
|
};
|
|
1470
1470
|
//#endregion
|
|
@@ -1473,22 +1473,22 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
1473
1473
|
getWorkspaceSettings: () => Promise<{
|
|
1474
1474
|
name: string | null;
|
|
1475
1475
|
id: string;
|
|
1476
|
-
createdAt: Date;
|
|
1477
|
-
updatedAt: Date;
|
|
1478
1476
|
setupComplete: boolean;
|
|
1479
1477
|
superAdminId: string | null;
|
|
1478
|
+
createdAt: Date;
|
|
1479
|
+
updatedAt: Date;
|
|
1480
1480
|
} | undefined>;
|
|
1481
|
-
updateWorkspaceSettings: (params:
|
|
1482
|
-
name:
|
|
1483
|
-
setupComplete:
|
|
1484
|
-
superAdminId:
|
|
1481
|
+
updateWorkspaceSettings: (params: zod0.infer<zod0.ZodObject<{
|
|
1482
|
+
name: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
|
|
1483
|
+
setupComplete: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
1484
|
+
superAdminId: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
|
|
1485
1485
|
}, better_auth0.$strip>>) => Promise<{
|
|
1486
1486
|
name: string | null;
|
|
1487
1487
|
id: string;
|
|
1488
|
-
createdAt: Date;
|
|
1489
|
-
updatedAt: Date;
|
|
1490
1488
|
setupComplete: boolean;
|
|
1491
1489
|
superAdminId: string | null;
|
|
1490
|
+
createdAt: Date;
|
|
1491
|
+
updatedAt: Date;
|
|
1492
1492
|
} | undefined>;
|
|
1493
1493
|
getSuperAdminId: () => Promise<string | null>;
|
|
1494
1494
|
setSuperAdminId: (userId: string) => Promise<boolean>;
|
|
@@ -1496,518 +1496,516 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
1496
1496
|
markSetupComplete: () => Promise<{
|
|
1497
1497
|
name: string | null;
|
|
1498
1498
|
id: string;
|
|
1499
|
-
createdAt: Date;
|
|
1500
|
-
updatedAt: Date;
|
|
1501
1499
|
setupComplete: boolean;
|
|
1502
1500
|
superAdminId: string | null;
|
|
1501
|
+
createdAt: Date;
|
|
1502
|
+
updatedAt: Date;
|
|
1503
1503
|
} | undefined>;
|
|
1504
|
-
createVariantVersion: (params:
|
|
1505
|
-
variantId:
|
|
1506
|
-
provider:
|
|
1507
|
-
modelName:
|
|
1508
|
-
jsonData:
|
|
1504
|
+
createVariantVersion: (params: zod0.infer<zod0.ZodObject<{
|
|
1505
|
+
variantId: zod0.ZodString;
|
|
1506
|
+
provider: zod0.ZodString;
|
|
1507
|
+
modelName: zod0.ZodString;
|
|
1508
|
+
jsonData: zod0.ZodDefault<zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>>>;
|
|
1509
1509
|
}, better_auth0.$strip>>) => Promise<{
|
|
1510
1510
|
version: number;
|
|
1511
|
-
id: string;
|
|
1512
|
-
createdAt: Date;
|
|
1513
|
-
updatedAt: Date;
|
|
1514
1511
|
variantId: string;
|
|
1512
|
+
id: string;
|
|
1515
1513
|
provider: string;
|
|
1516
1514
|
modelName: string;
|
|
1517
1515
|
jsonData: Record<string, unknown>;
|
|
1516
|
+
createdAt: Date;
|
|
1517
|
+
updatedAt: Date;
|
|
1518
1518
|
} | undefined>;
|
|
1519
|
-
getVariantVersionById: (params:
|
|
1520
|
-
id:
|
|
1519
|
+
getVariantVersionById: (params: zod0.infer<zod0.ZodObject<{
|
|
1520
|
+
id: zod0.ZodString;
|
|
1521
1521
|
}, better_auth0.$strip>>) => Promise<{
|
|
1522
1522
|
version: number;
|
|
1523
|
-
id: string;
|
|
1524
|
-
createdAt: Date;
|
|
1525
|
-
updatedAt: Date;
|
|
1526
1523
|
variantId: string;
|
|
1524
|
+
id: string;
|
|
1527
1525
|
provider: string;
|
|
1528
1526
|
modelName: string;
|
|
1529
1527
|
jsonData: Record<string, unknown>;
|
|
1528
|
+
createdAt: Date;
|
|
1529
|
+
updatedAt: Date;
|
|
1530
1530
|
} | undefined>;
|
|
1531
|
-
getVariantVersionsByVariantId: (params:
|
|
1532
|
-
variantId:
|
|
1533
|
-
limit:
|
|
1534
|
-
offset:
|
|
1531
|
+
getVariantVersionsByVariantId: (params: zod0.infer<zod0.ZodObject<{
|
|
1532
|
+
variantId: zod0.ZodString;
|
|
1533
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1534
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1535
1535
|
}, better_auth0.$strip>>) => Promise<{
|
|
1536
1536
|
version: number;
|
|
1537
|
-
id: string;
|
|
1538
|
-
createdAt: Date;
|
|
1539
|
-
updatedAt: Date;
|
|
1540
1537
|
variantId: string;
|
|
1538
|
+
id: string;
|
|
1541
1539
|
provider: string;
|
|
1542
1540
|
modelName: string;
|
|
1543
1541
|
jsonData: Record<string, unknown>;
|
|
1542
|
+
createdAt: Date;
|
|
1543
|
+
updatedAt: Date;
|
|
1544
1544
|
}[]>;
|
|
1545
|
-
getLatestVariantVersion: (params:
|
|
1546
|
-
variantId:
|
|
1545
|
+
getLatestVariantVersion: (params: zod0.infer<zod0.ZodObject<{
|
|
1546
|
+
variantId: zod0.ZodString;
|
|
1547
1547
|
}, better_auth0.$strip>>) => Promise<{
|
|
1548
1548
|
version: number;
|
|
1549
|
-
id: string;
|
|
1550
|
-
createdAt: Date;
|
|
1551
|
-
updatedAt: Date;
|
|
1552
1549
|
variantId: string;
|
|
1550
|
+
id: string;
|
|
1553
1551
|
provider: string;
|
|
1554
1552
|
modelName: string;
|
|
1555
1553
|
jsonData: Record<string, unknown>;
|
|
1554
|
+
createdAt: Date;
|
|
1555
|
+
updatedAt: Date;
|
|
1556
1556
|
} | undefined>;
|
|
1557
|
-
getVariantVersionByNumber: (params:
|
|
1558
|
-
variantId:
|
|
1559
|
-
version:
|
|
1557
|
+
getVariantVersionByNumber: (params: zod0.infer<zod0.ZodObject<{
|
|
1558
|
+
variantId: zod0.ZodString;
|
|
1559
|
+
version: zod0.ZodNumber;
|
|
1560
1560
|
}, better_auth0.$strip>>) => Promise<{
|
|
1561
1561
|
version: number;
|
|
1562
|
-
id: string;
|
|
1563
|
-
createdAt: Date;
|
|
1564
|
-
updatedAt: Date;
|
|
1565
1562
|
variantId: string;
|
|
1563
|
+
id: string;
|
|
1566
1564
|
provider: string;
|
|
1567
1565
|
modelName: string;
|
|
1568
1566
|
jsonData: Record<string, unknown>;
|
|
1567
|
+
createdAt: Date;
|
|
1568
|
+
updatedAt: Date;
|
|
1569
1569
|
} | undefined>;
|
|
1570
|
-
deleteVariantVersion: (params:
|
|
1571
|
-
id:
|
|
1570
|
+
deleteVariantVersion: (params: zod0.infer<zod0.ZodObject<{
|
|
1571
|
+
id: zod0.ZodString;
|
|
1572
1572
|
}, better_auth0.$strip>>) => Promise<{
|
|
1573
1573
|
version: number;
|
|
1574
|
-
id: string;
|
|
1575
|
-
createdAt: Date;
|
|
1576
|
-
updatedAt: Date;
|
|
1577
1574
|
variantId: string;
|
|
1575
|
+
id: string;
|
|
1578
1576
|
provider: string;
|
|
1579
1577
|
modelName: string;
|
|
1580
1578
|
jsonData: Record<string, unknown>;
|
|
1579
|
+
createdAt: Date;
|
|
1580
|
+
updatedAt: Date;
|
|
1581
1581
|
} | undefined>;
|
|
1582
|
-
deleteVariantVersionsByVariantId: (params:
|
|
1583
|
-
variantId:
|
|
1582
|
+
deleteVariantVersionsByVariantId: (params: zod0.infer<zod0.ZodObject<{
|
|
1583
|
+
variantId: zod0.ZodString;
|
|
1584
1584
|
}, better_auth0.$strip>>) => Promise<{
|
|
1585
1585
|
version: number;
|
|
1586
|
-
id: string;
|
|
1587
|
-
createdAt: Date;
|
|
1588
|
-
updatedAt: Date;
|
|
1589
1586
|
variantId: string;
|
|
1587
|
+
id: string;
|
|
1590
1588
|
provider: string;
|
|
1591
1589
|
modelName: string;
|
|
1592
1590
|
jsonData: Record<string, unknown>;
|
|
1591
|
+
createdAt: Date;
|
|
1592
|
+
updatedAt: Date;
|
|
1593
1593
|
}[]>;
|
|
1594
|
-
getVariantVersionWithVariant: (params:
|
|
1595
|
-
id:
|
|
1594
|
+
getVariantVersionWithVariant: (params: zod0.infer<zod0.ZodObject<{
|
|
1595
|
+
id: zod0.ZodString;
|
|
1596
1596
|
}, better_auth0.$strip>>) => Promise<{
|
|
1597
1597
|
version: number;
|
|
1598
|
-
id: string;
|
|
1599
|
-
createdAt: Date;
|
|
1600
|
-
updatedAt: Date;
|
|
1601
1598
|
variantId: string;
|
|
1599
|
+
id: string;
|
|
1602
1600
|
provider: string;
|
|
1603
1601
|
modelName: string;
|
|
1604
1602
|
jsonData: Record<string, unknown>;
|
|
1603
|
+
createdAt: Date;
|
|
1604
|
+
updatedAt: Date;
|
|
1605
1605
|
variantName: string;
|
|
1606
1606
|
} | undefined>;
|
|
1607
|
-
getVariantVersionsWithVariantByVariantId: (params:
|
|
1608
|
-
variantId:
|
|
1609
|
-
limit:
|
|
1610
|
-
offset:
|
|
1607
|
+
getVariantVersionsWithVariantByVariantId: (params: zod0.infer<zod0.ZodObject<{
|
|
1608
|
+
variantId: zod0.ZodString;
|
|
1609
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1610
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1611
1611
|
}, better_auth0.$strip>>) => Promise<{
|
|
1612
1612
|
version: number;
|
|
1613
|
-
id: string;
|
|
1614
|
-
createdAt: Date;
|
|
1615
|
-
updatedAt: Date;
|
|
1616
1613
|
variantId: string;
|
|
1614
|
+
id: string;
|
|
1617
1615
|
provider: string;
|
|
1618
1616
|
modelName: string;
|
|
1619
1617
|
jsonData: Record<string, unknown>;
|
|
1618
|
+
createdAt: Date;
|
|
1619
|
+
updatedAt: Date;
|
|
1620
1620
|
variantName: string;
|
|
1621
1621
|
}[]>;
|
|
1622
|
-
createVariant: (params:
|
|
1623
|
-
name:
|
|
1622
|
+
createVariant: (params: zod0.infer<zod0.ZodObject<{
|
|
1623
|
+
name: zod0.ZodString;
|
|
1624
1624
|
}, better_auth0.$strip>>) => Promise<{
|
|
1625
1625
|
name: string;
|
|
1626
1626
|
id: string;
|
|
1627
1627
|
createdAt: Date;
|
|
1628
1628
|
updatedAt: Date;
|
|
1629
1629
|
} | undefined>;
|
|
1630
|
-
updateVariant: (params:
|
|
1631
|
-
variantId:
|
|
1632
|
-
name:
|
|
1630
|
+
updateVariant: (params: zod0.infer<zod0.ZodObject<{
|
|
1631
|
+
variantId: zod0.ZodString;
|
|
1632
|
+
name: zod0.ZodOptional<zod0.ZodString>;
|
|
1633
1633
|
}, better_auth0.$strip>>) => Promise<{
|
|
1634
1634
|
name: string;
|
|
1635
1635
|
id: string;
|
|
1636
1636
|
createdAt: Date;
|
|
1637
1637
|
updatedAt: Date;
|
|
1638
1638
|
} | undefined>;
|
|
1639
|
-
getVariantById: (params:
|
|
1640
|
-
variantId:
|
|
1639
|
+
getVariantById: (params: zod0.infer<zod0.ZodObject<{
|
|
1640
|
+
variantId: zod0.ZodString;
|
|
1641
1641
|
}, better_auth0.$strip>>) => Promise<{
|
|
1642
1642
|
name: string;
|
|
1643
1643
|
id: string;
|
|
1644
1644
|
createdAt: Date;
|
|
1645
1645
|
updatedAt: Date;
|
|
1646
1646
|
} | undefined>;
|
|
1647
|
-
getVariantWithLatestVersion: (params:
|
|
1648
|
-
variantId:
|
|
1647
|
+
getVariantWithLatestVersion: (params: zod0.infer<zod0.ZodObject<{
|
|
1648
|
+
variantId: zod0.ZodString;
|
|
1649
1649
|
}, better_auth0.$strip>>) => Promise<{
|
|
1650
1650
|
latestVersion: {
|
|
1651
1651
|
version: number;
|
|
1652
|
-
id: string;
|
|
1653
|
-
createdAt: Date;
|
|
1654
|
-
updatedAt: Date;
|
|
1655
1652
|
variantId: string;
|
|
1653
|
+
id: string;
|
|
1656
1654
|
provider: string;
|
|
1657
1655
|
modelName: string;
|
|
1658
1656
|
jsonData: Record<string, unknown>;
|
|
1657
|
+
createdAt: Date;
|
|
1658
|
+
updatedAt: Date;
|
|
1659
1659
|
} | null;
|
|
1660
1660
|
name: string;
|
|
1661
1661
|
id: string;
|
|
1662
1662
|
createdAt: Date;
|
|
1663
1663
|
updatedAt: Date;
|
|
1664
1664
|
} | undefined>;
|
|
1665
|
-
deleteVariant: (params:
|
|
1666
|
-
variantId:
|
|
1665
|
+
deleteVariant: (params: zod0.infer<zod0.ZodObject<{
|
|
1666
|
+
variantId: zod0.ZodString;
|
|
1667
1667
|
}, better_auth0.$strip>>) => Promise<{
|
|
1668
1668
|
name: string;
|
|
1669
1669
|
id: string;
|
|
1670
1670
|
createdAt: Date;
|
|
1671
1671
|
updatedAt: Date;
|
|
1672
1672
|
} | undefined>;
|
|
1673
|
-
listVariants: (params?:
|
|
1674
|
-
limit:
|
|
1675
|
-
offset:
|
|
1673
|
+
listVariants: (params?: zod0.infer<zod0.ZodObject<{
|
|
1674
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1675
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1676
1676
|
}, better_auth0.$strip>>) => Promise<{
|
|
1677
1677
|
name: string;
|
|
1678
1678
|
id: string;
|
|
1679
1679
|
createdAt: Date;
|
|
1680
1680
|
updatedAt: Date;
|
|
1681
1681
|
}[]>;
|
|
1682
|
-
listVariantsWithLatestVersion: (params?:
|
|
1683
|
-
limit:
|
|
1684
|
-
offset:
|
|
1682
|
+
listVariantsWithLatestVersion: (params?: zod0.infer<zod0.ZodObject<{
|
|
1683
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1684
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1685
1685
|
}, better_auth0.$strip>>) => Promise<{
|
|
1686
1686
|
latestVersion: {
|
|
1687
1687
|
version: number;
|
|
1688
|
-
id: string;
|
|
1689
|
-
createdAt: Date;
|
|
1690
|
-
updatedAt: Date;
|
|
1691
1688
|
variantId: string;
|
|
1689
|
+
id: string;
|
|
1692
1690
|
provider: string;
|
|
1693
1691
|
modelName: string;
|
|
1694
1692
|
jsonData: Record<string, unknown>;
|
|
1693
|
+
createdAt: Date;
|
|
1694
|
+
updatedAt: Date;
|
|
1695
1695
|
} | null;
|
|
1696
1696
|
name: string;
|
|
1697
1697
|
id: string;
|
|
1698
1698
|
createdAt: Date;
|
|
1699
1699
|
updatedAt: Date;
|
|
1700
1700
|
}[]>;
|
|
1701
|
-
createTargetingRule: (params:
|
|
1702
|
-
environmentId:
|
|
1703
|
-
configId:
|
|
1704
|
-
configVariantId:
|
|
1705
|
-
variantVersionId:
|
|
1706
|
-
weight:
|
|
1707
|
-
priority:
|
|
1708
|
-
enabled:
|
|
1709
|
-
conditions:
|
|
1701
|
+
createTargetingRule: (params: zod0.infer<zod0.ZodObject<{
|
|
1702
|
+
environmentId: zod0.ZodString;
|
|
1703
|
+
configId: zod0.ZodString;
|
|
1704
|
+
configVariantId: zod0.ZodString;
|
|
1705
|
+
variantVersionId: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
|
|
1706
|
+
weight: zod0.ZodDefault<zod0.ZodOptional<zod0.ZodNumber>>;
|
|
1707
|
+
priority: zod0.ZodDefault<zod0.ZodOptional<zod0.ZodNumber>>;
|
|
1708
|
+
enabled: zod0.ZodDefault<zod0.ZodOptional<zod0.ZodBoolean>>;
|
|
1709
|
+
conditions: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>>>;
|
|
1710
1710
|
}, better_auth0.$strip>>) => Promise<{
|
|
1711
|
+
configId: string;
|
|
1711
1712
|
id: string;
|
|
1712
|
-
createdAt: Date;
|
|
1713
|
-
updatedAt: Date;
|
|
1714
1713
|
environmentId: string;
|
|
1715
|
-
|
|
1714
|
+
enabled: boolean;
|
|
1716
1715
|
configVariantId: string;
|
|
1717
1716
|
variantVersionId: string | null;
|
|
1718
1717
|
weight: number;
|
|
1719
1718
|
priority: number;
|
|
1720
|
-
enabled: boolean;
|
|
1721
1719
|
conditions: Record<string, unknown>;
|
|
1720
|
+
createdAt: Date;
|
|
1721
|
+
updatedAt: Date;
|
|
1722
1722
|
} | undefined>;
|
|
1723
|
-
updateTargetingRule: (params:
|
|
1724
|
-
id:
|
|
1725
|
-
variantVersionId:
|
|
1726
|
-
weight:
|
|
1727
|
-
priority:
|
|
1728
|
-
enabled:
|
|
1729
|
-
conditions:
|
|
1723
|
+
updateTargetingRule: (params: zod0.infer<zod0.ZodObject<{
|
|
1724
|
+
id: zod0.ZodString;
|
|
1725
|
+
variantVersionId: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
|
|
1726
|
+
weight: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1727
|
+
priority: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1728
|
+
enabled: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
1729
|
+
conditions: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>>>;
|
|
1730
1730
|
}, better_auth0.$strip>>) => Promise<{
|
|
1731
|
+
configId: string;
|
|
1731
1732
|
id: string;
|
|
1732
|
-
createdAt: Date;
|
|
1733
|
-
updatedAt: Date;
|
|
1734
1733
|
environmentId: string;
|
|
1735
|
-
|
|
1734
|
+
enabled: boolean;
|
|
1736
1735
|
configVariantId: string;
|
|
1737
1736
|
variantVersionId: string | null;
|
|
1738
1737
|
weight: number;
|
|
1739
1738
|
priority: number;
|
|
1740
|
-
enabled: boolean;
|
|
1741
1739
|
conditions: Record<string, unknown>;
|
|
1740
|
+
createdAt: Date;
|
|
1741
|
+
updatedAt: Date;
|
|
1742
1742
|
} | undefined>;
|
|
1743
|
-
getTargetingRuleById: (params:
|
|
1744
|
-
id:
|
|
1743
|
+
getTargetingRuleById: (params: zod0.infer<zod0.ZodObject<{
|
|
1744
|
+
id: zod0.ZodString;
|
|
1745
1745
|
}, better_auth0.$strip>>) => Promise<{
|
|
1746
|
+
configId: string;
|
|
1746
1747
|
id: string;
|
|
1747
|
-
createdAt: Date;
|
|
1748
|
-
updatedAt: Date;
|
|
1749
1748
|
environmentId: string;
|
|
1750
|
-
|
|
1749
|
+
enabled: boolean;
|
|
1751
1750
|
configVariantId: string;
|
|
1752
1751
|
variantVersionId: string | null;
|
|
1753
1752
|
weight: number;
|
|
1754
1753
|
priority: number;
|
|
1755
|
-
enabled: boolean;
|
|
1756
1754
|
conditions: Record<string, unknown>;
|
|
1755
|
+
createdAt: Date;
|
|
1756
|
+
updatedAt: Date;
|
|
1757
1757
|
} | undefined>;
|
|
1758
|
-
getTargetingRulesByConfigId: (params:
|
|
1759
|
-
configId:
|
|
1760
|
-
limit:
|
|
1761
|
-
offset:
|
|
1758
|
+
getTargetingRulesByConfigId: (params: zod0.infer<zod0.ZodObject<{
|
|
1759
|
+
configId: zod0.ZodString;
|
|
1760
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1761
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1762
1762
|
}, better_auth0.$strip>>) => Promise<{
|
|
1763
|
+
configId: string;
|
|
1763
1764
|
id: string;
|
|
1764
|
-
createdAt: Date;
|
|
1765
|
-
updatedAt: Date;
|
|
1766
1765
|
environmentId: string;
|
|
1767
|
-
|
|
1766
|
+
enabled: boolean;
|
|
1768
1767
|
configVariantId: string;
|
|
1769
1768
|
variantVersionId: string | null;
|
|
1770
1769
|
weight: number;
|
|
1771
1770
|
priority: number;
|
|
1772
|
-
enabled: boolean;
|
|
1773
1771
|
conditions: Record<string, unknown>;
|
|
1772
|
+
createdAt: Date;
|
|
1773
|
+
updatedAt: Date;
|
|
1774
1774
|
}[]>;
|
|
1775
|
-
getTargetingRulesByEnvironmentId: (params:
|
|
1776
|
-
environmentId:
|
|
1777
|
-
limit:
|
|
1778
|
-
offset:
|
|
1775
|
+
getTargetingRulesByEnvironmentId: (params: zod0.infer<zod0.ZodObject<{
|
|
1776
|
+
environmentId: zod0.ZodString;
|
|
1777
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1778
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1779
1779
|
}, better_auth0.$strip>>) => Promise<{
|
|
1780
|
+
configId: string;
|
|
1780
1781
|
id: string;
|
|
1781
|
-
createdAt: Date;
|
|
1782
|
-
updatedAt: Date;
|
|
1783
1782
|
environmentId: string;
|
|
1784
|
-
|
|
1783
|
+
enabled: boolean;
|
|
1785
1784
|
configVariantId: string;
|
|
1786
1785
|
variantVersionId: string | null;
|
|
1787
1786
|
weight: number;
|
|
1788
1787
|
priority: number;
|
|
1789
|
-
enabled: boolean;
|
|
1790
1788
|
conditions: Record<string, unknown>;
|
|
1789
|
+
createdAt: Date;
|
|
1790
|
+
updatedAt: Date;
|
|
1791
1791
|
}[]>;
|
|
1792
|
-
getTargetingRulesByConfigAndEnvironment: (params:
|
|
1793
|
-
configId:
|
|
1794
|
-
environmentId:
|
|
1792
|
+
getTargetingRulesByConfigAndEnvironment: (params: zod0.infer<zod0.ZodObject<{
|
|
1793
|
+
configId: zod0.ZodString;
|
|
1794
|
+
environmentId: zod0.ZodString;
|
|
1795
1795
|
}, better_auth0.$strip>>) => Promise<{
|
|
1796
|
+
configId: string;
|
|
1796
1797
|
id: string;
|
|
1797
|
-
createdAt: Date;
|
|
1798
|
-
updatedAt: Date;
|
|
1799
1798
|
environmentId: string;
|
|
1800
|
-
|
|
1799
|
+
enabled: boolean;
|
|
1801
1800
|
configVariantId: string;
|
|
1802
1801
|
variantVersionId: string | null;
|
|
1803
1802
|
weight: number;
|
|
1804
1803
|
priority: number;
|
|
1805
|
-
enabled: boolean;
|
|
1806
1804
|
conditions: Record<string, unknown>;
|
|
1805
|
+
createdAt: Date;
|
|
1806
|
+
updatedAt: Date;
|
|
1807
1807
|
}[]>;
|
|
1808
|
-
deleteTargetingRule: (params:
|
|
1809
|
-
id:
|
|
1808
|
+
deleteTargetingRule: (params: zod0.infer<zod0.ZodObject<{
|
|
1809
|
+
id: zod0.ZodString;
|
|
1810
1810
|
}, better_auth0.$strip>>) => Promise<{
|
|
1811
|
+
configId: string;
|
|
1811
1812
|
id: string;
|
|
1812
|
-
createdAt: Date;
|
|
1813
|
-
updatedAt: Date;
|
|
1814
1813
|
environmentId: string;
|
|
1815
|
-
|
|
1814
|
+
enabled: boolean;
|
|
1816
1815
|
configVariantId: string;
|
|
1817
1816
|
variantVersionId: string | null;
|
|
1818
1817
|
weight: number;
|
|
1819
1818
|
priority: number;
|
|
1820
|
-
enabled: boolean;
|
|
1821
1819
|
conditions: Record<string, unknown>;
|
|
1820
|
+
createdAt: Date;
|
|
1821
|
+
updatedAt: Date;
|
|
1822
1822
|
} | undefined>;
|
|
1823
|
-
deleteTargetingRulesByConfigId: (params:
|
|
1824
|
-
configId:
|
|
1823
|
+
deleteTargetingRulesByConfigId: (params: zod0.infer<zod0.ZodObject<{
|
|
1824
|
+
configId: zod0.ZodString;
|
|
1825
1825
|
}, better_auth0.$strip>>) => Promise<{
|
|
1826
|
+
configId: string;
|
|
1826
1827
|
id: string;
|
|
1827
|
-
createdAt: Date;
|
|
1828
|
-
updatedAt: Date;
|
|
1829
1828
|
environmentId: string;
|
|
1830
|
-
|
|
1829
|
+
enabled: boolean;
|
|
1831
1830
|
configVariantId: string;
|
|
1832
1831
|
variantVersionId: string | null;
|
|
1833
1832
|
weight: number;
|
|
1834
1833
|
priority: number;
|
|
1835
|
-
enabled: boolean;
|
|
1836
1834
|
conditions: Record<string, unknown>;
|
|
1835
|
+
createdAt: Date;
|
|
1836
|
+
updatedAt: Date;
|
|
1837
1837
|
}[]>;
|
|
1838
|
-
deleteTargetingRulesByEnvironmentId: (params:
|
|
1839
|
-
environmentId:
|
|
1838
|
+
deleteTargetingRulesByEnvironmentId: (params: zod0.infer<zod0.ZodObject<{
|
|
1839
|
+
environmentId: zod0.ZodString;
|
|
1840
1840
|
}, better_auth0.$strip>>) => Promise<{
|
|
1841
|
+
configId: string;
|
|
1841
1842
|
id: string;
|
|
1842
|
-
createdAt: Date;
|
|
1843
|
-
updatedAt: Date;
|
|
1844
1843
|
environmentId: string;
|
|
1845
|
-
|
|
1844
|
+
enabled: boolean;
|
|
1846
1845
|
configVariantId: string;
|
|
1847
1846
|
variantVersionId: string | null;
|
|
1848
1847
|
weight: number;
|
|
1849
1848
|
priority: number;
|
|
1850
|
-
enabled: boolean;
|
|
1851
1849
|
conditions: Record<string, unknown>;
|
|
1850
|
+
createdAt: Date;
|
|
1851
|
+
updatedAt: Date;
|
|
1852
1852
|
}[]>;
|
|
1853
|
-
listTargetingRules: (params?:
|
|
1854
|
-
limit:
|
|
1855
|
-
offset:
|
|
1853
|
+
listTargetingRules: (params?: zod0.infer<zod0.ZodObject<{
|
|
1854
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1855
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1856
1856
|
}, better_auth0.$strip>>) => Promise<{
|
|
1857
|
+
configId: string;
|
|
1857
1858
|
id: string;
|
|
1858
|
-
createdAt: Date;
|
|
1859
|
-
updatedAt: Date;
|
|
1860
1859
|
environmentId: string;
|
|
1861
|
-
|
|
1860
|
+
enabled: boolean;
|
|
1862
1861
|
configVariantId: string;
|
|
1863
1862
|
variantVersionId: string | null;
|
|
1864
1863
|
weight: number;
|
|
1865
1864
|
priority: number;
|
|
1866
|
-
enabled: boolean;
|
|
1867
1865
|
conditions: Record<string, unknown>;
|
|
1866
|
+
createdAt: Date;
|
|
1867
|
+
updatedAt: Date;
|
|
1868
1868
|
}[]>;
|
|
1869
|
-
getTargetingRulesWithDetailsByConfigId: (params:
|
|
1870
|
-
configId:
|
|
1871
|
-
limit:
|
|
1872
|
-
offset:
|
|
1869
|
+
getTargetingRulesWithDetailsByConfigId: (params: zod0.infer<zod0.ZodObject<{
|
|
1870
|
+
configId: zod0.ZodString;
|
|
1871
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1872
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1873
1873
|
}, better_auth0.$strip>>) => Promise<{
|
|
1874
1874
|
variantProvider: string | null;
|
|
1875
1875
|
variantModelName: string | null;
|
|
1876
1876
|
pinnedVersion: number | null | undefined;
|
|
1877
1877
|
latestVersion: number | null | undefined;
|
|
1878
1878
|
variantName: string | null;
|
|
1879
|
+
configId: string;
|
|
1879
1880
|
id: string;
|
|
1880
|
-
createdAt: Date;
|
|
1881
|
-
updatedAt: Date;
|
|
1882
1881
|
environmentId: string;
|
|
1883
|
-
|
|
1882
|
+
enabled: boolean;
|
|
1884
1883
|
configVariantId: string;
|
|
1885
1884
|
variantVersionId: string | null;
|
|
1886
1885
|
weight: number;
|
|
1887
1886
|
priority: number;
|
|
1888
|
-
enabled: boolean;
|
|
1889
1887
|
conditions: Record<string, unknown>;
|
|
1888
|
+
createdAt: Date;
|
|
1889
|
+
updatedAt: Date;
|
|
1890
1890
|
variantId: string | null;
|
|
1891
1891
|
environmentName: string | null;
|
|
1892
1892
|
environmentSlug: string | null;
|
|
1893
1893
|
}[]>;
|
|
1894
|
-
setTargetingForEnvironment: (params:
|
|
1895
|
-
environmentId:
|
|
1896
|
-
configId:
|
|
1897
|
-
configVariantId:
|
|
1898
|
-
variantVersionId:
|
|
1894
|
+
setTargetingForEnvironment: (params: zod0.infer<zod0.ZodObject<{
|
|
1895
|
+
environmentId: zod0.ZodString;
|
|
1896
|
+
configId: zod0.ZodString;
|
|
1897
|
+
configVariantId: zod0.ZodString;
|
|
1898
|
+
variantVersionId: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
|
|
1899
1899
|
}, better_auth0.$strip>>) => Promise<{
|
|
1900
|
+
configId: string;
|
|
1900
1901
|
id: string;
|
|
1901
|
-
createdAt: Date;
|
|
1902
|
-
updatedAt: Date;
|
|
1903
1902
|
environmentId: string;
|
|
1904
|
-
|
|
1903
|
+
enabled: boolean;
|
|
1905
1904
|
configVariantId: string;
|
|
1906
1905
|
variantVersionId: string | null;
|
|
1907
1906
|
weight: number;
|
|
1908
1907
|
priority: number;
|
|
1909
|
-
enabled: boolean;
|
|
1910
1908
|
conditions: Record<string, unknown>;
|
|
1909
|
+
createdAt: Date;
|
|
1910
|
+
updatedAt: Date;
|
|
1911
1911
|
} | undefined>;
|
|
1912
|
-
createProviderConfig: (params:
|
|
1913
|
-
providerId:
|
|
1914
|
-
name:
|
|
1915
|
-
config:
|
|
1916
|
-
enabled:
|
|
1912
|
+
createProviderConfig: (params: zod0.infer<zod0.ZodObject<{
|
|
1913
|
+
providerId: zod0.ZodString;
|
|
1914
|
+
name: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
|
|
1915
|
+
config: zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>;
|
|
1916
|
+
enabled: zod0.ZodDefault<zod0.ZodOptional<zod0.ZodBoolean>>;
|
|
1917
1917
|
}, better_auth0.$strip>>) => Promise<{
|
|
1918
1918
|
name: string | null;
|
|
1919
1919
|
id: string;
|
|
1920
|
+
config: Record<string, unknown>;
|
|
1921
|
+
providerId: string;
|
|
1922
|
+
enabled: boolean;
|
|
1920
1923
|
createdAt: Date;
|
|
1921
1924
|
updatedAt: Date;
|
|
1922
|
-
enabled: boolean;
|
|
1923
|
-
providerId: string;
|
|
1924
|
-
config: Record<string, unknown>;
|
|
1925
1925
|
} | undefined>;
|
|
1926
|
-
updateProviderConfig: (params:
|
|
1927
|
-
id:
|
|
1928
|
-
name:
|
|
1929
|
-
config:
|
|
1930
|
-
enabled:
|
|
1926
|
+
updateProviderConfig: (params: zod0.infer<zod0.ZodObject<{
|
|
1927
|
+
id: zod0.ZodUUID;
|
|
1928
|
+
name: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
|
|
1929
|
+
config: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>>;
|
|
1930
|
+
enabled: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
1931
1931
|
}, better_auth0.$strip>>) => Promise<{
|
|
1932
1932
|
name: string | null;
|
|
1933
1933
|
id: string;
|
|
1934
|
+
config: Record<string, unknown>;
|
|
1935
|
+
providerId: string;
|
|
1936
|
+
enabled: boolean;
|
|
1934
1937
|
createdAt: Date;
|
|
1935
1938
|
updatedAt: Date;
|
|
1936
|
-
enabled: boolean;
|
|
1937
|
-
providerId: string;
|
|
1938
|
-
config: Record<string, unknown>;
|
|
1939
1939
|
} | undefined>;
|
|
1940
|
-
getProviderConfigById: (params:
|
|
1941
|
-
id:
|
|
1940
|
+
getProviderConfigById: (params: zod0.infer<zod0.ZodObject<{
|
|
1941
|
+
id: zod0.ZodUUID;
|
|
1942
1942
|
}, better_auth0.$strip>>) => Promise<{
|
|
1943
1943
|
name: string | null;
|
|
1944
1944
|
id: string;
|
|
1945
|
+
config: Record<string, unknown>;
|
|
1946
|
+
providerId: string;
|
|
1947
|
+
enabled: boolean;
|
|
1945
1948
|
createdAt: Date;
|
|
1946
1949
|
updatedAt: Date;
|
|
1947
|
-
enabled: boolean;
|
|
1948
|
-
providerId: string;
|
|
1949
|
-
config: Record<string, unknown>;
|
|
1950
1950
|
} | undefined>;
|
|
1951
|
-
getProviderConfigByProviderId: (params:
|
|
1952
|
-
providerId:
|
|
1951
|
+
getProviderConfigByProviderId: (params: zod0.infer<zod0.ZodObject<{
|
|
1952
|
+
providerId: zod0.ZodString;
|
|
1953
1953
|
}, better_auth0.$strip>>) => Promise<{
|
|
1954
1954
|
name: string | null;
|
|
1955
1955
|
id: string;
|
|
1956
|
+
config: Record<string, unknown>;
|
|
1957
|
+
providerId: string;
|
|
1958
|
+
enabled: boolean;
|
|
1956
1959
|
createdAt: Date;
|
|
1957
1960
|
updatedAt: Date;
|
|
1958
|
-
enabled: boolean;
|
|
1959
|
-
providerId: string;
|
|
1960
|
-
config: Record<string, unknown>;
|
|
1961
1961
|
} | undefined>;
|
|
1962
|
-
deleteProviderConfig: (params:
|
|
1963
|
-
id:
|
|
1962
|
+
deleteProviderConfig: (params: zod0.infer<zod0.ZodObject<{
|
|
1963
|
+
id: zod0.ZodUUID;
|
|
1964
1964
|
}, better_auth0.$strip>>) => Promise<{
|
|
1965
1965
|
name: string | null;
|
|
1966
1966
|
id: string;
|
|
1967
|
+
config: Record<string, unknown>;
|
|
1968
|
+
providerId: string;
|
|
1969
|
+
enabled: boolean;
|
|
1967
1970
|
createdAt: Date;
|
|
1968
1971
|
updatedAt: Date;
|
|
1969
|
-
enabled: boolean;
|
|
1970
|
-
providerId: string;
|
|
1971
|
-
config: Record<string, unknown>;
|
|
1972
1972
|
} | undefined>;
|
|
1973
|
-
listProviderConfigs: (params?:
|
|
1974
|
-
limit:
|
|
1975
|
-
offset:
|
|
1973
|
+
listProviderConfigs: (params?: zod0.infer<zod0.ZodObject<{
|
|
1974
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1975
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1976
1976
|
}, better_auth0.$strip>>) => Promise<{
|
|
1977
1977
|
name: string | null;
|
|
1978
1978
|
id: string;
|
|
1979
|
+
config: Record<string, unknown>;
|
|
1980
|
+
providerId: string;
|
|
1981
|
+
enabled: boolean;
|
|
1979
1982
|
createdAt: Date;
|
|
1980
1983
|
updatedAt: Date;
|
|
1981
|
-
enabled: boolean;
|
|
1982
|
-
providerId: string;
|
|
1983
|
-
config: Record<string, unknown>;
|
|
1984
1984
|
}[]>;
|
|
1985
1985
|
countProviderConfigs: () => Promise<number>;
|
|
1986
|
-
upsertProviderConfig: (params:
|
|
1987
|
-
providerId:
|
|
1988
|
-
name:
|
|
1989
|
-
config:
|
|
1990
|
-
enabled:
|
|
1986
|
+
upsertProviderConfig: (params: zod0.infer<zod0.ZodObject<{
|
|
1987
|
+
providerId: zod0.ZodString;
|
|
1988
|
+
name: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
|
|
1989
|
+
config: zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>;
|
|
1990
|
+
enabled: zod0.ZodDefault<zod0.ZodOptional<zod0.ZodBoolean>>;
|
|
1991
1991
|
}, better_auth0.$strip>>) => Promise<{
|
|
1992
1992
|
name: string | null;
|
|
1993
1993
|
id: string;
|
|
1994
|
+
config: Record<string, unknown>;
|
|
1995
|
+
providerId: string;
|
|
1996
|
+
enabled: boolean;
|
|
1994
1997
|
createdAt: Date;
|
|
1995
1998
|
updatedAt: Date;
|
|
1996
|
-
enabled: boolean;
|
|
1997
|
-
providerId: string;
|
|
1998
|
-
config: Record<string, unknown>;
|
|
1999
1999
|
} | undefined>;
|
|
2000
2000
|
batchInsertRequests: (requests: LLMRequestInsert[]) => Promise<{
|
|
2001
2001
|
count: number;
|
|
2002
2002
|
}>;
|
|
2003
2003
|
insertRequest: (request: LLMRequestInsert) => Promise<{
|
|
2004
|
-
|
|
2005
|
-
createdAt: Date;
|
|
2006
|
-
updatedAt: Date;
|
|
2004
|
+
configId: string | null;
|
|
2007
2005
|
variantId: string | null;
|
|
2006
|
+
id: string;
|
|
2008
2007
|
provider: string;
|
|
2009
2008
|
environmentId: string | null;
|
|
2010
|
-
configId: string | null;
|
|
2011
2009
|
requestId: string;
|
|
2012
2010
|
providerConfigId: string | null;
|
|
2013
2011
|
model: string;
|
|
@@ -2024,28 +2022,28 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2024
2022
|
isStreaming: boolean;
|
|
2025
2023
|
userId: string | null;
|
|
2026
2024
|
tags: Record<string, string>;
|
|
2025
|
+
createdAt: Date;
|
|
2026
|
+
updatedAt: Date;
|
|
2027
2027
|
} | undefined>;
|
|
2028
|
-
listRequests: (params?:
|
|
2029
|
-
limit:
|
|
2030
|
-
offset:
|
|
2031
|
-
configId:
|
|
2032
|
-
variantId:
|
|
2033
|
-
environmentId:
|
|
2034
|
-
providerConfigId:
|
|
2035
|
-
provider:
|
|
2036
|
-
model:
|
|
2037
|
-
startDate:
|
|
2038
|
-
endDate:
|
|
2039
|
-
tags:
|
|
2028
|
+
listRequests: (params?: zod0.infer<zod0.ZodObject<{
|
|
2029
|
+
limit: zod0.ZodDefault<zod0.ZodNumber>;
|
|
2030
|
+
offset: zod0.ZodDefault<zod0.ZodNumber>;
|
|
2031
|
+
configId: zod0.ZodOptional<zod0.ZodString>;
|
|
2032
|
+
variantId: zod0.ZodOptional<zod0.ZodString>;
|
|
2033
|
+
environmentId: zod0.ZodOptional<zod0.ZodString>;
|
|
2034
|
+
providerConfigId: zod0.ZodOptional<zod0.ZodString>;
|
|
2035
|
+
provider: zod0.ZodOptional<zod0.ZodString>;
|
|
2036
|
+
model: zod0.ZodOptional<zod0.ZodString>;
|
|
2037
|
+
startDate: zod0.ZodOptional<zod0.ZodDate>;
|
|
2038
|
+
endDate: zod0.ZodOptional<zod0.ZodDate>;
|
|
2039
|
+
tags: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodArray<zod0.ZodString>>>;
|
|
2040
2040
|
}, better_auth0.$strip>>) => Promise<{
|
|
2041
2041
|
data: {
|
|
2042
|
-
|
|
2043
|
-
createdAt: Date;
|
|
2044
|
-
updatedAt: Date;
|
|
2042
|
+
configId: string | null;
|
|
2045
2043
|
variantId: string | null;
|
|
2044
|
+
id: string;
|
|
2046
2045
|
provider: string;
|
|
2047
2046
|
environmentId: string | null;
|
|
2048
|
-
configId: string | null;
|
|
2049
2047
|
requestId: string;
|
|
2050
2048
|
providerConfigId: string | null;
|
|
2051
2049
|
model: string;
|
|
@@ -2062,19 +2060,19 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2062
2060
|
isStreaming: boolean;
|
|
2063
2061
|
userId: string | null;
|
|
2064
2062
|
tags: Record<string, string>;
|
|
2063
|
+
createdAt: Date;
|
|
2064
|
+
updatedAt: Date;
|
|
2065
2065
|
}[];
|
|
2066
2066
|
total: number;
|
|
2067
2067
|
limit: number;
|
|
2068
2068
|
offset: number;
|
|
2069
2069
|
}>;
|
|
2070
2070
|
getRequestByRequestId: (requestId: string) => Promise<{
|
|
2071
|
-
|
|
2072
|
-
createdAt: Date;
|
|
2073
|
-
updatedAt: Date;
|
|
2071
|
+
configId: string | null;
|
|
2074
2072
|
variantId: string | null;
|
|
2073
|
+
id: string;
|
|
2075
2074
|
provider: string;
|
|
2076
2075
|
environmentId: string | null;
|
|
2077
|
-
configId: string | null;
|
|
2078
2076
|
requestId: string;
|
|
2079
2077
|
providerConfigId: string | null;
|
|
2080
2078
|
model: string;
|
|
@@ -2091,14 +2089,16 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2091
2089
|
isStreaming: boolean;
|
|
2092
2090
|
userId: string | null;
|
|
2093
2091
|
tags: Record<string, string>;
|
|
2092
|
+
createdAt: Date;
|
|
2093
|
+
updatedAt: Date;
|
|
2094
2094
|
} | undefined>;
|
|
2095
|
-
getTotalCost: (params:
|
|
2096
|
-
startDate:
|
|
2097
|
-
endDate:
|
|
2098
|
-
configId:
|
|
2099
|
-
variantId:
|
|
2100
|
-
environmentId:
|
|
2101
|
-
tags:
|
|
2095
|
+
getTotalCost: (params: zod0.infer<zod0.ZodObject<{
|
|
2096
|
+
startDate: zod0.ZodDate;
|
|
2097
|
+
endDate: zod0.ZodDate;
|
|
2098
|
+
configId: zod0.ZodOptional<zod0.ZodString>;
|
|
2099
|
+
variantId: zod0.ZodOptional<zod0.ZodString>;
|
|
2100
|
+
environmentId: zod0.ZodOptional<zod0.ZodString>;
|
|
2101
|
+
tags: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodArray<zod0.ZodString>>>;
|
|
2102
2102
|
}, better_auth0.$strip>>) => Promise<{
|
|
2103
2103
|
totalCost: number;
|
|
2104
2104
|
totalInputCost: number;
|
|
@@ -2108,13 +2108,13 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2108
2108
|
totalTokens: number;
|
|
2109
2109
|
requestCount: number;
|
|
2110
2110
|
} | undefined>;
|
|
2111
|
-
getCostByModel: (params:
|
|
2112
|
-
startDate:
|
|
2113
|
-
endDate:
|
|
2114
|
-
configId:
|
|
2115
|
-
variantId:
|
|
2116
|
-
environmentId:
|
|
2117
|
-
tags:
|
|
2111
|
+
getCostByModel: (params: zod0.infer<zod0.ZodObject<{
|
|
2112
|
+
startDate: zod0.ZodDate;
|
|
2113
|
+
endDate: zod0.ZodDate;
|
|
2114
|
+
configId: zod0.ZodOptional<zod0.ZodString>;
|
|
2115
|
+
variantId: zod0.ZodOptional<zod0.ZodString>;
|
|
2116
|
+
environmentId: zod0.ZodOptional<zod0.ZodString>;
|
|
2117
|
+
tags: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodArray<zod0.ZodString>>>;
|
|
2118
2118
|
}, better_auth0.$strip>>) => Promise<{
|
|
2119
2119
|
provider: string;
|
|
2120
2120
|
model: string;
|
|
@@ -2125,13 +2125,13 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2125
2125
|
requestCount: number;
|
|
2126
2126
|
avgLatencyMs: number;
|
|
2127
2127
|
}[]>;
|
|
2128
|
-
getCostByProvider: (params:
|
|
2129
|
-
startDate:
|
|
2130
|
-
endDate:
|
|
2131
|
-
configId:
|
|
2132
|
-
variantId:
|
|
2133
|
-
environmentId:
|
|
2134
|
-
tags:
|
|
2128
|
+
getCostByProvider: (params: zod0.infer<zod0.ZodObject<{
|
|
2129
|
+
startDate: zod0.ZodDate;
|
|
2130
|
+
endDate: zod0.ZodDate;
|
|
2131
|
+
configId: zod0.ZodOptional<zod0.ZodString>;
|
|
2132
|
+
variantId: zod0.ZodOptional<zod0.ZodString>;
|
|
2133
|
+
environmentId: zod0.ZodOptional<zod0.ZodString>;
|
|
2134
|
+
tags: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodArray<zod0.ZodString>>>;
|
|
2135
2135
|
}, better_auth0.$strip>>) => Promise<{
|
|
2136
2136
|
provider: string;
|
|
2137
2137
|
totalCost: number;
|
|
@@ -2141,13 +2141,13 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2141
2141
|
requestCount: number;
|
|
2142
2142
|
avgLatencyMs: number;
|
|
2143
2143
|
}[]>;
|
|
2144
|
-
getCostByConfig: (params:
|
|
2145
|
-
startDate:
|
|
2146
|
-
endDate:
|
|
2147
|
-
configId:
|
|
2148
|
-
variantId:
|
|
2149
|
-
environmentId:
|
|
2150
|
-
tags:
|
|
2144
|
+
getCostByConfig: (params: zod0.infer<zod0.ZodObject<{
|
|
2145
|
+
startDate: zod0.ZodDate;
|
|
2146
|
+
endDate: zod0.ZodDate;
|
|
2147
|
+
configId: zod0.ZodOptional<zod0.ZodString>;
|
|
2148
|
+
variantId: zod0.ZodOptional<zod0.ZodString>;
|
|
2149
|
+
environmentId: zod0.ZodOptional<zod0.ZodString>;
|
|
2150
|
+
tags: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodArray<zod0.ZodString>>>;
|
|
2151
2151
|
}, better_auth0.$strip>>) => Promise<{
|
|
2152
2152
|
configId: string | null;
|
|
2153
2153
|
totalCost: number;
|
|
@@ -2158,13 +2158,13 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2158
2158
|
configName: string | null | undefined;
|
|
2159
2159
|
configSlug: string | null;
|
|
2160
2160
|
}[]>;
|
|
2161
|
-
getDailyCosts: (params:
|
|
2162
|
-
startDate:
|
|
2163
|
-
endDate:
|
|
2164
|
-
configId:
|
|
2165
|
-
variantId:
|
|
2166
|
-
environmentId:
|
|
2167
|
-
tags:
|
|
2161
|
+
getDailyCosts: (params: zod0.infer<zod0.ZodObject<{
|
|
2162
|
+
startDate: zod0.ZodDate;
|
|
2163
|
+
endDate: zod0.ZodDate;
|
|
2164
|
+
configId: zod0.ZodOptional<zod0.ZodString>;
|
|
2165
|
+
variantId: zod0.ZodOptional<zod0.ZodString>;
|
|
2166
|
+
environmentId: zod0.ZodOptional<zod0.ZodString>;
|
|
2167
|
+
tags: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodArray<zod0.ZodString>>>;
|
|
2168
2168
|
}, better_auth0.$strip>>) => Promise<{
|
|
2169
2169
|
totalCost: number;
|
|
2170
2170
|
totalInputCost: number;
|
|
@@ -2173,32 +2173,32 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2173
2173
|
requestCount: number;
|
|
2174
2174
|
date: string;
|
|
2175
2175
|
}[]>;
|
|
2176
|
-
getCostSummary: (params:
|
|
2177
|
-
startDate:
|
|
2178
|
-
endDate:
|
|
2179
|
-
configId:
|
|
2180
|
-
variantId:
|
|
2181
|
-
environmentId:
|
|
2182
|
-
tags:
|
|
2183
|
-
groupBy:
|
|
2176
|
+
getCostSummary: (params: zod0.infer<zod0.ZodObject<{
|
|
2177
|
+
startDate: zod0.ZodDate;
|
|
2178
|
+
endDate: zod0.ZodDate;
|
|
2179
|
+
configId: zod0.ZodOptional<zod0.ZodString>;
|
|
2180
|
+
variantId: zod0.ZodOptional<zod0.ZodString>;
|
|
2181
|
+
environmentId: zod0.ZodOptional<zod0.ZodString>;
|
|
2182
|
+
tags: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodArray<zod0.ZodString>>>;
|
|
2183
|
+
groupBy: zod0.ZodOptional<zod0.ZodEnum<{
|
|
2184
2184
|
provider: "provider";
|
|
2185
|
-
config: "config";
|
|
2186
2185
|
model: "model";
|
|
2187
2186
|
day: "day";
|
|
2188
2187
|
hour: "hour";
|
|
2188
|
+
config: "config";
|
|
2189
2189
|
}>>;
|
|
2190
2190
|
}, better_auth0.$strip>>) => Promise<{
|
|
2191
2191
|
totalCost: number;
|
|
2192
2192
|
requestCount: number;
|
|
2193
2193
|
groupKey: string;
|
|
2194
2194
|
}[]>;
|
|
2195
|
-
getRequestStats: (params:
|
|
2196
|
-
startDate:
|
|
2197
|
-
endDate:
|
|
2198
|
-
configId:
|
|
2199
|
-
variantId:
|
|
2200
|
-
environmentId:
|
|
2201
|
-
tags:
|
|
2195
|
+
getRequestStats: (params: zod0.infer<zod0.ZodObject<{
|
|
2196
|
+
startDate: zod0.ZodDate;
|
|
2197
|
+
endDate: zod0.ZodDate;
|
|
2198
|
+
configId: zod0.ZodOptional<zod0.ZodString>;
|
|
2199
|
+
variantId: zod0.ZodOptional<zod0.ZodString>;
|
|
2200
|
+
environmentId: zod0.ZodOptional<zod0.ZodString>;
|
|
2201
|
+
tags: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodArray<zod0.ZodString>>>;
|
|
2202
2202
|
}, better_auth0.$strip>>) => Promise<{
|
|
2203
2203
|
avgLatencyMs: number;
|
|
2204
2204
|
totalRequests: number;
|
|
@@ -2212,270 +2212,270 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2212
2212
|
key: string;
|
|
2213
2213
|
value: string;
|
|
2214
2214
|
}[]>;
|
|
2215
|
-
createEnvironmentSecret: (params:
|
|
2216
|
-
environmentId:
|
|
2217
|
-
keyName:
|
|
2218
|
-
keyValue:
|
|
2215
|
+
createEnvironmentSecret: (params: zod0.infer<zod0.ZodObject<{
|
|
2216
|
+
environmentId: zod0.ZodUUID;
|
|
2217
|
+
keyName: zod0.ZodString;
|
|
2218
|
+
keyValue: zod0.ZodString;
|
|
2219
2219
|
}, better_auth0.$strip>>) => Promise<{
|
|
2220
2220
|
id: string;
|
|
2221
|
-
createdAt: Date;
|
|
2222
|
-
updatedAt: Date;
|
|
2223
2221
|
environmentId: string;
|
|
2224
2222
|
keyName: string;
|
|
2225
2223
|
keyValue: string;
|
|
2224
|
+
createdAt: Date;
|
|
2225
|
+
updatedAt: Date;
|
|
2226
2226
|
} | undefined>;
|
|
2227
|
-
updateEnvironmentSecret: (params:
|
|
2228
|
-
secretId:
|
|
2229
|
-
keyName:
|
|
2230
|
-
keyValue:
|
|
2227
|
+
updateEnvironmentSecret: (params: zod0.infer<zod0.ZodObject<{
|
|
2228
|
+
secretId: zod0.ZodUUID;
|
|
2229
|
+
keyName: zod0.ZodOptional<zod0.ZodString>;
|
|
2230
|
+
keyValue: zod0.ZodOptional<zod0.ZodString>;
|
|
2231
2231
|
}, better_auth0.$strip>>) => Promise<{
|
|
2232
2232
|
id: string;
|
|
2233
|
-
createdAt: Date;
|
|
2234
|
-
updatedAt: Date;
|
|
2235
2233
|
environmentId: string;
|
|
2236
2234
|
keyName: string;
|
|
2237
2235
|
keyValue: string;
|
|
2236
|
+
createdAt: Date;
|
|
2237
|
+
updatedAt: Date;
|
|
2238
2238
|
} | undefined>;
|
|
2239
|
-
getEnvironmentSecretById: (params:
|
|
2240
|
-
secretId:
|
|
2239
|
+
getEnvironmentSecretById: (params: zod0.infer<zod0.ZodObject<{
|
|
2240
|
+
secretId: zod0.ZodUUID;
|
|
2241
2241
|
}, better_auth0.$strip>>) => Promise<{
|
|
2242
2242
|
id: string;
|
|
2243
|
-
createdAt: Date;
|
|
2244
|
-
updatedAt: Date;
|
|
2245
2243
|
environmentId: string;
|
|
2246
2244
|
keyName: string;
|
|
2247
2245
|
keyValue: string;
|
|
2246
|
+
createdAt: Date;
|
|
2247
|
+
updatedAt: Date;
|
|
2248
2248
|
} | undefined>;
|
|
2249
|
-
getSecretsByEnvironmentId: (params:
|
|
2250
|
-
environmentId:
|
|
2249
|
+
getSecretsByEnvironmentId: (params: zod0.infer<zod0.ZodObject<{
|
|
2250
|
+
environmentId: zod0.ZodUUID;
|
|
2251
2251
|
}, better_auth0.$strip>>) => Promise<{
|
|
2252
2252
|
id: string;
|
|
2253
|
-
createdAt: Date;
|
|
2254
|
-
updatedAt: Date;
|
|
2255
2253
|
environmentId: string;
|
|
2256
2254
|
keyName: string;
|
|
2257
2255
|
keyValue: string;
|
|
2256
|
+
createdAt: Date;
|
|
2257
|
+
updatedAt: Date;
|
|
2258
2258
|
}[]>;
|
|
2259
|
-
deleteEnvironmentSecret: (params:
|
|
2260
|
-
secretId:
|
|
2259
|
+
deleteEnvironmentSecret: (params: zod0.infer<zod0.ZodObject<{
|
|
2260
|
+
secretId: zod0.ZodUUID;
|
|
2261
2261
|
}, better_auth0.$strip>>) => Promise<{
|
|
2262
2262
|
id: string;
|
|
2263
|
-
createdAt: Date;
|
|
2264
|
-
updatedAt: Date;
|
|
2265
2263
|
environmentId: string;
|
|
2266
2264
|
keyName: string;
|
|
2267
2265
|
keyValue: string;
|
|
2266
|
+
createdAt: Date;
|
|
2267
|
+
updatedAt: Date;
|
|
2268
2268
|
} | undefined>;
|
|
2269
|
-
deleteSecretsByEnvironmentId: (params:
|
|
2270
|
-
environmentId:
|
|
2269
|
+
deleteSecretsByEnvironmentId: (params: zod0.infer<zod0.ZodObject<{
|
|
2270
|
+
environmentId: zod0.ZodUUID;
|
|
2271
2271
|
}, better_auth0.$strip>>) => Promise<{
|
|
2272
2272
|
id: string;
|
|
2273
|
-
createdAt: Date;
|
|
2274
|
-
updatedAt: Date;
|
|
2275
2273
|
environmentId: string;
|
|
2276
2274
|
keyName: string;
|
|
2277
2275
|
keyValue: string;
|
|
2276
|
+
createdAt: Date;
|
|
2277
|
+
updatedAt: Date;
|
|
2278
2278
|
}[]>;
|
|
2279
|
-
listEnvironmentSecrets: (params?:
|
|
2280
|
-
limit:
|
|
2281
|
-
offset:
|
|
2279
|
+
listEnvironmentSecrets: (params?: zod0.infer<zod0.ZodObject<{
|
|
2280
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2281
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2282
2282
|
}, better_auth0.$strip>>) => Promise<{
|
|
2283
2283
|
id: string;
|
|
2284
|
-
createdAt: Date;
|
|
2285
|
-
updatedAt: Date;
|
|
2286
2284
|
environmentId: string;
|
|
2287
2285
|
keyName: string;
|
|
2288
2286
|
keyValue: string;
|
|
2287
|
+
createdAt: Date;
|
|
2288
|
+
updatedAt: Date;
|
|
2289
2289
|
}[]>;
|
|
2290
2290
|
countEnvironmentSecrets: () => Promise<number>;
|
|
2291
|
-
createNewEnvironment: (params:
|
|
2292
|
-
name:
|
|
2293
|
-
slug:
|
|
2294
|
-
isProd:
|
|
2291
|
+
createNewEnvironment: (params: zod0.infer<zod0.ZodObject<{
|
|
2292
|
+
name: zod0.ZodString;
|
|
2293
|
+
slug: zod0.ZodString;
|
|
2294
|
+
isProd: zod0.ZodDefault<zod0.ZodOptional<zod0.ZodBoolean>>;
|
|
2295
2295
|
}, better_auth0.$strip>>) => Promise<{
|
|
2296
|
-
slug: string;
|
|
2297
2296
|
name: string;
|
|
2298
2297
|
id: string;
|
|
2298
|
+
slug: string;
|
|
2299
|
+
isProd: boolean;
|
|
2299
2300
|
createdAt: Date;
|
|
2300
2301
|
updatedAt: Date;
|
|
2301
|
-
isProd: boolean;
|
|
2302
2302
|
} | undefined>;
|
|
2303
|
-
updateEnvironment: (params:
|
|
2304
|
-
environmentId:
|
|
2305
|
-
name:
|
|
2306
|
-
slug:
|
|
2303
|
+
updateEnvironment: (params: zod0.infer<zod0.ZodObject<{
|
|
2304
|
+
environmentId: zod0.ZodUUID;
|
|
2305
|
+
name: zod0.ZodOptional<zod0.ZodString>;
|
|
2306
|
+
slug: zod0.ZodOptional<zod0.ZodString>;
|
|
2307
2307
|
}, better_auth0.$strip>>) => Promise<{
|
|
2308
|
-
slug: string;
|
|
2309
2308
|
name: string;
|
|
2310
2309
|
id: string;
|
|
2310
|
+
slug: string;
|
|
2311
|
+
isProd: boolean;
|
|
2311
2312
|
createdAt: Date;
|
|
2312
2313
|
updatedAt: Date;
|
|
2313
|
-
isProd: boolean;
|
|
2314
2314
|
} | undefined>;
|
|
2315
|
-
getEnvironmentById: (params:
|
|
2316
|
-
environmentId:
|
|
2315
|
+
getEnvironmentById: (params: zod0.infer<zod0.ZodObject<{
|
|
2316
|
+
environmentId: zod0.ZodUUID;
|
|
2317
2317
|
}, better_auth0.$strip>>) => Promise<{
|
|
2318
|
-
slug: string;
|
|
2319
2318
|
name: string;
|
|
2320
2319
|
id: string;
|
|
2320
|
+
slug: string;
|
|
2321
|
+
isProd: boolean;
|
|
2321
2322
|
createdAt: Date;
|
|
2322
2323
|
updatedAt: Date;
|
|
2323
|
-
isProd: boolean;
|
|
2324
2324
|
} | undefined>;
|
|
2325
|
-
getEnvironmentBySlug: (params:
|
|
2326
|
-
slug:
|
|
2325
|
+
getEnvironmentBySlug: (params: zod0.infer<zod0.ZodObject<{
|
|
2326
|
+
slug: zod0.ZodString;
|
|
2327
2327
|
}, better_auth0.$strip>>) => Promise<{
|
|
2328
|
-
slug: string;
|
|
2329
2328
|
name: string;
|
|
2330
2329
|
id: string;
|
|
2330
|
+
slug: string;
|
|
2331
|
+
isProd: boolean;
|
|
2331
2332
|
createdAt: Date;
|
|
2332
2333
|
updatedAt: Date;
|
|
2333
|
-
isProd: boolean;
|
|
2334
2334
|
} | undefined>;
|
|
2335
|
-
deleteEnvironment: (params:
|
|
2336
|
-
environmentId:
|
|
2335
|
+
deleteEnvironment: (params: zod0.infer<zod0.ZodObject<{
|
|
2336
|
+
environmentId: zod0.ZodUUID;
|
|
2337
2337
|
}, better_auth0.$strip>>) => Promise<{
|
|
2338
|
-
slug: string;
|
|
2339
2338
|
name: string;
|
|
2340
2339
|
id: string;
|
|
2340
|
+
slug: string;
|
|
2341
|
+
isProd: boolean;
|
|
2341
2342
|
createdAt: Date;
|
|
2342
2343
|
updatedAt: Date;
|
|
2343
|
-
isProd: boolean;
|
|
2344
2344
|
} | undefined>;
|
|
2345
|
-
listEnvironments: (params?:
|
|
2346
|
-
limit:
|
|
2347
|
-
offset:
|
|
2345
|
+
listEnvironments: (params?: zod0.infer<zod0.ZodObject<{
|
|
2346
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2347
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2348
2348
|
}, better_auth0.$strip>>) => Promise<{
|
|
2349
|
-
slug: string;
|
|
2350
2349
|
name: string;
|
|
2351
2350
|
id: string;
|
|
2351
|
+
slug: string;
|
|
2352
|
+
isProd: boolean;
|
|
2352
2353
|
createdAt: Date;
|
|
2353
2354
|
updatedAt: Date;
|
|
2354
|
-
isProd: boolean;
|
|
2355
2355
|
}[]>;
|
|
2356
2356
|
countEnvironments: () => Promise<number>;
|
|
2357
|
-
createConfigVariant: (params:
|
|
2358
|
-
configId:
|
|
2359
|
-
variantId:
|
|
2357
|
+
createConfigVariant: (params: zod0.infer<zod0.ZodObject<{
|
|
2358
|
+
configId: zod0.ZodString;
|
|
2359
|
+
variantId: zod0.ZodString;
|
|
2360
2360
|
}, better_auth0.$strip>>) => Promise<{
|
|
2361
|
+
configId: string;
|
|
2362
|
+
variantId: string;
|
|
2361
2363
|
id: string;
|
|
2362
2364
|
createdAt: Date;
|
|
2363
2365
|
updatedAt: Date;
|
|
2364
|
-
variantId: string;
|
|
2365
|
-
configId: string;
|
|
2366
2366
|
} | undefined>;
|
|
2367
|
-
getConfigVariantById: (params:
|
|
2368
|
-
id:
|
|
2367
|
+
getConfigVariantById: (params: zod0.infer<zod0.ZodObject<{
|
|
2368
|
+
id: zod0.ZodString;
|
|
2369
2369
|
}, better_auth0.$strip>>) => Promise<{
|
|
2370
|
+
configId: string;
|
|
2371
|
+
variantId: string;
|
|
2370
2372
|
id: string;
|
|
2371
2373
|
createdAt: Date;
|
|
2372
2374
|
updatedAt: Date;
|
|
2373
|
-
variantId: string;
|
|
2374
|
-
configId: string;
|
|
2375
2375
|
} | undefined>;
|
|
2376
|
-
getConfigVariantsByConfigId: (params:
|
|
2377
|
-
configId:
|
|
2378
|
-
limit:
|
|
2379
|
-
offset:
|
|
2376
|
+
getConfigVariantsByConfigId: (params: zod0.infer<zod0.ZodObject<{
|
|
2377
|
+
configId: zod0.ZodString;
|
|
2378
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2379
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2380
2380
|
}, better_auth0.$strip>>) => Promise<{
|
|
2381
|
+
configId: string;
|
|
2382
|
+
variantId: string;
|
|
2381
2383
|
id: string;
|
|
2382
2384
|
createdAt: Date;
|
|
2383
2385
|
updatedAt: Date;
|
|
2384
|
-
variantId: string;
|
|
2385
|
-
configId: string;
|
|
2386
2386
|
}[]>;
|
|
2387
|
-
getConfigVariantsByVariantId: (params:
|
|
2388
|
-
variantId:
|
|
2389
|
-
limit:
|
|
2390
|
-
offset:
|
|
2387
|
+
getConfigVariantsByVariantId: (params: zod0.infer<zod0.ZodObject<{
|
|
2388
|
+
variantId: zod0.ZodString;
|
|
2389
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2390
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2391
2391
|
}, better_auth0.$strip>>) => Promise<{
|
|
2392
|
+
configId: string;
|
|
2393
|
+
variantId: string;
|
|
2392
2394
|
id: string;
|
|
2393
2395
|
createdAt: Date;
|
|
2394
2396
|
updatedAt: Date;
|
|
2395
|
-
variantId: string;
|
|
2396
|
-
configId: string;
|
|
2397
2397
|
}[]>;
|
|
2398
|
-
deleteConfigVariant: (params:
|
|
2399
|
-
id:
|
|
2398
|
+
deleteConfigVariant: (params: zod0.infer<zod0.ZodObject<{
|
|
2399
|
+
id: zod0.ZodString;
|
|
2400
2400
|
}, better_auth0.$strip>>) => Promise<{
|
|
2401
|
+
configId: string;
|
|
2402
|
+
variantId: string;
|
|
2401
2403
|
id: string;
|
|
2402
2404
|
createdAt: Date;
|
|
2403
2405
|
updatedAt: Date;
|
|
2404
|
-
variantId: string;
|
|
2405
|
-
configId: string;
|
|
2406
2406
|
} | undefined>;
|
|
2407
|
-
deleteConfigVariantByIds: (params:
|
|
2408
|
-
configId:
|
|
2409
|
-
variantId:
|
|
2407
|
+
deleteConfigVariantByIds: (params: zod0.infer<zod0.ZodObject<{
|
|
2408
|
+
configId: zod0.ZodString;
|
|
2409
|
+
variantId: zod0.ZodString;
|
|
2410
2410
|
}, better_auth0.$strip>>) => Promise<{
|
|
2411
|
+
configId: string;
|
|
2412
|
+
variantId: string;
|
|
2411
2413
|
id: string;
|
|
2412
2414
|
createdAt: Date;
|
|
2413
2415
|
updatedAt: Date;
|
|
2414
|
-
variantId: string;
|
|
2415
|
-
configId: string;
|
|
2416
2416
|
} | undefined>;
|
|
2417
|
-
listConfigVariants: (params?:
|
|
2418
|
-
limit:
|
|
2419
|
-
offset:
|
|
2417
|
+
listConfigVariants: (params?: zod0.infer<zod0.ZodObject<{
|
|
2418
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2419
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2420
2420
|
}, better_auth0.$strip>>) => Promise<{
|
|
2421
|
+
configId: string;
|
|
2422
|
+
variantId: string;
|
|
2421
2423
|
id: string;
|
|
2422
2424
|
createdAt: Date;
|
|
2423
2425
|
updatedAt: Date;
|
|
2424
|
-
variantId: string;
|
|
2425
|
-
configId: string;
|
|
2426
2426
|
}[]>;
|
|
2427
|
-
getConfigVariantWithDetails: (params:
|
|
2428
|
-
id:
|
|
2427
|
+
getConfigVariantWithDetails: (params: zod0.infer<zod0.ZodObject<{
|
|
2428
|
+
id: zod0.ZodString;
|
|
2429
2429
|
}, better_auth0.$strip>>) => Promise<{
|
|
2430
2430
|
latestVersion: {
|
|
2431
2431
|
version: number;
|
|
2432
|
-
id: string;
|
|
2433
|
-
createdAt: Date;
|
|
2434
|
-
updatedAt: Date;
|
|
2435
2432
|
variantId: string;
|
|
2433
|
+
id: string;
|
|
2436
2434
|
provider: string;
|
|
2437
2435
|
modelName: string;
|
|
2438
2436
|
jsonData: Record<string, unknown>;
|
|
2437
|
+
createdAt: Date;
|
|
2438
|
+
updatedAt: Date;
|
|
2439
2439
|
} | null;
|
|
2440
2440
|
variantName: string | null;
|
|
2441
2441
|
id: string;
|
|
2442
|
+
configId: string;
|
|
2443
|
+
variantId: string;
|
|
2442
2444
|
createdAt: Date;
|
|
2443
2445
|
updatedAt: Date;
|
|
2444
|
-
variantId: string;
|
|
2445
|
-
configId: string;
|
|
2446
2446
|
configName: string | null | undefined;
|
|
2447
2447
|
} | undefined>;
|
|
2448
|
-
getConfigVariantsWithDetailsByConfigId: (params:
|
|
2449
|
-
configId:
|
|
2450
|
-
limit:
|
|
2451
|
-
offset:
|
|
2448
|
+
getConfigVariantsWithDetailsByConfigId: (params: zod0.infer<zod0.ZodObject<{
|
|
2449
|
+
configId: zod0.ZodString;
|
|
2450
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2451
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2452
2452
|
}, better_auth0.$strip>>) => Promise<{
|
|
2453
2453
|
provider: string | null;
|
|
2454
2454
|
modelName: string | null;
|
|
2455
2455
|
jsonData: Record<string, unknown> | null;
|
|
2456
2456
|
latestVersion: {
|
|
2457
2457
|
version: number;
|
|
2458
|
-
id: string;
|
|
2459
|
-
createdAt: Date;
|
|
2460
|
-
updatedAt: Date;
|
|
2461
2458
|
variantId: string;
|
|
2459
|
+
id: string;
|
|
2462
2460
|
provider: string;
|
|
2463
2461
|
modelName: string;
|
|
2464
2462
|
jsonData: Record<string, unknown>;
|
|
2463
|
+
createdAt: Date;
|
|
2464
|
+
updatedAt: Date;
|
|
2465
2465
|
} | null;
|
|
2466
2466
|
name: string | null;
|
|
2467
2467
|
id: string;
|
|
2468
|
+
configId: string;
|
|
2469
|
+
variantId: string;
|
|
2468
2470
|
createdAt: Date;
|
|
2469
2471
|
updatedAt: Date;
|
|
2470
|
-
variantId: string;
|
|
2471
|
-
configId: string;
|
|
2472
2472
|
}[]>;
|
|
2473
|
-
createVariantAndLinkToConfig: (params:
|
|
2474
|
-
configId:
|
|
2475
|
-
name:
|
|
2476
|
-
provider:
|
|
2477
|
-
modelName:
|
|
2478
|
-
jsonData:
|
|
2473
|
+
createVariantAndLinkToConfig: (params: zod0.infer<zod0.ZodObject<{
|
|
2474
|
+
configId: zod0.ZodString;
|
|
2475
|
+
name: zod0.ZodString;
|
|
2476
|
+
provider: zod0.ZodString;
|
|
2477
|
+
modelName: zod0.ZodString;
|
|
2478
|
+
jsonData: zod0.ZodDefault<zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>>>;
|
|
2479
2479
|
}, better_auth0.$strip>>) => Promise<{
|
|
2480
2480
|
variant: {
|
|
2481
2481
|
name: string;
|
|
@@ -2485,25 +2485,25 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2485
2485
|
};
|
|
2486
2486
|
version: {
|
|
2487
2487
|
version: number;
|
|
2488
|
-
id: string;
|
|
2489
|
-
createdAt: Date;
|
|
2490
|
-
updatedAt: Date;
|
|
2491
2488
|
variantId: string;
|
|
2489
|
+
id: string;
|
|
2492
2490
|
provider: string;
|
|
2493
2491
|
modelName: string;
|
|
2494
2492
|
jsonData: Record<string, unknown>;
|
|
2493
|
+
createdAt: Date;
|
|
2494
|
+
updatedAt: Date;
|
|
2495
2495
|
};
|
|
2496
2496
|
configVariant: {
|
|
2497
|
+
configId: string;
|
|
2498
|
+
variantId: string;
|
|
2497
2499
|
id: string;
|
|
2498
2500
|
createdAt: Date;
|
|
2499
2501
|
updatedAt: Date;
|
|
2500
|
-
variantId: string;
|
|
2501
|
-
configId: string;
|
|
2502
2502
|
};
|
|
2503
2503
|
}>;
|
|
2504
|
-
getVariantJsonDataForConfig: (params:
|
|
2505
|
-
configId:
|
|
2506
|
-
envSecret:
|
|
2504
|
+
getVariantJsonDataForConfig: (params: zod0.infer<zod0.ZodObject<{
|
|
2505
|
+
configId: zod0.ZodString;
|
|
2506
|
+
envSecret: zod0.ZodOptional<zod0.ZodString>;
|
|
2507
2507
|
}, better_auth0.$strip>>) => Promise<{
|
|
2508
2508
|
provider: string;
|
|
2509
2509
|
providerConfigId: string | null;
|
|
@@ -2514,63 +2514,63 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2514
2514
|
modelName: string;
|
|
2515
2515
|
jsonData: Record<string, unknown>;
|
|
2516
2516
|
}>;
|
|
2517
|
-
createNewConfig: (params:
|
|
2518
|
-
name:
|
|
2517
|
+
createNewConfig: (params: zod0.infer<zod0.ZodObject<{
|
|
2518
|
+
name: zod0.ZodString;
|
|
2519
2519
|
}, better_auth0.$strip>>) => Promise<{
|
|
2520
|
-
slug: string;
|
|
2521
2520
|
name: string | undefined;
|
|
2522
2521
|
id: string;
|
|
2522
|
+
slug: string;
|
|
2523
2523
|
createdAt: Date;
|
|
2524
2524
|
updatedAt: Date;
|
|
2525
2525
|
} | undefined>;
|
|
2526
|
-
updateConfigName: (params:
|
|
2527
|
-
configId:
|
|
2528
|
-
newName:
|
|
2526
|
+
updateConfigName: (params: zod0.infer<zod0.ZodObject<{
|
|
2527
|
+
configId: zod0.ZodUUID;
|
|
2528
|
+
newName: zod0.ZodString;
|
|
2529
2529
|
}, better_auth0.$strip>>) => Promise<{
|
|
2530
|
-
slug: string;
|
|
2531
2530
|
name: string | undefined;
|
|
2532
2531
|
id: string;
|
|
2532
|
+
slug: string;
|
|
2533
2533
|
createdAt: Date;
|
|
2534
2534
|
updatedAt: Date;
|
|
2535
2535
|
} | undefined>;
|
|
2536
|
-
getConfigById: (params:
|
|
2537
|
-
configId:
|
|
2536
|
+
getConfigById: (params: zod0.infer<zod0.ZodObject<{
|
|
2537
|
+
configId: zod0.ZodUUID;
|
|
2538
2538
|
}, better_auth0.$strip>>) => Promise<{
|
|
2539
|
-
slug: string;
|
|
2540
2539
|
name: string | undefined;
|
|
2541
2540
|
id: string;
|
|
2541
|
+
slug: string;
|
|
2542
2542
|
createdAt: Date;
|
|
2543
2543
|
updatedAt: Date;
|
|
2544
2544
|
} | undefined>;
|
|
2545
|
-
deleteConfig: (params:
|
|
2546
|
-
configId:
|
|
2545
|
+
deleteConfig: (params: zod0.infer<zod0.ZodObject<{
|
|
2546
|
+
configId: zod0.ZodUUID;
|
|
2547
2547
|
}, better_auth0.$strip>>) => Promise<{
|
|
2548
|
-
slug: string;
|
|
2549
2548
|
name: string | undefined;
|
|
2550
2549
|
id: string;
|
|
2550
|
+
slug: string;
|
|
2551
2551
|
createdAt: Date;
|
|
2552
2552
|
updatedAt: Date;
|
|
2553
2553
|
} | undefined>;
|
|
2554
|
-
listConfigs: (params?:
|
|
2555
|
-
limit:
|
|
2556
|
-
offset:
|
|
2554
|
+
listConfigs: (params?: zod0.infer<zod0.ZodObject<{
|
|
2555
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2556
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2557
2557
|
}, better_auth0.$strip>>) => Promise<{
|
|
2558
|
-
slug: string;
|
|
2559
2558
|
name: string | undefined;
|
|
2560
2559
|
id: string;
|
|
2560
|
+
slug: string;
|
|
2561
2561
|
createdAt: Date;
|
|
2562
2562
|
updatedAt: Date;
|
|
2563
2563
|
}[]>;
|
|
2564
|
-
getConfigWithVariants: (params:
|
|
2565
|
-
configId:
|
|
2564
|
+
getConfigWithVariants: (params: zod0.infer<zod0.ZodObject<{
|
|
2565
|
+
configId: zod0.ZodUUID;
|
|
2566
2566
|
}, better_auth0.$strip>>) => Promise<{
|
|
2567
2567
|
provider: string | null;
|
|
2568
2568
|
modelName: string | null;
|
|
2569
2569
|
jsonData: Record<string, unknown> | null;
|
|
2570
2570
|
variantName: string | null;
|
|
2571
2571
|
id: string;
|
|
2572
|
-
slug: string;
|
|
2573
2572
|
name: string | undefined;
|
|
2573
|
+
slug: string;
|
|
2574
2574
|
createdAt: Date;
|
|
2575
2575
|
updatedAt: Date;
|
|
2576
2576
|
variantId: string | null;
|