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