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