@wix/evalforge-types 0.30.0 → 0.32.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.
@@ -1,52 +1,15 @@
1
1
  import { z } from 'zod';
2
- /**
3
- * Anthropic Model IDs supported by the AI Gateway.
4
- * These values match the ClaudeModel enum from the Wix AI Gateway API.
5
- */
6
- export declare enum ModelIds {
7
- CLAUDE_3_HAIKU_1_0 = "CLAUDE_3_HAIKU_1_0",
8
- CLAUDE_3_OPUS_1_0 = "CLAUDE_3_OPUS_1_0",
9
- CLAUDE_3_SONNET_1_0 = "CLAUDE_3_SONNET_1_0",
10
- CLAUDE_3_5_SONNET_1_0 = "CLAUDE_3_5_SONNET_1_0",
11
- CLAUDE_3_5_SONNET_2_0 = "CLAUDE_3_5_SONNET_2_0",
12
- CLAUDE_3_7_SONNET_1_0 = "CLAUDE_3_7_SONNET_1_0",
13
- CLAUDE_4_OPUS_1_0 = "CLAUDE_4_OPUS_1_0",
14
- CLAUDE_4_SONNET_1_0 = "CLAUDE_4_SONNET_1_0"
15
- }
16
- export declare const ModelIdsSchema: z.ZodEnum<typeof ModelIds>;
2
+ import { ClaudeModel } from '@wix/ambassador-ds-wix-ai-gateway-v1-prompt/types';
3
+ export { ClaudeModel };
4
+ export declare const AVAILABLE_MODEL_IDS: ClaudeModel[];
5
+ export declare const ClaudeModelSchema: z.ZodEnum<{
6
+ [x: string]: string;
7
+ }>;
17
8
  export declare const ModelConfigSchema: z.ZodObject<{
18
- model: z.ZodEnum<typeof ModelIds>;
9
+ model: z.ZodEnum<{
10
+ [x: string]: string;
11
+ }>;
19
12
  temperature: z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodOptional<z.ZodNumber>>;
20
13
  maxTokens: z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodOptional<z.ZodNumber>>;
21
14
  }, z.core.$strip>;
22
15
  export type ModelConfig = z.infer<typeof ModelConfigSchema>;
23
- /**
24
- * Model pricing schema (cost per 1M tokens).
25
- */
26
- export declare const ModelPricingSchema: z.ZodObject<{
27
- inputPer1M: z.ZodNumber;
28
- outputPer1M: z.ZodNumber;
29
- }, z.core.$strip>;
30
- export type ModelPricing = z.infer<typeof ModelPricingSchema>;
31
- /**
32
- * Model schema - complete model definition with metadata and pricing.
33
- */
34
- export declare const ModelSchema: z.ZodObject<{
35
- id: z.ZodEnum<typeof ModelIds>;
36
- name: z.ZodString;
37
- provider: z.ZodLiteral<"anthropic">;
38
- providerModelId: z.ZodString;
39
- pricing: z.ZodObject<{
40
- inputPer1M: z.ZodNumber;
41
- outputPer1M: z.ZodNumber;
42
- }, z.core.$strip>;
43
- }, z.core.$strip>;
44
- export type Model = z.infer<typeof ModelSchema>;
45
- /**
46
- * Available models with full metadata including pricing.
47
- */
48
- export declare const AVAILABLE_MODELS: Model[];
49
- /**
50
- * Available models as a map keyed by model ID.
51
- */
52
- export declare const AVAILABLE_MODELS_MAP: Record<ModelIds, Model>;
@@ -60,7 +60,9 @@ export declare const EvalRunResultSchema: z.ZodObject<{
60
60
  scenarioId: z.ZodString;
61
61
  scenarioName: z.ZodString;
62
62
  modelConfig: z.ZodOptional<z.ZodObject<{
63
- model: z.ZodEnum<typeof import("../common/models.js").ModelIds>;
63
+ model: z.ZodEnum<{
64
+ [x: string]: string;
65
+ }>;
64
66
  temperature: z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodOptional<z.ZodNumber>>;
65
67
  maxTokens: z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodOptional<z.ZodNumber>>;
66
68
  }, z.core.$strip>>;
@@ -248,7 +248,9 @@ export declare const EvalRunSchema: z.ZodObject<{
248
248
  scenarioId: z.ZodString;
249
249
  scenarioName: z.ZodString;
250
250
  modelConfig: z.ZodOptional<z.ZodObject<{
251
- model: z.ZodEnum<typeof import("../index.js").ModelIds>;
251
+ model: z.ZodEnum<{
252
+ [x: string]: string;
253
+ }>;
252
254
  temperature: z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodOptional<z.ZodNumber>>;
253
255
  maxTokens: z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodOptional<z.ZodNumber>>;
254
256
  }, z.core.$strip>>;
@@ -15,7 +15,9 @@ export declare const AgentSchema: z.ZodObject<{
15
15
  projectId: z.ZodString;
16
16
  runCommand: z.ZodString;
17
17
  modelConfig: z.ZodOptional<z.ZodObject<{
18
- model: z.ZodEnum<typeof import("../common/models.js").ModelIds>;
18
+ model: z.ZodEnum<{
19
+ [x: string]: string;
20
+ }>;
19
21
  temperature: z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodOptional<z.ZodNumber>>;
20
22
  maxTokens: z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodOptional<z.ZodNumber>>;
21
23
  }, z.core.$strip>>;
@@ -30,7 +32,9 @@ export declare const CreateAgentInputSchema: z.ZodObject<{
30
32
  projectId: z.ZodString;
31
33
  runCommand: z.ZodString;
32
34
  modelConfig: z.ZodOptional<z.ZodObject<{
33
- model: z.ZodEnum<typeof import("../common/models.js").ModelIds>;
35
+ model: z.ZodEnum<{
36
+ [x: string]: string;
37
+ }>;
34
38
  temperature: z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodOptional<z.ZodNumber>>;
35
39
  maxTokens: z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodOptional<z.ZodNumber>>;
36
40
  }, z.core.$strip>>;
@@ -46,7 +50,9 @@ export declare const UpdateAgentInputSchema: z.ZodObject<{
46
50
  projectId: z.ZodOptional<z.ZodString>;
47
51
  runCommand: z.ZodOptional<z.ZodString>;
48
52
  modelConfig: z.ZodNullable<z.ZodOptional<z.ZodObject<{
49
- model: z.ZodEnum<typeof import("../common/models.js").ModelIds>;
53
+ model: z.ZodEnum<{
54
+ [x: string]: string;
55
+ }>;
50
56
  temperature: z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodOptional<z.ZodNumber>>;
51
57
  maxTokens: z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodOptional<z.ZodNumber>>;
52
58
  }, z.core.$strip>>>;
package/package.json CHANGED
@@ -1,20 +1,21 @@
1
1
  {
2
2
  "name": "@wix/evalforge-types",
3
- "version": "0.30.0",
3
+ "version": "0.32.0",
4
4
  "description": "Unified types for EvalForge agent evaluation system",
5
5
  "files": [
6
6
  "build"
7
7
  ],
8
8
  "scripts": {
9
9
  "clean": "rm -rf build",
10
- "build:cjs": "esbuild src/index.ts --bundle --platform=node --outfile=build/index.js --format=cjs --sourcemap --packages=external",
11
- "build:esm": "esbuild src/index.ts --bundle --platform=node --outfile=build/index.mjs --format=esm --sourcemap --packages=external",
10
+ "build:cjs": "esbuild src/index.ts --bundle --platform=node --outfile=build/index.js --format=cjs --sourcemap --external:zod",
11
+ "build:esm": "esbuild src/index.ts --bundle --platform=node --outfile=build/index.mjs --format=esm --sourcemap --external:zod",
12
12
  "build:types": "tsc --emitDeclarationOnly --outDir ./build/types",
13
13
  "build": "yarn run clean && yarn run build:cjs && yarn run build:esm && yarn run build:types",
14
14
  "lint": "eslint .",
15
15
  "test": "echo 'No tests specified' && exit 0"
16
16
  },
17
17
  "dependencies": {
18
+ "@wix/ambassador-ds-wix-ai-gateway-v1-prompt": "^1.0.296",
18
19
  "zod": "^4.3.5"
19
20
  },
20
21
  "devDependencies": {
@@ -46,5 +47,5 @@
46
47
  "artifactId": "evalforge-types"
47
48
  }
48
49
  },
49
- "falconPackageHash": "9fae3a90d0cf7f58cc569582d4354332d674abebb496d902b268d579"
50
+ "falconPackageHash": "ca50840d9f63ed1936347de8bd5b68db9e5215ab4d0e4b50c19d9f5a"
50
51
  }