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