@shipfox/workflow-document 2.1.3 → 3.0.1
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/README.md +4 -1
- package/dist/document/checkout-target-validation.d.ts +19 -0
- package/dist/document/checkout-target-validation.d.ts.map +1 -0
- package/dist/document/checkout-target-validation.js +36 -0
- package/dist/document/checkout-target-validation.js.map +1 -0
- package/dist/document/index.d.ts +2 -1
- package/dist/document/index.d.ts.map +1 -1
- package/dist/document/index.js +2 -1
- package/dist/document/index.js.map +1 -1
- package/dist/document/step-enums.d.ts +16 -16
- package/dist/document/workflow-document-parser.d.ts.map +1 -1
- package/dist/document/workflow-document.d.ts +146 -63
- package/dist/document/workflow-document.d.ts.map +1 -1
- package/dist/document/workflow-document.js +152 -35
- package/dist/document/workflow-document.js.map +1 -1
- package/dist/document/workflow-json-schema.d.ts.map +1 -1
- package/dist/document/workflow-json-schema.js +116 -7
- package/dist/document/workflow-json-schema.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.test.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,24 +1,36 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export declare const WORKFLOW_LITERAL_NAME_PATTERN: RegExp;
|
|
3
|
+
export declare const WORKFLOW_INTERPOLATED_VALUE_PATTERN: RegExp;
|
|
4
|
+
export declare const agentThinkingFieldSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
5
|
+
high: "high";
|
|
6
|
+
low: "low";
|
|
7
|
+
max: "max";
|
|
8
|
+
medium: "medium";
|
|
9
|
+
minimal: "minimal";
|
|
10
|
+
off: "off";
|
|
11
|
+
xhigh: "xhigh";
|
|
12
|
+
}>, z.ZodString]>;
|
|
2
13
|
export declare const WORKFLOW_DOCUMENT_ENV_MAX_ENTRIES = 128;
|
|
3
14
|
export declare const WORKFLOW_DOCUMENT_ENV_MAX_SERIALIZED_BYTES: number;
|
|
4
|
-
export declare const workflowDocumentStepOutputTypes: readonly [
|
|
15
|
+
export declare const workflowDocumentStepOutputTypes: readonly ['string', 'number', 'boolean', 'json'];
|
|
16
|
+
export declare const WORKFLOW_DOCUMENT_JOB_OUTPUTS_MAX_ENTRIES = 128;
|
|
5
17
|
export declare const WORKFLOW_DOCUMENT_STEP_OUTPUTS_MAX_ENTRIES = 128;
|
|
6
18
|
export declare const WORKFLOW_DOCUMENT_STEP_OUTPUT_SCHEMA_MAX_SERIALIZED_BYTES: number;
|
|
7
19
|
export declare const WORKFLOW_DOCUMENT_STEP_OUTPUT_SCHEMA_MAX_DEPTH = 64;
|
|
8
20
|
export declare const workflowDocumentEnvSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
9
21
|
export declare const workflowDocumentStepOutputsSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodPipe<z.ZodEnum<{
|
|
10
|
-
string: "string";
|
|
11
|
-
number: "number";
|
|
12
22
|
boolean: "boolean";
|
|
13
23
|
json: "json";
|
|
24
|
+
number: "number";
|
|
25
|
+
string: "string";
|
|
14
26
|
}>, z.ZodTransform<{
|
|
15
|
-
type: "
|
|
16
|
-
}, "
|
|
27
|
+
type: "boolean" | "json" | "number" | "string";
|
|
28
|
+
}, "boolean" | "json" | "number" | "string">>, z.ZodObject<{
|
|
17
29
|
type: z.ZodEnum<{
|
|
18
|
-
string: "string";
|
|
19
|
-
number: "number";
|
|
20
30
|
boolean: "boolean";
|
|
21
31
|
json: "json";
|
|
32
|
+
number: "number";
|
|
33
|
+
string: "string";
|
|
22
34
|
}>;
|
|
23
35
|
schema: z.ZodOptional<z.ZodUnknown>;
|
|
24
36
|
}, z.core.$strict>]>>;
|
|
@@ -29,26 +41,26 @@ export declare const triggerSourceConfigSchemas: {
|
|
|
29
41
|
}, z.core.$strict>;
|
|
30
42
|
};
|
|
31
43
|
export declare const workflowDocumentTriggerSchema: z.ZodObject<{
|
|
32
|
-
event: z.ZodString;
|
|
33
44
|
source: z.ZodString;
|
|
34
45
|
with: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
35
46
|
filter: z.ZodOptional<z.ZodString>;
|
|
36
47
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
48
|
+
event: z.ZodString;
|
|
37
49
|
}, z.core.$strict>;
|
|
38
50
|
declare const workflowDocumentListeningSchema: z.ZodObject<{
|
|
39
51
|
on: z.ZodArray<z.ZodObject<{
|
|
40
|
-
event: z.ZodString;
|
|
41
52
|
source: z.ZodString;
|
|
42
53
|
with: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
43
54
|
filter: z.ZodOptional<z.ZodString>;
|
|
44
55
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
56
|
+
event: z.ZodString;
|
|
45
57
|
}, z.core.$strict>>;
|
|
46
58
|
until: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
47
|
-
event: z.ZodString;
|
|
48
59
|
source: z.ZodString;
|
|
49
60
|
with: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
50
61
|
filter: z.ZodOptional<z.ZodString>;
|
|
51
62
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
63
|
+
event: z.ZodString;
|
|
52
64
|
}, z.core.$strict>>>;
|
|
53
65
|
timeout: z.ZodOptional<z.ZodString>;
|
|
54
66
|
max_executions: z.ZodOptional<z.ZodNumber>;
|
|
@@ -58,8 +70,8 @@ declare const workflowDocumentListeningSchema: z.ZodObject<{
|
|
|
58
70
|
max_wait: z.ZodOptional<z.ZodString>;
|
|
59
71
|
}, z.core.$strict>>;
|
|
60
72
|
on_resolve: z.ZodOptional<z.ZodEnum<{
|
|
61
|
-
finish: "finish";
|
|
62
73
|
cancel: "cancel";
|
|
74
|
+
finish: "finish";
|
|
63
75
|
}>>;
|
|
64
76
|
}, z.core.$strict>;
|
|
65
77
|
declare const workflowDocumentStepGateSchema: z.ZodObject<{
|
|
@@ -70,6 +82,12 @@ declare const workflowDocumentStepGateSchema: z.ZodObject<{
|
|
|
70
82
|
}, z.core.$strict>>;
|
|
71
83
|
}, z.core.$strict>;
|
|
72
84
|
export declare const workflowDocumentCheckoutSchema: z.ZodObject<{
|
|
85
|
+
project: z.ZodOptional<z.ZodString>;
|
|
86
|
+
connection: z.ZodOptional<z.ZodString>;
|
|
87
|
+
repository: z.ZodOptional<z.ZodString>;
|
|
88
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
89
|
+
'fetch-depth': z.ZodOptional<z.ZodNumber>;
|
|
90
|
+
path: z.ZodOptional<z.ZodString>;
|
|
73
91
|
permissions: z.ZodOptional<z.ZodObject<{
|
|
74
92
|
contents: z.ZodOptional<z.ZodEnum<{
|
|
75
93
|
read: "read";
|
|
@@ -77,7 +95,17 @@ export declare const workflowDocumentCheckoutSchema: z.ZodObject<{
|
|
|
77
95
|
}>>;
|
|
78
96
|
}, z.core.$strict>>;
|
|
79
97
|
'persist-credentials': z.ZodOptional<z.ZodBoolean>;
|
|
98
|
+
force: z.ZodOptional<z.ZodBoolean>;
|
|
80
99
|
}, z.core.$strict>;
|
|
100
|
+
declare const workflowDocumentJobCheckoutSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
101
|
+
permissions: z.ZodOptional<z.ZodObject<{
|
|
102
|
+
contents: z.ZodOptional<z.ZodEnum<{
|
|
103
|
+
read: "read";
|
|
104
|
+
write: "write";
|
|
105
|
+
}>>;
|
|
106
|
+
}, z.core.$strict>>;
|
|
107
|
+
'persist-credentials': z.ZodOptional<z.ZodBoolean>;
|
|
108
|
+
}, z.core.$strict>, z.ZodLiteral<false>]>;
|
|
81
109
|
export declare const workflowDocumentStepIntegrationSelectionSchema: z.ZodArray<z.ZodString>;
|
|
82
110
|
export declare const workflowDocumentStepIntegrationSchema: z.ZodObject<{
|
|
83
111
|
connection: z.ZodOptional<z.ZodString>;
|
|
@@ -85,27 +113,44 @@ export declare const workflowDocumentStepIntegrationSchema: z.ZodObject<{
|
|
|
85
113
|
exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
86
114
|
allow_write: z.ZodOptional<z.ZodBoolean>;
|
|
87
115
|
}, z.core.$strict>;
|
|
88
|
-
export declare const workflowDocumentAgentStepFields: readonly [
|
|
116
|
+
export declare const workflowDocumentAgentStepFields: readonly ['model', 'prompt', 'harness', 'thinking', 'provider', 'tools', 'integrations'];
|
|
89
117
|
export declare const workflowDocumentStepSchema: z.ZodObject<{
|
|
90
118
|
key: z.ZodOptional<z.ZodString>;
|
|
91
119
|
if: z.ZodOptional<z.ZodString>;
|
|
92
120
|
name: z.ZodOptional<z.ZodString>;
|
|
121
|
+
working_directory: z.ZodOptional<z.ZodString>;
|
|
93
122
|
run: z.ZodOptional<z.ZodString>;
|
|
123
|
+
checkout: z.ZodOptional<z.ZodObject<{
|
|
124
|
+
project: z.ZodOptional<z.ZodString>;
|
|
125
|
+
connection: z.ZodOptional<z.ZodString>;
|
|
126
|
+
repository: z.ZodOptional<z.ZodString>;
|
|
127
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
128
|
+
'fetch-depth': z.ZodOptional<z.ZodNumber>;
|
|
129
|
+
path: z.ZodOptional<z.ZodString>;
|
|
130
|
+
permissions: z.ZodOptional<z.ZodObject<{
|
|
131
|
+
contents: z.ZodOptional<z.ZodEnum<{
|
|
132
|
+
read: "read";
|
|
133
|
+
write: "write";
|
|
134
|
+
}>>;
|
|
135
|
+
}, z.core.$strict>>;
|
|
136
|
+
'persist-credentials': z.ZodOptional<z.ZodBoolean>;
|
|
137
|
+
force: z.ZodOptional<z.ZodBoolean>;
|
|
138
|
+
}, z.core.$strict>>;
|
|
94
139
|
model: z.ZodOptional<z.ZodString>;
|
|
95
140
|
prompt: z.ZodOptional<z.ZodString>;
|
|
96
141
|
harness: z.ZodOptional<z.ZodEnum<{
|
|
97
|
-
pi: "pi";
|
|
98
142
|
claude: "claude";
|
|
143
|
+
pi: "pi";
|
|
99
144
|
}>>;
|
|
100
|
-
thinking: z.ZodOptional<z.ZodEnum<{
|
|
101
|
-
|
|
102
|
-
minimal: "minimal";
|
|
145
|
+
thinking: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
146
|
+
high: "high";
|
|
103
147
|
low: "low";
|
|
148
|
+
max: "max";
|
|
104
149
|
medium: "medium";
|
|
105
|
-
|
|
150
|
+
minimal: "minimal";
|
|
151
|
+
off: "off";
|
|
106
152
|
xhigh: "xhigh";
|
|
107
|
-
|
|
108
|
-
}>>;
|
|
153
|
+
}>, z.ZodString]>>;
|
|
109
154
|
provider: z.ZodOptional<z.ZodString>;
|
|
110
155
|
tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
111
156
|
integrations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -124,18 +169,18 @@ export declare const workflowDocumentStepSchema: z.ZodObject<{
|
|
|
124
169
|
}, z.core.$strict>>;
|
|
125
170
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
126
171
|
outputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodPipe<z.ZodEnum<{
|
|
127
|
-
string: "string";
|
|
128
|
-
number: "number";
|
|
129
172
|
boolean: "boolean";
|
|
130
173
|
json: "json";
|
|
174
|
+
number: "number";
|
|
175
|
+
string: "string";
|
|
131
176
|
}>, z.ZodTransform<{
|
|
132
|
-
type: "
|
|
133
|
-
}, "
|
|
177
|
+
type: "boolean" | "json" | "number" | "string";
|
|
178
|
+
}, "boolean" | "json" | "number" | "string">>, z.ZodObject<{
|
|
134
179
|
type: z.ZodEnum<{
|
|
135
|
-
string: "string";
|
|
136
|
-
number: "number";
|
|
137
180
|
boolean: "boolean";
|
|
138
181
|
json: "json";
|
|
182
|
+
number: "number";
|
|
183
|
+
string: "string";
|
|
139
184
|
}>;
|
|
140
185
|
schema: z.ZodOptional<z.ZodUnknown>;
|
|
141
186
|
}, z.core.$strict>]>>>;
|
|
@@ -147,7 +192,7 @@ export declare const workflowDocumentJobSchema: z.ZodObject<{
|
|
|
147
192
|
success: z.ZodOptional<z.ZodString>;
|
|
148
193
|
outputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
149
194
|
execution_timeout: z.ZodOptional<z.ZodString>;
|
|
150
|
-
checkout: z.ZodOptional<z.ZodObject<{
|
|
195
|
+
checkout: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
151
196
|
permissions: z.ZodOptional<z.ZodObject<{
|
|
152
197
|
contents: z.ZodOptional<z.ZodEnum<{
|
|
153
198
|
read: "read";
|
|
@@ -155,21 +200,21 @@ export declare const workflowDocumentJobSchema: z.ZodObject<{
|
|
|
155
200
|
}>>;
|
|
156
201
|
}, z.core.$strict>>;
|
|
157
202
|
'persist-credentials': z.ZodOptional<z.ZodBoolean>;
|
|
158
|
-
}, z.core.$strict>>;
|
|
203
|
+
}, z.core.$strict>, z.ZodLiteral<false>]>>;
|
|
159
204
|
listening: z.ZodOptional<z.ZodObject<{
|
|
160
205
|
on: z.ZodArray<z.ZodObject<{
|
|
161
|
-
event: z.ZodString;
|
|
162
206
|
source: z.ZodString;
|
|
163
207
|
with: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
164
208
|
filter: z.ZodOptional<z.ZodString>;
|
|
165
209
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
210
|
+
event: z.ZodString;
|
|
166
211
|
}, z.core.$strict>>;
|
|
167
212
|
until: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
168
|
-
event: z.ZodString;
|
|
169
213
|
source: z.ZodString;
|
|
170
214
|
with: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
171
215
|
filter: z.ZodOptional<z.ZodString>;
|
|
172
216
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
217
|
+
event: z.ZodString;
|
|
173
218
|
}, z.core.$strict>>>;
|
|
174
219
|
timeout: z.ZodOptional<z.ZodString>;
|
|
175
220
|
max_executions: z.ZodOptional<z.ZodNumber>;
|
|
@@ -179,32 +224,50 @@ export declare const workflowDocumentJobSchema: z.ZodObject<{
|
|
|
179
224
|
max_wait: z.ZodOptional<z.ZodString>;
|
|
180
225
|
}, z.core.$strict>>;
|
|
181
226
|
on_resolve: z.ZodOptional<z.ZodEnum<{
|
|
182
|
-
finish: "finish";
|
|
183
227
|
cancel: "cancel";
|
|
228
|
+
finish: "finish";
|
|
184
229
|
}>>;
|
|
185
230
|
}, z.core.$strict>>;
|
|
186
231
|
name: z.ZodOptional<z.ZodString>;
|
|
232
|
+
execution_name: z.ZodOptional<z.ZodString>;
|
|
187
233
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
188
234
|
steps: z.ZodArray<z.ZodObject<{
|
|
189
235
|
key: z.ZodOptional<z.ZodString>;
|
|
190
236
|
if: z.ZodOptional<z.ZodString>;
|
|
191
237
|
name: z.ZodOptional<z.ZodString>;
|
|
238
|
+
working_directory: z.ZodOptional<z.ZodString>;
|
|
192
239
|
run: z.ZodOptional<z.ZodString>;
|
|
240
|
+
checkout: z.ZodOptional<z.ZodObject<{
|
|
241
|
+
project: z.ZodOptional<z.ZodString>;
|
|
242
|
+
connection: z.ZodOptional<z.ZodString>;
|
|
243
|
+
repository: z.ZodOptional<z.ZodString>;
|
|
244
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
245
|
+
'fetch-depth': z.ZodOptional<z.ZodNumber>;
|
|
246
|
+
path: z.ZodOptional<z.ZodString>;
|
|
247
|
+
permissions: z.ZodOptional<z.ZodObject<{
|
|
248
|
+
contents: z.ZodOptional<z.ZodEnum<{
|
|
249
|
+
read: "read";
|
|
250
|
+
write: "write";
|
|
251
|
+
}>>;
|
|
252
|
+
}, z.core.$strict>>;
|
|
253
|
+
'persist-credentials': z.ZodOptional<z.ZodBoolean>;
|
|
254
|
+
force: z.ZodOptional<z.ZodBoolean>;
|
|
255
|
+
}, z.core.$strict>>;
|
|
193
256
|
model: z.ZodOptional<z.ZodString>;
|
|
194
257
|
prompt: z.ZodOptional<z.ZodString>;
|
|
195
258
|
harness: z.ZodOptional<z.ZodEnum<{
|
|
196
|
-
pi: "pi";
|
|
197
259
|
claude: "claude";
|
|
260
|
+
pi: "pi";
|
|
198
261
|
}>>;
|
|
199
|
-
thinking: z.ZodOptional<z.ZodEnum<{
|
|
200
|
-
|
|
201
|
-
minimal: "minimal";
|
|
262
|
+
thinking: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
263
|
+
high: "high";
|
|
202
264
|
low: "low";
|
|
265
|
+
max: "max";
|
|
203
266
|
medium: "medium";
|
|
204
|
-
|
|
267
|
+
minimal: "minimal";
|
|
268
|
+
off: "off";
|
|
205
269
|
xhigh: "xhigh";
|
|
206
|
-
|
|
207
|
-
}>>;
|
|
270
|
+
}>, z.ZodString]>>;
|
|
208
271
|
provider: z.ZodOptional<z.ZodString>;
|
|
209
272
|
tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
210
273
|
integrations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -223,18 +286,18 @@ export declare const workflowDocumentJobSchema: z.ZodObject<{
|
|
|
223
286
|
}, z.core.$strict>>;
|
|
224
287
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
225
288
|
outputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodPipe<z.ZodEnum<{
|
|
226
|
-
string: "string";
|
|
227
|
-
number: "number";
|
|
228
289
|
boolean: "boolean";
|
|
229
290
|
json: "json";
|
|
291
|
+
number: "number";
|
|
292
|
+
string: "string";
|
|
230
293
|
}>, z.ZodTransform<{
|
|
231
|
-
type: "
|
|
232
|
-
}, "
|
|
294
|
+
type: "boolean" | "json" | "number" | "string";
|
|
295
|
+
}, "boolean" | "json" | "number" | "string">>, z.ZodObject<{
|
|
233
296
|
type: z.ZodEnum<{
|
|
234
|
-
string: "string";
|
|
235
|
-
number: "number";
|
|
236
297
|
boolean: "boolean";
|
|
237
298
|
json: "json";
|
|
299
|
+
number: "number";
|
|
300
|
+
string: "string";
|
|
238
301
|
}>;
|
|
239
302
|
schema: z.ZodOptional<z.ZodUnknown>;
|
|
240
303
|
}, z.core.$strict>]>>>;
|
|
@@ -242,14 +305,15 @@ export declare const workflowDocumentJobSchema: z.ZodObject<{
|
|
|
242
305
|
}, z.core.$strict>;
|
|
243
306
|
export declare const workflowDocumentSchema: z.ZodObject<{
|
|
244
307
|
name: z.ZodString;
|
|
308
|
+
run_name: z.ZodOptional<z.ZodString>;
|
|
245
309
|
runner: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
246
310
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
247
311
|
triggers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
248
|
-
event: z.ZodString;
|
|
249
312
|
source: z.ZodString;
|
|
250
313
|
with: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
251
314
|
filter: z.ZodOptional<z.ZodString>;
|
|
252
315
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
316
|
+
event: z.ZodString;
|
|
253
317
|
}, z.core.$strict>>>;
|
|
254
318
|
jobs: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
255
319
|
needs: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
@@ -258,7 +322,7 @@ export declare const workflowDocumentSchema: z.ZodObject<{
|
|
|
258
322
|
success: z.ZodOptional<z.ZodString>;
|
|
259
323
|
outputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
260
324
|
execution_timeout: z.ZodOptional<z.ZodString>;
|
|
261
|
-
checkout: z.ZodOptional<z.ZodObject<{
|
|
325
|
+
checkout: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
262
326
|
permissions: z.ZodOptional<z.ZodObject<{
|
|
263
327
|
contents: z.ZodOptional<z.ZodEnum<{
|
|
264
328
|
read: "read";
|
|
@@ -266,21 +330,21 @@ export declare const workflowDocumentSchema: z.ZodObject<{
|
|
|
266
330
|
}>>;
|
|
267
331
|
}, z.core.$strict>>;
|
|
268
332
|
'persist-credentials': z.ZodOptional<z.ZodBoolean>;
|
|
269
|
-
}, z.core.$strict>>;
|
|
333
|
+
}, z.core.$strict>, z.ZodLiteral<false>]>>;
|
|
270
334
|
listening: z.ZodOptional<z.ZodObject<{
|
|
271
335
|
on: z.ZodArray<z.ZodObject<{
|
|
272
|
-
event: z.ZodString;
|
|
273
336
|
source: z.ZodString;
|
|
274
337
|
with: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
275
338
|
filter: z.ZodOptional<z.ZodString>;
|
|
276
339
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
340
|
+
event: z.ZodString;
|
|
277
341
|
}, z.core.$strict>>;
|
|
278
342
|
until: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
279
|
-
event: z.ZodString;
|
|
280
343
|
source: z.ZodString;
|
|
281
344
|
with: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
282
345
|
filter: z.ZodOptional<z.ZodString>;
|
|
283
346
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
347
|
+
event: z.ZodString;
|
|
284
348
|
}, z.core.$strict>>>;
|
|
285
349
|
timeout: z.ZodOptional<z.ZodString>;
|
|
286
350
|
max_executions: z.ZodOptional<z.ZodNumber>;
|
|
@@ -290,32 +354,50 @@ export declare const workflowDocumentSchema: z.ZodObject<{
|
|
|
290
354
|
max_wait: z.ZodOptional<z.ZodString>;
|
|
291
355
|
}, z.core.$strict>>;
|
|
292
356
|
on_resolve: z.ZodOptional<z.ZodEnum<{
|
|
293
|
-
finish: "finish";
|
|
294
357
|
cancel: "cancel";
|
|
358
|
+
finish: "finish";
|
|
295
359
|
}>>;
|
|
296
360
|
}, z.core.$strict>>;
|
|
297
361
|
name: z.ZodOptional<z.ZodString>;
|
|
362
|
+
execution_name: z.ZodOptional<z.ZodString>;
|
|
298
363
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
299
364
|
steps: z.ZodArray<z.ZodObject<{
|
|
300
365
|
key: z.ZodOptional<z.ZodString>;
|
|
301
366
|
if: z.ZodOptional<z.ZodString>;
|
|
302
367
|
name: z.ZodOptional<z.ZodString>;
|
|
368
|
+
working_directory: z.ZodOptional<z.ZodString>;
|
|
303
369
|
run: z.ZodOptional<z.ZodString>;
|
|
370
|
+
checkout: z.ZodOptional<z.ZodObject<{
|
|
371
|
+
project: z.ZodOptional<z.ZodString>;
|
|
372
|
+
connection: z.ZodOptional<z.ZodString>;
|
|
373
|
+
repository: z.ZodOptional<z.ZodString>;
|
|
374
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
375
|
+
'fetch-depth': z.ZodOptional<z.ZodNumber>;
|
|
376
|
+
path: z.ZodOptional<z.ZodString>;
|
|
377
|
+
permissions: z.ZodOptional<z.ZodObject<{
|
|
378
|
+
contents: z.ZodOptional<z.ZodEnum<{
|
|
379
|
+
read: "read";
|
|
380
|
+
write: "write";
|
|
381
|
+
}>>;
|
|
382
|
+
}, z.core.$strict>>;
|
|
383
|
+
'persist-credentials': z.ZodOptional<z.ZodBoolean>;
|
|
384
|
+
force: z.ZodOptional<z.ZodBoolean>;
|
|
385
|
+
}, z.core.$strict>>;
|
|
304
386
|
model: z.ZodOptional<z.ZodString>;
|
|
305
387
|
prompt: z.ZodOptional<z.ZodString>;
|
|
306
388
|
harness: z.ZodOptional<z.ZodEnum<{
|
|
307
|
-
pi: "pi";
|
|
308
389
|
claude: "claude";
|
|
390
|
+
pi: "pi";
|
|
309
391
|
}>>;
|
|
310
|
-
thinking: z.ZodOptional<z.ZodEnum<{
|
|
311
|
-
|
|
312
|
-
minimal: "minimal";
|
|
392
|
+
thinking: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
393
|
+
high: "high";
|
|
313
394
|
low: "low";
|
|
395
|
+
max: "max";
|
|
314
396
|
medium: "medium";
|
|
315
|
-
|
|
397
|
+
minimal: "minimal";
|
|
398
|
+
off: "off";
|
|
316
399
|
xhigh: "xhigh";
|
|
317
|
-
|
|
318
|
-
}>>;
|
|
400
|
+
}>, z.ZodString]>>;
|
|
319
401
|
provider: z.ZodOptional<z.ZodString>;
|
|
320
402
|
tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
321
403
|
integrations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -334,18 +416,18 @@ export declare const workflowDocumentSchema: z.ZodObject<{
|
|
|
334
416
|
}, z.core.$strict>>;
|
|
335
417
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
336
418
|
outputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodPipe<z.ZodEnum<{
|
|
337
|
-
string: "string";
|
|
338
|
-
number: "number";
|
|
339
419
|
boolean: "boolean";
|
|
340
420
|
json: "json";
|
|
421
|
+
number: "number";
|
|
422
|
+
string: "string";
|
|
341
423
|
}>, z.ZodTransform<{
|
|
342
|
-
type: "
|
|
343
|
-
}, "
|
|
424
|
+
type: "boolean" | "json" | "number" | "string";
|
|
425
|
+
}, "boolean" | "json" | "number" | "string">>, z.ZodObject<{
|
|
344
426
|
type: z.ZodEnum<{
|
|
345
|
-
string: "string";
|
|
346
|
-
number: "number";
|
|
347
427
|
boolean: "boolean";
|
|
348
428
|
json: "json";
|
|
429
|
+
number: "number";
|
|
430
|
+
string: "string";
|
|
349
431
|
}>;
|
|
350
432
|
schema: z.ZodOptional<z.ZodUnknown>;
|
|
351
433
|
}, z.core.$strict>]>>>;
|
|
@@ -353,7 +435,8 @@ export declare const workflowDocumentSchema: z.ZodObject<{
|
|
|
353
435
|
}, z.core.$strict>>;
|
|
354
436
|
}, z.core.$strict>;
|
|
355
437
|
export type WorkflowDocument = z.infer<typeof workflowDocumentSchema>;
|
|
356
|
-
export type
|
|
438
|
+
export type WorkflowDocumentCheckout = z.infer<typeof workflowDocumentCheckoutSchema>;
|
|
439
|
+
export type WorkflowDocumentJobCheckout = z.infer<typeof workflowDocumentJobCheckoutSchema>;
|
|
357
440
|
export type WorkflowDocumentEnv = z.infer<typeof workflowDocumentEnvSchema>;
|
|
358
441
|
export type WorkflowDocumentJob = z.infer<typeof workflowDocumentJobSchema>;
|
|
359
442
|
export type WorkflowDocumentJobListening = z.infer<typeof workflowDocumentListeningSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-document.d.ts","sourceRoot":"","sources":["../../src/document/workflow-document.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"workflow-document.d.ts","sourceRoot":"","sources":["../../src/document/workflow-document.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAUtB,eAAO,MAAM,6BAA6B,QAAoC,CAAC;AAG/E,eAAO,MAAM,mCAAmC,QAAyC,CAAC;AAK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