@wix/evalforge-types 0.86.0 → 0.88.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,12 +1,20 @@
1
1
  import { z } from 'zod';
2
- /**
3
- * Template schema - a project template that can be used for test environments.
4
- *
5
- * Templates are tenant-based entities scoped to a project.
6
- * They define how to set up a project environment for testing.
7
- * The `source` field points to a GitHub directory that is fetched via the GitHub API.
8
- * It is optional to support the transition from the legacy `downloadUrl` field.
9
- */
2
+ export declare const SourceFileSchema: z.ZodObject<{
3
+ path: z.ZodString;
4
+ content: z.ZodString;
5
+ }, z.core.$strip>;
6
+ export type SourceFile = z.infer<typeof SourceFileSchema>;
7
+ export declare const ExtraFileSchema: z.ZodObject<{
8
+ path: z.ZodString;
9
+ content: z.ZodOptional<z.ZodString>;
10
+ gitSource: z.ZodOptional<z.ZodObject<{
11
+ owner: z.ZodString;
12
+ repo: z.ZodString;
13
+ path: z.ZodString;
14
+ ref: z.ZodString;
15
+ }, z.core.$strip>>;
16
+ }, z.core.$strip>;
17
+ export type ExtraFile = z.infer<typeof ExtraFileSchema>;
10
18
  export declare const TemplateSchema: z.ZodObject<{
11
19
  id: z.ZodString;
12
20
  name: z.ZodString;
@@ -21,11 +29,22 @@ export declare const TemplateSchema: z.ZodObject<{
21
29
  path: z.ZodString;
22
30
  ref: z.ZodString;
23
31
  }, z.core.$strip>>;
32
+ sourceFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
33
+ path: z.ZodString;
34
+ content: z.ZodString;
35
+ }, z.core.$strip>>>;
36
+ extraFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
37
+ path: z.ZodString;
38
+ content: z.ZodOptional<z.ZodString>;
39
+ gitSource: z.ZodOptional<z.ZodObject<{
40
+ owner: z.ZodString;
41
+ repo: z.ZodString;
42
+ path: z.ZodString;
43
+ ref: z.ZodString;
44
+ }, z.core.$strip>>;
45
+ }, z.core.$strip>>>;
24
46
  }, z.core.$strip>;
25
47
  export type Template = z.infer<typeof TemplateSchema>;
26
- /**
27
- * Input schema for creating a new Template.
28
- */
29
48
  export declare const CreateTemplateInputSchema: z.ZodObject<{
30
49
  name: z.ZodString;
31
50
  description: z.ZodString;
@@ -36,11 +55,22 @@ export declare const CreateTemplateInputSchema: z.ZodObject<{
36
55
  path: z.ZodString;
37
56
  ref: z.ZodString;
38
57
  }, z.core.$strip>>;
58
+ sourceFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
59
+ path: z.ZodString;
60
+ content: z.ZodString;
61
+ }, z.core.$strip>>>;
62
+ extraFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
63
+ path: z.ZodString;
64
+ content: z.ZodOptional<z.ZodString>;
65
+ gitSource: z.ZodOptional<z.ZodObject<{
66
+ owner: z.ZodString;
67
+ repo: z.ZodString;
68
+ path: z.ZodString;
69
+ ref: z.ZodString;
70
+ }, z.core.$strip>>;
71
+ }, z.core.$strip>>>;
39
72
  }, z.core.$strip>;
40
73
  export type CreateTemplateInput = z.infer<typeof CreateTemplateInputSchema>;
41
- /**
42
- * Input schema for updating a Template.
43
- */
44
74
  export declare const UpdateTemplateInputSchema: z.ZodObject<{
45
75
  name: z.ZodOptional<z.ZodString>;
46
76
  description: z.ZodOptional<z.ZodString>;
@@ -51,5 +81,19 @@ export declare const UpdateTemplateInputSchema: z.ZodObject<{
51
81
  path: z.ZodString;
52
82
  ref: z.ZodString;
53
83
  }, z.core.$strip>>>;
84
+ sourceFiles: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
85
+ path: z.ZodString;
86
+ content: z.ZodString;
87
+ }, z.core.$strip>>>>;
88
+ extraFiles: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
89
+ path: z.ZodString;
90
+ content: z.ZodOptional<z.ZodString>;
91
+ gitSource: z.ZodOptional<z.ZodObject<{
92
+ owner: z.ZodString;
93
+ repo: z.ZodString;
94
+ path: z.ZodString;
95
+ ref: z.ZodString;
96
+ }, z.core.$strip>>;
97
+ }, z.core.$strip>>>>;
54
98
  }, z.core.$strip>;
55
99
  export type UpdateTemplateInput = z.infer<typeof UpdateTemplateInputSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/evalforge-types",
3
- "version": "0.86.0",
3
+ "version": "0.88.0",
4
4
  "description": "Unified types for EvalForge agent evaluation system",
5
5
  "files": [
6
6
  "build"
@@ -46,5 +46,5 @@
46
46
  "artifactId": "evalforge-types"
47
47
  }
48
48
  },
49
- "falconPackageHash": "534aea3b45588122418dade1ea40346d2b129736ecd87dc388063aa7"
49
+ "falconPackageHash": "744e57f170e30437c438d8efe6fcc30928912f7fc49f6891872b5648"
50
50
  }