@wix/evalforge-types 0.70.0 → 0.72.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.js CHANGED
@@ -178,6 +178,7 @@ __export(index_exports, {
178
178
  ToolTestSchema: () => ToolTestSchema,
179
179
  ToolUseBlockSchema: () => ToolUseBlockSchema,
180
180
  TriggerMetadataSchema: () => TriggerMetadataSchema,
181
+ TriggerPromptImageSchema: () => TriggerPromptImageSchema,
181
182
  TriggerSchema: () => TriggerSchema,
182
183
  TriggerType: () => TriggerType,
183
184
  UpdateAgentInputSchema: () => UpdateAgentInputSchema,
@@ -977,6 +978,15 @@ function validateAssertionConfig(type, config) {
977
978
  }
978
979
 
979
980
  // src/scenario/test-scenario.ts
981
+ var MAX_IMAGE_BASE64_LENGTH = 4 * Math.ceil(2 * 1024 * 1024 / 3);
982
+ var TriggerPromptImageSchema = import_zod23.z.object({
983
+ /** Base64-encoded image data (no data URL prefix) */
984
+ base64: import_zod23.z.string().max(MAX_IMAGE_BASE64_LENGTH, "Image exceeds 2 MB size limit"),
985
+ /** MIME type of the image */
986
+ mediaType: import_zod23.z.enum(["image/jpeg", "image/png", "image/gif", "image/webp"]),
987
+ /** Original filename of the image */
988
+ name: import_zod23.z.string()
989
+ });
980
990
  var ExpectedFileSchema = import_zod23.z.object({
981
991
  /** Relative path where the file should be created */
982
992
  path: import_zod23.z.string(),
@@ -995,7 +1005,9 @@ var TestScenarioSchema = TenantEntitySchema.extend({
995
1005
  /** Linked assertions with per-scenario parameter values */
996
1006
  assertionLinks: import_zod23.z.array(ScenarioAssertionLinkSchema).optional(),
997
1007
  /** Tags for categorisation and filtering */
998
- tags: import_zod23.z.array(import_zod23.z.string()).optional()
1008
+ tags: import_zod23.z.array(import_zod23.z.string()).optional(),
1009
+ /** Base64-encoded images attached to the trigger prompt (max 3) */
1010
+ triggerPromptImages: import_zod23.z.array(TriggerPromptImageSchema).max(3).optional()
999
1011
  });
1000
1012
  var CreateTestScenarioInputSchema = TestScenarioSchema.omit({
1001
1013
  id: true,
@@ -2083,6 +2095,7 @@ function getSystemAssertion(id) {
2083
2095
  ToolTestSchema,
2084
2096
  ToolUseBlockSchema,
2085
2097
  TriggerMetadataSchema,
2098
+ TriggerPromptImageSchema,
2086
2099
  TriggerSchema,
2087
2100
  TriggerType,
2088
2101
  UpdateAgentInputSchema,