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