@llmops/core 0.3.2 → 0.3.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/{bun-sqlite-dialect-B5rfiYIH.cjs → bun-sqlite-dialect-B5odtOFX.cjs} +1 -1
- package/dist/db/index.cjs +2 -2
- package/dist/db/index.d.cts +1 -1
- package/dist/db/index.d.mts +1 -1
- package/dist/db/index.mjs +1 -1
- package/dist/{db-CCKBHjuz.cjs → db-BF1a1duC.cjs} +4 -4
- package/dist/{db-Bkg85wso.mjs → db-CoCzHm6p.mjs} +1 -1
- package/dist/{index-nsx8vXII.d.cts → index-BP_lIJcD.d.cts} +11 -11
- package/dist/{index-BMN3ZSTf.d.mts → index-yuxB_8bc.d.mts} +50 -50
- package/dist/index.cjs +28 -3
- package/dist/index.d.cts +384 -366
- package/dist/index.d.mts +708 -690
- package/dist/index.mjs +27 -2
- package/dist/{neon-dialect-DmI-frVR.cjs → neon-dialect-BQsMY2pg.cjs} +1 -1
- package/dist/{neon-dialect-q-8lApt2.cjs → neon-dialect-DSmsjY8m.cjs} +1 -1
- package/dist/{node-sqlite-dialect-uTc3IyPv.cjs → node-sqlite-dialect-BGjMUONa.cjs} +1 -1
- package/package.json +2 -2
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-yuxB_8bc.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";
|
|
@@ -1091,6 +1091,24 @@ declare const insertLLMRequestSchema: z$1.ZodObject<{
|
|
|
1091
1091
|
isStreaming: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
1092
1092
|
userId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
1093
1093
|
tags: z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
|
|
1094
|
+
guardrailResults: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
|
|
1095
|
+
results: z$1.ZodArray<z$1.ZodObject<{
|
|
1096
|
+
checkId: z$1.ZodString;
|
|
1097
|
+
functionId: z$1.ZodString;
|
|
1098
|
+
hookType: z$1.ZodEnum<{
|
|
1099
|
+
beforeRequestHook: "beforeRequestHook";
|
|
1100
|
+
afterRequestHook: "afterRequestHook";
|
|
1101
|
+
}>;
|
|
1102
|
+
verdict: z$1.ZodBoolean;
|
|
1103
|
+
latencyMs: z$1.ZodNumber;
|
|
1104
|
+
}, z$1.core.$strip>>;
|
|
1105
|
+
action: z$1.ZodEnum<{
|
|
1106
|
+
allowed: "allowed";
|
|
1107
|
+
blocked: "blocked";
|
|
1108
|
+
logged: "logged";
|
|
1109
|
+
}>;
|
|
1110
|
+
totalLatencyMs: z$1.ZodNumber;
|
|
1111
|
+
}, z$1.core.$strip>>>;
|
|
1094
1112
|
}, z$1.core.$strip>;
|
|
1095
1113
|
type LLMRequestInsert = z$1.infer<typeof insertLLMRequestSchema>;
|
|
1096
1114
|
/**
|
|
@@ -1132,10 +1150,10 @@ declare const costSummarySchema: z$1.ZodObject<{
|
|
|
1132
1150
|
tags: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodArray<z$1.ZodString>>>;
|
|
1133
1151
|
groupBy: z$1.ZodOptional<z$1.ZodEnum<{
|
|
1134
1152
|
provider: "provider";
|
|
1135
|
-
config: "config";
|
|
1136
1153
|
model: "model";
|
|
1137
1154
|
day: "day";
|
|
1138
1155
|
hour: "hour";
|
|
1156
|
+
config: "config";
|
|
1139
1157
|
}>>;
|
|
1140
1158
|
}, z$1.core.$strip>;
|
|
1141
1159
|
declare const createLLMRequestsDataLayer: (db: Kysely<Database>) => {
|
|
@@ -1150,15 +1168,13 @@ declare const createLLMRequestsDataLayer: (db: Kysely<Database>) => {
|
|
|
1150
1168
|
* Insert a single LLM request log
|
|
1151
1169
|
*/
|
|
1152
1170
|
insertRequest: (request: LLMRequestInsert) => Promise<{
|
|
1153
|
-
|
|
1154
|
-
createdAt: Date;
|
|
1155
|
-
updatedAt: Date;
|
|
1171
|
+
configId: string | null;
|
|
1156
1172
|
variantId: string | null;
|
|
1173
|
+
id: string;
|
|
1157
1174
|
provider: string;
|
|
1158
1175
|
environmentId: string | null;
|
|
1159
|
-
configId: string | null;
|
|
1160
|
-
providerConfigId: string | null;
|
|
1161
1176
|
requestId: string;
|
|
1177
|
+
providerConfigId: string | null;
|
|
1162
1178
|
model: string;
|
|
1163
1179
|
promptTokens: number;
|
|
1164
1180
|
completionTokens: number;
|
|
@@ -1175,7 +1191,7 @@ declare const createLLMRequestsDataLayer: (db: Kysely<Database>) => {
|
|
|
1175
1191
|
tags: Record<string, string>;
|
|
1176
1192
|
guardrailResults: {
|
|
1177
1193
|
results: {
|
|
1178
|
-
|
|
1194
|
+
checkId: string;
|
|
1179
1195
|
functionId: string;
|
|
1180
1196
|
hookType: "beforeRequestHook" | "afterRequestHook";
|
|
1181
1197
|
verdict: boolean;
|
|
@@ -1184,6 +1200,8 @@ declare const createLLMRequestsDataLayer: (db: Kysely<Database>) => {
|
|
|
1184
1200
|
action: "allowed" | "blocked" | "logged";
|
|
1185
1201
|
totalLatencyMs: number;
|
|
1186
1202
|
} | null;
|
|
1203
|
+
createdAt: Date;
|
|
1204
|
+
updatedAt: Date;
|
|
1187
1205
|
} | undefined>;
|
|
1188
1206
|
/**
|
|
1189
1207
|
* List LLM requests with filtering and pagination
|
|
@@ -1191,15 +1209,13 @@ declare const createLLMRequestsDataLayer: (db: Kysely<Database>) => {
|
|
|
1191
1209
|
*/
|
|
1192
1210
|
listRequests: (params?: z$1.infer<typeof listRequestsSchema>) => Promise<{
|
|
1193
1211
|
data: {
|
|
1194
|
-
|
|
1195
|
-
createdAt: Date;
|
|
1196
|
-
updatedAt: Date;
|
|
1212
|
+
configId: string | null;
|
|
1197
1213
|
variantId: string | null;
|
|
1214
|
+
id: string;
|
|
1198
1215
|
provider: string;
|
|
1199
1216
|
environmentId: string | null;
|
|
1200
|
-
configId: string | null;
|
|
1201
|
-
providerConfigId: string | null;
|
|
1202
1217
|
requestId: string;
|
|
1218
|
+
providerConfigId: string | null;
|
|
1203
1219
|
model: string;
|
|
1204
1220
|
promptTokens: number;
|
|
1205
1221
|
completionTokens: number;
|
|
@@ -1216,7 +1232,7 @@ declare const createLLMRequestsDataLayer: (db: Kysely<Database>) => {
|
|
|
1216
1232
|
tags: Record<string, string>;
|
|
1217
1233
|
guardrailResults: {
|
|
1218
1234
|
results: {
|
|
1219
|
-
|
|
1235
|
+
checkId: string;
|
|
1220
1236
|
functionId: string;
|
|
1221
1237
|
hookType: "beforeRequestHook" | "afterRequestHook";
|
|
1222
1238
|
verdict: boolean;
|
|
@@ -1225,6 +1241,8 @@ declare const createLLMRequestsDataLayer: (db: Kysely<Database>) => {
|
|
|
1225
1241
|
action: "allowed" | "blocked" | "logged";
|
|
1226
1242
|
totalLatencyMs: number;
|
|
1227
1243
|
} | null;
|
|
1244
|
+
createdAt: Date;
|
|
1245
|
+
updatedAt: Date;
|
|
1228
1246
|
}[];
|
|
1229
1247
|
total: number;
|
|
1230
1248
|
limit: number;
|
|
@@ -1234,15 +1252,13 @@ declare const createLLMRequestsDataLayer: (db: Kysely<Database>) => {
|
|
|
1234
1252
|
* Get a single request by requestId
|
|
1235
1253
|
*/
|
|
1236
1254
|
getRequestByRequestId: (requestId: string) => Promise<{
|
|
1237
|
-
|
|
1238
|
-
createdAt: Date;
|
|
1239
|
-
updatedAt: Date;
|
|
1255
|
+
configId: string | null;
|
|
1240
1256
|
variantId: string | null;
|
|
1257
|
+
id: string;
|
|
1241
1258
|
provider: string;
|
|
1242
1259
|
environmentId: string | null;
|
|
1243
|
-
configId: string | null;
|
|
1244
|
-
providerConfigId: string | null;
|
|
1245
1260
|
requestId: string;
|
|
1261
|
+
providerConfigId: string | null;
|
|
1246
1262
|
model: string;
|
|
1247
1263
|
promptTokens: number;
|
|
1248
1264
|
completionTokens: number;
|
|
@@ -1259,7 +1275,7 @@ declare const createLLMRequestsDataLayer: (db: Kysely<Database>) => {
|
|
|
1259
1275
|
tags: Record<string, string>;
|
|
1260
1276
|
guardrailResults: {
|
|
1261
1277
|
results: {
|
|
1262
|
-
|
|
1278
|
+
checkId: string;
|
|
1263
1279
|
functionId: string;
|
|
1264
1280
|
hookType: "beforeRequestHook" | "afterRequestHook";
|
|
1265
1281
|
verdict: boolean;
|
|
@@ -1268,6 +1284,8 @@ declare const createLLMRequestsDataLayer: (db: Kysely<Database>) => {
|
|
|
1268
1284
|
action: "allowed" | "blocked" | "logged";
|
|
1269
1285
|
totalLatencyMs: number;
|
|
1270
1286
|
} | null;
|
|
1287
|
+
createdAt: Date;
|
|
1288
|
+
updatedAt: Date;
|
|
1271
1289
|
} | undefined>;
|
|
1272
1290
|
/**
|
|
1273
1291
|
* Get total cost for a date range with optional filters
|
|
@@ -1373,10 +1391,10 @@ declare const createWorkspaceSettingsDataLayer: (db: Kysely<Database>) => {
|
|
|
1373
1391
|
getWorkspaceSettings: () => Promise<{
|
|
1374
1392
|
name: string | null;
|
|
1375
1393
|
id: string;
|
|
1376
|
-
createdAt: Date;
|
|
1377
|
-
updatedAt: Date;
|
|
1378
1394
|
setupComplete: boolean;
|
|
1379
1395
|
superAdminId: string | null;
|
|
1396
|
+
createdAt: Date;
|
|
1397
|
+
updatedAt: Date;
|
|
1380
1398
|
} | undefined>;
|
|
1381
1399
|
/**
|
|
1382
1400
|
* Update workspace settings
|
|
@@ -1384,10 +1402,10 @@ declare const createWorkspaceSettingsDataLayer: (db: Kysely<Database>) => {
|
|
|
1384
1402
|
updateWorkspaceSettings: (params: z$1.infer<typeof updateWorkspaceSettings>) => Promise<{
|
|
1385
1403
|
name: string | null;
|
|
1386
1404
|
id: string;
|
|
1387
|
-
createdAt: Date;
|
|
1388
|
-
updatedAt: Date;
|
|
1389
1405
|
setupComplete: boolean;
|
|
1390
1406
|
superAdminId: string | null;
|
|
1407
|
+
createdAt: Date;
|
|
1408
|
+
updatedAt: Date;
|
|
1391
1409
|
} | undefined>;
|
|
1392
1410
|
/**
|
|
1393
1411
|
* Get the super admin user ID
|
|
@@ -1407,10 +1425,10 @@ declare const createWorkspaceSettingsDataLayer: (db: Kysely<Database>) => {
|
|
|
1407
1425
|
markSetupComplete: () => Promise<{
|
|
1408
1426
|
name: string | null;
|
|
1409
1427
|
id: string;
|
|
1410
|
-
createdAt: Date;
|
|
1411
|
-
updatedAt: Date;
|
|
1412
1428
|
setupComplete: boolean;
|
|
1413
1429
|
superAdminId: string | null;
|
|
1430
|
+
createdAt: Date;
|
|
1431
|
+
updatedAt: Date;
|
|
1414
1432
|
} | undefined>;
|
|
1415
1433
|
};
|
|
1416
1434
|
//#endregion
|
|
@@ -1447,74 +1465,74 @@ declare const listProviderConfigs: z$1.ZodObject<{
|
|
|
1447
1465
|
}, z$1.core.$strip>;
|
|
1448
1466
|
declare const createProviderConfigsDataLayer: (db: Kysely<Database>) => {
|
|
1449
1467
|
createProviderConfig: (params: z$1.infer<typeof createProviderConfig>) => Promise<{
|
|
1450
|
-
slug: string | null;
|
|
1451
1468
|
name: string | null;
|
|
1452
1469
|
id: string;
|
|
1453
|
-
|
|
1454
|
-
updatedAt: Date;
|
|
1470
|
+
slug: string | null;
|
|
1455
1471
|
enabled: boolean;
|
|
1456
|
-
providerId: string;
|
|
1457
1472
|
config: Record<string, unknown>;
|
|
1473
|
+
providerId: string;
|
|
1474
|
+
createdAt: Date;
|
|
1475
|
+
updatedAt: Date;
|
|
1458
1476
|
} | undefined>;
|
|
1459
1477
|
updateProviderConfig: (params: z$1.infer<typeof updateProviderConfig>) => Promise<{
|
|
1460
|
-
slug: string | null;
|
|
1461
1478
|
name: string | null;
|
|
1462
1479
|
id: string;
|
|
1463
|
-
|
|
1464
|
-
updatedAt: Date;
|
|
1480
|
+
slug: string | null;
|
|
1465
1481
|
enabled: boolean;
|
|
1466
|
-
providerId: string;
|
|
1467
1482
|
config: Record<string, unknown>;
|
|
1483
|
+
providerId: string;
|
|
1484
|
+
createdAt: Date;
|
|
1485
|
+
updatedAt: Date;
|
|
1468
1486
|
} | undefined>;
|
|
1469
1487
|
getProviderConfigById: (params: z$1.infer<typeof getProviderConfigById>) => Promise<{
|
|
1470
|
-
slug: string | null;
|
|
1471
1488
|
name: string | null;
|
|
1472
1489
|
id: string;
|
|
1473
|
-
|
|
1474
|
-
updatedAt: Date;
|
|
1490
|
+
slug: string | null;
|
|
1475
1491
|
enabled: boolean;
|
|
1476
|
-
providerId: string;
|
|
1477
1492
|
config: Record<string, unknown>;
|
|
1493
|
+
providerId: string;
|
|
1494
|
+
createdAt: Date;
|
|
1495
|
+
updatedAt: Date;
|
|
1478
1496
|
} | undefined>;
|
|
1479
1497
|
getProviderConfigByProviderId: (params: z$1.infer<typeof getProviderConfigByProviderId>) => Promise<{
|
|
1480
|
-
slug: string | null;
|
|
1481
1498
|
name: string | null;
|
|
1482
1499
|
id: string;
|
|
1483
|
-
|
|
1484
|
-
updatedAt: Date;
|
|
1500
|
+
slug: string | null;
|
|
1485
1501
|
enabled: boolean;
|
|
1486
|
-
providerId: string;
|
|
1487
1502
|
config: Record<string, unknown>;
|
|
1503
|
+
providerId: string;
|
|
1504
|
+
createdAt: Date;
|
|
1505
|
+
updatedAt: Date;
|
|
1488
1506
|
} | undefined>;
|
|
1489
1507
|
getProviderConfigBySlug: (params: z$1.infer<typeof getProviderConfigBySlug>) => Promise<{
|
|
1490
|
-
slug: string | null;
|
|
1491
1508
|
name: string | null;
|
|
1492
1509
|
id: string;
|
|
1493
|
-
|
|
1494
|
-
updatedAt: Date;
|
|
1510
|
+
slug: string | null;
|
|
1495
1511
|
enabled: boolean;
|
|
1496
|
-
providerId: string;
|
|
1497
1512
|
config: Record<string, unknown>;
|
|
1513
|
+
providerId: string;
|
|
1514
|
+
createdAt: Date;
|
|
1515
|
+
updatedAt: Date;
|
|
1498
1516
|
} | undefined>;
|
|
1499
1517
|
deleteProviderConfig: (params: z$1.infer<typeof deleteProviderConfig>) => Promise<{
|
|
1500
|
-
slug: string | null;
|
|
1501
1518
|
name: string | null;
|
|
1502
1519
|
id: string;
|
|
1503
|
-
|
|
1504
|
-
updatedAt: Date;
|
|
1520
|
+
slug: string | null;
|
|
1505
1521
|
enabled: boolean;
|
|
1506
|
-
providerId: string;
|
|
1507
1522
|
config: Record<string, unknown>;
|
|
1523
|
+
providerId: string;
|
|
1524
|
+
createdAt: Date;
|
|
1525
|
+
updatedAt: Date;
|
|
1508
1526
|
} | undefined>;
|
|
1509
1527
|
listProviderConfigs: (params?: z$1.infer<typeof listProviderConfigs>) => Promise<{
|
|
1510
|
-
slug: string | null;
|
|
1511
1528
|
name: string | null;
|
|
1512
1529
|
id: string;
|
|
1513
|
-
|
|
1514
|
-
updatedAt: Date;
|
|
1530
|
+
slug: string | null;
|
|
1515
1531
|
enabled: boolean;
|
|
1516
|
-
providerId: string;
|
|
1517
1532
|
config: Record<string, unknown>;
|
|
1533
|
+
providerId: string;
|
|
1534
|
+
createdAt: Date;
|
|
1535
|
+
updatedAt: Date;
|
|
1518
1536
|
}[]>;
|
|
1519
1537
|
countProviderConfigs: () => Promise<number>;
|
|
1520
1538
|
/**
|
|
@@ -1522,14 +1540,14 @@ declare const createProviderConfigsDataLayer: (db: Kysely<Database>) => {
|
|
|
1522
1540
|
* Useful for the dashboard UI where you want to set/update a provider config
|
|
1523
1541
|
*/
|
|
1524
1542
|
upsertProviderConfig: (params: z$1.infer<typeof createProviderConfig>) => Promise<{
|
|
1525
|
-
slug: string | null;
|
|
1526
1543
|
name: string | null;
|
|
1527
1544
|
id: string;
|
|
1528
|
-
|
|
1529
|
-
updatedAt: Date;
|
|
1545
|
+
slug: string | null;
|
|
1530
1546
|
enabled: boolean;
|
|
1531
|
-
providerId: string;
|
|
1532
1547
|
config: Record<string, unknown>;
|
|
1548
|
+
providerId: string;
|
|
1549
|
+
createdAt: Date;
|
|
1550
|
+
updatedAt: Date;
|
|
1533
1551
|
} | undefined>;
|
|
1534
1552
|
};
|
|
1535
1553
|
//#endregion
|
|
@@ -1584,67 +1602,67 @@ declare const createGuardrailConfigsDataLayer: (db: Kysely<Database>) => {
|
|
|
1584
1602
|
createGuardrailConfig: (params: z$1.infer<typeof createGuardrailConfig>) => Promise<{
|
|
1585
1603
|
name: string;
|
|
1586
1604
|
id: string;
|
|
1587
|
-
createdAt: Date;
|
|
1588
|
-
updatedAt: Date;
|
|
1589
|
-
priority: number;
|
|
1590
|
-
enabled: boolean;
|
|
1591
1605
|
pluginId: string;
|
|
1592
1606
|
functionId: string;
|
|
1593
1607
|
hookType: string;
|
|
1594
1608
|
parameters: Record<string, unknown>;
|
|
1609
|
+
enabled: boolean;
|
|
1610
|
+
priority: number;
|
|
1595
1611
|
onFail: string;
|
|
1612
|
+
createdAt: Date;
|
|
1613
|
+
updatedAt: Date;
|
|
1596
1614
|
} | undefined>;
|
|
1597
1615
|
updateGuardrailConfig: (params: z$1.infer<typeof updateGuardrailConfig>) => Promise<{
|
|
1598
1616
|
name: string;
|
|
1599
1617
|
id: string;
|
|
1600
|
-
createdAt: Date;
|
|
1601
|
-
updatedAt: Date;
|
|
1602
|
-
priority: number;
|
|
1603
|
-
enabled: boolean;
|
|
1604
1618
|
pluginId: string;
|
|
1605
1619
|
functionId: string;
|
|
1606
1620
|
hookType: string;
|
|
1607
1621
|
parameters: Record<string, unknown>;
|
|
1622
|
+
enabled: boolean;
|
|
1623
|
+
priority: number;
|
|
1608
1624
|
onFail: string;
|
|
1625
|
+
createdAt: Date;
|
|
1626
|
+
updatedAt: Date;
|
|
1609
1627
|
} | undefined>;
|
|
1610
1628
|
getGuardrailConfigById: (params: z$1.infer<typeof getGuardrailConfigById>) => Promise<{
|
|
1611
1629
|
name: string;
|
|
1612
1630
|
id: string;
|
|
1613
|
-
createdAt: Date;
|
|
1614
|
-
updatedAt: Date;
|
|
1615
|
-
priority: number;
|
|
1616
|
-
enabled: boolean;
|
|
1617
1631
|
pluginId: string;
|
|
1618
1632
|
functionId: string;
|
|
1619
1633
|
hookType: string;
|
|
1620
1634
|
parameters: Record<string, unknown>;
|
|
1635
|
+
enabled: boolean;
|
|
1636
|
+
priority: number;
|
|
1621
1637
|
onFail: string;
|
|
1638
|
+
createdAt: Date;
|
|
1639
|
+
updatedAt: Date;
|
|
1622
1640
|
} | undefined>;
|
|
1623
1641
|
deleteGuardrailConfig: (params: z$1.infer<typeof deleteGuardrailConfig>) => Promise<{
|
|
1624
1642
|
name: string;
|
|
1625
1643
|
id: string;
|
|
1626
|
-
createdAt: Date;
|
|
1627
|
-
updatedAt: Date;
|
|
1628
|
-
priority: number;
|
|
1629
|
-
enabled: boolean;
|
|
1630
1644
|
pluginId: string;
|
|
1631
1645
|
functionId: string;
|
|
1632
1646
|
hookType: string;
|
|
1633
1647
|
parameters: Record<string, unknown>;
|
|
1648
|
+
enabled: boolean;
|
|
1649
|
+
priority: number;
|
|
1634
1650
|
onFail: string;
|
|
1651
|
+
createdAt: Date;
|
|
1652
|
+
updatedAt: Date;
|
|
1635
1653
|
} | undefined>;
|
|
1636
1654
|
listGuardrailConfigs: (params?: z$1.infer<typeof listGuardrailConfigs>) => Promise<{
|
|
1637
1655
|
name: string;
|
|
1638
1656
|
id: string;
|
|
1639
|
-
createdAt: Date;
|
|
1640
|
-
updatedAt: Date;
|
|
1641
|
-
priority: number;
|
|
1642
|
-
enabled: boolean;
|
|
1643
1657
|
pluginId: string;
|
|
1644
1658
|
functionId: string;
|
|
1645
1659
|
hookType: string;
|
|
1646
1660
|
parameters: Record<string, unknown>;
|
|
1661
|
+
enabled: boolean;
|
|
1662
|
+
priority: number;
|
|
1647
1663
|
onFail: string;
|
|
1664
|
+
createdAt: Date;
|
|
1665
|
+
updatedAt: Date;
|
|
1648
1666
|
}[]>;
|
|
1649
1667
|
countGuardrailConfigs: () => Promise<number>;
|
|
1650
1668
|
/**
|
|
@@ -1654,15 +1672,15 @@ declare const createGuardrailConfigsDataLayer: (db: Kysely<Database>) => {
|
|
|
1654
1672
|
getEnabledGuardrailsByHookType: (hookType: "beforeRequestHook" | "afterRequestHook") => Promise<{
|
|
1655
1673
|
name: string;
|
|
1656
1674
|
id: string;
|
|
1657
|
-
createdAt: Date;
|
|
1658
|
-
updatedAt: Date;
|
|
1659
|
-
priority: number;
|
|
1660
|
-
enabled: boolean;
|
|
1661
1675
|
pluginId: string;
|
|
1662
1676
|
functionId: string;
|
|
1663
1677
|
hookType: string;
|
|
1664
1678
|
parameters: Record<string, unknown>;
|
|
1679
|
+
enabled: boolean;
|
|
1680
|
+
priority: number;
|
|
1665
1681
|
onFail: string;
|
|
1682
|
+
createdAt: Date;
|
|
1683
|
+
updatedAt: Date;
|
|
1666
1684
|
}[]>;
|
|
1667
1685
|
};
|
|
1668
1686
|
//#endregion
|
|
@@ -1697,78 +1715,78 @@ declare const getOverrideByProviderAndGuardrail: z$1.ZodObject<{
|
|
|
1697
1715
|
declare const createProviderGuardrailOverridesDataLayer: (db: Kysely<Database>) => {
|
|
1698
1716
|
createProviderGuardrailOverride: (params: z$1.infer<typeof createProviderGuardrailOverride>) => Promise<{
|
|
1699
1717
|
id: string;
|
|
1700
|
-
createdAt: Date;
|
|
1701
|
-
updatedAt: Date;
|
|
1702
|
-
enabled: boolean;
|
|
1703
1718
|
parameters: Record<string, unknown> | null;
|
|
1719
|
+
enabled: boolean;
|
|
1704
1720
|
providerConfigId: string;
|
|
1705
1721
|
guardrailConfigId: string;
|
|
1722
|
+
createdAt: Date;
|
|
1723
|
+
updatedAt: Date;
|
|
1706
1724
|
} | undefined>;
|
|
1707
1725
|
updateProviderGuardrailOverride: (params: z$1.infer<typeof updateProviderGuardrailOverride>) => Promise<{
|
|
1708
1726
|
id: string;
|
|
1709
|
-
createdAt: Date;
|
|
1710
|
-
updatedAt: Date;
|
|
1711
|
-
enabled: boolean;
|
|
1712
1727
|
parameters: Record<string, unknown> | null;
|
|
1728
|
+
enabled: boolean;
|
|
1713
1729
|
providerConfigId: string;
|
|
1714
1730
|
guardrailConfigId: string;
|
|
1731
|
+
createdAt: Date;
|
|
1732
|
+
updatedAt: Date;
|
|
1715
1733
|
} | undefined>;
|
|
1716
1734
|
getOverrideById: (params: z$1.infer<typeof getOverrideById>) => Promise<{
|
|
1717
1735
|
id: string;
|
|
1718
|
-
createdAt: Date;
|
|
1719
|
-
updatedAt: Date;
|
|
1720
|
-
enabled: boolean;
|
|
1721
1736
|
parameters: Record<string, unknown> | null;
|
|
1737
|
+
enabled: boolean;
|
|
1722
1738
|
providerConfigId: string;
|
|
1723
1739
|
guardrailConfigId: string;
|
|
1740
|
+
createdAt: Date;
|
|
1741
|
+
updatedAt: Date;
|
|
1724
1742
|
} | undefined>;
|
|
1725
1743
|
deleteProviderGuardrailOverride: (params: z$1.infer<typeof deleteOverride>) => Promise<{
|
|
1726
1744
|
id: string;
|
|
1727
|
-
createdAt: Date;
|
|
1728
|
-
updatedAt: Date;
|
|
1729
|
-
enabled: boolean;
|
|
1730
1745
|
parameters: Record<string, unknown> | null;
|
|
1746
|
+
enabled: boolean;
|
|
1731
1747
|
providerConfigId: string;
|
|
1732
1748
|
guardrailConfigId: string;
|
|
1749
|
+
createdAt: Date;
|
|
1750
|
+
updatedAt: Date;
|
|
1733
1751
|
} | undefined>;
|
|
1734
1752
|
getOverridesByProviderConfigId: (params: z$1.infer<typeof getOverridesByProviderConfigId>) => Promise<{
|
|
1735
1753
|
id: string;
|
|
1736
|
-
createdAt: Date;
|
|
1737
|
-
updatedAt: Date;
|
|
1738
|
-
enabled: boolean;
|
|
1739
1754
|
parameters: Record<string, unknown> | null;
|
|
1755
|
+
enabled: boolean;
|
|
1740
1756
|
providerConfigId: string;
|
|
1741
1757
|
guardrailConfigId: string;
|
|
1758
|
+
createdAt: Date;
|
|
1759
|
+
updatedAt: Date;
|
|
1742
1760
|
}[]>;
|
|
1743
1761
|
getOverridesByGuardrailConfigId: (params: z$1.infer<typeof getOverridesByGuardrailConfigId>) => Promise<{
|
|
1744
1762
|
id: string;
|
|
1745
|
-
createdAt: Date;
|
|
1746
|
-
updatedAt: Date;
|
|
1747
|
-
enabled: boolean;
|
|
1748
1763
|
parameters: Record<string, unknown> | null;
|
|
1764
|
+
enabled: boolean;
|
|
1749
1765
|
providerConfigId: string;
|
|
1750
1766
|
guardrailConfigId: string;
|
|
1767
|
+
createdAt: Date;
|
|
1768
|
+
updatedAt: Date;
|
|
1751
1769
|
}[]>;
|
|
1752
1770
|
getOverrideByProviderAndGuardrail: (params: z$1.infer<typeof getOverrideByProviderAndGuardrail>) => Promise<{
|
|
1753
1771
|
id: string;
|
|
1754
|
-
createdAt: Date;
|
|
1755
|
-
updatedAt: Date;
|
|
1756
|
-
enabled: boolean;
|
|
1757
1772
|
parameters: Record<string, unknown> | null;
|
|
1773
|
+
enabled: boolean;
|
|
1758
1774
|
providerConfigId: string;
|
|
1759
1775
|
guardrailConfigId: string;
|
|
1776
|
+
createdAt: Date;
|
|
1777
|
+
updatedAt: Date;
|
|
1760
1778
|
} | undefined>;
|
|
1761
1779
|
/**
|
|
1762
1780
|
* Upsert provider guardrail override - creates if not exists, updates if exists
|
|
1763
1781
|
*/
|
|
1764
1782
|
upsertProviderGuardrailOverride: (params: z$1.infer<typeof createProviderGuardrailOverride>) => Promise<{
|
|
1765
1783
|
id: string;
|
|
1766
|
-
createdAt: Date;
|
|
1767
|
-
updatedAt: Date;
|
|
1768
|
-
enabled: boolean;
|
|
1769
1784
|
parameters: Record<string, unknown> | null;
|
|
1785
|
+
enabled: boolean;
|
|
1770
1786
|
providerConfigId: string;
|
|
1771
1787
|
guardrailConfigId: string;
|
|
1788
|
+
createdAt: Date;
|
|
1789
|
+
updatedAt: Date;
|
|
1772
1790
|
} | undefined>;
|
|
1773
1791
|
/**
|
|
1774
1792
|
* Delete all overrides for a guardrail config
|
|
@@ -1782,22 +1800,22 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
1782
1800
|
getWorkspaceSettings: () => Promise<{
|
|
1783
1801
|
name: string | null;
|
|
1784
1802
|
id: string;
|
|
1785
|
-
createdAt: Date;
|
|
1786
|
-
updatedAt: Date;
|
|
1787
1803
|
setupComplete: boolean;
|
|
1788
1804
|
superAdminId: string | null;
|
|
1805
|
+
createdAt: Date;
|
|
1806
|
+
updatedAt: Date;
|
|
1789
1807
|
} | undefined>;
|
|
1790
|
-
updateWorkspaceSettings: (params:
|
|
1791
|
-
name:
|
|
1792
|
-
setupComplete:
|
|
1793
|
-
superAdminId:
|
|
1808
|
+
updateWorkspaceSettings: (params: zod0.infer<zod0.ZodObject<{
|
|
1809
|
+
name: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
|
|
1810
|
+
setupComplete: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
1811
|
+
superAdminId: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
|
|
1794
1812
|
}, better_auth0.$strip>>) => Promise<{
|
|
1795
1813
|
name: string | null;
|
|
1796
1814
|
id: string;
|
|
1797
|
-
createdAt: Date;
|
|
1798
|
-
updatedAt: Date;
|
|
1799
1815
|
setupComplete: boolean;
|
|
1800
1816
|
superAdminId: string | null;
|
|
1817
|
+
createdAt: Date;
|
|
1818
|
+
updatedAt: Date;
|
|
1801
1819
|
} | undefined>;
|
|
1802
1820
|
getSuperAdminId: () => Promise<string | null>;
|
|
1803
1821
|
setSuperAdminId: (userId: string) => Promise<boolean>;
|
|
@@ -1805,642 +1823,640 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
1805
1823
|
markSetupComplete: () => Promise<{
|
|
1806
1824
|
name: string | null;
|
|
1807
1825
|
id: string;
|
|
1808
|
-
createdAt: Date;
|
|
1809
|
-
updatedAt: Date;
|
|
1810
1826
|
setupComplete: boolean;
|
|
1811
1827
|
superAdminId: string | null;
|
|
1828
|
+
createdAt: Date;
|
|
1829
|
+
updatedAt: Date;
|
|
1812
1830
|
} | undefined>;
|
|
1813
|
-
createVariantVersion: (params:
|
|
1814
|
-
variantId:
|
|
1815
|
-
provider:
|
|
1816
|
-
modelName:
|
|
1817
|
-
jsonData:
|
|
1831
|
+
createVariantVersion: (params: zod0.infer<zod0.ZodObject<{
|
|
1832
|
+
variantId: zod0.ZodString;
|
|
1833
|
+
provider: zod0.ZodString;
|
|
1834
|
+
modelName: zod0.ZodString;
|
|
1835
|
+
jsonData: zod0.ZodDefault<zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>>>;
|
|
1818
1836
|
}, better_auth0.$strip>>) => Promise<{
|
|
1819
1837
|
version: number;
|
|
1820
|
-
id: string;
|
|
1821
|
-
createdAt: Date;
|
|
1822
|
-
updatedAt: Date;
|
|
1823
1838
|
variantId: string;
|
|
1839
|
+
id: string;
|
|
1824
1840
|
provider: string;
|
|
1825
1841
|
modelName: string;
|
|
1826
1842
|
jsonData: Record<string, unknown>;
|
|
1843
|
+
createdAt: Date;
|
|
1844
|
+
updatedAt: Date;
|
|
1827
1845
|
} | undefined>;
|
|
1828
|
-
getVariantVersionById: (params:
|
|
1829
|
-
id:
|
|
1846
|
+
getVariantVersionById: (params: zod0.infer<zod0.ZodObject<{
|
|
1847
|
+
id: zod0.ZodString;
|
|
1830
1848
|
}, better_auth0.$strip>>) => Promise<{
|
|
1831
1849
|
version: number;
|
|
1832
|
-
id: string;
|
|
1833
|
-
createdAt: Date;
|
|
1834
|
-
updatedAt: Date;
|
|
1835
1850
|
variantId: string;
|
|
1851
|
+
id: string;
|
|
1836
1852
|
provider: string;
|
|
1837
1853
|
modelName: string;
|
|
1838
1854
|
jsonData: Record<string, unknown>;
|
|
1855
|
+
createdAt: Date;
|
|
1856
|
+
updatedAt: Date;
|
|
1839
1857
|
} | undefined>;
|
|
1840
|
-
getVariantVersionsByVariantId: (params:
|
|
1841
|
-
variantId:
|
|
1842
|
-
limit:
|
|
1843
|
-
offset:
|
|
1858
|
+
getVariantVersionsByVariantId: (params: zod0.infer<zod0.ZodObject<{
|
|
1859
|
+
variantId: zod0.ZodString;
|
|
1860
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1861
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1844
1862
|
}, better_auth0.$strip>>) => Promise<{
|
|
1845
1863
|
version: number;
|
|
1846
|
-
id: string;
|
|
1847
|
-
createdAt: Date;
|
|
1848
|
-
updatedAt: Date;
|
|
1849
1864
|
variantId: string;
|
|
1865
|
+
id: string;
|
|
1850
1866
|
provider: string;
|
|
1851
1867
|
modelName: string;
|
|
1852
1868
|
jsonData: Record<string, unknown>;
|
|
1869
|
+
createdAt: Date;
|
|
1870
|
+
updatedAt: Date;
|
|
1853
1871
|
}[]>;
|
|
1854
|
-
getLatestVariantVersion: (params:
|
|
1855
|
-
variantId:
|
|
1872
|
+
getLatestVariantVersion: (params: zod0.infer<zod0.ZodObject<{
|
|
1873
|
+
variantId: zod0.ZodString;
|
|
1856
1874
|
}, better_auth0.$strip>>) => Promise<{
|
|
1857
1875
|
version: number;
|
|
1858
|
-
id: string;
|
|
1859
|
-
createdAt: Date;
|
|
1860
|
-
updatedAt: Date;
|
|
1861
1876
|
variantId: string;
|
|
1877
|
+
id: string;
|
|
1862
1878
|
provider: string;
|
|
1863
1879
|
modelName: string;
|
|
1864
1880
|
jsonData: Record<string, unknown>;
|
|
1881
|
+
createdAt: Date;
|
|
1882
|
+
updatedAt: Date;
|
|
1865
1883
|
} | undefined>;
|
|
1866
|
-
getVariantVersionByNumber: (params:
|
|
1867
|
-
variantId:
|
|
1868
|
-
version:
|
|
1884
|
+
getVariantVersionByNumber: (params: zod0.infer<zod0.ZodObject<{
|
|
1885
|
+
variantId: zod0.ZodString;
|
|
1886
|
+
version: zod0.ZodNumber;
|
|
1869
1887
|
}, better_auth0.$strip>>) => Promise<{
|
|
1870
1888
|
version: number;
|
|
1871
|
-
id: string;
|
|
1872
|
-
createdAt: Date;
|
|
1873
|
-
updatedAt: Date;
|
|
1874
1889
|
variantId: string;
|
|
1890
|
+
id: string;
|
|
1875
1891
|
provider: string;
|
|
1876
1892
|
modelName: string;
|
|
1877
1893
|
jsonData: Record<string, unknown>;
|
|
1894
|
+
createdAt: Date;
|
|
1895
|
+
updatedAt: Date;
|
|
1878
1896
|
} | undefined>;
|
|
1879
|
-
deleteVariantVersion: (params:
|
|
1880
|
-
id:
|
|
1897
|
+
deleteVariantVersion: (params: zod0.infer<zod0.ZodObject<{
|
|
1898
|
+
id: zod0.ZodString;
|
|
1881
1899
|
}, better_auth0.$strip>>) => Promise<{
|
|
1882
1900
|
version: number;
|
|
1883
|
-
id: string;
|
|
1884
|
-
createdAt: Date;
|
|
1885
|
-
updatedAt: Date;
|
|
1886
1901
|
variantId: string;
|
|
1902
|
+
id: string;
|
|
1887
1903
|
provider: string;
|
|
1888
1904
|
modelName: string;
|
|
1889
1905
|
jsonData: Record<string, unknown>;
|
|
1906
|
+
createdAt: Date;
|
|
1907
|
+
updatedAt: Date;
|
|
1890
1908
|
} | undefined>;
|
|
1891
|
-
deleteVariantVersionsByVariantId: (params:
|
|
1892
|
-
variantId:
|
|
1909
|
+
deleteVariantVersionsByVariantId: (params: zod0.infer<zod0.ZodObject<{
|
|
1910
|
+
variantId: zod0.ZodString;
|
|
1893
1911
|
}, better_auth0.$strip>>) => Promise<{
|
|
1894
1912
|
version: number;
|
|
1913
|
+
variantId: string;
|
|
1895
1914
|
id: string;
|
|
1896
|
-
createdAt: Date;
|
|
1897
|
-
updatedAt: Date;
|
|
1898
|
-
variantId: string;
|
|
1899
1915
|
provider: string;
|
|
1900
1916
|
modelName: string;
|
|
1901
1917
|
jsonData: Record<string, unknown>;
|
|
1918
|
+
createdAt: Date;
|
|
1919
|
+
updatedAt: Date;
|
|
1902
1920
|
}[]>;
|
|
1903
|
-
getVariantVersionWithVariant: (params:
|
|
1904
|
-
id:
|
|
1921
|
+
getVariantVersionWithVariant: (params: zod0.infer<zod0.ZodObject<{
|
|
1922
|
+
id: zod0.ZodString;
|
|
1905
1923
|
}, better_auth0.$strip>>) => Promise<{
|
|
1906
1924
|
version: number;
|
|
1907
|
-
id: string;
|
|
1908
|
-
createdAt: Date;
|
|
1909
|
-
updatedAt: Date;
|
|
1910
1925
|
variantId: string;
|
|
1926
|
+
id: string;
|
|
1911
1927
|
provider: string;
|
|
1912
1928
|
modelName: string;
|
|
1913
1929
|
jsonData: Record<string, unknown>;
|
|
1930
|
+
createdAt: Date;
|
|
1931
|
+
updatedAt: Date;
|
|
1914
1932
|
variantName: string;
|
|
1915
1933
|
} | undefined>;
|
|
1916
|
-
getVariantVersionsWithVariantByVariantId: (params:
|
|
1917
|
-
variantId:
|
|
1918
|
-
limit:
|
|
1919
|
-
offset:
|
|
1934
|
+
getVariantVersionsWithVariantByVariantId: (params: zod0.infer<zod0.ZodObject<{
|
|
1935
|
+
variantId: zod0.ZodString;
|
|
1936
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1937
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1920
1938
|
}, better_auth0.$strip>>) => Promise<{
|
|
1921
1939
|
version: number;
|
|
1922
|
-
id: string;
|
|
1923
|
-
createdAt: Date;
|
|
1924
|
-
updatedAt: Date;
|
|
1925
1940
|
variantId: string;
|
|
1941
|
+
id: string;
|
|
1926
1942
|
provider: string;
|
|
1927
1943
|
modelName: string;
|
|
1928
1944
|
jsonData: Record<string, unknown>;
|
|
1945
|
+
createdAt: Date;
|
|
1946
|
+
updatedAt: Date;
|
|
1929
1947
|
variantName: string;
|
|
1930
1948
|
}[]>;
|
|
1931
|
-
createVariant: (params:
|
|
1932
|
-
name:
|
|
1949
|
+
createVariant: (params: zod0.infer<zod0.ZodObject<{
|
|
1950
|
+
name: zod0.ZodString;
|
|
1933
1951
|
}, better_auth0.$strip>>) => Promise<{
|
|
1934
1952
|
name: string;
|
|
1935
1953
|
id: string;
|
|
1936
1954
|
createdAt: Date;
|
|
1937
1955
|
updatedAt: Date;
|
|
1938
1956
|
} | undefined>;
|
|
1939
|
-
updateVariant: (params:
|
|
1940
|
-
variantId:
|
|
1941
|
-
name:
|
|
1957
|
+
updateVariant: (params: zod0.infer<zod0.ZodObject<{
|
|
1958
|
+
variantId: zod0.ZodString;
|
|
1959
|
+
name: zod0.ZodOptional<zod0.ZodString>;
|
|
1942
1960
|
}, better_auth0.$strip>>) => Promise<{
|
|
1943
1961
|
name: string;
|
|
1944
1962
|
id: string;
|
|
1945
1963
|
createdAt: Date;
|
|
1946
1964
|
updatedAt: Date;
|
|
1947
1965
|
} | undefined>;
|
|
1948
|
-
getVariantById: (params:
|
|
1949
|
-
variantId:
|
|
1966
|
+
getVariantById: (params: zod0.infer<zod0.ZodObject<{
|
|
1967
|
+
variantId: zod0.ZodString;
|
|
1950
1968
|
}, better_auth0.$strip>>) => Promise<{
|
|
1951
1969
|
name: string;
|
|
1952
1970
|
id: string;
|
|
1953
1971
|
createdAt: Date;
|
|
1954
1972
|
updatedAt: Date;
|
|
1955
1973
|
} | undefined>;
|
|
1956
|
-
getVariantWithLatestVersion: (params:
|
|
1957
|
-
variantId:
|
|
1974
|
+
getVariantWithLatestVersion: (params: zod0.infer<zod0.ZodObject<{
|
|
1975
|
+
variantId: zod0.ZodString;
|
|
1958
1976
|
}, better_auth0.$strip>>) => Promise<{
|
|
1959
1977
|
latestVersion: {
|
|
1960
1978
|
version: number;
|
|
1961
|
-
id: string;
|
|
1962
|
-
createdAt: Date;
|
|
1963
|
-
updatedAt: Date;
|
|
1964
1979
|
variantId: string;
|
|
1980
|
+
id: string;
|
|
1965
1981
|
provider: string;
|
|
1966
1982
|
modelName: string;
|
|
1967
1983
|
jsonData: Record<string, unknown>;
|
|
1984
|
+
createdAt: Date;
|
|
1985
|
+
updatedAt: Date;
|
|
1968
1986
|
} | null;
|
|
1969
1987
|
name: string;
|
|
1970
1988
|
id: string;
|
|
1971
1989
|
createdAt: Date;
|
|
1972
1990
|
updatedAt: Date;
|
|
1973
1991
|
} | undefined>;
|
|
1974
|
-
deleteVariant: (params:
|
|
1975
|
-
variantId:
|
|
1992
|
+
deleteVariant: (params: zod0.infer<zod0.ZodObject<{
|
|
1993
|
+
variantId: zod0.ZodString;
|
|
1976
1994
|
}, better_auth0.$strip>>) => Promise<{
|
|
1977
1995
|
name: string;
|
|
1978
1996
|
id: string;
|
|
1979
1997
|
createdAt: Date;
|
|
1980
1998
|
updatedAt: Date;
|
|
1981
1999
|
} | undefined>;
|
|
1982
|
-
listVariants: (params?:
|
|
1983
|
-
limit:
|
|
1984
|
-
offset:
|
|
2000
|
+
listVariants: (params?: zod0.infer<zod0.ZodObject<{
|
|
2001
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2002
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1985
2003
|
}, better_auth0.$strip>>) => Promise<{
|
|
1986
2004
|
name: string;
|
|
1987
2005
|
id: string;
|
|
1988
2006
|
createdAt: Date;
|
|
1989
2007
|
updatedAt: Date;
|
|
1990
2008
|
}[]>;
|
|
1991
|
-
listVariantsWithLatestVersion: (params?:
|
|
1992
|
-
limit:
|
|
1993
|
-
offset:
|
|
2009
|
+
listVariantsWithLatestVersion: (params?: zod0.infer<zod0.ZodObject<{
|
|
2010
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2011
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1994
2012
|
}, better_auth0.$strip>>) => Promise<{
|
|
1995
2013
|
latestVersion: {
|
|
1996
2014
|
version: number;
|
|
1997
|
-
id: string;
|
|
1998
|
-
createdAt: Date;
|
|
1999
|
-
updatedAt: Date;
|
|
2000
2015
|
variantId: string;
|
|
2016
|
+
id: string;
|
|
2001
2017
|
provider: string;
|
|
2002
2018
|
modelName: string;
|
|
2003
2019
|
jsonData: Record<string, unknown>;
|
|
2020
|
+
createdAt: Date;
|
|
2021
|
+
updatedAt: Date;
|
|
2004
2022
|
} | null;
|
|
2005
2023
|
name: string;
|
|
2006
2024
|
id: string;
|
|
2007
2025
|
createdAt: Date;
|
|
2008
2026
|
updatedAt: Date;
|
|
2009
2027
|
}[]>;
|
|
2010
|
-
createTargetingRule: (params:
|
|
2011
|
-
environmentId:
|
|
2012
|
-
configId:
|
|
2013
|
-
configVariantId:
|
|
2014
|
-
variantVersionId:
|
|
2015
|
-
weight:
|
|
2016
|
-
priority:
|
|
2017
|
-
enabled:
|
|
2018
|
-
conditions:
|
|
2028
|
+
createTargetingRule: (params: zod0.infer<zod0.ZodObject<{
|
|
2029
|
+
environmentId: zod0.ZodString;
|
|
2030
|
+
configId: zod0.ZodString;
|
|
2031
|
+
configVariantId: zod0.ZodString;
|
|
2032
|
+
variantVersionId: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
|
|
2033
|
+
weight: zod0.ZodDefault<zod0.ZodOptional<zod0.ZodNumber>>;
|
|
2034
|
+
priority: zod0.ZodDefault<zod0.ZodOptional<zod0.ZodNumber>>;
|
|
2035
|
+
enabled: zod0.ZodDefault<zod0.ZodOptional<zod0.ZodBoolean>>;
|
|
2036
|
+
conditions: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>>>;
|
|
2019
2037
|
}, better_auth0.$strip>>) => Promise<{
|
|
2038
|
+
configId: string;
|
|
2020
2039
|
id: string;
|
|
2021
|
-
createdAt: Date;
|
|
2022
|
-
updatedAt: Date;
|
|
2023
2040
|
environmentId: string;
|
|
2024
|
-
|
|
2041
|
+
enabled: boolean;
|
|
2042
|
+
priority: number;
|
|
2025
2043
|
configVariantId: string;
|
|
2026
2044
|
variantVersionId: string | null;
|
|
2027
2045
|
weight: number;
|
|
2028
|
-
priority: number;
|
|
2029
|
-
enabled: boolean;
|
|
2030
2046
|
conditions: Record<string, unknown>;
|
|
2047
|
+
createdAt: Date;
|
|
2048
|
+
updatedAt: Date;
|
|
2031
2049
|
} | undefined>;
|
|
2032
|
-
updateTargetingRule: (params:
|
|
2033
|
-
id:
|
|
2034
|
-
variantVersionId:
|
|
2035
|
-
weight:
|
|
2036
|
-
priority:
|
|
2037
|
-
enabled:
|
|
2038
|
-
conditions:
|
|
2050
|
+
updateTargetingRule: (params: zod0.infer<zod0.ZodObject<{
|
|
2051
|
+
id: zod0.ZodString;
|
|
2052
|
+
variantVersionId: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
|
|
2053
|
+
weight: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2054
|
+
priority: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2055
|
+
enabled: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
2056
|
+
conditions: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>>>;
|
|
2039
2057
|
}, better_auth0.$strip>>) => Promise<{
|
|
2058
|
+
configId: string;
|
|
2040
2059
|
id: string;
|
|
2041
|
-
createdAt: Date;
|
|
2042
|
-
updatedAt: Date;
|
|
2043
2060
|
environmentId: string;
|
|
2044
|
-
|
|
2061
|
+
enabled: boolean;
|
|
2062
|
+
priority: number;
|
|
2045
2063
|
configVariantId: string;
|
|
2046
2064
|
variantVersionId: string | null;
|
|
2047
2065
|
weight: number;
|
|
2048
|
-
priority: number;
|
|
2049
|
-
enabled: boolean;
|
|
2050
2066
|
conditions: Record<string, unknown>;
|
|
2067
|
+
createdAt: Date;
|
|
2068
|
+
updatedAt: Date;
|
|
2051
2069
|
} | undefined>;
|
|
2052
|
-
getTargetingRuleById: (params:
|
|
2053
|
-
id:
|
|
2070
|
+
getTargetingRuleById: (params: zod0.infer<zod0.ZodObject<{
|
|
2071
|
+
id: zod0.ZodString;
|
|
2054
2072
|
}, better_auth0.$strip>>) => Promise<{
|
|
2073
|
+
configId: string;
|
|
2055
2074
|
id: string;
|
|
2056
|
-
createdAt: Date;
|
|
2057
|
-
updatedAt: Date;
|
|
2058
2075
|
environmentId: string;
|
|
2059
|
-
|
|
2076
|
+
enabled: boolean;
|
|
2077
|
+
priority: number;
|
|
2060
2078
|
configVariantId: string;
|
|
2061
2079
|
variantVersionId: string | null;
|
|
2062
2080
|
weight: number;
|
|
2063
|
-
priority: number;
|
|
2064
|
-
enabled: boolean;
|
|
2065
2081
|
conditions: Record<string, unknown>;
|
|
2082
|
+
createdAt: Date;
|
|
2083
|
+
updatedAt: Date;
|
|
2066
2084
|
} | undefined>;
|
|
2067
|
-
getTargetingRulesByConfigId: (params:
|
|
2068
|
-
configId:
|
|
2069
|
-
limit:
|
|
2070
|
-
offset:
|
|
2085
|
+
getTargetingRulesByConfigId: (params: zod0.infer<zod0.ZodObject<{
|
|
2086
|
+
configId: zod0.ZodString;
|
|
2087
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2088
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2071
2089
|
}, better_auth0.$strip>>) => Promise<{
|
|
2090
|
+
configId: string;
|
|
2072
2091
|
id: string;
|
|
2073
|
-
createdAt: Date;
|
|
2074
|
-
updatedAt: Date;
|
|
2075
2092
|
environmentId: string;
|
|
2076
|
-
|
|
2093
|
+
enabled: boolean;
|
|
2094
|
+
priority: number;
|
|
2077
2095
|
configVariantId: string;
|
|
2078
2096
|
variantVersionId: string | null;
|
|
2079
2097
|
weight: number;
|
|
2080
|
-
priority: number;
|
|
2081
|
-
enabled: boolean;
|
|
2082
2098
|
conditions: Record<string, unknown>;
|
|
2099
|
+
createdAt: Date;
|
|
2100
|
+
updatedAt: Date;
|
|
2083
2101
|
}[]>;
|
|
2084
|
-
getTargetingRulesByEnvironmentId: (params:
|
|
2085
|
-
environmentId:
|
|
2086
|
-
limit:
|
|
2087
|
-
offset:
|
|
2102
|
+
getTargetingRulesByEnvironmentId: (params: zod0.infer<zod0.ZodObject<{
|
|
2103
|
+
environmentId: zod0.ZodString;
|
|
2104
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2105
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2088
2106
|
}, better_auth0.$strip>>) => Promise<{
|
|
2107
|
+
configId: string;
|
|
2089
2108
|
id: string;
|
|
2090
|
-
createdAt: Date;
|
|
2091
|
-
updatedAt: Date;
|
|
2092
2109
|
environmentId: string;
|
|
2093
|
-
|
|
2110
|
+
enabled: boolean;
|
|
2111
|
+
priority: number;
|
|
2094
2112
|
configVariantId: string;
|
|
2095
2113
|
variantVersionId: string | null;
|
|
2096
2114
|
weight: number;
|
|
2097
|
-
priority: number;
|
|
2098
|
-
enabled: boolean;
|
|
2099
2115
|
conditions: Record<string, unknown>;
|
|
2116
|
+
createdAt: Date;
|
|
2117
|
+
updatedAt: Date;
|
|
2100
2118
|
}[]>;
|
|
2101
|
-
getTargetingRulesByConfigAndEnvironment: (params:
|
|
2102
|
-
configId:
|
|
2103
|
-
environmentId:
|
|
2119
|
+
getTargetingRulesByConfigAndEnvironment: (params: zod0.infer<zod0.ZodObject<{
|
|
2120
|
+
configId: zod0.ZodString;
|
|
2121
|
+
environmentId: zod0.ZodString;
|
|
2104
2122
|
}, better_auth0.$strip>>) => Promise<{
|
|
2123
|
+
configId: string;
|
|
2105
2124
|
id: string;
|
|
2106
|
-
createdAt: Date;
|
|
2107
|
-
updatedAt: Date;
|
|
2108
2125
|
environmentId: string;
|
|
2109
|
-
|
|
2126
|
+
enabled: boolean;
|
|
2127
|
+
priority: number;
|
|
2110
2128
|
configVariantId: string;
|
|
2111
2129
|
variantVersionId: string | null;
|
|
2112
2130
|
weight: number;
|
|
2113
|
-
priority: number;
|
|
2114
|
-
enabled: boolean;
|
|
2115
2131
|
conditions: Record<string, unknown>;
|
|
2132
|
+
createdAt: Date;
|
|
2133
|
+
updatedAt: Date;
|
|
2116
2134
|
}[]>;
|
|
2117
|
-
deleteTargetingRule: (params:
|
|
2118
|
-
id:
|
|
2135
|
+
deleteTargetingRule: (params: zod0.infer<zod0.ZodObject<{
|
|
2136
|
+
id: zod0.ZodString;
|
|
2119
2137
|
}, better_auth0.$strip>>) => Promise<{
|
|
2138
|
+
configId: string;
|
|
2120
2139
|
id: string;
|
|
2121
|
-
createdAt: Date;
|
|
2122
|
-
updatedAt: Date;
|
|
2123
2140
|
environmentId: string;
|
|
2124
|
-
|
|
2141
|
+
enabled: boolean;
|
|
2142
|
+
priority: number;
|
|
2125
2143
|
configVariantId: string;
|
|
2126
2144
|
variantVersionId: string | null;
|
|
2127
2145
|
weight: number;
|
|
2128
|
-
priority: number;
|
|
2129
|
-
enabled: boolean;
|
|
2130
2146
|
conditions: Record<string, unknown>;
|
|
2147
|
+
createdAt: Date;
|
|
2148
|
+
updatedAt: Date;
|
|
2131
2149
|
} | undefined>;
|
|
2132
|
-
deleteTargetingRulesByConfigId: (params:
|
|
2133
|
-
configId:
|
|
2150
|
+
deleteTargetingRulesByConfigId: (params: zod0.infer<zod0.ZodObject<{
|
|
2151
|
+
configId: zod0.ZodString;
|
|
2134
2152
|
}, better_auth0.$strip>>) => Promise<{
|
|
2153
|
+
configId: string;
|
|
2135
2154
|
id: string;
|
|
2136
|
-
createdAt: Date;
|
|
2137
|
-
updatedAt: Date;
|
|
2138
2155
|
environmentId: string;
|
|
2139
|
-
|
|
2156
|
+
enabled: boolean;
|
|
2157
|
+
priority: number;
|
|
2140
2158
|
configVariantId: string;
|
|
2141
2159
|
variantVersionId: string | null;
|
|
2142
2160
|
weight: number;
|
|
2143
|
-
priority: number;
|
|
2144
|
-
enabled: boolean;
|
|
2145
2161
|
conditions: Record<string, unknown>;
|
|
2162
|
+
createdAt: Date;
|
|
2163
|
+
updatedAt: Date;
|
|
2146
2164
|
}[]>;
|
|
2147
|
-
deleteTargetingRulesByEnvironmentId: (params:
|
|
2148
|
-
environmentId:
|
|
2165
|
+
deleteTargetingRulesByEnvironmentId: (params: zod0.infer<zod0.ZodObject<{
|
|
2166
|
+
environmentId: zod0.ZodString;
|
|
2149
2167
|
}, better_auth0.$strip>>) => Promise<{
|
|
2168
|
+
configId: string;
|
|
2150
2169
|
id: string;
|
|
2151
|
-
createdAt: Date;
|
|
2152
|
-
updatedAt: Date;
|
|
2153
2170
|
environmentId: string;
|
|
2154
|
-
|
|
2171
|
+
enabled: boolean;
|
|
2172
|
+
priority: number;
|
|
2155
2173
|
configVariantId: string;
|
|
2156
2174
|
variantVersionId: string | null;
|
|
2157
2175
|
weight: number;
|
|
2158
|
-
priority: number;
|
|
2159
|
-
enabled: boolean;
|
|
2160
2176
|
conditions: Record<string, unknown>;
|
|
2177
|
+
createdAt: Date;
|
|
2178
|
+
updatedAt: Date;
|
|
2161
2179
|
}[]>;
|
|
2162
|
-
listTargetingRules: (params?:
|
|
2163
|
-
limit:
|
|
2164
|
-
offset:
|
|
2180
|
+
listTargetingRules: (params?: zod0.infer<zod0.ZodObject<{
|
|
2181
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2182
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2165
2183
|
}, better_auth0.$strip>>) => Promise<{
|
|
2184
|
+
configId: string;
|
|
2166
2185
|
id: string;
|
|
2167
|
-
createdAt: Date;
|
|
2168
|
-
updatedAt: Date;
|
|
2169
2186
|
environmentId: string;
|
|
2170
|
-
|
|
2187
|
+
enabled: boolean;
|
|
2188
|
+
priority: number;
|
|
2171
2189
|
configVariantId: string;
|
|
2172
2190
|
variantVersionId: string | null;
|
|
2173
2191
|
weight: number;
|
|
2174
|
-
priority: number;
|
|
2175
|
-
enabled: boolean;
|
|
2176
2192
|
conditions: Record<string, unknown>;
|
|
2193
|
+
createdAt: Date;
|
|
2194
|
+
updatedAt: Date;
|
|
2177
2195
|
}[]>;
|
|
2178
|
-
getTargetingRulesWithDetailsByConfigId: (params:
|
|
2179
|
-
configId:
|
|
2180
|
-
limit:
|
|
2181
|
-
offset:
|
|
2196
|
+
getTargetingRulesWithDetailsByConfigId: (params: zod0.infer<zod0.ZodObject<{
|
|
2197
|
+
configId: zod0.ZodString;
|
|
2198
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2199
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2182
2200
|
}, better_auth0.$strip>>) => Promise<{
|
|
2183
2201
|
variantProvider: string | null;
|
|
2184
2202
|
variantModelName: string | null;
|
|
2185
2203
|
pinnedVersion: number | null | undefined;
|
|
2186
2204
|
latestVersion: number | null | undefined;
|
|
2187
2205
|
variantName: string | null;
|
|
2206
|
+
configId: string;
|
|
2188
2207
|
id: string;
|
|
2189
|
-
createdAt: Date;
|
|
2190
|
-
updatedAt: Date;
|
|
2191
2208
|
environmentId: string;
|
|
2192
|
-
|
|
2209
|
+
enabled: boolean;
|
|
2210
|
+
priority: number;
|
|
2193
2211
|
configVariantId: string;
|
|
2194
2212
|
variantVersionId: string | null;
|
|
2195
2213
|
weight: number;
|
|
2196
|
-
priority: number;
|
|
2197
|
-
enabled: boolean;
|
|
2198
2214
|
conditions: Record<string, unknown>;
|
|
2215
|
+
createdAt: Date;
|
|
2216
|
+
updatedAt: Date;
|
|
2199
2217
|
variantId: string | null;
|
|
2200
2218
|
environmentName: string | null;
|
|
2201
2219
|
environmentSlug: string | null;
|
|
2202
2220
|
}[]>;
|
|
2203
|
-
setTargetingForEnvironment: (params:
|
|
2204
|
-
environmentId:
|
|
2205
|
-
configId:
|
|
2206
|
-
configVariantId:
|
|
2207
|
-
variantVersionId:
|
|
2221
|
+
setTargetingForEnvironment: (params: zod0.infer<zod0.ZodObject<{
|
|
2222
|
+
environmentId: zod0.ZodString;
|
|
2223
|
+
configId: zod0.ZodString;
|
|
2224
|
+
configVariantId: zod0.ZodString;
|
|
2225
|
+
variantVersionId: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
|
|
2208
2226
|
}, better_auth0.$strip>>) => Promise<{
|
|
2227
|
+
configId: string;
|
|
2209
2228
|
id: string;
|
|
2210
|
-
createdAt: Date;
|
|
2211
|
-
updatedAt: Date;
|
|
2212
2229
|
environmentId: string;
|
|
2213
|
-
|
|
2230
|
+
enabled: boolean;
|
|
2231
|
+
priority: number;
|
|
2214
2232
|
configVariantId: string;
|
|
2215
2233
|
variantVersionId: string | null;
|
|
2216
2234
|
weight: number;
|
|
2217
|
-
priority: number;
|
|
2218
|
-
enabled: boolean;
|
|
2219
2235
|
conditions: Record<string, unknown>;
|
|
2236
|
+
createdAt: Date;
|
|
2237
|
+
updatedAt: Date;
|
|
2220
2238
|
} | undefined>;
|
|
2221
|
-
createProviderGuardrailOverride: (params:
|
|
2222
|
-
providerConfigId:
|
|
2223
|
-
guardrailConfigId:
|
|
2224
|
-
enabled:
|
|
2225
|
-
parameters:
|
|
2239
|
+
createProviderGuardrailOverride: (params: zod0.infer<zod0.ZodObject<{
|
|
2240
|
+
providerConfigId: zod0.ZodString;
|
|
2241
|
+
guardrailConfigId: zod0.ZodString;
|
|
2242
|
+
enabled: zod0.ZodDefault<zod0.ZodOptional<zod0.ZodBoolean>>;
|
|
2243
|
+
parameters: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>>>;
|
|
2226
2244
|
}, better_auth0.$strip>>) => Promise<{
|
|
2227
2245
|
id: string;
|
|
2228
|
-
createdAt: Date;
|
|
2229
|
-
updatedAt: Date;
|
|
2230
|
-
enabled: boolean;
|
|
2231
2246
|
parameters: Record<string, unknown> | null;
|
|
2247
|
+
enabled: boolean;
|
|
2232
2248
|
providerConfigId: string;
|
|
2233
2249
|
guardrailConfigId: string;
|
|
2250
|
+
createdAt: Date;
|
|
2251
|
+
updatedAt: Date;
|
|
2234
2252
|
} | undefined>;
|
|
2235
|
-
updateProviderGuardrailOverride: (params:
|
|
2236
|
-
id:
|
|
2237
|
-
enabled:
|
|
2238
|
-
parameters:
|
|
2253
|
+
updateProviderGuardrailOverride: (params: zod0.infer<zod0.ZodObject<{
|
|
2254
|
+
id: zod0.ZodString;
|
|
2255
|
+
enabled: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
2256
|
+
parameters: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>>>;
|
|
2239
2257
|
}, better_auth0.$strip>>) => Promise<{
|
|
2240
2258
|
id: string;
|
|
2241
|
-
createdAt: Date;
|
|
2242
|
-
updatedAt: Date;
|
|
2243
|
-
enabled: boolean;
|
|
2244
2259
|
parameters: Record<string, unknown> | null;
|
|
2260
|
+
enabled: boolean;
|
|
2245
2261
|
providerConfigId: string;
|
|
2246
2262
|
guardrailConfigId: string;
|
|
2263
|
+
createdAt: Date;
|
|
2264
|
+
updatedAt: Date;
|
|
2247
2265
|
} | undefined>;
|
|
2248
|
-
getOverrideById: (params:
|
|
2249
|
-
id:
|
|
2266
|
+
getOverrideById: (params: zod0.infer<zod0.ZodObject<{
|
|
2267
|
+
id: zod0.ZodString;
|
|
2250
2268
|
}, better_auth0.$strip>>) => Promise<{
|
|
2251
2269
|
id: string;
|
|
2252
|
-
createdAt: Date;
|
|
2253
|
-
updatedAt: Date;
|
|
2254
|
-
enabled: boolean;
|
|
2255
2270
|
parameters: Record<string, unknown> | null;
|
|
2271
|
+
enabled: boolean;
|
|
2256
2272
|
providerConfigId: string;
|
|
2257
2273
|
guardrailConfigId: string;
|
|
2274
|
+
createdAt: Date;
|
|
2275
|
+
updatedAt: Date;
|
|
2258
2276
|
} | undefined>;
|
|
2259
|
-
deleteProviderGuardrailOverride: (params:
|
|
2260
|
-
id:
|
|
2277
|
+
deleteProviderGuardrailOverride: (params: zod0.infer<zod0.ZodObject<{
|
|
2278
|
+
id: zod0.ZodString;
|
|
2261
2279
|
}, better_auth0.$strip>>) => Promise<{
|
|
2262
2280
|
id: string;
|
|
2263
|
-
createdAt: Date;
|
|
2264
|
-
updatedAt: Date;
|
|
2265
|
-
enabled: boolean;
|
|
2266
2281
|
parameters: Record<string, unknown> | null;
|
|
2282
|
+
enabled: boolean;
|
|
2267
2283
|
providerConfigId: string;
|
|
2268
2284
|
guardrailConfigId: string;
|
|
2285
|
+
createdAt: Date;
|
|
2286
|
+
updatedAt: Date;
|
|
2269
2287
|
} | undefined>;
|
|
2270
|
-
getOverridesByProviderConfigId: (params:
|
|
2271
|
-
providerConfigId:
|
|
2288
|
+
getOverridesByProviderConfigId: (params: zod0.infer<zod0.ZodObject<{
|
|
2289
|
+
providerConfigId: zod0.ZodString;
|
|
2272
2290
|
}, better_auth0.$strip>>) => Promise<{
|
|
2273
2291
|
id: string;
|
|
2274
|
-
createdAt: Date;
|
|
2275
|
-
updatedAt: Date;
|
|
2276
|
-
enabled: boolean;
|
|
2277
2292
|
parameters: Record<string, unknown> | null;
|
|
2293
|
+
enabled: boolean;
|
|
2278
2294
|
providerConfigId: string;
|
|
2279
2295
|
guardrailConfigId: string;
|
|
2296
|
+
createdAt: Date;
|
|
2297
|
+
updatedAt: Date;
|
|
2280
2298
|
}[]>;
|
|
2281
|
-
getOverridesByGuardrailConfigId: (params:
|
|
2282
|
-
guardrailConfigId:
|
|
2299
|
+
getOverridesByGuardrailConfigId: (params: zod0.infer<zod0.ZodObject<{
|
|
2300
|
+
guardrailConfigId: zod0.ZodString;
|
|
2283
2301
|
}, better_auth0.$strip>>) => Promise<{
|
|
2284
2302
|
id: string;
|
|
2285
|
-
createdAt: Date;
|
|
2286
|
-
updatedAt: Date;
|
|
2287
|
-
enabled: boolean;
|
|
2288
2303
|
parameters: Record<string, unknown> | null;
|
|
2304
|
+
enabled: boolean;
|
|
2289
2305
|
providerConfigId: string;
|
|
2290
2306
|
guardrailConfigId: string;
|
|
2307
|
+
createdAt: Date;
|
|
2308
|
+
updatedAt: Date;
|
|
2291
2309
|
}[]>;
|
|
2292
|
-
getOverrideByProviderAndGuardrail: (params:
|
|
2293
|
-
providerConfigId:
|
|
2294
|
-
guardrailConfigId:
|
|
2310
|
+
getOverrideByProviderAndGuardrail: (params: zod0.infer<zod0.ZodObject<{
|
|
2311
|
+
providerConfigId: zod0.ZodString;
|
|
2312
|
+
guardrailConfigId: zod0.ZodString;
|
|
2295
2313
|
}, better_auth0.$strip>>) => Promise<{
|
|
2296
2314
|
id: string;
|
|
2297
|
-
createdAt: Date;
|
|
2298
|
-
updatedAt: Date;
|
|
2299
|
-
enabled: boolean;
|
|
2300
2315
|
parameters: Record<string, unknown> | null;
|
|
2316
|
+
enabled: boolean;
|
|
2301
2317
|
providerConfigId: string;
|
|
2302
2318
|
guardrailConfigId: string;
|
|
2319
|
+
createdAt: Date;
|
|
2320
|
+
updatedAt: Date;
|
|
2303
2321
|
} | undefined>;
|
|
2304
|
-
upsertProviderGuardrailOverride: (params:
|
|
2305
|
-
providerConfigId:
|
|
2306
|
-
guardrailConfigId:
|
|
2307
|
-
enabled:
|
|
2308
|
-
parameters:
|
|
2322
|
+
upsertProviderGuardrailOverride: (params: zod0.infer<zod0.ZodObject<{
|
|
2323
|
+
providerConfigId: zod0.ZodString;
|
|
2324
|
+
guardrailConfigId: zod0.ZodString;
|
|
2325
|
+
enabled: zod0.ZodDefault<zod0.ZodOptional<zod0.ZodBoolean>>;
|
|
2326
|
+
parameters: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>>>;
|
|
2309
2327
|
}, better_auth0.$strip>>) => Promise<{
|
|
2310
2328
|
id: string;
|
|
2311
|
-
createdAt: Date;
|
|
2312
|
-
updatedAt: Date;
|
|
2313
|
-
enabled: boolean;
|
|
2314
2329
|
parameters: Record<string, unknown> | null;
|
|
2330
|
+
enabled: boolean;
|
|
2315
2331
|
providerConfigId: string;
|
|
2316
2332
|
guardrailConfigId: string;
|
|
2333
|
+
createdAt: Date;
|
|
2334
|
+
updatedAt: Date;
|
|
2317
2335
|
} | undefined>;
|
|
2318
|
-
deleteOverridesByGuardrailConfigId: (params:
|
|
2319
|
-
guardrailConfigId:
|
|
2336
|
+
deleteOverridesByGuardrailConfigId: (params: zod0.infer<zod0.ZodObject<{
|
|
2337
|
+
guardrailConfigId: zod0.ZodString;
|
|
2320
2338
|
}, better_auth0.$strip>>) => Promise<kysely0.DeleteResult[]>;
|
|
2321
|
-
createProviderConfig: (params:
|
|
2322
|
-
providerId:
|
|
2323
|
-
slug:
|
|
2324
|
-
name:
|
|
2325
|
-
config:
|
|
2326
|
-
enabled:
|
|
2339
|
+
createProviderConfig: (params: zod0.infer<zod0.ZodObject<{
|
|
2340
|
+
providerId: zod0.ZodString;
|
|
2341
|
+
slug: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
|
|
2342
|
+
name: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
|
|
2343
|
+
config: zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>;
|
|
2344
|
+
enabled: zod0.ZodDefault<zod0.ZodOptional<zod0.ZodBoolean>>;
|
|
2327
2345
|
}, better_auth0.$strip>>) => Promise<{
|
|
2328
|
-
slug: string | null;
|
|
2329
2346
|
name: string | null;
|
|
2330
2347
|
id: string;
|
|
2331
|
-
|
|
2332
|
-
updatedAt: Date;
|
|
2348
|
+
slug: string | null;
|
|
2333
2349
|
enabled: boolean;
|
|
2334
|
-
providerId: string;
|
|
2335
2350
|
config: Record<string, unknown>;
|
|
2351
|
+
providerId: string;
|
|
2352
|
+
createdAt: Date;
|
|
2353
|
+
updatedAt: Date;
|
|
2336
2354
|
} | undefined>;
|
|
2337
|
-
updateProviderConfig: (params:
|
|
2338
|
-
id:
|
|
2339
|
-
slug:
|
|
2340
|
-
name:
|
|
2341
|
-
config:
|
|
2342
|
-
enabled:
|
|
2355
|
+
updateProviderConfig: (params: zod0.infer<zod0.ZodObject<{
|
|
2356
|
+
id: zod0.ZodUUID;
|
|
2357
|
+
slug: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
|
|
2358
|
+
name: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
|
|
2359
|
+
config: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>>;
|
|
2360
|
+
enabled: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
2343
2361
|
}, better_auth0.$strip>>) => Promise<{
|
|
2344
|
-
slug: string | null;
|
|
2345
2362
|
name: string | null;
|
|
2346
2363
|
id: string;
|
|
2347
|
-
|
|
2348
|
-
updatedAt: Date;
|
|
2364
|
+
slug: string | null;
|
|
2349
2365
|
enabled: boolean;
|
|
2350
|
-
providerId: string;
|
|
2351
2366
|
config: Record<string, unknown>;
|
|
2367
|
+
providerId: string;
|
|
2368
|
+
createdAt: Date;
|
|
2369
|
+
updatedAt: Date;
|
|
2352
2370
|
} | undefined>;
|
|
2353
|
-
getProviderConfigById: (params:
|
|
2354
|
-
id:
|
|
2371
|
+
getProviderConfigById: (params: zod0.infer<zod0.ZodObject<{
|
|
2372
|
+
id: zod0.ZodUUID;
|
|
2355
2373
|
}, better_auth0.$strip>>) => Promise<{
|
|
2356
|
-
slug: string | null;
|
|
2357
2374
|
name: string | null;
|
|
2358
2375
|
id: string;
|
|
2359
|
-
|
|
2360
|
-
updatedAt: Date;
|
|
2376
|
+
slug: string | null;
|
|
2361
2377
|
enabled: boolean;
|
|
2362
|
-
providerId: string;
|
|
2363
2378
|
config: Record<string, unknown>;
|
|
2379
|
+
providerId: string;
|
|
2380
|
+
createdAt: Date;
|
|
2381
|
+
updatedAt: Date;
|
|
2364
2382
|
} | undefined>;
|
|
2365
|
-
getProviderConfigByProviderId: (params:
|
|
2366
|
-
providerId:
|
|
2383
|
+
getProviderConfigByProviderId: (params: zod0.infer<zod0.ZodObject<{
|
|
2384
|
+
providerId: zod0.ZodString;
|
|
2367
2385
|
}, better_auth0.$strip>>) => Promise<{
|
|
2368
|
-
slug: string | null;
|
|
2369
2386
|
name: string | null;
|
|
2370
2387
|
id: string;
|
|
2371
|
-
|
|
2372
|
-
updatedAt: Date;
|
|
2388
|
+
slug: string | null;
|
|
2373
2389
|
enabled: boolean;
|
|
2374
|
-
providerId: string;
|
|
2375
2390
|
config: Record<string, unknown>;
|
|
2391
|
+
providerId: string;
|
|
2392
|
+
createdAt: Date;
|
|
2393
|
+
updatedAt: Date;
|
|
2376
2394
|
} | undefined>;
|
|
2377
|
-
getProviderConfigBySlug: (params:
|
|
2378
|
-
slug:
|
|
2395
|
+
getProviderConfigBySlug: (params: zod0.infer<zod0.ZodObject<{
|
|
2396
|
+
slug: zod0.ZodString;
|
|
2379
2397
|
}, better_auth0.$strip>>) => Promise<{
|
|
2380
|
-
slug: string | null;
|
|
2381
2398
|
name: string | null;
|
|
2382
2399
|
id: string;
|
|
2383
|
-
|
|
2384
|
-
updatedAt: Date;
|
|
2400
|
+
slug: string | null;
|
|
2385
2401
|
enabled: boolean;
|
|
2386
|
-
providerId: string;
|
|
2387
2402
|
config: Record<string, unknown>;
|
|
2403
|
+
providerId: string;
|
|
2404
|
+
createdAt: Date;
|
|
2405
|
+
updatedAt: Date;
|
|
2388
2406
|
} | undefined>;
|
|
2389
|
-
deleteProviderConfig: (params:
|
|
2390
|
-
id:
|
|
2407
|
+
deleteProviderConfig: (params: zod0.infer<zod0.ZodObject<{
|
|
2408
|
+
id: zod0.ZodUUID;
|
|
2391
2409
|
}, better_auth0.$strip>>) => Promise<{
|
|
2392
|
-
slug: string | null;
|
|
2393
2410
|
name: string | null;
|
|
2394
2411
|
id: string;
|
|
2395
|
-
|
|
2396
|
-
updatedAt: Date;
|
|
2412
|
+
slug: string | null;
|
|
2397
2413
|
enabled: boolean;
|
|
2398
|
-
providerId: string;
|
|
2399
2414
|
config: Record<string, unknown>;
|
|
2415
|
+
providerId: string;
|
|
2416
|
+
createdAt: Date;
|
|
2417
|
+
updatedAt: Date;
|
|
2400
2418
|
} | undefined>;
|
|
2401
|
-
listProviderConfigs: (params?:
|
|
2402
|
-
limit:
|
|
2403
|
-
offset:
|
|
2419
|
+
listProviderConfigs: (params?: zod0.infer<zod0.ZodObject<{
|
|
2420
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2421
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2404
2422
|
}, better_auth0.$strip>>) => Promise<{
|
|
2405
|
-
slug: string | null;
|
|
2406
2423
|
name: string | null;
|
|
2407
2424
|
id: string;
|
|
2408
|
-
|
|
2409
|
-
updatedAt: Date;
|
|
2425
|
+
slug: string | null;
|
|
2410
2426
|
enabled: boolean;
|
|
2411
|
-
providerId: string;
|
|
2412
2427
|
config: Record<string, unknown>;
|
|
2428
|
+
providerId: string;
|
|
2429
|
+
createdAt: Date;
|
|
2430
|
+
updatedAt: Date;
|
|
2413
2431
|
}[]>;
|
|
2414
2432
|
countProviderConfigs: () => Promise<number>;
|
|
2415
|
-
upsertProviderConfig: (params:
|
|
2416
|
-
providerId:
|
|
2417
|
-
slug:
|
|
2418
|
-
name:
|
|
2419
|
-
config:
|
|
2420
|
-
enabled:
|
|
2433
|
+
upsertProviderConfig: (params: zod0.infer<zod0.ZodObject<{
|
|
2434
|
+
providerId: zod0.ZodString;
|
|
2435
|
+
slug: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
|
|
2436
|
+
name: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
|
|
2437
|
+
config: zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>;
|
|
2438
|
+
enabled: zod0.ZodDefault<zod0.ZodOptional<zod0.ZodBoolean>>;
|
|
2421
2439
|
}, better_auth0.$strip>>) => Promise<{
|
|
2422
|
-
slug: string | null;
|
|
2423
2440
|
name: string | null;
|
|
2424
2441
|
id: string;
|
|
2425
|
-
|
|
2426
|
-
updatedAt: Date;
|
|
2442
|
+
slug: string | null;
|
|
2427
2443
|
enabled: boolean;
|
|
2428
|
-
providerId: string;
|
|
2429
2444
|
config: Record<string, unknown>;
|
|
2445
|
+
providerId: string;
|
|
2446
|
+
createdAt: Date;
|
|
2447
|
+
updatedAt: Date;
|
|
2430
2448
|
} | undefined>;
|
|
2431
2449
|
batchInsertRequests: (requests: LLMRequestInsert[]) => Promise<{
|
|
2432
2450
|
count: number;
|
|
2433
2451
|
}>;
|
|
2434
2452
|
insertRequest: (request: LLMRequestInsert) => Promise<{
|
|
2435
|
-
|
|
2436
|
-
createdAt: Date;
|
|
2437
|
-
updatedAt: Date;
|
|
2453
|
+
configId: string | null;
|
|
2438
2454
|
variantId: string | null;
|
|
2455
|
+
id: string;
|
|
2439
2456
|
provider: string;
|
|
2440
2457
|
environmentId: string | null;
|
|
2441
|
-
configId: string | null;
|
|
2442
|
-
providerConfigId: string | null;
|
|
2443
2458
|
requestId: string;
|
|
2459
|
+
providerConfigId: string | null;
|
|
2444
2460
|
model: string;
|
|
2445
2461
|
promptTokens: number;
|
|
2446
2462
|
completionTokens: number;
|
|
@@ -2457,7 +2473,7 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2457
2473
|
tags: Record<string, string>;
|
|
2458
2474
|
guardrailResults: {
|
|
2459
2475
|
results: {
|
|
2460
|
-
|
|
2476
|
+
checkId: string;
|
|
2461
2477
|
functionId: string;
|
|
2462
2478
|
hookType: "beforeRequestHook" | "afterRequestHook";
|
|
2463
2479
|
verdict: boolean;
|
|
@@ -2466,30 +2482,30 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2466
2482
|
action: "allowed" | "blocked" | "logged";
|
|
2467
2483
|
totalLatencyMs: number;
|
|
2468
2484
|
} | null;
|
|
2485
|
+
createdAt: Date;
|
|
2486
|
+
updatedAt: Date;
|
|
2469
2487
|
} | 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:
|
|
2488
|
+
listRequests: (params?: zod0.infer<zod0.ZodObject<{
|
|
2489
|
+
limit: zod0.ZodDefault<zod0.ZodNumber>;
|
|
2490
|
+
offset: zod0.ZodDefault<zod0.ZodNumber>;
|
|
2491
|
+
configId: zod0.ZodOptional<zod0.ZodString>;
|
|
2492
|
+
variantId: zod0.ZodOptional<zod0.ZodString>;
|
|
2493
|
+
environmentId: zod0.ZodOptional<zod0.ZodString>;
|
|
2494
|
+
providerConfigId: zod0.ZodOptional<zod0.ZodString>;
|
|
2495
|
+
provider: zod0.ZodOptional<zod0.ZodString>;
|
|
2496
|
+
model: zod0.ZodOptional<zod0.ZodString>;
|
|
2497
|
+
startDate: zod0.ZodOptional<zod0.ZodDate>;
|
|
2498
|
+
endDate: zod0.ZodOptional<zod0.ZodDate>;
|
|
2499
|
+
tags: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodArray<zod0.ZodString>>>;
|
|
2482
2500
|
}, better_auth0.$strip>>) => Promise<{
|
|
2483
2501
|
data: {
|
|
2484
|
-
|
|
2485
|
-
createdAt: Date;
|
|
2486
|
-
updatedAt: Date;
|
|
2502
|
+
configId: string | null;
|
|
2487
2503
|
variantId: string | null;
|
|
2504
|
+
id: string;
|
|
2488
2505
|
provider: string;
|
|
2489
2506
|
environmentId: string | null;
|
|
2490
|
-
configId: string | null;
|
|
2491
|
-
providerConfigId: string | null;
|
|
2492
2507
|
requestId: string;
|
|
2508
|
+
providerConfigId: string | null;
|
|
2493
2509
|
model: string;
|
|
2494
2510
|
promptTokens: number;
|
|
2495
2511
|
completionTokens: number;
|
|
@@ -2506,7 +2522,7 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2506
2522
|
tags: Record<string, string>;
|
|
2507
2523
|
guardrailResults: {
|
|
2508
2524
|
results: {
|
|
2509
|
-
|
|
2525
|
+
checkId: string;
|
|
2510
2526
|
functionId: string;
|
|
2511
2527
|
hookType: "beforeRequestHook" | "afterRequestHook";
|
|
2512
2528
|
verdict: boolean;
|
|
@@ -2515,21 +2531,21 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2515
2531
|
action: "allowed" | "blocked" | "logged";
|
|
2516
2532
|
totalLatencyMs: number;
|
|
2517
2533
|
} | null;
|
|
2534
|
+
createdAt: Date;
|
|
2535
|
+
updatedAt: Date;
|
|
2518
2536
|
}[];
|
|
2519
2537
|
total: number;
|
|
2520
2538
|
limit: number;
|
|
2521
2539
|
offset: number;
|
|
2522
2540
|
}>;
|
|
2523
2541
|
getRequestByRequestId: (requestId: string) => Promise<{
|
|
2524
|
-
|
|
2525
|
-
createdAt: Date;
|
|
2526
|
-
updatedAt: Date;
|
|
2542
|
+
configId: string | null;
|
|
2527
2543
|
variantId: string | null;
|
|
2544
|
+
id: string;
|
|
2528
2545
|
provider: string;
|
|
2529
2546
|
environmentId: string | null;
|
|
2530
|
-
configId: string | null;
|
|
2531
|
-
providerConfigId: string | null;
|
|
2532
2547
|
requestId: string;
|
|
2548
|
+
providerConfigId: string | null;
|
|
2533
2549
|
model: string;
|
|
2534
2550
|
promptTokens: number;
|
|
2535
2551
|
completionTokens: number;
|
|
@@ -2546,7 +2562,7 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2546
2562
|
tags: Record<string, string>;
|
|
2547
2563
|
guardrailResults: {
|
|
2548
2564
|
results: {
|
|
2549
|
-
|
|
2565
|
+
checkId: string;
|
|
2550
2566
|
functionId: string;
|
|
2551
2567
|
hookType: "beforeRequestHook" | "afterRequestHook";
|
|
2552
2568
|
verdict: boolean;
|
|
@@ -2555,14 +2571,16 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2555
2571
|
action: "allowed" | "blocked" | "logged";
|
|
2556
2572
|
totalLatencyMs: number;
|
|
2557
2573
|
} | null;
|
|
2574
|
+
createdAt: Date;
|
|
2575
|
+
updatedAt: Date;
|
|
2558
2576
|
} | undefined>;
|
|
2559
|
-
getTotalCost: (params:
|
|
2560
|
-
startDate:
|
|
2561
|
-
endDate:
|
|
2562
|
-
configId:
|
|
2563
|
-
variantId:
|
|
2564
|
-
environmentId:
|
|
2565
|
-
tags:
|
|
2577
|
+
getTotalCost: (params: zod0.infer<zod0.ZodObject<{
|
|
2578
|
+
startDate: zod0.ZodDate;
|
|
2579
|
+
endDate: zod0.ZodDate;
|
|
2580
|
+
configId: zod0.ZodOptional<zod0.ZodString>;
|
|
2581
|
+
variantId: zod0.ZodOptional<zod0.ZodString>;
|
|
2582
|
+
environmentId: zod0.ZodOptional<zod0.ZodString>;
|
|
2583
|
+
tags: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodArray<zod0.ZodString>>>;
|
|
2566
2584
|
}, better_auth0.$strip>>) => Promise<{
|
|
2567
2585
|
totalCost: number;
|
|
2568
2586
|
totalInputCost: number;
|
|
@@ -2572,13 +2590,13 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2572
2590
|
totalTokens: number;
|
|
2573
2591
|
requestCount: number;
|
|
2574
2592
|
} | undefined>;
|
|
2575
|
-
getCostByModel: (params:
|
|
2576
|
-
startDate:
|
|
2577
|
-
endDate:
|
|
2578
|
-
configId:
|
|
2579
|
-
variantId:
|
|
2580
|
-
environmentId:
|
|
2581
|
-
tags:
|
|
2593
|
+
getCostByModel: (params: zod0.infer<zod0.ZodObject<{
|
|
2594
|
+
startDate: zod0.ZodDate;
|
|
2595
|
+
endDate: zod0.ZodDate;
|
|
2596
|
+
configId: zod0.ZodOptional<zod0.ZodString>;
|
|
2597
|
+
variantId: zod0.ZodOptional<zod0.ZodString>;
|
|
2598
|
+
environmentId: zod0.ZodOptional<zod0.ZodString>;
|
|
2599
|
+
tags: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodArray<zod0.ZodString>>>;
|
|
2582
2600
|
}, better_auth0.$strip>>) => Promise<{
|
|
2583
2601
|
provider: string;
|
|
2584
2602
|
model: string;
|
|
@@ -2589,13 +2607,13 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2589
2607
|
requestCount: number;
|
|
2590
2608
|
avgLatencyMs: number;
|
|
2591
2609
|
}[]>;
|
|
2592
|
-
getCostByProvider: (params:
|
|
2593
|
-
startDate:
|
|
2594
|
-
endDate:
|
|
2595
|
-
configId:
|
|
2596
|
-
variantId:
|
|
2597
|
-
environmentId:
|
|
2598
|
-
tags:
|
|
2610
|
+
getCostByProvider: (params: zod0.infer<zod0.ZodObject<{
|
|
2611
|
+
startDate: zod0.ZodDate;
|
|
2612
|
+
endDate: zod0.ZodDate;
|
|
2613
|
+
configId: zod0.ZodOptional<zod0.ZodString>;
|
|
2614
|
+
variantId: zod0.ZodOptional<zod0.ZodString>;
|
|
2615
|
+
environmentId: zod0.ZodOptional<zod0.ZodString>;
|
|
2616
|
+
tags: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodArray<zod0.ZodString>>>;
|
|
2599
2617
|
}, better_auth0.$strip>>) => Promise<{
|
|
2600
2618
|
provider: string;
|
|
2601
2619
|
totalCost: number;
|
|
@@ -2605,13 +2623,13 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2605
2623
|
requestCount: number;
|
|
2606
2624
|
avgLatencyMs: number;
|
|
2607
2625
|
}[]>;
|
|
2608
|
-
getCostByConfig: (params:
|
|
2609
|
-
startDate:
|
|
2610
|
-
endDate:
|
|
2611
|
-
configId:
|
|
2612
|
-
variantId:
|
|
2613
|
-
environmentId:
|
|
2614
|
-
tags:
|
|
2626
|
+
getCostByConfig: (params: zod0.infer<zod0.ZodObject<{
|
|
2627
|
+
startDate: zod0.ZodDate;
|
|
2628
|
+
endDate: zod0.ZodDate;
|
|
2629
|
+
configId: zod0.ZodOptional<zod0.ZodString>;
|
|
2630
|
+
variantId: zod0.ZodOptional<zod0.ZodString>;
|
|
2631
|
+
environmentId: zod0.ZodOptional<zod0.ZodString>;
|
|
2632
|
+
tags: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodArray<zod0.ZodString>>>;
|
|
2615
2633
|
}, better_auth0.$strip>>) => Promise<{
|
|
2616
2634
|
configId: string | null;
|
|
2617
2635
|
totalCost: number;
|
|
@@ -2622,13 +2640,13 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2622
2640
|
configName: string | null | undefined;
|
|
2623
2641
|
configSlug: string | null;
|
|
2624
2642
|
}[]>;
|
|
2625
|
-
getDailyCosts: (params:
|
|
2626
|
-
startDate:
|
|
2627
|
-
endDate:
|
|
2628
|
-
configId:
|
|
2629
|
-
variantId:
|
|
2630
|
-
environmentId:
|
|
2631
|
-
tags:
|
|
2643
|
+
getDailyCosts: (params: zod0.infer<zod0.ZodObject<{
|
|
2644
|
+
startDate: zod0.ZodDate;
|
|
2645
|
+
endDate: zod0.ZodDate;
|
|
2646
|
+
configId: zod0.ZodOptional<zod0.ZodString>;
|
|
2647
|
+
variantId: zod0.ZodOptional<zod0.ZodString>;
|
|
2648
|
+
environmentId: zod0.ZodOptional<zod0.ZodString>;
|
|
2649
|
+
tags: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodArray<zod0.ZodString>>>;
|
|
2632
2650
|
}, better_auth0.$strip>>) => Promise<{
|
|
2633
2651
|
totalCost: number;
|
|
2634
2652
|
totalInputCost: number;
|
|
@@ -2637,32 +2655,32 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2637
2655
|
requestCount: number;
|
|
2638
2656
|
date: string;
|
|
2639
2657
|
}[]>;
|
|
2640
|
-
getCostSummary: (params:
|
|
2641
|
-
startDate:
|
|
2642
|
-
endDate:
|
|
2643
|
-
configId:
|
|
2644
|
-
variantId:
|
|
2645
|
-
environmentId:
|
|
2646
|
-
tags:
|
|
2647
|
-
groupBy:
|
|
2658
|
+
getCostSummary: (params: zod0.infer<zod0.ZodObject<{
|
|
2659
|
+
startDate: zod0.ZodDate;
|
|
2660
|
+
endDate: zod0.ZodDate;
|
|
2661
|
+
configId: zod0.ZodOptional<zod0.ZodString>;
|
|
2662
|
+
variantId: zod0.ZodOptional<zod0.ZodString>;
|
|
2663
|
+
environmentId: zod0.ZodOptional<zod0.ZodString>;
|
|
2664
|
+
tags: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodArray<zod0.ZodString>>>;
|
|
2665
|
+
groupBy: zod0.ZodOptional<zod0.ZodEnum<{
|
|
2648
2666
|
provider: "provider";
|
|
2649
|
-
config: "config";
|
|
2650
2667
|
model: "model";
|
|
2651
2668
|
day: "day";
|
|
2652
2669
|
hour: "hour";
|
|
2670
|
+
config: "config";
|
|
2653
2671
|
}>>;
|
|
2654
2672
|
}, better_auth0.$strip>>) => Promise<{
|
|
2655
2673
|
totalCost: number;
|
|
2656
2674
|
requestCount: number;
|
|
2657
2675
|
groupKey: string;
|
|
2658
2676
|
}[]>;
|
|
2659
|
-
getRequestStats: (params:
|
|
2660
|
-
startDate:
|
|
2661
|
-
endDate:
|
|
2662
|
-
configId:
|
|
2663
|
-
variantId:
|
|
2664
|
-
environmentId:
|
|
2665
|
-
tags:
|
|
2677
|
+
getRequestStats: (params: zod0.infer<zod0.ZodObject<{
|
|
2678
|
+
startDate: zod0.ZodDate;
|
|
2679
|
+
endDate: zod0.ZodDate;
|
|
2680
|
+
configId: zod0.ZodOptional<zod0.ZodString>;
|
|
2681
|
+
variantId: zod0.ZodOptional<zod0.ZodString>;
|
|
2682
|
+
environmentId: zod0.ZodOptional<zod0.ZodString>;
|
|
2683
|
+
tags: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodArray<zod0.ZodString>>>;
|
|
2666
2684
|
}, better_auth0.$strip>>) => Promise<{
|
|
2667
2685
|
avgLatencyMs: number;
|
|
2668
2686
|
totalRequests: number;
|
|
@@ -2676,390 +2694,390 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2676
2694
|
key: string;
|
|
2677
2695
|
value: string;
|
|
2678
2696
|
}[]>;
|
|
2679
|
-
createGuardrailConfig: (params:
|
|
2680
|
-
name:
|
|
2681
|
-
pluginId:
|
|
2682
|
-
functionId:
|
|
2683
|
-
hookType:
|
|
2697
|
+
createGuardrailConfig: (params: zod0.infer<zod0.ZodObject<{
|
|
2698
|
+
name: zod0.ZodString;
|
|
2699
|
+
pluginId: zod0.ZodString;
|
|
2700
|
+
functionId: zod0.ZodString;
|
|
2701
|
+
hookType: zod0.ZodEnum<{
|
|
2684
2702
|
beforeRequestHook: "beforeRequestHook";
|
|
2685
2703
|
afterRequestHook: "afterRequestHook";
|
|
2686
2704
|
}>;
|
|
2687
|
-
parameters:
|
|
2688
|
-
enabled:
|
|
2689
|
-
priority:
|
|
2690
|
-
onFail:
|
|
2705
|
+
parameters: zod0.ZodDefault<zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>>>;
|
|
2706
|
+
enabled: zod0.ZodDefault<zod0.ZodOptional<zod0.ZodBoolean>>;
|
|
2707
|
+
priority: zod0.ZodDefault<zod0.ZodOptional<zod0.ZodNumber>>;
|
|
2708
|
+
onFail: zod0.ZodDefault<zod0.ZodOptional<zod0.ZodEnum<{
|
|
2691
2709
|
block: "block";
|
|
2692
2710
|
log: "log";
|
|
2693
2711
|
}>>>;
|
|
2694
2712
|
}, better_auth0.$strip>>) => Promise<{
|
|
2695
2713
|
name: string;
|
|
2696
2714
|
id: string;
|
|
2697
|
-
createdAt: Date;
|
|
2698
|
-
updatedAt: Date;
|
|
2699
|
-
priority: number;
|
|
2700
|
-
enabled: boolean;
|
|
2701
2715
|
pluginId: string;
|
|
2702
2716
|
functionId: string;
|
|
2703
2717
|
hookType: string;
|
|
2704
2718
|
parameters: Record<string, unknown>;
|
|
2719
|
+
enabled: boolean;
|
|
2720
|
+
priority: number;
|
|
2705
2721
|
onFail: string;
|
|
2722
|
+
createdAt: Date;
|
|
2723
|
+
updatedAt: Date;
|
|
2706
2724
|
} | undefined>;
|
|
2707
|
-
updateGuardrailConfig: (params:
|
|
2708
|
-
id:
|
|
2709
|
-
name:
|
|
2710
|
-
hookType:
|
|
2725
|
+
updateGuardrailConfig: (params: zod0.infer<zod0.ZodObject<{
|
|
2726
|
+
id: zod0.ZodString;
|
|
2727
|
+
name: zod0.ZodOptional<zod0.ZodString>;
|
|
2728
|
+
hookType: zod0.ZodOptional<zod0.ZodEnum<{
|
|
2711
2729
|
beforeRequestHook: "beforeRequestHook";
|
|
2712
2730
|
afterRequestHook: "afterRequestHook";
|
|
2713
2731
|
}>>;
|
|
2714
|
-
parameters:
|
|
2715
|
-
enabled:
|
|
2716
|
-
priority:
|
|
2717
|
-
onFail:
|
|
2732
|
+
parameters: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>>;
|
|
2733
|
+
enabled: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
2734
|
+
priority: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2735
|
+
onFail: zod0.ZodOptional<zod0.ZodEnum<{
|
|
2718
2736
|
block: "block";
|
|
2719
2737
|
log: "log";
|
|
2720
2738
|
}>>;
|
|
2721
2739
|
}, better_auth0.$strip>>) => Promise<{
|
|
2722
2740
|
name: string;
|
|
2723
2741
|
id: string;
|
|
2724
|
-
createdAt: Date;
|
|
2725
|
-
updatedAt: Date;
|
|
2726
|
-
priority: number;
|
|
2727
|
-
enabled: boolean;
|
|
2728
2742
|
pluginId: string;
|
|
2729
2743
|
functionId: string;
|
|
2730
2744
|
hookType: string;
|
|
2731
2745
|
parameters: Record<string, unknown>;
|
|
2746
|
+
enabled: boolean;
|
|
2747
|
+
priority: number;
|
|
2732
2748
|
onFail: string;
|
|
2749
|
+
createdAt: Date;
|
|
2750
|
+
updatedAt: Date;
|
|
2733
2751
|
} | undefined>;
|
|
2734
|
-
getGuardrailConfigById: (params:
|
|
2735
|
-
id:
|
|
2752
|
+
getGuardrailConfigById: (params: zod0.infer<zod0.ZodObject<{
|
|
2753
|
+
id: zod0.ZodString;
|
|
2736
2754
|
}, better_auth0.$strip>>) => Promise<{
|
|
2737
2755
|
name: string;
|
|
2738
2756
|
id: string;
|
|
2739
|
-
createdAt: Date;
|
|
2740
|
-
updatedAt: Date;
|
|
2741
|
-
priority: number;
|
|
2742
|
-
enabled: boolean;
|
|
2743
2757
|
pluginId: string;
|
|
2744
2758
|
functionId: string;
|
|
2745
2759
|
hookType: string;
|
|
2746
2760
|
parameters: Record<string, unknown>;
|
|
2761
|
+
enabled: boolean;
|
|
2762
|
+
priority: number;
|
|
2747
2763
|
onFail: string;
|
|
2764
|
+
createdAt: Date;
|
|
2765
|
+
updatedAt: Date;
|
|
2748
2766
|
} | undefined>;
|
|
2749
|
-
deleteGuardrailConfig: (params:
|
|
2750
|
-
id:
|
|
2767
|
+
deleteGuardrailConfig: (params: zod0.infer<zod0.ZodObject<{
|
|
2768
|
+
id: zod0.ZodString;
|
|
2751
2769
|
}, better_auth0.$strip>>) => Promise<{
|
|
2752
2770
|
name: string;
|
|
2753
2771
|
id: string;
|
|
2754
|
-
createdAt: Date;
|
|
2755
|
-
updatedAt: Date;
|
|
2756
|
-
priority: number;
|
|
2757
|
-
enabled: boolean;
|
|
2758
2772
|
pluginId: string;
|
|
2759
2773
|
functionId: string;
|
|
2760
2774
|
hookType: string;
|
|
2761
2775
|
parameters: Record<string, unknown>;
|
|
2776
|
+
enabled: boolean;
|
|
2777
|
+
priority: number;
|
|
2762
2778
|
onFail: string;
|
|
2779
|
+
createdAt: Date;
|
|
2780
|
+
updatedAt: Date;
|
|
2763
2781
|
} | undefined>;
|
|
2764
|
-
listGuardrailConfigs: (params?:
|
|
2765
|
-
limit:
|
|
2766
|
-
offset:
|
|
2767
|
-
hookType:
|
|
2782
|
+
listGuardrailConfigs: (params?: zod0.infer<zod0.ZodObject<{
|
|
2783
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2784
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2785
|
+
hookType: zod0.ZodOptional<zod0.ZodEnum<{
|
|
2768
2786
|
beforeRequestHook: "beforeRequestHook";
|
|
2769
2787
|
afterRequestHook: "afterRequestHook";
|
|
2770
2788
|
}>>;
|
|
2771
|
-
enabled:
|
|
2789
|
+
enabled: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
2772
2790
|
}, better_auth0.$strip>>) => Promise<{
|
|
2773
2791
|
name: string;
|
|
2774
2792
|
id: string;
|
|
2775
|
-
createdAt: Date;
|
|
2776
|
-
updatedAt: Date;
|
|
2777
|
-
priority: number;
|
|
2778
|
-
enabled: boolean;
|
|
2779
2793
|
pluginId: string;
|
|
2780
2794
|
functionId: string;
|
|
2781
2795
|
hookType: string;
|
|
2782
2796
|
parameters: Record<string, unknown>;
|
|
2797
|
+
enabled: boolean;
|
|
2798
|
+
priority: number;
|
|
2783
2799
|
onFail: string;
|
|
2800
|
+
createdAt: Date;
|
|
2801
|
+
updatedAt: Date;
|
|
2784
2802
|
}[]>;
|
|
2785
2803
|
countGuardrailConfigs: () => Promise<number>;
|
|
2786
2804
|
getEnabledGuardrailsByHookType: (hookType: "beforeRequestHook" | "afterRequestHook") => Promise<{
|
|
2787
2805
|
name: string;
|
|
2788
2806
|
id: string;
|
|
2789
|
-
createdAt: Date;
|
|
2790
|
-
updatedAt: Date;
|
|
2791
|
-
priority: number;
|
|
2792
|
-
enabled: boolean;
|
|
2793
2807
|
pluginId: string;
|
|
2794
2808
|
functionId: string;
|
|
2795
2809
|
hookType: string;
|
|
2796
2810
|
parameters: Record<string, unknown>;
|
|
2811
|
+
enabled: boolean;
|
|
2812
|
+
priority: number;
|
|
2797
2813
|
onFail: string;
|
|
2814
|
+
createdAt: Date;
|
|
2815
|
+
updatedAt: Date;
|
|
2798
2816
|
}[]>;
|
|
2799
|
-
createEnvironmentSecret: (params:
|
|
2800
|
-
environmentId:
|
|
2801
|
-
keyName:
|
|
2802
|
-
keyValue:
|
|
2817
|
+
createEnvironmentSecret: (params: zod0.infer<zod0.ZodObject<{
|
|
2818
|
+
environmentId: zod0.ZodUUID;
|
|
2819
|
+
keyName: zod0.ZodString;
|
|
2820
|
+
keyValue: zod0.ZodString;
|
|
2803
2821
|
}, better_auth0.$strip>>) => Promise<{
|
|
2804
2822
|
id: string;
|
|
2805
|
-
createdAt: Date;
|
|
2806
|
-
updatedAt: Date;
|
|
2807
2823
|
environmentId: string;
|
|
2808
2824
|
keyName: string;
|
|
2809
2825
|
keyValue: string;
|
|
2826
|
+
createdAt: Date;
|
|
2827
|
+
updatedAt: Date;
|
|
2810
2828
|
} | undefined>;
|
|
2811
|
-
updateEnvironmentSecret: (params:
|
|
2812
|
-
secretId:
|
|
2813
|
-
keyName:
|
|
2814
|
-
keyValue:
|
|
2829
|
+
updateEnvironmentSecret: (params: zod0.infer<zod0.ZodObject<{
|
|
2830
|
+
secretId: zod0.ZodUUID;
|
|
2831
|
+
keyName: zod0.ZodOptional<zod0.ZodString>;
|
|
2832
|
+
keyValue: zod0.ZodOptional<zod0.ZodString>;
|
|
2815
2833
|
}, better_auth0.$strip>>) => Promise<{
|
|
2816
2834
|
id: string;
|
|
2817
|
-
createdAt: Date;
|
|
2818
|
-
updatedAt: Date;
|
|
2819
2835
|
environmentId: string;
|
|
2820
2836
|
keyName: string;
|
|
2821
2837
|
keyValue: string;
|
|
2838
|
+
createdAt: Date;
|
|
2839
|
+
updatedAt: Date;
|
|
2822
2840
|
} | undefined>;
|
|
2823
|
-
getEnvironmentSecretById: (params:
|
|
2824
|
-
secretId:
|
|
2841
|
+
getEnvironmentSecretById: (params: zod0.infer<zod0.ZodObject<{
|
|
2842
|
+
secretId: zod0.ZodUUID;
|
|
2825
2843
|
}, better_auth0.$strip>>) => Promise<{
|
|
2826
2844
|
id: string;
|
|
2827
|
-
createdAt: Date;
|
|
2828
|
-
updatedAt: Date;
|
|
2829
2845
|
environmentId: string;
|
|
2830
2846
|
keyName: string;
|
|
2831
2847
|
keyValue: string;
|
|
2848
|
+
createdAt: Date;
|
|
2849
|
+
updatedAt: Date;
|
|
2832
2850
|
} | undefined>;
|
|
2833
|
-
getSecretsByEnvironmentId: (params:
|
|
2834
|
-
environmentId:
|
|
2851
|
+
getSecretsByEnvironmentId: (params: zod0.infer<zod0.ZodObject<{
|
|
2852
|
+
environmentId: zod0.ZodUUID;
|
|
2835
2853
|
}, better_auth0.$strip>>) => Promise<{
|
|
2836
2854
|
id: string;
|
|
2837
|
-
createdAt: Date;
|
|
2838
|
-
updatedAt: Date;
|
|
2839
2855
|
environmentId: string;
|
|
2840
2856
|
keyName: string;
|
|
2841
2857
|
keyValue: string;
|
|
2858
|
+
createdAt: Date;
|
|
2859
|
+
updatedAt: Date;
|
|
2842
2860
|
}[]>;
|
|
2843
|
-
deleteEnvironmentSecret: (params:
|
|
2844
|
-
secretId:
|
|
2861
|
+
deleteEnvironmentSecret: (params: zod0.infer<zod0.ZodObject<{
|
|
2862
|
+
secretId: zod0.ZodUUID;
|
|
2845
2863
|
}, better_auth0.$strip>>) => Promise<{
|
|
2846
2864
|
id: string;
|
|
2847
|
-
createdAt: Date;
|
|
2848
|
-
updatedAt: Date;
|
|
2849
2865
|
environmentId: string;
|
|
2850
2866
|
keyName: string;
|
|
2851
2867
|
keyValue: string;
|
|
2868
|
+
createdAt: Date;
|
|
2869
|
+
updatedAt: Date;
|
|
2852
2870
|
} | undefined>;
|
|
2853
|
-
deleteSecretsByEnvironmentId: (params:
|
|
2854
|
-
environmentId:
|
|
2871
|
+
deleteSecretsByEnvironmentId: (params: zod0.infer<zod0.ZodObject<{
|
|
2872
|
+
environmentId: zod0.ZodUUID;
|
|
2855
2873
|
}, better_auth0.$strip>>) => Promise<{
|
|
2856
2874
|
id: string;
|
|
2857
|
-
createdAt: Date;
|
|
2858
|
-
updatedAt: Date;
|
|
2859
2875
|
environmentId: string;
|
|
2860
2876
|
keyName: string;
|
|
2861
2877
|
keyValue: string;
|
|
2878
|
+
createdAt: Date;
|
|
2879
|
+
updatedAt: Date;
|
|
2862
2880
|
}[]>;
|
|
2863
|
-
listEnvironmentSecrets: (params?:
|
|
2864
|
-
limit:
|
|
2865
|
-
offset:
|
|
2881
|
+
listEnvironmentSecrets: (params?: zod0.infer<zod0.ZodObject<{
|
|
2882
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2883
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2866
2884
|
}, better_auth0.$strip>>) => Promise<{
|
|
2867
2885
|
id: string;
|
|
2868
|
-
createdAt: Date;
|
|
2869
|
-
updatedAt: Date;
|
|
2870
2886
|
environmentId: string;
|
|
2871
2887
|
keyName: string;
|
|
2872
2888
|
keyValue: string;
|
|
2889
|
+
createdAt: Date;
|
|
2890
|
+
updatedAt: Date;
|
|
2873
2891
|
}[]>;
|
|
2874
2892
|
countEnvironmentSecrets: () => Promise<number>;
|
|
2875
|
-
createNewEnvironment: (params:
|
|
2876
|
-
name:
|
|
2877
|
-
slug:
|
|
2878
|
-
isProd:
|
|
2893
|
+
createNewEnvironment: (params: zod0.infer<zod0.ZodObject<{
|
|
2894
|
+
name: zod0.ZodString;
|
|
2895
|
+
slug: zod0.ZodString;
|
|
2896
|
+
isProd: zod0.ZodDefault<zod0.ZodOptional<zod0.ZodBoolean>>;
|
|
2879
2897
|
}, better_auth0.$strip>>) => Promise<{
|
|
2880
|
-
slug: string;
|
|
2881
2898
|
name: string;
|
|
2882
2899
|
id: string;
|
|
2900
|
+
slug: string;
|
|
2901
|
+
isProd: boolean;
|
|
2883
2902
|
createdAt: Date;
|
|
2884
2903
|
updatedAt: Date;
|
|
2885
|
-
isProd: boolean;
|
|
2886
2904
|
} | undefined>;
|
|
2887
|
-
updateEnvironment: (params:
|
|
2888
|
-
environmentId:
|
|
2889
|
-
name:
|
|
2890
|
-
slug:
|
|
2905
|
+
updateEnvironment: (params: zod0.infer<zod0.ZodObject<{
|
|
2906
|
+
environmentId: zod0.ZodUUID;
|
|
2907
|
+
name: zod0.ZodOptional<zod0.ZodString>;
|
|
2908
|
+
slug: zod0.ZodOptional<zod0.ZodString>;
|
|
2891
2909
|
}, better_auth0.$strip>>) => Promise<{
|
|
2892
|
-
slug: string;
|
|
2893
2910
|
name: string;
|
|
2894
2911
|
id: string;
|
|
2912
|
+
slug: string;
|
|
2913
|
+
isProd: boolean;
|
|
2895
2914
|
createdAt: Date;
|
|
2896
2915
|
updatedAt: Date;
|
|
2897
|
-
isProd: boolean;
|
|
2898
2916
|
} | undefined>;
|
|
2899
|
-
getEnvironmentById: (params:
|
|
2900
|
-
environmentId:
|
|
2917
|
+
getEnvironmentById: (params: zod0.infer<zod0.ZodObject<{
|
|
2918
|
+
environmentId: zod0.ZodUUID;
|
|
2901
2919
|
}, better_auth0.$strip>>) => Promise<{
|
|
2902
|
-
slug: string;
|
|
2903
2920
|
name: string;
|
|
2904
2921
|
id: string;
|
|
2922
|
+
slug: string;
|
|
2923
|
+
isProd: boolean;
|
|
2905
2924
|
createdAt: Date;
|
|
2906
2925
|
updatedAt: Date;
|
|
2907
|
-
isProd: boolean;
|
|
2908
2926
|
} | undefined>;
|
|
2909
|
-
getEnvironmentBySlug: (params:
|
|
2910
|
-
slug:
|
|
2927
|
+
getEnvironmentBySlug: (params: zod0.infer<zod0.ZodObject<{
|
|
2928
|
+
slug: zod0.ZodString;
|
|
2911
2929
|
}, better_auth0.$strip>>) => Promise<{
|
|
2912
|
-
slug: string;
|
|
2913
2930
|
name: string;
|
|
2914
2931
|
id: string;
|
|
2932
|
+
slug: string;
|
|
2933
|
+
isProd: boolean;
|
|
2915
2934
|
createdAt: Date;
|
|
2916
2935
|
updatedAt: Date;
|
|
2917
|
-
isProd: boolean;
|
|
2918
2936
|
} | undefined>;
|
|
2919
|
-
deleteEnvironment: (params:
|
|
2920
|
-
environmentId:
|
|
2937
|
+
deleteEnvironment: (params: zod0.infer<zod0.ZodObject<{
|
|
2938
|
+
environmentId: zod0.ZodUUID;
|
|
2921
2939
|
}, better_auth0.$strip>>) => Promise<{
|
|
2922
|
-
slug: string;
|
|
2923
2940
|
name: string;
|
|
2924
2941
|
id: string;
|
|
2942
|
+
slug: string;
|
|
2943
|
+
isProd: boolean;
|
|
2925
2944
|
createdAt: Date;
|
|
2926
2945
|
updatedAt: Date;
|
|
2927
|
-
isProd: boolean;
|
|
2928
2946
|
} | undefined>;
|
|
2929
|
-
listEnvironments: (params?:
|
|
2930
|
-
limit:
|
|
2931
|
-
offset:
|
|
2947
|
+
listEnvironments: (params?: zod0.infer<zod0.ZodObject<{
|
|
2948
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2949
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2932
2950
|
}, better_auth0.$strip>>) => Promise<{
|
|
2933
|
-
slug: string;
|
|
2934
2951
|
name: string;
|
|
2935
2952
|
id: string;
|
|
2953
|
+
slug: string;
|
|
2954
|
+
isProd: boolean;
|
|
2936
2955
|
createdAt: Date;
|
|
2937
2956
|
updatedAt: Date;
|
|
2938
|
-
isProd: boolean;
|
|
2939
2957
|
}[]>;
|
|
2940
2958
|
countEnvironments: () => Promise<number>;
|
|
2941
|
-
createConfigVariant: (params:
|
|
2942
|
-
configId:
|
|
2943
|
-
variantId:
|
|
2959
|
+
createConfigVariant: (params: zod0.infer<zod0.ZodObject<{
|
|
2960
|
+
configId: zod0.ZodString;
|
|
2961
|
+
variantId: zod0.ZodString;
|
|
2944
2962
|
}, better_auth0.$strip>>) => Promise<{
|
|
2963
|
+
configId: string;
|
|
2964
|
+
variantId: string;
|
|
2945
2965
|
id: string;
|
|
2946
2966
|
createdAt: Date;
|
|
2947
2967
|
updatedAt: Date;
|
|
2948
|
-
variantId: string;
|
|
2949
|
-
configId: string;
|
|
2950
2968
|
} | undefined>;
|
|
2951
|
-
getConfigVariantById: (params:
|
|
2952
|
-
id:
|
|
2969
|
+
getConfigVariantById: (params: zod0.infer<zod0.ZodObject<{
|
|
2970
|
+
id: zod0.ZodString;
|
|
2953
2971
|
}, better_auth0.$strip>>) => Promise<{
|
|
2972
|
+
configId: string;
|
|
2973
|
+
variantId: string;
|
|
2954
2974
|
id: string;
|
|
2955
2975
|
createdAt: Date;
|
|
2956
2976
|
updatedAt: Date;
|
|
2957
|
-
variantId: string;
|
|
2958
|
-
configId: string;
|
|
2959
2977
|
} | undefined>;
|
|
2960
|
-
getConfigVariantsByConfigId: (params:
|
|
2961
|
-
configId:
|
|
2962
|
-
limit:
|
|
2963
|
-
offset:
|
|
2978
|
+
getConfigVariantsByConfigId: (params: zod0.infer<zod0.ZodObject<{
|
|
2979
|
+
configId: zod0.ZodString;
|
|
2980
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2981
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2964
2982
|
}, better_auth0.$strip>>) => Promise<{
|
|
2983
|
+
configId: string;
|
|
2984
|
+
variantId: string;
|
|
2965
2985
|
id: string;
|
|
2966
2986
|
createdAt: Date;
|
|
2967
2987
|
updatedAt: Date;
|
|
2968
|
-
variantId: string;
|
|
2969
|
-
configId: string;
|
|
2970
2988
|
}[]>;
|
|
2971
|
-
getConfigVariantsByVariantId: (params:
|
|
2972
|
-
variantId:
|
|
2973
|
-
limit:
|
|
2974
|
-
offset:
|
|
2989
|
+
getConfigVariantsByVariantId: (params: zod0.infer<zod0.ZodObject<{
|
|
2990
|
+
variantId: zod0.ZodString;
|
|
2991
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2992
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2975
2993
|
}, better_auth0.$strip>>) => Promise<{
|
|
2994
|
+
configId: string;
|
|
2995
|
+
variantId: string;
|
|
2976
2996
|
id: string;
|
|
2977
2997
|
createdAt: Date;
|
|
2978
2998
|
updatedAt: Date;
|
|
2979
|
-
variantId: string;
|
|
2980
|
-
configId: string;
|
|
2981
2999
|
}[]>;
|
|
2982
|
-
deleteConfigVariant: (params:
|
|
2983
|
-
id:
|
|
3000
|
+
deleteConfigVariant: (params: zod0.infer<zod0.ZodObject<{
|
|
3001
|
+
id: zod0.ZodString;
|
|
2984
3002
|
}, better_auth0.$strip>>) => Promise<{
|
|
3003
|
+
configId: string;
|
|
3004
|
+
variantId: string;
|
|
2985
3005
|
id: string;
|
|
2986
3006
|
createdAt: Date;
|
|
2987
3007
|
updatedAt: Date;
|
|
2988
|
-
variantId: string;
|
|
2989
|
-
configId: string;
|
|
2990
3008
|
} | undefined>;
|
|
2991
|
-
deleteConfigVariantByIds: (params:
|
|
2992
|
-
configId:
|
|
2993
|
-
variantId:
|
|
3009
|
+
deleteConfigVariantByIds: (params: zod0.infer<zod0.ZodObject<{
|
|
3010
|
+
configId: zod0.ZodString;
|
|
3011
|
+
variantId: zod0.ZodString;
|
|
2994
3012
|
}, better_auth0.$strip>>) => Promise<{
|
|
3013
|
+
configId: string;
|
|
3014
|
+
variantId: string;
|
|
2995
3015
|
id: string;
|
|
2996
3016
|
createdAt: Date;
|
|
2997
3017
|
updatedAt: Date;
|
|
2998
|
-
variantId: string;
|
|
2999
|
-
configId: string;
|
|
3000
3018
|
} | undefined>;
|
|
3001
|
-
listConfigVariants: (params?:
|
|
3002
|
-
limit:
|
|
3003
|
-
offset:
|
|
3019
|
+
listConfigVariants: (params?: zod0.infer<zod0.ZodObject<{
|
|
3020
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
3021
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
3004
3022
|
}, better_auth0.$strip>>) => Promise<{
|
|
3023
|
+
configId: string;
|
|
3024
|
+
variantId: string;
|
|
3005
3025
|
id: string;
|
|
3006
3026
|
createdAt: Date;
|
|
3007
3027
|
updatedAt: Date;
|
|
3008
|
-
variantId: string;
|
|
3009
|
-
configId: string;
|
|
3010
3028
|
}[]>;
|
|
3011
|
-
getConfigVariantWithDetails: (params:
|
|
3012
|
-
id:
|
|
3029
|
+
getConfigVariantWithDetails: (params: zod0.infer<zod0.ZodObject<{
|
|
3030
|
+
id: zod0.ZodString;
|
|
3013
3031
|
}, better_auth0.$strip>>) => Promise<{
|
|
3014
3032
|
latestVersion: {
|
|
3015
3033
|
version: number;
|
|
3016
|
-
id: string;
|
|
3017
|
-
createdAt: Date;
|
|
3018
|
-
updatedAt: Date;
|
|
3019
3034
|
variantId: string;
|
|
3035
|
+
id: string;
|
|
3020
3036
|
provider: string;
|
|
3021
3037
|
modelName: string;
|
|
3022
3038
|
jsonData: Record<string, unknown>;
|
|
3039
|
+
createdAt: Date;
|
|
3040
|
+
updatedAt: Date;
|
|
3023
3041
|
} | null;
|
|
3024
3042
|
variantName: string | null;
|
|
3025
3043
|
id: string;
|
|
3044
|
+
configId: string;
|
|
3045
|
+
variantId: string;
|
|
3026
3046
|
createdAt: Date;
|
|
3027
3047
|
updatedAt: Date;
|
|
3028
|
-
variantId: string;
|
|
3029
|
-
configId: string;
|
|
3030
3048
|
configName: string | null | undefined;
|
|
3031
3049
|
} | undefined>;
|
|
3032
|
-
getConfigVariantsWithDetailsByConfigId: (params:
|
|
3033
|
-
configId:
|
|
3034
|
-
limit:
|
|
3035
|
-
offset:
|
|
3050
|
+
getConfigVariantsWithDetailsByConfigId: (params: zod0.infer<zod0.ZodObject<{
|
|
3051
|
+
configId: zod0.ZodString;
|
|
3052
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
3053
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
3036
3054
|
}, better_auth0.$strip>>) => Promise<{
|
|
3037
3055
|
provider: string | null;
|
|
3038
3056
|
modelName: string | null;
|
|
3039
3057
|
jsonData: Record<string, unknown> | null;
|
|
3040
3058
|
latestVersion: {
|
|
3041
3059
|
version: number;
|
|
3042
|
-
id: string;
|
|
3043
|
-
createdAt: Date;
|
|
3044
|
-
updatedAt: Date;
|
|
3045
3060
|
variantId: string;
|
|
3061
|
+
id: string;
|
|
3046
3062
|
provider: string;
|
|
3047
3063
|
modelName: string;
|
|
3048
3064
|
jsonData: Record<string, unknown>;
|
|
3065
|
+
createdAt: Date;
|
|
3066
|
+
updatedAt: Date;
|
|
3049
3067
|
} | null;
|
|
3050
3068
|
name: string | null;
|
|
3051
3069
|
id: string;
|
|
3070
|
+
configId: string;
|
|
3071
|
+
variantId: string;
|
|
3052
3072
|
createdAt: Date;
|
|
3053
3073
|
updatedAt: Date;
|
|
3054
|
-
variantId: string;
|
|
3055
|
-
configId: string;
|
|
3056
3074
|
}[]>;
|
|
3057
|
-
createVariantAndLinkToConfig: (params:
|
|
3058
|
-
configId:
|
|
3059
|
-
name:
|
|
3060
|
-
provider:
|
|
3061
|
-
modelName:
|
|
3062
|
-
jsonData:
|
|
3075
|
+
createVariantAndLinkToConfig: (params: zod0.infer<zod0.ZodObject<{
|
|
3076
|
+
configId: zod0.ZodString;
|
|
3077
|
+
name: zod0.ZodString;
|
|
3078
|
+
provider: zod0.ZodString;
|
|
3079
|
+
modelName: zod0.ZodString;
|
|
3080
|
+
jsonData: zod0.ZodDefault<zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>>>;
|
|
3063
3081
|
}, better_auth0.$strip>>) => Promise<{
|
|
3064
3082
|
variant: {
|
|
3065
3083
|
name: string;
|
|
@@ -3069,25 +3087,25 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
3069
3087
|
};
|
|
3070
3088
|
version: {
|
|
3071
3089
|
version: number;
|
|
3072
|
-
id: string;
|
|
3073
|
-
createdAt: Date;
|
|
3074
|
-
updatedAt: Date;
|
|
3075
3090
|
variantId: string;
|
|
3091
|
+
id: string;
|
|
3076
3092
|
provider: string;
|
|
3077
3093
|
modelName: string;
|
|
3078
3094
|
jsonData: Record<string, unknown>;
|
|
3095
|
+
createdAt: Date;
|
|
3096
|
+
updatedAt: Date;
|
|
3079
3097
|
};
|
|
3080
3098
|
configVariant: {
|
|
3099
|
+
configId: string;
|
|
3100
|
+
variantId: string;
|
|
3081
3101
|
id: string;
|
|
3082
3102
|
createdAt: Date;
|
|
3083
3103
|
updatedAt: Date;
|
|
3084
|
-
variantId: string;
|
|
3085
|
-
configId: string;
|
|
3086
3104
|
};
|
|
3087
3105
|
}>;
|
|
3088
|
-
getVariantJsonDataForConfig: (params:
|
|
3089
|
-
configId:
|
|
3090
|
-
envSecret:
|
|
3106
|
+
getVariantJsonDataForConfig: (params: zod0.infer<zod0.ZodObject<{
|
|
3107
|
+
configId: zod0.ZodString;
|
|
3108
|
+
envSecret: zod0.ZodOptional<zod0.ZodString>;
|
|
3091
3109
|
}, better_auth0.$strip>>) => Promise<{
|
|
3092
3110
|
provider: string;
|
|
3093
3111
|
providerConfigId: string | null;
|
|
@@ -3098,63 +3116,63 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
3098
3116
|
modelName: string;
|
|
3099
3117
|
jsonData: Record<string, unknown>;
|
|
3100
3118
|
}>;
|
|
3101
|
-
createNewConfig: (params:
|
|
3102
|
-
name:
|
|
3119
|
+
createNewConfig: (params: zod0.infer<zod0.ZodObject<{
|
|
3120
|
+
name: zod0.ZodString;
|
|
3103
3121
|
}, better_auth0.$strip>>) => Promise<{
|
|
3104
|
-
slug: string;
|
|
3105
3122
|
name: string | undefined;
|
|
3106
3123
|
id: string;
|
|
3124
|
+
slug: string;
|
|
3107
3125
|
createdAt: Date;
|
|
3108
3126
|
updatedAt: Date;
|
|
3109
3127
|
} | undefined>;
|
|
3110
|
-
updateConfigName: (params:
|
|
3111
|
-
configId:
|
|
3112
|
-
newName:
|
|
3128
|
+
updateConfigName: (params: zod0.infer<zod0.ZodObject<{
|
|
3129
|
+
configId: zod0.ZodUUID;
|
|
3130
|
+
newName: zod0.ZodString;
|
|
3113
3131
|
}, better_auth0.$strip>>) => Promise<{
|
|
3114
|
-
slug: string;
|
|
3115
3132
|
name: string | undefined;
|
|
3116
3133
|
id: string;
|
|
3134
|
+
slug: string;
|
|
3117
3135
|
createdAt: Date;
|
|
3118
3136
|
updatedAt: Date;
|
|
3119
3137
|
} | undefined>;
|
|
3120
|
-
getConfigById: (params:
|
|
3121
|
-
configId:
|
|
3138
|
+
getConfigById: (params: zod0.infer<zod0.ZodObject<{
|
|
3139
|
+
configId: zod0.ZodUUID;
|
|
3122
3140
|
}, better_auth0.$strip>>) => Promise<{
|
|
3123
|
-
slug: string;
|
|
3124
3141
|
name: string | undefined;
|
|
3125
3142
|
id: string;
|
|
3143
|
+
slug: string;
|
|
3126
3144
|
createdAt: Date;
|
|
3127
3145
|
updatedAt: Date;
|
|
3128
3146
|
} | undefined>;
|
|
3129
|
-
deleteConfig: (params:
|
|
3130
|
-
configId:
|
|
3147
|
+
deleteConfig: (params: zod0.infer<zod0.ZodObject<{
|
|
3148
|
+
configId: zod0.ZodUUID;
|
|
3131
3149
|
}, better_auth0.$strip>>) => Promise<{
|
|
3132
|
-
slug: string;
|
|
3133
3150
|
name: string | undefined;
|
|
3134
3151
|
id: string;
|
|
3152
|
+
slug: string;
|
|
3135
3153
|
createdAt: Date;
|
|
3136
3154
|
updatedAt: Date;
|
|
3137
3155
|
} | undefined>;
|
|
3138
|
-
listConfigs: (params?:
|
|
3139
|
-
limit:
|
|
3140
|
-
offset:
|
|
3156
|
+
listConfigs: (params?: zod0.infer<zod0.ZodObject<{
|
|
3157
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
3158
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
3141
3159
|
}, better_auth0.$strip>>) => Promise<{
|
|
3142
|
-
slug: string;
|
|
3143
3160
|
name: string | undefined;
|
|
3144
3161
|
id: string;
|
|
3162
|
+
slug: string;
|
|
3145
3163
|
createdAt: Date;
|
|
3146
3164
|
updatedAt: Date;
|
|
3147
3165
|
}[]>;
|
|
3148
|
-
getConfigWithVariants: (params:
|
|
3149
|
-
configId:
|
|
3166
|
+
getConfigWithVariants: (params: zod0.infer<zod0.ZodObject<{
|
|
3167
|
+
configId: zod0.ZodUUID;
|
|
3150
3168
|
}, better_auth0.$strip>>) => Promise<{
|
|
3151
3169
|
provider: string | null;
|
|
3152
3170
|
modelName: string | null;
|
|
3153
3171
|
jsonData: Record<string, unknown> | null;
|
|
3154
3172
|
variantName: string | null;
|
|
3155
3173
|
id: string;
|
|
3156
|
-
slug: string;
|
|
3157
3174
|
name: string | undefined;
|
|
3175
|
+
slug: string;
|
|
3158
3176
|
createdAt: Date;
|
|
3159
3177
|
updatedAt: Date;
|
|
3160
3178
|
variantId: string | null;
|