@llmops/core 0.3.2-beta.3 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { $ as environmentsSchema, A as GuardrailResults, B as TableName, C as Environment, D as GuardrailConfig, E as EnvironmentsTable, F as ProviderConfigsTable, G as VariantVersion, H as TargetingRulesTable, I as ProviderGuardrailOverride, J as WorkspaceSettings, K as VariantVersionsTable, L as ProviderGuardrailOverridesTable, M as LLMRequest, N as LLMRequestsTable, O as GuardrailConfigsTable, P as ProviderConfig, Q as environmentSecretsSchema, R as SCHEMA_METADATA, S as Database, T as EnvironmentSecretsTable, U as Updateable, V as TargetingRule, W as Variant, X as configVariantsSchema, Y as WorkspaceSettingsTable, Z as configsSchema, _ as validateTableData, a as createDatabaseFromConnection, at as targetingRulesSchema, b as ConfigVariantsTable, c as executeWithSchema, ct as workspaceSettingsSchema, d as getMigrations, et as guardrailConfigsSchema, f as matchType, g as validatePartialTableData, h as parseTableData, i as createDatabase, it as schemas, j as Insertable, k as GuardrailResult, l as MigrationOptions, m as parsePartialTableData, n as DatabaseOptions, nt as providerConfigsSchema, o as detectDatabaseType, ot as variantVersionsSchema, p as runAutoMigrations, q as VariantsTable, r as DatabaseType, rt as providerGuardrailOverridesSchema, s as createNeonDialect, st as variantsSchema, t as DatabaseConnection, tt as llmRequestsSchema, u as MigrationResult, v as Config, w as EnvironmentSecret, x as ConfigsTable, y as ConfigVariant, z as Selectable } from "./index-
|
|
1
|
+
import { $ as environmentsSchema, A as GuardrailResults, B as TableName, C as Environment, D as GuardrailConfig, E as EnvironmentsTable, F as ProviderConfigsTable, G as VariantVersion, H as TargetingRulesTable, I as ProviderGuardrailOverride, J as WorkspaceSettings, K as VariantVersionsTable, L as ProviderGuardrailOverridesTable, M as LLMRequest, N as LLMRequestsTable, O as GuardrailConfigsTable, P as ProviderConfig, Q as environmentSecretsSchema, R as SCHEMA_METADATA, S as Database, T as EnvironmentSecretsTable, U as Updateable, V as TargetingRule, W as Variant, X as configVariantsSchema, Y as WorkspaceSettingsTable, Z as configsSchema, _ as validateTableData, a as createDatabaseFromConnection, at as targetingRulesSchema, b as ConfigVariantsTable, c as executeWithSchema, ct as workspaceSettingsSchema, d as getMigrations, et as guardrailConfigsSchema, f as matchType, g as validatePartialTableData, h as parseTableData, i as createDatabase, it as schemas, j as Insertable, k as GuardrailResult, l as MigrationOptions, m as parsePartialTableData, n as DatabaseOptions, nt as providerConfigsSchema, o as detectDatabaseType, ot as variantVersionsSchema, p as runAutoMigrations, q as VariantsTable, r as DatabaseType, rt as providerGuardrailOverridesSchema, s as createNeonDialect, st as variantsSchema, t as DatabaseConnection, tt as llmRequestsSchema, u as MigrationResult, v as Config, w as EnvironmentSecret, x as ConfigsTable, y as ConfigVariant, z as Selectable } from "./index-BMN3ZSTf.mjs";
|
|
2
2
|
import gateway from "@llmops/gateway";
|
|
3
3
|
import * as kysely0 from "kysely";
|
|
4
4
|
import { Kysely } from "kysely";
|
|
5
5
|
import pino from "pino";
|
|
6
6
|
import { RulesLogic } from "json-logic-js";
|
|
7
|
-
import * as
|
|
7
|
+
import * as zod37 from "zod";
|
|
8
8
|
import z$1, { z } from "zod";
|
|
9
9
|
import * as better_auth0 from "better-auth";
|
|
10
10
|
import { BetterAuthOptions } from "better-auth";
|
|
@@ -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";
|
|
1135
1136
|
model: "model";
|
|
1136
1137
|
day: "day";
|
|
1137
1138
|
hour: "hour";
|
|
1138
|
-
config: "config";
|
|
1139
1139
|
}>>;
|
|
1140
1140
|
}, z$1.core.$strip>;
|
|
1141
1141
|
declare const createLLMRequestsDataLayer: (db: Kysely<Database>) => {
|
|
@@ -1150,13 +1150,15 @@ declare const createLLMRequestsDataLayer: (db: Kysely<Database>) => {
|
|
|
1150
1150
|
* Insert a single LLM request log
|
|
1151
1151
|
*/
|
|
1152
1152
|
insertRequest: (request: LLMRequestInsert) => Promise<{
|
|
1153
|
-
configId: string | null;
|
|
1154
|
-
variantId: string | null;
|
|
1155
1153
|
id: string;
|
|
1154
|
+
createdAt: Date;
|
|
1155
|
+
updatedAt: Date;
|
|
1156
|
+
variantId: string | null;
|
|
1156
1157
|
provider: string;
|
|
1157
1158
|
environmentId: string | null;
|
|
1158
|
-
|
|
1159
|
+
configId: string | null;
|
|
1159
1160
|
providerConfigId: string | null;
|
|
1161
|
+
requestId: string;
|
|
1160
1162
|
model: string;
|
|
1161
1163
|
promptTokens: number;
|
|
1162
1164
|
completionTokens: number;
|
|
@@ -1171,8 +1173,6 @@ declare const createLLMRequestsDataLayer: (db: Kysely<Database>) => {
|
|
|
1171
1173
|
isStreaming: boolean;
|
|
1172
1174
|
userId: string | null;
|
|
1173
1175
|
tags: Record<string, string>;
|
|
1174
|
-
createdAt: Date;
|
|
1175
|
-
updatedAt: Date;
|
|
1176
1176
|
guardrailResults: {
|
|
1177
1177
|
results: {
|
|
1178
1178
|
configId: string;
|
|
@@ -1191,13 +1191,15 @@ declare const createLLMRequestsDataLayer: (db: Kysely<Database>) => {
|
|
|
1191
1191
|
*/
|
|
1192
1192
|
listRequests: (params?: z$1.infer<typeof listRequestsSchema>) => Promise<{
|
|
1193
1193
|
data: {
|
|
1194
|
-
configId: string | null;
|
|
1195
|
-
variantId: string | null;
|
|
1196
1194
|
id: string;
|
|
1195
|
+
createdAt: Date;
|
|
1196
|
+
updatedAt: Date;
|
|
1197
|
+
variantId: string | null;
|
|
1197
1198
|
provider: string;
|
|
1198
1199
|
environmentId: string | null;
|
|
1199
|
-
|
|
1200
|
+
configId: string | null;
|
|
1200
1201
|
providerConfigId: string | null;
|
|
1202
|
+
requestId: string;
|
|
1201
1203
|
model: string;
|
|
1202
1204
|
promptTokens: number;
|
|
1203
1205
|
completionTokens: number;
|
|
@@ -1212,8 +1214,6 @@ declare const createLLMRequestsDataLayer: (db: Kysely<Database>) => {
|
|
|
1212
1214
|
isStreaming: boolean;
|
|
1213
1215
|
userId: string | null;
|
|
1214
1216
|
tags: Record<string, string>;
|
|
1215
|
-
createdAt: Date;
|
|
1216
|
-
updatedAt: Date;
|
|
1217
1217
|
guardrailResults: {
|
|
1218
1218
|
results: {
|
|
1219
1219
|
configId: string;
|
|
@@ -1234,13 +1234,15 @@ declare const createLLMRequestsDataLayer: (db: Kysely<Database>) => {
|
|
|
1234
1234
|
* Get a single request by requestId
|
|
1235
1235
|
*/
|
|
1236
1236
|
getRequestByRequestId: (requestId: string) => Promise<{
|
|
1237
|
-
configId: string | null;
|
|
1238
|
-
variantId: string | null;
|
|
1239
1237
|
id: string;
|
|
1238
|
+
createdAt: Date;
|
|
1239
|
+
updatedAt: Date;
|
|
1240
|
+
variantId: string | null;
|
|
1240
1241
|
provider: string;
|
|
1241
1242
|
environmentId: string | null;
|
|
1242
|
-
|
|
1243
|
+
configId: string | null;
|
|
1243
1244
|
providerConfigId: string | null;
|
|
1245
|
+
requestId: string;
|
|
1244
1246
|
model: string;
|
|
1245
1247
|
promptTokens: number;
|
|
1246
1248
|
completionTokens: number;
|
|
@@ -1255,8 +1257,6 @@ declare const createLLMRequestsDataLayer: (db: Kysely<Database>) => {
|
|
|
1255
1257
|
isStreaming: boolean;
|
|
1256
1258
|
userId: string | null;
|
|
1257
1259
|
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
|
-
setupComplete: boolean;
|
|
1377
|
-
superAdminId: string | null;
|
|
1378
1376
|
createdAt: Date;
|
|
1379
1377
|
updatedAt: Date;
|
|
1378
|
+
setupComplete: boolean;
|
|
1379
|
+
superAdminId: string | null;
|
|
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
|
-
setupComplete: boolean;
|
|
1388
|
-
superAdminId: string | null;
|
|
1389
1387
|
createdAt: Date;
|
|
1390
1388
|
updatedAt: Date;
|
|
1389
|
+
setupComplete: boolean;
|
|
1390
|
+
superAdminId: string | null;
|
|
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
|
-
setupComplete: boolean;
|
|
1411
|
-
superAdminId: string | null;
|
|
1412
1410
|
createdAt: Date;
|
|
1413
1411
|
updatedAt: Date;
|
|
1412
|
+
setupComplete: boolean;
|
|
1413
|
+
superAdminId: string | null;
|
|
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;
|
|
1450
1451
|
name: string | null;
|
|
1451
1452
|
id: string;
|
|
1452
|
-
slug: string | null;
|
|
1453
|
-
enabled: boolean;
|
|
1454
|
-
config: Record<string, unknown>;
|
|
1455
|
-
providerId: string;
|
|
1456
1453
|
createdAt: Date;
|
|
1457
1454
|
updatedAt: Date;
|
|
1455
|
+
enabled: boolean;
|
|
1456
|
+
providerId: string;
|
|
1457
|
+
config: Record<string, unknown>;
|
|
1458
1458
|
} | undefined>;
|
|
1459
1459
|
updateProviderConfig: (params: z$1.infer<typeof updateProviderConfig>) => Promise<{
|
|
1460
|
+
slug: string | null;
|
|
1460
1461
|
name: string | null;
|
|
1461
1462
|
id: string;
|
|
1462
|
-
slug: string | null;
|
|
1463
|
-
enabled: boolean;
|
|
1464
|
-
config: Record<string, unknown>;
|
|
1465
|
-
providerId: string;
|
|
1466
1463
|
createdAt: Date;
|
|
1467
1464
|
updatedAt: Date;
|
|
1465
|
+
enabled: boolean;
|
|
1466
|
+
providerId: string;
|
|
1467
|
+
config: Record<string, unknown>;
|
|
1468
1468
|
} | undefined>;
|
|
1469
1469
|
getProviderConfigById: (params: z$1.infer<typeof getProviderConfigById>) => Promise<{
|
|
1470
|
+
slug: string | null;
|
|
1470
1471
|
name: string | null;
|
|
1471
1472
|
id: string;
|
|
1472
|
-
slug: string | null;
|
|
1473
|
-
enabled: boolean;
|
|
1474
|
-
config: Record<string, unknown>;
|
|
1475
|
-
providerId: string;
|
|
1476
1473
|
createdAt: Date;
|
|
1477
1474
|
updatedAt: Date;
|
|
1475
|
+
enabled: boolean;
|
|
1476
|
+
providerId: string;
|
|
1477
|
+
config: Record<string, unknown>;
|
|
1478
1478
|
} | undefined>;
|
|
1479
1479
|
getProviderConfigByProviderId: (params: z$1.infer<typeof getProviderConfigByProviderId>) => Promise<{
|
|
1480
|
+
slug: string | null;
|
|
1480
1481
|
name: string | null;
|
|
1481
1482
|
id: string;
|
|
1482
|
-
slug: string | null;
|
|
1483
|
-
enabled: boolean;
|
|
1484
|
-
config: Record<string, unknown>;
|
|
1485
|
-
providerId: string;
|
|
1486
1483
|
createdAt: Date;
|
|
1487
1484
|
updatedAt: Date;
|
|
1485
|
+
enabled: boolean;
|
|
1486
|
+
providerId: string;
|
|
1487
|
+
config: Record<string, unknown>;
|
|
1488
1488
|
} | undefined>;
|
|
1489
1489
|
getProviderConfigBySlug: (params: z$1.infer<typeof getProviderConfigBySlug>) => Promise<{
|
|
1490
|
+
slug: string | null;
|
|
1490
1491
|
name: string | null;
|
|
1491
1492
|
id: string;
|
|
1492
|
-
slug: string | null;
|
|
1493
|
-
enabled: boolean;
|
|
1494
|
-
config: Record<string, unknown>;
|
|
1495
|
-
providerId: string;
|
|
1496
1493
|
createdAt: Date;
|
|
1497
1494
|
updatedAt: Date;
|
|
1495
|
+
enabled: boolean;
|
|
1496
|
+
providerId: string;
|
|
1497
|
+
config: Record<string, unknown>;
|
|
1498
1498
|
} | undefined>;
|
|
1499
1499
|
deleteProviderConfig: (params: z$1.infer<typeof deleteProviderConfig>) => Promise<{
|
|
1500
|
+
slug: string | null;
|
|
1500
1501
|
name: string | null;
|
|
1501
1502
|
id: string;
|
|
1502
|
-
slug: string | null;
|
|
1503
|
-
enabled: boolean;
|
|
1504
|
-
config: Record<string, unknown>;
|
|
1505
|
-
providerId: string;
|
|
1506
1503
|
createdAt: Date;
|
|
1507
1504
|
updatedAt: Date;
|
|
1505
|
+
enabled: boolean;
|
|
1506
|
+
providerId: string;
|
|
1507
|
+
config: Record<string, unknown>;
|
|
1508
1508
|
} | undefined>;
|
|
1509
1509
|
listProviderConfigs: (params?: z$1.infer<typeof listProviderConfigs>) => Promise<{
|
|
1510
|
+
slug: string | null;
|
|
1510
1511
|
name: string | null;
|
|
1511
1512
|
id: string;
|
|
1512
|
-
slug: string | null;
|
|
1513
|
-
enabled: boolean;
|
|
1514
|
-
config: Record<string, unknown>;
|
|
1515
|
-
providerId: string;
|
|
1516
1513
|
createdAt: Date;
|
|
1517
1514
|
updatedAt: Date;
|
|
1515
|
+
enabled: boolean;
|
|
1516
|
+
providerId: string;
|
|
1517
|
+
config: Record<string, unknown>;
|
|
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;
|
|
1525
1526
|
name: string | null;
|
|
1526
1527
|
id: string;
|
|
1527
|
-
slug: string | null;
|
|
1528
|
-
enabled: boolean;
|
|
1529
|
-
config: Record<string, unknown>;
|
|
1530
|
-
providerId: string;
|
|
1531
1528
|
createdAt: Date;
|
|
1532
1529
|
updatedAt: Date;
|
|
1530
|
+
enabled: boolean;
|
|
1531
|
+
providerId: string;
|
|
1532
|
+
config: Record<string, unknown>;
|
|
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;
|
|
1587
1591
|
pluginId: string;
|
|
1588
1592
|
functionId: string;
|
|
1589
1593
|
hookType: string;
|
|
1590
1594
|
parameters: Record<string, unknown>;
|
|
1591
|
-
enabled: boolean;
|
|
1592
|
-
priority: number;
|
|
1593
1595
|
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;
|
|
1600
1604
|
pluginId: string;
|
|
1601
1605
|
functionId: string;
|
|
1602
1606
|
hookType: string;
|
|
1603
1607
|
parameters: Record<string, unknown>;
|
|
1604
|
-
enabled: boolean;
|
|
1605
|
-
priority: number;
|
|
1606
1608
|
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;
|
|
1613
1617
|
pluginId: string;
|
|
1614
1618
|
functionId: string;
|
|
1615
1619
|
hookType: string;
|
|
1616
1620
|
parameters: Record<string, unknown>;
|
|
1617
|
-
enabled: boolean;
|
|
1618
|
-
priority: number;
|
|
1619
1621
|
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;
|
|
1626
1630
|
pluginId: string;
|
|
1627
1631
|
functionId: string;
|
|
1628
1632
|
hookType: string;
|
|
1629
1633
|
parameters: Record<string, unknown>;
|
|
1630
|
-
enabled: boolean;
|
|
1631
|
-
priority: number;
|
|
1632
1634
|
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;
|
|
1639
1643
|
pluginId: string;
|
|
1640
1644
|
functionId: string;
|
|
1641
1645
|
hookType: string;
|
|
1642
1646
|
parameters: Record<string, unknown>;
|
|
1643
|
-
enabled: boolean;
|
|
1644
|
-
priority: number;
|
|
1645
1647
|
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;
|
|
1657
1661
|
pluginId: string;
|
|
1658
1662
|
functionId: string;
|
|
1659
1663
|
hookType: string;
|
|
1660
1664
|
parameters: Record<string, unknown>;
|
|
1661
|
-
enabled: boolean;
|
|
1662
|
-
priority: number;
|
|
1663
1665
|
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
|
-
|
|
1700
|
+
createdAt: Date;
|
|
1701
|
+
updatedAt: Date;
|
|
1701
1702
|
enabled: boolean;
|
|
1703
|
+
parameters: Record<string, unknown> | null;
|
|
1702
1704
|
providerConfigId: string;
|
|
1703
1705
|
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
|
-
|
|
1709
|
+
createdAt: Date;
|
|
1710
|
+
updatedAt: Date;
|
|
1710
1711
|
enabled: boolean;
|
|
1712
|
+
parameters: Record<string, unknown> | null;
|
|
1711
1713
|
providerConfigId: string;
|
|
1712
1714
|
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
|
-
|
|
1718
|
+
createdAt: Date;
|
|
1719
|
+
updatedAt: Date;
|
|
1719
1720
|
enabled: boolean;
|
|
1721
|
+
parameters: Record<string, unknown> | null;
|
|
1720
1722
|
providerConfigId: string;
|
|
1721
1723
|
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
|
-
|
|
1727
|
+
createdAt: Date;
|
|
1728
|
+
updatedAt: Date;
|
|
1728
1729
|
enabled: boolean;
|
|
1730
|
+
parameters: Record<string, unknown> | null;
|
|
1729
1731
|
providerConfigId: string;
|
|
1730
1732
|
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
|
-
|
|
1736
|
+
createdAt: Date;
|
|
1737
|
+
updatedAt: Date;
|
|
1737
1738
|
enabled: boolean;
|
|
1739
|
+
parameters: Record<string, unknown> | null;
|
|
1738
1740
|
providerConfigId: string;
|
|
1739
1741
|
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
|
-
|
|
1745
|
+
createdAt: Date;
|
|
1746
|
+
updatedAt: Date;
|
|
1746
1747
|
enabled: boolean;
|
|
1748
|
+
parameters: Record<string, unknown> | null;
|
|
1747
1749
|
providerConfigId: string;
|
|
1748
1750
|
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
|
-
|
|
1754
|
+
createdAt: Date;
|
|
1755
|
+
updatedAt: Date;
|
|
1755
1756
|
enabled: boolean;
|
|
1757
|
+
parameters: Record<string, unknown> | null;
|
|
1756
1758
|
providerConfigId: string;
|
|
1757
1759
|
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
|
-
|
|
1766
|
+
createdAt: Date;
|
|
1767
|
+
updatedAt: Date;
|
|
1767
1768
|
enabled: boolean;
|
|
1769
|
+
parameters: Record<string, unknown> | null;
|
|
1768
1770
|
providerConfigId: string;
|
|
1769
1771
|
guardrailConfigId: string;
|
|
1770
|
-
createdAt: Date;
|
|
1771
|
-
updatedAt: Date;
|
|
1772
1772
|
} | undefined>;
|
|
1773
1773
|
/**
|
|
1774
1774
|
* Delete all overrides for a guardrail config
|
|
@@ -1782,22 +1782,22 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
1782
1782
|
getWorkspaceSettings: () => Promise<{
|
|
1783
1783
|
name: string | null;
|
|
1784
1784
|
id: string;
|
|
1785
|
-
setupComplete: boolean;
|
|
1786
|
-
superAdminId: string | null;
|
|
1787
1785
|
createdAt: Date;
|
|
1788
1786
|
updatedAt: Date;
|
|
1787
|
+
setupComplete: boolean;
|
|
1788
|
+
superAdminId: string | null;
|
|
1789
1789
|
} | undefined>;
|
|
1790
|
-
updateWorkspaceSettings: (params:
|
|
1791
|
-
name:
|
|
1792
|
-
setupComplete:
|
|
1793
|
-
superAdminId:
|
|
1790
|
+
updateWorkspaceSettings: (params: zod37.infer<zod37.ZodObject<{
|
|
1791
|
+
name: zod37.ZodOptional<zod37.ZodNullable<zod37.ZodString>>;
|
|
1792
|
+
setupComplete: zod37.ZodOptional<zod37.ZodBoolean>;
|
|
1793
|
+
superAdminId: zod37.ZodOptional<zod37.ZodNullable<zod37.ZodString>>;
|
|
1794
1794
|
}, better_auth0.$strip>>) => Promise<{
|
|
1795
1795
|
name: string | null;
|
|
1796
1796
|
id: string;
|
|
1797
|
-
setupComplete: boolean;
|
|
1798
|
-
superAdminId: string | null;
|
|
1799
1797
|
createdAt: Date;
|
|
1800
1798
|
updatedAt: Date;
|
|
1799
|
+
setupComplete: boolean;
|
|
1800
|
+
superAdminId: string | null;
|
|
1801
1801
|
} | undefined>;
|
|
1802
1802
|
getSuperAdminId: () => Promise<string | null>;
|
|
1803
1803
|
setSuperAdminId: (userId: string) => Promise<boolean>;
|
|
@@ -1805,640 +1805,642 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
1805
1805
|
markSetupComplete: () => Promise<{
|
|
1806
1806
|
name: string | null;
|
|
1807
1807
|
id: string;
|
|
1808
|
-
setupComplete: boolean;
|
|
1809
|
-
superAdminId: string | null;
|
|
1810
1808
|
createdAt: Date;
|
|
1811
1809
|
updatedAt: Date;
|
|
1810
|
+
setupComplete: boolean;
|
|
1811
|
+
superAdminId: string | null;
|
|
1812
1812
|
} | undefined>;
|
|
1813
|
-
createVariantVersion: (params:
|
|
1814
|
-
variantId:
|
|
1815
|
-
provider:
|
|
1816
|
-
modelName:
|
|
1817
|
-
jsonData:
|
|
1813
|
+
createVariantVersion: (params: zod37.infer<zod37.ZodObject<{
|
|
1814
|
+
variantId: zod37.ZodString;
|
|
1815
|
+
provider: zod37.ZodString;
|
|
1816
|
+
modelName: zod37.ZodString;
|
|
1817
|
+
jsonData: zod37.ZodDefault<zod37.ZodOptional<zod37.ZodRecord<zod37.ZodString, zod37.ZodUnknown>>>;
|
|
1818
1818
|
}, better_auth0.$strip>>) => Promise<{
|
|
1819
1819
|
version: number;
|
|
1820
|
-
variantId: string;
|
|
1821
1820
|
id: string;
|
|
1821
|
+
createdAt: Date;
|
|
1822
|
+
updatedAt: Date;
|
|
1823
|
+
variantId: string;
|
|
1822
1824
|
provider: string;
|
|
1823
1825
|
modelName: string;
|
|
1824
1826
|
jsonData: Record<string, unknown>;
|
|
1825
|
-
createdAt: Date;
|
|
1826
|
-
updatedAt: Date;
|
|
1827
1827
|
} | undefined>;
|
|
1828
|
-
getVariantVersionById: (params:
|
|
1829
|
-
id:
|
|
1828
|
+
getVariantVersionById: (params: zod37.infer<zod37.ZodObject<{
|
|
1829
|
+
id: zod37.ZodString;
|
|
1830
1830
|
}, better_auth0.$strip>>) => Promise<{
|
|
1831
1831
|
version: number;
|
|
1832
|
-
variantId: string;
|
|
1833
1832
|
id: string;
|
|
1833
|
+
createdAt: Date;
|
|
1834
|
+
updatedAt: Date;
|
|
1835
|
+
variantId: string;
|
|
1834
1836
|
provider: string;
|
|
1835
1837
|
modelName: string;
|
|
1836
1838
|
jsonData: Record<string, unknown>;
|
|
1837
|
-
createdAt: Date;
|
|
1838
|
-
updatedAt: Date;
|
|
1839
1839
|
} | undefined>;
|
|
1840
|
-
getVariantVersionsByVariantId: (params:
|
|
1841
|
-
variantId:
|
|
1842
|
-
limit:
|
|
1843
|
-
offset:
|
|
1840
|
+
getVariantVersionsByVariantId: (params: zod37.infer<zod37.ZodObject<{
|
|
1841
|
+
variantId: zod37.ZodString;
|
|
1842
|
+
limit: zod37.ZodOptional<zod37.ZodNumber>;
|
|
1843
|
+
offset: zod37.ZodOptional<zod37.ZodNumber>;
|
|
1844
1844
|
}, better_auth0.$strip>>) => Promise<{
|
|
1845
1845
|
version: number;
|
|
1846
|
-
variantId: string;
|
|
1847
1846
|
id: string;
|
|
1847
|
+
createdAt: Date;
|
|
1848
|
+
updatedAt: Date;
|
|
1849
|
+
variantId: string;
|
|
1848
1850
|
provider: string;
|
|
1849
1851
|
modelName: string;
|
|
1850
1852
|
jsonData: Record<string, unknown>;
|
|
1851
|
-
createdAt: Date;
|
|
1852
|
-
updatedAt: Date;
|
|
1853
1853
|
}[]>;
|
|
1854
|
-
getLatestVariantVersion: (params:
|
|
1855
|
-
variantId:
|
|
1854
|
+
getLatestVariantVersion: (params: zod37.infer<zod37.ZodObject<{
|
|
1855
|
+
variantId: zod37.ZodString;
|
|
1856
1856
|
}, better_auth0.$strip>>) => Promise<{
|
|
1857
1857
|
version: number;
|
|
1858
|
-
variantId: string;
|
|
1859
1858
|
id: string;
|
|
1859
|
+
createdAt: Date;
|
|
1860
|
+
updatedAt: Date;
|
|
1861
|
+
variantId: string;
|
|
1860
1862
|
provider: string;
|
|
1861
1863
|
modelName: string;
|
|
1862
1864
|
jsonData: Record<string, unknown>;
|
|
1863
|
-
createdAt: Date;
|
|
1864
|
-
updatedAt: Date;
|
|
1865
1865
|
} | undefined>;
|
|
1866
|
-
getVariantVersionByNumber: (params:
|
|
1867
|
-
variantId:
|
|
1868
|
-
version:
|
|
1866
|
+
getVariantVersionByNumber: (params: zod37.infer<zod37.ZodObject<{
|
|
1867
|
+
variantId: zod37.ZodString;
|
|
1868
|
+
version: zod37.ZodNumber;
|
|
1869
1869
|
}, better_auth0.$strip>>) => Promise<{
|
|
1870
1870
|
version: number;
|
|
1871
|
-
variantId: string;
|
|
1872
1871
|
id: string;
|
|
1872
|
+
createdAt: Date;
|
|
1873
|
+
updatedAt: Date;
|
|
1874
|
+
variantId: string;
|
|
1873
1875
|
provider: string;
|
|
1874
1876
|
modelName: string;
|
|
1875
1877
|
jsonData: Record<string, unknown>;
|
|
1876
|
-
createdAt: Date;
|
|
1877
|
-
updatedAt: Date;
|
|
1878
1878
|
} | undefined>;
|
|
1879
|
-
deleteVariantVersion: (params:
|
|
1880
|
-
id:
|
|
1879
|
+
deleteVariantVersion: (params: zod37.infer<zod37.ZodObject<{
|
|
1880
|
+
id: zod37.ZodString;
|
|
1881
1881
|
}, better_auth0.$strip>>) => Promise<{
|
|
1882
1882
|
version: number;
|
|
1883
|
-
variantId: string;
|
|
1884
1883
|
id: string;
|
|
1884
|
+
createdAt: Date;
|
|
1885
|
+
updatedAt: Date;
|
|
1886
|
+
variantId: string;
|
|
1885
1887
|
provider: string;
|
|
1886
1888
|
modelName: string;
|
|
1887
1889
|
jsonData: Record<string, unknown>;
|
|
1888
|
-
createdAt: Date;
|
|
1889
|
-
updatedAt: Date;
|
|
1890
1890
|
} | undefined>;
|
|
1891
|
-
deleteVariantVersionsByVariantId: (params:
|
|
1892
|
-
variantId:
|
|
1891
|
+
deleteVariantVersionsByVariantId: (params: zod37.infer<zod37.ZodObject<{
|
|
1892
|
+
variantId: zod37.ZodString;
|
|
1893
1893
|
}, better_auth0.$strip>>) => Promise<{
|
|
1894
1894
|
version: number;
|
|
1895
|
-
variantId: string;
|
|
1896
1895
|
id: string;
|
|
1896
|
+
createdAt: Date;
|
|
1897
|
+
updatedAt: Date;
|
|
1898
|
+
variantId: string;
|
|
1897
1899
|
provider: string;
|
|
1898
1900
|
modelName: string;
|
|
1899
1901
|
jsonData: Record<string, unknown>;
|
|
1900
|
-
createdAt: Date;
|
|
1901
|
-
updatedAt: Date;
|
|
1902
1902
|
}[]>;
|
|
1903
|
-
getVariantVersionWithVariant: (params:
|
|
1904
|
-
id:
|
|
1903
|
+
getVariantVersionWithVariant: (params: zod37.infer<zod37.ZodObject<{
|
|
1904
|
+
id: zod37.ZodString;
|
|
1905
1905
|
}, better_auth0.$strip>>) => Promise<{
|
|
1906
1906
|
version: number;
|
|
1907
|
-
variantId: string;
|
|
1908
1907
|
id: string;
|
|
1908
|
+
createdAt: Date;
|
|
1909
|
+
updatedAt: Date;
|
|
1910
|
+
variantId: string;
|
|
1909
1911
|
provider: string;
|
|
1910
1912
|
modelName: string;
|
|
1911
1913
|
jsonData: Record<string, unknown>;
|
|
1912
|
-
createdAt: Date;
|
|
1913
|
-
updatedAt: Date;
|
|
1914
1914
|
variantName: string;
|
|
1915
1915
|
} | undefined>;
|
|
1916
|
-
getVariantVersionsWithVariantByVariantId: (params:
|
|
1917
|
-
variantId:
|
|
1918
|
-
limit:
|
|
1919
|
-
offset:
|
|
1916
|
+
getVariantVersionsWithVariantByVariantId: (params: zod37.infer<zod37.ZodObject<{
|
|
1917
|
+
variantId: zod37.ZodString;
|
|
1918
|
+
limit: zod37.ZodOptional<zod37.ZodNumber>;
|
|
1919
|
+
offset: zod37.ZodOptional<zod37.ZodNumber>;
|
|
1920
1920
|
}, better_auth0.$strip>>) => Promise<{
|
|
1921
1921
|
version: number;
|
|
1922
|
-
variantId: string;
|
|
1923
1922
|
id: string;
|
|
1923
|
+
createdAt: Date;
|
|
1924
|
+
updatedAt: Date;
|
|
1925
|
+
variantId: string;
|
|
1924
1926
|
provider: string;
|
|
1925
1927
|
modelName: string;
|
|
1926
1928
|
jsonData: Record<string, unknown>;
|
|
1927
|
-
createdAt: Date;
|
|
1928
|
-
updatedAt: Date;
|
|
1929
1929
|
variantName: string;
|
|
1930
1930
|
}[]>;
|
|
1931
|
-
createVariant: (params:
|
|
1932
|
-
name:
|
|
1931
|
+
createVariant: (params: zod37.infer<zod37.ZodObject<{
|
|
1932
|
+
name: zod37.ZodString;
|
|
1933
1933
|
}, better_auth0.$strip>>) => Promise<{
|
|
1934
1934
|
name: string;
|
|
1935
1935
|
id: string;
|
|
1936
1936
|
createdAt: Date;
|
|
1937
1937
|
updatedAt: Date;
|
|
1938
1938
|
} | undefined>;
|
|
1939
|
-
updateVariant: (params:
|
|
1940
|
-
variantId:
|
|
1941
|
-
name:
|
|
1939
|
+
updateVariant: (params: zod37.infer<zod37.ZodObject<{
|
|
1940
|
+
variantId: zod37.ZodString;
|
|
1941
|
+
name: zod37.ZodOptional<zod37.ZodString>;
|
|
1942
1942
|
}, better_auth0.$strip>>) => Promise<{
|
|
1943
1943
|
name: string;
|
|
1944
1944
|
id: string;
|
|
1945
1945
|
createdAt: Date;
|
|
1946
1946
|
updatedAt: Date;
|
|
1947
1947
|
} | undefined>;
|
|
1948
|
-
getVariantById: (params:
|
|
1949
|
-
variantId:
|
|
1948
|
+
getVariantById: (params: zod37.infer<zod37.ZodObject<{
|
|
1949
|
+
variantId: zod37.ZodString;
|
|
1950
1950
|
}, better_auth0.$strip>>) => Promise<{
|
|
1951
1951
|
name: string;
|
|
1952
1952
|
id: string;
|
|
1953
1953
|
createdAt: Date;
|
|
1954
1954
|
updatedAt: Date;
|
|
1955
1955
|
} | undefined>;
|
|
1956
|
-
getVariantWithLatestVersion: (params:
|
|
1957
|
-
variantId:
|
|
1956
|
+
getVariantWithLatestVersion: (params: zod37.infer<zod37.ZodObject<{
|
|
1957
|
+
variantId: zod37.ZodString;
|
|
1958
1958
|
}, better_auth0.$strip>>) => Promise<{
|
|
1959
1959
|
latestVersion: {
|
|
1960
1960
|
version: number;
|
|
1961
|
-
variantId: string;
|
|
1962
1961
|
id: string;
|
|
1962
|
+
createdAt: Date;
|
|
1963
|
+
updatedAt: Date;
|
|
1964
|
+
variantId: string;
|
|
1963
1965
|
provider: string;
|
|
1964
1966
|
modelName: string;
|
|
1965
1967
|
jsonData: Record<string, unknown>;
|
|
1966
|
-
createdAt: Date;
|
|
1967
|
-
updatedAt: Date;
|
|
1968
1968
|
} | null;
|
|
1969
1969
|
name: string;
|
|
1970
1970
|
id: string;
|
|
1971
1971
|
createdAt: Date;
|
|
1972
1972
|
updatedAt: Date;
|
|
1973
1973
|
} | undefined>;
|
|
1974
|
-
deleteVariant: (params:
|
|
1975
|
-
variantId:
|
|
1974
|
+
deleteVariant: (params: zod37.infer<zod37.ZodObject<{
|
|
1975
|
+
variantId: zod37.ZodString;
|
|
1976
1976
|
}, better_auth0.$strip>>) => Promise<{
|
|
1977
1977
|
name: string;
|
|
1978
1978
|
id: string;
|
|
1979
1979
|
createdAt: Date;
|
|
1980
1980
|
updatedAt: Date;
|
|
1981
1981
|
} | undefined>;
|
|
1982
|
-
listVariants: (params?:
|
|
1983
|
-
limit:
|
|
1984
|
-
offset:
|
|
1982
|
+
listVariants: (params?: zod37.infer<zod37.ZodObject<{
|
|
1983
|
+
limit: zod37.ZodOptional<zod37.ZodNumber>;
|
|
1984
|
+
offset: zod37.ZodOptional<zod37.ZodNumber>;
|
|
1985
1985
|
}, better_auth0.$strip>>) => Promise<{
|
|
1986
1986
|
name: string;
|
|
1987
1987
|
id: string;
|
|
1988
1988
|
createdAt: Date;
|
|
1989
1989
|
updatedAt: Date;
|
|
1990
1990
|
}[]>;
|
|
1991
|
-
listVariantsWithLatestVersion: (params?:
|
|
1992
|
-
limit:
|
|
1993
|
-
offset:
|
|
1991
|
+
listVariantsWithLatestVersion: (params?: zod37.infer<zod37.ZodObject<{
|
|
1992
|
+
limit: zod37.ZodOptional<zod37.ZodNumber>;
|
|
1993
|
+
offset: zod37.ZodOptional<zod37.ZodNumber>;
|
|
1994
1994
|
}, better_auth0.$strip>>) => Promise<{
|
|
1995
1995
|
latestVersion: {
|
|
1996
1996
|
version: number;
|
|
1997
|
-
variantId: string;
|
|
1998
1997
|
id: string;
|
|
1998
|
+
createdAt: Date;
|
|
1999
|
+
updatedAt: Date;
|
|
2000
|
+
variantId: string;
|
|
1999
2001
|
provider: string;
|
|
2000
2002
|
modelName: string;
|
|
2001
2003
|
jsonData: Record<string, unknown>;
|
|
2002
|
-
createdAt: Date;
|
|
2003
|
-
updatedAt: Date;
|
|
2004
2004
|
} | null;
|
|
2005
2005
|
name: string;
|
|
2006
2006
|
id: string;
|
|
2007
2007
|
createdAt: Date;
|
|
2008
2008
|
updatedAt: Date;
|
|
2009
2009
|
}[]>;
|
|
2010
|
-
createTargetingRule: (params:
|
|
2011
|
-
environmentId:
|
|
2012
|
-
configId:
|
|
2013
|
-
configVariantId:
|
|
2014
|
-
variantVersionId:
|
|
2015
|
-
weight:
|
|
2016
|
-
priority:
|
|
2017
|
-
enabled:
|
|
2018
|
-
conditions:
|
|
2010
|
+
createTargetingRule: (params: zod37.infer<zod37.ZodObject<{
|
|
2011
|
+
environmentId: zod37.ZodString;
|
|
2012
|
+
configId: zod37.ZodString;
|
|
2013
|
+
configVariantId: zod37.ZodString;
|
|
2014
|
+
variantVersionId: zod37.ZodOptional<zod37.ZodNullable<zod37.ZodString>>;
|
|
2015
|
+
weight: zod37.ZodDefault<zod37.ZodOptional<zod37.ZodNumber>>;
|
|
2016
|
+
priority: zod37.ZodDefault<zod37.ZodOptional<zod37.ZodNumber>>;
|
|
2017
|
+
enabled: zod37.ZodDefault<zod37.ZodOptional<zod37.ZodBoolean>>;
|
|
2018
|
+
conditions: zod37.ZodOptional<zod37.ZodNullable<zod37.ZodRecord<zod37.ZodString, zod37.ZodUnknown>>>;
|
|
2019
2019
|
}, better_auth0.$strip>>) => Promise<{
|
|
2020
|
-
configId: string;
|
|
2021
2020
|
id: string;
|
|
2021
|
+
createdAt: Date;
|
|
2022
|
+
updatedAt: Date;
|
|
2022
2023
|
environmentId: string;
|
|
2023
|
-
|
|
2024
|
-
priority: number;
|
|
2024
|
+
configId: string;
|
|
2025
2025
|
configVariantId: string;
|
|
2026
2026
|
variantVersionId: string | null;
|
|
2027
2027
|
weight: number;
|
|
2028
|
+
priority: number;
|
|
2029
|
+
enabled: boolean;
|
|
2028
2030
|
conditions: Record<string, unknown>;
|
|
2029
|
-
createdAt: Date;
|
|
2030
|
-
updatedAt: Date;
|
|
2031
2031
|
} | undefined>;
|
|
2032
|
-
updateTargetingRule: (params:
|
|
2033
|
-
id:
|
|
2034
|
-
variantVersionId:
|
|
2035
|
-
weight:
|
|
2036
|
-
priority:
|
|
2037
|
-
enabled:
|
|
2038
|
-
conditions:
|
|
2032
|
+
updateTargetingRule: (params: zod37.infer<zod37.ZodObject<{
|
|
2033
|
+
id: zod37.ZodString;
|
|
2034
|
+
variantVersionId: zod37.ZodOptional<zod37.ZodNullable<zod37.ZodString>>;
|
|
2035
|
+
weight: zod37.ZodOptional<zod37.ZodNumber>;
|
|
2036
|
+
priority: zod37.ZodOptional<zod37.ZodNumber>;
|
|
2037
|
+
enabled: zod37.ZodOptional<zod37.ZodBoolean>;
|
|
2038
|
+
conditions: zod37.ZodOptional<zod37.ZodNullable<zod37.ZodRecord<zod37.ZodString, zod37.ZodUnknown>>>;
|
|
2039
2039
|
}, better_auth0.$strip>>) => Promise<{
|
|
2040
|
-
configId: string;
|
|
2041
2040
|
id: string;
|
|
2041
|
+
createdAt: Date;
|
|
2042
|
+
updatedAt: Date;
|
|
2042
2043
|
environmentId: string;
|
|
2043
|
-
|
|
2044
|
-
priority: number;
|
|
2044
|
+
configId: string;
|
|
2045
2045
|
configVariantId: string;
|
|
2046
2046
|
variantVersionId: string | null;
|
|
2047
2047
|
weight: number;
|
|
2048
|
+
priority: number;
|
|
2049
|
+
enabled: boolean;
|
|
2048
2050
|
conditions: Record<string, unknown>;
|
|
2049
|
-
createdAt: Date;
|
|
2050
|
-
updatedAt: Date;
|
|
2051
2051
|
} | undefined>;
|
|
2052
|
-
getTargetingRuleById: (params:
|
|
2053
|
-
id:
|
|
2052
|
+
getTargetingRuleById: (params: zod37.infer<zod37.ZodObject<{
|
|
2053
|
+
id: zod37.ZodString;
|
|
2054
2054
|
}, better_auth0.$strip>>) => Promise<{
|
|
2055
|
-
configId: string;
|
|
2056
2055
|
id: string;
|
|
2056
|
+
createdAt: Date;
|
|
2057
|
+
updatedAt: Date;
|
|
2057
2058
|
environmentId: string;
|
|
2058
|
-
|
|
2059
|
-
priority: number;
|
|
2059
|
+
configId: string;
|
|
2060
2060
|
configVariantId: string;
|
|
2061
2061
|
variantVersionId: string | null;
|
|
2062
2062
|
weight: number;
|
|
2063
|
+
priority: number;
|
|
2064
|
+
enabled: boolean;
|
|
2063
2065
|
conditions: Record<string, unknown>;
|
|
2064
|
-
createdAt: Date;
|
|
2065
|
-
updatedAt: Date;
|
|
2066
2066
|
} | undefined>;
|
|
2067
|
-
getTargetingRulesByConfigId: (params:
|
|
2068
|
-
configId:
|
|
2069
|
-
limit:
|
|
2070
|
-
offset:
|
|
2067
|
+
getTargetingRulesByConfigId: (params: zod37.infer<zod37.ZodObject<{
|
|
2068
|
+
configId: zod37.ZodString;
|
|
2069
|
+
limit: zod37.ZodOptional<zod37.ZodNumber>;
|
|
2070
|
+
offset: zod37.ZodOptional<zod37.ZodNumber>;
|
|
2071
2071
|
}, better_auth0.$strip>>) => Promise<{
|
|
2072
|
-
configId: string;
|
|
2073
2072
|
id: string;
|
|
2073
|
+
createdAt: Date;
|
|
2074
|
+
updatedAt: Date;
|
|
2074
2075
|
environmentId: string;
|
|
2075
|
-
|
|
2076
|
-
priority: number;
|
|
2076
|
+
configId: string;
|
|
2077
2077
|
configVariantId: string;
|
|
2078
2078
|
variantVersionId: string | null;
|
|
2079
2079
|
weight: number;
|
|
2080
|
+
priority: number;
|
|
2081
|
+
enabled: boolean;
|
|
2080
2082
|
conditions: Record<string, unknown>;
|
|
2081
|
-
createdAt: Date;
|
|
2082
|
-
updatedAt: Date;
|
|
2083
2083
|
}[]>;
|
|
2084
|
-
getTargetingRulesByEnvironmentId: (params:
|
|
2085
|
-
environmentId:
|
|
2086
|
-
limit:
|
|
2087
|
-
offset:
|
|
2084
|
+
getTargetingRulesByEnvironmentId: (params: zod37.infer<zod37.ZodObject<{
|
|
2085
|
+
environmentId: zod37.ZodString;
|
|
2086
|
+
limit: zod37.ZodOptional<zod37.ZodNumber>;
|
|
2087
|
+
offset: zod37.ZodOptional<zod37.ZodNumber>;
|
|
2088
2088
|
}, better_auth0.$strip>>) => Promise<{
|
|
2089
|
-
configId: string;
|
|
2090
2089
|
id: string;
|
|
2090
|
+
createdAt: Date;
|
|
2091
|
+
updatedAt: Date;
|
|
2091
2092
|
environmentId: string;
|
|
2092
|
-
|
|
2093
|
-
priority: number;
|
|
2093
|
+
configId: string;
|
|
2094
2094
|
configVariantId: string;
|
|
2095
2095
|
variantVersionId: string | null;
|
|
2096
2096
|
weight: number;
|
|
2097
|
+
priority: number;
|
|
2098
|
+
enabled: boolean;
|
|
2097
2099
|
conditions: Record<string, unknown>;
|
|
2098
|
-
createdAt: Date;
|
|
2099
|
-
updatedAt: Date;
|
|
2100
2100
|
}[]>;
|
|
2101
|
-
getTargetingRulesByConfigAndEnvironment: (params:
|
|
2102
|
-
configId:
|
|
2103
|
-
environmentId:
|
|
2101
|
+
getTargetingRulesByConfigAndEnvironment: (params: zod37.infer<zod37.ZodObject<{
|
|
2102
|
+
configId: zod37.ZodString;
|
|
2103
|
+
environmentId: zod37.ZodString;
|
|
2104
2104
|
}, better_auth0.$strip>>) => Promise<{
|
|
2105
|
-
configId: string;
|
|
2106
2105
|
id: string;
|
|
2106
|
+
createdAt: Date;
|
|
2107
|
+
updatedAt: Date;
|
|
2107
2108
|
environmentId: string;
|
|
2108
|
-
|
|
2109
|
-
priority: number;
|
|
2109
|
+
configId: string;
|
|
2110
2110
|
configVariantId: string;
|
|
2111
2111
|
variantVersionId: string | null;
|
|
2112
2112
|
weight: number;
|
|
2113
|
+
priority: number;
|
|
2114
|
+
enabled: boolean;
|
|
2113
2115
|
conditions: Record<string, unknown>;
|
|
2114
|
-
createdAt: Date;
|
|
2115
|
-
updatedAt: Date;
|
|
2116
2116
|
}[]>;
|
|
2117
|
-
deleteTargetingRule: (params:
|
|
2118
|
-
id:
|
|
2117
|
+
deleteTargetingRule: (params: zod37.infer<zod37.ZodObject<{
|
|
2118
|
+
id: zod37.ZodString;
|
|
2119
2119
|
}, better_auth0.$strip>>) => Promise<{
|
|
2120
|
-
configId: string;
|
|
2121
2120
|
id: string;
|
|
2121
|
+
createdAt: Date;
|
|
2122
|
+
updatedAt: Date;
|
|
2122
2123
|
environmentId: string;
|
|
2123
|
-
|
|
2124
|
-
priority: number;
|
|
2124
|
+
configId: string;
|
|
2125
2125
|
configVariantId: string;
|
|
2126
2126
|
variantVersionId: string | null;
|
|
2127
2127
|
weight: number;
|
|
2128
|
+
priority: number;
|
|
2129
|
+
enabled: boolean;
|
|
2128
2130
|
conditions: Record<string, unknown>;
|
|
2129
|
-
createdAt: Date;
|
|
2130
|
-
updatedAt: Date;
|
|
2131
2131
|
} | undefined>;
|
|
2132
|
-
deleteTargetingRulesByConfigId: (params:
|
|
2133
|
-
configId:
|
|
2132
|
+
deleteTargetingRulesByConfigId: (params: zod37.infer<zod37.ZodObject<{
|
|
2133
|
+
configId: zod37.ZodString;
|
|
2134
2134
|
}, better_auth0.$strip>>) => Promise<{
|
|
2135
|
-
configId: string;
|
|
2136
2135
|
id: string;
|
|
2136
|
+
createdAt: Date;
|
|
2137
|
+
updatedAt: Date;
|
|
2137
2138
|
environmentId: string;
|
|
2138
|
-
|
|
2139
|
-
priority: number;
|
|
2139
|
+
configId: string;
|
|
2140
2140
|
configVariantId: string;
|
|
2141
2141
|
variantVersionId: string | null;
|
|
2142
2142
|
weight: number;
|
|
2143
|
+
priority: number;
|
|
2144
|
+
enabled: boolean;
|
|
2143
2145
|
conditions: Record<string, unknown>;
|
|
2144
|
-
createdAt: Date;
|
|
2145
|
-
updatedAt: Date;
|
|
2146
2146
|
}[]>;
|
|
2147
|
-
deleteTargetingRulesByEnvironmentId: (params:
|
|
2148
|
-
environmentId:
|
|
2147
|
+
deleteTargetingRulesByEnvironmentId: (params: zod37.infer<zod37.ZodObject<{
|
|
2148
|
+
environmentId: zod37.ZodString;
|
|
2149
2149
|
}, better_auth0.$strip>>) => Promise<{
|
|
2150
|
-
configId: string;
|
|
2151
2150
|
id: string;
|
|
2151
|
+
createdAt: Date;
|
|
2152
|
+
updatedAt: Date;
|
|
2152
2153
|
environmentId: string;
|
|
2153
|
-
|
|
2154
|
-
priority: number;
|
|
2154
|
+
configId: string;
|
|
2155
2155
|
configVariantId: string;
|
|
2156
2156
|
variantVersionId: string | null;
|
|
2157
2157
|
weight: number;
|
|
2158
|
+
priority: number;
|
|
2159
|
+
enabled: boolean;
|
|
2158
2160
|
conditions: Record<string, unknown>;
|
|
2159
|
-
createdAt: Date;
|
|
2160
|
-
updatedAt: Date;
|
|
2161
2161
|
}[]>;
|
|
2162
|
-
listTargetingRules: (params?:
|
|
2163
|
-
limit:
|
|
2164
|
-
offset:
|
|
2162
|
+
listTargetingRules: (params?: zod37.infer<zod37.ZodObject<{
|
|
2163
|
+
limit: zod37.ZodOptional<zod37.ZodNumber>;
|
|
2164
|
+
offset: zod37.ZodOptional<zod37.ZodNumber>;
|
|
2165
2165
|
}, better_auth0.$strip>>) => Promise<{
|
|
2166
|
-
configId: string;
|
|
2167
2166
|
id: string;
|
|
2167
|
+
createdAt: Date;
|
|
2168
|
+
updatedAt: Date;
|
|
2168
2169
|
environmentId: string;
|
|
2169
|
-
|
|
2170
|
-
priority: number;
|
|
2170
|
+
configId: string;
|
|
2171
2171
|
configVariantId: string;
|
|
2172
2172
|
variantVersionId: string | null;
|
|
2173
2173
|
weight: number;
|
|
2174
|
+
priority: number;
|
|
2175
|
+
enabled: boolean;
|
|
2174
2176
|
conditions: Record<string, unknown>;
|
|
2175
|
-
createdAt: Date;
|
|
2176
|
-
updatedAt: Date;
|
|
2177
2177
|
}[]>;
|
|
2178
|
-
getTargetingRulesWithDetailsByConfigId: (params:
|
|
2179
|
-
configId:
|
|
2180
|
-
limit:
|
|
2181
|
-
offset:
|
|
2178
|
+
getTargetingRulesWithDetailsByConfigId: (params: zod37.infer<zod37.ZodObject<{
|
|
2179
|
+
configId: zod37.ZodString;
|
|
2180
|
+
limit: zod37.ZodOptional<zod37.ZodNumber>;
|
|
2181
|
+
offset: zod37.ZodOptional<zod37.ZodNumber>;
|
|
2182
2182
|
}, better_auth0.$strip>>) => Promise<{
|
|
2183
2183
|
variantProvider: string | null;
|
|
2184
2184
|
variantModelName: string | null;
|
|
2185
2185
|
pinnedVersion: number | null | undefined;
|
|
2186
2186
|
latestVersion: number | null | undefined;
|
|
2187
2187
|
variantName: string | null;
|
|
2188
|
-
configId: string;
|
|
2189
2188
|
id: string;
|
|
2189
|
+
createdAt: Date;
|
|
2190
|
+
updatedAt: Date;
|
|
2190
2191
|
environmentId: string;
|
|
2191
|
-
|
|
2192
|
-
priority: number;
|
|
2192
|
+
configId: string;
|
|
2193
2193
|
configVariantId: string;
|
|
2194
2194
|
variantVersionId: string | null;
|
|
2195
2195
|
weight: number;
|
|
2196
|
+
priority: number;
|
|
2197
|
+
enabled: boolean;
|
|
2196
2198
|
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;
|
|
2202
2202
|
}[]>;
|
|
2203
|
-
setTargetingForEnvironment: (params:
|
|
2204
|
-
environmentId:
|
|
2205
|
-
configId:
|
|
2206
|
-
configVariantId:
|
|
2207
|
-
variantVersionId:
|
|
2203
|
+
setTargetingForEnvironment: (params: zod37.infer<zod37.ZodObject<{
|
|
2204
|
+
environmentId: zod37.ZodString;
|
|
2205
|
+
configId: zod37.ZodString;
|
|
2206
|
+
configVariantId: zod37.ZodString;
|
|
2207
|
+
variantVersionId: zod37.ZodOptional<zod37.ZodNullable<zod37.ZodString>>;
|
|
2208
2208
|
}, better_auth0.$strip>>) => Promise<{
|
|
2209
|
-
configId: string;
|
|
2210
2209
|
id: string;
|
|
2210
|
+
createdAt: Date;
|
|
2211
|
+
updatedAt: Date;
|
|
2211
2212
|
environmentId: string;
|
|
2212
|
-
|
|
2213
|
-
priority: number;
|
|
2213
|
+
configId: string;
|
|
2214
2214
|
configVariantId: string;
|
|
2215
2215
|
variantVersionId: string | null;
|
|
2216
2216
|
weight: number;
|
|
2217
|
+
priority: number;
|
|
2218
|
+
enabled: boolean;
|
|
2217
2219
|
conditions: Record<string, unknown>;
|
|
2218
|
-
createdAt: Date;
|
|
2219
|
-
updatedAt: Date;
|
|
2220
2220
|
} | undefined>;
|
|
2221
|
-
createProviderGuardrailOverride: (params:
|
|
2222
|
-
providerConfigId:
|
|
2223
|
-
guardrailConfigId:
|
|
2224
|
-
enabled:
|
|
2225
|
-
parameters:
|
|
2221
|
+
createProviderGuardrailOverride: (params: zod37.infer<zod37.ZodObject<{
|
|
2222
|
+
providerConfigId: zod37.ZodString;
|
|
2223
|
+
guardrailConfigId: zod37.ZodString;
|
|
2224
|
+
enabled: zod37.ZodDefault<zod37.ZodOptional<zod37.ZodBoolean>>;
|
|
2225
|
+
parameters: zod37.ZodOptional<zod37.ZodNullable<zod37.ZodRecord<zod37.ZodString, zod37.ZodUnknown>>>;
|
|
2226
2226
|
}, better_auth0.$strip>>) => Promise<{
|
|
2227
2227
|
id: string;
|
|
2228
|
-
|
|
2228
|
+
createdAt: Date;
|
|
2229
|
+
updatedAt: Date;
|
|
2229
2230
|
enabled: boolean;
|
|
2231
|
+
parameters: Record<string, unknown> | null;
|
|
2230
2232
|
providerConfigId: string;
|
|
2231
2233
|
guardrailConfigId: string;
|
|
2232
|
-
createdAt: Date;
|
|
2233
|
-
updatedAt: Date;
|
|
2234
2234
|
} | undefined>;
|
|
2235
|
-
updateProviderGuardrailOverride: (params:
|
|
2236
|
-
id:
|
|
2237
|
-
enabled:
|
|
2238
|
-
parameters:
|
|
2235
|
+
updateProviderGuardrailOverride: (params: zod37.infer<zod37.ZodObject<{
|
|
2236
|
+
id: zod37.ZodString;
|
|
2237
|
+
enabled: zod37.ZodOptional<zod37.ZodBoolean>;
|
|
2238
|
+
parameters: zod37.ZodOptional<zod37.ZodNullable<zod37.ZodRecord<zod37.ZodString, zod37.ZodUnknown>>>;
|
|
2239
2239
|
}, better_auth0.$strip>>) => Promise<{
|
|
2240
2240
|
id: string;
|
|
2241
|
-
|
|
2241
|
+
createdAt: Date;
|
|
2242
|
+
updatedAt: Date;
|
|
2242
2243
|
enabled: boolean;
|
|
2244
|
+
parameters: Record<string, unknown> | null;
|
|
2243
2245
|
providerConfigId: string;
|
|
2244
2246
|
guardrailConfigId: string;
|
|
2245
|
-
createdAt: Date;
|
|
2246
|
-
updatedAt: Date;
|
|
2247
2247
|
} | undefined>;
|
|
2248
|
-
getOverrideById: (params:
|
|
2249
|
-
id:
|
|
2248
|
+
getOverrideById: (params: zod37.infer<zod37.ZodObject<{
|
|
2249
|
+
id: zod37.ZodString;
|
|
2250
2250
|
}, better_auth0.$strip>>) => Promise<{
|
|
2251
2251
|
id: string;
|
|
2252
|
-
|
|
2252
|
+
createdAt: Date;
|
|
2253
|
+
updatedAt: Date;
|
|
2253
2254
|
enabled: boolean;
|
|
2255
|
+
parameters: Record<string, unknown> | null;
|
|
2254
2256
|
providerConfigId: string;
|
|
2255
2257
|
guardrailConfigId: string;
|
|
2256
|
-
createdAt: Date;
|
|
2257
|
-
updatedAt: Date;
|
|
2258
2258
|
} | undefined>;
|
|
2259
|
-
deleteProviderGuardrailOverride: (params:
|
|
2260
|
-
id:
|
|
2259
|
+
deleteProviderGuardrailOverride: (params: zod37.infer<zod37.ZodObject<{
|
|
2260
|
+
id: zod37.ZodString;
|
|
2261
2261
|
}, better_auth0.$strip>>) => Promise<{
|
|
2262
2262
|
id: string;
|
|
2263
|
-
|
|
2263
|
+
createdAt: Date;
|
|
2264
|
+
updatedAt: Date;
|
|
2264
2265
|
enabled: boolean;
|
|
2266
|
+
parameters: Record<string, unknown> | null;
|
|
2265
2267
|
providerConfigId: string;
|
|
2266
2268
|
guardrailConfigId: string;
|
|
2267
|
-
createdAt: Date;
|
|
2268
|
-
updatedAt: Date;
|
|
2269
2269
|
} | undefined>;
|
|
2270
|
-
getOverridesByProviderConfigId: (params:
|
|
2271
|
-
providerConfigId:
|
|
2270
|
+
getOverridesByProviderConfigId: (params: zod37.infer<zod37.ZodObject<{
|
|
2271
|
+
providerConfigId: zod37.ZodString;
|
|
2272
2272
|
}, better_auth0.$strip>>) => Promise<{
|
|
2273
2273
|
id: string;
|
|
2274
|
-
|
|
2274
|
+
createdAt: Date;
|
|
2275
|
+
updatedAt: Date;
|
|
2275
2276
|
enabled: boolean;
|
|
2277
|
+
parameters: Record<string, unknown> | null;
|
|
2276
2278
|
providerConfigId: string;
|
|
2277
2279
|
guardrailConfigId: string;
|
|
2278
|
-
createdAt: Date;
|
|
2279
|
-
updatedAt: Date;
|
|
2280
2280
|
}[]>;
|
|
2281
|
-
getOverridesByGuardrailConfigId: (params:
|
|
2282
|
-
guardrailConfigId:
|
|
2281
|
+
getOverridesByGuardrailConfigId: (params: zod37.infer<zod37.ZodObject<{
|
|
2282
|
+
guardrailConfigId: zod37.ZodString;
|
|
2283
2283
|
}, better_auth0.$strip>>) => Promise<{
|
|
2284
2284
|
id: string;
|
|
2285
|
-
|
|
2285
|
+
createdAt: Date;
|
|
2286
|
+
updatedAt: Date;
|
|
2286
2287
|
enabled: boolean;
|
|
2288
|
+
parameters: Record<string, unknown> | null;
|
|
2287
2289
|
providerConfigId: string;
|
|
2288
2290
|
guardrailConfigId: string;
|
|
2289
|
-
createdAt: Date;
|
|
2290
|
-
updatedAt: Date;
|
|
2291
2291
|
}[]>;
|
|
2292
|
-
getOverrideByProviderAndGuardrail: (params:
|
|
2293
|
-
providerConfigId:
|
|
2294
|
-
guardrailConfigId:
|
|
2292
|
+
getOverrideByProviderAndGuardrail: (params: zod37.infer<zod37.ZodObject<{
|
|
2293
|
+
providerConfigId: zod37.ZodString;
|
|
2294
|
+
guardrailConfigId: zod37.ZodString;
|
|
2295
2295
|
}, better_auth0.$strip>>) => Promise<{
|
|
2296
2296
|
id: string;
|
|
2297
|
-
|
|
2297
|
+
createdAt: Date;
|
|
2298
|
+
updatedAt: Date;
|
|
2298
2299
|
enabled: boolean;
|
|
2300
|
+
parameters: Record<string, unknown> | null;
|
|
2299
2301
|
providerConfigId: string;
|
|
2300
2302
|
guardrailConfigId: string;
|
|
2301
|
-
createdAt: Date;
|
|
2302
|
-
updatedAt: Date;
|
|
2303
2303
|
} | undefined>;
|
|
2304
|
-
upsertProviderGuardrailOverride: (params:
|
|
2305
|
-
providerConfigId:
|
|
2306
|
-
guardrailConfigId:
|
|
2307
|
-
enabled:
|
|
2308
|
-
parameters:
|
|
2304
|
+
upsertProviderGuardrailOverride: (params: zod37.infer<zod37.ZodObject<{
|
|
2305
|
+
providerConfigId: zod37.ZodString;
|
|
2306
|
+
guardrailConfigId: zod37.ZodString;
|
|
2307
|
+
enabled: zod37.ZodDefault<zod37.ZodOptional<zod37.ZodBoolean>>;
|
|
2308
|
+
parameters: zod37.ZodOptional<zod37.ZodNullable<zod37.ZodRecord<zod37.ZodString, zod37.ZodUnknown>>>;
|
|
2309
2309
|
}, better_auth0.$strip>>) => Promise<{
|
|
2310
2310
|
id: string;
|
|
2311
|
-
|
|
2311
|
+
createdAt: Date;
|
|
2312
|
+
updatedAt: Date;
|
|
2312
2313
|
enabled: boolean;
|
|
2314
|
+
parameters: Record<string, unknown> | null;
|
|
2313
2315
|
providerConfigId: string;
|
|
2314
2316
|
guardrailConfigId: string;
|
|
2315
|
-
createdAt: Date;
|
|
2316
|
-
updatedAt: Date;
|
|
2317
2317
|
} | undefined>;
|
|
2318
|
-
deleteOverridesByGuardrailConfigId: (params:
|
|
2319
|
-
guardrailConfigId:
|
|
2318
|
+
deleteOverridesByGuardrailConfigId: (params: zod37.infer<zod37.ZodObject<{
|
|
2319
|
+
guardrailConfigId: zod37.ZodString;
|
|
2320
2320
|
}, better_auth0.$strip>>) => Promise<kysely0.DeleteResult[]>;
|
|
2321
|
-
createProviderConfig: (params:
|
|
2322
|
-
providerId:
|
|
2323
|
-
slug:
|
|
2324
|
-
name:
|
|
2325
|
-
config:
|
|
2326
|
-
enabled:
|
|
2321
|
+
createProviderConfig: (params: zod37.infer<zod37.ZodObject<{
|
|
2322
|
+
providerId: zod37.ZodString;
|
|
2323
|
+
slug: zod37.ZodOptional<zod37.ZodNullable<zod37.ZodString>>;
|
|
2324
|
+
name: zod37.ZodOptional<zod37.ZodNullable<zod37.ZodString>>;
|
|
2325
|
+
config: zod37.ZodRecord<zod37.ZodString, zod37.ZodUnknown>;
|
|
2326
|
+
enabled: zod37.ZodDefault<zod37.ZodOptional<zod37.ZodBoolean>>;
|
|
2327
2327
|
}, better_auth0.$strip>>) => Promise<{
|
|
2328
|
+
slug: string | null;
|
|
2328
2329
|
name: string | null;
|
|
2329
2330
|
id: string;
|
|
2330
|
-
slug: string | null;
|
|
2331
|
-
enabled: boolean;
|
|
2332
|
-
config: Record<string, unknown>;
|
|
2333
|
-
providerId: string;
|
|
2334
2331
|
createdAt: Date;
|
|
2335
2332
|
updatedAt: Date;
|
|
2333
|
+
enabled: boolean;
|
|
2334
|
+
providerId: string;
|
|
2335
|
+
config: Record<string, unknown>;
|
|
2336
2336
|
} | undefined>;
|
|
2337
|
-
updateProviderConfig: (params:
|
|
2338
|
-
id:
|
|
2339
|
-
slug:
|
|
2340
|
-
name:
|
|
2341
|
-
config:
|
|
2342
|
-
enabled:
|
|
2337
|
+
updateProviderConfig: (params: zod37.infer<zod37.ZodObject<{
|
|
2338
|
+
id: zod37.ZodUUID;
|
|
2339
|
+
slug: zod37.ZodOptional<zod37.ZodNullable<zod37.ZodString>>;
|
|
2340
|
+
name: zod37.ZodOptional<zod37.ZodNullable<zod37.ZodString>>;
|
|
2341
|
+
config: zod37.ZodOptional<zod37.ZodRecord<zod37.ZodString, zod37.ZodUnknown>>;
|
|
2342
|
+
enabled: zod37.ZodOptional<zod37.ZodBoolean>;
|
|
2343
2343
|
}, better_auth0.$strip>>) => Promise<{
|
|
2344
|
+
slug: string | null;
|
|
2344
2345
|
name: string | null;
|
|
2345
2346
|
id: string;
|
|
2346
|
-
slug: string | null;
|
|
2347
|
-
enabled: boolean;
|
|
2348
|
-
config: Record<string, unknown>;
|
|
2349
|
-
providerId: string;
|
|
2350
2347
|
createdAt: Date;
|
|
2351
2348
|
updatedAt: Date;
|
|
2349
|
+
enabled: boolean;
|
|
2350
|
+
providerId: string;
|
|
2351
|
+
config: Record<string, unknown>;
|
|
2352
2352
|
} | undefined>;
|
|
2353
|
-
getProviderConfigById: (params:
|
|
2354
|
-
id:
|
|
2353
|
+
getProviderConfigById: (params: zod37.infer<zod37.ZodObject<{
|
|
2354
|
+
id: zod37.ZodUUID;
|
|
2355
2355
|
}, better_auth0.$strip>>) => Promise<{
|
|
2356
|
+
slug: string | null;
|
|
2356
2357
|
name: string | null;
|
|
2357
2358
|
id: string;
|
|
2358
|
-
slug: string | null;
|
|
2359
|
-
enabled: boolean;
|
|
2360
|
-
config: Record<string, unknown>;
|
|
2361
|
-
providerId: string;
|
|
2362
2359
|
createdAt: Date;
|
|
2363
2360
|
updatedAt: Date;
|
|
2361
|
+
enabled: boolean;
|
|
2362
|
+
providerId: string;
|
|
2363
|
+
config: Record<string, unknown>;
|
|
2364
2364
|
} | undefined>;
|
|
2365
|
-
getProviderConfigByProviderId: (params:
|
|
2366
|
-
providerId:
|
|
2365
|
+
getProviderConfigByProviderId: (params: zod37.infer<zod37.ZodObject<{
|
|
2366
|
+
providerId: zod37.ZodString;
|
|
2367
2367
|
}, better_auth0.$strip>>) => Promise<{
|
|
2368
|
+
slug: string | null;
|
|
2368
2369
|
name: string | null;
|
|
2369
2370
|
id: string;
|
|
2370
|
-
slug: string | null;
|
|
2371
|
-
enabled: boolean;
|
|
2372
|
-
config: Record<string, unknown>;
|
|
2373
|
-
providerId: string;
|
|
2374
2371
|
createdAt: Date;
|
|
2375
2372
|
updatedAt: Date;
|
|
2373
|
+
enabled: boolean;
|
|
2374
|
+
providerId: string;
|
|
2375
|
+
config: Record<string, unknown>;
|
|
2376
2376
|
} | undefined>;
|
|
2377
|
-
getProviderConfigBySlug: (params:
|
|
2378
|
-
slug:
|
|
2377
|
+
getProviderConfigBySlug: (params: zod37.infer<zod37.ZodObject<{
|
|
2378
|
+
slug: zod37.ZodString;
|
|
2379
2379
|
}, better_auth0.$strip>>) => Promise<{
|
|
2380
|
+
slug: string | null;
|
|
2380
2381
|
name: string | null;
|
|
2381
2382
|
id: string;
|
|
2382
|
-
slug: string | null;
|
|
2383
|
-
enabled: boolean;
|
|
2384
|
-
config: Record<string, unknown>;
|
|
2385
|
-
providerId: string;
|
|
2386
2383
|
createdAt: Date;
|
|
2387
2384
|
updatedAt: Date;
|
|
2385
|
+
enabled: boolean;
|
|
2386
|
+
providerId: string;
|
|
2387
|
+
config: Record<string, unknown>;
|
|
2388
2388
|
} | undefined>;
|
|
2389
|
-
deleteProviderConfig: (params:
|
|
2390
|
-
id:
|
|
2389
|
+
deleteProviderConfig: (params: zod37.infer<zod37.ZodObject<{
|
|
2390
|
+
id: zod37.ZodUUID;
|
|
2391
2391
|
}, better_auth0.$strip>>) => Promise<{
|
|
2392
|
+
slug: string | null;
|
|
2392
2393
|
name: string | null;
|
|
2393
2394
|
id: string;
|
|
2394
|
-
slug: string | null;
|
|
2395
|
-
enabled: boolean;
|
|
2396
|
-
config: Record<string, unknown>;
|
|
2397
|
-
providerId: string;
|
|
2398
2395
|
createdAt: Date;
|
|
2399
2396
|
updatedAt: Date;
|
|
2397
|
+
enabled: boolean;
|
|
2398
|
+
providerId: string;
|
|
2399
|
+
config: Record<string, unknown>;
|
|
2400
2400
|
} | undefined>;
|
|
2401
|
-
listProviderConfigs: (params?:
|
|
2402
|
-
limit:
|
|
2403
|
-
offset:
|
|
2401
|
+
listProviderConfigs: (params?: zod37.infer<zod37.ZodObject<{
|
|
2402
|
+
limit: zod37.ZodOptional<zod37.ZodNumber>;
|
|
2403
|
+
offset: zod37.ZodOptional<zod37.ZodNumber>;
|
|
2404
2404
|
}, better_auth0.$strip>>) => Promise<{
|
|
2405
|
+
slug: string | null;
|
|
2405
2406
|
name: string | null;
|
|
2406
2407
|
id: string;
|
|
2407
|
-
slug: string | null;
|
|
2408
|
-
enabled: boolean;
|
|
2409
|
-
config: Record<string, unknown>;
|
|
2410
|
-
providerId: string;
|
|
2411
2408
|
createdAt: Date;
|
|
2412
2409
|
updatedAt: Date;
|
|
2410
|
+
enabled: boolean;
|
|
2411
|
+
providerId: string;
|
|
2412
|
+
config: Record<string, unknown>;
|
|
2413
2413
|
}[]>;
|
|
2414
2414
|
countProviderConfigs: () => Promise<number>;
|
|
2415
|
-
upsertProviderConfig: (params:
|
|
2416
|
-
providerId:
|
|
2417
|
-
slug:
|
|
2418
|
-
name:
|
|
2419
|
-
config:
|
|
2420
|
-
enabled:
|
|
2415
|
+
upsertProviderConfig: (params: zod37.infer<zod37.ZodObject<{
|
|
2416
|
+
providerId: zod37.ZodString;
|
|
2417
|
+
slug: zod37.ZodOptional<zod37.ZodNullable<zod37.ZodString>>;
|
|
2418
|
+
name: zod37.ZodOptional<zod37.ZodNullable<zod37.ZodString>>;
|
|
2419
|
+
config: zod37.ZodRecord<zod37.ZodString, zod37.ZodUnknown>;
|
|
2420
|
+
enabled: zod37.ZodDefault<zod37.ZodOptional<zod37.ZodBoolean>>;
|
|
2421
2421
|
}, better_auth0.$strip>>) => Promise<{
|
|
2422
|
+
slug: string | null;
|
|
2422
2423
|
name: string | null;
|
|
2423
2424
|
id: string;
|
|
2424
|
-
slug: string | null;
|
|
2425
|
-
enabled: boolean;
|
|
2426
|
-
config: Record<string, unknown>;
|
|
2427
|
-
providerId: string;
|
|
2428
2425
|
createdAt: Date;
|
|
2429
2426
|
updatedAt: Date;
|
|
2427
|
+
enabled: boolean;
|
|
2428
|
+
providerId: string;
|
|
2429
|
+
config: Record<string, unknown>;
|
|
2430
2430
|
} | undefined>;
|
|
2431
2431
|
batchInsertRequests: (requests: LLMRequestInsert[]) => Promise<{
|
|
2432
2432
|
count: number;
|
|
2433
2433
|
}>;
|
|
2434
2434
|
insertRequest: (request: LLMRequestInsert) => Promise<{
|
|
2435
|
-
configId: string | null;
|
|
2436
|
-
variantId: string | null;
|
|
2437
2435
|
id: string;
|
|
2436
|
+
createdAt: Date;
|
|
2437
|
+
updatedAt: Date;
|
|
2438
|
+
variantId: string | null;
|
|
2438
2439
|
provider: string;
|
|
2439
2440
|
environmentId: string | null;
|
|
2440
|
-
|
|
2441
|
+
configId: string | null;
|
|
2441
2442
|
providerConfigId: string | null;
|
|
2443
|
+
requestId: string;
|
|
2442
2444
|
model: string;
|
|
2443
2445
|
promptTokens: number;
|
|
2444
2446
|
completionTokens: number;
|
|
@@ -2453,8 +2455,6 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2453
2455
|
isStreaming: boolean;
|
|
2454
2456
|
userId: string | null;
|
|
2455
2457
|
tags: Record<string, string>;
|
|
2456
|
-
createdAt: Date;
|
|
2457
|
-
updatedAt: Date;
|
|
2458
2458
|
guardrailResults: {
|
|
2459
2459
|
results: {
|
|
2460
2460
|
configId: string;
|
|
@@ -2467,27 +2467,29 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2467
2467
|
totalLatencyMs: number;
|
|
2468
2468
|
} | null;
|
|
2469
2469
|
} | undefined>;
|
|
2470
|
-
listRequests: (params?:
|
|
2471
|
-
limit:
|
|
2472
|
-
offset:
|
|
2473
|
-
configId:
|
|
2474
|
-
variantId:
|
|
2475
|
-
environmentId:
|
|
2476
|
-
providerConfigId:
|
|
2477
|
-
provider:
|
|
2478
|
-
model:
|
|
2479
|
-
startDate:
|
|
2480
|
-
endDate:
|
|
2481
|
-
tags:
|
|
2470
|
+
listRequests: (params?: zod37.infer<zod37.ZodObject<{
|
|
2471
|
+
limit: zod37.ZodDefault<zod37.ZodNumber>;
|
|
2472
|
+
offset: zod37.ZodDefault<zod37.ZodNumber>;
|
|
2473
|
+
configId: zod37.ZodOptional<zod37.ZodString>;
|
|
2474
|
+
variantId: zod37.ZodOptional<zod37.ZodString>;
|
|
2475
|
+
environmentId: zod37.ZodOptional<zod37.ZodString>;
|
|
2476
|
+
providerConfigId: zod37.ZodOptional<zod37.ZodString>;
|
|
2477
|
+
provider: zod37.ZodOptional<zod37.ZodString>;
|
|
2478
|
+
model: zod37.ZodOptional<zod37.ZodString>;
|
|
2479
|
+
startDate: zod37.ZodOptional<zod37.ZodDate>;
|
|
2480
|
+
endDate: zod37.ZodOptional<zod37.ZodDate>;
|
|
2481
|
+
tags: zod37.ZodOptional<zod37.ZodRecord<zod37.ZodString, zod37.ZodArray<zod37.ZodString>>>;
|
|
2482
2482
|
}, better_auth0.$strip>>) => Promise<{
|
|
2483
2483
|
data: {
|
|
2484
|
-
configId: string | null;
|
|
2485
|
-
variantId: string | null;
|
|
2486
2484
|
id: string;
|
|
2485
|
+
createdAt: Date;
|
|
2486
|
+
updatedAt: Date;
|
|
2487
|
+
variantId: string | null;
|
|
2487
2488
|
provider: string;
|
|
2488
2489
|
environmentId: string | null;
|
|
2489
|
-
|
|
2490
|
+
configId: string | null;
|
|
2490
2491
|
providerConfigId: string | null;
|
|
2492
|
+
requestId: string;
|
|
2491
2493
|
model: string;
|
|
2492
2494
|
promptTokens: number;
|
|
2493
2495
|
completionTokens: number;
|
|
@@ -2502,8 +2504,6 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2502
2504
|
isStreaming: boolean;
|
|
2503
2505
|
userId: string | null;
|
|
2504
2506
|
tags: Record<string, string>;
|
|
2505
|
-
createdAt: Date;
|
|
2506
|
-
updatedAt: Date;
|
|
2507
2507
|
guardrailResults: {
|
|
2508
2508
|
results: {
|
|
2509
2509
|
configId: string;
|
|
@@ -2521,13 +2521,15 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2521
2521
|
offset: number;
|
|
2522
2522
|
}>;
|
|
2523
2523
|
getRequestByRequestId: (requestId: string) => Promise<{
|
|
2524
|
-
configId: string | null;
|
|
2525
|
-
variantId: string | null;
|
|
2526
2524
|
id: string;
|
|
2525
|
+
createdAt: Date;
|
|
2526
|
+
updatedAt: Date;
|
|
2527
|
+
variantId: string | null;
|
|
2527
2528
|
provider: string;
|
|
2528
2529
|
environmentId: string | null;
|
|
2529
|
-
|
|
2530
|
+
configId: string | null;
|
|
2530
2531
|
providerConfigId: string | null;
|
|
2532
|
+
requestId: string;
|
|
2531
2533
|
model: string;
|
|
2532
2534
|
promptTokens: number;
|
|
2533
2535
|
completionTokens: number;
|
|
@@ -2542,8 +2544,6 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2542
2544
|
isStreaming: boolean;
|
|
2543
2545
|
userId: string | null;
|
|
2544
2546
|
tags: Record<string, string>;
|
|
2545
|
-
createdAt: Date;
|
|
2546
|
-
updatedAt: Date;
|
|
2547
2547
|
guardrailResults: {
|
|
2548
2548
|
results: {
|
|
2549
2549
|
configId: string;
|
|
@@ -2556,13 +2556,13 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2556
2556
|
totalLatencyMs: number;
|
|
2557
2557
|
} | null;
|
|
2558
2558
|
} | undefined>;
|
|
2559
|
-
getTotalCost: (params:
|
|
2560
|
-
startDate:
|
|
2561
|
-
endDate:
|
|
2562
|
-
configId:
|
|
2563
|
-
variantId:
|
|
2564
|
-
environmentId:
|
|
2565
|
-
tags:
|
|
2559
|
+
getTotalCost: (params: zod37.infer<zod37.ZodObject<{
|
|
2560
|
+
startDate: zod37.ZodDate;
|
|
2561
|
+
endDate: zod37.ZodDate;
|
|
2562
|
+
configId: zod37.ZodOptional<zod37.ZodString>;
|
|
2563
|
+
variantId: zod37.ZodOptional<zod37.ZodString>;
|
|
2564
|
+
environmentId: zod37.ZodOptional<zod37.ZodString>;
|
|
2565
|
+
tags: zod37.ZodOptional<zod37.ZodRecord<zod37.ZodString, zod37.ZodArray<zod37.ZodString>>>;
|
|
2566
2566
|
}, better_auth0.$strip>>) => Promise<{
|
|
2567
2567
|
totalCost: number;
|
|
2568
2568
|
totalInputCost: number;
|
|
@@ -2572,13 +2572,13 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2572
2572
|
totalTokens: number;
|
|
2573
2573
|
requestCount: number;
|
|
2574
2574
|
} | undefined>;
|
|
2575
|
-
getCostByModel: (params:
|
|
2576
|
-
startDate:
|
|
2577
|
-
endDate:
|
|
2578
|
-
configId:
|
|
2579
|
-
variantId:
|
|
2580
|
-
environmentId:
|
|
2581
|
-
tags:
|
|
2575
|
+
getCostByModel: (params: zod37.infer<zod37.ZodObject<{
|
|
2576
|
+
startDate: zod37.ZodDate;
|
|
2577
|
+
endDate: zod37.ZodDate;
|
|
2578
|
+
configId: zod37.ZodOptional<zod37.ZodString>;
|
|
2579
|
+
variantId: zod37.ZodOptional<zod37.ZodString>;
|
|
2580
|
+
environmentId: zod37.ZodOptional<zod37.ZodString>;
|
|
2581
|
+
tags: zod37.ZodOptional<zod37.ZodRecord<zod37.ZodString, zod37.ZodArray<zod37.ZodString>>>;
|
|
2582
2582
|
}, better_auth0.$strip>>) => Promise<{
|
|
2583
2583
|
provider: string;
|
|
2584
2584
|
model: string;
|
|
@@ -2589,13 +2589,13 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2589
2589
|
requestCount: number;
|
|
2590
2590
|
avgLatencyMs: number;
|
|
2591
2591
|
}[]>;
|
|
2592
|
-
getCostByProvider: (params:
|
|
2593
|
-
startDate:
|
|
2594
|
-
endDate:
|
|
2595
|
-
configId:
|
|
2596
|
-
variantId:
|
|
2597
|
-
environmentId:
|
|
2598
|
-
tags:
|
|
2592
|
+
getCostByProvider: (params: zod37.infer<zod37.ZodObject<{
|
|
2593
|
+
startDate: zod37.ZodDate;
|
|
2594
|
+
endDate: zod37.ZodDate;
|
|
2595
|
+
configId: zod37.ZodOptional<zod37.ZodString>;
|
|
2596
|
+
variantId: zod37.ZodOptional<zod37.ZodString>;
|
|
2597
|
+
environmentId: zod37.ZodOptional<zod37.ZodString>;
|
|
2598
|
+
tags: zod37.ZodOptional<zod37.ZodRecord<zod37.ZodString, zod37.ZodArray<zod37.ZodString>>>;
|
|
2599
2599
|
}, better_auth0.$strip>>) => Promise<{
|
|
2600
2600
|
provider: string;
|
|
2601
2601
|
totalCost: number;
|
|
@@ -2605,13 +2605,13 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2605
2605
|
requestCount: number;
|
|
2606
2606
|
avgLatencyMs: number;
|
|
2607
2607
|
}[]>;
|
|
2608
|
-
getCostByConfig: (params:
|
|
2609
|
-
startDate:
|
|
2610
|
-
endDate:
|
|
2611
|
-
configId:
|
|
2612
|
-
variantId:
|
|
2613
|
-
environmentId:
|
|
2614
|
-
tags:
|
|
2608
|
+
getCostByConfig: (params: zod37.infer<zod37.ZodObject<{
|
|
2609
|
+
startDate: zod37.ZodDate;
|
|
2610
|
+
endDate: zod37.ZodDate;
|
|
2611
|
+
configId: zod37.ZodOptional<zod37.ZodString>;
|
|
2612
|
+
variantId: zod37.ZodOptional<zod37.ZodString>;
|
|
2613
|
+
environmentId: zod37.ZodOptional<zod37.ZodString>;
|
|
2614
|
+
tags: zod37.ZodOptional<zod37.ZodRecord<zod37.ZodString, zod37.ZodArray<zod37.ZodString>>>;
|
|
2615
2615
|
}, better_auth0.$strip>>) => Promise<{
|
|
2616
2616
|
configId: string | null;
|
|
2617
2617
|
totalCost: number;
|
|
@@ -2622,13 +2622,13 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2622
2622
|
configName: string | null | undefined;
|
|
2623
2623
|
configSlug: string | null;
|
|
2624
2624
|
}[]>;
|
|
2625
|
-
getDailyCosts: (params:
|
|
2626
|
-
startDate:
|
|
2627
|
-
endDate:
|
|
2628
|
-
configId:
|
|
2629
|
-
variantId:
|
|
2630
|
-
environmentId:
|
|
2631
|
-
tags:
|
|
2625
|
+
getDailyCosts: (params: zod37.infer<zod37.ZodObject<{
|
|
2626
|
+
startDate: zod37.ZodDate;
|
|
2627
|
+
endDate: zod37.ZodDate;
|
|
2628
|
+
configId: zod37.ZodOptional<zod37.ZodString>;
|
|
2629
|
+
variantId: zod37.ZodOptional<zod37.ZodString>;
|
|
2630
|
+
environmentId: zod37.ZodOptional<zod37.ZodString>;
|
|
2631
|
+
tags: zod37.ZodOptional<zod37.ZodRecord<zod37.ZodString, zod37.ZodArray<zod37.ZodString>>>;
|
|
2632
2632
|
}, better_auth0.$strip>>) => Promise<{
|
|
2633
2633
|
totalCost: number;
|
|
2634
2634
|
totalInputCost: number;
|
|
@@ -2637,32 +2637,32 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2637
2637
|
requestCount: number;
|
|
2638
2638
|
date: string;
|
|
2639
2639
|
}[]>;
|
|
2640
|
-
getCostSummary: (params:
|
|
2641
|
-
startDate:
|
|
2642
|
-
endDate:
|
|
2643
|
-
configId:
|
|
2644
|
-
variantId:
|
|
2645
|
-
environmentId:
|
|
2646
|
-
tags:
|
|
2647
|
-
groupBy:
|
|
2640
|
+
getCostSummary: (params: zod37.infer<zod37.ZodObject<{
|
|
2641
|
+
startDate: zod37.ZodDate;
|
|
2642
|
+
endDate: zod37.ZodDate;
|
|
2643
|
+
configId: zod37.ZodOptional<zod37.ZodString>;
|
|
2644
|
+
variantId: zod37.ZodOptional<zod37.ZodString>;
|
|
2645
|
+
environmentId: zod37.ZodOptional<zod37.ZodString>;
|
|
2646
|
+
tags: zod37.ZodOptional<zod37.ZodRecord<zod37.ZodString, zod37.ZodArray<zod37.ZodString>>>;
|
|
2647
|
+
groupBy: zod37.ZodOptional<zod37.ZodEnum<{
|
|
2648
2648
|
provider: "provider";
|
|
2649
|
+
config: "config";
|
|
2649
2650
|
model: "model";
|
|
2650
2651
|
day: "day";
|
|
2651
2652
|
hour: "hour";
|
|
2652
|
-
config: "config";
|
|
2653
2653
|
}>>;
|
|
2654
2654
|
}, better_auth0.$strip>>) => Promise<{
|
|
2655
2655
|
totalCost: number;
|
|
2656
2656
|
requestCount: number;
|
|
2657
2657
|
groupKey: string;
|
|
2658
2658
|
}[]>;
|
|
2659
|
-
getRequestStats: (params:
|
|
2660
|
-
startDate:
|
|
2661
|
-
endDate:
|
|
2662
|
-
configId:
|
|
2663
|
-
variantId:
|
|
2664
|
-
environmentId:
|
|
2665
|
-
tags:
|
|
2659
|
+
getRequestStats: (params: zod37.infer<zod37.ZodObject<{
|
|
2660
|
+
startDate: zod37.ZodDate;
|
|
2661
|
+
endDate: zod37.ZodDate;
|
|
2662
|
+
configId: zod37.ZodOptional<zod37.ZodString>;
|
|
2663
|
+
variantId: zod37.ZodOptional<zod37.ZodString>;
|
|
2664
|
+
environmentId: zod37.ZodOptional<zod37.ZodString>;
|
|
2665
|
+
tags: zod37.ZodOptional<zod37.ZodRecord<zod37.ZodString, zod37.ZodArray<zod37.ZodString>>>;
|
|
2666
2666
|
}, better_auth0.$strip>>) => Promise<{
|
|
2667
2667
|
avgLatencyMs: number;
|
|
2668
2668
|
totalRequests: number;
|
|
@@ -2676,390 +2676,390 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2676
2676
|
key: string;
|
|
2677
2677
|
value: string;
|
|
2678
2678
|
}[]>;
|
|
2679
|
-
createGuardrailConfig: (params:
|
|
2680
|
-
name:
|
|
2681
|
-
pluginId:
|
|
2682
|
-
functionId:
|
|
2683
|
-
hookType:
|
|
2679
|
+
createGuardrailConfig: (params: zod37.infer<zod37.ZodObject<{
|
|
2680
|
+
name: zod37.ZodString;
|
|
2681
|
+
pluginId: zod37.ZodString;
|
|
2682
|
+
functionId: zod37.ZodString;
|
|
2683
|
+
hookType: zod37.ZodEnum<{
|
|
2684
2684
|
beforeRequestHook: "beforeRequestHook";
|
|
2685
2685
|
afterRequestHook: "afterRequestHook";
|
|
2686
2686
|
}>;
|
|
2687
|
-
parameters:
|
|
2688
|
-
enabled:
|
|
2689
|
-
priority:
|
|
2690
|
-
onFail:
|
|
2687
|
+
parameters: zod37.ZodDefault<zod37.ZodOptional<zod37.ZodRecord<zod37.ZodString, zod37.ZodUnknown>>>;
|
|
2688
|
+
enabled: zod37.ZodDefault<zod37.ZodOptional<zod37.ZodBoolean>>;
|
|
2689
|
+
priority: zod37.ZodDefault<zod37.ZodOptional<zod37.ZodNumber>>;
|
|
2690
|
+
onFail: zod37.ZodDefault<zod37.ZodOptional<zod37.ZodEnum<{
|
|
2691
2691
|
block: "block";
|
|
2692
2692
|
log: "log";
|
|
2693
2693
|
}>>>;
|
|
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;
|
|
2697
2701
|
pluginId: string;
|
|
2698
2702
|
functionId: string;
|
|
2699
2703
|
hookType: string;
|
|
2700
2704
|
parameters: Record<string, unknown>;
|
|
2701
|
-
enabled: boolean;
|
|
2702
|
-
priority: number;
|
|
2703
2705
|
onFail: string;
|
|
2704
|
-
createdAt: Date;
|
|
2705
|
-
updatedAt: Date;
|
|
2706
2706
|
} | undefined>;
|
|
2707
|
-
updateGuardrailConfig: (params:
|
|
2708
|
-
id:
|
|
2709
|
-
name:
|
|
2710
|
-
hookType:
|
|
2707
|
+
updateGuardrailConfig: (params: zod37.infer<zod37.ZodObject<{
|
|
2708
|
+
id: zod37.ZodString;
|
|
2709
|
+
name: zod37.ZodOptional<zod37.ZodString>;
|
|
2710
|
+
hookType: zod37.ZodOptional<zod37.ZodEnum<{
|
|
2711
2711
|
beforeRequestHook: "beforeRequestHook";
|
|
2712
2712
|
afterRequestHook: "afterRequestHook";
|
|
2713
2713
|
}>>;
|
|
2714
|
-
parameters:
|
|
2715
|
-
enabled:
|
|
2716
|
-
priority:
|
|
2717
|
-
onFail:
|
|
2714
|
+
parameters: zod37.ZodOptional<zod37.ZodRecord<zod37.ZodString, zod37.ZodUnknown>>;
|
|
2715
|
+
enabled: zod37.ZodOptional<zod37.ZodBoolean>;
|
|
2716
|
+
priority: zod37.ZodOptional<zod37.ZodNumber>;
|
|
2717
|
+
onFail: zod37.ZodOptional<zod37.ZodEnum<{
|
|
2718
2718
|
block: "block";
|
|
2719
2719
|
log: "log";
|
|
2720
2720
|
}>>;
|
|
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;
|
|
2724
2728
|
pluginId: string;
|
|
2725
2729
|
functionId: string;
|
|
2726
2730
|
hookType: string;
|
|
2727
2731
|
parameters: Record<string, unknown>;
|
|
2728
|
-
enabled: boolean;
|
|
2729
|
-
priority: number;
|
|
2730
2732
|
onFail: string;
|
|
2731
|
-
createdAt: Date;
|
|
2732
|
-
updatedAt: Date;
|
|
2733
2733
|
} | undefined>;
|
|
2734
|
-
getGuardrailConfigById: (params:
|
|
2735
|
-
id:
|
|
2734
|
+
getGuardrailConfigById: (params: zod37.infer<zod37.ZodObject<{
|
|
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;
|
|
2739
2743
|
pluginId: string;
|
|
2740
2744
|
functionId: string;
|
|
2741
2745
|
hookType: string;
|
|
2742
2746
|
parameters: Record<string, unknown>;
|
|
2743
|
-
enabled: boolean;
|
|
2744
|
-
priority: number;
|
|
2745
2747
|
onFail: string;
|
|
2746
|
-
createdAt: Date;
|
|
2747
|
-
updatedAt: Date;
|
|
2748
2748
|
} | undefined>;
|
|
2749
|
-
deleteGuardrailConfig: (params:
|
|
2750
|
-
id:
|
|
2749
|
+
deleteGuardrailConfig: (params: zod37.infer<zod37.ZodObject<{
|
|
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;
|
|
2754
2758
|
pluginId: string;
|
|
2755
2759
|
functionId: string;
|
|
2756
2760
|
hookType: string;
|
|
2757
2761
|
parameters: Record<string, unknown>;
|
|
2758
|
-
enabled: boolean;
|
|
2759
|
-
priority: number;
|
|
2760
2762
|
onFail: string;
|
|
2761
|
-
createdAt: Date;
|
|
2762
|
-
updatedAt: Date;
|
|
2763
2763
|
} | undefined>;
|
|
2764
|
-
listGuardrailConfigs: (params?:
|
|
2765
|
-
limit:
|
|
2766
|
-
offset:
|
|
2767
|
-
hookType:
|
|
2764
|
+
listGuardrailConfigs: (params?: zod37.infer<zod37.ZodObject<{
|
|
2765
|
+
limit: zod37.ZodOptional<zod37.ZodNumber>;
|
|
2766
|
+
offset: zod37.ZodOptional<zod37.ZodNumber>;
|
|
2767
|
+
hookType: zod37.ZodOptional<zod37.ZodEnum<{
|
|
2768
2768
|
beforeRequestHook: "beforeRequestHook";
|
|
2769
2769
|
afterRequestHook: "afterRequestHook";
|
|
2770
2770
|
}>>;
|
|
2771
|
-
enabled:
|
|
2771
|
+
enabled: zod37.ZodOptional<zod37.ZodBoolean>;
|
|
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;
|
|
2775
2779
|
pluginId: string;
|
|
2776
2780
|
functionId: string;
|
|
2777
2781
|
hookType: string;
|
|
2778
2782
|
parameters: Record<string, unknown>;
|
|
2779
|
-
enabled: boolean;
|
|
2780
|
-
priority: number;
|
|
2781
2783
|
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;
|
|
2789
2793
|
pluginId: string;
|
|
2790
2794
|
functionId: string;
|
|
2791
2795
|
hookType: string;
|
|
2792
2796
|
parameters: Record<string, unknown>;
|
|
2793
|
-
enabled: boolean;
|
|
2794
|
-
priority: number;
|
|
2795
2797
|
onFail: string;
|
|
2796
|
-
createdAt: Date;
|
|
2797
|
-
updatedAt: Date;
|
|
2798
2798
|
}[]>;
|
|
2799
|
-
createEnvironmentSecret: (params:
|
|
2800
|
-
environmentId:
|
|
2801
|
-
keyName:
|
|
2802
|
-
keyValue:
|
|
2799
|
+
createEnvironmentSecret: (params: zod37.infer<zod37.ZodObject<{
|
|
2800
|
+
environmentId: zod37.ZodUUID;
|
|
2801
|
+
keyName: zod37.ZodString;
|
|
2802
|
+
keyValue: zod37.ZodString;
|
|
2803
2803
|
}, better_auth0.$strip>>) => Promise<{
|
|
2804
2804
|
id: string;
|
|
2805
|
+
createdAt: Date;
|
|
2806
|
+
updatedAt: Date;
|
|
2805
2807
|
environmentId: string;
|
|
2806
2808
|
keyName: string;
|
|
2807
2809
|
keyValue: string;
|
|
2808
|
-
createdAt: Date;
|
|
2809
|
-
updatedAt: Date;
|
|
2810
2810
|
} | undefined>;
|
|
2811
|
-
updateEnvironmentSecret: (params:
|
|
2812
|
-
secretId:
|
|
2813
|
-
keyName:
|
|
2814
|
-
keyValue:
|
|
2811
|
+
updateEnvironmentSecret: (params: zod37.infer<zod37.ZodObject<{
|
|
2812
|
+
secretId: zod37.ZodUUID;
|
|
2813
|
+
keyName: zod37.ZodOptional<zod37.ZodString>;
|
|
2814
|
+
keyValue: zod37.ZodOptional<zod37.ZodString>;
|
|
2815
2815
|
}, better_auth0.$strip>>) => Promise<{
|
|
2816
2816
|
id: string;
|
|
2817
|
+
createdAt: Date;
|
|
2818
|
+
updatedAt: Date;
|
|
2817
2819
|
environmentId: string;
|
|
2818
2820
|
keyName: string;
|
|
2819
2821
|
keyValue: string;
|
|
2820
|
-
createdAt: Date;
|
|
2821
|
-
updatedAt: Date;
|
|
2822
2822
|
} | undefined>;
|
|
2823
|
-
getEnvironmentSecretById: (params:
|
|
2824
|
-
secretId:
|
|
2823
|
+
getEnvironmentSecretById: (params: zod37.infer<zod37.ZodObject<{
|
|
2824
|
+
secretId: zod37.ZodUUID;
|
|
2825
2825
|
}, better_auth0.$strip>>) => Promise<{
|
|
2826
2826
|
id: string;
|
|
2827
|
+
createdAt: Date;
|
|
2828
|
+
updatedAt: Date;
|
|
2827
2829
|
environmentId: string;
|
|
2828
2830
|
keyName: string;
|
|
2829
2831
|
keyValue: string;
|
|
2830
|
-
createdAt: Date;
|
|
2831
|
-
updatedAt: Date;
|
|
2832
2832
|
} | undefined>;
|
|
2833
|
-
getSecretsByEnvironmentId: (params:
|
|
2834
|
-
environmentId:
|
|
2833
|
+
getSecretsByEnvironmentId: (params: zod37.infer<zod37.ZodObject<{
|
|
2834
|
+
environmentId: zod37.ZodUUID;
|
|
2835
2835
|
}, better_auth0.$strip>>) => Promise<{
|
|
2836
2836
|
id: string;
|
|
2837
|
+
createdAt: Date;
|
|
2838
|
+
updatedAt: Date;
|
|
2837
2839
|
environmentId: string;
|
|
2838
2840
|
keyName: string;
|
|
2839
2841
|
keyValue: string;
|
|
2840
|
-
createdAt: Date;
|
|
2841
|
-
updatedAt: Date;
|
|
2842
2842
|
}[]>;
|
|
2843
|
-
deleteEnvironmentSecret: (params:
|
|
2844
|
-
secretId:
|
|
2843
|
+
deleteEnvironmentSecret: (params: zod37.infer<zod37.ZodObject<{
|
|
2844
|
+
secretId: zod37.ZodUUID;
|
|
2845
2845
|
}, better_auth0.$strip>>) => Promise<{
|
|
2846
2846
|
id: string;
|
|
2847
|
+
createdAt: Date;
|
|
2848
|
+
updatedAt: Date;
|
|
2847
2849
|
environmentId: string;
|
|
2848
2850
|
keyName: string;
|
|
2849
2851
|
keyValue: string;
|
|
2850
|
-
createdAt: Date;
|
|
2851
|
-
updatedAt: Date;
|
|
2852
2852
|
} | undefined>;
|
|
2853
|
-
deleteSecretsByEnvironmentId: (params:
|
|
2854
|
-
environmentId:
|
|
2853
|
+
deleteSecretsByEnvironmentId: (params: zod37.infer<zod37.ZodObject<{
|
|
2854
|
+
environmentId: zod37.ZodUUID;
|
|
2855
2855
|
}, better_auth0.$strip>>) => Promise<{
|
|
2856
2856
|
id: string;
|
|
2857
|
+
createdAt: Date;
|
|
2858
|
+
updatedAt: Date;
|
|
2857
2859
|
environmentId: string;
|
|
2858
2860
|
keyName: string;
|
|
2859
2861
|
keyValue: string;
|
|
2860
|
-
createdAt: Date;
|
|
2861
|
-
updatedAt: Date;
|
|
2862
2862
|
}[]>;
|
|
2863
|
-
listEnvironmentSecrets: (params?:
|
|
2864
|
-
limit:
|
|
2865
|
-
offset:
|
|
2863
|
+
listEnvironmentSecrets: (params?: zod37.infer<zod37.ZodObject<{
|
|
2864
|
+
limit: zod37.ZodOptional<zod37.ZodNumber>;
|
|
2865
|
+
offset: zod37.ZodOptional<zod37.ZodNumber>;
|
|
2866
2866
|
}, better_auth0.$strip>>) => Promise<{
|
|
2867
2867
|
id: string;
|
|
2868
|
+
createdAt: Date;
|
|
2869
|
+
updatedAt: Date;
|
|
2868
2870
|
environmentId: string;
|
|
2869
2871
|
keyName: string;
|
|
2870
2872
|
keyValue: string;
|
|
2871
|
-
createdAt: Date;
|
|
2872
|
-
updatedAt: Date;
|
|
2873
2873
|
}[]>;
|
|
2874
2874
|
countEnvironmentSecrets: () => Promise<number>;
|
|
2875
|
-
createNewEnvironment: (params:
|
|
2876
|
-
name:
|
|
2877
|
-
slug:
|
|
2878
|
-
isProd:
|
|
2875
|
+
createNewEnvironment: (params: zod37.infer<zod37.ZodObject<{
|
|
2876
|
+
name: zod37.ZodString;
|
|
2877
|
+
slug: zod37.ZodString;
|
|
2878
|
+
isProd: zod37.ZodDefault<zod37.ZodOptional<zod37.ZodBoolean>>;
|
|
2879
2879
|
}, better_auth0.$strip>>) => Promise<{
|
|
2880
|
+
slug: string;
|
|
2880
2881
|
name: string;
|
|
2881
2882
|
id: string;
|
|
2882
|
-
slug: string;
|
|
2883
|
-
isProd: boolean;
|
|
2884
2883
|
createdAt: Date;
|
|
2885
2884
|
updatedAt: Date;
|
|
2885
|
+
isProd: boolean;
|
|
2886
2886
|
} | undefined>;
|
|
2887
|
-
updateEnvironment: (params:
|
|
2888
|
-
environmentId:
|
|
2889
|
-
name:
|
|
2890
|
-
slug:
|
|
2887
|
+
updateEnvironment: (params: zod37.infer<zod37.ZodObject<{
|
|
2888
|
+
environmentId: zod37.ZodUUID;
|
|
2889
|
+
name: zod37.ZodOptional<zod37.ZodString>;
|
|
2890
|
+
slug: zod37.ZodOptional<zod37.ZodString>;
|
|
2891
2891
|
}, better_auth0.$strip>>) => Promise<{
|
|
2892
|
+
slug: string;
|
|
2892
2893
|
name: string;
|
|
2893
2894
|
id: string;
|
|
2894
|
-
slug: string;
|
|
2895
|
-
isProd: boolean;
|
|
2896
2895
|
createdAt: Date;
|
|
2897
2896
|
updatedAt: Date;
|
|
2897
|
+
isProd: boolean;
|
|
2898
2898
|
} | undefined>;
|
|
2899
|
-
getEnvironmentById: (params:
|
|
2900
|
-
environmentId:
|
|
2899
|
+
getEnvironmentById: (params: zod37.infer<zod37.ZodObject<{
|
|
2900
|
+
environmentId: zod37.ZodUUID;
|
|
2901
2901
|
}, better_auth0.$strip>>) => Promise<{
|
|
2902
|
+
slug: string;
|
|
2902
2903
|
name: string;
|
|
2903
2904
|
id: string;
|
|
2904
|
-
slug: string;
|
|
2905
|
-
isProd: boolean;
|
|
2906
2905
|
createdAt: Date;
|
|
2907
2906
|
updatedAt: Date;
|
|
2907
|
+
isProd: boolean;
|
|
2908
2908
|
} | undefined>;
|
|
2909
|
-
getEnvironmentBySlug: (params:
|
|
2910
|
-
slug:
|
|
2909
|
+
getEnvironmentBySlug: (params: zod37.infer<zod37.ZodObject<{
|
|
2910
|
+
slug: zod37.ZodString;
|
|
2911
2911
|
}, better_auth0.$strip>>) => Promise<{
|
|
2912
|
+
slug: string;
|
|
2912
2913
|
name: string;
|
|
2913
2914
|
id: string;
|
|
2914
|
-
slug: string;
|
|
2915
|
-
isProd: boolean;
|
|
2916
2915
|
createdAt: Date;
|
|
2917
2916
|
updatedAt: Date;
|
|
2917
|
+
isProd: boolean;
|
|
2918
2918
|
} | undefined>;
|
|
2919
|
-
deleteEnvironment: (params:
|
|
2920
|
-
environmentId:
|
|
2919
|
+
deleteEnvironment: (params: zod37.infer<zod37.ZodObject<{
|
|
2920
|
+
environmentId: zod37.ZodUUID;
|
|
2921
2921
|
}, better_auth0.$strip>>) => Promise<{
|
|
2922
|
+
slug: string;
|
|
2922
2923
|
name: string;
|
|
2923
2924
|
id: string;
|
|
2924
|
-
slug: string;
|
|
2925
|
-
isProd: boolean;
|
|
2926
2925
|
createdAt: Date;
|
|
2927
2926
|
updatedAt: Date;
|
|
2927
|
+
isProd: boolean;
|
|
2928
2928
|
} | undefined>;
|
|
2929
|
-
listEnvironments: (params?:
|
|
2930
|
-
limit:
|
|
2931
|
-
offset:
|
|
2929
|
+
listEnvironments: (params?: zod37.infer<zod37.ZodObject<{
|
|
2930
|
+
limit: zod37.ZodOptional<zod37.ZodNumber>;
|
|
2931
|
+
offset: zod37.ZodOptional<zod37.ZodNumber>;
|
|
2932
2932
|
}, better_auth0.$strip>>) => Promise<{
|
|
2933
|
+
slug: string;
|
|
2933
2934
|
name: string;
|
|
2934
2935
|
id: string;
|
|
2935
|
-
slug: string;
|
|
2936
|
-
isProd: boolean;
|
|
2937
2936
|
createdAt: Date;
|
|
2938
2937
|
updatedAt: Date;
|
|
2938
|
+
isProd: boolean;
|
|
2939
2939
|
}[]>;
|
|
2940
2940
|
countEnvironments: () => Promise<number>;
|
|
2941
|
-
createConfigVariant: (params:
|
|
2942
|
-
configId:
|
|
2943
|
-
variantId:
|
|
2941
|
+
createConfigVariant: (params: zod37.infer<zod37.ZodObject<{
|
|
2942
|
+
configId: zod37.ZodString;
|
|
2943
|
+
variantId: zod37.ZodString;
|
|
2944
2944
|
}, better_auth0.$strip>>) => Promise<{
|
|
2945
|
-
configId: string;
|
|
2946
|
-
variantId: string;
|
|
2947
2945
|
id: string;
|
|
2948
2946
|
createdAt: Date;
|
|
2949
2947
|
updatedAt: Date;
|
|
2948
|
+
variantId: string;
|
|
2949
|
+
configId: string;
|
|
2950
2950
|
} | undefined>;
|
|
2951
|
-
getConfigVariantById: (params:
|
|
2952
|
-
id:
|
|
2951
|
+
getConfigVariantById: (params: zod37.infer<zod37.ZodObject<{
|
|
2952
|
+
id: zod37.ZodString;
|
|
2953
2953
|
}, better_auth0.$strip>>) => Promise<{
|
|
2954
|
-
configId: string;
|
|
2955
|
-
variantId: string;
|
|
2956
2954
|
id: string;
|
|
2957
2955
|
createdAt: Date;
|
|
2958
2956
|
updatedAt: Date;
|
|
2957
|
+
variantId: string;
|
|
2958
|
+
configId: string;
|
|
2959
2959
|
} | undefined>;
|
|
2960
|
-
getConfigVariantsByConfigId: (params:
|
|
2961
|
-
configId:
|
|
2962
|
-
limit:
|
|
2963
|
-
offset:
|
|
2960
|
+
getConfigVariantsByConfigId: (params: zod37.infer<zod37.ZodObject<{
|
|
2961
|
+
configId: zod37.ZodString;
|
|
2962
|
+
limit: zod37.ZodOptional<zod37.ZodNumber>;
|
|
2963
|
+
offset: zod37.ZodOptional<zod37.ZodNumber>;
|
|
2964
2964
|
}, better_auth0.$strip>>) => Promise<{
|
|
2965
|
-
configId: string;
|
|
2966
|
-
variantId: string;
|
|
2967
2965
|
id: string;
|
|
2968
2966
|
createdAt: Date;
|
|
2969
2967
|
updatedAt: Date;
|
|
2968
|
+
variantId: string;
|
|
2969
|
+
configId: string;
|
|
2970
2970
|
}[]>;
|
|
2971
|
-
getConfigVariantsByVariantId: (params:
|
|
2972
|
-
variantId:
|
|
2973
|
-
limit:
|
|
2974
|
-
offset:
|
|
2971
|
+
getConfigVariantsByVariantId: (params: zod37.infer<zod37.ZodObject<{
|
|
2972
|
+
variantId: zod37.ZodString;
|
|
2973
|
+
limit: zod37.ZodOptional<zod37.ZodNumber>;
|
|
2974
|
+
offset: zod37.ZodOptional<zod37.ZodNumber>;
|
|
2975
2975
|
}, better_auth0.$strip>>) => Promise<{
|
|
2976
|
-
configId: string;
|
|
2977
|
-
variantId: string;
|
|
2978
2976
|
id: string;
|
|
2979
2977
|
createdAt: Date;
|
|
2980
2978
|
updatedAt: Date;
|
|
2979
|
+
variantId: string;
|
|
2980
|
+
configId: string;
|
|
2981
2981
|
}[]>;
|
|
2982
|
-
deleteConfigVariant: (params:
|
|
2983
|
-
id:
|
|
2982
|
+
deleteConfigVariant: (params: zod37.infer<zod37.ZodObject<{
|
|
2983
|
+
id: zod37.ZodString;
|
|
2984
2984
|
}, better_auth0.$strip>>) => Promise<{
|
|
2985
|
-
configId: string;
|
|
2986
|
-
variantId: string;
|
|
2987
2985
|
id: string;
|
|
2988
2986
|
createdAt: Date;
|
|
2989
2987
|
updatedAt: Date;
|
|
2988
|
+
variantId: string;
|
|
2989
|
+
configId: string;
|
|
2990
2990
|
} | undefined>;
|
|
2991
|
-
deleteConfigVariantByIds: (params:
|
|
2992
|
-
configId:
|
|
2993
|
-
variantId:
|
|
2991
|
+
deleteConfigVariantByIds: (params: zod37.infer<zod37.ZodObject<{
|
|
2992
|
+
configId: zod37.ZodString;
|
|
2993
|
+
variantId: zod37.ZodString;
|
|
2994
2994
|
}, better_auth0.$strip>>) => Promise<{
|
|
2995
|
-
configId: string;
|
|
2996
|
-
variantId: string;
|
|
2997
2995
|
id: string;
|
|
2998
2996
|
createdAt: Date;
|
|
2999
2997
|
updatedAt: Date;
|
|
2998
|
+
variantId: string;
|
|
2999
|
+
configId: string;
|
|
3000
3000
|
} | undefined>;
|
|
3001
|
-
listConfigVariants: (params?:
|
|
3002
|
-
limit:
|
|
3003
|
-
offset:
|
|
3001
|
+
listConfigVariants: (params?: zod37.infer<zod37.ZodObject<{
|
|
3002
|
+
limit: zod37.ZodOptional<zod37.ZodNumber>;
|
|
3003
|
+
offset: zod37.ZodOptional<zod37.ZodNumber>;
|
|
3004
3004
|
}, better_auth0.$strip>>) => Promise<{
|
|
3005
|
-
configId: string;
|
|
3006
|
-
variantId: string;
|
|
3007
3005
|
id: string;
|
|
3008
3006
|
createdAt: Date;
|
|
3009
3007
|
updatedAt: Date;
|
|
3008
|
+
variantId: string;
|
|
3009
|
+
configId: string;
|
|
3010
3010
|
}[]>;
|
|
3011
|
-
getConfigVariantWithDetails: (params:
|
|
3012
|
-
id:
|
|
3011
|
+
getConfigVariantWithDetails: (params: zod37.infer<zod37.ZodObject<{
|
|
3012
|
+
id: zod37.ZodString;
|
|
3013
3013
|
}, better_auth0.$strip>>) => Promise<{
|
|
3014
3014
|
latestVersion: {
|
|
3015
3015
|
version: number;
|
|
3016
|
-
variantId: string;
|
|
3017
3016
|
id: string;
|
|
3017
|
+
createdAt: Date;
|
|
3018
|
+
updatedAt: Date;
|
|
3019
|
+
variantId: string;
|
|
3018
3020
|
provider: string;
|
|
3019
3021
|
modelName: string;
|
|
3020
3022
|
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;
|
|
3028
3026
|
createdAt: Date;
|
|
3029
3027
|
updatedAt: Date;
|
|
3028
|
+
variantId: string;
|
|
3029
|
+
configId: string;
|
|
3030
3030
|
configName: string | null | undefined;
|
|
3031
3031
|
} | undefined>;
|
|
3032
|
-
getConfigVariantsWithDetailsByConfigId: (params:
|
|
3033
|
-
configId:
|
|
3034
|
-
limit:
|
|
3035
|
-
offset:
|
|
3032
|
+
getConfigVariantsWithDetailsByConfigId: (params: zod37.infer<zod37.ZodObject<{
|
|
3033
|
+
configId: zod37.ZodString;
|
|
3034
|
+
limit: zod37.ZodOptional<zod37.ZodNumber>;
|
|
3035
|
+
offset: zod37.ZodOptional<zod37.ZodNumber>;
|
|
3036
3036
|
}, better_auth0.$strip>>) => Promise<{
|
|
3037
3037
|
provider: string | null;
|
|
3038
3038
|
modelName: string | null;
|
|
3039
3039
|
jsonData: Record<string, unknown> | null;
|
|
3040
3040
|
latestVersion: {
|
|
3041
3041
|
version: number;
|
|
3042
|
-
variantId: string;
|
|
3043
3042
|
id: string;
|
|
3043
|
+
createdAt: Date;
|
|
3044
|
+
updatedAt: Date;
|
|
3045
|
+
variantId: string;
|
|
3044
3046
|
provider: string;
|
|
3045
3047
|
modelName: string;
|
|
3046
3048
|
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;
|
|
3054
3052
|
createdAt: Date;
|
|
3055
3053
|
updatedAt: Date;
|
|
3054
|
+
variantId: string;
|
|
3055
|
+
configId: string;
|
|
3056
3056
|
}[]>;
|
|
3057
|
-
createVariantAndLinkToConfig: (params:
|
|
3058
|
-
configId:
|
|
3059
|
-
name:
|
|
3060
|
-
provider:
|
|
3061
|
-
modelName:
|
|
3062
|
-
jsonData:
|
|
3057
|
+
createVariantAndLinkToConfig: (params: zod37.infer<zod37.ZodObject<{
|
|
3058
|
+
configId: zod37.ZodString;
|
|
3059
|
+
name: zod37.ZodString;
|
|
3060
|
+
provider: zod37.ZodString;
|
|
3061
|
+
modelName: zod37.ZodString;
|
|
3062
|
+
jsonData: zod37.ZodDefault<zod37.ZodOptional<zod37.ZodRecord<zod37.ZodString, zod37.ZodUnknown>>>;
|
|
3063
3063
|
}, better_auth0.$strip>>) => Promise<{
|
|
3064
3064
|
variant: {
|
|
3065
3065
|
name: string;
|
|
@@ -3069,25 +3069,25 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
3069
3069
|
};
|
|
3070
3070
|
version: {
|
|
3071
3071
|
version: number;
|
|
3072
|
-
variantId: string;
|
|
3073
3072
|
id: string;
|
|
3073
|
+
createdAt: Date;
|
|
3074
|
+
updatedAt: Date;
|
|
3075
|
+
variantId: string;
|
|
3074
3076
|
provider: string;
|
|
3075
3077
|
modelName: string;
|
|
3076
3078
|
jsonData: Record<string, unknown>;
|
|
3077
|
-
createdAt: Date;
|
|
3078
|
-
updatedAt: Date;
|
|
3079
3079
|
};
|
|
3080
3080
|
configVariant: {
|
|
3081
|
-
configId: string;
|
|
3082
|
-
variantId: string;
|
|
3083
3081
|
id: string;
|
|
3084
3082
|
createdAt: Date;
|
|
3085
3083
|
updatedAt: Date;
|
|
3084
|
+
variantId: string;
|
|
3085
|
+
configId: string;
|
|
3086
3086
|
};
|
|
3087
3087
|
}>;
|
|
3088
|
-
getVariantJsonDataForConfig: (params:
|
|
3089
|
-
configId:
|
|
3090
|
-
envSecret:
|
|
3088
|
+
getVariantJsonDataForConfig: (params: zod37.infer<zod37.ZodObject<{
|
|
3089
|
+
configId: zod37.ZodString;
|
|
3090
|
+
envSecret: zod37.ZodOptional<zod37.ZodString>;
|
|
3091
3091
|
}, better_auth0.$strip>>) => Promise<{
|
|
3092
3092
|
provider: string;
|
|
3093
3093
|
providerConfigId: string | null;
|
|
@@ -3098,63 +3098,63 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
3098
3098
|
modelName: string;
|
|
3099
3099
|
jsonData: Record<string, unknown>;
|
|
3100
3100
|
}>;
|
|
3101
|
-
createNewConfig: (params:
|
|
3102
|
-
name:
|
|
3101
|
+
createNewConfig: (params: zod37.infer<zod37.ZodObject<{
|
|
3102
|
+
name: zod37.ZodString;
|
|
3103
3103
|
}, better_auth0.$strip>>) => Promise<{
|
|
3104
|
+
slug: string;
|
|
3104
3105
|
name: string | undefined;
|
|
3105
3106
|
id: string;
|
|
3106
|
-
slug: string;
|
|
3107
3107
|
createdAt: Date;
|
|
3108
3108
|
updatedAt: Date;
|
|
3109
3109
|
} | undefined>;
|
|
3110
|
-
updateConfigName: (params:
|
|
3111
|
-
configId:
|
|
3112
|
-
newName:
|
|
3110
|
+
updateConfigName: (params: zod37.infer<zod37.ZodObject<{
|
|
3111
|
+
configId: zod37.ZodUUID;
|
|
3112
|
+
newName: zod37.ZodString;
|
|
3113
3113
|
}, better_auth0.$strip>>) => Promise<{
|
|
3114
|
+
slug: string;
|
|
3114
3115
|
name: string | undefined;
|
|
3115
3116
|
id: string;
|
|
3116
|
-
slug: string;
|
|
3117
3117
|
createdAt: Date;
|
|
3118
3118
|
updatedAt: Date;
|
|
3119
3119
|
} | undefined>;
|
|
3120
|
-
getConfigById: (params:
|
|
3121
|
-
configId:
|
|
3120
|
+
getConfigById: (params: zod37.infer<zod37.ZodObject<{
|
|
3121
|
+
configId: zod37.ZodUUID;
|
|
3122
3122
|
}, better_auth0.$strip>>) => Promise<{
|
|
3123
|
+
slug: string;
|
|
3123
3124
|
name: string | undefined;
|
|
3124
3125
|
id: string;
|
|
3125
|
-
slug: string;
|
|
3126
3126
|
createdAt: Date;
|
|
3127
3127
|
updatedAt: Date;
|
|
3128
3128
|
} | undefined>;
|
|
3129
|
-
deleteConfig: (params:
|
|
3130
|
-
configId:
|
|
3129
|
+
deleteConfig: (params: zod37.infer<zod37.ZodObject<{
|
|
3130
|
+
configId: zod37.ZodUUID;
|
|
3131
3131
|
}, better_auth0.$strip>>) => Promise<{
|
|
3132
|
+
slug: string;
|
|
3132
3133
|
name: string | undefined;
|
|
3133
3134
|
id: string;
|
|
3134
|
-
slug: string;
|
|
3135
3135
|
createdAt: Date;
|
|
3136
3136
|
updatedAt: Date;
|
|
3137
3137
|
} | undefined>;
|
|
3138
|
-
listConfigs: (params?:
|
|
3139
|
-
limit:
|
|
3140
|
-
offset:
|
|
3138
|
+
listConfigs: (params?: zod37.infer<zod37.ZodObject<{
|
|
3139
|
+
limit: zod37.ZodOptional<zod37.ZodNumber>;
|
|
3140
|
+
offset: zod37.ZodOptional<zod37.ZodNumber>;
|
|
3141
3141
|
}, better_auth0.$strip>>) => Promise<{
|
|
3142
|
+
slug: string;
|
|
3142
3143
|
name: string | undefined;
|
|
3143
3144
|
id: string;
|
|
3144
|
-
slug: string;
|
|
3145
3145
|
createdAt: Date;
|
|
3146
3146
|
updatedAt: Date;
|
|
3147
3147
|
}[]>;
|
|
3148
|
-
getConfigWithVariants: (params:
|
|
3149
|
-
configId:
|
|
3148
|
+
getConfigWithVariants: (params: zod37.infer<zod37.ZodObject<{
|
|
3149
|
+
configId: zod37.ZodUUID;
|
|
3150
3150
|
}, better_auth0.$strip>>) => Promise<{
|
|
3151
3151
|
provider: string | null;
|
|
3152
3152
|
modelName: string | null;
|
|
3153
3153
|
jsonData: Record<string, unknown> | null;
|
|
3154
3154
|
variantName: string | null;
|
|
3155
3155
|
id: string;
|
|
3156
|
-
name: string | undefined;
|
|
3157
3156
|
slug: string;
|
|
3157
|
+
name: string | undefined;
|
|
3158
3158
|
createdAt: Date;
|
|
3159
3159
|
updatedAt: Date;
|
|
3160
3160
|
variantId: string | null;
|