@wix/evalforge-types 0.96.0 → 0.97.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
@@ -1348,7 +1348,15 @@ var TestScenarioSchema = TenantEntitySchema.extend({
1348
1348
  /** Base64-encoded images attached to the trigger prompt (max 3) */
1349
1349
  triggerPromptImages: z26.array(TriggerPromptImageSchema).max(3).optional(),
1350
1350
  /** Optional per-scenario Wix site provisioning instructions. Absent ≡ no site. */
1351
- siteSetup: SiteSetupConfigSchema.optional()
1351
+ siteSetup: SiteSetupConfigSchema.optional(),
1352
+ /**
1353
+ * Read-only scenarios are managed outside the UI (seeded/imported) and must
1354
+ * not be edited or deleted from the UI. Plain optional (no `.default(false)`):
1355
+ * `UpdateTestScenarioInputSchema` is the create schema `.partial()`, and a Zod
1356
+ * default would coerce an omitted `readOnly` back to `false` on update,
1357
+ * clobbering it. Defaulted to `false` at the repo/DB layer instead.
1358
+ */
1359
+ readOnly: z26.boolean().optional()
1352
1360
  });
1353
1361
  var SITE_SETUP_EXCLUSIVE_VARIABLES = ["site-id"];
1354
1362
  function extractVariableNamesFromPrompt(prompt) {
@@ -1460,7 +1468,9 @@ var BatchScenarioEntrySchema = z27.object({
1460
1468
  triggerPrompt: z27.string().min(10, "triggerPrompt: Must be at least 10 characters"),
1461
1469
  templateId: z27.string().nullish(),
1462
1470
  tags: z27.array(z27.string()).optional(),
1463
- assertionLinks: z27.array(BatchAssertionLinkSchema).optional()
1471
+ assertionLinks: z27.array(BatchAssertionLinkSchema).optional(),
1472
+ /** Mark the imported scenario as read-only (managed outside the UI). */
1473
+ readOnly: z27.boolean().optional()
1464
1474
  }).superRefine((data, ctx) => {
1465
1475
  if (!data.assertionLinks) return;
1466
1476
  const objectLinks = data.assertionLinks.filter(