@llmops/core 0.3.0 → 0.3.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/index.cjs +12 -0
- package/dist/index.d.cts +211 -203
- package/dist/index.d.mts +211 -203
- package/dist/index.mjs +12 -0
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -691,6 +691,14 @@ type ChatCompletionCreateParamsBase = z.infer<typeof chatCompletionCreateParamsB
|
|
|
691
691
|
*/
|
|
692
692
|
declare const variantJsonDataSchema: z.ZodObject<{
|
|
693
693
|
system_prompt: z.ZodOptional<z.ZodString>;
|
|
694
|
+
messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
695
|
+
role: z.ZodEnum<{
|
|
696
|
+
system: "system";
|
|
697
|
+
user: "user";
|
|
698
|
+
assistant: "assistant";
|
|
699
|
+
}>;
|
|
700
|
+
content: z.ZodString;
|
|
701
|
+
}, z.core.$strip>>>;
|
|
694
702
|
model: z.ZodOptional<z.ZodString>;
|
|
695
703
|
audio: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
696
704
|
format: z.ZodEnum<{
|
|
@@ -1141,9 +1149,6 @@ declare const createLLMRequestsDataLayer: (db: Kysely<Database>) => {
|
|
|
1141
1149
|
* Insert a single LLM request log
|
|
1142
1150
|
*/
|
|
1143
1151
|
insertRequest: (request: LLMRequestInsert) => Promise<{
|
|
1144
|
-
id: string;
|
|
1145
|
-
createdAt: Date;
|
|
1146
|
-
updatedAt: Date;
|
|
1147
1152
|
variantId: string | null;
|
|
1148
1153
|
provider: string;
|
|
1149
1154
|
environmentId: string | null;
|
|
@@ -1164,6 +1169,9 @@ declare const createLLMRequestsDataLayer: (db: Kysely<Database>) => {
|
|
|
1164
1169
|
isStreaming: boolean;
|
|
1165
1170
|
userId: string | null;
|
|
1166
1171
|
tags: Record<string, string>;
|
|
1172
|
+
id: string;
|
|
1173
|
+
createdAt: Date;
|
|
1174
|
+
updatedAt: Date;
|
|
1167
1175
|
} | undefined>;
|
|
1168
1176
|
/**
|
|
1169
1177
|
* List LLM requests with filtering and pagination
|
|
@@ -1171,9 +1179,6 @@ declare const createLLMRequestsDataLayer: (db: Kysely<Database>) => {
|
|
|
1171
1179
|
*/
|
|
1172
1180
|
listRequests: (params?: z$1.infer<typeof listRequestsSchema>) => Promise<{
|
|
1173
1181
|
data: {
|
|
1174
|
-
id: string;
|
|
1175
|
-
createdAt: Date;
|
|
1176
|
-
updatedAt: Date;
|
|
1177
1182
|
variantId: string | null;
|
|
1178
1183
|
provider: string;
|
|
1179
1184
|
environmentId: string | null;
|
|
@@ -1194,6 +1199,9 @@ declare const createLLMRequestsDataLayer: (db: Kysely<Database>) => {
|
|
|
1194
1199
|
isStreaming: boolean;
|
|
1195
1200
|
userId: string | null;
|
|
1196
1201
|
tags: Record<string, string>;
|
|
1202
|
+
id: string;
|
|
1203
|
+
createdAt: Date;
|
|
1204
|
+
updatedAt: Date;
|
|
1197
1205
|
}[];
|
|
1198
1206
|
total: number;
|
|
1199
1207
|
limit: number;
|
|
@@ -1203,9 +1211,6 @@ declare const createLLMRequestsDataLayer: (db: Kysely<Database>) => {
|
|
|
1203
1211
|
* Get a single request by requestId
|
|
1204
1212
|
*/
|
|
1205
1213
|
getRequestByRequestId: (requestId: string) => Promise<{
|
|
1206
|
-
id: string;
|
|
1207
|
-
createdAt: Date;
|
|
1208
|
-
updatedAt: Date;
|
|
1209
1214
|
variantId: string | null;
|
|
1210
1215
|
provider: string;
|
|
1211
1216
|
environmentId: string | null;
|
|
@@ -1226,6 +1231,9 @@ declare const createLLMRequestsDataLayer: (db: Kysely<Database>) => {
|
|
|
1226
1231
|
isStreaming: boolean;
|
|
1227
1232
|
userId: string | null;
|
|
1228
1233
|
tags: Record<string, string>;
|
|
1234
|
+
id: string;
|
|
1235
|
+
createdAt: Date;
|
|
1236
|
+
updatedAt: Date;
|
|
1229
1237
|
} | undefined>;
|
|
1230
1238
|
/**
|
|
1231
1239
|
* Get total cost for a date range with optional filters
|
|
@@ -1330,22 +1338,22 @@ declare const createWorkspaceSettingsDataLayer: (db: Kysely<Database>) => {
|
|
|
1330
1338
|
*/
|
|
1331
1339
|
getWorkspaceSettings: () => Promise<{
|
|
1332
1340
|
name: string | null;
|
|
1341
|
+
setupComplete: boolean;
|
|
1342
|
+
superAdminId: string | null;
|
|
1333
1343
|
id: string;
|
|
1334
1344
|
createdAt: Date;
|
|
1335
1345
|
updatedAt: Date;
|
|
1336
|
-
setupComplete: boolean;
|
|
1337
|
-
superAdminId: string | null;
|
|
1338
1346
|
} | undefined>;
|
|
1339
1347
|
/**
|
|
1340
1348
|
* Update workspace settings
|
|
1341
1349
|
*/
|
|
1342
1350
|
updateWorkspaceSettings: (params: z$1.infer<typeof updateWorkspaceSettings>) => Promise<{
|
|
1343
1351
|
name: string | null;
|
|
1352
|
+
setupComplete: boolean;
|
|
1353
|
+
superAdminId: string | null;
|
|
1344
1354
|
id: string;
|
|
1345
1355
|
createdAt: Date;
|
|
1346
1356
|
updatedAt: Date;
|
|
1347
|
-
setupComplete: boolean;
|
|
1348
|
-
superAdminId: string | null;
|
|
1349
1357
|
} | undefined>;
|
|
1350
1358
|
/**
|
|
1351
1359
|
* Get the super admin user ID
|
|
@@ -1364,11 +1372,11 @@ declare const createWorkspaceSettingsDataLayer: (db: Kysely<Database>) => {
|
|
|
1364
1372
|
*/
|
|
1365
1373
|
markSetupComplete: () => Promise<{
|
|
1366
1374
|
name: string | null;
|
|
1375
|
+
setupComplete: boolean;
|
|
1376
|
+
superAdminId: string | null;
|
|
1367
1377
|
id: string;
|
|
1368
1378
|
createdAt: Date;
|
|
1369
1379
|
updatedAt: Date;
|
|
1370
|
-
setupComplete: boolean;
|
|
1371
|
-
superAdminId: string | null;
|
|
1372
1380
|
} | undefined>;
|
|
1373
1381
|
};
|
|
1374
1382
|
//#endregion
|
|
@@ -1407,72 +1415,72 @@ declare const createProviderConfigsDataLayer: (db: Kysely<Database>) => {
|
|
|
1407
1415
|
createProviderConfig: (params: z$1.infer<typeof createProviderConfig>) => Promise<{
|
|
1408
1416
|
slug: string | null;
|
|
1409
1417
|
name: string | null;
|
|
1410
|
-
id: string;
|
|
1411
|
-
createdAt: Date;
|
|
1412
|
-
updatedAt: Date;
|
|
1413
1418
|
enabled: boolean;
|
|
1414
1419
|
providerId: string;
|
|
1415
1420
|
config: Record<string, unknown>;
|
|
1421
|
+
id: string;
|
|
1422
|
+
createdAt: Date;
|
|
1423
|
+
updatedAt: Date;
|
|
1416
1424
|
} | undefined>;
|
|
1417
1425
|
updateProviderConfig: (params: z$1.infer<typeof updateProviderConfig>) => Promise<{
|
|
1418
1426
|
slug: string | null;
|
|
1419
1427
|
name: string | null;
|
|
1420
|
-
id: string;
|
|
1421
|
-
createdAt: Date;
|
|
1422
|
-
updatedAt: Date;
|
|
1423
1428
|
enabled: boolean;
|
|
1424
1429
|
providerId: string;
|
|
1425
1430
|
config: Record<string, unknown>;
|
|
1431
|
+
id: string;
|
|
1432
|
+
createdAt: Date;
|
|
1433
|
+
updatedAt: Date;
|
|
1426
1434
|
} | undefined>;
|
|
1427
1435
|
getProviderConfigById: (params: z$1.infer<typeof getProviderConfigById>) => Promise<{
|
|
1428
1436
|
slug: string | null;
|
|
1429
1437
|
name: string | null;
|
|
1430
|
-
id: string;
|
|
1431
|
-
createdAt: Date;
|
|
1432
|
-
updatedAt: Date;
|
|
1433
1438
|
enabled: boolean;
|
|
1434
1439
|
providerId: string;
|
|
1435
1440
|
config: Record<string, unknown>;
|
|
1441
|
+
id: string;
|
|
1442
|
+
createdAt: Date;
|
|
1443
|
+
updatedAt: Date;
|
|
1436
1444
|
} | undefined>;
|
|
1437
1445
|
getProviderConfigByProviderId: (params: z$1.infer<typeof getProviderConfigByProviderId>) => Promise<{
|
|
1438
1446
|
slug: string | null;
|
|
1439
1447
|
name: string | null;
|
|
1440
|
-
id: string;
|
|
1441
|
-
createdAt: Date;
|
|
1442
|
-
updatedAt: Date;
|
|
1443
1448
|
enabled: boolean;
|
|
1444
1449
|
providerId: string;
|
|
1445
1450
|
config: Record<string, unknown>;
|
|
1451
|
+
id: string;
|
|
1452
|
+
createdAt: Date;
|
|
1453
|
+
updatedAt: Date;
|
|
1446
1454
|
} | undefined>;
|
|
1447
1455
|
getProviderConfigBySlug: (params: z$1.infer<typeof getProviderConfigBySlug>) => Promise<{
|
|
1448
1456
|
slug: string | null;
|
|
1449
1457
|
name: string | null;
|
|
1450
|
-
id: string;
|
|
1451
|
-
createdAt: Date;
|
|
1452
|
-
updatedAt: Date;
|
|
1453
1458
|
enabled: boolean;
|
|
1454
1459
|
providerId: string;
|
|
1455
1460
|
config: Record<string, unknown>;
|
|
1461
|
+
id: string;
|
|
1462
|
+
createdAt: Date;
|
|
1463
|
+
updatedAt: Date;
|
|
1456
1464
|
} | undefined>;
|
|
1457
1465
|
deleteProviderConfig: (params: z$1.infer<typeof deleteProviderConfig>) => Promise<{
|
|
1458
1466
|
slug: string | null;
|
|
1459
1467
|
name: string | null;
|
|
1460
|
-
id: string;
|
|
1461
|
-
createdAt: Date;
|
|
1462
|
-
updatedAt: Date;
|
|
1463
1468
|
enabled: boolean;
|
|
1464
1469
|
providerId: string;
|
|
1465
1470
|
config: Record<string, unknown>;
|
|
1471
|
+
id: string;
|
|
1472
|
+
createdAt: Date;
|
|
1473
|
+
updatedAt: Date;
|
|
1466
1474
|
} | undefined>;
|
|
1467
1475
|
listProviderConfigs: (params?: z$1.infer<typeof listProviderConfigs>) => Promise<{
|
|
1468
1476
|
slug: string | null;
|
|
1469
1477
|
name: string | null;
|
|
1470
|
-
id: string;
|
|
1471
|
-
createdAt: Date;
|
|
1472
|
-
updatedAt: Date;
|
|
1473
1478
|
enabled: boolean;
|
|
1474
1479
|
providerId: string;
|
|
1475
1480
|
config: Record<string, unknown>;
|
|
1481
|
+
id: string;
|
|
1482
|
+
createdAt: Date;
|
|
1483
|
+
updatedAt: Date;
|
|
1476
1484
|
}[]>;
|
|
1477
1485
|
countProviderConfigs: () => Promise<number>;
|
|
1478
1486
|
/**
|
|
@@ -1482,12 +1490,12 @@ declare const createProviderConfigsDataLayer: (db: Kysely<Database>) => {
|
|
|
1482
1490
|
upsertProviderConfig: (params: z$1.infer<typeof createProviderConfig>) => Promise<{
|
|
1483
1491
|
slug: string | null;
|
|
1484
1492
|
name: string | null;
|
|
1485
|
-
id: string;
|
|
1486
|
-
createdAt: Date;
|
|
1487
|
-
updatedAt: Date;
|
|
1488
1493
|
enabled: boolean;
|
|
1489
1494
|
providerId: string;
|
|
1490
1495
|
config: Record<string, unknown>;
|
|
1496
|
+
id: string;
|
|
1497
|
+
createdAt: Date;
|
|
1498
|
+
updatedAt: Date;
|
|
1491
1499
|
} | undefined>;
|
|
1492
1500
|
};
|
|
1493
1501
|
//#endregion
|
|
@@ -1495,11 +1503,11 @@ declare const createProviderConfigsDataLayer: (db: Kysely<Database>) => {
|
|
|
1495
1503
|
declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
1496
1504
|
getWorkspaceSettings: () => Promise<{
|
|
1497
1505
|
name: string | null;
|
|
1506
|
+
setupComplete: boolean;
|
|
1507
|
+
superAdminId: string | null;
|
|
1498
1508
|
id: string;
|
|
1499
1509
|
createdAt: Date;
|
|
1500
1510
|
updatedAt: Date;
|
|
1501
|
-
setupComplete: boolean;
|
|
1502
|
-
superAdminId: string | null;
|
|
1503
1511
|
} | undefined>;
|
|
1504
1512
|
updateWorkspaceSettings: (params: zod33.infer<zod33.ZodObject<{
|
|
1505
1513
|
name: zod33.ZodOptional<zod33.ZodNullable<zod33.ZodString>>;
|
|
@@ -1507,22 +1515,22 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
1507
1515
|
superAdminId: zod33.ZodOptional<zod33.ZodNullable<zod33.ZodString>>;
|
|
1508
1516
|
}, better_auth0.$strip>>) => Promise<{
|
|
1509
1517
|
name: string | null;
|
|
1518
|
+
setupComplete: boolean;
|
|
1519
|
+
superAdminId: string | null;
|
|
1510
1520
|
id: string;
|
|
1511
1521
|
createdAt: Date;
|
|
1512
1522
|
updatedAt: Date;
|
|
1513
|
-
setupComplete: boolean;
|
|
1514
|
-
superAdminId: string | null;
|
|
1515
1523
|
} | undefined>;
|
|
1516
1524
|
getSuperAdminId: () => Promise<string | null>;
|
|
1517
1525
|
setSuperAdminId: (userId: string) => Promise<boolean>;
|
|
1518
1526
|
isSetupComplete: () => Promise<boolean>;
|
|
1519
1527
|
markSetupComplete: () => Promise<{
|
|
1520
1528
|
name: string | null;
|
|
1529
|
+
setupComplete: boolean;
|
|
1530
|
+
superAdminId: string | null;
|
|
1521
1531
|
id: string;
|
|
1522
1532
|
createdAt: Date;
|
|
1523
1533
|
updatedAt: Date;
|
|
1524
|
-
setupComplete: boolean;
|
|
1525
|
-
superAdminId: string | null;
|
|
1526
1534
|
} | undefined>;
|
|
1527
1535
|
createVariantVersion: (params: zod33.infer<zod33.ZodObject<{
|
|
1528
1536
|
variantId: zod33.ZodString;
|
|
@@ -1531,25 +1539,25 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
1531
1539
|
jsonData: zod33.ZodDefault<zod33.ZodOptional<zod33.ZodRecord<zod33.ZodString, zod33.ZodUnknown>>>;
|
|
1532
1540
|
}, better_auth0.$strip>>) => Promise<{
|
|
1533
1541
|
version: number;
|
|
1534
|
-
id: string;
|
|
1535
|
-
createdAt: Date;
|
|
1536
|
-
updatedAt: Date;
|
|
1537
1542
|
variantId: string;
|
|
1538
1543
|
provider: string;
|
|
1539
1544
|
modelName: string;
|
|
1540
1545
|
jsonData: Record<string, unknown>;
|
|
1546
|
+
id: string;
|
|
1547
|
+
createdAt: Date;
|
|
1548
|
+
updatedAt: Date;
|
|
1541
1549
|
} | undefined>;
|
|
1542
1550
|
getVariantVersionById: (params: zod33.infer<zod33.ZodObject<{
|
|
1543
1551
|
id: zod33.ZodString;
|
|
1544
1552
|
}, better_auth0.$strip>>) => Promise<{
|
|
1545
1553
|
version: number;
|
|
1546
|
-
id: string;
|
|
1547
|
-
createdAt: Date;
|
|
1548
|
-
updatedAt: Date;
|
|
1549
1554
|
variantId: string;
|
|
1550
1555
|
provider: string;
|
|
1551
1556
|
modelName: string;
|
|
1552
1557
|
jsonData: Record<string, unknown>;
|
|
1558
|
+
id: string;
|
|
1559
|
+
createdAt: Date;
|
|
1560
|
+
updatedAt: Date;
|
|
1553
1561
|
} | undefined>;
|
|
1554
1562
|
getVariantVersionsByVariantId: (params: zod33.infer<zod33.ZodObject<{
|
|
1555
1563
|
variantId: zod33.ZodString;
|
|
@@ -1557,74 +1565,74 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
1557
1565
|
offset: zod33.ZodOptional<zod33.ZodNumber>;
|
|
1558
1566
|
}, better_auth0.$strip>>) => Promise<{
|
|
1559
1567
|
version: number;
|
|
1560
|
-
id: string;
|
|
1561
|
-
createdAt: Date;
|
|
1562
|
-
updatedAt: Date;
|
|
1563
1568
|
variantId: string;
|
|
1564
1569
|
provider: string;
|
|
1565
1570
|
modelName: string;
|
|
1566
1571
|
jsonData: Record<string, unknown>;
|
|
1572
|
+
id: string;
|
|
1573
|
+
createdAt: Date;
|
|
1574
|
+
updatedAt: Date;
|
|
1567
1575
|
}[]>;
|
|
1568
1576
|
getLatestVariantVersion: (params: zod33.infer<zod33.ZodObject<{
|
|
1569
1577
|
variantId: zod33.ZodString;
|
|
1570
1578
|
}, better_auth0.$strip>>) => Promise<{
|
|
1571
1579
|
version: number;
|
|
1572
|
-
id: string;
|
|
1573
|
-
createdAt: Date;
|
|
1574
|
-
updatedAt: Date;
|
|
1575
1580
|
variantId: string;
|
|
1576
1581
|
provider: string;
|
|
1577
1582
|
modelName: string;
|
|
1578
1583
|
jsonData: Record<string, unknown>;
|
|
1584
|
+
id: string;
|
|
1585
|
+
createdAt: Date;
|
|
1586
|
+
updatedAt: Date;
|
|
1579
1587
|
} | undefined>;
|
|
1580
1588
|
getVariantVersionByNumber: (params: zod33.infer<zod33.ZodObject<{
|
|
1581
1589
|
variantId: zod33.ZodString;
|
|
1582
1590
|
version: zod33.ZodNumber;
|
|
1583
1591
|
}, better_auth0.$strip>>) => Promise<{
|
|
1584
1592
|
version: number;
|
|
1585
|
-
id: string;
|
|
1586
|
-
createdAt: Date;
|
|
1587
|
-
updatedAt: Date;
|
|
1588
1593
|
variantId: string;
|
|
1589
1594
|
provider: string;
|
|
1590
1595
|
modelName: string;
|
|
1591
1596
|
jsonData: Record<string, unknown>;
|
|
1597
|
+
id: string;
|
|
1598
|
+
createdAt: Date;
|
|
1599
|
+
updatedAt: Date;
|
|
1592
1600
|
} | undefined>;
|
|
1593
1601
|
deleteVariantVersion: (params: zod33.infer<zod33.ZodObject<{
|
|
1594
1602
|
id: zod33.ZodString;
|
|
1595
1603
|
}, better_auth0.$strip>>) => Promise<{
|
|
1596
1604
|
version: number;
|
|
1597
|
-
id: string;
|
|
1598
|
-
createdAt: Date;
|
|
1599
|
-
updatedAt: Date;
|
|
1600
1605
|
variantId: string;
|
|
1601
1606
|
provider: string;
|
|
1602
1607
|
modelName: string;
|
|
1603
1608
|
jsonData: Record<string, unknown>;
|
|
1609
|
+
id: string;
|
|
1610
|
+
createdAt: Date;
|
|
1611
|
+
updatedAt: Date;
|
|
1604
1612
|
} | undefined>;
|
|
1605
1613
|
deleteVariantVersionsByVariantId: (params: zod33.infer<zod33.ZodObject<{
|
|
1606
1614
|
variantId: zod33.ZodString;
|
|
1607
1615
|
}, better_auth0.$strip>>) => Promise<{
|
|
1608
1616
|
version: number;
|
|
1609
|
-
id: string;
|
|
1610
|
-
createdAt: Date;
|
|
1611
|
-
updatedAt: Date;
|
|
1612
1617
|
variantId: string;
|
|
1613
1618
|
provider: string;
|
|
1614
1619
|
modelName: string;
|
|
1615
1620
|
jsonData: Record<string, unknown>;
|
|
1621
|
+
id: string;
|
|
1622
|
+
createdAt: Date;
|
|
1623
|
+
updatedAt: Date;
|
|
1616
1624
|
}[]>;
|
|
1617
1625
|
getVariantVersionWithVariant: (params: zod33.infer<zod33.ZodObject<{
|
|
1618
1626
|
id: zod33.ZodString;
|
|
1619
1627
|
}, better_auth0.$strip>>) => Promise<{
|
|
1620
1628
|
version: number;
|
|
1621
|
-
id: string;
|
|
1622
|
-
createdAt: Date;
|
|
1623
|
-
updatedAt: Date;
|
|
1624
1629
|
variantId: string;
|
|
1625
1630
|
provider: string;
|
|
1626
1631
|
modelName: string;
|
|
1627
1632
|
jsonData: Record<string, unknown>;
|
|
1633
|
+
id: string;
|
|
1634
|
+
createdAt: Date;
|
|
1635
|
+
updatedAt: Date;
|
|
1628
1636
|
variantName: string;
|
|
1629
1637
|
} | undefined>;
|
|
1630
1638
|
getVariantVersionsWithVariantByVariantId: (params: zod33.infer<zod33.ZodObject<{
|
|
@@ -1633,13 +1641,13 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
1633
1641
|
offset: zod33.ZodOptional<zod33.ZodNumber>;
|
|
1634
1642
|
}, better_auth0.$strip>>) => Promise<{
|
|
1635
1643
|
version: number;
|
|
1636
|
-
id: string;
|
|
1637
|
-
createdAt: Date;
|
|
1638
|
-
updatedAt: Date;
|
|
1639
1644
|
variantId: string;
|
|
1640
1645
|
provider: string;
|
|
1641
1646
|
modelName: string;
|
|
1642
1647
|
jsonData: Record<string, unknown>;
|
|
1648
|
+
id: string;
|
|
1649
|
+
createdAt: Date;
|
|
1650
|
+
updatedAt: Date;
|
|
1643
1651
|
variantName: string;
|
|
1644
1652
|
}[]>;
|
|
1645
1653
|
createVariant: (params: zod33.infer<zod33.ZodObject<{
|
|
@@ -1672,13 +1680,13 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
1672
1680
|
}, better_auth0.$strip>>) => Promise<{
|
|
1673
1681
|
latestVersion: {
|
|
1674
1682
|
version: number;
|
|
1675
|
-
id: string;
|
|
1676
|
-
createdAt: Date;
|
|
1677
|
-
updatedAt: Date;
|
|
1678
1683
|
variantId: string;
|
|
1679
1684
|
provider: string;
|
|
1680
1685
|
modelName: string;
|
|
1681
1686
|
jsonData: Record<string, unknown>;
|
|
1687
|
+
id: string;
|
|
1688
|
+
createdAt: Date;
|
|
1689
|
+
updatedAt: Date;
|
|
1682
1690
|
} | null;
|
|
1683
1691
|
name: string;
|
|
1684
1692
|
id: string;
|
|
@@ -1708,13 +1716,13 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
1708
1716
|
}, better_auth0.$strip>>) => Promise<{
|
|
1709
1717
|
latestVersion: {
|
|
1710
1718
|
version: number;
|
|
1711
|
-
id: string;
|
|
1712
|
-
createdAt: Date;
|
|
1713
|
-
updatedAt: Date;
|
|
1714
1719
|
variantId: string;
|
|
1715
1720
|
provider: string;
|
|
1716
1721
|
modelName: string;
|
|
1717
1722
|
jsonData: Record<string, unknown>;
|
|
1723
|
+
id: string;
|
|
1724
|
+
createdAt: Date;
|
|
1725
|
+
updatedAt: Date;
|
|
1718
1726
|
} | null;
|
|
1719
1727
|
name: string;
|
|
1720
1728
|
id: string;
|
|
@@ -1731,9 +1739,6 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
1731
1739
|
enabled: zod33.ZodDefault<zod33.ZodOptional<zod33.ZodBoolean>>;
|
|
1732
1740
|
conditions: zod33.ZodOptional<zod33.ZodNullable<zod33.ZodRecord<zod33.ZodString, zod33.ZodUnknown>>>;
|
|
1733
1741
|
}, better_auth0.$strip>>) => Promise<{
|
|
1734
|
-
id: string;
|
|
1735
|
-
createdAt: Date;
|
|
1736
|
-
updatedAt: Date;
|
|
1737
1742
|
environmentId: string;
|
|
1738
1743
|
configId: string;
|
|
1739
1744
|
configVariantId: string;
|
|
@@ -1742,6 +1747,9 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
1742
1747
|
priority: number;
|
|
1743
1748
|
enabled: boolean;
|
|
1744
1749
|
conditions: Record<string, unknown>;
|
|
1750
|
+
id: string;
|
|
1751
|
+
createdAt: Date;
|
|
1752
|
+
updatedAt: Date;
|
|
1745
1753
|
} | undefined>;
|
|
1746
1754
|
updateTargetingRule: (params: zod33.infer<zod33.ZodObject<{
|
|
1747
1755
|
id: zod33.ZodString;
|
|
@@ -1751,9 +1759,6 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
1751
1759
|
enabled: zod33.ZodOptional<zod33.ZodBoolean>;
|
|
1752
1760
|
conditions: zod33.ZodOptional<zod33.ZodNullable<zod33.ZodRecord<zod33.ZodString, zod33.ZodUnknown>>>;
|
|
1753
1761
|
}, better_auth0.$strip>>) => Promise<{
|
|
1754
|
-
id: string;
|
|
1755
|
-
createdAt: Date;
|
|
1756
|
-
updatedAt: Date;
|
|
1757
1762
|
environmentId: string;
|
|
1758
1763
|
configId: string;
|
|
1759
1764
|
configVariantId: string;
|
|
@@ -1762,13 +1767,13 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
1762
1767
|
priority: number;
|
|
1763
1768
|
enabled: boolean;
|
|
1764
1769
|
conditions: Record<string, unknown>;
|
|
1770
|
+
id: string;
|
|
1771
|
+
createdAt: Date;
|
|
1772
|
+
updatedAt: Date;
|
|
1765
1773
|
} | undefined>;
|
|
1766
1774
|
getTargetingRuleById: (params: zod33.infer<zod33.ZodObject<{
|
|
1767
1775
|
id: zod33.ZodString;
|
|
1768
1776
|
}, better_auth0.$strip>>) => Promise<{
|
|
1769
|
-
id: string;
|
|
1770
|
-
createdAt: Date;
|
|
1771
|
-
updatedAt: Date;
|
|
1772
1777
|
environmentId: string;
|
|
1773
1778
|
configId: string;
|
|
1774
1779
|
configVariantId: string;
|
|
@@ -1777,15 +1782,15 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
1777
1782
|
priority: number;
|
|
1778
1783
|
enabled: boolean;
|
|
1779
1784
|
conditions: Record<string, unknown>;
|
|
1785
|
+
id: string;
|
|
1786
|
+
createdAt: Date;
|
|
1787
|
+
updatedAt: Date;
|
|
1780
1788
|
} | undefined>;
|
|
1781
1789
|
getTargetingRulesByConfigId: (params: zod33.infer<zod33.ZodObject<{
|
|
1782
1790
|
configId: zod33.ZodString;
|
|
1783
1791
|
limit: zod33.ZodOptional<zod33.ZodNumber>;
|
|
1784
1792
|
offset: zod33.ZodOptional<zod33.ZodNumber>;
|
|
1785
1793
|
}, better_auth0.$strip>>) => Promise<{
|
|
1786
|
-
id: string;
|
|
1787
|
-
createdAt: Date;
|
|
1788
|
-
updatedAt: Date;
|
|
1789
1794
|
environmentId: string;
|
|
1790
1795
|
configId: string;
|
|
1791
1796
|
configVariantId: string;
|
|
@@ -1794,15 +1799,15 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
1794
1799
|
priority: number;
|
|
1795
1800
|
enabled: boolean;
|
|
1796
1801
|
conditions: Record<string, unknown>;
|
|
1802
|
+
id: string;
|
|
1803
|
+
createdAt: Date;
|
|
1804
|
+
updatedAt: Date;
|
|
1797
1805
|
}[]>;
|
|
1798
1806
|
getTargetingRulesByEnvironmentId: (params: zod33.infer<zod33.ZodObject<{
|
|
1799
1807
|
environmentId: zod33.ZodString;
|
|
1800
1808
|
limit: zod33.ZodOptional<zod33.ZodNumber>;
|
|
1801
1809
|
offset: zod33.ZodOptional<zod33.ZodNumber>;
|
|
1802
1810
|
}, better_auth0.$strip>>) => Promise<{
|
|
1803
|
-
id: string;
|
|
1804
|
-
createdAt: Date;
|
|
1805
|
-
updatedAt: Date;
|
|
1806
1811
|
environmentId: string;
|
|
1807
1812
|
configId: string;
|
|
1808
1813
|
configVariantId: string;
|
|
@@ -1811,14 +1816,14 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
1811
1816
|
priority: number;
|
|
1812
1817
|
enabled: boolean;
|
|
1813
1818
|
conditions: Record<string, unknown>;
|
|
1819
|
+
id: string;
|
|
1820
|
+
createdAt: Date;
|
|
1821
|
+
updatedAt: Date;
|
|
1814
1822
|
}[]>;
|
|
1815
1823
|
getTargetingRulesByConfigAndEnvironment: (params: zod33.infer<zod33.ZodObject<{
|
|
1816
1824
|
configId: zod33.ZodString;
|
|
1817
1825
|
environmentId: zod33.ZodString;
|
|
1818
1826
|
}, better_auth0.$strip>>) => Promise<{
|
|
1819
|
-
id: string;
|
|
1820
|
-
createdAt: Date;
|
|
1821
|
-
updatedAt: Date;
|
|
1822
1827
|
environmentId: string;
|
|
1823
1828
|
configId: string;
|
|
1824
1829
|
configVariantId: string;
|
|
@@ -1827,13 +1832,13 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
1827
1832
|
priority: number;
|
|
1828
1833
|
enabled: boolean;
|
|
1829
1834
|
conditions: Record<string, unknown>;
|
|
1835
|
+
id: string;
|
|
1836
|
+
createdAt: Date;
|
|
1837
|
+
updatedAt: Date;
|
|
1830
1838
|
}[]>;
|
|
1831
1839
|
deleteTargetingRule: (params: zod33.infer<zod33.ZodObject<{
|
|
1832
1840
|
id: zod33.ZodString;
|
|
1833
1841
|
}, better_auth0.$strip>>) => Promise<{
|
|
1834
|
-
id: string;
|
|
1835
|
-
createdAt: Date;
|
|
1836
|
-
updatedAt: Date;
|
|
1837
1842
|
environmentId: string;
|
|
1838
1843
|
configId: string;
|
|
1839
1844
|
configVariantId: string;
|
|
@@ -1842,13 +1847,13 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
1842
1847
|
priority: number;
|
|
1843
1848
|
enabled: boolean;
|
|
1844
1849
|
conditions: Record<string, unknown>;
|
|
1850
|
+
id: string;
|
|
1851
|
+
createdAt: Date;
|
|
1852
|
+
updatedAt: Date;
|
|
1845
1853
|
} | undefined>;
|
|
1846
1854
|
deleteTargetingRulesByConfigId: (params: zod33.infer<zod33.ZodObject<{
|
|
1847
1855
|
configId: zod33.ZodString;
|
|
1848
1856
|
}, better_auth0.$strip>>) => Promise<{
|
|
1849
|
-
id: string;
|
|
1850
|
-
createdAt: Date;
|
|
1851
|
-
updatedAt: Date;
|
|
1852
1857
|
environmentId: string;
|
|
1853
1858
|
configId: string;
|
|
1854
1859
|
configVariantId: string;
|
|
@@ -1857,13 +1862,13 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
1857
1862
|
priority: number;
|
|
1858
1863
|
enabled: boolean;
|
|
1859
1864
|
conditions: Record<string, unknown>;
|
|
1865
|
+
id: string;
|
|
1866
|
+
createdAt: Date;
|
|
1867
|
+
updatedAt: Date;
|
|
1860
1868
|
}[]>;
|
|
1861
1869
|
deleteTargetingRulesByEnvironmentId: (params: zod33.infer<zod33.ZodObject<{
|
|
1862
1870
|
environmentId: zod33.ZodString;
|
|
1863
1871
|
}, better_auth0.$strip>>) => Promise<{
|
|
1864
|
-
id: string;
|
|
1865
|
-
createdAt: Date;
|
|
1866
|
-
updatedAt: Date;
|
|
1867
1872
|
environmentId: string;
|
|
1868
1873
|
configId: string;
|
|
1869
1874
|
configVariantId: string;
|
|
@@ -1872,14 +1877,14 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
1872
1877
|
priority: number;
|
|
1873
1878
|
enabled: boolean;
|
|
1874
1879
|
conditions: Record<string, unknown>;
|
|
1880
|
+
id: string;
|
|
1881
|
+
createdAt: Date;
|
|
1882
|
+
updatedAt: Date;
|
|
1875
1883
|
}[]>;
|
|
1876
1884
|
listTargetingRules: (params?: zod33.infer<zod33.ZodObject<{
|
|
1877
1885
|
limit: zod33.ZodOptional<zod33.ZodNumber>;
|
|
1878
1886
|
offset: zod33.ZodOptional<zod33.ZodNumber>;
|
|
1879
1887
|
}, better_auth0.$strip>>) => Promise<{
|
|
1880
|
-
id: string;
|
|
1881
|
-
createdAt: Date;
|
|
1882
|
-
updatedAt: Date;
|
|
1883
1888
|
environmentId: string;
|
|
1884
1889
|
configId: string;
|
|
1885
1890
|
configVariantId: string;
|
|
@@ -1888,6 +1893,9 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
1888
1893
|
priority: number;
|
|
1889
1894
|
enabled: boolean;
|
|
1890
1895
|
conditions: Record<string, unknown>;
|
|
1896
|
+
id: string;
|
|
1897
|
+
createdAt: Date;
|
|
1898
|
+
updatedAt: Date;
|
|
1891
1899
|
}[]>;
|
|
1892
1900
|
getTargetingRulesWithDetailsByConfigId: (params: zod33.infer<zod33.ZodObject<{
|
|
1893
1901
|
configId: zod33.ZodString;
|
|
@@ -1899,9 +1907,6 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
1899
1907
|
pinnedVersion: number | null | undefined;
|
|
1900
1908
|
latestVersion: number | null | undefined;
|
|
1901
1909
|
variantName: string | null;
|
|
1902
|
-
id: string;
|
|
1903
|
-
createdAt: Date;
|
|
1904
|
-
updatedAt: Date;
|
|
1905
1910
|
environmentId: string;
|
|
1906
1911
|
configId: string;
|
|
1907
1912
|
configVariantId: string;
|
|
@@ -1910,6 +1915,9 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
1910
1915
|
priority: number;
|
|
1911
1916
|
enabled: boolean;
|
|
1912
1917
|
conditions: Record<string, unknown>;
|
|
1918
|
+
id: string;
|
|
1919
|
+
createdAt: Date;
|
|
1920
|
+
updatedAt: Date;
|
|
1913
1921
|
variantId: string | null;
|
|
1914
1922
|
environmentName: string | null;
|
|
1915
1923
|
environmentSlug: string | null;
|
|
@@ -1920,9 +1928,6 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
1920
1928
|
configVariantId: zod33.ZodString;
|
|
1921
1929
|
variantVersionId: zod33.ZodOptional<zod33.ZodNullable<zod33.ZodString>>;
|
|
1922
1930
|
}, better_auth0.$strip>>) => Promise<{
|
|
1923
|
-
id: string;
|
|
1924
|
-
createdAt: Date;
|
|
1925
|
-
updatedAt: Date;
|
|
1926
1931
|
environmentId: string;
|
|
1927
1932
|
configId: string;
|
|
1928
1933
|
configVariantId: string;
|
|
@@ -1931,6 +1936,9 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
1931
1936
|
priority: number;
|
|
1932
1937
|
enabled: boolean;
|
|
1933
1938
|
conditions: Record<string, unknown>;
|
|
1939
|
+
id: string;
|
|
1940
|
+
createdAt: Date;
|
|
1941
|
+
updatedAt: Date;
|
|
1934
1942
|
} | undefined>;
|
|
1935
1943
|
createProviderConfig: (params: zod33.infer<zod33.ZodObject<{
|
|
1936
1944
|
providerId: zod33.ZodString;
|
|
@@ -1941,12 +1949,12 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
1941
1949
|
}, better_auth0.$strip>>) => Promise<{
|
|
1942
1950
|
slug: string | null;
|
|
1943
1951
|
name: string | null;
|
|
1944
|
-
id: string;
|
|
1945
|
-
createdAt: Date;
|
|
1946
|
-
updatedAt: Date;
|
|
1947
1952
|
enabled: boolean;
|
|
1948
1953
|
providerId: string;
|
|
1949
1954
|
config: Record<string, unknown>;
|
|
1955
|
+
id: string;
|
|
1956
|
+
createdAt: Date;
|
|
1957
|
+
updatedAt: Date;
|
|
1950
1958
|
} | undefined>;
|
|
1951
1959
|
updateProviderConfig: (params: zod33.infer<zod33.ZodObject<{
|
|
1952
1960
|
id: zod33.ZodUUID;
|
|
@@ -1957,60 +1965,60 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
1957
1965
|
}, better_auth0.$strip>>) => Promise<{
|
|
1958
1966
|
slug: string | null;
|
|
1959
1967
|
name: string | null;
|
|
1960
|
-
id: string;
|
|
1961
|
-
createdAt: Date;
|
|
1962
|
-
updatedAt: Date;
|
|
1963
1968
|
enabled: boolean;
|
|
1964
1969
|
providerId: string;
|
|
1965
1970
|
config: Record<string, unknown>;
|
|
1971
|
+
id: string;
|
|
1972
|
+
createdAt: Date;
|
|
1973
|
+
updatedAt: Date;
|
|
1966
1974
|
} | undefined>;
|
|
1967
1975
|
getProviderConfigById: (params: zod33.infer<zod33.ZodObject<{
|
|
1968
1976
|
id: zod33.ZodUUID;
|
|
1969
1977
|
}, better_auth0.$strip>>) => Promise<{
|
|
1970
1978
|
slug: string | null;
|
|
1971
1979
|
name: string | null;
|
|
1972
|
-
id: string;
|
|
1973
|
-
createdAt: Date;
|
|
1974
|
-
updatedAt: Date;
|
|
1975
1980
|
enabled: boolean;
|
|
1976
1981
|
providerId: string;
|
|
1977
1982
|
config: Record<string, unknown>;
|
|
1983
|
+
id: string;
|
|
1984
|
+
createdAt: Date;
|
|
1985
|
+
updatedAt: Date;
|
|
1978
1986
|
} | undefined>;
|
|
1979
1987
|
getProviderConfigByProviderId: (params: zod33.infer<zod33.ZodObject<{
|
|
1980
1988
|
providerId: zod33.ZodString;
|
|
1981
1989
|
}, better_auth0.$strip>>) => Promise<{
|
|
1982
1990
|
slug: string | null;
|
|
1983
1991
|
name: string | null;
|
|
1984
|
-
id: string;
|
|
1985
|
-
createdAt: Date;
|
|
1986
|
-
updatedAt: Date;
|
|
1987
1992
|
enabled: boolean;
|
|
1988
1993
|
providerId: string;
|
|
1989
1994
|
config: Record<string, unknown>;
|
|
1995
|
+
id: string;
|
|
1996
|
+
createdAt: Date;
|
|
1997
|
+
updatedAt: Date;
|
|
1990
1998
|
} | undefined>;
|
|
1991
1999
|
getProviderConfigBySlug: (params: zod33.infer<zod33.ZodObject<{
|
|
1992
2000
|
slug: zod33.ZodString;
|
|
1993
2001
|
}, better_auth0.$strip>>) => Promise<{
|
|
1994
2002
|
slug: string | null;
|
|
1995
2003
|
name: string | null;
|
|
1996
|
-
id: string;
|
|
1997
|
-
createdAt: Date;
|
|
1998
|
-
updatedAt: Date;
|
|
1999
2004
|
enabled: boolean;
|
|
2000
2005
|
providerId: string;
|
|
2001
2006
|
config: Record<string, unknown>;
|
|
2007
|
+
id: string;
|
|
2008
|
+
createdAt: Date;
|
|
2009
|
+
updatedAt: Date;
|
|
2002
2010
|
} | undefined>;
|
|
2003
2011
|
deleteProviderConfig: (params: zod33.infer<zod33.ZodObject<{
|
|
2004
2012
|
id: zod33.ZodUUID;
|
|
2005
2013
|
}, better_auth0.$strip>>) => Promise<{
|
|
2006
2014
|
slug: string | null;
|
|
2007
2015
|
name: string | null;
|
|
2008
|
-
id: string;
|
|
2009
|
-
createdAt: Date;
|
|
2010
|
-
updatedAt: Date;
|
|
2011
2016
|
enabled: boolean;
|
|
2012
2017
|
providerId: string;
|
|
2013
2018
|
config: Record<string, unknown>;
|
|
2019
|
+
id: string;
|
|
2020
|
+
createdAt: Date;
|
|
2021
|
+
updatedAt: Date;
|
|
2014
2022
|
} | undefined>;
|
|
2015
2023
|
listProviderConfigs: (params?: zod33.infer<zod33.ZodObject<{
|
|
2016
2024
|
limit: zod33.ZodOptional<zod33.ZodNumber>;
|
|
@@ -2018,12 +2026,12 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2018
2026
|
}, better_auth0.$strip>>) => Promise<{
|
|
2019
2027
|
slug: string | null;
|
|
2020
2028
|
name: string | null;
|
|
2021
|
-
id: string;
|
|
2022
|
-
createdAt: Date;
|
|
2023
|
-
updatedAt: Date;
|
|
2024
2029
|
enabled: boolean;
|
|
2025
2030
|
providerId: string;
|
|
2026
2031
|
config: Record<string, unknown>;
|
|
2032
|
+
id: string;
|
|
2033
|
+
createdAt: Date;
|
|
2034
|
+
updatedAt: Date;
|
|
2027
2035
|
}[]>;
|
|
2028
2036
|
countProviderConfigs: () => Promise<number>;
|
|
2029
2037
|
upsertProviderConfig: (params: zod33.infer<zod33.ZodObject<{
|
|
@@ -2035,20 +2043,17 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2035
2043
|
}, better_auth0.$strip>>) => Promise<{
|
|
2036
2044
|
slug: string | null;
|
|
2037
2045
|
name: string | null;
|
|
2038
|
-
id: string;
|
|
2039
|
-
createdAt: Date;
|
|
2040
|
-
updatedAt: Date;
|
|
2041
2046
|
enabled: boolean;
|
|
2042
2047
|
providerId: string;
|
|
2043
2048
|
config: Record<string, unknown>;
|
|
2049
|
+
id: string;
|
|
2050
|
+
createdAt: Date;
|
|
2051
|
+
updatedAt: Date;
|
|
2044
2052
|
} | undefined>;
|
|
2045
2053
|
batchInsertRequests: (requests: LLMRequestInsert[]) => Promise<{
|
|
2046
2054
|
count: number;
|
|
2047
2055
|
}>;
|
|
2048
2056
|
insertRequest: (request: LLMRequestInsert) => Promise<{
|
|
2049
|
-
id: string;
|
|
2050
|
-
createdAt: Date;
|
|
2051
|
-
updatedAt: Date;
|
|
2052
2057
|
variantId: string | null;
|
|
2053
2058
|
provider: string;
|
|
2054
2059
|
environmentId: string | null;
|
|
@@ -2069,6 +2074,9 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2069
2074
|
isStreaming: boolean;
|
|
2070
2075
|
userId: string | null;
|
|
2071
2076
|
tags: Record<string, string>;
|
|
2077
|
+
id: string;
|
|
2078
|
+
createdAt: Date;
|
|
2079
|
+
updatedAt: Date;
|
|
2072
2080
|
} | undefined>;
|
|
2073
2081
|
listRequests: (params?: zod33.infer<zod33.ZodObject<{
|
|
2074
2082
|
limit: zod33.ZodDefault<zod33.ZodNumber>;
|
|
@@ -2084,9 +2092,6 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2084
2092
|
tags: zod33.ZodOptional<zod33.ZodRecord<zod33.ZodString, zod33.ZodArray<zod33.ZodString>>>;
|
|
2085
2093
|
}, better_auth0.$strip>>) => Promise<{
|
|
2086
2094
|
data: {
|
|
2087
|
-
id: string;
|
|
2088
|
-
createdAt: Date;
|
|
2089
|
-
updatedAt: Date;
|
|
2090
2095
|
variantId: string | null;
|
|
2091
2096
|
provider: string;
|
|
2092
2097
|
environmentId: string | null;
|
|
@@ -2107,15 +2112,15 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2107
2112
|
isStreaming: boolean;
|
|
2108
2113
|
userId: string | null;
|
|
2109
2114
|
tags: Record<string, string>;
|
|
2115
|
+
id: string;
|
|
2116
|
+
createdAt: Date;
|
|
2117
|
+
updatedAt: Date;
|
|
2110
2118
|
}[];
|
|
2111
2119
|
total: number;
|
|
2112
2120
|
limit: number;
|
|
2113
2121
|
offset: number;
|
|
2114
2122
|
}>;
|
|
2115
2123
|
getRequestByRequestId: (requestId: string) => Promise<{
|
|
2116
|
-
id: string;
|
|
2117
|
-
createdAt: Date;
|
|
2118
|
-
updatedAt: Date;
|
|
2119
2124
|
variantId: string | null;
|
|
2120
2125
|
provider: string;
|
|
2121
2126
|
environmentId: string | null;
|
|
@@ -2136,6 +2141,9 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2136
2141
|
isStreaming: boolean;
|
|
2137
2142
|
userId: string | null;
|
|
2138
2143
|
tags: Record<string, string>;
|
|
2144
|
+
id: string;
|
|
2145
|
+
createdAt: Date;
|
|
2146
|
+
updatedAt: Date;
|
|
2139
2147
|
} | undefined>;
|
|
2140
2148
|
getTotalCost: (params: zod33.infer<zod33.ZodObject<{
|
|
2141
2149
|
startDate: zod33.ZodDate;
|
|
@@ -2262,75 +2270,75 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2262
2270
|
keyName: zod33.ZodString;
|
|
2263
2271
|
keyValue: zod33.ZodString;
|
|
2264
2272
|
}, better_auth0.$strip>>) => Promise<{
|
|
2265
|
-
id: string;
|
|
2266
|
-
createdAt: Date;
|
|
2267
|
-
updatedAt: Date;
|
|
2268
2273
|
environmentId: string;
|
|
2269
2274
|
keyName: string;
|
|
2270
2275
|
keyValue: string;
|
|
2276
|
+
id: string;
|
|
2277
|
+
createdAt: Date;
|
|
2278
|
+
updatedAt: Date;
|
|
2271
2279
|
} | undefined>;
|
|
2272
2280
|
updateEnvironmentSecret: (params: zod33.infer<zod33.ZodObject<{
|
|
2273
2281
|
secretId: zod33.ZodUUID;
|
|
2274
2282
|
keyName: zod33.ZodOptional<zod33.ZodString>;
|
|
2275
2283
|
keyValue: zod33.ZodOptional<zod33.ZodString>;
|
|
2276
2284
|
}, better_auth0.$strip>>) => Promise<{
|
|
2277
|
-
id: string;
|
|
2278
|
-
createdAt: Date;
|
|
2279
|
-
updatedAt: Date;
|
|
2280
2285
|
environmentId: string;
|
|
2281
2286
|
keyName: string;
|
|
2282
2287
|
keyValue: string;
|
|
2288
|
+
id: string;
|
|
2289
|
+
createdAt: Date;
|
|
2290
|
+
updatedAt: Date;
|
|
2283
2291
|
} | undefined>;
|
|
2284
2292
|
getEnvironmentSecretById: (params: zod33.infer<zod33.ZodObject<{
|
|
2285
2293
|
secretId: zod33.ZodUUID;
|
|
2286
2294
|
}, better_auth0.$strip>>) => Promise<{
|
|
2287
|
-
id: string;
|
|
2288
|
-
createdAt: Date;
|
|
2289
|
-
updatedAt: Date;
|
|
2290
2295
|
environmentId: string;
|
|
2291
2296
|
keyName: string;
|
|
2292
2297
|
keyValue: string;
|
|
2298
|
+
id: string;
|
|
2299
|
+
createdAt: Date;
|
|
2300
|
+
updatedAt: Date;
|
|
2293
2301
|
} | undefined>;
|
|
2294
2302
|
getSecretsByEnvironmentId: (params: zod33.infer<zod33.ZodObject<{
|
|
2295
2303
|
environmentId: zod33.ZodUUID;
|
|
2296
2304
|
}, better_auth0.$strip>>) => Promise<{
|
|
2297
|
-
id: string;
|
|
2298
|
-
createdAt: Date;
|
|
2299
|
-
updatedAt: Date;
|
|
2300
2305
|
environmentId: string;
|
|
2301
2306
|
keyName: string;
|
|
2302
2307
|
keyValue: string;
|
|
2308
|
+
id: string;
|
|
2309
|
+
createdAt: Date;
|
|
2310
|
+
updatedAt: Date;
|
|
2303
2311
|
}[]>;
|
|
2304
2312
|
deleteEnvironmentSecret: (params: zod33.infer<zod33.ZodObject<{
|
|
2305
2313
|
secretId: zod33.ZodUUID;
|
|
2306
2314
|
}, better_auth0.$strip>>) => Promise<{
|
|
2307
|
-
id: string;
|
|
2308
|
-
createdAt: Date;
|
|
2309
|
-
updatedAt: Date;
|
|
2310
2315
|
environmentId: string;
|
|
2311
2316
|
keyName: string;
|
|
2312
2317
|
keyValue: string;
|
|
2318
|
+
id: string;
|
|
2319
|
+
createdAt: Date;
|
|
2320
|
+
updatedAt: Date;
|
|
2313
2321
|
} | undefined>;
|
|
2314
2322
|
deleteSecretsByEnvironmentId: (params: zod33.infer<zod33.ZodObject<{
|
|
2315
2323
|
environmentId: zod33.ZodUUID;
|
|
2316
2324
|
}, better_auth0.$strip>>) => Promise<{
|
|
2317
|
-
id: string;
|
|
2318
|
-
createdAt: Date;
|
|
2319
|
-
updatedAt: Date;
|
|
2320
2325
|
environmentId: string;
|
|
2321
2326
|
keyName: string;
|
|
2322
2327
|
keyValue: string;
|
|
2328
|
+
id: string;
|
|
2329
|
+
createdAt: Date;
|
|
2330
|
+
updatedAt: Date;
|
|
2323
2331
|
}[]>;
|
|
2324
2332
|
listEnvironmentSecrets: (params?: zod33.infer<zod33.ZodObject<{
|
|
2325
2333
|
limit: zod33.ZodOptional<zod33.ZodNumber>;
|
|
2326
2334
|
offset: zod33.ZodOptional<zod33.ZodNumber>;
|
|
2327
2335
|
}, better_auth0.$strip>>) => Promise<{
|
|
2328
|
-
id: string;
|
|
2329
|
-
createdAt: Date;
|
|
2330
|
-
updatedAt: Date;
|
|
2331
2336
|
environmentId: string;
|
|
2332
2337
|
keyName: string;
|
|
2333
2338
|
keyValue: string;
|
|
2339
|
+
id: string;
|
|
2340
|
+
createdAt: Date;
|
|
2341
|
+
updatedAt: Date;
|
|
2334
2342
|
}[]>;
|
|
2335
2343
|
countEnvironmentSecrets: () => Promise<number>;
|
|
2336
2344
|
createNewEnvironment: (params: zod33.infer<zod33.ZodObject<{
|
|
@@ -2340,10 +2348,10 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2340
2348
|
}, better_auth0.$strip>>) => Promise<{
|
|
2341
2349
|
slug: string;
|
|
2342
2350
|
name: string;
|
|
2351
|
+
isProd: boolean;
|
|
2343
2352
|
id: string;
|
|
2344
2353
|
createdAt: Date;
|
|
2345
2354
|
updatedAt: Date;
|
|
2346
|
-
isProd: boolean;
|
|
2347
2355
|
} | undefined>;
|
|
2348
2356
|
updateEnvironment: (params: zod33.infer<zod33.ZodObject<{
|
|
2349
2357
|
environmentId: zod33.ZodUUID;
|
|
@@ -2352,40 +2360,40 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2352
2360
|
}, better_auth0.$strip>>) => Promise<{
|
|
2353
2361
|
slug: string;
|
|
2354
2362
|
name: string;
|
|
2363
|
+
isProd: boolean;
|
|
2355
2364
|
id: string;
|
|
2356
2365
|
createdAt: Date;
|
|
2357
2366
|
updatedAt: Date;
|
|
2358
|
-
isProd: boolean;
|
|
2359
2367
|
} | undefined>;
|
|
2360
2368
|
getEnvironmentById: (params: zod33.infer<zod33.ZodObject<{
|
|
2361
2369
|
environmentId: zod33.ZodUUID;
|
|
2362
2370
|
}, better_auth0.$strip>>) => Promise<{
|
|
2363
2371
|
slug: string;
|
|
2364
2372
|
name: string;
|
|
2373
|
+
isProd: boolean;
|
|
2365
2374
|
id: string;
|
|
2366
2375
|
createdAt: Date;
|
|
2367
2376
|
updatedAt: Date;
|
|
2368
|
-
isProd: boolean;
|
|
2369
2377
|
} | undefined>;
|
|
2370
2378
|
getEnvironmentBySlug: (params: zod33.infer<zod33.ZodObject<{
|
|
2371
2379
|
slug: zod33.ZodString;
|
|
2372
2380
|
}, better_auth0.$strip>>) => Promise<{
|
|
2373
2381
|
slug: string;
|
|
2374
2382
|
name: string;
|
|
2383
|
+
isProd: boolean;
|
|
2375
2384
|
id: string;
|
|
2376
2385
|
createdAt: Date;
|
|
2377
2386
|
updatedAt: Date;
|
|
2378
|
-
isProd: boolean;
|
|
2379
2387
|
} | undefined>;
|
|
2380
2388
|
deleteEnvironment: (params: zod33.infer<zod33.ZodObject<{
|
|
2381
2389
|
environmentId: zod33.ZodUUID;
|
|
2382
2390
|
}, better_auth0.$strip>>) => Promise<{
|
|
2383
2391
|
slug: string;
|
|
2384
2392
|
name: string;
|
|
2393
|
+
isProd: boolean;
|
|
2385
2394
|
id: string;
|
|
2386
2395
|
createdAt: Date;
|
|
2387
2396
|
updatedAt: Date;
|
|
2388
|
-
isProd: boolean;
|
|
2389
2397
|
} | undefined>;
|
|
2390
2398
|
listEnvironments: (params?: zod33.infer<zod33.ZodObject<{
|
|
2391
2399
|
limit: zod33.ZodOptional<zod33.ZodNumber>;
|
|
@@ -2393,101 +2401,101 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2393
2401
|
}, better_auth0.$strip>>) => Promise<{
|
|
2394
2402
|
slug: string;
|
|
2395
2403
|
name: string;
|
|
2404
|
+
isProd: boolean;
|
|
2396
2405
|
id: string;
|
|
2397
2406
|
createdAt: Date;
|
|
2398
2407
|
updatedAt: Date;
|
|
2399
|
-
isProd: boolean;
|
|
2400
2408
|
}[]>;
|
|
2401
2409
|
countEnvironments: () => Promise<number>;
|
|
2402
2410
|
createConfigVariant: (params: zod33.infer<zod33.ZodObject<{
|
|
2403
2411
|
configId: zod33.ZodString;
|
|
2404
2412
|
variantId: zod33.ZodString;
|
|
2405
2413
|
}, better_auth0.$strip>>) => Promise<{
|
|
2414
|
+
variantId: string;
|
|
2415
|
+
configId: string;
|
|
2406
2416
|
id: string;
|
|
2407
2417
|
createdAt: Date;
|
|
2408
2418
|
updatedAt: Date;
|
|
2409
|
-
variantId: string;
|
|
2410
|
-
configId: string;
|
|
2411
2419
|
} | undefined>;
|
|
2412
2420
|
getConfigVariantById: (params: zod33.infer<zod33.ZodObject<{
|
|
2413
2421
|
id: zod33.ZodString;
|
|
2414
2422
|
}, better_auth0.$strip>>) => Promise<{
|
|
2423
|
+
variantId: string;
|
|
2424
|
+
configId: string;
|
|
2415
2425
|
id: string;
|
|
2416
2426
|
createdAt: Date;
|
|
2417
2427
|
updatedAt: Date;
|
|
2418
|
-
variantId: string;
|
|
2419
|
-
configId: string;
|
|
2420
2428
|
} | undefined>;
|
|
2421
2429
|
getConfigVariantsByConfigId: (params: zod33.infer<zod33.ZodObject<{
|
|
2422
2430
|
configId: zod33.ZodString;
|
|
2423
2431
|
limit: zod33.ZodOptional<zod33.ZodNumber>;
|
|
2424
2432
|
offset: zod33.ZodOptional<zod33.ZodNumber>;
|
|
2425
2433
|
}, better_auth0.$strip>>) => Promise<{
|
|
2434
|
+
variantId: string;
|
|
2435
|
+
configId: string;
|
|
2426
2436
|
id: string;
|
|
2427
2437
|
createdAt: Date;
|
|
2428
2438
|
updatedAt: Date;
|
|
2429
|
-
variantId: string;
|
|
2430
|
-
configId: string;
|
|
2431
2439
|
}[]>;
|
|
2432
2440
|
getConfigVariantsByVariantId: (params: zod33.infer<zod33.ZodObject<{
|
|
2433
2441
|
variantId: zod33.ZodString;
|
|
2434
2442
|
limit: zod33.ZodOptional<zod33.ZodNumber>;
|
|
2435
2443
|
offset: zod33.ZodOptional<zod33.ZodNumber>;
|
|
2436
2444
|
}, better_auth0.$strip>>) => Promise<{
|
|
2445
|
+
variantId: string;
|
|
2446
|
+
configId: string;
|
|
2437
2447
|
id: string;
|
|
2438
2448
|
createdAt: Date;
|
|
2439
2449
|
updatedAt: Date;
|
|
2440
|
-
variantId: string;
|
|
2441
|
-
configId: string;
|
|
2442
2450
|
}[]>;
|
|
2443
2451
|
deleteConfigVariant: (params: zod33.infer<zod33.ZodObject<{
|
|
2444
2452
|
id: zod33.ZodString;
|
|
2445
2453
|
}, better_auth0.$strip>>) => Promise<{
|
|
2454
|
+
variantId: string;
|
|
2455
|
+
configId: string;
|
|
2446
2456
|
id: string;
|
|
2447
2457
|
createdAt: Date;
|
|
2448
2458
|
updatedAt: Date;
|
|
2449
|
-
variantId: string;
|
|
2450
|
-
configId: string;
|
|
2451
2459
|
} | undefined>;
|
|
2452
2460
|
deleteConfigVariantByIds: (params: zod33.infer<zod33.ZodObject<{
|
|
2453
2461
|
configId: zod33.ZodString;
|
|
2454
2462
|
variantId: zod33.ZodString;
|
|
2455
2463
|
}, better_auth0.$strip>>) => Promise<{
|
|
2464
|
+
variantId: string;
|
|
2465
|
+
configId: string;
|
|
2456
2466
|
id: string;
|
|
2457
2467
|
createdAt: Date;
|
|
2458
2468
|
updatedAt: Date;
|
|
2459
|
-
variantId: string;
|
|
2460
|
-
configId: string;
|
|
2461
2469
|
} | undefined>;
|
|
2462
2470
|
listConfigVariants: (params?: zod33.infer<zod33.ZodObject<{
|
|
2463
2471
|
limit: zod33.ZodOptional<zod33.ZodNumber>;
|
|
2464
2472
|
offset: zod33.ZodOptional<zod33.ZodNumber>;
|
|
2465
2473
|
}, better_auth0.$strip>>) => Promise<{
|
|
2474
|
+
variantId: string;
|
|
2475
|
+
configId: string;
|
|
2466
2476
|
id: string;
|
|
2467
2477
|
createdAt: Date;
|
|
2468
2478
|
updatedAt: Date;
|
|
2469
|
-
variantId: string;
|
|
2470
|
-
configId: string;
|
|
2471
2479
|
}[]>;
|
|
2472
2480
|
getConfigVariantWithDetails: (params: zod33.infer<zod33.ZodObject<{
|
|
2473
2481
|
id: zod33.ZodString;
|
|
2474
2482
|
}, better_auth0.$strip>>) => Promise<{
|
|
2475
2483
|
latestVersion: {
|
|
2476
2484
|
version: number;
|
|
2477
|
-
id: string;
|
|
2478
|
-
createdAt: Date;
|
|
2479
|
-
updatedAt: Date;
|
|
2480
2485
|
variantId: string;
|
|
2481
2486
|
provider: string;
|
|
2482
2487
|
modelName: string;
|
|
2483
2488
|
jsonData: Record<string, unknown>;
|
|
2489
|
+
id: string;
|
|
2490
|
+
createdAt: Date;
|
|
2491
|
+
updatedAt: Date;
|
|
2484
2492
|
} | null;
|
|
2485
2493
|
variantName: string | null;
|
|
2486
2494
|
id: string;
|
|
2487
|
-
createdAt: Date;
|
|
2488
|
-
updatedAt: Date;
|
|
2489
2495
|
variantId: string;
|
|
2490
2496
|
configId: string;
|
|
2497
|
+
createdAt: Date;
|
|
2498
|
+
updatedAt: Date;
|
|
2491
2499
|
configName: string | null | undefined;
|
|
2492
2500
|
} | undefined>;
|
|
2493
2501
|
getConfigVariantsWithDetailsByConfigId: (params: zod33.infer<zod33.ZodObject<{
|
|
@@ -2500,20 +2508,20 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2500
2508
|
jsonData: Record<string, unknown> | null;
|
|
2501
2509
|
latestVersion: {
|
|
2502
2510
|
version: number;
|
|
2503
|
-
id: string;
|
|
2504
|
-
createdAt: Date;
|
|
2505
|
-
updatedAt: Date;
|
|
2506
2511
|
variantId: string;
|
|
2507
2512
|
provider: string;
|
|
2508
2513
|
modelName: string;
|
|
2509
2514
|
jsonData: Record<string, unknown>;
|
|
2515
|
+
id: string;
|
|
2516
|
+
createdAt: Date;
|
|
2517
|
+
updatedAt: Date;
|
|
2510
2518
|
} | null;
|
|
2511
2519
|
name: string | null;
|
|
2512
2520
|
id: string;
|
|
2513
|
-
createdAt: Date;
|
|
2514
|
-
updatedAt: Date;
|
|
2515
2521
|
variantId: string;
|
|
2516
2522
|
configId: string;
|
|
2523
|
+
createdAt: Date;
|
|
2524
|
+
updatedAt: Date;
|
|
2517
2525
|
}[]>;
|
|
2518
2526
|
createVariantAndLinkToConfig: (params: zod33.infer<zod33.ZodObject<{
|
|
2519
2527
|
configId: zod33.ZodString;
|
|
@@ -2530,20 +2538,20 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2530
2538
|
};
|
|
2531
2539
|
version: {
|
|
2532
2540
|
version: number;
|
|
2533
|
-
id: string;
|
|
2534
|
-
createdAt: Date;
|
|
2535
|
-
updatedAt: Date;
|
|
2536
2541
|
variantId: string;
|
|
2537
2542
|
provider: string;
|
|
2538
2543
|
modelName: string;
|
|
2539
2544
|
jsonData: Record<string, unknown>;
|
|
2540
|
-
};
|
|
2541
|
-
configVariant: {
|
|
2542
2545
|
id: string;
|
|
2543
2546
|
createdAt: Date;
|
|
2544
2547
|
updatedAt: Date;
|
|
2548
|
+
};
|
|
2549
|
+
configVariant: {
|
|
2545
2550
|
variantId: string;
|
|
2546
2551
|
configId: string;
|
|
2552
|
+
id: string;
|
|
2553
|
+
createdAt: Date;
|
|
2554
|
+
updatedAt: Date;
|
|
2547
2555
|
};
|
|
2548
2556
|
}>;
|
|
2549
2557
|
getVariantJsonDataForConfig: (params: zod33.infer<zod33.ZodObject<{
|