@llmops/core 0.3.2-beta.2 → 0.3.2-beta.3
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-BMN3ZSTf.d.mts → index-DhVBYci7.d.mts} +39 -39
- package/dist/index.d.cts +359 -359
- package/dist/index.d.mts +684 -684
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1132,10 +1132,10 @@ declare const costSummarySchema: z$1.ZodObject<{
|
|
|
1132
1132
|
tags: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodArray<z$1.ZodString>>>;
|
|
1133
1133
|
groupBy: z$1.ZodOptional<z$1.ZodEnum<{
|
|
1134
1134
|
provider: "provider";
|
|
1135
|
-
config: "config";
|
|
1136
1135
|
model: "model";
|
|
1137
1136
|
day: "day";
|
|
1138
1137
|
hour: "hour";
|
|
1138
|
+
config: "config";
|
|
1139
1139
|
}>>;
|
|
1140
1140
|
}, z$1.core.$strip>;
|
|
1141
1141
|
declare const createLLMRequestsDataLayer: (db: Kysely<Database>) => {
|
|
@@ -1150,15 +1150,13 @@ declare const createLLMRequestsDataLayer: (db: Kysely<Database>) => {
|
|
|
1150
1150
|
* Insert a single LLM request log
|
|
1151
1151
|
*/
|
|
1152
1152
|
insertRequest: (request: LLMRequestInsert) => Promise<{
|
|
1153
|
-
|
|
1154
|
-
createdAt: Date;
|
|
1155
|
-
updatedAt: Date;
|
|
1153
|
+
configId: string | null;
|
|
1156
1154
|
variantId: string | null;
|
|
1155
|
+
id: string;
|
|
1157
1156
|
provider: string;
|
|
1158
1157
|
environmentId: string | null;
|
|
1159
|
-
configId: string | null;
|
|
1160
|
-
providerConfigId: string | null;
|
|
1161
1158
|
requestId: string;
|
|
1159
|
+
providerConfigId: string | null;
|
|
1162
1160
|
model: string;
|
|
1163
1161
|
promptTokens: number;
|
|
1164
1162
|
completionTokens: number;
|
|
@@ -1173,6 +1171,8 @@ declare const createLLMRequestsDataLayer: (db: Kysely<Database>) => {
|
|
|
1173
1171
|
isStreaming: boolean;
|
|
1174
1172
|
userId: string | null;
|
|
1175
1173
|
tags: Record<string, string>;
|
|
1174
|
+
createdAt: Date;
|
|
1175
|
+
updatedAt: Date;
|
|
1176
1176
|
guardrailResults: {
|
|
1177
1177
|
results: {
|
|
1178
1178
|
configId: string;
|
|
@@ -1191,15 +1191,13 @@ declare const createLLMRequestsDataLayer: (db: Kysely<Database>) => {
|
|
|
1191
1191
|
*/
|
|
1192
1192
|
listRequests: (params?: z$1.infer<typeof listRequestsSchema>) => Promise<{
|
|
1193
1193
|
data: {
|
|
1194
|
-
|
|
1195
|
-
createdAt: Date;
|
|
1196
|
-
updatedAt: Date;
|
|
1194
|
+
configId: string | null;
|
|
1197
1195
|
variantId: string | null;
|
|
1196
|
+
id: string;
|
|
1198
1197
|
provider: string;
|
|
1199
1198
|
environmentId: string | null;
|
|
1200
|
-
configId: string | null;
|
|
1201
|
-
providerConfigId: string | null;
|
|
1202
1199
|
requestId: string;
|
|
1200
|
+
providerConfigId: string | null;
|
|
1203
1201
|
model: string;
|
|
1204
1202
|
promptTokens: number;
|
|
1205
1203
|
completionTokens: number;
|
|
@@ -1214,6 +1212,8 @@ declare const createLLMRequestsDataLayer: (db: Kysely<Database>) => {
|
|
|
1214
1212
|
isStreaming: boolean;
|
|
1215
1213
|
userId: string | null;
|
|
1216
1214
|
tags: Record<string, string>;
|
|
1215
|
+
createdAt: Date;
|
|
1216
|
+
updatedAt: Date;
|
|
1217
1217
|
guardrailResults: {
|
|
1218
1218
|
results: {
|
|
1219
1219
|
configId: string;
|
|
@@ -1234,15 +1234,13 @@ declare const createLLMRequestsDataLayer: (db: Kysely<Database>) => {
|
|
|
1234
1234
|
* Get a single request by requestId
|
|
1235
1235
|
*/
|
|
1236
1236
|
getRequestByRequestId: (requestId: string) => Promise<{
|
|
1237
|
-
|
|
1238
|
-
createdAt: Date;
|
|
1239
|
-
updatedAt: Date;
|
|
1237
|
+
configId: string | null;
|
|
1240
1238
|
variantId: string | null;
|
|
1239
|
+
id: string;
|
|
1241
1240
|
provider: string;
|
|
1242
1241
|
environmentId: string | null;
|
|
1243
|
-
configId: string | null;
|
|
1244
|
-
providerConfigId: string | null;
|
|
1245
1242
|
requestId: string;
|
|
1243
|
+
providerConfigId: string | null;
|
|
1246
1244
|
model: string;
|
|
1247
1245
|
promptTokens: number;
|
|
1248
1246
|
completionTokens: number;
|
|
@@ -1257,6 +1255,8 @@ declare const createLLMRequestsDataLayer: (db: Kysely<Database>) => {
|
|
|
1257
1255
|
isStreaming: boolean;
|
|
1258
1256
|
userId: string | null;
|
|
1259
1257
|
tags: Record<string, string>;
|
|
1258
|
+
createdAt: Date;
|
|
1259
|
+
updatedAt: Date;
|
|
1260
1260
|
guardrailResults: {
|
|
1261
1261
|
results: {
|
|
1262
1262
|
configId: string;
|
|
@@ -1373,10 +1373,10 @@ declare const createWorkspaceSettingsDataLayer: (db: Kysely<Database>) => {
|
|
|
1373
1373
|
getWorkspaceSettings: () => Promise<{
|
|
1374
1374
|
name: string | null;
|
|
1375
1375
|
id: string;
|
|
1376
|
-
createdAt: Date;
|
|
1377
|
-
updatedAt: Date;
|
|
1378
1376
|
setupComplete: boolean;
|
|
1379
1377
|
superAdminId: string | null;
|
|
1378
|
+
createdAt: Date;
|
|
1379
|
+
updatedAt: Date;
|
|
1380
1380
|
} | undefined>;
|
|
1381
1381
|
/**
|
|
1382
1382
|
* Update workspace settings
|
|
@@ -1384,10 +1384,10 @@ declare const createWorkspaceSettingsDataLayer: (db: Kysely<Database>) => {
|
|
|
1384
1384
|
updateWorkspaceSettings: (params: z$1.infer<typeof updateWorkspaceSettings>) => Promise<{
|
|
1385
1385
|
name: string | null;
|
|
1386
1386
|
id: string;
|
|
1387
|
-
createdAt: Date;
|
|
1388
|
-
updatedAt: Date;
|
|
1389
1387
|
setupComplete: boolean;
|
|
1390
1388
|
superAdminId: string | null;
|
|
1389
|
+
createdAt: Date;
|
|
1390
|
+
updatedAt: Date;
|
|
1391
1391
|
} | undefined>;
|
|
1392
1392
|
/**
|
|
1393
1393
|
* Get the super admin user ID
|
|
@@ -1407,10 +1407,10 @@ declare const createWorkspaceSettingsDataLayer: (db: Kysely<Database>) => {
|
|
|
1407
1407
|
markSetupComplete: () => Promise<{
|
|
1408
1408
|
name: string | null;
|
|
1409
1409
|
id: string;
|
|
1410
|
-
createdAt: Date;
|
|
1411
|
-
updatedAt: Date;
|
|
1412
1410
|
setupComplete: boolean;
|
|
1413
1411
|
superAdminId: string | null;
|
|
1412
|
+
createdAt: Date;
|
|
1413
|
+
updatedAt: Date;
|
|
1414
1414
|
} | undefined>;
|
|
1415
1415
|
};
|
|
1416
1416
|
//#endregion
|
|
@@ -1447,74 +1447,74 @@ declare const listProviderConfigs: z$1.ZodObject<{
|
|
|
1447
1447
|
}, z$1.core.$strip>;
|
|
1448
1448
|
declare const createProviderConfigsDataLayer: (db: Kysely<Database>) => {
|
|
1449
1449
|
createProviderConfig: (params: z$1.infer<typeof createProviderConfig>) => Promise<{
|
|
1450
|
-
slug: string | null;
|
|
1451
1450
|
name: string | null;
|
|
1452
1451
|
id: string;
|
|
1453
|
-
|
|
1454
|
-
updatedAt: Date;
|
|
1452
|
+
slug: string | null;
|
|
1455
1453
|
enabled: boolean;
|
|
1456
|
-
providerId: string;
|
|
1457
1454
|
config: Record<string, unknown>;
|
|
1455
|
+
providerId: string;
|
|
1456
|
+
createdAt: Date;
|
|
1457
|
+
updatedAt: Date;
|
|
1458
1458
|
} | undefined>;
|
|
1459
1459
|
updateProviderConfig: (params: z$1.infer<typeof updateProviderConfig>) => Promise<{
|
|
1460
|
-
slug: string | null;
|
|
1461
1460
|
name: string | null;
|
|
1462
1461
|
id: string;
|
|
1463
|
-
|
|
1464
|
-
updatedAt: Date;
|
|
1462
|
+
slug: string | null;
|
|
1465
1463
|
enabled: boolean;
|
|
1466
|
-
providerId: string;
|
|
1467
1464
|
config: Record<string, unknown>;
|
|
1465
|
+
providerId: string;
|
|
1466
|
+
createdAt: Date;
|
|
1467
|
+
updatedAt: Date;
|
|
1468
1468
|
} | undefined>;
|
|
1469
1469
|
getProviderConfigById: (params: z$1.infer<typeof getProviderConfigById>) => Promise<{
|
|
1470
|
-
slug: string | null;
|
|
1471
1470
|
name: string | null;
|
|
1472
1471
|
id: string;
|
|
1473
|
-
|
|
1474
|
-
updatedAt: Date;
|
|
1472
|
+
slug: string | null;
|
|
1475
1473
|
enabled: boolean;
|
|
1476
|
-
providerId: string;
|
|
1477
1474
|
config: Record<string, unknown>;
|
|
1475
|
+
providerId: string;
|
|
1476
|
+
createdAt: Date;
|
|
1477
|
+
updatedAt: Date;
|
|
1478
1478
|
} | undefined>;
|
|
1479
1479
|
getProviderConfigByProviderId: (params: z$1.infer<typeof getProviderConfigByProviderId>) => Promise<{
|
|
1480
|
-
slug: string | null;
|
|
1481
1480
|
name: string | null;
|
|
1482
1481
|
id: string;
|
|
1483
|
-
|
|
1484
|
-
updatedAt: Date;
|
|
1482
|
+
slug: string | null;
|
|
1485
1483
|
enabled: boolean;
|
|
1486
|
-
providerId: string;
|
|
1487
1484
|
config: Record<string, unknown>;
|
|
1485
|
+
providerId: string;
|
|
1486
|
+
createdAt: Date;
|
|
1487
|
+
updatedAt: Date;
|
|
1488
1488
|
} | undefined>;
|
|
1489
1489
|
getProviderConfigBySlug: (params: z$1.infer<typeof getProviderConfigBySlug>) => Promise<{
|
|
1490
|
-
slug: string | null;
|
|
1491
1490
|
name: string | null;
|
|
1492
1491
|
id: string;
|
|
1493
|
-
|
|
1494
|
-
updatedAt: Date;
|
|
1492
|
+
slug: string | null;
|
|
1495
1493
|
enabled: boolean;
|
|
1496
|
-
providerId: string;
|
|
1497
1494
|
config: Record<string, unknown>;
|
|
1495
|
+
providerId: string;
|
|
1496
|
+
createdAt: Date;
|
|
1497
|
+
updatedAt: Date;
|
|
1498
1498
|
} | undefined>;
|
|
1499
1499
|
deleteProviderConfig: (params: z$1.infer<typeof deleteProviderConfig>) => Promise<{
|
|
1500
|
-
slug: string | null;
|
|
1501
1500
|
name: string | null;
|
|
1502
1501
|
id: string;
|
|
1503
|
-
|
|
1504
|
-
updatedAt: Date;
|
|
1502
|
+
slug: string | null;
|
|
1505
1503
|
enabled: boolean;
|
|
1506
|
-
providerId: string;
|
|
1507
1504
|
config: Record<string, unknown>;
|
|
1505
|
+
providerId: string;
|
|
1506
|
+
createdAt: Date;
|
|
1507
|
+
updatedAt: Date;
|
|
1508
1508
|
} | undefined>;
|
|
1509
1509
|
listProviderConfigs: (params?: z$1.infer<typeof listProviderConfigs>) => Promise<{
|
|
1510
|
-
slug: string | null;
|
|
1511
1510
|
name: string | null;
|
|
1512
1511
|
id: string;
|
|
1513
|
-
|
|
1514
|
-
updatedAt: Date;
|
|
1512
|
+
slug: string | null;
|
|
1515
1513
|
enabled: boolean;
|
|
1516
|
-
providerId: string;
|
|
1517
1514
|
config: Record<string, unknown>;
|
|
1515
|
+
providerId: string;
|
|
1516
|
+
createdAt: Date;
|
|
1517
|
+
updatedAt: Date;
|
|
1518
1518
|
}[]>;
|
|
1519
1519
|
countProviderConfigs: () => Promise<number>;
|
|
1520
1520
|
/**
|
|
@@ -1522,14 +1522,14 @@ declare const createProviderConfigsDataLayer: (db: Kysely<Database>) => {
|
|
|
1522
1522
|
* Useful for the dashboard UI where you want to set/update a provider config
|
|
1523
1523
|
*/
|
|
1524
1524
|
upsertProviderConfig: (params: z$1.infer<typeof createProviderConfig>) => Promise<{
|
|
1525
|
-
slug: string | null;
|
|
1526
1525
|
name: string | null;
|
|
1527
1526
|
id: string;
|
|
1528
|
-
|
|
1529
|
-
updatedAt: Date;
|
|
1527
|
+
slug: string | null;
|
|
1530
1528
|
enabled: boolean;
|
|
1531
|
-
providerId: string;
|
|
1532
1529
|
config: Record<string, unknown>;
|
|
1530
|
+
providerId: string;
|
|
1531
|
+
createdAt: Date;
|
|
1532
|
+
updatedAt: Date;
|
|
1533
1533
|
} | undefined>;
|
|
1534
1534
|
};
|
|
1535
1535
|
//#endregion
|
|
@@ -1584,67 +1584,67 @@ declare const createGuardrailConfigsDataLayer: (db: Kysely<Database>) => {
|
|
|
1584
1584
|
createGuardrailConfig: (params: z$1.infer<typeof createGuardrailConfig>) => Promise<{
|
|
1585
1585
|
name: string;
|
|
1586
1586
|
id: string;
|
|
1587
|
-
createdAt: Date;
|
|
1588
|
-
updatedAt: Date;
|
|
1589
|
-
priority: number;
|
|
1590
|
-
enabled: boolean;
|
|
1591
1587
|
pluginId: string;
|
|
1592
1588
|
functionId: string;
|
|
1593
1589
|
hookType: string;
|
|
1594
1590
|
parameters: Record<string, unknown>;
|
|
1591
|
+
enabled: boolean;
|
|
1592
|
+
priority: number;
|
|
1595
1593
|
onFail: string;
|
|
1594
|
+
createdAt: Date;
|
|
1595
|
+
updatedAt: Date;
|
|
1596
1596
|
} | undefined>;
|
|
1597
1597
|
updateGuardrailConfig: (params: z$1.infer<typeof updateGuardrailConfig>) => Promise<{
|
|
1598
1598
|
name: string;
|
|
1599
1599
|
id: string;
|
|
1600
|
-
createdAt: Date;
|
|
1601
|
-
updatedAt: Date;
|
|
1602
|
-
priority: number;
|
|
1603
|
-
enabled: boolean;
|
|
1604
1600
|
pluginId: string;
|
|
1605
1601
|
functionId: string;
|
|
1606
1602
|
hookType: string;
|
|
1607
1603
|
parameters: Record<string, unknown>;
|
|
1604
|
+
enabled: boolean;
|
|
1605
|
+
priority: number;
|
|
1608
1606
|
onFail: string;
|
|
1607
|
+
createdAt: Date;
|
|
1608
|
+
updatedAt: Date;
|
|
1609
1609
|
} | undefined>;
|
|
1610
1610
|
getGuardrailConfigById: (params: z$1.infer<typeof getGuardrailConfigById>) => Promise<{
|
|
1611
1611
|
name: string;
|
|
1612
1612
|
id: string;
|
|
1613
|
-
createdAt: Date;
|
|
1614
|
-
updatedAt: Date;
|
|
1615
|
-
priority: number;
|
|
1616
|
-
enabled: boolean;
|
|
1617
1613
|
pluginId: string;
|
|
1618
1614
|
functionId: string;
|
|
1619
1615
|
hookType: string;
|
|
1620
1616
|
parameters: Record<string, unknown>;
|
|
1617
|
+
enabled: boolean;
|
|
1618
|
+
priority: number;
|
|
1621
1619
|
onFail: string;
|
|
1620
|
+
createdAt: Date;
|
|
1621
|
+
updatedAt: Date;
|
|
1622
1622
|
} | undefined>;
|
|
1623
1623
|
deleteGuardrailConfig: (params: z$1.infer<typeof deleteGuardrailConfig>) => Promise<{
|
|
1624
1624
|
name: string;
|
|
1625
1625
|
id: string;
|
|
1626
|
-
createdAt: Date;
|
|
1627
|
-
updatedAt: Date;
|
|
1628
|
-
priority: number;
|
|
1629
|
-
enabled: boolean;
|
|
1630
1626
|
pluginId: string;
|
|
1631
1627
|
functionId: string;
|
|
1632
1628
|
hookType: string;
|
|
1633
1629
|
parameters: Record<string, unknown>;
|
|
1630
|
+
enabled: boolean;
|
|
1631
|
+
priority: number;
|
|
1634
1632
|
onFail: string;
|
|
1633
|
+
createdAt: Date;
|
|
1634
|
+
updatedAt: Date;
|
|
1635
1635
|
} | undefined>;
|
|
1636
1636
|
listGuardrailConfigs: (params?: z$1.infer<typeof listGuardrailConfigs>) => Promise<{
|
|
1637
1637
|
name: string;
|
|
1638
1638
|
id: string;
|
|
1639
|
-
createdAt: Date;
|
|
1640
|
-
updatedAt: Date;
|
|
1641
|
-
priority: number;
|
|
1642
|
-
enabled: boolean;
|
|
1643
1639
|
pluginId: string;
|
|
1644
1640
|
functionId: string;
|
|
1645
1641
|
hookType: string;
|
|
1646
1642
|
parameters: Record<string, unknown>;
|
|
1643
|
+
enabled: boolean;
|
|
1644
|
+
priority: number;
|
|
1647
1645
|
onFail: string;
|
|
1646
|
+
createdAt: Date;
|
|
1647
|
+
updatedAt: Date;
|
|
1648
1648
|
}[]>;
|
|
1649
1649
|
countGuardrailConfigs: () => Promise<number>;
|
|
1650
1650
|
/**
|
|
@@ -1654,15 +1654,15 @@ declare const createGuardrailConfigsDataLayer: (db: Kysely<Database>) => {
|
|
|
1654
1654
|
getEnabledGuardrailsByHookType: (hookType: "beforeRequestHook" | "afterRequestHook") => Promise<{
|
|
1655
1655
|
name: string;
|
|
1656
1656
|
id: string;
|
|
1657
|
-
createdAt: Date;
|
|
1658
|
-
updatedAt: Date;
|
|
1659
|
-
priority: number;
|
|
1660
|
-
enabled: boolean;
|
|
1661
1657
|
pluginId: string;
|
|
1662
1658
|
functionId: string;
|
|
1663
1659
|
hookType: string;
|
|
1664
1660
|
parameters: Record<string, unknown>;
|
|
1661
|
+
enabled: boolean;
|
|
1662
|
+
priority: number;
|
|
1665
1663
|
onFail: string;
|
|
1664
|
+
createdAt: Date;
|
|
1665
|
+
updatedAt: Date;
|
|
1666
1666
|
}[]>;
|
|
1667
1667
|
};
|
|
1668
1668
|
//#endregion
|
|
@@ -1697,78 +1697,78 @@ declare const getOverrideByProviderAndGuardrail: z$1.ZodObject<{
|
|
|
1697
1697
|
declare const createProviderGuardrailOverridesDataLayer: (db: Kysely<Database>) => {
|
|
1698
1698
|
createProviderGuardrailOverride: (params: z$1.infer<typeof createProviderGuardrailOverride>) => Promise<{
|
|
1699
1699
|
id: string;
|
|
1700
|
-
createdAt: Date;
|
|
1701
|
-
updatedAt: Date;
|
|
1702
|
-
enabled: boolean;
|
|
1703
1700
|
parameters: Record<string, unknown> | null;
|
|
1701
|
+
enabled: boolean;
|
|
1704
1702
|
providerConfigId: string;
|
|
1705
1703
|
guardrailConfigId: string;
|
|
1704
|
+
createdAt: Date;
|
|
1705
|
+
updatedAt: Date;
|
|
1706
1706
|
} | undefined>;
|
|
1707
1707
|
updateProviderGuardrailOverride: (params: z$1.infer<typeof updateProviderGuardrailOverride>) => Promise<{
|
|
1708
1708
|
id: string;
|
|
1709
|
-
createdAt: Date;
|
|
1710
|
-
updatedAt: Date;
|
|
1711
|
-
enabled: boolean;
|
|
1712
1709
|
parameters: Record<string, unknown> | null;
|
|
1710
|
+
enabled: boolean;
|
|
1713
1711
|
providerConfigId: string;
|
|
1714
1712
|
guardrailConfigId: string;
|
|
1713
|
+
createdAt: Date;
|
|
1714
|
+
updatedAt: Date;
|
|
1715
1715
|
} | undefined>;
|
|
1716
1716
|
getOverrideById: (params: z$1.infer<typeof getOverrideById>) => Promise<{
|
|
1717
1717
|
id: string;
|
|
1718
|
-
createdAt: Date;
|
|
1719
|
-
updatedAt: Date;
|
|
1720
|
-
enabled: boolean;
|
|
1721
1718
|
parameters: Record<string, unknown> | null;
|
|
1719
|
+
enabled: boolean;
|
|
1722
1720
|
providerConfigId: string;
|
|
1723
1721
|
guardrailConfigId: string;
|
|
1722
|
+
createdAt: Date;
|
|
1723
|
+
updatedAt: Date;
|
|
1724
1724
|
} | undefined>;
|
|
1725
1725
|
deleteProviderGuardrailOverride: (params: z$1.infer<typeof deleteOverride>) => Promise<{
|
|
1726
1726
|
id: string;
|
|
1727
|
-
createdAt: Date;
|
|
1728
|
-
updatedAt: Date;
|
|
1729
|
-
enabled: boolean;
|
|
1730
1727
|
parameters: Record<string, unknown> | null;
|
|
1728
|
+
enabled: boolean;
|
|
1731
1729
|
providerConfigId: string;
|
|
1732
1730
|
guardrailConfigId: string;
|
|
1731
|
+
createdAt: Date;
|
|
1732
|
+
updatedAt: Date;
|
|
1733
1733
|
} | undefined>;
|
|
1734
1734
|
getOverridesByProviderConfigId: (params: z$1.infer<typeof getOverridesByProviderConfigId>) => Promise<{
|
|
1735
1735
|
id: string;
|
|
1736
|
-
createdAt: Date;
|
|
1737
|
-
updatedAt: Date;
|
|
1738
|
-
enabled: boolean;
|
|
1739
1736
|
parameters: Record<string, unknown> | null;
|
|
1737
|
+
enabled: boolean;
|
|
1740
1738
|
providerConfigId: string;
|
|
1741
1739
|
guardrailConfigId: string;
|
|
1740
|
+
createdAt: Date;
|
|
1741
|
+
updatedAt: Date;
|
|
1742
1742
|
}[]>;
|
|
1743
1743
|
getOverridesByGuardrailConfigId: (params: z$1.infer<typeof getOverridesByGuardrailConfigId>) => Promise<{
|
|
1744
1744
|
id: string;
|
|
1745
|
-
createdAt: Date;
|
|
1746
|
-
updatedAt: Date;
|
|
1747
|
-
enabled: boolean;
|
|
1748
1745
|
parameters: Record<string, unknown> | null;
|
|
1746
|
+
enabled: boolean;
|
|
1749
1747
|
providerConfigId: string;
|
|
1750
1748
|
guardrailConfigId: string;
|
|
1749
|
+
createdAt: Date;
|
|
1750
|
+
updatedAt: Date;
|
|
1751
1751
|
}[]>;
|
|
1752
1752
|
getOverrideByProviderAndGuardrail: (params: z$1.infer<typeof getOverrideByProviderAndGuardrail>) => Promise<{
|
|
1753
1753
|
id: string;
|
|
1754
|
-
createdAt: Date;
|
|
1755
|
-
updatedAt: Date;
|
|
1756
|
-
enabled: boolean;
|
|
1757
1754
|
parameters: Record<string, unknown> | null;
|
|
1755
|
+
enabled: boolean;
|
|
1758
1756
|
providerConfigId: string;
|
|
1759
1757
|
guardrailConfigId: string;
|
|
1758
|
+
createdAt: Date;
|
|
1759
|
+
updatedAt: Date;
|
|
1760
1760
|
} | undefined>;
|
|
1761
1761
|
/**
|
|
1762
1762
|
* Upsert provider guardrail override - creates if not exists, updates if exists
|
|
1763
1763
|
*/
|
|
1764
1764
|
upsertProviderGuardrailOverride: (params: z$1.infer<typeof createProviderGuardrailOverride>) => Promise<{
|
|
1765
1765
|
id: string;
|
|
1766
|
-
createdAt: Date;
|
|
1767
|
-
updatedAt: Date;
|
|
1768
|
-
enabled: boolean;
|
|
1769
1766
|
parameters: Record<string, unknown> | null;
|
|
1767
|
+
enabled: boolean;
|
|
1770
1768
|
providerConfigId: string;
|
|
1771
1769
|
guardrailConfigId: string;
|
|
1770
|
+
createdAt: Date;
|
|
1771
|
+
updatedAt: Date;
|
|
1772
1772
|
} | undefined>;
|
|
1773
1773
|
/**
|
|
1774
1774
|
* Delete all overrides for a guardrail config
|
|
@@ -1782,10 +1782,10 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
1782
1782
|
getWorkspaceSettings: () => Promise<{
|
|
1783
1783
|
name: string | null;
|
|
1784
1784
|
id: string;
|
|
1785
|
-
createdAt: Date;
|
|
1786
|
-
updatedAt: Date;
|
|
1787
1785
|
setupComplete: boolean;
|
|
1788
1786
|
superAdminId: string | null;
|
|
1787
|
+
createdAt: Date;
|
|
1788
|
+
updatedAt: Date;
|
|
1789
1789
|
} | undefined>;
|
|
1790
1790
|
updateWorkspaceSettings: (params: zod37.infer<zod37.ZodObject<{
|
|
1791
1791
|
name: zod37.ZodOptional<zod37.ZodNullable<zod37.ZodString>>;
|
|
@@ -1794,10 +1794,10 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
1794
1794
|
}, better_auth0.$strip>>) => Promise<{
|
|
1795
1795
|
name: string | null;
|
|
1796
1796
|
id: string;
|
|
1797
|
-
createdAt: Date;
|
|
1798
|
-
updatedAt: Date;
|
|
1799
1797
|
setupComplete: boolean;
|
|
1800
1798
|
superAdminId: string | null;
|
|
1799
|
+
createdAt: Date;
|
|
1800
|
+
updatedAt: Date;
|
|
1801
1801
|
} | undefined>;
|
|
1802
1802
|
getSuperAdminId: () => Promise<string | null>;
|
|
1803
1803
|
setSuperAdminId: (userId: string) => Promise<boolean>;
|
|
@@ -1805,10 +1805,10 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
1805
1805
|
markSetupComplete: () => Promise<{
|
|
1806
1806
|
name: string | null;
|
|
1807
1807
|
id: string;
|
|
1808
|
-
createdAt: Date;
|
|
1809
|
-
updatedAt: Date;
|
|
1810
1808
|
setupComplete: boolean;
|
|
1811
1809
|
superAdminId: string | null;
|
|
1810
|
+
createdAt: Date;
|
|
1811
|
+
updatedAt: Date;
|
|
1812
1812
|
} | undefined>;
|
|
1813
1813
|
createVariantVersion: (params: zod37.infer<zod37.ZodObject<{
|
|
1814
1814
|
variantId: zod37.ZodString;
|
|
@@ -1817,25 +1817,25 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
1817
1817
|
jsonData: zod37.ZodDefault<zod37.ZodOptional<zod37.ZodRecord<zod37.ZodString, zod37.ZodUnknown>>>;
|
|
1818
1818
|
}, better_auth0.$strip>>) => Promise<{
|
|
1819
1819
|
version: number;
|
|
1820
|
-
id: string;
|
|
1821
|
-
createdAt: Date;
|
|
1822
|
-
updatedAt: Date;
|
|
1823
1820
|
variantId: string;
|
|
1821
|
+
id: string;
|
|
1824
1822
|
provider: string;
|
|
1825
1823
|
modelName: string;
|
|
1826
1824
|
jsonData: Record<string, unknown>;
|
|
1825
|
+
createdAt: Date;
|
|
1826
|
+
updatedAt: Date;
|
|
1827
1827
|
} | undefined>;
|
|
1828
1828
|
getVariantVersionById: (params: zod37.infer<zod37.ZodObject<{
|
|
1829
1829
|
id: zod37.ZodString;
|
|
1830
1830
|
}, better_auth0.$strip>>) => Promise<{
|
|
1831
1831
|
version: number;
|
|
1832
|
-
id: string;
|
|
1833
|
-
createdAt: Date;
|
|
1834
|
-
updatedAt: Date;
|
|
1835
1832
|
variantId: string;
|
|
1833
|
+
id: string;
|
|
1836
1834
|
provider: string;
|
|
1837
1835
|
modelName: string;
|
|
1838
1836
|
jsonData: Record<string, unknown>;
|
|
1837
|
+
createdAt: Date;
|
|
1838
|
+
updatedAt: Date;
|
|
1839
1839
|
} | undefined>;
|
|
1840
1840
|
getVariantVersionsByVariantId: (params: zod37.infer<zod37.ZodObject<{
|
|
1841
1841
|
variantId: zod37.ZodString;
|
|
@@ -1843,74 +1843,74 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
1843
1843
|
offset: zod37.ZodOptional<zod37.ZodNumber>;
|
|
1844
1844
|
}, better_auth0.$strip>>) => Promise<{
|
|
1845
1845
|
version: number;
|
|
1846
|
-
id: string;
|
|
1847
|
-
createdAt: Date;
|
|
1848
|
-
updatedAt: Date;
|
|
1849
1846
|
variantId: string;
|
|
1847
|
+
id: string;
|
|
1850
1848
|
provider: string;
|
|
1851
1849
|
modelName: string;
|
|
1852
1850
|
jsonData: Record<string, unknown>;
|
|
1851
|
+
createdAt: Date;
|
|
1852
|
+
updatedAt: Date;
|
|
1853
1853
|
}[]>;
|
|
1854
1854
|
getLatestVariantVersion: (params: zod37.infer<zod37.ZodObject<{
|
|
1855
1855
|
variantId: zod37.ZodString;
|
|
1856
1856
|
}, better_auth0.$strip>>) => Promise<{
|
|
1857
1857
|
version: number;
|
|
1858
|
-
id: string;
|
|
1859
|
-
createdAt: Date;
|
|
1860
|
-
updatedAt: Date;
|
|
1861
1858
|
variantId: string;
|
|
1859
|
+
id: string;
|
|
1862
1860
|
provider: string;
|
|
1863
1861
|
modelName: string;
|
|
1864
1862
|
jsonData: Record<string, unknown>;
|
|
1863
|
+
createdAt: Date;
|
|
1864
|
+
updatedAt: Date;
|
|
1865
1865
|
} | undefined>;
|
|
1866
1866
|
getVariantVersionByNumber: (params: zod37.infer<zod37.ZodObject<{
|
|
1867
1867
|
variantId: zod37.ZodString;
|
|
1868
1868
|
version: zod37.ZodNumber;
|
|
1869
1869
|
}, better_auth0.$strip>>) => Promise<{
|
|
1870
1870
|
version: number;
|
|
1871
|
-
id: string;
|
|
1872
|
-
createdAt: Date;
|
|
1873
|
-
updatedAt: Date;
|
|
1874
1871
|
variantId: string;
|
|
1872
|
+
id: string;
|
|
1875
1873
|
provider: string;
|
|
1876
1874
|
modelName: string;
|
|
1877
1875
|
jsonData: Record<string, unknown>;
|
|
1876
|
+
createdAt: Date;
|
|
1877
|
+
updatedAt: Date;
|
|
1878
1878
|
} | undefined>;
|
|
1879
1879
|
deleteVariantVersion: (params: zod37.infer<zod37.ZodObject<{
|
|
1880
1880
|
id: zod37.ZodString;
|
|
1881
1881
|
}, better_auth0.$strip>>) => Promise<{
|
|
1882
1882
|
version: number;
|
|
1883
|
-
id: string;
|
|
1884
|
-
createdAt: Date;
|
|
1885
|
-
updatedAt: Date;
|
|
1886
1883
|
variantId: string;
|
|
1884
|
+
id: string;
|
|
1887
1885
|
provider: string;
|
|
1888
1886
|
modelName: string;
|
|
1889
1887
|
jsonData: Record<string, unknown>;
|
|
1888
|
+
createdAt: Date;
|
|
1889
|
+
updatedAt: Date;
|
|
1890
1890
|
} | undefined>;
|
|
1891
1891
|
deleteVariantVersionsByVariantId: (params: zod37.infer<zod37.ZodObject<{
|
|
1892
1892
|
variantId: zod37.ZodString;
|
|
1893
1893
|
}, better_auth0.$strip>>) => Promise<{
|
|
1894
1894
|
version: number;
|
|
1895
|
-
id: string;
|
|
1896
|
-
createdAt: Date;
|
|
1897
|
-
updatedAt: Date;
|
|
1898
1895
|
variantId: string;
|
|
1896
|
+
id: string;
|
|
1899
1897
|
provider: string;
|
|
1900
1898
|
modelName: string;
|
|
1901
1899
|
jsonData: Record<string, unknown>;
|
|
1900
|
+
createdAt: Date;
|
|
1901
|
+
updatedAt: Date;
|
|
1902
1902
|
}[]>;
|
|
1903
1903
|
getVariantVersionWithVariant: (params: zod37.infer<zod37.ZodObject<{
|
|
1904
1904
|
id: zod37.ZodString;
|
|
1905
1905
|
}, better_auth0.$strip>>) => Promise<{
|
|
1906
1906
|
version: number;
|
|
1907
|
-
id: string;
|
|
1908
|
-
createdAt: Date;
|
|
1909
|
-
updatedAt: Date;
|
|
1910
1907
|
variantId: string;
|
|
1908
|
+
id: string;
|
|
1911
1909
|
provider: string;
|
|
1912
1910
|
modelName: string;
|
|
1913
1911
|
jsonData: Record<string, unknown>;
|
|
1912
|
+
createdAt: Date;
|
|
1913
|
+
updatedAt: Date;
|
|
1914
1914
|
variantName: string;
|
|
1915
1915
|
} | undefined>;
|
|
1916
1916
|
getVariantVersionsWithVariantByVariantId: (params: zod37.infer<zod37.ZodObject<{
|
|
@@ -1919,13 +1919,13 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
1919
1919
|
offset: zod37.ZodOptional<zod37.ZodNumber>;
|
|
1920
1920
|
}, better_auth0.$strip>>) => Promise<{
|
|
1921
1921
|
version: number;
|
|
1922
|
-
id: string;
|
|
1923
|
-
createdAt: Date;
|
|
1924
|
-
updatedAt: Date;
|
|
1925
1922
|
variantId: string;
|
|
1923
|
+
id: string;
|
|
1926
1924
|
provider: string;
|
|
1927
1925
|
modelName: string;
|
|
1928
1926
|
jsonData: Record<string, unknown>;
|
|
1927
|
+
createdAt: Date;
|
|
1928
|
+
updatedAt: Date;
|
|
1929
1929
|
variantName: string;
|
|
1930
1930
|
}[]>;
|
|
1931
1931
|
createVariant: (params: zod37.infer<zod37.ZodObject<{
|
|
@@ -1958,13 +1958,13 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
1958
1958
|
}, better_auth0.$strip>>) => Promise<{
|
|
1959
1959
|
latestVersion: {
|
|
1960
1960
|
version: number;
|
|
1961
|
-
id: string;
|
|
1962
|
-
createdAt: Date;
|
|
1963
|
-
updatedAt: Date;
|
|
1964
1961
|
variantId: string;
|
|
1962
|
+
id: string;
|
|
1965
1963
|
provider: string;
|
|
1966
1964
|
modelName: string;
|
|
1967
1965
|
jsonData: Record<string, unknown>;
|
|
1966
|
+
createdAt: Date;
|
|
1967
|
+
updatedAt: Date;
|
|
1968
1968
|
} | null;
|
|
1969
1969
|
name: string;
|
|
1970
1970
|
id: string;
|
|
@@ -1994,13 +1994,13 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
1994
1994
|
}, better_auth0.$strip>>) => Promise<{
|
|
1995
1995
|
latestVersion: {
|
|
1996
1996
|
version: number;
|
|
1997
|
-
id: string;
|
|
1998
|
-
createdAt: Date;
|
|
1999
|
-
updatedAt: Date;
|
|
2000
1997
|
variantId: string;
|
|
1998
|
+
id: string;
|
|
2001
1999
|
provider: string;
|
|
2002
2000
|
modelName: string;
|
|
2003
2001
|
jsonData: Record<string, unknown>;
|
|
2002
|
+
createdAt: Date;
|
|
2003
|
+
updatedAt: Date;
|
|
2004
2004
|
} | null;
|
|
2005
2005
|
name: string;
|
|
2006
2006
|
id: string;
|
|
@@ -2017,17 +2017,17 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2017
2017
|
enabled: zod37.ZodDefault<zod37.ZodOptional<zod37.ZodBoolean>>;
|
|
2018
2018
|
conditions: zod37.ZodOptional<zod37.ZodNullable<zod37.ZodRecord<zod37.ZodString, zod37.ZodUnknown>>>;
|
|
2019
2019
|
}, better_auth0.$strip>>) => Promise<{
|
|
2020
|
+
configId: string;
|
|
2020
2021
|
id: string;
|
|
2021
|
-
createdAt: Date;
|
|
2022
|
-
updatedAt: Date;
|
|
2023
2022
|
environmentId: string;
|
|
2024
|
-
|
|
2023
|
+
enabled: boolean;
|
|
2024
|
+
priority: number;
|
|
2025
2025
|
configVariantId: string;
|
|
2026
2026
|
variantVersionId: string | null;
|
|
2027
2027
|
weight: number;
|
|
2028
|
-
priority: number;
|
|
2029
|
-
enabled: boolean;
|
|
2030
2028
|
conditions: Record<string, unknown>;
|
|
2029
|
+
createdAt: Date;
|
|
2030
|
+
updatedAt: Date;
|
|
2031
2031
|
} | undefined>;
|
|
2032
2032
|
updateTargetingRule: (params: zod37.infer<zod37.ZodObject<{
|
|
2033
2033
|
id: zod37.ZodString;
|
|
@@ -2037,143 +2037,143 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2037
2037
|
enabled: zod37.ZodOptional<zod37.ZodBoolean>;
|
|
2038
2038
|
conditions: zod37.ZodOptional<zod37.ZodNullable<zod37.ZodRecord<zod37.ZodString, zod37.ZodUnknown>>>;
|
|
2039
2039
|
}, better_auth0.$strip>>) => Promise<{
|
|
2040
|
+
configId: string;
|
|
2040
2041
|
id: string;
|
|
2041
|
-
createdAt: Date;
|
|
2042
|
-
updatedAt: Date;
|
|
2043
2042
|
environmentId: string;
|
|
2044
|
-
|
|
2043
|
+
enabled: boolean;
|
|
2044
|
+
priority: number;
|
|
2045
2045
|
configVariantId: string;
|
|
2046
2046
|
variantVersionId: string | null;
|
|
2047
2047
|
weight: number;
|
|
2048
|
-
priority: number;
|
|
2049
|
-
enabled: boolean;
|
|
2050
2048
|
conditions: Record<string, unknown>;
|
|
2049
|
+
createdAt: Date;
|
|
2050
|
+
updatedAt: Date;
|
|
2051
2051
|
} | undefined>;
|
|
2052
2052
|
getTargetingRuleById: (params: zod37.infer<zod37.ZodObject<{
|
|
2053
2053
|
id: zod37.ZodString;
|
|
2054
2054
|
}, better_auth0.$strip>>) => Promise<{
|
|
2055
|
+
configId: string;
|
|
2055
2056
|
id: string;
|
|
2056
|
-
createdAt: Date;
|
|
2057
|
-
updatedAt: Date;
|
|
2058
2057
|
environmentId: string;
|
|
2059
|
-
|
|
2058
|
+
enabled: boolean;
|
|
2059
|
+
priority: number;
|
|
2060
2060
|
configVariantId: string;
|
|
2061
2061
|
variantVersionId: string | null;
|
|
2062
2062
|
weight: number;
|
|
2063
|
-
priority: number;
|
|
2064
|
-
enabled: boolean;
|
|
2065
2063
|
conditions: Record<string, unknown>;
|
|
2064
|
+
createdAt: Date;
|
|
2065
|
+
updatedAt: Date;
|
|
2066
2066
|
} | undefined>;
|
|
2067
2067
|
getTargetingRulesByConfigId: (params: zod37.infer<zod37.ZodObject<{
|
|
2068
2068
|
configId: zod37.ZodString;
|
|
2069
2069
|
limit: zod37.ZodOptional<zod37.ZodNumber>;
|
|
2070
2070
|
offset: zod37.ZodOptional<zod37.ZodNumber>;
|
|
2071
2071
|
}, better_auth0.$strip>>) => Promise<{
|
|
2072
|
+
configId: string;
|
|
2072
2073
|
id: string;
|
|
2073
|
-
createdAt: Date;
|
|
2074
|
-
updatedAt: Date;
|
|
2075
2074
|
environmentId: string;
|
|
2076
|
-
|
|
2075
|
+
enabled: boolean;
|
|
2076
|
+
priority: number;
|
|
2077
2077
|
configVariantId: string;
|
|
2078
2078
|
variantVersionId: string | null;
|
|
2079
2079
|
weight: number;
|
|
2080
|
-
priority: number;
|
|
2081
|
-
enabled: boolean;
|
|
2082
2080
|
conditions: Record<string, unknown>;
|
|
2081
|
+
createdAt: Date;
|
|
2082
|
+
updatedAt: Date;
|
|
2083
2083
|
}[]>;
|
|
2084
2084
|
getTargetingRulesByEnvironmentId: (params: zod37.infer<zod37.ZodObject<{
|
|
2085
2085
|
environmentId: zod37.ZodString;
|
|
2086
2086
|
limit: zod37.ZodOptional<zod37.ZodNumber>;
|
|
2087
2087
|
offset: zod37.ZodOptional<zod37.ZodNumber>;
|
|
2088
2088
|
}, better_auth0.$strip>>) => Promise<{
|
|
2089
|
+
configId: string;
|
|
2089
2090
|
id: string;
|
|
2090
|
-
createdAt: Date;
|
|
2091
|
-
updatedAt: Date;
|
|
2092
2091
|
environmentId: string;
|
|
2093
|
-
|
|
2092
|
+
enabled: boolean;
|
|
2093
|
+
priority: number;
|
|
2094
2094
|
configVariantId: string;
|
|
2095
2095
|
variantVersionId: string | null;
|
|
2096
2096
|
weight: number;
|
|
2097
|
-
priority: number;
|
|
2098
|
-
enabled: boolean;
|
|
2099
2097
|
conditions: Record<string, unknown>;
|
|
2098
|
+
createdAt: Date;
|
|
2099
|
+
updatedAt: Date;
|
|
2100
2100
|
}[]>;
|
|
2101
2101
|
getTargetingRulesByConfigAndEnvironment: (params: zod37.infer<zod37.ZodObject<{
|
|
2102
2102
|
configId: zod37.ZodString;
|
|
2103
2103
|
environmentId: zod37.ZodString;
|
|
2104
2104
|
}, better_auth0.$strip>>) => Promise<{
|
|
2105
|
+
configId: string;
|
|
2105
2106
|
id: string;
|
|
2106
|
-
createdAt: Date;
|
|
2107
|
-
updatedAt: Date;
|
|
2108
2107
|
environmentId: string;
|
|
2109
|
-
|
|
2108
|
+
enabled: boolean;
|
|
2109
|
+
priority: number;
|
|
2110
2110
|
configVariantId: string;
|
|
2111
2111
|
variantVersionId: string | null;
|
|
2112
2112
|
weight: number;
|
|
2113
|
-
priority: number;
|
|
2114
|
-
enabled: boolean;
|
|
2115
2113
|
conditions: Record<string, unknown>;
|
|
2114
|
+
createdAt: Date;
|
|
2115
|
+
updatedAt: Date;
|
|
2116
2116
|
}[]>;
|
|
2117
2117
|
deleteTargetingRule: (params: zod37.infer<zod37.ZodObject<{
|
|
2118
2118
|
id: zod37.ZodString;
|
|
2119
2119
|
}, better_auth0.$strip>>) => Promise<{
|
|
2120
|
+
configId: string;
|
|
2120
2121
|
id: string;
|
|
2121
|
-
createdAt: Date;
|
|
2122
|
-
updatedAt: Date;
|
|
2123
2122
|
environmentId: string;
|
|
2124
|
-
|
|
2123
|
+
enabled: boolean;
|
|
2124
|
+
priority: number;
|
|
2125
2125
|
configVariantId: string;
|
|
2126
2126
|
variantVersionId: string | null;
|
|
2127
2127
|
weight: number;
|
|
2128
|
-
priority: number;
|
|
2129
|
-
enabled: boolean;
|
|
2130
2128
|
conditions: Record<string, unknown>;
|
|
2129
|
+
createdAt: Date;
|
|
2130
|
+
updatedAt: Date;
|
|
2131
2131
|
} | undefined>;
|
|
2132
2132
|
deleteTargetingRulesByConfigId: (params: zod37.infer<zod37.ZodObject<{
|
|
2133
2133
|
configId: zod37.ZodString;
|
|
2134
2134
|
}, better_auth0.$strip>>) => Promise<{
|
|
2135
|
+
configId: string;
|
|
2135
2136
|
id: string;
|
|
2136
|
-
createdAt: Date;
|
|
2137
|
-
updatedAt: Date;
|
|
2138
2137
|
environmentId: string;
|
|
2139
|
-
|
|
2138
|
+
enabled: boolean;
|
|
2139
|
+
priority: number;
|
|
2140
2140
|
configVariantId: string;
|
|
2141
2141
|
variantVersionId: string | null;
|
|
2142
2142
|
weight: number;
|
|
2143
|
-
priority: number;
|
|
2144
|
-
enabled: boolean;
|
|
2145
2143
|
conditions: Record<string, unknown>;
|
|
2144
|
+
createdAt: Date;
|
|
2145
|
+
updatedAt: Date;
|
|
2146
2146
|
}[]>;
|
|
2147
2147
|
deleteTargetingRulesByEnvironmentId: (params: zod37.infer<zod37.ZodObject<{
|
|
2148
2148
|
environmentId: zod37.ZodString;
|
|
2149
2149
|
}, better_auth0.$strip>>) => Promise<{
|
|
2150
|
+
configId: string;
|
|
2150
2151
|
id: string;
|
|
2151
|
-
createdAt: Date;
|
|
2152
|
-
updatedAt: Date;
|
|
2153
2152
|
environmentId: string;
|
|
2154
|
-
|
|
2153
|
+
enabled: boolean;
|
|
2154
|
+
priority: number;
|
|
2155
2155
|
configVariantId: string;
|
|
2156
2156
|
variantVersionId: string | null;
|
|
2157
2157
|
weight: number;
|
|
2158
|
-
priority: number;
|
|
2159
|
-
enabled: boolean;
|
|
2160
2158
|
conditions: Record<string, unknown>;
|
|
2159
|
+
createdAt: Date;
|
|
2160
|
+
updatedAt: Date;
|
|
2161
2161
|
}[]>;
|
|
2162
2162
|
listTargetingRules: (params?: zod37.infer<zod37.ZodObject<{
|
|
2163
2163
|
limit: zod37.ZodOptional<zod37.ZodNumber>;
|
|
2164
2164
|
offset: zod37.ZodOptional<zod37.ZodNumber>;
|
|
2165
2165
|
}, better_auth0.$strip>>) => Promise<{
|
|
2166
|
+
configId: string;
|
|
2166
2167
|
id: string;
|
|
2167
|
-
createdAt: Date;
|
|
2168
|
-
updatedAt: Date;
|
|
2169
2168
|
environmentId: string;
|
|
2170
|
-
|
|
2169
|
+
enabled: boolean;
|
|
2170
|
+
priority: number;
|
|
2171
2171
|
configVariantId: string;
|
|
2172
2172
|
variantVersionId: string | null;
|
|
2173
2173
|
weight: number;
|
|
2174
|
-
priority: number;
|
|
2175
|
-
enabled: boolean;
|
|
2176
2174
|
conditions: Record<string, unknown>;
|
|
2175
|
+
createdAt: Date;
|
|
2176
|
+
updatedAt: Date;
|
|
2177
2177
|
}[]>;
|
|
2178
2178
|
getTargetingRulesWithDetailsByConfigId: (params: zod37.infer<zod37.ZodObject<{
|
|
2179
2179
|
configId: zod37.ZodString;
|
|
@@ -2185,17 +2185,17 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2185
2185
|
pinnedVersion: number | null | undefined;
|
|
2186
2186
|
latestVersion: number | null | undefined;
|
|
2187
2187
|
variantName: string | null;
|
|
2188
|
+
configId: string;
|
|
2188
2189
|
id: string;
|
|
2189
|
-
createdAt: Date;
|
|
2190
|
-
updatedAt: Date;
|
|
2191
2190
|
environmentId: string;
|
|
2192
|
-
|
|
2191
|
+
enabled: boolean;
|
|
2192
|
+
priority: number;
|
|
2193
2193
|
configVariantId: string;
|
|
2194
2194
|
variantVersionId: string | null;
|
|
2195
2195
|
weight: number;
|
|
2196
|
-
priority: number;
|
|
2197
|
-
enabled: boolean;
|
|
2198
2196
|
conditions: Record<string, unknown>;
|
|
2197
|
+
createdAt: Date;
|
|
2198
|
+
updatedAt: Date;
|
|
2199
2199
|
variantId: string | null;
|
|
2200
2200
|
environmentName: string | null;
|
|
2201
2201
|
environmentSlug: string | null;
|
|
@@ -2206,17 +2206,17 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2206
2206
|
configVariantId: zod37.ZodString;
|
|
2207
2207
|
variantVersionId: zod37.ZodOptional<zod37.ZodNullable<zod37.ZodString>>;
|
|
2208
2208
|
}, better_auth0.$strip>>) => Promise<{
|
|
2209
|
+
configId: string;
|
|
2209
2210
|
id: string;
|
|
2210
|
-
createdAt: Date;
|
|
2211
|
-
updatedAt: Date;
|
|
2212
2211
|
environmentId: string;
|
|
2213
|
-
|
|
2212
|
+
enabled: boolean;
|
|
2213
|
+
priority: number;
|
|
2214
2214
|
configVariantId: string;
|
|
2215
2215
|
variantVersionId: string | null;
|
|
2216
2216
|
weight: number;
|
|
2217
|
-
priority: number;
|
|
2218
|
-
enabled: boolean;
|
|
2219
2217
|
conditions: Record<string, unknown>;
|
|
2218
|
+
createdAt: Date;
|
|
2219
|
+
updatedAt: Date;
|
|
2220
2220
|
} | undefined>;
|
|
2221
2221
|
createProviderGuardrailOverride: (params: zod37.infer<zod37.ZodObject<{
|
|
2222
2222
|
providerConfigId: zod37.ZodString;
|
|
@@ -2225,12 +2225,12 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2225
2225
|
parameters: zod37.ZodOptional<zod37.ZodNullable<zod37.ZodRecord<zod37.ZodString, zod37.ZodUnknown>>>;
|
|
2226
2226
|
}, better_auth0.$strip>>) => Promise<{
|
|
2227
2227
|
id: string;
|
|
2228
|
-
createdAt: Date;
|
|
2229
|
-
updatedAt: Date;
|
|
2230
|
-
enabled: boolean;
|
|
2231
2228
|
parameters: Record<string, unknown> | null;
|
|
2229
|
+
enabled: boolean;
|
|
2232
2230
|
providerConfigId: string;
|
|
2233
2231
|
guardrailConfigId: string;
|
|
2232
|
+
createdAt: Date;
|
|
2233
|
+
updatedAt: Date;
|
|
2234
2234
|
} | undefined>;
|
|
2235
2235
|
updateProviderGuardrailOverride: (params: zod37.infer<zod37.ZodObject<{
|
|
2236
2236
|
id: zod37.ZodString;
|
|
@@ -2238,68 +2238,68 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2238
2238
|
parameters: zod37.ZodOptional<zod37.ZodNullable<zod37.ZodRecord<zod37.ZodString, zod37.ZodUnknown>>>;
|
|
2239
2239
|
}, better_auth0.$strip>>) => Promise<{
|
|
2240
2240
|
id: string;
|
|
2241
|
-
createdAt: Date;
|
|
2242
|
-
updatedAt: Date;
|
|
2243
|
-
enabled: boolean;
|
|
2244
2241
|
parameters: Record<string, unknown> | null;
|
|
2242
|
+
enabled: boolean;
|
|
2245
2243
|
providerConfigId: string;
|
|
2246
2244
|
guardrailConfigId: string;
|
|
2245
|
+
createdAt: Date;
|
|
2246
|
+
updatedAt: Date;
|
|
2247
2247
|
} | undefined>;
|
|
2248
2248
|
getOverrideById: (params: zod37.infer<zod37.ZodObject<{
|
|
2249
2249
|
id: zod37.ZodString;
|
|
2250
2250
|
}, better_auth0.$strip>>) => Promise<{
|
|
2251
2251
|
id: string;
|
|
2252
|
-
createdAt: Date;
|
|
2253
|
-
updatedAt: Date;
|
|
2254
|
-
enabled: boolean;
|
|
2255
2252
|
parameters: Record<string, unknown> | null;
|
|
2253
|
+
enabled: boolean;
|
|
2256
2254
|
providerConfigId: string;
|
|
2257
2255
|
guardrailConfigId: string;
|
|
2256
|
+
createdAt: Date;
|
|
2257
|
+
updatedAt: Date;
|
|
2258
2258
|
} | undefined>;
|
|
2259
2259
|
deleteProviderGuardrailOverride: (params: zod37.infer<zod37.ZodObject<{
|
|
2260
2260
|
id: zod37.ZodString;
|
|
2261
2261
|
}, better_auth0.$strip>>) => Promise<{
|
|
2262
2262
|
id: string;
|
|
2263
|
-
createdAt: Date;
|
|
2264
|
-
updatedAt: Date;
|
|
2265
|
-
enabled: boolean;
|
|
2266
2263
|
parameters: Record<string, unknown> | null;
|
|
2264
|
+
enabled: boolean;
|
|
2267
2265
|
providerConfigId: string;
|
|
2268
2266
|
guardrailConfigId: string;
|
|
2267
|
+
createdAt: Date;
|
|
2268
|
+
updatedAt: Date;
|
|
2269
2269
|
} | undefined>;
|
|
2270
2270
|
getOverridesByProviderConfigId: (params: zod37.infer<zod37.ZodObject<{
|
|
2271
2271
|
providerConfigId: zod37.ZodString;
|
|
2272
2272
|
}, better_auth0.$strip>>) => Promise<{
|
|
2273
2273
|
id: string;
|
|
2274
|
-
createdAt: Date;
|
|
2275
|
-
updatedAt: Date;
|
|
2276
|
-
enabled: boolean;
|
|
2277
2274
|
parameters: Record<string, unknown> | null;
|
|
2275
|
+
enabled: boolean;
|
|
2278
2276
|
providerConfigId: string;
|
|
2279
2277
|
guardrailConfigId: string;
|
|
2278
|
+
createdAt: Date;
|
|
2279
|
+
updatedAt: Date;
|
|
2280
2280
|
}[]>;
|
|
2281
2281
|
getOverridesByGuardrailConfigId: (params: zod37.infer<zod37.ZodObject<{
|
|
2282
2282
|
guardrailConfigId: zod37.ZodString;
|
|
2283
2283
|
}, better_auth0.$strip>>) => Promise<{
|
|
2284
2284
|
id: string;
|
|
2285
|
-
createdAt: Date;
|
|
2286
|
-
updatedAt: Date;
|
|
2287
|
-
enabled: boolean;
|
|
2288
2285
|
parameters: Record<string, unknown> | null;
|
|
2286
|
+
enabled: boolean;
|
|
2289
2287
|
providerConfigId: string;
|
|
2290
2288
|
guardrailConfigId: string;
|
|
2289
|
+
createdAt: Date;
|
|
2290
|
+
updatedAt: Date;
|
|
2291
2291
|
}[]>;
|
|
2292
2292
|
getOverrideByProviderAndGuardrail: (params: zod37.infer<zod37.ZodObject<{
|
|
2293
2293
|
providerConfigId: zod37.ZodString;
|
|
2294
2294
|
guardrailConfigId: zod37.ZodString;
|
|
2295
2295
|
}, better_auth0.$strip>>) => Promise<{
|
|
2296
2296
|
id: string;
|
|
2297
|
-
createdAt: Date;
|
|
2298
|
-
updatedAt: Date;
|
|
2299
|
-
enabled: boolean;
|
|
2300
2297
|
parameters: Record<string, unknown> | null;
|
|
2298
|
+
enabled: boolean;
|
|
2301
2299
|
providerConfigId: string;
|
|
2302
2300
|
guardrailConfigId: string;
|
|
2301
|
+
createdAt: Date;
|
|
2302
|
+
updatedAt: Date;
|
|
2303
2303
|
} | undefined>;
|
|
2304
2304
|
upsertProviderGuardrailOverride: (params: zod37.infer<zod37.ZodObject<{
|
|
2305
2305
|
providerConfigId: zod37.ZodString;
|
|
@@ -2308,12 +2308,12 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2308
2308
|
parameters: zod37.ZodOptional<zod37.ZodNullable<zod37.ZodRecord<zod37.ZodString, zod37.ZodUnknown>>>;
|
|
2309
2309
|
}, better_auth0.$strip>>) => Promise<{
|
|
2310
2310
|
id: string;
|
|
2311
|
-
createdAt: Date;
|
|
2312
|
-
updatedAt: Date;
|
|
2313
|
-
enabled: boolean;
|
|
2314
2311
|
parameters: Record<string, unknown> | null;
|
|
2312
|
+
enabled: boolean;
|
|
2315
2313
|
providerConfigId: string;
|
|
2316
2314
|
guardrailConfigId: string;
|
|
2315
|
+
createdAt: Date;
|
|
2316
|
+
updatedAt: Date;
|
|
2317
2317
|
} | undefined>;
|
|
2318
2318
|
deleteOverridesByGuardrailConfigId: (params: zod37.infer<zod37.ZodObject<{
|
|
2319
2319
|
guardrailConfigId: zod37.ZodString;
|
|
@@ -2325,14 +2325,14 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2325
2325
|
config: zod37.ZodRecord<zod37.ZodString, zod37.ZodUnknown>;
|
|
2326
2326
|
enabled: zod37.ZodDefault<zod37.ZodOptional<zod37.ZodBoolean>>;
|
|
2327
2327
|
}, better_auth0.$strip>>) => Promise<{
|
|
2328
|
-
slug: string | null;
|
|
2329
2328
|
name: string | null;
|
|
2330
2329
|
id: string;
|
|
2331
|
-
|
|
2332
|
-
updatedAt: Date;
|
|
2330
|
+
slug: string | null;
|
|
2333
2331
|
enabled: boolean;
|
|
2334
|
-
providerId: string;
|
|
2335
2332
|
config: Record<string, unknown>;
|
|
2333
|
+
providerId: string;
|
|
2334
|
+
createdAt: Date;
|
|
2335
|
+
updatedAt: Date;
|
|
2336
2336
|
} | undefined>;
|
|
2337
2337
|
updateProviderConfig: (params: zod37.infer<zod37.ZodObject<{
|
|
2338
2338
|
id: zod37.ZodUUID;
|
|
@@ -2341,75 +2341,75 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2341
2341
|
config: zod37.ZodOptional<zod37.ZodRecord<zod37.ZodString, zod37.ZodUnknown>>;
|
|
2342
2342
|
enabled: zod37.ZodOptional<zod37.ZodBoolean>;
|
|
2343
2343
|
}, better_auth0.$strip>>) => Promise<{
|
|
2344
|
-
slug: string | null;
|
|
2345
2344
|
name: string | null;
|
|
2346
|
-
id: string;
|
|
2347
|
-
|
|
2348
|
-
updatedAt: Date;
|
|
2345
|
+
id: string;
|
|
2346
|
+
slug: string | null;
|
|
2349
2347
|
enabled: boolean;
|
|
2350
|
-
providerId: string;
|
|
2351
2348
|
config: Record<string, unknown>;
|
|
2349
|
+
providerId: string;
|
|
2350
|
+
createdAt: Date;
|
|
2351
|
+
updatedAt: Date;
|
|
2352
2352
|
} | undefined>;
|
|
2353
2353
|
getProviderConfigById: (params: zod37.infer<zod37.ZodObject<{
|
|
2354
2354
|
id: zod37.ZodUUID;
|
|
2355
2355
|
}, better_auth0.$strip>>) => Promise<{
|
|
2356
|
-
slug: string | null;
|
|
2357
2356
|
name: string | null;
|
|
2358
2357
|
id: string;
|
|
2359
|
-
|
|
2360
|
-
updatedAt: Date;
|
|
2358
|
+
slug: string | null;
|
|
2361
2359
|
enabled: boolean;
|
|
2362
|
-
providerId: string;
|
|
2363
2360
|
config: Record<string, unknown>;
|
|
2361
|
+
providerId: string;
|
|
2362
|
+
createdAt: Date;
|
|
2363
|
+
updatedAt: Date;
|
|
2364
2364
|
} | undefined>;
|
|
2365
2365
|
getProviderConfigByProviderId: (params: zod37.infer<zod37.ZodObject<{
|
|
2366
2366
|
providerId: zod37.ZodString;
|
|
2367
2367
|
}, better_auth0.$strip>>) => Promise<{
|
|
2368
|
-
slug: string | null;
|
|
2369
2368
|
name: string | null;
|
|
2370
2369
|
id: string;
|
|
2371
|
-
|
|
2372
|
-
updatedAt: Date;
|
|
2370
|
+
slug: string | null;
|
|
2373
2371
|
enabled: boolean;
|
|
2374
|
-
providerId: string;
|
|
2375
2372
|
config: Record<string, unknown>;
|
|
2373
|
+
providerId: string;
|
|
2374
|
+
createdAt: Date;
|
|
2375
|
+
updatedAt: Date;
|
|
2376
2376
|
} | undefined>;
|
|
2377
2377
|
getProviderConfigBySlug: (params: zod37.infer<zod37.ZodObject<{
|
|
2378
2378
|
slug: zod37.ZodString;
|
|
2379
2379
|
}, better_auth0.$strip>>) => Promise<{
|
|
2380
|
-
slug: string | null;
|
|
2381
2380
|
name: string | null;
|
|
2382
2381
|
id: string;
|
|
2383
|
-
|
|
2384
|
-
updatedAt: Date;
|
|
2382
|
+
slug: string | null;
|
|
2385
2383
|
enabled: boolean;
|
|
2386
|
-
providerId: string;
|
|
2387
2384
|
config: Record<string, unknown>;
|
|
2385
|
+
providerId: string;
|
|
2386
|
+
createdAt: Date;
|
|
2387
|
+
updatedAt: Date;
|
|
2388
2388
|
} | undefined>;
|
|
2389
2389
|
deleteProviderConfig: (params: zod37.infer<zod37.ZodObject<{
|
|
2390
2390
|
id: zod37.ZodUUID;
|
|
2391
2391
|
}, better_auth0.$strip>>) => Promise<{
|
|
2392
|
-
slug: string | null;
|
|
2393
2392
|
name: string | null;
|
|
2394
2393
|
id: string;
|
|
2395
|
-
|
|
2396
|
-
updatedAt: Date;
|
|
2394
|
+
slug: string | null;
|
|
2397
2395
|
enabled: boolean;
|
|
2398
|
-
providerId: string;
|
|
2399
2396
|
config: Record<string, unknown>;
|
|
2397
|
+
providerId: string;
|
|
2398
|
+
createdAt: Date;
|
|
2399
|
+
updatedAt: Date;
|
|
2400
2400
|
} | undefined>;
|
|
2401
2401
|
listProviderConfigs: (params?: zod37.infer<zod37.ZodObject<{
|
|
2402
2402
|
limit: zod37.ZodOptional<zod37.ZodNumber>;
|
|
2403
2403
|
offset: zod37.ZodOptional<zod37.ZodNumber>;
|
|
2404
2404
|
}, better_auth0.$strip>>) => Promise<{
|
|
2405
|
-
slug: string | null;
|
|
2406
2405
|
name: string | null;
|
|
2407
2406
|
id: string;
|
|
2408
|
-
|
|
2409
|
-
updatedAt: Date;
|
|
2407
|
+
slug: string | null;
|
|
2410
2408
|
enabled: boolean;
|
|
2411
|
-
providerId: string;
|
|
2412
2409
|
config: Record<string, unknown>;
|
|
2410
|
+
providerId: string;
|
|
2411
|
+
createdAt: Date;
|
|
2412
|
+
updatedAt: Date;
|
|
2413
2413
|
}[]>;
|
|
2414
2414
|
countProviderConfigs: () => Promise<number>;
|
|
2415
2415
|
upsertProviderConfig: (params: zod37.infer<zod37.ZodObject<{
|
|
@@ -2419,28 +2419,26 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2419
2419
|
config: zod37.ZodRecord<zod37.ZodString, zod37.ZodUnknown>;
|
|
2420
2420
|
enabled: zod37.ZodDefault<zod37.ZodOptional<zod37.ZodBoolean>>;
|
|
2421
2421
|
}, better_auth0.$strip>>) => Promise<{
|
|
2422
|
-
slug: string | null;
|
|
2423
2422
|
name: string | null;
|
|
2424
2423
|
id: string;
|
|
2425
|
-
|
|
2426
|
-
updatedAt: Date;
|
|
2424
|
+
slug: string | null;
|
|
2427
2425
|
enabled: boolean;
|
|
2428
|
-
providerId: string;
|
|
2429
2426
|
config: Record<string, unknown>;
|
|
2427
|
+
providerId: string;
|
|
2428
|
+
createdAt: Date;
|
|
2429
|
+
updatedAt: Date;
|
|
2430
2430
|
} | undefined>;
|
|
2431
2431
|
batchInsertRequests: (requests: LLMRequestInsert[]) => Promise<{
|
|
2432
2432
|
count: number;
|
|
2433
2433
|
}>;
|
|
2434
2434
|
insertRequest: (request: LLMRequestInsert) => Promise<{
|
|
2435
|
-
|
|
2436
|
-
createdAt: Date;
|
|
2437
|
-
updatedAt: Date;
|
|
2435
|
+
configId: string | null;
|
|
2438
2436
|
variantId: string | null;
|
|
2437
|
+
id: string;
|
|
2439
2438
|
provider: string;
|
|
2440
2439
|
environmentId: string | null;
|
|
2441
|
-
configId: string | null;
|
|
2442
|
-
providerConfigId: string | null;
|
|
2443
2440
|
requestId: string;
|
|
2441
|
+
providerConfigId: string | null;
|
|
2444
2442
|
model: string;
|
|
2445
2443
|
promptTokens: number;
|
|
2446
2444
|
completionTokens: number;
|
|
@@ -2455,6 +2453,8 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2455
2453
|
isStreaming: boolean;
|
|
2456
2454
|
userId: string | null;
|
|
2457
2455
|
tags: Record<string, string>;
|
|
2456
|
+
createdAt: Date;
|
|
2457
|
+
updatedAt: Date;
|
|
2458
2458
|
guardrailResults: {
|
|
2459
2459
|
results: {
|
|
2460
2460
|
configId: string;
|
|
@@ -2481,15 +2481,13 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2481
2481
|
tags: zod37.ZodOptional<zod37.ZodRecord<zod37.ZodString, zod37.ZodArray<zod37.ZodString>>>;
|
|
2482
2482
|
}, better_auth0.$strip>>) => Promise<{
|
|
2483
2483
|
data: {
|
|
2484
|
-
|
|
2485
|
-
createdAt: Date;
|
|
2486
|
-
updatedAt: Date;
|
|
2484
|
+
configId: string | null;
|
|
2487
2485
|
variantId: string | null;
|
|
2486
|
+
id: string;
|
|
2488
2487
|
provider: string;
|
|
2489
2488
|
environmentId: string | null;
|
|
2490
|
-
configId: string | null;
|
|
2491
|
-
providerConfigId: string | null;
|
|
2492
2489
|
requestId: string;
|
|
2490
|
+
providerConfigId: string | null;
|
|
2493
2491
|
model: string;
|
|
2494
2492
|
promptTokens: number;
|
|
2495
2493
|
completionTokens: number;
|
|
@@ -2504,6 +2502,8 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2504
2502
|
isStreaming: boolean;
|
|
2505
2503
|
userId: string | null;
|
|
2506
2504
|
tags: Record<string, string>;
|
|
2505
|
+
createdAt: Date;
|
|
2506
|
+
updatedAt: Date;
|
|
2507
2507
|
guardrailResults: {
|
|
2508
2508
|
results: {
|
|
2509
2509
|
configId: string;
|
|
@@ -2521,15 +2521,13 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2521
2521
|
offset: number;
|
|
2522
2522
|
}>;
|
|
2523
2523
|
getRequestByRequestId: (requestId: string) => Promise<{
|
|
2524
|
-
|
|
2525
|
-
createdAt: Date;
|
|
2526
|
-
updatedAt: Date;
|
|
2524
|
+
configId: string | null;
|
|
2527
2525
|
variantId: string | null;
|
|
2526
|
+
id: string;
|
|
2528
2527
|
provider: string;
|
|
2529
2528
|
environmentId: string | null;
|
|
2530
|
-
configId: string | null;
|
|
2531
|
-
providerConfigId: string | null;
|
|
2532
2529
|
requestId: string;
|
|
2530
|
+
providerConfigId: string | null;
|
|
2533
2531
|
model: string;
|
|
2534
2532
|
promptTokens: number;
|
|
2535
2533
|
completionTokens: number;
|
|
@@ -2544,6 +2542,8 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2544
2542
|
isStreaming: boolean;
|
|
2545
2543
|
userId: string | null;
|
|
2546
2544
|
tags: Record<string, string>;
|
|
2545
|
+
createdAt: Date;
|
|
2546
|
+
updatedAt: Date;
|
|
2547
2547
|
guardrailResults: {
|
|
2548
2548
|
results: {
|
|
2549
2549
|
configId: string;
|
|
@@ -2646,10 +2646,10 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2646
2646
|
tags: zod37.ZodOptional<zod37.ZodRecord<zod37.ZodString, zod37.ZodArray<zod37.ZodString>>>;
|
|
2647
2647
|
groupBy: zod37.ZodOptional<zod37.ZodEnum<{
|
|
2648
2648
|
provider: "provider";
|
|
2649
|
-
config: "config";
|
|
2650
2649
|
model: "model";
|
|
2651
2650
|
day: "day";
|
|
2652
2651
|
hour: "hour";
|
|
2652
|
+
config: "config";
|
|
2653
2653
|
}>>;
|
|
2654
2654
|
}, better_auth0.$strip>>) => Promise<{
|
|
2655
2655
|
totalCost: number;
|
|
@@ -2694,15 +2694,15 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2694
2694
|
}, better_auth0.$strip>>) => Promise<{
|
|
2695
2695
|
name: string;
|
|
2696
2696
|
id: string;
|
|
2697
|
-
createdAt: Date;
|
|
2698
|
-
updatedAt: Date;
|
|
2699
|
-
priority: number;
|
|
2700
|
-
enabled: boolean;
|
|
2701
2697
|
pluginId: string;
|
|
2702
2698
|
functionId: string;
|
|
2703
2699
|
hookType: string;
|
|
2704
2700
|
parameters: Record<string, unknown>;
|
|
2701
|
+
enabled: boolean;
|
|
2702
|
+
priority: number;
|
|
2705
2703
|
onFail: string;
|
|
2704
|
+
createdAt: Date;
|
|
2705
|
+
updatedAt: Date;
|
|
2706
2706
|
} | undefined>;
|
|
2707
2707
|
updateGuardrailConfig: (params: zod37.infer<zod37.ZodObject<{
|
|
2708
2708
|
id: zod37.ZodString;
|
|
@@ -2721,45 +2721,45 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2721
2721
|
}, better_auth0.$strip>>) => Promise<{
|
|
2722
2722
|
name: string;
|
|
2723
2723
|
id: string;
|
|
2724
|
-
createdAt: Date;
|
|
2725
|
-
updatedAt: Date;
|
|
2726
|
-
priority: number;
|
|
2727
|
-
enabled: boolean;
|
|
2728
2724
|
pluginId: string;
|
|
2729
2725
|
functionId: string;
|
|
2730
2726
|
hookType: string;
|
|
2731
2727
|
parameters: Record<string, unknown>;
|
|
2728
|
+
enabled: boolean;
|
|
2729
|
+
priority: number;
|
|
2732
2730
|
onFail: string;
|
|
2731
|
+
createdAt: Date;
|
|
2732
|
+
updatedAt: Date;
|
|
2733
2733
|
} | undefined>;
|
|
2734
2734
|
getGuardrailConfigById: (params: zod37.infer<zod37.ZodObject<{
|
|
2735
2735
|
id: zod37.ZodString;
|
|
2736
2736
|
}, better_auth0.$strip>>) => Promise<{
|
|
2737
2737
|
name: string;
|
|
2738
2738
|
id: string;
|
|
2739
|
-
createdAt: Date;
|
|
2740
|
-
updatedAt: Date;
|
|
2741
|
-
priority: number;
|
|
2742
|
-
enabled: boolean;
|
|
2743
2739
|
pluginId: string;
|
|
2744
2740
|
functionId: string;
|
|
2745
2741
|
hookType: string;
|
|
2746
2742
|
parameters: Record<string, unknown>;
|
|
2743
|
+
enabled: boolean;
|
|
2744
|
+
priority: number;
|
|
2747
2745
|
onFail: string;
|
|
2746
|
+
createdAt: Date;
|
|
2747
|
+
updatedAt: Date;
|
|
2748
2748
|
} | undefined>;
|
|
2749
2749
|
deleteGuardrailConfig: (params: zod37.infer<zod37.ZodObject<{
|
|
2750
2750
|
id: zod37.ZodString;
|
|
2751
2751
|
}, better_auth0.$strip>>) => Promise<{
|
|
2752
2752
|
name: string;
|
|
2753
2753
|
id: string;
|
|
2754
|
-
createdAt: Date;
|
|
2755
|
-
updatedAt: Date;
|
|
2756
|
-
priority: number;
|
|
2757
|
-
enabled: boolean;
|
|
2758
2754
|
pluginId: string;
|
|
2759
2755
|
functionId: string;
|
|
2760
2756
|
hookType: string;
|
|
2761
2757
|
parameters: Record<string, unknown>;
|
|
2758
|
+
enabled: boolean;
|
|
2759
|
+
priority: number;
|
|
2762
2760
|
onFail: string;
|
|
2761
|
+
createdAt: Date;
|
|
2762
|
+
updatedAt: Date;
|
|
2763
2763
|
} | undefined>;
|
|
2764
2764
|
listGuardrailConfigs: (params?: zod37.infer<zod37.ZodObject<{
|
|
2765
2765
|
limit: zod37.ZodOptional<zod37.ZodNumber>;
|
|
@@ -2772,29 +2772,29 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2772
2772
|
}, better_auth0.$strip>>) => Promise<{
|
|
2773
2773
|
name: string;
|
|
2774
2774
|
id: string;
|
|
2775
|
-
createdAt: Date;
|
|
2776
|
-
updatedAt: Date;
|
|
2777
|
-
priority: number;
|
|
2778
|
-
enabled: boolean;
|
|
2779
2775
|
pluginId: string;
|
|
2780
2776
|
functionId: string;
|
|
2781
2777
|
hookType: string;
|
|
2782
2778
|
parameters: Record<string, unknown>;
|
|
2779
|
+
enabled: boolean;
|
|
2780
|
+
priority: number;
|
|
2783
2781
|
onFail: string;
|
|
2782
|
+
createdAt: Date;
|
|
2783
|
+
updatedAt: Date;
|
|
2784
2784
|
}[]>;
|
|
2785
2785
|
countGuardrailConfigs: () => Promise<number>;
|
|
2786
2786
|
getEnabledGuardrailsByHookType: (hookType: "beforeRequestHook" | "afterRequestHook") => Promise<{
|
|
2787
2787
|
name: string;
|
|
2788
2788
|
id: string;
|
|
2789
|
-
createdAt: Date;
|
|
2790
|
-
updatedAt: Date;
|
|
2791
|
-
priority: number;
|
|
2792
|
-
enabled: boolean;
|
|
2793
2789
|
pluginId: string;
|
|
2794
2790
|
functionId: string;
|
|
2795
2791
|
hookType: string;
|
|
2796
2792
|
parameters: Record<string, unknown>;
|
|
2793
|
+
enabled: boolean;
|
|
2794
|
+
priority: number;
|
|
2797
2795
|
onFail: string;
|
|
2796
|
+
createdAt: Date;
|
|
2797
|
+
updatedAt: Date;
|
|
2798
2798
|
}[]>;
|
|
2799
2799
|
createEnvironmentSecret: (params: zod37.infer<zod37.ZodObject<{
|
|
2800
2800
|
environmentId: zod37.ZodUUID;
|
|
@@ -2802,11 +2802,11 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2802
2802
|
keyValue: zod37.ZodString;
|
|
2803
2803
|
}, better_auth0.$strip>>) => Promise<{
|
|
2804
2804
|
id: string;
|
|
2805
|
-
createdAt: Date;
|
|
2806
|
-
updatedAt: Date;
|
|
2807
2805
|
environmentId: string;
|
|
2808
2806
|
keyName: string;
|
|
2809
2807
|
keyValue: string;
|
|
2808
|
+
createdAt: Date;
|
|
2809
|
+
updatedAt: Date;
|
|
2810
2810
|
} | undefined>;
|
|
2811
2811
|
updateEnvironmentSecret: (params: zod37.infer<zod37.ZodObject<{
|
|
2812
2812
|
secretId: zod37.ZodUUID;
|
|
@@ -2814,62 +2814,62 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2814
2814
|
keyValue: zod37.ZodOptional<zod37.ZodString>;
|
|
2815
2815
|
}, better_auth0.$strip>>) => Promise<{
|
|
2816
2816
|
id: string;
|
|
2817
|
-
createdAt: Date;
|
|
2818
|
-
updatedAt: Date;
|
|
2819
2817
|
environmentId: string;
|
|
2820
2818
|
keyName: string;
|
|
2821
2819
|
keyValue: string;
|
|
2820
|
+
createdAt: Date;
|
|
2821
|
+
updatedAt: Date;
|
|
2822
2822
|
} | undefined>;
|
|
2823
2823
|
getEnvironmentSecretById: (params: zod37.infer<zod37.ZodObject<{
|
|
2824
2824
|
secretId: zod37.ZodUUID;
|
|
2825
2825
|
}, better_auth0.$strip>>) => Promise<{
|
|
2826
2826
|
id: string;
|
|
2827
|
-
createdAt: Date;
|
|
2828
|
-
updatedAt: Date;
|
|
2829
2827
|
environmentId: string;
|
|
2830
2828
|
keyName: string;
|
|
2831
2829
|
keyValue: string;
|
|
2830
|
+
createdAt: Date;
|
|
2831
|
+
updatedAt: Date;
|
|
2832
2832
|
} | undefined>;
|
|
2833
2833
|
getSecretsByEnvironmentId: (params: zod37.infer<zod37.ZodObject<{
|
|
2834
2834
|
environmentId: zod37.ZodUUID;
|
|
2835
2835
|
}, better_auth0.$strip>>) => Promise<{
|
|
2836
2836
|
id: string;
|
|
2837
|
-
createdAt: Date;
|
|
2838
|
-
updatedAt: Date;
|
|
2839
2837
|
environmentId: string;
|
|
2840
2838
|
keyName: string;
|
|
2841
2839
|
keyValue: string;
|
|
2840
|
+
createdAt: Date;
|
|
2841
|
+
updatedAt: Date;
|
|
2842
2842
|
}[]>;
|
|
2843
2843
|
deleteEnvironmentSecret: (params: zod37.infer<zod37.ZodObject<{
|
|
2844
2844
|
secretId: zod37.ZodUUID;
|
|
2845
2845
|
}, better_auth0.$strip>>) => Promise<{
|
|
2846
2846
|
id: string;
|
|
2847
|
-
createdAt: Date;
|
|
2848
|
-
updatedAt: Date;
|
|
2849
2847
|
environmentId: string;
|
|
2850
2848
|
keyName: string;
|
|
2851
2849
|
keyValue: string;
|
|
2850
|
+
createdAt: Date;
|
|
2851
|
+
updatedAt: Date;
|
|
2852
2852
|
} | undefined>;
|
|
2853
2853
|
deleteSecretsByEnvironmentId: (params: zod37.infer<zod37.ZodObject<{
|
|
2854
2854
|
environmentId: zod37.ZodUUID;
|
|
2855
2855
|
}, better_auth0.$strip>>) => Promise<{
|
|
2856
2856
|
id: string;
|
|
2857
|
-
createdAt: Date;
|
|
2858
|
-
updatedAt: Date;
|
|
2859
2857
|
environmentId: string;
|
|
2860
2858
|
keyName: string;
|
|
2861
2859
|
keyValue: string;
|
|
2860
|
+
createdAt: Date;
|
|
2861
|
+
updatedAt: Date;
|
|
2862
2862
|
}[]>;
|
|
2863
2863
|
listEnvironmentSecrets: (params?: zod37.infer<zod37.ZodObject<{
|
|
2864
2864
|
limit: zod37.ZodOptional<zod37.ZodNumber>;
|
|
2865
2865
|
offset: zod37.ZodOptional<zod37.ZodNumber>;
|
|
2866
2866
|
}, better_auth0.$strip>>) => Promise<{
|
|
2867
2867
|
id: string;
|
|
2868
|
-
createdAt: Date;
|
|
2869
|
-
updatedAt: Date;
|
|
2870
2868
|
environmentId: string;
|
|
2871
2869
|
keyName: string;
|
|
2872
2870
|
keyValue: string;
|
|
2871
|
+
createdAt: Date;
|
|
2872
|
+
updatedAt: Date;
|
|
2873
2873
|
}[]>;
|
|
2874
2874
|
countEnvironmentSecrets: () => Promise<number>;
|
|
2875
2875
|
createNewEnvironment: (params: zod37.infer<zod37.ZodObject<{
|
|
@@ -2877,156 +2877,156 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2877
2877
|
slug: zod37.ZodString;
|
|
2878
2878
|
isProd: zod37.ZodDefault<zod37.ZodOptional<zod37.ZodBoolean>>;
|
|
2879
2879
|
}, better_auth0.$strip>>) => Promise<{
|
|
2880
|
-
slug: string;
|
|
2881
2880
|
name: string;
|
|
2882
2881
|
id: string;
|
|
2882
|
+
slug: string;
|
|
2883
|
+
isProd: boolean;
|
|
2883
2884
|
createdAt: Date;
|
|
2884
2885
|
updatedAt: Date;
|
|
2885
|
-
isProd: boolean;
|
|
2886
2886
|
} | undefined>;
|
|
2887
2887
|
updateEnvironment: (params: zod37.infer<zod37.ZodObject<{
|
|
2888
2888
|
environmentId: zod37.ZodUUID;
|
|
2889
2889
|
name: zod37.ZodOptional<zod37.ZodString>;
|
|
2890
2890
|
slug: zod37.ZodOptional<zod37.ZodString>;
|
|
2891
2891
|
}, better_auth0.$strip>>) => Promise<{
|
|
2892
|
-
slug: string;
|
|
2893
2892
|
name: string;
|
|
2894
2893
|
id: string;
|
|
2894
|
+
slug: string;
|
|
2895
|
+
isProd: boolean;
|
|
2895
2896
|
createdAt: Date;
|
|
2896
2897
|
updatedAt: Date;
|
|
2897
|
-
isProd: boolean;
|
|
2898
2898
|
} | undefined>;
|
|
2899
2899
|
getEnvironmentById: (params: zod37.infer<zod37.ZodObject<{
|
|
2900
2900
|
environmentId: zod37.ZodUUID;
|
|
2901
2901
|
}, better_auth0.$strip>>) => Promise<{
|
|
2902
|
-
slug: string;
|
|
2903
2902
|
name: string;
|
|
2904
2903
|
id: string;
|
|
2904
|
+
slug: string;
|
|
2905
|
+
isProd: boolean;
|
|
2905
2906
|
createdAt: Date;
|
|
2906
2907
|
updatedAt: Date;
|
|
2907
|
-
isProd: boolean;
|
|
2908
2908
|
} | undefined>;
|
|
2909
2909
|
getEnvironmentBySlug: (params: zod37.infer<zod37.ZodObject<{
|
|
2910
2910
|
slug: zod37.ZodString;
|
|
2911
2911
|
}, better_auth0.$strip>>) => Promise<{
|
|
2912
|
-
slug: string;
|
|
2913
2912
|
name: string;
|
|
2914
2913
|
id: string;
|
|
2914
|
+
slug: string;
|
|
2915
|
+
isProd: boolean;
|
|
2915
2916
|
createdAt: Date;
|
|
2916
2917
|
updatedAt: Date;
|
|
2917
|
-
isProd: boolean;
|
|
2918
2918
|
} | undefined>;
|
|
2919
2919
|
deleteEnvironment: (params: zod37.infer<zod37.ZodObject<{
|
|
2920
2920
|
environmentId: zod37.ZodUUID;
|
|
2921
2921
|
}, better_auth0.$strip>>) => Promise<{
|
|
2922
|
-
slug: string;
|
|
2923
2922
|
name: string;
|
|
2924
2923
|
id: string;
|
|
2924
|
+
slug: string;
|
|
2925
|
+
isProd: boolean;
|
|
2925
2926
|
createdAt: Date;
|
|
2926
2927
|
updatedAt: Date;
|
|
2927
|
-
isProd: boolean;
|
|
2928
2928
|
} | undefined>;
|
|
2929
2929
|
listEnvironments: (params?: zod37.infer<zod37.ZodObject<{
|
|
2930
2930
|
limit: zod37.ZodOptional<zod37.ZodNumber>;
|
|
2931
2931
|
offset: zod37.ZodOptional<zod37.ZodNumber>;
|
|
2932
2932
|
}, better_auth0.$strip>>) => Promise<{
|
|
2933
|
-
slug: string;
|
|
2934
2933
|
name: string;
|
|
2935
2934
|
id: string;
|
|
2935
|
+
slug: string;
|
|
2936
|
+
isProd: boolean;
|
|
2936
2937
|
createdAt: Date;
|
|
2937
2938
|
updatedAt: Date;
|
|
2938
|
-
isProd: boolean;
|
|
2939
2939
|
}[]>;
|
|
2940
2940
|
countEnvironments: () => Promise<number>;
|
|
2941
2941
|
createConfigVariant: (params: zod37.infer<zod37.ZodObject<{
|
|
2942
2942
|
configId: zod37.ZodString;
|
|
2943
2943
|
variantId: zod37.ZodString;
|
|
2944
2944
|
}, better_auth0.$strip>>) => Promise<{
|
|
2945
|
+
configId: string;
|
|
2946
|
+
variantId: string;
|
|
2945
2947
|
id: string;
|
|
2946
2948
|
createdAt: Date;
|
|
2947
2949
|
updatedAt: Date;
|
|
2948
|
-
variantId: string;
|
|
2949
|
-
configId: string;
|
|
2950
2950
|
} | undefined>;
|
|
2951
2951
|
getConfigVariantById: (params: zod37.infer<zod37.ZodObject<{
|
|
2952
2952
|
id: zod37.ZodString;
|
|
2953
2953
|
}, better_auth0.$strip>>) => Promise<{
|
|
2954
|
+
configId: string;
|
|
2955
|
+
variantId: string;
|
|
2954
2956
|
id: string;
|
|
2955
2957
|
createdAt: Date;
|
|
2956
2958
|
updatedAt: Date;
|
|
2957
|
-
variantId: string;
|
|
2958
|
-
configId: string;
|
|
2959
2959
|
} | undefined>;
|
|
2960
2960
|
getConfigVariantsByConfigId: (params: zod37.infer<zod37.ZodObject<{
|
|
2961
2961
|
configId: zod37.ZodString;
|
|
2962
2962
|
limit: zod37.ZodOptional<zod37.ZodNumber>;
|
|
2963
2963
|
offset: zod37.ZodOptional<zod37.ZodNumber>;
|
|
2964
2964
|
}, better_auth0.$strip>>) => Promise<{
|
|
2965
|
+
configId: string;
|
|
2966
|
+
variantId: string;
|
|
2965
2967
|
id: string;
|
|
2966
2968
|
createdAt: Date;
|
|
2967
2969
|
updatedAt: Date;
|
|
2968
|
-
variantId: string;
|
|
2969
|
-
configId: string;
|
|
2970
2970
|
}[]>;
|
|
2971
2971
|
getConfigVariantsByVariantId: (params: zod37.infer<zod37.ZodObject<{
|
|
2972
2972
|
variantId: zod37.ZodString;
|
|
2973
2973
|
limit: zod37.ZodOptional<zod37.ZodNumber>;
|
|
2974
2974
|
offset: zod37.ZodOptional<zod37.ZodNumber>;
|
|
2975
2975
|
}, better_auth0.$strip>>) => Promise<{
|
|
2976
|
+
configId: string;
|
|
2977
|
+
variantId: string;
|
|
2976
2978
|
id: string;
|
|
2977
2979
|
createdAt: Date;
|
|
2978
2980
|
updatedAt: Date;
|
|
2979
|
-
variantId: string;
|
|
2980
|
-
configId: string;
|
|
2981
2981
|
}[]>;
|
|
2982
2982
|
deleteConfigVariant: (params: zod37.infer<zod37.ZodObject<{
|
|
2983
2983
|
id: zod37.ZodString;
|
|
2984
2984
|
}, better_auth0.$strip>>) => Promise<{
|
|
2985
|
+
configId: string;
|
|
2986
|
+
variantId: string;
|
|
2985
2987
|
id: string;
|
|
2986
2988
|
createdAt: Date;
|
|
2987
2989
|
updatedAt: Date;
|
|
2988
|
-
variantId: string;
|
|
2989
|
-
configId: string;
|
|
2990
2990
|
} | undefined>;
|
|
2991
2991
|
deleteConfigVariantByIds: (params: zod37.infer<zod37.ZodObject<{
|
|
2992
2992
|
configId: zod37.ZodString;
|
|
2993
2993
|
variantId: zod37.ZodString;
|
|
2994
2994
|
}, better_auth0.$strip>>) => Promise<{
|
|
2995
|
+
configId: string;
|
|
2996
|
+
variantId: string;
|
|
2995
2997
|
id: string;
|
|
2996
2998
|
createdAt: Date;
|
|
2997
2999
|
updatedAt: Date;
|
|
2998
|
-
variantId: string;
|
|
2999
|
-
configId: string;
|
|
3000
3000
|
} | undefined>;
|
|
3001
3001
|
listConfigVariants: (params?: zod37.infer<zod37.ZodObject<{
|
|
3002
3002
|
limit: zod37.ZodOptional<zod37.ZodNumber>;
|
|
3003
3003
|
offset: zod37.ZodOptional<zod37.ZodNumber>;
|
|
3004
3004
|
}, better_auth0.$strip>>) => Promise<{
|
|
3005
|
+
configId: string;
|
|
3006
|
+
variantId: string;
|
|
3005
3007
|
id: string;
|
|
3006
3008
|
createdAt: Date;
|
|
3007
3009
|
updatedAt: Date;
|
|
3008
|
-
variantId: string;
|
|
3009
|
-
configId: string;
|
|
3010
3010
|
}[]>;
|
|
3011
3011
|
getConfigVariantWithDetails: (params: zod37.infer<zod37.ZodObject<{
|
|
3012
3012
|
id: zod37.ZodString;
|
|
3013
3013
|
}, better_auth0.$strip>>) => Promise<{
|
|
3014
3014
|
latestVersion: {
|
|
3015
3015
|
version: number;
|
|
3016
|
-
id: string;
|
|
3017
|
-
createdAt: Date;
|
|
3018
|
-
updatedAt: Date;
|
|
3019
3016
|
variantId: string;
|
|
3017
|
+
id: string;
|
|
3020
3018
|
provider: string;
|
|
3021
3019
|
modelName: string;
|
|
3022
3020
|
jsonData: Record<string, unknown>;
|
|
3021
|
+
createdAt: Date;
|
|
3022
|
+
updatedAt: Date;
|
|
3023
3023
|
} | null;
|
|
3024
3024
|
variantName: string | null;
|
|
3025
3025
|
id: string;
|
|
3026
|
+
configId: string;
|
|
3027
|
+
variantId: string;
|
|
3026
3028
|
createdAt: Date;
|
|
3027
3029
|
updatedAt: Date;
|
|
3028
|
-
variantId: string;
|
|
3029
|
-
configId: string;
|
|
3030
3030
|
configName: string | null | undefined;
|
|
3031
3031
|
} | undefined>;
|
|
3032
3032
|
getConfigVariantsWithDetailsByConfigId: (params: zod37.infer<zod37.ZodObject<{
|
|
@@ -3039,20 +3039,20 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
3039
3039
|
jsonData: Record<string, unknown> | null;
|
|
3040
3040
|
latestVersion: {
|
|
3041
3041
|
version: number;
|
|
3042
|
-
id: string;
|
|
3043
|
-
createdAt: Date;
|
|
3044
|
-
updatedAt: Date;
|
|
3045
3042
|
variantId: string;
|
|
3043
|
+
id: string;
|
|
3046
3044
|
provider: string;
|
|
3047
3045
|
modelName: string;
|
|
3048
3046
|
jsonData: Record<string, unknown>;
|
|
3047
|
+
createdAt: Date;
|
|
3048
|
+
updatedAt: Date;
|
|
3049
3049
|
} | null;
|
|
3050
3050
|
name: string | null;
|
|
3051
3051
|
id: string;
|
|
3052
|
+
configId: string;
|
|
3053
|
+
variantId: string;
|
|
3052
3054
|
createdAt: Date;
|
|
3053
3055
|
updatedAt: Date;
|
|
3054
|
-
variantId: string;
|
|
3055
|
-
configId: string;
|
|
3056
3056
|
}[]>;
|
|
3057
3057
|
createVariantAndLinkToConfig: (params: zod37.infer<zod37.ZodObject<{
|
|
3058
3058
|
configId: zod37.ZodString;
|
|
@@ -3069,20 +3069,20 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
3069
3069
|
};
|
|
3070
3070
|
version: {
|
|
3071
3071
|
version: number;
|
|
3072
|
-
id: string;
|
|
3073
|
-
createdAt: Date;
|
|
3074
|
-
updatedAt: Date;
|
|
3075
3072
|
variantId: string;
|
|
3073
|
+
id: string;
|
|
3076
3074
|
provider: string;
|
|
3077
3075
|
modelName: string;
|
|
3078
3076
|
jsonData: Record<string, unknown>;
|
|
3077
|
+
createdAt: Date;
|
|
3078
|
+
updatedAt: Date;
|
|
3079
3079
|
};
|
|
3080
3080
|
configVariant: {
|
|
3081
|
+
configId: string;
|
|
3082
|
+
variantId: string;
|
|
3081
3083
|
id: string;
|
|
3082
3084
|
createdAt: Date;
|
|
3083
3085
|
updatedAt: Date;
|
|
3084
|
-
variantId: string;
|
|
3085
|
-
configId: string;
|
|
3086
3086
|
};
|
|
3087
3087
|
}>;
|
|
3088
3088
|
getVariantJsonDataForConfig: (params: zod37.infer<zod37.ZodObject<{
|
|
@@ -3101,9 +3101,9 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
3101
3101
|
createNewConfig: (params: zod37.infer<zod37.ZodObject<{
|
|
3102
3102
|
name: zod37.ZodString;
|
|
3103
3103
|
}, better_auth0.$strip>>) => Promise<{
|
|
3104
|
-
slug: string;
|
|
3105
3104
|
name: string | undefined;
|
|
3106
3105
|
id: string;
|
|
3106
|
+
slug: string;
|
|
3107
3107
|
createdAt: Date;
|
|
3108
3108
|
updatedAt: Date;
|
|
3109
3109
|
} | undefined>;
|
|
@@ -3111,27 +3111,27 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
3111
3111
|
configId: zod37.ZodUUID;
|
|
3112
3112
|
newName: zod37.ZodString;
|
|
3113
3113
|
}, better_auth0.$strip>>) => Promise<{
|
|
3114
|
-
slug: string;
|
|
3115
3114
|
name: string | undefined;
|
|
3116
3115
|
id: string;
|
|
3116
|
+
slug: string;
|
|
3117
3117
|
createdAt: Date;
|
|
3118
3118
|
updatedAt: Date;
|
|
3119
3119
|
} | undefined>;
|
|
3120
3120
|
getConfigById: (params: zod37.infer<zod37.ZodObject<{
|
|
3121
3121
|
configId: zod37.ZodUUID;
|
|
3122
3122
|
}, better_auth0.$strip>>) => Promise<{
|
|
3123
|
-
slug: string;
|
|
3124
3123
|
name: string | undefined;
|
|
3125
3124
|
id: string;
|
|
3125
|
+
slug: string;
|
|
3126
3126
|
createdAt: Date;
|
|
3127
3127
|
updatedAt: Date;
|
|
3128
3128
|
} | undefined>;
|
|
3129
3129
|
deleteConfig: (params: zod37.infer<zod37.ZodObject<{
|
|
3130
3130
|
configId: zod37.ZodUUID;
|
|
3131
3131
|
}, better_auth0.$strip>>) => Promise<{
|
|
3132
|
-
slug: string;
|
|
3133
3132
|
name: string | undefined;
|
|
3134
3133
|
id: string;
|
|
3134
|
+
slug: string;
|
|
3135
3135
|
createdAt: Date;
|
|
3136
3136
|
updatedAt: Date;
|
|
3137
3137
|
} | undefined>;
|
|
@@ -3139,9 +3139,9 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
3139
3139
|
limit: zod37.ZodOptional<zod37.ZodNumber>;
|
|
3140
3140
|
offset: zod37.ZodOptional<zod37.ZodNumber>;
|
|
3141
3141
|
}, better_auth0.$strip>>) => Promise<{
|
|
3142
|
-
slug: string;
|
|
3143
3142
|
name: string | undefined;
|
|
3144
3143
|
id: string;
|
|
3144
|
+
slug: string;
|
|
3145
3145
|
createdAt: Date;
|
|
3146
3146
|
updatedAt: Date;
|
|
3147
3147
|
}[]>;
|
|
@@ -3153,8 +3153,8 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
3153
3153
|
jsonData: Record<string, unknown> | null;
|
|
3154
3154
|
variantName: string | null;
|
|
3155
3155
|
id: string;
|
|
3156
|
-
slug: string;
|
|
3157
3156
|
name: string | undefined;
|
|
3157
|
+
slug: string;
|
|
3158
3158
|
createdAt: Date;
|
|
3159
3159
|
updatedAt: Date;
|
|
3160
3160
|
variantId: string | null;
|