@wix/evalforge-types 0.58.0 → 0.59.0

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/build/index.mjs CHANGED
@@ -1282,14 +1282,36 @@ var LeanEvaluationResultSchema = z29.object({
1282
1282
  microcentsSpent: z29.number().optional()
1283
1283
  });
1284
1284
 
1285
- // src/project/project.ts
1285
+ // src/evaluation/eval-run-folder.ts
1286
1286
  import { z as z30 } from "zod";
1287
+ var EvalRunFolderSchema = TenantEntitySchema.extend({});
1288
+ var CreateEvalRunFolderInputSchema = EvalRunFolderSchema.omit({
1289
+ id: true,
1290
+ createdAt: true,
1291
+ updatedAt: true,
1292
+ deleted: true
1293
+ });
1294
+ var UpdateEvalRunFolderInputSchema = EvalRunFolderSchema.omit({
1295
+ id: true,
1296
+ createdAt: true,
1297
+ updatedAt: true,
1298
+ deleted: true
1299
+ }).partial();
1300
+ var EvalRunFolderMembershipSchema = z30.object({
1301
+ folderId: z30.string(),
1302
+ evalRunId: z30.string(),
1303
+ projectId: z30.string(),
1304
+ createdAt: z30.string()
1305
+ });
1306
+
1307
+ // src/project/project.ts
1308
+ import { z as z31 } from "zod";
1287
1309
  var ProjectSchema = BaseEntitySchema.extend({
1288
- appId: z30.string().optional().describe("The ID of the app in Dev Center"),
1289
- appSecret: z30.string().optional().describe("The secret of the app in Dev Center"),
1290
- useWixAuth: z30.boolean().optional().describe("Enable Wix CLI/MCP auth for evaluations"),
1291
- useBase44Auth: z30.boolean().optional().describe("Enable Base44 auth for evaluations"),
1292
- scenarioTags: z30.array(z30.string()).optional().describe("Project-level tag vocabulary for scenarios")
1310
+ appId: z31.string().optional().describe("The ID of the app in Dev Center"),
1311
+ appSecret: z31.string().optional().describe("The secret of the app in Dev Center"),
1312
+ useWixAuth: z31.boolean().optional().describe("Enable Wix CLI/MCP auth for evaluations"),
1313
+ useBase44Auth: z31.boolean().optional().describe("Enable Base44 auth for evaluations"),
1314
+ scenarioTags: z31.array(z31.string()).optional().describe("Project-level tag vocabulary for scenarios")
1293
1315
  });
1294
1316
  var CreateProjectInputSchema = ProjectSchema.omit({
1295
1317
  id: true,
@@ -1313,7 +1335,7 @@ var CreateTemplateInputSchema = TemplateSchema.omit({
1313
1335
  var UpdateTemplateInputSchema = CreateTemplateInputSchema.partial();
1314
1336
 
1315
1337
  // src/schedule/eval-schedule.ts
1316
- import { z as z31 } from "zod";
1338
+ import { z as z32 } from "zod";
1317
1339
  var FrequencyType = /* @__PURE__ */ ((FrequencyType2) => {
1318
1340
  FrequencyType2["DAILY"] = "daily";
1319
1341
  FrequencyType2["WEEKDAY"] = "weekday";
@@ -1323,29 +1345,29 @@ var FrequencyType = /* @__PURE__ */ ((FrequencyType2) => {
1323
1345
  })(FrequencyType || {});
1324
1346
  var EvalScheduleSchema = TenantEntitySchema.extend({
1325
1347
  /** Whether the schedule is active */
1326
- enabled: z31.boolean(),
1348
+ enabled: z32.boolean(),
1327
1349
  /** Test suite to run */
1328
- suiteId: z31.string(),
1350
+ suiteId: z32.string(),
1329
1351
  /** Preset that provides agent + entities for this schedule */
1330
- presetId: z31.string(),
1352
+ presetId: z32.string(),
1331
1353
  /** How often to run */
1332
- frequencyType: z31.nativeEnum(FrequencyType),
1354
+ frequencyType: z32.nativeEnum(FrequencyType),
1333
1355
  /** Time of day in 24h format (HH:MM), hours 00-23, minutes 00-59 */
1334
- timeOfDay: z31.string().regex(/^([01]\d|2[0-3]):[0-5]\d$/),
1356
+ timeOfDay: z32.string().regex(/^([01]\d|2[0-3]):[0-5]\d$/),
1335
1357
  /** Day of week (0=Sun, 6=Sat) for weekly schedules */
1336
- dayOfWeek: z31.number().min(0).max(6).optional(),
1358
+ dayOfWeek: z32.number().min(0).max(6).optional(),
1337
1359
  /** Day of month (1-31) for monthly schedules */
1338
- dayOfMonth: z31.number().min(1).max(31).optional(),
1360
+ dayOfMonth: z32.number().min(1).max(31).optional(),
1339
1361
  /** IANA timezone (e.g., 'America/New_York') */
1340
- timezone: z31.string(),
1362
+ timezone: z32.string(),
1341
1363
  /** ID of the last eval run created by this schedule */
1342
- lastRunId: z31.string().optional(),
1364
+ lastRunId: z32.string().optional(),
1343
1365
  /** Denormalized status of the last run */
1344
- lastRunStatus: z31.string().optional(),
1366
+ lastRunStatus: z32.string().optional(),
1345
1367
  /** ISO timestamp of the last run */
1346
- lastRunAt: z31.string().optional(),
1368
+ lastRunAt: z32.string().optional(),
1347
1369
  /** Next scheduled run time in UTC (pre-computed for efficient querying, set by backend) */
1348
- nextRunAt: z31.string().optional()
1370
+ nextRunAt: z32.string().optional()
1349
1371
  });
1350
1372
  function isValidTimezone(tz) {
1351
1373
  try {
@@ -1358,14 +1380,14 @@ function isValidTimezone(tz) {
1358
1380
  function validateScheduleFields(data, ctx, options) {
1359
1381
  if (data.frequencyType === "weekly" /* WEEKLY */ && data.dayOfWeek == null) {
1360
1382
  ctx.addIssue({
1361
- code: z31.ZodIssueCode.custom,
1383
+ code: z32.ZodIssueCode.custom,
1362
1384
  message: "dayOfWeek is required for weekly schedules",
1363
1385
  path: ["dayOfWeek"]
1364
1386
  });
1365
1387
  }
1366
1388
  if (data.frequencyType === "monthly" /* MONTHLY */ && data.dayOfMonth == null) {
1367
1389
  ctx.addIssue({
1368
- code: z31.ZodIssueCode.custom,
1390
+ code: z32.ZodIssueCode.custom,
1369
1391
  message: "dayOfMonth is required for monthly schedules",
1370
1392
  path: ["dayOfMonth"]
1371
1393
  });
@@ -1373,7 +1395,7 @@ function validateScheduleFields(data, ctx, options) {
1373
1395
  const shouldValidateTz = options.partial ? data.timezone !== void 0 : true;
1374
1396
  if (shouldValidateTz && !isValidTimezone(data.timezone)) {
1375
1397
  ctx.addIssue({
1376
- code: z31.ZodIssueCode.custom,
1398
+ code: z32.ZodIssueCode.custom,
1377
1399
  message: "Invalid IANA timezone",
1378
1400
  path: ["timezone"]
1379
1401
  });
@@ -1594,6 +1616,7 @@ export {
1594
1616
  CostConfigSchema,
1595
1617
  CreateAgentInputSchema,
1596
1618
  CreateCustomAssertionInputSchema,
1619
+ CreateEvalRunFolderInputSchema,
1597
1620
  CreateEvalRunInputSchema,
1598
1621
  CreateEvalScheduleInputSchema,
1599
1622
  CreateMcpInputSchema,
@@ -1614,6 +1637,8 @@ export {
1614
1637
  DiffLineTypeSchema,
1615
1638
  EnvironmentSchema,
1616
1639
  EvalMetricsSchema,
1640
+ EvalRunFolderMembershipSchema,
1641
+ EvalRunFolderSchema,
1617
1642
  EvalRunResultSchema,
1618
1643
  EvalRunSchema,
1619
1644
  EvalScheduleSchema,
@@ -1707,6 +1732,7 @@ export {
1707
1732
  TriggerType,
1708
1733
  UpdateAgentInputSchema,
1709
1734
  UpdateCustomAssertionInputSchema,
1735
+ UpdateEvalRunFolderInputSchema,
1710
1736
  UpdateEvalScheduleInputSchema,
1711
1737
  UpdateMcpInputSchema,
1712
1738
  UpdatePresetInputSchema,