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