@llmops/core 0.2.3 → 0.2.4-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/db/index.d.mts +1 -1
- package/dist/{index-CJI8-6PV.d.mts → index-5GfBoyiq.d.mts} +35 -35
- package/dist/index.d.cts +222 -222
- package/dist/index.d.mts +486 -486
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as SCHEMA_METADATA, B as WorkspaceSettings, C as EnvironmentSecretsTable, D as LLMRequestsTable, E as LLMRequest, F as Updateable, G as environmentsSchema, H as configVariantsSchema, I as Variant, J as schemas, K as llmRequestsSchema, L as VariantVersion, M as TableName, N as TargetingRule, O as ProviderConfig, P as TargetingRulesTable, Q as workspaceSettingsSchema, R as VariantVersionsTable, S as EnvironmentSecret, T as Insertable, U as configsSchema, V as WorkspaceSettingsTable, W as environmentSecretsSchema, X as variantVersionsSchema, Y as targetingRulesSchema, Z as variantsSchema, _ as ConfigVariant, a as createDatabaseFromConnection, b as Database, c as MigrationResult, d as runAutoMigrations, f as parsePartialTableData, g as Config, h as validateTableData, i as createDatabase, j as Selectable, k as ProviderConfigsTable, l as getMigrations, m as validatePartialTableData, n as DatabaseOptions, o as detectDatabaseType, p as parseTableData, q as providerConfigsSchema, r as DatabaseType, s as MigrationOptions, t as DatabaseConnection, u as matchType, v as ConfigVariantsTable, w as EnvironmentsTable, x as Environment, y as ConfigsTable, z as VariantsTable } from "./index-
|
|
1
|
+
import { A as SCHEMA_METADATA, B as WorkspaceSettings, C as EnvironmentSecretsTable, D as LLMRequestsTable, E as LLMRequest, F as Updateable, G as environmentsSchema, H as configVariantsSchema, I as Variant, J as schemas, K as llmRequestsSchema, L as VariantVersion, M as TableName, N as TargetingRule, O as ProviderConfig, P as TargetingRulesTable, Q as workspaceSettingsSchema, R as VariantVersionsTable, S as EnvironmentSecret, T as Insertable, U as configsSchema, V as WorkspaceSettingsTable, W as environmentSecretsSchema, X as variantVersionsSchema, Y as targetingRulesSchema, Z as variantsSchema, _ as ConfigVariant, a as createDatabaseFromConnection, b as Database, c as MigrationResult, d as runAutoMigrations, f as parsePartialTableData, g as Config, h as validateTableData, i as createDatabase, j as Selectable, k as ProviderConfigsTable, l as getMigrations, m as validatePartialTableData, n as DatabaseOptions, o as detectDatabaseType, p as parseTableData, q as providerConfigsSchema, r as DatabaseType, s as MigrationOptions, t as DatabaseConnection, u as matchType, v as ConfigVariantsTable, w as EnvironmentsTable, x as Environment, y as ConfigsTable, z as VariantsTable } from "./index-5GfBoyiq.mjs";
|
|
2
2
|
import gateway from "@llmops/gateway";
|
|
3
3
|
import { Kysely } from "kysely";
|
|
4
4
|
import pino from "pino";
|
|
5
|
-
import * as
|
|
5
|
+
import * as zod0 from "zod";
|
|
6
6
|
import z$1, { z } from "zod";
|
|
7
7
|
import * as better_auth0 from "better-auth";
|
|
8
8
|
import { BetterAuthOptions } from "better-auth";
|
|
@@ -1120,10 +1120,10 @@ declare const costSummarySchema: z$1.ZodObject<{
|
|
|
1120
1120
|
tags: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodArray<z$1.ZodString>>>;
|
|
1121
1121
|
groupBy: z$1.ZodOptional<z$1.ZodEnum<{
|
|
1122
1122
|
provider: "provider";
|
|
1123
|
-
config: "config";
|
|
1124
1123
|
model: "model";
|
|
1125
1124
|
day: "day";
|
|
1126
1125
|
hour: "hour";
|
|
1126
|
+
config: "config";
|
|
1127
1127
|
}>>;
|
|
1128
1128
|
}, z$1.core.$strip>;
|
|
1129
1129
|
declare const createLLMRequestsDataLayer: (db: Kysely<Database>) => {
|
|
@@ -1138,13 +1138,11 @@ declare const createLLMRequestsDataLayer: (db: Kysely<Database>) => {
|
|
|
1138
1138
|
* Insert a single LLM request log
|
|
1139
1139
|
*/
|
|
1140
1140
|
insertRequest: (request: LLMRequestInsert) => Promise<{
|
|
1141
|
-
|
|
1142
|
-
createdAt: Date;
|
|
1143
|
-
updatedAt: Date;
|
|
1141
|
+
configId: string | null;
|
|
1144
1142
|
variantId: string | null;
|
|
1143
|
+
id: string;
|
|
1145
1144
|
provider: string;
|
|
1146
1145
|
environmentId: string | null;
|
|
1147
|
-
configId: string | null;
|
|
1148
1146
|
requestId: string;
|
|
1149
1147
|
model: string;
|
|
1150
1148
|
promptTokens: number;
|
|
@@ -1160,6 +1158,8 @@ declare const createLLMRequestsDataLayer: (db: Kysely<Database>) => {
|
|
|
1160
1158
|
isStreaming: boolean;
|
|
1161
1159
|
userId: string | null;
|
|
1162
1160
|
tags: Record<string, string>;
|
|
1161
|
+
createdAt: Date;
|
|
1162
|
+
updatedAt: Date;
|
|
1163
1163
|
} | undefined>;
|
|
1164
1164
|
/**
|
|
1165
1165
|
* List LLM requests with filtering and pagination
|
|
@@ -1167,13 +1167,11 @@ declare const createLLMRequestsDataLayer: (db: Kysely<Database>) => {
|
|
|
1167
1167
|
*/
|
|
1168
1168
|
listRequests: (params?: z$1.infer<typeof listRequestsSchema>) => Promise<{
|
|
1169
1169
|
data: {
|
|
1170
|
-
|
|
1171
|
-
createdAt: Date;
|
|
1172
|
-
updatedAt: Date;
|
|
1170
|
+
configId: string | null;
|
|
1173
1171
|
variantId: string | null;
|
|
1172
|
+
id: string;
|
|
1174
1173
|
provider: string;
|
|
1175
1174
|
environmentId: string | null;
|
|
1176
|
-
configId: string | null;
|
|
1177
1175
|
requestId: string;
|
|
1178
1176
|
model: string;
|
|
1179
1177
|
promptTokens: number;
|
|
@@ -1189,6 +1187,8 @@ declare const createLLMRequestsDataLayer: (db: Kysely<Database>) => {
|
|
|
1189
1187
|
isStreaming: boolean;
|
|
1190
1188
|
userId: string | null;
|
|
1191
1189
|
tags: Record<string, string>;
|
|
1190
|
+
createdAt: Date;
|
|
1191
|
+
updatedAt: Date;
|
|
1192
1192
|
}[];
|
|
1193
1193
|
total: number;
|
|
1194
1194
|
limit: number;
|
|
@@ -1198,13 +1198,11 @@ declare const createLLMRequestsDataLayer: (db: Kysely<Database>) => {
|
|
|
1198
1198
|
* Get a single request by requestId
|
|
1199
1199
|
*/
|
|
1200
1200
|
getRequestByRequestId: (requestId: string) => Promise<{
|
|
1201
|
-
|
|
1202
|
-
createdAt: Date;
|
|
1203
|
-
updatedAt: Date;
|
|
1201
|
+
configId: string | null;
|
|
1204
1202
|
variantId: string | null;
|
|
1203
|
+
id: string;
|
|
1205
1204
|
provider: string;
|
|
1206
1205
|
environmentId: string | null;
|
|
1207
|
-
configId: string | null;
|
|
1208
1206
|
requestId: string;
|
|
1209
1207
|
model: string;
|
|
1210
1208
|
promptTokens: number;
|
|
@@ -1220,6 +1218,8 @@ declare const createLLMRequestsDataLayer: (db: Kysely<Database>) => {
|
|
|
1220
1218
|
isStreaming: boolean;
|
|
1221
1219
|
userId: string | null;
|
|
1222
1220
|
tags: Record<string, string>;
|
|
1221
|
+
createdAt: Date;
|
|
1222
|
+
updatedAt: Date;
|
|
1223
1223
|
} | undefined>;
|
|
1224
1224
|
/**
|
|
1225
1225
|
* Get total cost for a date range with optional filters
|
|
@@ -1325,10 +1325,10 @@ declare const createWorkspaceSettingsDataLayer: (db: Kysely<Database>) => {
|
|
|
1325
1325
|
getWorkspaceSettings: () => Promise<{
|
|
1326
1326
|
name: string | null;
|
|
1327
1327
|
id: string;
|
|
1328
|
-
createdAt: Date;
|
|
1329
|
-
updatedAt: Date;
|
|
1330
1328
|
setupComplete: boolean;
|
|
1331
1329
|
superAdminId: string | null;
|
|
1330
|
+
createdAt: Date;
|
|
1331
|
+
updatedAt: Date;
|
|
1332
1332
|
} | undefined>;
|
|
1333
1333
|
/**
|
|
1334
1334
|
* Update workspace settings
|
|
@@ -1336,10 +1336,10 @@ declare const createWorkspaceSettingsDataLayer: (db: Kysely<Database>) => {
|
|
|
1336
1336
|
updateWorkspaceSettings: (params: z$1.infer<typeof updateWorkspaceSettings>) => Promise<{
|
|
1337
1337
|
name: string | null;
|
|
1338
1338
|
id: string;
|
|
1339
|
-
createdAt: Date;
|
|
1340
|
-
updatedAt: Date;
|
|
1341
1339
|
setupComplete: boolean;
|
|
1342
1340
|
superAdminId: string | null;
|
|
1341
|
+
createdAt: Date;
|
|
1342
|
+
updatedAt: Date;
|
|
1343
1343
|
} | undefined>;
|
|
1344
1344
|
/**
|
|
1345
1345
|
* Get the super admin user ID
|
|
@@ -1359,10 +1359,10 @@ declare const createWorkspaceSettingsDataLayer: (db: Kysely<Database>) => {
|
|
|
1359
1359
|
markSetupComplete: () => Promise<{
|
|
1360
1360
|
name: string | null;
|
|
1361
1361
|
id: string;
|
|
1362
|
-
createdAt: Date;
|
|
1363
|
-
updatedAt: Date;
|
|
1364
1362
|
setupComplete: boolean;
|
|
1365
1363
|
superAdminId: string | null;
|
|
1364
|
+
createdAt: Date;
|
|
1365
|
+
updatedAt: Date;
|
|
1366
1366
|
} | undefined>;
|
|
1367
1367
|
};
|
|
1368
1368
|
//#endregion
|
|
@@ -1393,51 +1393,51 @@ declare const listProviderConfigs: z$1.ZodObject<{
|
|
|
1393
1393
|
declare const createProviderConfigsDataLayer: (db: Kysely<Database>) => {
|
|
1394
1394
|
createProviderConfig: (params: z$1.infer<typeof createProviderConfig>) => Promise<{
|
|
1395
1395
|
id: string;
|
|
1396
|
+
config: Record<string, unknown>;
|
|
1397
|
+
providerId: string;
|
|
1398
|
+
enabled: boolean;
|
|
1396
1399
|
createdAt: Date;
|
|
1397
1400
|
updatedAt: Date;
|
|
1398
|
-
enabled: boolean;
|
|
1399
|
-
providerId: string;
|
|
1400
|
-
config: Record<string, unknown>;
|
|
1401
1401
|
} | undefined>;
|
|
1402
1402
|
updateProviderConfig: (params: z$1.infer<typeof updateProviderConfig>) => Promise<{
|
|
1403
1403
|
id: string;
|
|
1404
|
+
config: Record<string, unknown>;
|
|
1405
|
+
providerId: string;
|
|
1406
|
+
enabled: boolean;
|
|
1404
1407
|
createdAt: Date;
|
|
1405
1408
|
updatedAt: Date;
|
|
1406
|
-
enabled: boolean;
|
|
1407
|
-
providerId: string;
|
|
1408
|
-
config: Record<string, unknown>;
|
|
1409
1409
|
} | undefined>;
|
|
1410
1410
|
getProviderConfigById: (params: z$1.infer<typeof getProviderConfigById>) => Promise<{
|
|
1411
1411
|
id: string;
|
|
1412
|
+
config: Record<string, unknown>;
|
|
1413
|
+
providerId: string;
|
|
1414
|
+
enabled: boolean;
|
|
1412
1415
|
createdAt: Date;
|
|
1413
1416
|
updatedAt: Date;
|
|
1414
|
-
enabled: boolean;
|
|
1415
|
-
providerId: string;
|
|
1416
|
-
config: Record<string, unknown>;
|
|
1417
1417
|
} | undefined>;
|
|
1418
1418
|
getProviderConfigByProviderId: (params: z$1.infer<typeof getProviderConfigByProviderId>) => Promise<{
|
|
1419
1419
|
id: string;
|
|
1420
|
+
config: Record<string, unknown>;
|
|
1421
|
+
providerId: string;
|
|
1422
|
+
enabled: boolean;
|
|
1420
1423
|
createdAt: Date;
|
|
1421
1424
|
updatedAt: Date;
|
|
1422
|
-
enabled: boolean;
|
|
1423
|
-
providerId: string;
|
|
1424
|
-
config: Record<string, unknown>;
|
|
1425
1425
|
} | undefined>;
|
|
1426
1426
|
deleteProviderConfig: (params: z$1.infer<typeof deleteProviderConfig>) => Promise<{
|
|
1427
1427
|
id: string;
|
|
1428
|
+
config: Record<string, unknown>;
|
|
1429
|
+
providerId: string;
|
|
1430
|
+
enabled: boolean;
|
|
1428
1431
|
createdAt: Date;
|
|
1429
1432
|
updatedAt: Date;
|
|
1430
|
-
enabled: boolean;
|
|
1431
|
-
providerId: string;
|
|
1432
|
-
config: Record<string, unknown>;
|
|
1433
1433
|
} | undefined>;
|
|
1434
1434
|
listProviderConfigs: (params?: z$1.infer<typeof listProviderConfigs>) => Promise<{
|
|
1435
1435
|
id: string;
|
|
1436
|
+
config: Record<string, unknown>;
|
|
1437
|
+
providerId: string;
|
|
1438
|
+
enabled: boolean;
|
|
1436
1439
|
createdAt: Date;
|
|
1437
1440
|
updatedAt: Date;
|
|
1438
|
-
enabled: boolean;
|
|
1439
|
-
providerId: string;
|
|
1440
|
-
config: Record<string, unknown>;
|
|
1441
1441
|
}[]>;
|
|
1442
1442
|
countProviderConfigs: () => Promise<number>;
|
|
1443
1443
|
/**
|
|
@@ -1446,11 +1446,11 @@ declare const createProviderConfigsDataLayer: (db: Kysely<Database>) => {
|
|
|
1446
1446
|
*/
|
|
1447
1447
|
upsertProviderConfig: (params: z$1.infer<typeof createProviderConfig>) => Promise<{
|
|
1448
1448
|
id: string;
|
|
1449
|
+
config: Record<string, unknown>;
|
|
1450
|
+
providerId: string;
|
|
1451
|
+
enabled: boolean;
|
|
1449
1452
|
createdAt: Date;
|
|
1450
1453
|
updatedAt: Date;
|
|
1451
|
-
enabled: boolean;
|
|
1452
|
-
providerId: string;
|
|
1453
|
-
config: Record<string, unknown>;
|
|
1454
1454
|
} | undefined>;
|
|
1455
1455
|
};
|
|
1456
1456
|
//#endregion
|
|
@@ -1459,22 +1459,22 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
1459
1459
|
getWorkspaceSettings: () => Promise<{
|
|
1460
1460
|
name: string | null;
|
|
1461
1461
|
id: string;
|
|
1462
|
-
createdAt: Date;
|
|
1463
|
-
updatedAt: Date;
|
|
1464
1462
|
setupComplete: boolean;
|
|
1465
1463
|
superAdminId: string | null;
|
|
1464
|
+
createdAt: Date;
|
|
1465
|
+
updatedAt: Date;
|
|
1466
1466
|
} | undefined>;
|
|
1467
|
-
updateWorkspaceSettings: (params:
|
|
1468
|
-
name:
|
|
1469
|
-
setupComplete:
|
|
1470
|
-
superAdminId:
|
|
1467
|
+
updateWorkspaceSettings: (params: zod0.infer<zod0.ZodObject<{
|
|
1468
|
+
name: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
|
|
1469
|
+
setupComplete: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
1470
|
+
superAdminId: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
|
|
1471
1471
|
}, better_auth0.$strip>>) => Promise<{
|
|
1472
1472
|
name: string | null;
|
|
1473
1473
|
id: string;
|
|
1474
|
-
createdAt: Date;
|
|
1475
|
-
updatedAt: Date;
|
|
1476
1474
|
setupComplete: boolean;
|
|
1477
1475
|
superAdminId: string | null;
|
|
1476
|
+
createdAt: Date;
|
|
1477
|
+
updatedAt: Date;
|
|
1478
1478
|
} | undefined>;
|
|
1479
1479
|
getSuperAdminId: () => Promise<string | null>;
|
|
1480
1480
|
setSuperAdminId: (userId: string) => Promise<boolean>;
|
|
@@ -1482,508 +1482,506 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
1482
1482
|
markSetupComplete: () => Promise<{
|
|
1483
1483
|
name: string | null;
|
|
1484
1484
|
id: string;
|
|
1485
|
-
createdAt: Date;
|
|
1486
|
-
updatedAt: Date;
|
|
1487
1485
|
setupComplete: boolean;
|
|
1488
1486
|
superAdminId: string | null;
|
|
1487
|
+
createdAt: Date;
|
|
1488
|
+
updatedAt: Date;
|
|
1489
1489
|
} | undefined>;
|
|
1490
|
-
createVariantVersion: (params:
|
|
1491
|
-
variantId:
|
|
1492
|
-
provider:
|
|
1493
|
-
modelName:
|
|
1494
|
-
jsonData:
|
|
1490
|
+
createVariantVersion: (params: zod0.infer<zod0.ZodObject<{
|
|
1491
|
+
variantId: zod0.ZodString;
|
|
1492
|
+
provider: zod0.ZodString;
|
|
1493
|
+
modelName: zod0.ZodString;
|
|
1494
|
+
jsonData: zod0.ZodDefault<zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>>>;
|
|
1495
1495
|
}, better_auth0.$strip>>) => Promise<{
|
|
1496
1496
|
version: number;
|
|
1497
|
-
id: string;
|
|
1498
|
-
createdAt: Date;
|
|
1499
|
-
updatedAt: Date;
|
|
1500
1497
|
variantId: string;
|
|
1498
|
+
id: string;
|
|
1501
1499
|
provider: string;
|
|
1502
1500
|
modelName: string;
|
|
1503
1501
|
jsonData: Record<string, unknown>;
|
|
1502
|
+
createdAt: Date;
|
|
1503
|
+
updatedAt: Date;
|
|
1504
1504
|
} | undefined>;
|
|
1505
|
-
getVariantVersionById: (params:
|
|
1506
|
-
id:
|
|
1505
|
+
getVariantVersionById: (params: zod0.infer<zod0.ZodObject<{
|
|
1506
|
+
id: zod0.ZodString;
|
|
1507
1507
|
}, better_auth0.$strip>>) => Promise<{
|
|
1508
1508
|
version: number;
|
|
1509
|
-
id: string;
|
|
1510
|
-
createdAt: Date;
|
|
1511
|
-
updatedAt: Date;
|
|
1512
1509
|
variantId: string;
|
|
1510
|
+
id: string;
|
|
1513
1511
|
provider: string;
|
|
1514
1512
|
modelName: string;
|
|
1515
1513
|
jsonData: Record<string, unknown>;
|
|
1514
|
+
createdAt: Date;
|
|
1515
|
+
updatedAt: Date;
|
|
1516
1516
|
} | undefined>;
|
|
1517
|
-
getVariantVersionsByVariantId: (params:
|
|
1518
|
-
variantId:
|
|
1519
|
-
limit:
|
|
1520
|
-
offset:
|
|
1517
|
+
getVariantVersionsByVariantId: (params: zod0.infer<zod0.ZodObject<{
|
|
1518
|
+
variantId: zod0.ZodString;
|
|
1519
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1520
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1521
1521
|
}, better_auth0.$strip>>) => Promise<{
|
|
1522
1522
|
version: number;
|
|
1523
|
-
id: string;
|
|
1524
|
-
createdAt: Date;
|
|
1525
|
-
updatedAt: Date;
|
|
1526
1523
|
variantId: string;
|
|
1524
|
+
id: string;
|
|
1527
1525
|
provider: string;
|
|
1528
1526
|
modelName: string;
|
|
1529
1527
|
jsonData: Record<string, unknown>;
|
|
1528
|
+
createdAt: Date;
|
|
1529
|
+
updatedAt: Date;
|
|
1530
1530
|
}[]>;
|
|
1531
|
-
getLatestVariantVersion: (params:
|
|
1532
|
-
variantId:
|
|
1531
|
+
getLatestVariantVersion: (params: zod0.infer<zod0.ZodObject<{
|
|
1532
|
+
variantId: zod0.ZodString;
|
|
1533
1533
|
}, better_auth0.$strip>>) => Promise<{
|
|
1534
1534
|
version: number;
|
|
1535
|
-
id: string;
|
|
1536
|
-
createdAt: Date;
|
|
1537
|
-
updatedAt: Date;
|
|
1538
1535
|
variantId: string;
|
|
1536
|
+
id: string;
|
|
1539
1537
|
provider: string;
|
|
1540
1538
|
modelName: string;
|
|
1541
1539
|
jsonData: Record<string, unknown>;
|
|
1540
|
+
createdAt: Date;
|
|
1541
|
+
updatedAt: Date;
|
|
1542
1542
|
} | undefined>;
|
|
1543
|
-
getVariantVersionByNumber: (params:
|
|
1544
|
-
variantId:
|
|
1545
|
-
version:
|
|
1543
|
+
getVariantVersionByNumber: (params: zod0.infer<zod0.ZodObject<{
|
|
1544
|
+
variantId: zod0.ZodString;
|
|
1545
|
+
version: zod0.ZodNumber;
|
|
1546
1546
|
}, better_auth0.$strip>>) => Promise<{
|
|
1547
1547
|
version: number;
|
|
1548
|
-
id: string;
|
|
1549
|
-
createdAt: Date;
|
|
1550
|
-
updatedAt: Date;
|
|
1551
1548
|
variantId: string;
|
|
1549
|
+
id: string;
|
|
1552
1550
|
provider: string;
|
|
1553
1551
|
modelName: string;
|
|
1554
1552
|
jsonData: Record<string, unknown>;
|
|
1553
|
+
createdAt: Date;
|
|
1554
|
+
updatedAt: Date;
|
|
1555
1555
|
} | undefined>;
|
|
1556
|
-
deleteVariantVersion: (params:
|
|
1557
|
-
id:
|
|
1556
|
+
deleteVariantVersion: (params: zod0.infer<zod0.ZodObject<{
|
|
1557
|
+
id: zod0.ZodString;
|
|
1558
1558
|
}, better_auth0.$strip>>) => Promise<{
|
|
1559
1559
|
version: number;
|
|
1560
|
-
id: string;
|
|
1561
|
-
createdAt: Date;
|
|
1562
|
-
updatedAt: Date;
|
|
1563
1560
|
variantId: string;
|
|
1561
|
+
id: string;
|
|
1564
1562
|
provider: string;
|
|
1565
1563
|
modelName: string;
|
|
1566
1564
|
jsonData: Record<string, unknown>;
|
|
1565
|
+
createdAt: Date;
|
|
1566
|
+
updatedAt: Date;
|
|
1567
1567
|
} | undefined>;
|
|
1568
|
-
deleteVariantVersionsByVariantId: (params:
|
|
1569
|
-
variantId:
|
|
1568
|
+
deleteVariantVersionsByVariantId: (params: zod0.infer<zod0.ZodObject<{
|
|
1569
|
+
variantId: zod0.ZodString;
|
|
1570
1570
|
}, better_auth0.$strip>>) => Promise<{
|
|
1571
1571
|
version: number;
|
|
1572
|
-
id: string;
|
|
1573
|
-
createdAt: Date;
|
|
1574
|
-
updatedAt: Date;
|
|
1575
1572
|
variantId: string;
|
|
1573
|
+
id: string;
|
|
1576
1574
|
provider: string;
|
|
1577
1575
|
modelName: string;
|
|
1578
1576
|
jsonData: Record<string, unknown>;
|
|
1577
|
+
createdAt: Date;
|
|
1578
|
+
updatedAt: Date;
|
|
1579
1579
|
}[]>;
|
|
1580
|
-
getVariantVersionWithVariant: (params:
|
|
1581
|
-
id:
|
|
1580
|
+
getVariantVersionWithVariant: (params: zod0.infer<zod0.ZodObject<{
|
|
1581
|
+
id: zod0.ZodString;
|
|
1582
1582
|
}, better_auth0.$strip>>) => Promise<{
|
|
1583
1583
|
version: number;
|
|
1584
|
-
id: string;
|
|
1585
|
-
createdAt: Date;
|
|
1586
|
-
updatedAt: Date;
|
|
1587
1584
|
variantId: string;
|
|
1585
|
+
id: string;
|
|
1588
1586
|
provider: string;
|
|
1589
1587
|
modelName: string;
|
|
1590
1588
|
jsonData: Record<string, unknown>;
|
|
1589
|
+
createdAt: Date;
|
|
1590
|
+
updatedAt: Date;
|
|
1591
1591
|
variantName: string;
|
|
1592
1592
|
} | undefined>;
|
|
1593
|
-
getVariantVersionsWithVariantByVariantId: (params:
|
|
1594
|
-
variantId:
|
|
1595
|
-
limit:
|
|
1596
|
-
offset:
|
|
1593
|
+
getVariantVersionsWithVariantByVariantId: (params: zod0.infer<zod0.ZodObject<{
|
|
1594
|
+
variantId: zod0.ZodString;
|
|
1595
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1596
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1597
1597
|
}, better_auth0.$strip>>) => Promise<{
|
|
1598
1598
|
version: number;
|
|
1599
|
-
id: string;
|
|
1600
|
-
createdAt: Date;
|
|
1601
|
-
updatedAt: Date;
|
|
1602
1599
|
variantId: string;
|
|
1600
|
+
id: string;
|
|
1603
1601
|
provider: string;
|
|
1604
1602
|
modelName: string;
|
|
1605
1603
|
jsonData: Record<string, unknown>;
|
|
1604
|
+
createdAt: Date;
|
|
1605
|
+
updatedAt: Date;
|
|
1606
1606
|
variantName: string;
|
|
1607
1607
|
}[]>;
|
|
1608
|
-
createVariant: (params:
|
|
1609
|
-
name:
|
|
1608
|
+
createVariant: (params: zod0.infer<zod0.ZodObject<{
|
|
1609
|
+
name: zod0.ZodString;
|
|
1610
1610
|
}, better_auth0.$strip>>) => Promise<{
|
|
1611
1611
|
name: string;
|
|
1612
1612
|
id: string;
|
|
1613
1613
|
createdAt: Date;
|
|
1614
1614
|
updatedAt: Date;
|
|
1615
1615
|
} | undefined>;
|
|
1616
|
-
updateVariant: (params:
|
|
1617
|
-
variantId:
|
|
1618
|
-
name:
|
|
1616
|
+
updateVariant: (params: zod0.infer<zod0.ZodObject<{
|
|
1617
|
+
variantId: zod0.ZodString;
|
|
1618
|
+
name: zod0.ZodOptional<zod0.ZodString>;
|
|
1619
1619
|
}, better_auth0.$strip>>) => Promise<{
|
|
1620
1620
|
name: string;
|
|
1621
1621
|
id: string;
|
|
1622
1622
|
createdAt: Date;
|
|
1623
1623
|
updatedAt: Date;
|
|
1624
1624
|
} | undefined>;
|
|
1625
|
-
getVariantById: (params:
|
|
1626
|
-
variantId:
|
|
1625
|
+
getVariantById: (params: zod0.infer<zod0.ZodObject<{
|
|
1626
|
+
variantId: zod0.ZodString;
|
|
1627
1627
|
}, better_auth0.$strip>>) => Promise<{
|
|
1628
1628
|
name: string;
|
|
1629
1629
|
id: string;
|
|
1630
1630
|
createdAt: Date;
|
|
1631
1631
|
updatedAt: Date;
|
|
1632
1632
|
} | undefined>;
|
|
1633
|
-
getVariantWithLatestVersion: (params:
|
|
1634
|
-
variantId:
|
|
1633
|
+
getVariantWithLatestVersion: (params: zod0.infer<zod0.ZodObject<{
|
|
1634
|
+
variantId: zod0.ZodString;
|
|
1635
1635
|
}, better_auth0.$strip>>) => Promise<{
|
|
1636
1636
|
latestVersion: {
|
|
1637
1637
|
version: number;
|
|
1638
|
-
id: string;
|
|
1639
|
-
createdAt: Date;
|
|
1640
|
-
updatedAt: Date;
|
|
1641
1638
|
variantId: string;
|
|
1639
|
+
id: string;
|
|
1642
1640
|
provider: string;
|
|
1643
1641
|
modelName: string;
|
|
1644
1642
|
jsonData: Record<string, unknown>;
|
|
1643
|
+
createdAt: Date;
|
|
1644
|
+
updatedAt: Date;
|
|
1645
1645
|
} | null;
|
|
1646
1646
|
name: string;
|
|
1647
1647
|
id: string;
|
|
1648
1648
|
createdAt: Date;
|
|
1649
1649
|
updatedAt: Date;
|
|
1650
1650
|
} | undefined>;
|
|
1651
|
-
deleteVariant: (params:
|
|
1652
|
-
variantId:
|
|
1651
|
+
deleteVariant: (params: zod0.infer<zod0.ZodObject<{
|
|
1652
|
+
variantId: zod0.ZodString;
|
|
1653
1653
|
}, better_auth0.$strip>>) => Promise<{
|
|
1654
1654
|
name: string;
|
|
1655
1655
|
id: string;
|
|
1656
1656
|
createdAt: Date;
|
|
1657
1657
|
updatedAt: Date;
|
|
1658
1658
|
} | undefined>;
|
|
1659
|
-
listVariants: (params?:
|
|
1660
|
-
limit:
|
|
1661
|
-
offset:
|
|
1659
|
+
listVariants: (params?: zod0.infer<zod0.ZodObject<{
|
|
1660
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1661
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1662
1662
|
}, better_auth0.$strip>>) => Promise<{
|
|
1663
1663
|
name: string;
|
|
1664
1664
|
id: string;
|
|
1665
1665
|
createdAt: Date;
|
|
1666
1666
|
updatedAt: Date;
|
|
1667
1667
|
}[]>;
|
|
1668
|
-
listVariantsWithLatestVersion: (params?:
|
|
1669
|
-
limit:
|
|
1670
|
-
offset:
|
|
1668
|
+
listVariantsWithLatestVersion: (params?: zod0.infer<zod0.ZodObject<{
|
|
1669
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1670
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1671
1671
|
}, better_auth0.$strip>>) => Promise<{
|
|
1672
1672
|
latestVersion: {
|
|
1673
1673
|
version: number;
|
|
1674
|
-
id: string;
|
|
1675
|
-
createdAt: Date;
|
|
1676
|
-
updatedAt: Date;
|
|
1677
1674
|
variantId: string;
|
|
1675
|
+
id: string;
|
|
1678
1676
|
provider: string;
|
|
1679
1677
|
modelName: string;
|
|
1680
1678
|
jsonData: Record<string, unknown>;
|
|
1679
|
+
createdAt: Date;
|
|
1680
|
+
updatedAt: Date;
|
|
1681
1681
|
} | null;
|
|
1682
1682
|
name: string;
|
|
1683
1683
|
id: string;
|
|
1684
1684
|
createdAt: Date;
|
|
1685
1685
|
updatedAt: Date;
|
|
1686
1686
|
}[]>;
|
|
1687
|
-
createTargetingRule: (params:
|
|
1688
|
-
environmentId:
|
|
1689
|
-
configId:
|
|
1690
|
-
configVariantId:
|
|
1691
|
-
variantVersionId:
|
|
1692
|
-
weight:
|
|
1693
|
-
priority:
|
|
1694
|
-
enabled:
|
|
1695
|
-
conditions:
|
|
1687
|
+
createTargetingRule: (params: zod0.infer<zod0.ZodObject<{
|
|
1688
|
+
environmentId: zod0.ZodString;
|
|
1689
|
+
configId: zod0.ZodString;
|
|
1690
|
+
configVariantId: zod0.ZodString;
|
|
1691
|
+
variantVersionId: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
|
|
1692
|
+
weight: zod0.ZodDefault<zod0.ZodOptional<zod0.ZodNumber>>;
|
|
1693
|
+
priority: zod0.ZodDefault<zod0.ZodOptional<zod0.ZodNumber>>;
|
|
1694
|
+
enabled: zod0.ZodDefault<zod0.ZodOptional<zod0.ZodBoolean>>;
|
|
1695
|
+
conditions: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>>>;
|
|
1696
1696
|
}, better_auth0.$strip>>) => Promise<{
|
|
1697
|
+
configId: string;
|
|
1697
1698
|
id: string;
|
|
1698
|
-
createdAt: Date;
|
|
1699
|
-
updatedAt: Date;
|
|
1700
1699
|
environmentId: string;
|
|
1701
|
-
|
|
1700
|
+
enabled: boolean;
|
|
1702
1701
|
configVariantId: string;
|
|
1703
1702
|
variantVersionId: string | null;
|
|
1704
1703
|
weight: number;
|
|
1705
1704
|
priority: number;
|
|
1706
|
-
enabled: boolean;
|
|
1707
1705
|
conditions: Record<string, unknown>;
|
|
1706
|
+
createdAt: Date;
|
|
1707
|
+
updatedAt: Date;
|
|
1708
1708
|
} | undefined>;
|
|
1709
|
-
updateTargetingRule: (params:
|
|
1710
|
-
id:
|
|
1711
|
-
variantVersionId:
|
|
1712
|
-
weight:
|
|
1713
|
-
priority:
|
|
1714
|
-
enabled:
|
|
1715
|
-
conditions:
|
|
1709
|
+
updateTargetingRule: (params: zod0.infer<zod0.ZodObject<{
|
|
1710
|
+
id: zod0.ZodString;
|
|
1711
|
+
variantVersionId: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
|
|
1712
|
+
weight: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1713
|
+
priority: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1714
|
+
enabled: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
1715
|
+
conditions: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>>>;
|
|
1716
1716
|
}, better_auth0.$strip>>) => Promise<{
|
|
1717
|
+
configId: string;
|
|
1717
1718
|
id: string;
|
|
1718
|
-
createdAt: Date;
|
|
1719
|
-
updatedAt: Date;
|
|
1720
1719
|
environmentId: string;
|
|
1721
|
-
|
|
1720
|
+
enabled: boolean;
|
|
1722
1721
|
configVariantId: string;
|
|
1723
1722
|
variantVersionId: string | null;
|
|
1724
1723
|
weight: number;
|
|
1725
1724
|
priority: number;
|
|
1726
|
-
enabled: boolean;
|
|
1727
1725
|
conditions: Record<string, unknown>;
|
|
1726
|
+
createdAt: Date;
|
|
1727
|
+
updatedAt: Date;
|
|
1728
1728
|
} | undefined>;
|
|
1729
|
-
getTargetingRuleById: (params:
|
|
1730
|
-
id:
|
|
1729
|
+
getTargetingRuleById: (params: zod0.infer<zod0.ZodObject<{
|
|
1730
|
+
id: zod0.ZodString;
|
|
1731
1731
|
}, better_auth0.$strip>>) => Promise<{
|
|
1732
|
+
configId: string;
|
|
1732
1733
|
id: string;
|
|
1733
|
-
createdAt: Date;
|
|
1734
|
-
updatedAt: Date;
|
|
1735
1734
|
environmentId: string;
|
|
1736
|
-
|
|
1735
|
+
enabled: boolean;
|
|
1737
1736
|
configVariantId: string;
|
|
1738
1737
|
variantVersionId: string | null;
|
|
1739
1738
|
weight: number;
|
|
1740
1739
|
priority: number;
|
|
1741
|
-
enabled: boolean;
|
|
1742
1740
|
conditions: Record<string, unknown>;
|
|
1741
|
+
createdAt: Date;
|
|
1742
|
+
updatedAt: Date;
|
|
1743
1743
|
} | undefined>;
|
|
1744
|
-
getTargetingRulesByConfigId: (params:
|
|
1745
|
-
configId:
|
|
1746
|
-
limit:
|
|
1747
|
-
offset:
|
|
1744
|
+
getTargetingRulesByConfigId: (params: zod0.infer<zod0.ZodObject<{
|
|
1745
|
+
configId: zod0.ZodString;
|
|
1746
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1747
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1748
1748
|
}, better_auth0.$strip>>) => Promise<{
|
|
1749
|
+
configId: string;
|
|
1749
1750
|
id: string;
|
|
1750
|
-
createdAt: Date;
|
|
1751
|
-
updatedAt: Date;
|
|
1752
1751
|
environmentId: string;
|
|
1753
|
-
|
|
1752
|
+
enabled: boolean;
|
|
1754
1753
|
configVariantId: string;
|
|
1755
1754
|
variantVersionId: string | null;
|
|
1756
1755
|
weight: number;
|
|
1757
1756
|
priority: number;
|
|
1758
|
-
enabled: boolean;
|
|
1759
1757
|
conditions: Record<string, unknown>;
|
|
1758
|
+
createdAt: Date;
|
|
1759
|
+
updatedAt: Date;
|
|
1760
1760
|
}[]>;
|
|
1761
|
-
getTargetingRulesByEnvironmentId: (params:
|
|
1762
|
-
environmentId:
|
|
1763
|
-
limit:
|
|
1764
|
-
offset:
|
|
1761
|
+
getTargetingRulesByEnvironmentId: (params: zod0.infer<zod0.ZodObject<{
|
|
1762
|
+
environmentId: zod0.ZodString;
|
|
1763
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1764
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1765
1765
|
}, better_auth0.$strip>>) => Promise<{
|
|
1766
|
+
configId: string;
|
|
1766
1767
|
id: string;
|
|
1767
|
-
createdAt: Date;
|
|
1768
|
-
updatedAt: Date;
|
|
1769
1768
|
environmentId: string;
|
|
1770
|
-
|
|
1769
|
+
enabled: boolean;
|
|
1771
1770
|
configVariantId: string;
|
|
1772
1771
|
variantVersionId: string | null;
|
|
1773
1772
|
weight: number;
|
|
1774
1773
|
priority: number;
|
|
1775
|
-
enabled: boolean;
|
|
1776
1774
|
conditions: Record<string, unknown>;
|
|
1775
|
+
createdAt: Date;
|
|
1776
|
+
updatedAt: Date;
|
|
1777
1777
|
}[]>;
|
|
1778
|
-
getTargetingRulesByConfigAndEnvironment: (params:
|
|
1779
|
-
configId:
|
|
1780
|
-
environmentId:
|
|
1778
|
+
getTargetingRulesByConfigAndEnvironment: (params: zod0.infer<zod0.ZodObject<{
|
|
1779
|
+
configId: zod0.ZodString;
|
|
1780
|
+
environmentId: zod0.ZodString;
|
|
1781
1781
|
}, better_auth0.$strip>>) => Promise<{
|
|
1782
|
+
configId: string;
|
|
1782
1783
|
id: string;
|
|
1783
|
-
createdAt: Date;
|
|
1784
|
-
updatedAt: Date;
|
|
1785
1784
|
environmentId: string;
|
|
1786
|
-
|
|
1785
|
+
enabled: boolean;
|
|
1787
1786
|
configVariantId: string;
|
|
1788
1787
|
variantVersionId: string | null;
|
|
1789
1788
|
weight: number;
|
|
1790
1789
|
priority: number;
|
|
1791
|
-
enabled: boolean;
|
|
1792
1790
|
conditions: Record<string, unknown>;
|
|
1791
|
+
createdAt: Date;
|
|
1792
|
+
updatedAt: Date;
|
|
1793
1793
|
}[]>;
|
|
1794
|
-
deleteTargetingRule: (params:
|
|
1795
|
-
id:
|
|
1794
|
+
deleteTargetingRule: (params: zod0.infer<zod0.ZodObject<{
|
|
1795
|
+
id: zod0.ZodString;
|
|
1796
1796
|
}, better_auth0.$strip>>) => Promise<{
|
|
1797
|
+
configId: string;
|
|
1797
1798
|
id: string;
|
|
1798
|
-
createdAt: Date;
|
|
1799
|
-
updatedAt: Date;
|
|
1800
1799
|
environmentId: string;
|
|
1801
|
-
|
|
1800
|
+
enabled: boolean;
|
|
1802
1801
|
configVariantId: string;
|
|
1803
1802
|
variantVersionId: string | null;
|
|
1804
1803
|
weight: number;
|
|
1805
1804
|
priority: number;
|
|
1806
|
-
enabled: boolean;
|
|
1807
1805
|
conditions: Record<string, unknown>;
|
|
1806
|
+
createdAt: Date;
|
|
1807
|
+
updatedAt: Date;
|
|
1808
1808
|
} | undefined>;
|
|
1809
|
-
deleteTargetingRulesByConfigId: (params:
|
|
1810
|
-
configId:
|
|
1809
|
+
deleteTargetingRulesByConfigId: (params: zod0.infer<zod0.ZodObject<{
|
|
1810
|
+
configId: zod0.ZodString;
|
|
1811
1811
|
}, better_auth0.$strip>>) => Promise<{
|
|
1812
|
+
configId: string;
|
|
1812
1813
|
id: string;
|
|
1813
|
-
createdAt: Date;
|
|
1814
|
-
updatedAt: Date;
|
|
1815
1814
|
environmentId: string;
|
|
1816
|
-
|
|
1815
|
+
enabled: boolean;
|
|
1817
1816
|
configVariantId: string;
|
|
1818
1817
|
variantVersionId: string | null;
|
|
1819
1818
|
weight: number;
|
|
1820
1819
|
priority: number;
|
|
1821
|
-
enabled: boolean;
|
|
1822
1820
|
conditions: Record<string, unknown>;
|
|
1821
|
+
createdAt: Date;
|
|
1822
|
+
updatedAt: Date;
|
|
1823
1823
|
}[]>;
|
|
1824
|
-
deleteTargetingRulesByEnvironmentId: (params:
|
|
1825
|
-
environmentId:
|
|
1824
|
+
deleteTargetingRulesByEnvironmentId: (params: zod0.infer<zod0.ZodObject<{
|
|
1825
|
+
environmentId: zod0.ZodString;
|
|
1826
1826
|
}, better_auth0.$strip>>) => Promise<{
|
|
1827
|
+
configId: string;
|
|
1827
1828
|
id: string;
|
|
1828
|
-
createdAt: Date;
|
|
1829
|
-
updatedAt: Date;
|
|
1830
1829
|
environmentId: string;
|
|
1831
|
-
|
|
1830
|
+
enabled: boolean;
|
|
1832
1831
|
configVariantId: string;
|
|
1833
1832
|
variantVersionId: string | null;
|
|
1834
1833
|
weight: number;
|
|
1835
1834
|
priority: number;
|
|
1836
|
-
enabled: boolean;
|
|
1837
1835
|
conditions: Record<string, unknown>;
|
|
1836
|
+
createdAt: Date;
|
|
1837
|
+
updatedAt: Date;
|
|
1838
1838
|
}[]>;
|
|
1839
|
-
listTargetingRules: (params?:
|
|
1840
|
-
limit:
|
|
1841
|
-
offset:
|
|
1839
|
+
listTargetingRules: (params?: zod0.infer<zod0.ZodObject<{
|
|
1840
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1841
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1842
1842
|
}, better_auth0.$strip>>) => Promise<{
|
|
1843
|
+
configId: string;
|
|
1843
1844
|
id: string;
|
|
1844
|
-
createdAt: Date;
|
|
1845
|
-
updatedAt: Date;
|
|
1846
1845
|
environmentId: string;
|
|
1847
|
-
|
|
1846
|
+
enabled: boolean;
|
|
1848
1847
|
configVariantId: string;
|
|
1849
1848
|
variantVersionId: string | null;
|
|
1850
1849
|
weight: number;
|
|
1851
1850
|
priority: number;
|
|
1852
|
-
enabled: boolean;
|
|
1853
1851
|
conditions: Record<string, unknown>;
|
|
1852
|
+
createdAt: Date;
|
|
1853
|
+
updatedAt: Date;
|
|
1854
1854
|
}[]>;
|
|
1855
|
-
getTargetingRulesWithDetailsByConfigId: (params:
|
|
1856
|
-
configId:
|
|
1857
|
-
limit:
|
|
1858
|
-
offset:
|
|
1855
|
+
getTargetingRulesWithDetailsByConfigId: (params: zod0.infer<zod0.ZodObject<{
|
|
1856
|
+
configId: zod0.ZodString;
|
|
1857
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1858
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1859
1859
|
}, better_auth0.$strip>>) => Promise<{
|
|
1860
1860
|
variantProvider: string | null;
|
|
1861
1861
|
variantModelName: string | null;
|
|
1862
1862
|
pinnedVersion: number | null | undefined;
|
|
1863
1863
|
latestVersion: number | null | undefined;
|
|
1864
1864
|
variantName: string | null;
|
|
1865
|
+
configId: string;
|
|
1865
1866
|
id: string;
|
|
1866
|
-
createdAt: Date;
|
|
1867
|
-
updatedAt: Date;
|
|
1868
1867
|
environmentId: string;
|
|
1869
|
-
|
|
1868
|
+
enabled: boolean;
|
|
1870
1869
|
configVariantId: string;
|
|
1871
1870
|
variantVersionId: string | null;
|
|
1872
1871
|
weight: number;
|
|
1873
1872
|
priority: number;
|
|
1874
|
-
enabled: boolean;
|
|
1875
1873
|
conditions: Record<string, unknown>;
|
|
1874
|
+
createdAt: Date;
|
|
1875
|
+
updatedAt: Date;
|
|
1876
1876
|
variantId: string | null;
|
|
1877
1877
|
environmentName: string | null;
|
|
1878
1878
|
environmentSlug: string | null;
|
|
1879
1879
|
}[]>;
|
|
1880
|
-
setTargetingForEnvironment: (params:
|
|
1881
|
-
environmentId:
|
|
1882
|
-
configId:
|
|
1883
|
-
configVariantId:
|
|
1884
|
-
variantVersionId:
|
|
1880
|
+
setTargetingForEnvironment: (params: zod0.infer<zod0.ZodObject<{
|
|
1881
|
+
environmentId: zod0.ZodString;
|
|
1882
|
+
configId: zod0.ZodString;
|
|
1883
|
+
configVariantId: zod0.ZodString;
|
|
1884
|
+
variantVersionId: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
|
|
1885
1885
|
}, better_auth0.$strip>>) => Promise<{
|
|
1886
|
+
configId: string;
|
|
1886
1887
|
id: string;
|
|
1887
|
-
createdAt: Date;
|
|
1888
|
-
updatedAt: Date;
|
|
1889
1888
|
environmentId: string;
|
|
1890
|
-
|
|
1889
|
+
enabled: boolean;
|
|
1891
1890
|
configVariantId: string;
|
|
1892
1891
|
variantVersionId: string | null;
|
|
1893
1892
|
weight: number;
|
|
1894
1893
|
priority: number;
|
|
1895
|
-
enabled: boolean;
|
|
1896
1894
|
conditions: Record<string, unknown>;
|
|
1895
|
+
createdAt: Date;
|
|
1896
|
+
updatedAt: Date;
|
|
1897
1897
|
} | undefined>;
|
|
1898
|
-
createProviderConfig: (params:
|
|
1899
|
-
providerId:
|
|
1900
|
-
config:
|
|
1901
|
-
enabled:
|
|
1898
|
+
createProviderConfig: (params: zod0.infer<zod0.ZodObject<{
|
|
1899
|
+
providerId: zod0.ZodString;
|
|
1900
|
+
config: zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>;
|
|
1901
|
+
enabled: zod0.ZodDefault<zod0.ZodOptional<zod0.ZodBoolean>>;
|
|
1902
1902
|
}, better_auth0.$strip>>) => Promise<{
|
|
1903
1903
|
id: string;
|
|
1904
|
+
config: Record<string, unknown>;
|
|
1905
|
+
providerId: string;
|
|
1906
|
+
enabled: boolean;
|
|
1904
1907
|
createdAt: Date;
|
|
1905
1908
|
updatedAt: Date;
|
|
1906
|
-
enabled: boolean;
|
|
1907
|
-
providerId: string;
|
|
1908
|
-
config: Record<string, unknown>;
|
|
1909
1909
|
} | undefined>;
|
|
1910
|
-
updateProviderConfig: (params:
|
|
1911
|
-
id:
|
|
1912
|
-
config:
|
|
1913
|
-
enabled:
|
|
1910
|
+
updateProviderConfig: (params: zod0.infer<zod0.ZodObject<{
|
|
1911
|
+
id: zod0.ZodUUID;
|
|
1912
|
+
config: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>>;
|
|
1913
|
+
enabled: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
1914
1914
|
}, better_auth0.$strip>>) => Promise<{
|
|
1915
1915
|
id: string;
|
|
1916
|
+
config: Record<string, unknown>;
|
|
1917
|
+
providerId: string;
|
|
1918
|
+
enabled: boolean;
|
|
1916
1919
|
createdAt: Date;
|
|
1917
1920
|
updatedAt: Date;
|
|
1918
|
-
enabled: boolean;
|
|
1919
|
-
providerId: string;
|
|
1920
|
-
config: Record<string, unknown>;
|
|
1921
1921
|
} | undefined>;
|
|
1922
|
-
getProviderConfigById: (params:
|
|
1923
|
-
id:
|
|
1922
|
+
getProviderConfigById: (params: zod0.infer<zod0.ZodObject<{
|
|
1923
|
+
id: zod0.ZodUUID;
|
|
1924
1924
|
}, better_auth0.$strip>>) => Promise<{
|
|
1925
1925
|
id: string;
|
|
1926
|
+
config: Record<string, unknown>;
|
|
1927
|
+
providerId: string;
|
|
1928
|
+
enabled: boolean;
|
|
1926
1929
|
createdAt: Date;
|
|
1927
1930
|
updatedAt: Date;
|
|
1928
|
-
enabled: boolean;
|
|
1929
|
-
providerId: string;
|
|
1930
|
-
config: Record<string, unknown>;
|
|
1931
1931
|
} | undefined>;
|
|
1932
|
-
getProviderConfigByProviderId: (params:
|
|
1933
|
-
providerId:
|
|
1932
|
+
getProviderConfigByProviderId: (params: zod0.infer<zod0.ZodObject<{
|
|
1933
|
+
providerId: zod0.ZodString;
|
|
1934
1934
|
}, better_auth0.$strip>>) => Promise<{
|
|
1935
1935
|
id: string;
|
|
1936
|
+
config: Record<string, unknown>;
|
|
1937
|
+
providerId: string;
|
|
1938
|
+
enabled: boolean;
|
|
1936
1939
|
createdAt: Date;
|
|
1937
1940
|
updatedAt: Date;
|
|
1938
|
-
enabled: boolean;
|
|
1939
|
-
providerId: string;
|
|
1940
|
-
config: Record<string, unknown>;
|
|
1941
1941
|
} | undefined>;
|
|
1942
|
-
deleteProviderConfig: (params:
|
|
1943
|
-
id:
|
|
1942
|
+
deleteProviderConfig: (params: zod0.infer<zod0.ZodObject<{
|
|
1943
|
+
id: zod0.ZodUUID;
|
|
1944
1944
|
}, better_auth0.$strip>>) => Promise<{
|
|
1945
1945
|
id: string;
|
|
1946
|
+
config: Record<string, unknown>;
|
|
1947
|
+
providerId: string;
|
|
1948
|
+
enabled: boolean;
|
|
1946
1949
|
createdAt: Date;
|
|
1947
1950
|
updatedAt: Date;
|
|
1948
|
-
enabled: boolean;
|
|
1949
|
-
providerId: string;
|
|
1950
|
-
config: Record<string, unknown>;
|
|
1951
1951
|
} | undefined>;
|
|
1952
|
-
listProviderConfigs: (params?:
|
|
1953
|
-
limit:
|
|
1954
|
-
offset:
|
|
1952
|
+
listProviderConfigs: (params?: zod0.infer<zod0.ZodObject<{
|
|
1953
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1954
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1955
1955
|
}, better_auth0.$strip>>) => Promise<{
|
|
1956
1956
|
id: string;
|
|
1957
|
+
config: Record<string, unknown>;
|
|
1958
|
+
providerId: string;
|
|
1959
|
+
enabled: boolean;
|
|
1957
1960
|
createdAt: Date;
|
|
1958
1961
|
updatedAt: Date;
|
|
1959
|
-
enabled: boolean;
|
|
1960
|
-
providerId: string;
|
|
1961
|
-
config: Record<string, unknown>;
|
|
1962
1962
|
}[]>;
|
|
1963
1963
|
countProviderConfigs: () => Promise<number>;
|
|
1964
|
-
upsertProviderConfig: (params:
|
|
1965
|
-
providerId:
|
|
1966
|
-
config:
|
|
1967
|
-
enabled:
|
|
1964
|
+
upsertProviderConfig: (params: zod0.infer<zod0.ZodObject<{
|
|
1965
|
+
providerId: zod0.ZodString;
|
|
1966
|
+
config: zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>;
|
|
1967
|
+
enabled: zod0.ZodDefault<zod0.ZodOptional<zod0.ZodBoolean>>;
|
|
1968
1968
|
}, better_auth0.$strip>>) => Promise<{
|
|
1969
1969
|
id: string;
|
|
1970
|
+
config: Record<string, unknown>;
|
|
1971
|
+
providerId: string;
|
|
1972
|
+
enabled: boolean;
|
|
1970
1973
|
createdAt: Date;
|
|
1971
1974
|
updatedAt: Date;
|
|
1972
|
-
enabled: boolean;
|
|
1973
|
-
providerId: string;
|
|
1974
|
-
config: Record<string, unknown>;
|
|
1975
1975
|
} | undefined>;
|
|
1976
1976
|
batchInsertRequests: (requests: LLMRequestInsert[]) => Promise<{
|
|
1977
1977
|
count: number;
|
|
1978
1978
|
}>;
|
|
1979
1979
|
insertRequest: (request: LLMRequestInsert) => Promise<{
|
|
1980
|
-
|
|
1981
|
-
createdAt: Date;
|
|
1982
|
-
updatedAt: Date;
|
|
1980
|
+
configId: string | null;
|
|
1983
1981
|
variantId: string | null;
|
|
1982
|
+
id: string;
|
|
1984
1983
|
provider: string;
|
|
1985
1984
|
environmentId: string | null;
|
|
1986
|
-
configId: string | null;
|
|
1987
1985
|
requestId: string;
|
|
1988
1986
|
model: string;
|
|
1989
1987
|
promptTokens: number;
|
|
@@ -1999,27 +1997,27 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
1999
1997
|
isStreaming: boolean;
|
|
2000
1998
|
userId: string | null;
|
|
2001
1999
|
tags: Record<string, string>;
|
|
2000
|
+
createdAt: Date;
|
|
2001
|
+
updatedAt: Date;
|
|
2002
2002
|
} | undefined>;
|
|
2003
|
-
listRequests: (params?:
|
|
2004
|
-
limit:
|
|
2005
|
-
offset:
|
|
2006
|
-
configId:
|
|
2007
|
-
variantId:
|
|
2008
|
-
environmentId:
|
|
2009
|
-
provider:
|
|
2010
|
-
model:
|
|
2011
|
-
startDate:
|
|
2012
|
-
endDate:
|
|
2013
|
-
tags:
|
|
2003
|
+
listRequests: (params?: zod0.infer<zod0.ZodObject<{
|
|
2004
|
+
limit: zod0.ZodDefault<zod0.ZodNumber>;
|
|
2005
|
+
offset: zod0.ZodDefault<zod0.ZodNumber>;
|
|
2006
|
+
configId: zod0.ZodOptional<zod0.ZodString>;
|
|
2007
|
+
variantId: zod0.ZodOptional<zod0.ZodString>;
|
|
2008
|
+
environmentId: zod0.ZodOptional<zod0.ZodString>;
|
|
2009
|
+
provider: zod0.ZodOptional<zod0.ZodString>;
|
|
2010
|
+
model: zod0.ZodOptional<zod0.ZodString>;
|
|
2011
|
+
startDate: zod0.ZodOptional<zod0.ZodDate>;
|
|
2012
|
+
endDate: zod0.ZodOptional<zod0.ZodDate>;
|
|
2013
|
+
tags: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodArray<zod0.ZodString>>>;
|
|
2014
2014
|
}, better_auth0.$strip>>) => Promise<{
|
|
2015
2015
|
data: {
|
|
2016
|
-
|
|
2017
|
-
createdAt: Date;
|
|
2018
|
-
updatedAt: Date;
|
|
2016
|
+
configId: string | null;
|
|
2019
2017
|
variantId: string | null;
|
|
2018
|
+
id: string;
|
|
2020
2019
|
provider: string;
|
|
2021
2020
|
environmentId: string | null;
|
|
2022
|
-
configId: string | null;
|
|
2023
2021
|
requestId: string;
|
|
2024
2022
|
model: string;
|
|
2025
2023
|
promptTokens: number;
|
|
@@ -2035,19 +2033,19 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2035
2033
|
isStreaming: boolean;
|
|
2036
2034
|
userId: string | null;
|
|
2037
2035
|
tags: Record<string, string>;
|
|
2036
|
+
createdAt: Date;
|
|
2037
|
+
updatedAt: Date;
|
|
2038
2038
|
}[];
|
|
2039
2039
|
total: number;
|
|
2040
2040
|
limit: number;
|
|
2041
2041
|
offset: number;
|
|
2042
2042
|
}>;
|
|
2043
2043
|
getRequestByRequestId: (requestId: string) => Promise<{
|
|
2044
|
-
|
|
2045
|
-
createdAt: Date;
|
|
2046
|
-
updatedAt: Date;
|
|
2044
|
+
configId: string | null;
|
|
2047
2045
|
variantId: string | null;
|
|
2046
|
+
id: string;
|
|
2048
2047
|
provider: string;
|
|
2049
2048
|
environmentId: string | null;
|
|
2050
|
-
configId: string | null;
|
|
2051
2049
|
requestId: string;
|
|
2052
2050
|
model: string;
|
|
2053
2051
|
promptTokens: number;
|
|
@@ -2063,14 +2061,16 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2063
2061
|
isStreaming: boolean;
|
|
2064
2062
|
userId: string | null;
|
|
2065
2063
|
tags: Record<string, string>;
|
|
2064
|
+
createdAt: Date;
|
|
2065
|
+
updatedAt: Date;
|
|
2066
2066
|
} | undefined>;
|
|
2067
|
-
getTotalCost: (params:
|
|
2068
|
-
startDate:
|
|
2069
|
-
endDate:
|
|
2070
|
-
configId:
|
|
2071
|
-
variantId:
|
|
2072
|
-
environmentId:
|
|
2073
|
-
tags:
|
|
2067
|
+
getTotalCost: (params: zod0.infer<zod0.ZodObject<{
|
|
2068
|
+
startDate: zod0.ZodDate;
|
|
2069
|
+
endDate: zod0.ZodDate;
|
|
2070
|
+
configId: zod0.ZodOptional<zod0.ZodString>;
|
|
2071
|
+
variantId: zod0.ZodOptional<zod0.ZodString>;
|
|
2072
|
+
environmentId: zod0.ZodOptional<zod0.ZodString>;
|
|
2073
|
+
tags: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodArray<zod0.ZodString>>>;
|
|
2074
2074
|
}, better_auth0.$strip>>) => Promise<{
|
|
2075
2075
|
totalCost: number;
|
|
2076
2076
|
totalInputCost: number;
|
|
@@ -2080,13 +2080,13 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2080
2080
|
totalTokens: number;
|
|
2081
2081
|
requestCount: number;
|
|
2082
2082
|
} | undefined>;
|
|
2083
|
-
getCostByModel: (params:
|
|
2084
|
-
startDate:
|
|
2085
|
-
endDate:
|
|
2086
|
-
configId:
|
|
2087
|
-
variantId:
|
|
2088
|
-
environmentId:
|
|
2089
|
-
tags:
|
|
2083
|
+
getCostByModel: (params: zod0.infer<zod0.ZodObject<{
|
|
2084
|
+
startDate: zod0.ZodDate;
|
|
2085
|
+
endDate: zod0.ZodDate;
|
|
2086
|
+
configId: zod0.ZodOptional<zod0.ZodString>;
|
|
2087
|
+
variantId: zod0.ZodOptional<zod0.ZodString>;
|
|
2088
|
+
environmentId: zod0.ZodOptional<zod0.ZodString>;
|
|
2089
|
+
tags: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodArray<zod0.ZodString>>>;
|
|
2090
2090
|
}, better_auth0.$strip>>) => Promise<{
|
|
2091
2091
|
provider: string;
|
|
2092
2092
|
model: string;
|
|
@@ -2097,13 +2097,13 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2097
2097
|
requestCount: number;
|
|
2098
2098
|
avgLatencyMs: number;
|
|
2099
2099
|
}[]>;
|
|
2100
|
-
getCostByProvider: (params:
|
|
2101
|
-
startDate:
|
|
2102
|
-
endDate:
|
|
2103
|
-
configId:
|
|
2104
|
-
variantId:
|
|
2105
|
-
environmentId:
|
|
2106
|
-
tags:
|
|
2100
|
+
getCostByProvider: (params: zod0.infer<zod0.ZodObject<{
|
|
2101
|
+
startDate: zod0.ZodDate;
|
|
2102
|
+
endDate: zod0.ZodDate;
|
|
2103
|
+
configId: zod0.ZodOptional<zod0.ZodString>;
|
|
2104
|
+
variantId: zod0.ZodOptional<zod0.ZodString>;
|
|
2105
|
+
environmentId: zod0.ZodOptional<zod0.ZodString>;
|
|
2106
|
+
tags: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodArray<zod0.ZodString>>>;
|
|
2107
2107
|
}, better_auth0.$strip>>) => Promise<{
|
|
2108
2108
|
provider: string;
|
|
2109
2109
|
totalCost: number;
|
|
@@ -2113,13 +2113,13 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2113
2113
|
requestCount: number;
|
|
2114
2114
|
avgLatencyMs: number;
|
|
2115
2115
|
}[]>;
|
|
2116
|
-
getCostByConfig: (params:
|
|
2117
|
-
startDate:
|
|
2118
|
-
endDate:
|
|
2119
|
-
configId:
|
|
2120
|
-
variantId:
|
|
2121
|
-
environmentId:
|
|
2122
|
-
tags:
|
|
2116
|
+
getCostByConfig: (params: zod0.infer<zod0.ZodObject<{
|
|
2117
|
+
startDate: zod0.ZodDate;
|
|
2118
|
+
endDate: zod0.ZodDate;
|
|
2119
|
+
configId: zod0.ZodOptional<zod0.ZodString>;
|
|
2120
|
+
variantId: zod0.ZodOptional<zod0.ZodString>;
|
|
2121
|
+
environmentId: zod0.ZodOptional<zod0.ZodString>;
|
|
2122
|
+
tags: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodArray<zod0.ZodString>>>;
|
|
2123
2123
|
}, better_auth0.$strip>>) => Promise<{
|
|
2124
2124
|
configId: string | null;
|
|
2125
2125
|
totalCost: number;
|
|
@@ -2130,13 +2130,13 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2130
2130
|
configName: string | null | undefined;
|
|
2131
2131
|
configSlug: string | null;
|
|
2132
2132
|
}[]>;
|
|
2133
|
-
getDailyCosts: (params:
|
|
2134
|
-
startDate:
|
|
2135
|
-
endDate:
|
|
2136
|
-
configId:
|
|
2137
|
-
variantId:
|
|
2138
|
-
environmentId:
|
|
2139
|
-
tags:
|
|
2133
|
+
getDailyCosts: (params: zod0.infer<zod0.ZodObject<{
|
|
2134
|
+
startDate: zod0.ZodDate;
|
|
2135
|
+
endDate: zod0.ZodDate;
|
|
2136
|
+
configId: zod0.ZodOptional<zod0.ZodString>;
|
|
2137
|
+
variantId: zod0.ZodOptional<zod0.ZodString>;
|
|
2138
|
+
environmentId: zod0.ZodOptional<zod0.ZodString>;
|
|
2139
|
+
tags: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodArray<zod0.ZodString>>>;
|
|
2140
2140
|
}, better_auth0.$strip>>) => Promise<{
|
|
2141
2141
|
totalCost: number;
|
|
2142
2142
|
totalInputCost: number;
|
|
@@ -2145,32 +2145,32 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2145
2145
|
requestCount: number;
|
|
2146
2146
|
date: string;
|
|
2147
2147
|
}[]>;
|
|
2148
|
-
getCostSummary: (params:
|
|
2149
|
-
startDate:
|
|
2150
|
-
endDate:
|
|
2151
|
-
configId:
|
|
2152
|
-
variantId:
|
|
2153
|
-
environmentId:
|
|
2154
|
-
tags:
|
|
2155
|
-
groupBy:
|
|
2148
|
+
getCostSummary: (params: zod0.infer<zod0.ZodObject<{
|
|
2149
|
+
startDate: zod0.ZodDate;
|
|
2150
|
+
endDate: zod0.ZodDate;
|
|
2151
|
+
configId: zod0.ZodOptional<zod0.ZodString>;
|
|
2152
|
+
variantId: zod0.ZodOptional<zod0.ZodString>;
|
|
2153
|
+
environmentId: zod0.ZodOptional<zod0.ZodString>;
|
|
2154
|
+
tags: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodArray<zod0.ZodString>>>;
|
|
2155
|
+
groupBy: zod0.ZodOptional<zod0.ZodEnum<{
|
|
2156
2156
|
provider: "provider";
|
|
2157
|
-
config: "config";
|
|
2158
2157
|
model: "model";
|
|
2159
2158
|
day: "day";
|
|
2160
2159
|
hour: "hour";
|
|
2160
|
+
config: "config";
|
|
2161
2161
|
}>>;
|
|
2162
2162
|
}, better_auth0.$strip>>) => Promise<{
|
|
2163
2163
|
totalCost: number;
|
|
2164
2164
|
requestCount: number;
|
|
2165
2165
|
groupKey: string;
|
|
2166
2166
|
}[]>;
|
|
2167
|
-
getRequestStats: (params:
|
|
2168
|
-
startDate:
|
|
2169
|
-
endDate:
|
|
2170
|
-
configId:
|
|
2171
|
-
variantId:
|
|
2172
|
-
environmentId:
|
|
2173
|
-
tags:
|
|
2167
|
+
getRequestStats: (params: zod0.infer<zod0.ZodObject<{
|
|
2168
|
+
startDate: zod0.ZodDate;
|
|
2169
|
+
endDate: zod0.ZodDate;
|
|
2170
|
+
configId: zod0.ZodOptional<zod0.ZodString>;
|
|
2171
|
+
variantId: zod0.ZodOptional<zod0.ZodString>;
|
|
2172
|
+
environmentId: zod0.ZodOptional<zod0.ZodString>;
|
|
2173
|
+
tags: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodArray<zod0.ZodString>>>;
|
|
2174
2174
|
}, better_auth0.$strip>>) => Promise<{
|
|
2175
2175
|
avgLatencyMs: number;
|
|
2176
2176
|
totalRequests: number;
|
|
@@ -2184,270 +2184,270 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2184
2184
|
key: string;
|
|
2185
2185
|
value: string;
|
|
2186
2186
|
}[]>;
|
|
2187
|
-
createEnvironmentSecret: (params:
|
|
2188
|
-
environmentId:
|
|
2189
|
-
keyName:
|
|
2190
|
-
keyValue:
|
|
2187
|
+
createEnvironmentSecret: (params: zod0.infer<zod0.ZodObject<{
|
|
2188
|
+
environmentId: zod0.ZodUUID;
|
|
2189
|
+
keyName: zod0.ZodString;
|
|
2190
|
+
keyValue: zod0.ZodString;
|
|
2191
2191
|
}, better_auth0.$strip>>) => Promise<{
|
|
2192
2192
|
id: string;
|
|
2193
|
-
createdAt: Date;
|
|
2194
|
-
updatedAt: Date;
|
|
2195
2193
|
environmentId: string;
|
|
2196
2194
|
keyName: string;
|
|
2197
2195
|
keyValue: string;
|
|
2196
|
+
createdAt: Date;
|
|
2197
|
+
updatedAt: Date;
|
|
2198
2198
|
} | undefined>;
|
|
2199
|
-
updateEnvironmentSecret: (params:
|
|
2200
|
-
secretId:
|
|
2201
|
-
keyName:
|
|
2202
|
-
keyValue:
|
|
2199
|
+
updateEnvironmentSecret: (params: zod0.infer<zod0.ZodObject<{
|
|
2200
|
+
secretId: zod0.ZodUUID;
|
|
2201
|
+
keyName: zod0.ZodOptional<zod0.ZodString>;
|
|
2202
|
+
keyValue: zod0.ZodOptional<zod0.ZodString>;
|
|
2203
2203
|
}, better_auth0.$strip>>) => Promise<{
|
|
2204
2204
|
id: string;
|
|
2205
|
-
createdAt: Date;
|
|
2206
|
-
updatedAt: Date;
|
|
2207
2205
|
environmentId: string;
|
|
2208
2206
|
keyName: string;
|
|
2209
2207
|
keyValue: string;
|
|
2208
|
+
createdAt: Date;
|
|
2209
|
+
updatedAt: Date;
|
|
2210
2210
|
} | undefined>;
|
|
2211
|
-
getEnvironmentSecretById: (params:
|
|
2212
|
-
secretId:
|
|
2211
|
+
getEnvironmentSecretById: (params: zod0.infer<zod0.ZodObject<{
|
|
2212
|
+
secretId: zod0.ZodUUID;
|
|
2213
2213
|
}, better_auth0.$strip>>) => Promise<{
|
|
2214
2214
|
id: string;
|
|
2215
|
-
createdAt: Date;
|
|
2216
|
-
updatedAt: Date;
|
|
2217
2215
|
environmentId: string;
|
|
2218
2216
|
keyName: string;
|
|
2219
2217
|
keyValue: string;
|
|
2218
|
+
createdAt: Date;
|
|
2219
|
+
updatedAt: Date;
|
|
2220
2220
|
} | undefined>;
|
|
2221
|
-
getSecretsByEnvironmentId: (params:
|
|
2222
|
-
environmentId:
|
|
2221
|
+
getSecretsByEnvironmentId: (params: zod0.infer<zod0.ZodObject<{
|
|
2222
|
+
environmentId: zod0.ZodUUID;
|
|
2223
2223
|
}, better_auth0.$strip>>) => Promise<{
|
|
2224
2224
|
id: string;
|
|
2225
|
-
createdAt: Date;
|
|
2226
|
-
updatedAt: Date;
|
|
2227
2225
|
environmentId: string;
|
|
2228
2226
|
keyName: string;
|
|
2229
2227
|
keyValue: string;
|
|
2228
|
+
createdAt: Date;
|
|
2229
|
+
updatedAt: Date;
|
|
2230
2230
|
}[]>;
|
|
2231
|
-
deleteEnvironmentSecret: (params:
|
|
2232
|
-
secretId:
|
|
2231
|
+
deleteEnvironmentSecret: (params: zod0.infer<zod0.ZodObject<{
|
|
2232
|
+
secretId: zod0.ZodUUID;
|
|
2233
2233
|
}, better_auth0.$strip>>) => Promise<{
|
|
2234
2234
|
id: string;
|
|
2235
|
-
createdAt: Date;
|
|
2236
|
-
updatedAt: Date;
|
|
2237
2235
|
environmentId: string;
|
|
2238
2236
|
keyName: string;
|
|
2239
2237
|
keyValue: string;
|
|
2238
|
+
createdAt: Date;
|
|
2239
|
+
updatedAt: Date;
|
|
2240
2240
|
} | undefined>;
|
|
2241
|
-
deleteSecretsByEnvironmentId: (params:
|
|
2242
|
-
environmentId:
|
|
2241
|
+
deleteSecretsByEnvironmentId: (params: zod0.infer<zod0.ZodObject<{
|
|
2242
|
+
environmentId: zod0.ZodUUID;
|
|
2243
2243
|
}, better_auth0.$strip>>) => Promise<{
|
|
2244
2244
|
id: string;
|
|
2245
|
-
createdAt: Date;
|
|
2246
|
-
updatedAt: Date;
|
|
2247
2245
|
environmentId: string;
|
|
2248
2246
|
keyName: string;
|
|
2249
2247
|
keyValue: string;
|
|
2248
|
+
createdAt: Date;
|
|
2249
|
+
updatedAt: Date;
|
|
2250
2250
|
}[]>;
|
|
2251
|
-
listEnvironmentSecrets: (params?:
|
|
2252
|
-
limit:
|
|
2253
|
-
offset:
|
|
2251
|
+
listEnvironmentSecrets: (params?: zod0.infer<zod0.ZodObject<{
|
|
2252
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2253
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2254
2254
|
}, better_auth0.$strip>>) => Promise<{
|
|
2255
2255
|
id: string;
|
|
2256
|
-
createdAt: Date;
|
|
2257
|
-
updatedAt: Date;
|
|
2258
2256
|
environmentId: string;
|
|
2259
2257
|
keyName: string;
|
|
2260
2258
|
keyValue: string;
|
|
2259
|
+
createdAt: Date;
|
|
2260
|
+
updatedAt: Date;
|
|
2261
2261
|
}[]>;
|
|
2262
2262
|
countEnvironmentSecrets: () => Promise<number>;
|
|
2263
|
-
createNewEnvironment: (params:
|
|
2264
|
-
name:
|
|
2265
|
-
slug:
|
|
2266
|
-
isProd:
|
|
2263
|
+
createNewEnvironment: (params: zod0.infer<zod0.ZodObject<{
|
|
2264
|
+
name: zod0.ZodString;
|
|
2265
|
+
slug: zod0.ZodString;
|
|
2266
|
+
isProd: zod0.ZodDefault<zod0.ZodOptional<zod0.ZodBoolean>>;
|
|
2267
2267
|
}, better_auth0.$strip>>) => Promise<{
|
|
2268
|
-
slug: string;
|
|
2269
2268
|
name: string;
|
|
2270
2269
|
id: string;
|
|
2270
|
+
slug: string;
|
|
2271
|
+
isProd: boolean;
|
|
2271
2272
|
createdAt: Date;
|
|
2272
2273
|
updatedAt: Date;
|
|
2273
|
-
isProd: boolean;
|
|
2274
2274
|
} | undefined>;
|
|
2275
|
-
updateEnvironment: (params:
|
|
2276
|
-
environmentId:
|
|
2277
|
-
name:
|
|
2278
|
-
slug:
|
|
2275
|
+
updateEnvironment: (params: zod0.infer<zod0.ZodObject<{
|
|
2276
|
+
environmentId: zod0.ZodUUID;
|
|
2277
|
+
name: zod0.ZodOptional<zod0.ZodString>;
|
|
2278
|
+
slug: zod0.ZodOptional<zod0.ZodString>;
|
|
2279
2279
|
}, better_auth0.$strip>>) => Promise<{
|
|
2280
|
-
slug: string;
|
|
2281
2280
|
name: string;
|
|
2282
2281
|
id: string;
|
|
2282
|
+
slug: string;
|
|
2283
|
+
isProd: boolean;
|
|
2283
2284
|
createdAt: Date;
|
|
2284
2285
|
updatedAt: Date;
|
|
2285
|
-
isProd: boolean;
|
|
2286
2286
|
} | undefined>;
|
|
2287
|
-
getEnvironmentById: (params:
|
|
2288
|
-
environmentId:
|
|
2287
|
+
getEnvironmentById: (params: zod0.infer<zod0.ZodObject<{
|
|
2288
|
+
environmentId: zod0.ZodUUID;
|
|
2289
2289
|
}, better_auth0.$strip>>) => Promise<{
|
|
2290
|
-
slug: string;
|
|
2291
2290
|
name: string;
|
|
2292
2291
|
id: string;
|
|
2292
|
+
slug: string;
|
|
2293
|
+
isProd: boolean;
|
|
2293
2294
|
createdAt: Date;
|
|
2294
2295
|
updatedAt: Date;
|
|
2295
|
-
isProd: boolean;
|
|
2296
2296
|
} | undefined>;
|
|
2297
|
-
getEnvironmentBySlug: (params:
|
|
2298
|
-
slug:
|
|
2297
|
+
getEnvironmentBySlug: (params: zod0.infer<zod0.ZodObject<{
|
|
2298
|
+
slug: zod0.ZodString;
|
|
2299
2299
|
}, better_auth0.$strip>>) => Promise<{
|
|
2300
|
-
slug: string;
|
|
2301
2300
|
name: string;
|
|
2302
2301
|
id: string;
|
|
2302
|
+
slug: string;
|
|
2303
|
+
isProd: boolean;
|
|
2303
2304
|
createdAt: Date;
|
|
2304
2305
|
updatedAt: Date;
|
|
2305
|
-
isProd: boolean;
|
|
2306
2306
|
} | undefined>;
|
|
2307
|
-
deleteEnvironment: (params:
|
|
2308
|
-
environmentId:
|
|
2307
|
+
deleteEnvironment: (params: zod0.infer<zod0.ZodObject<{
|
|
2308
|
+
environmentId: zod0.ZodUUID;
|
|
2309
2309
|
}, better_auth0.$strip>>) => Promise<{
|
|
2310
|
-
slug: string;
|
|
2311
2310
|
name: string;
|
|
2312
2311
|
id: string;
|
|
2312
|
+
slug: string;
|
|
2313
|
+
isProd: boolean;
|
|
2313
2314
|
createdAt: Date;
|
|
2314
2315
|
updatedAt: Date;
|
|
2315
|
-
isProd: boolean;
|
|
2316
2316
|
} | undefined>;
|
|
2317
|
-
listEnvironments: (params?:
|
|
2318
|
-
limit:
|
|
2319
|
-
offset:
|
|
2317
|
+
listEnvironments: (params?: zod0.infer<zod0.ZodObject<{
|
|
2318
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2319
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2320
2320
|
}, better_auth0.$strip>>) => Promise<{
|
|
2321
|
-
slug: string;
|
|
2322
2321
|
name: string;
|
|
2323
2322
|
id: string;
|
|
2323
|
+
slug: string;
|
|
2324
|
+
isProd: boolean;
|
|
2324
2325
|
createdAt: Date;
|
|
2325
2326
|
updatedAt: Date;
|
|
2326
|
-
isProd: boolean;
|
|
2327
2327
|
}[]>;
|
|
2328
2328
|
countEnvironments: () => Promise<number>;
|
|
2329
|
-
createConfigVariant: (params:
|
|
2330
|
-
configId:
|
|
2331
|
-
variantId:
|
|
2329
|
+
createConfigVariant: (params: zod0.infer<zod0.ZodObject<{
|
|
2330
|
+
configId: zod0.ZodString;
|
|
2331
|
+
variantId: zod0.ZodString;
|
|
2332
2332
|
}, better_auth0.$strip>>) => Promise<{
|
|
2333
|
+
configId: string;
|
|
2334
|
+
variantId: string;
|
|
2333
2335
|
id: string;
|
|
2334
2336
|
createdAt: Date;
|
|
2335
2337
|
updatedAt: Date;
|
|
2336
|
-
variantId: string;
|
|
2337
|
-
configId: string;
|
|
2338
2338
|
} | undefined>;
|
|
2339
|
-
getConfigVariantById: (params:
|
|
2340
|
-
id:
|
|
2339
|
+
getConfigVariantById: (params: zod0.infer<zod0.ZodObject<{
|
|
2340
|
+
id: zod0.ZodString;
|
|
2341
2341
|
}, better_auth0.$strip>>) => Promise<{
|
|
2342
|
+
configId: string;
|
|
2343
|
+
variantId: string;
|
|
2342
2344
|
id: string;
|
|
2343
2345
|
createdAt: Date;
|
|
2344
2346
|
updatedAt: Date;
|
|
2345
|
-
variantId: string;
|
|
2346
|
-
configId: string;
|
|
2347
2347
|
} | undefined>;
|
|
2348
|
-
getConfigVariantsByConfigId: (params:
|
|
2349
|
-
configId:
|
|
2350
|
-
limit:
|
|
2351
|
-
offset:
|
|
2348
|
+
getConfigVariantsByConfigId: (params: zod0.infer<zod0.ZodObject<{
|
|
2349
|
+
configId: zod0.ZodString;
|
|
2350
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2351
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2352
2352
|
}, better_auth0.$strip>>) => Promise<{
|
|
2353
|
+
configId: string;
|
|
2354
|
+
variantId: string;
|
|
2353
2355
|
id: string;
|
|
2354
2356
|
createdAt: Date;
|
|
2355
2357
|
updatedAt: Date;
|
|
2356
|
-
variantId: string;
|
|
2357
|
-
configId: string;
|
|
2358
2358
|
}[]>;
|
|
2359
|
-
getConfigVariantsByVariantId: (params:
|
|
2360
|
-
variantId:
|
|
2361
|
-
limit:
|
|
2362
|
-
offset:
|
|
2359
|
+
getConfigVariantsByVariantId: (params: zod0.infer<zod0.ZodObject<{
|
|
2360
|
+
variantId: zod0.ZodString;
|
|
2361
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2362
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2363
2363
|
}, better_auth0.$strip>>) => Promise<{
|
|
2364
|
+
configId: string;
|
|
2365
|
+
variantId: string;
|
|
2364
2366
|
id: string;
|
|
2365
2367
|
createdAt: Date;
|
|
2366
2368
|
updatedAt: Date;
|
|
2367
|
-
variantId: string;
|
|
2368
|
-
configId: string;
|
|
2369
2369
|
}[]>;
|
|
2370
|
-
deleteConfigVariant: (params:
|
|
2371
|
-
id:
|
|
2370
|
+
deleteConfigVariant: (params: zod0.infer<zod0.ZodObject<{
|
|
2371
|
+
id: zod0.ZodString;
|
|
2372
2372
|
}, better_auth0.$strip>>) => Promise<{
|
|
2373
|
+
configId: string;
|
|
2374
|
+
variantId: string;
|
|
2373
2375
|
id: string;
|
|
2374
2376
|
createdAt: Date;
|
|
2375
2377
|
updatedAt: Date;
|
|
2376
|
-
variantId: string;
|
|
2377
|
-
configId: string;
|
|
2378
2378
|
} | undefined>;
|
|
2379
|
-
deleteConfigVariantByIds: (params:
|
|
2380
|
-
configId:
|
|
2381
|
-
variantId:
|
|
2379
|
+
deleteConfigVariantByIds: (params: zod0.infer<zod0.ZodObject<{
|
|
2380
|
+
configId: zod0.ZodString;
|
|
2381
|
+
variantId: zod0.ZodString;
|
|
2382
2382
|
}, better_auth0.$strip>>) => Promise<{
|
|
2383
|
+
configId: string;
|
|
2384
|
+
variantId: string;
|
|
2383
2385
|
id: string;
|
|
2384
2386
|
createdAt: Date;
|
|
2385
2387
|
updatedAt: Date;
|
|
2386
|
-
variantId: string;
|
|
2387
|
-
configId: string;
|
|
2388
2388
|
} | undefined>;
|
|
2389
|
-
listConfigVariants: (params?:
|
|
2390
|
-
limit:
|
|
2391
|
-
offset:
|
|
2389
|
+
listConfigVariants: (params?: zod0.infer<zod0.ZodObject<{
|
|
2390
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2391
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2392
2392
|
}, better_auth0.$strip>>) => Promise<{
|
|
2393
|
+
configId: string;
|
|
2394
|
+
variantId: string;
|
|
2393
2395
|
id: string;
|
|
2394
2396
|
createdAt: Date;
|
|
2395
2397
|
updatedAt: Date;
|
|
2396
|
-
variantId: string;
|
|
2397
|
-
configId: string;
|
|
2398
2398
|
}[]>;
|
|
2399
|
-
getConfigVariantWithDetails: (params:
|
|
2400
|
-
id:
|
|
2399
|
+
getConfigVariantWithDetails: (params: zod0.infer<zod0.ZodObject<{
|
|
2400
|
+
id: zod0.ZodString;
|
|
2401
2401
|
}, better_auth0.$strip>>) => Promise<{
|
|
2402
2402
|
latestVersion: {
|
|
2403
2403
|
version: number;
|
|
2404
|
-
id: string;
|
|
2405
|
-
createdAt: Date;
|
|
2406
|
-
updatedAt: Date;
|
|
2407
2404
|
variantId: string;
|
|
2405
|
+
id: string;
|
|
2408
2406
|
provider: string;
|
|
2409
2407
|
modelName: string;
|
|
2410
2408
|
jsonData: Record<string, unknown>;
|
|
2409
|
+
createdAt: Date;
|
|
2410
|
+
updatedAt: Date;
|
|
2411
2411
|
} | null;
|
|
2412
2412
|
variantName: string | null;
|
|
2413
2413
|
id: string;
|
|
2414
|
+
configId: string;
|
|
2415
|
+
variantId: string;
|
|
2414
2416
|
createdAt: Date;
|
|
2415
2417
|
updatedAt: Date;
|
|
2416
|
-
variantId: string;
|
|
2417
|
-
configId: string;
|
|
2418
2418
|
configName: string | null | undefined;
|
|
2419
2419
|
} | undefined>;
|
|
2420
|
-
getConfigVariantsWithDetailsByConfigId: (params:
|
|
2421
|
-
configId:
|
|
2422
|
-
limit:
|
|
2423
|
-
offset:
|
|
2420
|
+
getConfigVariantsWithDetailsByConfigId: (params: zod0.infer<zod0.ZodObject<{
|
|
2421
|
+
configId: zod0.ZodString;
|
|
2422
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2423
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2424
2424
|
}, better_auth0.$strip>>) => Promise<{
|
|
2425
2425
|
provider: string | null;
|
|
2426
2426
|
modelName: string | null;
|
|
2427
2427
|
jsonData: Record<string, unknown> | null;
|
|
2428
2428
|
latestVersion: {
|
|
2429
2429
|
version: number;
|
|
2430
|
-
id: string;
|
|
2431
|
-
createdAt: Date;
|
|
2432
|
-
updatedAt: Date;
|
|
2433
2430
|
variantId: string;
|
|
2431
|
+
id: string;
|
|
2434
2432
|
provider: string;
|
|
2435
2433
|
modelName: string;
|
|
2436
2434
|
jsonData: Record<string, unknown>;
|
|
2435
|
+
createdAt: Date;
|
|
2436
|
+
updatedAt: Date;
|
|
2437
2437
|
} | null;
|
|
2438
2438
|
name: string | null;
|
|
2439
2439
|
id: string;
|
|
2440
|
+
configId: string;
|
|
2441
|
+
variantId: string;
|
|
2440
2442
|
createdAt: Date;
|
|
2441
2443
|
updatedAt: Date;
|
|
2442
|
-
variantId: string;
|
|
2443
|
-
configId: string;
|
|
2444
2444
|
}[]>;
|
|
2445
|
-
createVariantAndLinkToConfig: (params:
|
|
2446
|
-
configId:
|
|
2447
|
-
name:
|
|
2448
|
-
provider:
|
|
2449
|
-
modelName:
|
|
2450
|
-
jsonData:
|
|
2445
|
+
createVariantAndLinkToConfig: (params: zod0.infer<zod0.ZodObject<{
|
|
2446
|
+
configId: zod0.ZodString;
|
|
2447
|
+
name: zod0.ZodString;
|
|
2448
|
+
provider: zod0.ZodString;
|
|
2449
|
+
modelName: zod0.ZodString;
|
|
2450
|
+
jsonData: zod0.ZodDefault<zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>>>;
|
|
2451
2451
|
}, better_auth0.$strip>>) => Promise<{
|
|
2452
2452
|
variant: {
|
|
2453
2453
|
name: string;
|
|
@@ -2457,25 +2457,25 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2457
2457
|
};
|
|
2458
2458
|
version: {
|
|
2459
2459
|
version: number;
|
|
2460
|
-
id: string;
|
|
2461
|
-
createdAt: Date;
|
|
2462
|
-
updatedAt: Date;
|
|
2463
2460
|
variantId: string;
|
|
2461
|
+
id: string;
|
|
2464
2462
|
provider: string;
|
|
2465
2463
|
modelName: string;
|
|
2466
2464
|
jsonData: Record<string, unknown>;
|
|
2465
|
+
createdAt: Date;
|
|
2466
|
+
updatedAt: Date;
|
|
2467
2467
|
};
|
|
2468
2468
|
configVariant: {
|
|
2469
|
+
configId: string;
|
|
2470
|
+
variantId: string;
|
|
2469
2471
|
id: string;
|
|
2470
2472
|
createdAt: Date;
|
|
2471
2473
|
updatedAt: Date;
|
|
2472
|
-
variantId: string;
|
|
2473
|
-
configId: string;
|
|
2474
2474
|
};
|
|
2475
2475
|
}>;
|
|
2476
|
-
getVariantJsonDataForConfig: (params:
|
|
2477
|
-
configId:
|
|
2478
|
-
envSecret:
|
|
2476
|
+
getVariantJsonDataForConfig: (params: zod0.infer<zod0.ZodObject<{
|
|
2477
|
+
configId: zod0.ZodString;
|
|
2478
|
+
envSecret: zod0.ZodOptional<zod0.ZodString>;
|
|
2479
2479
|
}, better_auth0.$strip>>) => Promise<{
|
|
2480
2480
|
configId: string;
|
|
2481
2481
|
variantId: string;
|
|
@@ -2485,63 +2485,63 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2485
2485
|
modelName: string;
|
|
2486
2486
|
jsonData: Record<string, unknown>;
|
|
2487
2487
|
}>;
|
|
2488
|
-
createNewConfig: (params:
|
|
2489
|
-
name:
|
|
2488
|
+
createNewConfig: (params: zod0.infer<zod0.ZodObject<{
|
|
2489
|
+
name: zod0.ZodString;
|
|
2490
2490
|
}, better_auth0.$strip>>) => Promise<{
|
|
2491
|
-
slug: string;
|
|
2492
2491
|
name: string | undefined;
|
|
2493
2492
|
id: string;
|
|
2493
|
+
slug: string;
|
|
2494
2494
|
createdAt: Date;
|
|
2495
2495
|
updatedAt: Date;
|
|
2496
2496
|
} | undefined>;
|
|
2497
|
-
updateConfigName: (params:
|
|
2498
|
-
configId:
|
|
2499
|
-
newName:
|
|
2497
|
+
updateConfigName: (params: zod0.infer<zod0.ZodObject<{
|
|
2498
|
+
configId: zod0.ZodUUID;
|
|
2499
|
+
newName: zod0.ZodString;
|
|
2500
2500
|
}, better_auth0.$strip>>) => Promise<{
|
|
2501
|
-
slug: string;
|
|
2502
2501
|
name: string | undefined;
|
|
2503
2502
|
id: string;
|
|
2503
|
+
slug: string;
|
|
2504
2504
|
createdAt: Date;
|
|
2505
2505
|
updatedAt: Date;
|
|
2506
2506
|
} | undefined>;
|
|
2507
|
-
getConfigById: (params:
|
|
2508
|
-
configId:
|
|
2507
|
+
getConfigById: (params: zod0.infer<zod0.ZodObject<{
|
|
2508
|
+
configId: zod0.ZodUUID;
|
|
2509
2509
|
}, better_auth0.$strip>>) => Promise<{
|
|
2510
|
-
slug: string;
|
|
2511
2510
|
name: string | undefined;
|
|
2512
2511
|
id: string;
|
|
2512
|
+
slug: string;
|
|
2513
2513
|
createdAt: Date;
|
|
2514
2514
|
updatedAt: Date;
|
|
2515
2515
|
} | undefined>;
|
|
2516
|
-
deleteConfig: (params:
|
|
2517
|
-
configId:
|
|
2516
|
+
deleteConfig: (params: zod0.infer<zod0.ZodObject<{
|
|
2517
|
+
configId: zod0.ZodUUID;
|
|
2518
2518
|
}, better_auth0.$strip>>) => Promise<{
|
|
2519
|
-
slug: string;
|
|
2520
2519
|
name: string | undefined;
|
|
2521
2520
|
id: string;
|
|
2521
|
+
slug: string;
|
|
2522
2522
|
createdAt: Date;
|
|
2523
2523
|
updatedAt: Date;
|
|
2524
2524
|
} | undefined>;
|
|
2525
|
-
listConfigs: (params?:
|
|
2526
|
-
limit:
|
|
2527
|
-
offset:
|
|
2525
|
+
listConfigs: (params?: zod0.infer<zod0.ZodObject<{
|
|
2526
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2527
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2528
2528
|
}, better_auth0.$strip>>) => Promise<{
|
|
2529
|
-
slug: string;
|
|
2530
2529
|
name: string | undefined;
|
|
2531
2530
|
id: string;
|
|
2531
|
+
slug: string;
|
|
2532
2532
|
createdAt: Date;
|
|
2533
2533
|
updatedAt: Date;
|
|
2534
2534
|
}[]>;
|
|
2535
|
-
getConfigWithVariants: (params:
|
|
2536
|
-
configId:
|
|
2535
|
+
getConfigWithVariants: (params: zod0.infer<zod0.ZodObject<{
|
|
2536
|
+
configId: zod0.ZodUUID;
|
|
2537
2537
|
}, better_auth0.$strip>>) => Promise<{
|
|
2538
2538
|
provider: string | null;
|
|
2539
2539
|
modelName: string | null;
|
|
2540
2540
|
jsonData: Record<string, unknown> | null;
|
|
2541
2541
|
variantName: string | null;
|
|
2542
2542
|
id: string;
|
|
2543
|
-
slug: string;
|
|
2544
2543
|
name: string | undefined;
|
|
2544
|
+
slug: string;
|
|
2545
2545
|
createdAt: Date;
|
|
2546
2546
|
updatedAt: Date;
|
|
2547
2547
|
variantId: string | null;
|