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