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