@redocly/openapi-core 1.18.0 → 1.19.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/CHANGELOG.md +20 -0
- package/lib/benchmark/benches/lint-with-many-rules.bench.js +2 -2
- package/lib/benchmark/benches/lint-with-nested-rule.bench.js +2 -2
- package/lib/benchmark/benches/lint-with-no-rules.bench.js +2 -2
- package/lib/benchmark/benches/lint-with-top-level-rule-report.bench.js +2 -2
- package/lib/benchmark/benches/lint-with-top-level-rule.bench.js +2 -2
- package/lib/benchmark/benches/recommended-oas3.bench.js +2 -2
- package/lib/benchmark/benches/resolve-with-no-external.bench.js +2 -2
- package/lib/benchmark/utils.js +7 -4
- package/lib/bundle.d.ts +3 -3
- package/lib/bundle.js +128 -122
- package/lib/config/all.js +9 -0
- package/lib/config/builtIn.js +7 -1
- package/lib/config/config-resolvers.js +179 -138
- package/lib/config/config.d.ts +2 -2
- package/lib/config/config.js +53 -34
- package/lib/config/load.d.ts +1 -2
- package/lib/config/load.js +105 -117
- package/lib/config/minimal.js +9 -0
- package/lib/config/recommended-strict.js +9 -0
- package/lib/config/recommended.js +9 -0
- package/lib/config/rules.d.ts +3 -3
- package/lib/config/rules.js +1 -2
- package/lib/config/types.d.ts +9 -3
- package/lib/config/utils.js +70 -49
- package/lib/decorators/async3/index.d.ts +1 -0
- package/lib/decorators/async3/index.js +4 -0
- package/lib/decorators/common/filters/filter-helper.js +2 -3
- package/lib/decorators/common/filters/filter-in.js +1 -1
- package/lib/decorators/common/filters/filter-out.js +1 -1
- package/lib/decorators/common/info-override.js +1 -12
- package/lib/decorators/common/media-type-examples-override.js +8 -2
- package/lib/decorators/common/remove-x-internal.js +4 -5
- package/lib/decorators/oas2/remove-unused-components.js +1 -2
- package/lib/decorators/oas3/remove-unused-components.js +1 -2
- package/lib/env.d.ts +0 -1
- package/lib/env.js +1 -1
- package/lib/format/codeframes.js +10 -8
- package/lib/format/format.js +23 -15
- package/lib/index.d.ts +2 -1
- package/lib/index.js +6 -4
- package/lib/js-yaml/index.js +1 -1
- package/lib/lint.d.ts +2 -0
- package/lib/lint.js +92 -99
- package/lib/oas-types.d.ts +9 -5
- package/lib/oas-types.js +22 -12
- package/lib/redocly/domains.js +6 -6
- package/lib/redocly/index.js +60 -73
- package/lib/redocly/registry-api.js +64 -82
- package/lib/ref-utils.js +13 -13
- package/lib/resolve.js +186 -205
- package/lib/rules/ajv.js +10 -8
- package/lib/rules/async3/channels-kebab-case.d.ts +2 -0
- package/lib/rules/async3/channels-kebab-case.js +19 -0
- package/lib/rules/async3/index.d.ts +3 -0
- package/lib/rules/async3/index.js +22 -0
- package/lib/rules/async3/no-channel-trailing-slash.d.ts +2 -0
- package/lib/rules/async3/no-channel-trailing-slash.js +16 -0
- package/lib/rules/common/assertions/asserts.js +5 -5
- package/lib/rules/common/assertions/index.d.ts +5 -4
- package/lib/rules/common/assertions/utils.js +43 -28
- package/lib/rules/common/no-invalid-parameter-examples.js +1 -2
- package/lib/rules/common/no-invalid-schema-examples.js +1 -2
- package/lib/rules/common/no-required-schema-properties-undefined.js +1 -2
- package/lib/rules/common/operation-tag-defined.js +1 -2
- package/lib/rules/common/path-http-verbs-order.js +1 -1
- package/lib/rules/common/path-segment-plural.js +2 -1
- package/lib/rules/common/required-string-property-missing-min-length.js +2 -2
- package/lib/rules/common/response-contains-header.js +2 -2
- package/lib/rules/common/security-defined.js +3 -7
- package/lib/rules/common/spec.d.ts +2 -2
- package/lib/rules/common/spec.js +6 -7
- package/lib/rules/no-unresolved-refs.js +3 -4
- package/lib/rules/oas2/response-contains-property.js +1 -2
- package/lib/rules/oas3/array-parameter-serialization.js +1 -2
- package/lib/rules/oas3/component-name-unique.js +2 -4
- package/lib/rules/oas3/no-invalid-media-type-examples.js +1 -2
- package/lib/rules/oas3/no-server-variables-empty-enum.js +1 -2
- package/lib/rules/oas3/no-undefined-server-variable.js +2 -3
- package/lib/rules/oas3/no-unused-components.js +1 -2
- package/lib/rules/oas3/response-contains-property.js +1 -2
- package/lib/rules/utils.js +14 -12
- package/lib/types/arazzo.d.ts +1299 -73
- package/lib/types/arazzo.js +41 -36
- package/lib/types/asyncapi2.d.ts +17 -0
- package/lib/types/{asyncapi.js → asyncapi2.js} +71 -93
- package/lib/types/asyncapi3.d.ts +2 -0
- package/lib/types/asyncapi3.js +347 -0
- package/lib/types/index.js +19 -10
- package/lib/types/json-schema-adapter.js +4 -18
- package/lib/types/oas2.js +6 -6
- package/lib/types/oas3.js +10 -10
- package/lib/types/oas3_1.js +15 -9
- package/lib/types/redocly-yaml.d.ts +3 -1
- package/lib/types/redocly-yaml.js +131 -35
- package/lib/typings/arazzo.d.ts +28 -1
- package/lib/typings/asyncapi3.d.ts +53 -0
- package/lib/typings/asyncapi3.js +2 -0
- package/lib/utils.d.ts +12 -7
- package/lib/utils.js +91 -77
- package/lib/visitors.d.ts +11 -0
- package/lib/visitors.js +21 -8
- package/lib/walk.js +30 -23
- package/package.json +3 -3
- package/src/__tests__/bundle.test.ts +142 -0
- package/src/__tests__/lint.test.ts +0 -50
- package/src/bundle.ts +19 -6
- package/src/config/__tests__/__snapshots__/config-resolvers.test.ts.snap +22 -0
- package/src/config/__tests__/__snapshots__/config.test.ts.snap +24 -0
- package/src/config/__tests__/config.test.ts +11 -0
- package/src/config/all.ts +9 -0
- package/src/config/builtIn.ts +6 -0
- package/src/config/config-resolvers.ts +15 -2
- package/src/config/config.ts +24 -5
- package/src/config/load.ts +1 -2
- package/src/config/minimal.ts +9 -0
- package/src/config/recommended-strict.ts +9 -0
- package/src/config/recommended.ts +9 -0
- package/src/config/rules.ts +12 -4
- package/src/config/types.ts +15 -2
- package/src/config/utils.ts +15 -0
- package/src/decorators/async3/index.ts +1 -0
- package/src/decorators/common/remove-x-internal.ts +2 -2
- package/src/index.ts +2 -1
- package/src/lint.ts +26 -3
- package/src/oas-types.ts +31 -13
- package/src/rules/arazzo/index.ts +1 -1
- package/src/rules/async2/index.ts +5 -5
- package/src/rules/async3/__tests__/channels-kebab-case.test.ts +141 -0
- package/src/rules/async3/__tests__/no-channel-trailing-slash.test.ts +96 -0
- package/src/rules/async3/channels-kebab-case.ts +19 -0
- package/src/rules/async3/index.ts +23 -0
- package/src/rules/async3/no-channel-trailing-slash.ts +16 -0
- package/src/rules/common/__tests__/spec.test.ts +47 -0
- package/src/rules/common/assertions/index.ts +13 -4
- package/src/rules/common/no-invalid-schema-examples.ts +3 -2
- package/src/rules/common/path-segment-plural.ts +3 -2
- package/src/rules/common/spec.ts +2 -2
- package/src/rules/oas2/index.ts +4 -4
- package/src/rules/oas3/index.ts +39 -37
- package/src/types/arazzo.ts +28 -23
- package/src/types/{asyncapi.ts → asyncapi2.ts} +58 -76
- package/src/types/asyncapi3.ts +381 -0
- package/src/types/oas3_1.ts +3 -2
- package/src/types/redocly-yaml.ts +14 -0
- package/src/typings/arazzo.ts +41 -1
- package/src/typings/asyncapi3.ts +61 -0
- package/src/utils.ts +46 -11
- package/src/visitors.ts +18 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/lib/types/asyncapi.d.ts +0 -2
package/lib/types/arazzo.d.ts
CHANGED
|
@@ -1,5 +1,1293 @@
|
|
|
1
1
|
import type { NodeType } from '.';
|
|
2
2
|
export declare const ARAZZO_ROOT_TYPE = "Root";
|
|
3
|
+
export declare const operationMethod: {
|
|
4
|
+
readonly type: "string";
|
|
5
|
+
readonly enum: readonly ["get", "post", "put", "delete", "patch"];
|
|
6
|
+
};
|
|
7
|
+
export declare const expectSchema: {
|
|
8
|
+
readonly type: "object";
|
|
9
|
+
readonly properties: {
|
|
10
|
+
readonly statusCode: {
|
|
11
|
+
readonly type: "number";
|
|
12
|
+
};
|
|
13
|
+
readonly mimeType: {
|
|
14
|
+
readonly type: "string";
|
|
15
|
+
};
|
|
16
|
+
readonly body: {};
|
|
17
|
+
readonly schema: {
|
|
18
|
+
readonly type: "object";
|
|
19
|
+
readonly additionalProperties: true;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
readonly additionalProperties: false;
|
|
23
|
+
readonly oneOf: readonly [{
|
|
24
|
+
readonly required: readonly ["statusCode"];
|
|
25
|
+
}, {
|
|
26
|
+
readonly required: readonly ["mimeType"];
|
|
27
|
+
}, {
|
|
28
|
+
readonly required: readonly ["body"];
|
|
29
|
+
}, {
|
|
30
|
+
readonly required: readonly ["schema"];
|
|
31
|
+
}];
|
|
32
|
+
};
|
|
33
|
+
export declare const sourceDescriptionSchema: {
|
|
34
|
+
readonly type: "object";
|
|
35
|
+
readonly oneOf: readonly [{
|
|
36
|
+
readonly type: "object";
|
|
37
|
+
readonly properties: {
|
|
38
|
+
readonly name: {
|
|
39
|
+
readonly type: "string";
|
|
40
|
+
};
|
|
41
|
+
readonly type: {
|
|
42
|
+
readonly type: "string";
|
|
43
|
+
readonly enum: readonly ["openapi"];
|
|
44
|
+
};
|
|
45
|
+
readonly url: {
|
|
46
|
+
readonly type: "string";
|
|
47
|
+
};
|
|
48
|
+
readonly 'x-serverUrl': {
|
|
49
|
+
readonly type: "string";
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
readonly additionalProperties: false;
|
|
53
|
+
readonly required: readonly ["name", "type", "url"];
|
|
54
|
+
}, {
|
|
55
|
+
readonly type: "object";
|
|
56
|
+
readonly properties: {
|
|
57
|
+
readonly name: {
|
|
58
|
+
readonly type: "string";
|
|
59
|
+
};
|
|
60
|
+
readonly type: {
|
|
61
|
+
readonly type: "string";
|
|
62
|
+
readonly enum: readonly ["none"];
|
|
63
|
+
};
|
|
64
|
+
readonly 'x-serverUrl': {
|
|
65
|
+
readonly type: "string";
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
readonly additionalProperties: false;
|
|
69
|
+
readonly required: readonly ["name", "type", "x-serverUrl"];
|
|
70
|
+
}, {
|
|
71
|
+
readonly type: "object";
|
|
72
|
+
readonly properties: {
|
|
73
|
+
readonly name: {
|
|
74
|
+
readonly type: "string";
|
|
75
|
+
};
|
|
76
|
+
readonly type: {
|
|
77
|
+
readonly type: "string";
|
|
78
|
+
readonly enum: readonly ["arazzo"];
|
|
79
|
+
};
|
|
80
|
+
readonly url: {
|
|
81
|
+
readonly type: "string";
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
readonly additionalProperties: false;
|
|
85
|
+
readonly required: readonly ["name", "type", "url"];
|
|
86
|
+
}];
|
|
87
|
+
};
|
|
88
|
+
export declare const parameter: {
|
|
89
|
+
readonly type: "object";
|
|
90
|
+
readonly oneOf: readonly [{
|
|
91
|
+
readonly type: "object";
|
|
92
|
+
readonly properties: {
|
|
93
|
+
readonly in: {
|
|
94
|
+
readonly type: "string";
|
|
95
|
+
readonly enum: readonly ["header", "query", "path", "cookie", "body"];
|
|
96
|
+
};
|
|
97
|
+
readonly name: {
|
|
98
|
+
readonly type: "string";
|
|
99
|
+
};
|
|
100
|
+
readonly value: {
|
|
101
|
+
readonly oneOf: readonly [{
|
|
102
|
+
readonly type: "string";
|
|
103
|
+
}, {
|
|
104
|
+
readonly type: "number";
|
|
105
|
+
}, {
|
|
106
|
+
readonly type: "boolean";
|
|
107
|
+
}];
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
readonly required: readonly ["name", "value"];
|
|
111
|
+
readonly additionalProperties: false;
|
|
112
|
+
}, {
|
|
113
|
+
readonly type: "object";
|
|
114
|
+
readonly properties: {
|
|
115
|
+
readonly reference: {
|
|
116
|
+
readonly type: "string";
|
|
117
|
+
};
|
|
118
|
+
readonly value: {
|
|
119
|
+
readonly oneOf: readonly [{
|
|
120
|
+
readonly type: "string";
|
|
121
|
+
}, {
|
|
122
|
+
readonly type: "number";
|
|
123
|
+
}, {
|
|
124
|
+
readonly type: "boolean";
|
|
125
|
+
}];
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
readonly required: readonly ["reference"];
|
|
129
|
+
readonly additionalProperties: false;
|
|
130
|
+
}];
|
|
131
|
+
};
|
|
132
|
+
export declare const infoObject: {
|
|
133
|
+
readonly type: "object";
|
|
134
|
+
readonly properties: {
|
|
135
|
+
readonly title: {
|
|
136
|
+
readonly type: "string";
|
|
137
|
+
};
|
|
138
|
+
readonly description: {
|
|
139
|
+
readonly type: "string";
|
|
140
|
+
};
|
|
141
|
+
readonly summary: {
|
|
142
|
+
readonly type: "string";
|
|
143
|
+
};
|
|
144
|
+
readonly version: {
|
|
145
|
+
readonly type: "string";
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
readonly additionalProperties: false;
|
|
149
|
+
readonly required: readonly ["title", "version"];
|
|
150
|
+
};
|
|
151
|
+
export declare const replacement: {
|
|
152
|
+
readonly type: "object";
|
|
153
|
+
readonly properties: {
|
|
154
|
+
readonly target: {
|
|
155
|
+
readonly type: "string";
|
|
156
|
+
};
|
|
157
|
+
readonly value: {
|
|
158
|
+
readonly oneOf: readonly [{
|
|
159
|
+
readonly type: "string";
|
|
160
|
+
}, {
|
|
161
|
+
readonly type: "object";
|
|
162
|
+
}, {
|
|
163
|
+
readonly type: "array";
|
|
164
|
+
}, {
|
|
165
|
+
readonly type: "number";
|
|
166
|
+
}, {
|
|
167
|
+
readonly type: "boolean";
|
|
168
|
+
}];
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
export declare const requestBody: {
|
|
173
|
+
readonly type: "object";
|
|
174
|
+
readonly properties: {
|
|
175
|
+
readonly contentType: {
|
|
176
|
+
readonly type: "string";
|
|
177
|
+
};
|
|
178
|
+
readonly payload: {
|
|
179
|
+
readonly oneOf: readonly [{
|
|
180
|
+
readonly type: "string";
|
|
181
|
+
}, {
|
|
182
|
+
readonly type: "object";
|
|
183
|
+
readonly additionalProperties: true;
|
|
184
|
+
}, {
|
|
185
|
+
readonly type: "array";
|
|
186
|
+
}, {
|
|
187
|
+
readonly type: "number";
|
|
188
|
+
}, {
|
|
189
|
+
readonly type: "boolean";
|
|
190
|
+
}];
|
|
191
|
+
};
|
|
192
|
+
readonly encoding: {
|
|
193
|
+
readonly type: "string";
|
|
194
|
+
};
|
|
195
|
+
readonly replacements: {
|
|
196
|
+
readonly type: "array";
|
|
197
|
+
readonly items: {
|
|
198
|
+
readonly type: "object";
|
|
199
|
+
readonly properties: {
|
|
200
|
+
readonly target: {
|
|
201
|
+
readonly type: "string";
|
|
202
|
+
};
|
|
203
|
+
readonly value: {
|
|
204
|
+
readonly oneOf: readonly [{
|
|
205
|
+
readonly type: "string";
|
|
206
|
+
}, {
|
|
207
|
+
readonly type: "object";
|
|
208
|
+
}, {
|
|
209
|
+
readonly type: "array";
|
|
210
|
+
}, {
|
|
211
|
+
readonly type: "number";
|
|
212
|
+
}, {
|
|
213
|
+
readonly type: "boolean";
|
|
214
|
+
}];
|
|
215
|
+
};
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
readonly additionalProperties: false;
|
|
221
|
+
readonly required: readonly ["payload"];
|
|
222
|
+
};
|
|
223
|
+
export declare const criteriaObject: {
|
|
224
|
+
readonly type: "object";
|
|
225
|
+
readonly properties: {
|
|
226
|
+
readonly condition: {
|
|
227
|
+
readonly type: "string";
|
|
228
|
+
};
|
|
229
|
+
readonly context: {
|
|
230
|
+
readonly type: "string";
|
|
231
|
+
};
|
|
232
|
+
readonly type: {
|
|
233
|
+
readonly oneOf: readonly [{
|
|
234
|
+
readonly type: "string";
|
|
235
|
+
readonly enum: readonly ["regex", "jsonpath", "simple", "xpath"];
|
|
236
|
+
}, {
|
|
237
|
+
readonly type: "object";
|
|
238
|
+
readonly properties: {
|
|
239
|
+
readonly type: {
|
|
240
|
+
readonly type: "string";
|
|
241
|
+
readonly enum: readonly ["jsonpath"];
|
|
242
|
+
};
|
|
243
|
+
readonly version: {
|
|
244
|
+
readonly type: "string";
|
|
245
|
+
readonly enum: readonly ["draft-goessner-dispatch-jsonpath-00"];
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
}, {
|
|
249
|
+
readonly type: "object";
|
|
250
|
+
readonly properties: {
|
|
251
|
+
readonly type: {
|
|
252
|
+
readonly type: "string";
|
|
253
|
+
readonly enum: readonly ["xpath"];
|
|
254
|
+
};
|
|
255
|
+
readonly version: {
|
|
256
|
+
readonly type: "string";
|
|
257
|
+
readonly enum: readonly ["xpath-30", "xpath-20", "xpath-10"];
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
}];
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
readonly required: readonly ["condition"];
|
|
264
|
+
readonly additionalProperties: false;
|
|
265
|
+
};
|
|
266
|
+
export declare const inherit: {
|
|
267
|
+
readonly type: "string";
|
|
268
|
+
readonly enum: readonly ["auto", "none"];
|
|
269
|
+
};
|
|
270
|
+
export declare const step: {
|
|
271
|
+
readonly type: "object";
|
|
272
|
+
readonly properties: {
|
|
273
|
+
readonly stepId: {
|
|
274
|
+
readonly type: "string";
|
|
275
|
+
};
|
|
276
|
+
readonly description: {
|
|
277
|
+
readonly type: "string";
|
|
278
|
+
};
|
|
279
|
+
readonly operationId: {
|
|
280
|
+
readonly type: "string";
|
|
281
|
+
};
|
|
282
|
+
readonly operationPath: {
|
|
283
|
+
readonly type: "string";
|
|
284
|
+
};
|
|
285
|
+
readonly workflowId: {
|
|
286
|
+
readonly type: "string";
|
|
287
|
+
};
|
|
288
|
+
readonly parameters: {
|
|
289
|
+
readonly type: "array";
|
|
290
|
+
readonly items: {
|
|
291
|
+
readonly type: "object";
|
|
292
|
+
readonly oneOf: readonly [{
|
|
293
|
+
readonly type: "object";
|
|
294
|
+
readonly properties: {
|
|
295
|
+
readonly in: {
|
|
296
|
+
readonly type: "string";
|
|
297
|
+
readonly enum: readonly ["header", "query", "path", "cookie", "body"];
|
|
298
|
+
};
|
|
299
|
+
readonly name: {
|
|
300
|
+
readonly type: "string";
|
|
301
|
+
};
|
|
302
|
+
readonly value: {
|
|
303
|
+
readonly oneOf: readonly [{
|
|
304
|
+
readonly type: "string";
|
|
305
|
+
}, {
|
|
306
|
+
readonly type: "number";
|
|
307
|
+
}, {
|
|
308
|
+
readonly type: "boolean";
|
|
309
|
+
}];
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
readonly required: readonly ["name", "value"];
|
|
313
|
+
readonly additionalProperties: false;
|
|
314
|
+
}, {
|
|
315
|
+
readonly type: "object";
|
|
316
|
+
readonly properties: {
|
|
317
|
+
readonly reference: {
|
|
318
|
+
readonly type: "string";
|
|
319
|
+
};
|
|
320
|
+
readonly value: {
|
|
321
|
+
readonly oneOf: readonly [{
|
|
322
|
+
readonly type: "string";
|
|
323
|
+
}, {
|
|
324
|
+
readonly type: "number";
|
|
325
|
+
}, {
|
|
326
|
+
readonly type: "boolean";
|
|
327
|
+
}];
|
|
328
|
+
};
|
|
329
|
+
};
|
|
330
|
+
readonly required: readonly ["reference"];
|
|
331
|
+
readonly additionalProperties: false;
|
|
332
|
+
}];
|
|
333
|
+
};
|
|
334
|
+
};
|
|
335
|
+
readonly successCriteria: {
|
|
336
|
+
readonly type: "array";
|
|
337
|
+
readonly items: {
|
|
338
|
+
readonly type: "object";
|
|
339
|
+
readonly properties: {
|
|
340
|
+
readonly condition: {
|
|
341
|
+
readonly type: "string";
|
|
342
|
+
};
|
|
343
|
+
readonly context: {
|
|
344
|
+
readonly type: "string";
|
|
345
|
+
};
|
|
346
|
+
readonly type: {
|
|
347
|
+
readonly oneOf: readonly [{
|
|
348
|
+
readonly type: "string";
|
|
349
|
+
readonly enum: readonly ["regex", "jsonpath", "simple", "xpath"];
|
|
350
|
+
}, {
|
|
351
|
+
readonly type: "object";
|
|
352
|
+
readonly properties: {
|
|
353
|
+
readonly type: {
|
|
354
|
+
readonly type: "string";
|
|
355
|
+
readonly enum: readonly ["jsonpath"];
|
|
356
|
+
};
|
|
357
|
+
readonly version: {
|
|
358
|
+
readonly type: "string";
|
|
359
|
+
readonly enum: readonly ["draft-goessner-dispatch-jsonpath-00"];
|
|
360
|
+
};
|
|
361
|
+
};
|
|
362
|
+
}, {
|
|
363
|
+
readonly type: "object";
|
|
364
|
+
readonly properties: {
|
|
365
|
+
readonly type: {
|
|
366
|
+
readonly type: "string";
|
|
367
|
+
readonly enum: readonly ["xpath"];
|
|
368
|
+
};
|
|
369
|
+
readonly version: {
|
|
370
|
+
readonly type: "string";
|
|
371
|
+
readonly enum: readonly ["xpath-30", "xpath-20", "xpath-10"];
|
|
372
|
+
};
|
|
373
|
+
};
|
|
374
|
+
}];
|
|
375
|
+
};
|
|
376
|
+
};
|
|
377
|
+
readonly required: readonly ["condition"];
|
|
378
|
+
readonly additionalProperties: false;
|
|
379
|
+
};
|
|
380
|
+
};
|
|
381
|
+
readonly onSuccess: {
|
|
382
|
+
readonly type: "array";
|
|
383
|
+
readonly items: {
|
|
384
|
+
readonly type: "object";
|
|
385
|
+
readonly properties: {
|
|
386
|
+
readonly name: {
|
|
387
|
+
readonly type: "string";
|
|
388
|
+
};
|
|
389
|
+
readonly type: {
|
|
390
|
+
readonly type: "string";
|
|
391
|
+
readonly enum: readonly ["goto", "end"];
|
|
392
|
+
};
|
|
393
|
+
readonly stepId: {
|
|
394
|
+
readonly type: "string";
|
|
395
|
+
};
|
|
396
|
+
readonly workflowId: {
|
|
397
|
+
readonly type: "string";
|
|
398
|
+
};
|
|
399
|
+
readonly criteria: {
|
|
400
|
+
readonly type: "array";
|
|
401
|
+
readonly items: {
|
|
402
|
+
readonly type: "object";
|
|
403
|
+
readonly properties: {
|
|
404
|
+
readonly condition: {
|
|
405
|
+
readonly type: "string";
|
|
406
|
+
};
|
|
407
|
+
readonly context: {
|
|
408
|
+
readonly type: "string";
|
|
409
|
+
};
|
|
410
|
+
readonly type: {
|
|
411
|
+
readonly oneOf: readonly [{
|
|
412
|
+
readonly type: "string";
|
|
413
|
+
readonly enum: readonly ["regex", "jsonpath", "simple", "xpath"];
|
|
414
|
+
}, {
|
|
415
|
+
readonly type: "object";
|
|
416
|
+
readonly properties: {
|
|
417
|
+
readonly type: {
|
|
418
|
+
readonly type: "string";
|
|
419
|
+
readonly enum: readonly ["jsonpath"];
|
|
420
|
+
};
|
|
421
|
+
readonly version: {
|
|
422
|
+
readonly type: "string";
|
|
423
|
+
readonly enum: readonly ["draft-goessner-dispatch-jsonpath-00"];
|
|
424
|
+
};
|
|
425
|
+
};
|
|
426
|
+
}, {
|
|
427
|
+
readonly type: "object";
|
|
428
|
+
readonly properties: {
|
|
429
|
+
readonly type: {
|
|
430
|
+
readonly type: "string";
|
|
431
|
+
readonly enum: readonly ["xpath"];
|
|
432
|
+
};
|
|
433
|
+
readonly version: {
|
|
434
|
+
readonly type: "string";
|
|
435
|
+
readonly enum: readonly ["xpath-30", "xpath-20", "xpath-10"];
|
|
436
|
+
};
|
|
437
|
+
};
|
|
438
|
+
}];
|
|
439
|
+
};
|
|
440
|
+
};
|
|
441
|
+
readonly required: readonly ["condition"];
|
|
442
|
+
readonly additionalProperties: false;
|
|
443
|
+
};
|
|
444
|
+
};
|
|
445
|
+
};
|
|
446
|
+
readonly additionalProperties: false;
|
|
447
|
+
readonly required: readonly ["type", "name"];
|
|
448
|
+
};
|
|
449
|
+
};
|
|
450
|
+
readonly onFailure: {
|
|
451
|
+
readonly type: "array";
|
|
452
|
+
readonly items: {
|
|
453
|
+
readonly type: "object";
|
|
454
|
+
readonly properties: {
|
|
455
|
+
readonly name: {
|
|
456
|
+
readonly type: "string";
|
|
457
|
+
};
|
|
458
|
+
readonly type: {
|
|
459
|
+
readonly type: "string";
|
|
460
|
+
readonly enum: readonly ["goto", "retry", "end"];
|
|
461
|
+
};
|
|
462
|
+
readonly workflowId: {
|
|
463
|
+
readonly type: "string";
|
|
464
|
+
};
|
|
465
|
+
readonly stepId: {
|
|
466
|
+
readonly type: "string";
|
|
467
|
+
};
|
|
468
|
+
readonly retryAfter: {
|
|
469
|
+
readonly type: "number";
|
|
470
|
+
};
|
|
471
|
+
readonly retryLimit: {
|
|
472
|
+
readonly type: "number";
|
|
473
|
+
};
|
|
474
|
+
readonly criteria: {
|
|
475
|
+
readonly type: "array";
|
|
476
|
+
readonly items: {
|
|
477
|
+
readonly type: "object";
|
|
478
|
+
readonly properties: {
|
|
479
|
+
readonly condition: {
|
|
480
|
+
readonly type: "string";
|
|
481
|
+
};
|
|
482
|
+
readonly context: {
|
|
483
|
+
readonly type: "string";
|
|
484
|
+
};
|
|
485
|
+
readonly type: {
|
|
486
|
+
readonly oneOf: readonly [{
|
|
487
|
+
readonly type: "string";
|
|
488
|
+
readonly enum: readonly ["regex", "jsonpath", "simple", "xpath"];
|
|
489
|
+
}, {
|
|
490
|
+
readonly type: "object";
|
|
491
|
+
readonly properties: {
|
|
492
|
+
readonly type: {
|
|
493
|
+
readonly type: "string";
|
|
494
|
+
readonly enum: readonly ["jsonpath"];
|
|
495
|
+
};
|
|
496
|
+
readonly version: {
|
|
497
|
+
readonly type: "string";
|
|
498
|
+
readonly enum: readonly ["draft-goessner-dispatch-jsonpath-00"];
|
|
499
|
+
};
|
|
500
|
+
};
|
|
501
|
+
}, {
|
|
502
|
+
readonly type: "object";
|
|
503
|
+
readonly properties: {
|
|
504
|
+
readonly type: {
|
|
505
|
+
readonly type: "string";
|
|
506
|
+
readonly enum: readonly ["xpath"];
|
|
507
|
+
};
|
|
508
|
+
readonly version: {
|
|
509
|
+
readonly type: "string";
|
|
510
|
+
readonly enum: readonly ["xpath-30", "xpath-20", "xpath-10"];
|
|
511
|
+
};
|
|
512
|
+
};
|
|
513
|
+
}];
|
|
514
|
+
};
|
|
515
|
+
};
|
|
516
|
+
readonly required: readonly ["condition"];
|
|
517
|
+
readonly additionalProperties: false;
|
|
518
|
+
};
|
|
519
|
+
};
|
|
520
|
+
};
|
|
521
|
+
readonly additionalProperties: false;
|
|
522
|
+
readonly required: readonly ["type", "name"];
|
|
523
|
+
};
|
|
524
|
+
};
|
|
525
|
+
readonly outputs: {
|
|
526
|
+
readonly type: "object";
|
|
527
|
+
readonly additionalProperties: {
|
|
528
|
+
readonly oneOf: readonly [{
|
|
529
|
+
readonly type: "string";
|
|
530
|
+
}, {
|
|
531
|
+
readonly type: "object";
|
|
532
|
+
}, {
|
|
533
|
+
readonly type: "array";
|
|
534
|
+
}, {
|
|
535
|
+
readonly type: "boolean";
|
|
536
|
+
}, {
|
|
537
|
+
readonly type: "number";
|
|
538
|
+
}];
|
|
539
|
+
};
|
|
540
|
+
};
|
|
541
|
+
readonly 'x-inherit': {
|
|
542
|
+
readonly type: "string";
|
|
543
|
+
readonly enum: readonly ["auto", "none"];
|
|
544
|
+
};
|
|
545
|
+
readonly 'x-expect': {
|
|
546
|
+
readonly type: "object";
|
|
547
|
+
readonly properties: {
|
|
548
|
+
readonly statusCode: {
|
|
549
|
+
readonly type: "number";
|
|
550
|
+
};
|
|
551
|
+
readonly mimeType: {
|
|
552
|
+
readonly type: "string";
|
|
553
|
+
};
|
|
554
|
+
readonly body: {};
|
|
555
|
+
readonly schema: {
|
|
556
|
+
readonly type: "object";
|
|
557
|
+
readonly additionalProperties: true;
|
|
558
|
+
};
|
|
559
|
+
};
|
|
560
|
+
readonly additionalProperties: false;
|
|
561
|
+
readonly oneOf: readonly [{
|
|
562
|
+
readonly required: readonly ["statusCode"];
|
|
563
|
+
}, {
|
|
564
|
+
readonly required: readonly ["mimeType"];
|
|
565
|
+
}, {
|
|
566
|
+
readonly required: readonly ["body"];
|
|
567
|
+
}, {
|
|
568
|
+
readonly required: readonly ["schema"];
|
|
569
|
+
}];
|
|
570
|
+
};
|
|
571
|
+
readonly 'x-assert': {
|
|
572
|
+
readonly type: "string";
|
|
573
|
+
};
|
|
574
|
+
readonly 'x-operation': {
|
|
575
|
+
readonly type: "object";
|
|
576
|
+
readonly properties: {
|
|
577
|
+
readonly path: {
|
|
578
|
+
readonly type: "string";
|
|
579
|
+
};
|
|
580
|
+
readonly method: {
|
|
581
|
+
readonly type: "string";
|
|
582
|
+
readonly enum: readonly ["get", "post", "put", "delete", "patch"];
|
|
583
|
+
};
|
|
584
|
+
readonly sourceDescriptionName: {
|
|
585
|
+
readonly type: "string";
|
|
586
|
+
};
|
|
587
|
+
readonly serverUrl: {
|
|
588
|
+
readonly type: "string";
|
|
589
|
+
};
|
|
590
|
+
};
|
|
591
|
+
readonly additionalProperties: false;
|
|
592
|
+
readonly required: readonly ["path", "method"];
|
|
593
|
+
};
|
|
594
|
+
readonly requestBody: {
|
|
595
|
+
readonly type: "object";
|
|
596
|
+
readonly properties: {
|
|
597
|
+
readonly contentType: {
|
|
598
|
+
readonly type: "string";
|
|
599
|
+
};
|
|
600
|
+
readonly payload: {
|
|
601
|
+
readonly oneOf: readonly [{
|
|
602
|
+
readonly type: "string";
|
|
603
|
+
}, {
|
|
604
|
+
readonly type: "object";
|
|
605
|
+
readonly additionalProperties: true;
|
|
606
|
+
}, {
|
|
607
|
+
readonly type: "array";
|
|
608
|
+
}, {
|
|
609
|
+
readonly type: "number";
|
|
610
|
+
}, {
|
|
611
|
+
readonly type: "boolean";
|
|
612
|
+
}];
|
|
613
|
+
};
|
|
614
|
+
readonly encoding: {
|
|
615
|
+
readonly type: "string";
|
|
616
|
+
};
|
|
617
|
+
readonly replacements: {
|
|
618
|
+
readonly type: "array";
|
|
619
|
+
readonly items: {
|
|
620
|
+
readonly type: "object";
|
|
621
|
+
readonly properties: {
|
|
622
|
+
readonly target: {
|
|
623
|
+
readonly type: "string";
|
|
624
|
+
};
|
|
625
|
+
readonly value: {
|
|
626
|
+
readonly oneOf: readonly [{
|
|
627
|
+
readonly type: "string";
|
|
628
|
+
}, {
|
|
629
|
+
readonly type: "object";
|
|
630
|
+
}, {
|
|
631
|
+
readonly type: "array";
|
|
632
|
+
}, {
|
|
633
|
+
readonly type: "number";
|
|
634
|
+
}, {
|
|
635
|
+
readonly type: "boolean";
|
|
636
|
+
}];
|
|
637
|
+
};
|
|
638
|
+
};
|
|
639
|
+
};
|
|
640
|
+
};
|
|
641
|
+
};
|
|
642
|
+
readonly additionalProperties: false;
|
|
643
|
+
readonly required: readonly ["payload"];
|
|
644
|
+
};
|
|
645
|
+
};
|
|
646
|
+
readonly required: readonly ["stepId"];
|
|
647
|
+
readonly oneOf: readonly [{
|
|
648
|
+
readonly required: readonly ["x-operation"];
|
|
649
|
+
}, {
|
|
650
|
+
readonly required: readonly ["operationId"];
|
|
651
|
+
}, {
|
|
652
|
+
readonly required: readonly ["operationPath"];
|
|
653
|
+
}, {
|
|
654
|
+
readonly required: readonly ["workflowId"];
|
|
655
|
+
}];
|
|
656
|
+
};
|
|
657
|
+
export declare const workflow: {
|
|
658
|
+
readonly type: "object";
|
|
659
|
+
readonly properties: {
|
|
660
|
+
readonly workflowId: {
|
|
661
|
+
readonly type: "string";
|
|
662
|
+
};
|
|
663
|
+
readonly summary: {
|
|
664
|
+
readonly type: "string";
|
|
665
|
+
};
|
|
666
|
+
readonly description: {
|
|
667
|
+
readonly type: "string";
|
|
668
|
+
};
|
|
669
|
+
readonly parameters: {
|
|
670
|
+
readonly type: "array";
|
|
671
|
+
readonly items: {
|
|
672
|
+
readonly type: "object";
|
|
673
|
+
readonly oneOf: readonly [{
|
|
674
|
+
readonly type: "object";
|
|
675
|
+
readonly properties: {
|
|
676
|
+
readonly in: {
|
|
677
|
+
readonly type: "string";
|
|
678
|
+
readonly enum: readonly ["header", "query", "path", "cookie", "body"];
|
|
679
|
+
};
|
|
680
|
+
readonly name: {
|
|
681
|
+
readonly type: "string";
|
|
682
|
+
};
|
|
683
|
+
readonly value: {
|
|
684
|
+
readonly oneOf: readonly [{
|
|
685
|
+
readonly type: "string";
|
|
686
|
+
}, {
|
|
687
|
+
readonly type: "number";
|
|
688
|
+
}, {
|
|
689
|
+
readonly type: "boolean";
|
|
690
|
+
}];
|
|
691
|
+
};
|
|
692
|
+
};
|
|
693
|
+
readonly required: readonly ["name", "value"];
|
|
694
|
+
readonly additionalProperties: false;
|
|
695
|
+
}, {
|
|
696
|
+
readonly type: "object";
|
|
697
|
+
readonly properties: {
|
|
698
|
+
readonly reference: {
|
|
699
|
+
readonly type: "string";
|
|
700
|
+
};
|
|
701
|
+
readonly value: {
|
|
702
|
+
readonly oneOf: readonly [{
|
|
703
|
+
readonly type: "string";
|
|
704
|
+
}, {
|
|
705
|
+
readonly type: "number";
|
|
706
|
+
}, {
|
|
707
|
+
readonly type: "boolean";
|
|
708
|
+
}];
|
|
709
|
+
};
|
|
710
|
+
};
|
|
711
|
+
readonly required: readonly ["reference"];
|
|
712
|
+
readonly additionalProperties: false;
|
|
713
|
+
}];
|
|
714
|
+
};
|
|
715
|
+
};
|
|
716
|
+
readonly dependsOn: {
|
|
717
|
+
readonly type: "array";
|
|
718
|
+
readonly items: {
|
|
719
|
+
readonly type: "string";
|
|
720
|
+
};
|
|
721
|
+
};
|
|
722
|
+
readonly inputs: {
|
|
723
|
+
readonly type: "object";
|
|
724
|
+
readonly properties: {
|
|
725
|
+
readonly type: {
|
|
726
|
+
readonly type: "string";
|
|
727
|
+
readonly enum: readonly ["object", "array", "string", "number", "integer", "boolean", "null"];
|
|
728
|
+
};
|
|
729
|
+
readonly properties: {
|
|
730
|
+
readonly type: "object";
|
|
731
|
+
readonly additionalProperties: true;
|
|
732
|
+
};
|
|
733
|
+
readonly required: {
|
|
734
|
+
readonly type: "array";
|
|
735
|
+
readonly items: {
|
|
736
|
+
readonly type: "string";
|
|
737
|
+
};
|
|
738
|
+
};
|
|
739
|
+
readonly items: {
|
|
740
|
+
readonly type: "object";
|
|
741
|
+
readonly additionalProperties: true;
|
|
742
|
+
};
|
|
743
|
+
};
|
|
744
|
+
readonly required: readonly ["type"];
|
|
745
|
+
readonly additionalProperties: true;
|
|
746
|
+
};
|
|
747
|
+
readonly outputs: {
|
|
748
|
+
readonly type: "object";
|
|
749
|
+
readonly additionalProperties: {
|
|
750
|
+
readonly type: "string";
|
|
751
|
+
};
|
|
752
|
+
};
|
|
753
|
+
readonly steps: {
|
|
754
|
+
readonly type: "array";
|
|
755
|
+
readonly items: {
|
|
756
|
+
readonly type: "object";
|
|
757
|
+
readonly properties: {
|
|
758
|
+
readonly stepId: {
|
|
759
|
+
readonly type: "string";
|
|
760
|
+
};
|
|
761
|
+
readonly description: {
|
|
762
|
+
readonly type: "string";
|
|
763
|
+
};
|
|
764
|
+
readonly operationId: {
|
|
765
|
+
readonly type: "string";
|
|
766
|
+
};
|
|
767
|
+
readonly operationPath: {
|
|
768
|
+
readonly type: "string";
|
|
769
|
+
};
|
|
770
|
+
readonly workflowId: {
|
|
771
|
+
readonly type: "string";
|
|
772
|
+
};
|
|
773
|
+
readonly parameters: {
|
|
774
|
+
readonly type: "array";
|
|
775
|
+
readonly items: {
|
|
776
|
+
readonly type: "object";
|
|
777
|
+
readonly oneOf: readonly [{
|
|
778
|
+
readonly type: "object";
|
|
779
|
+
readonly properties: {
|
|
780
|
+
readonly in: {
|
|
781
|
+
readonly type: "string";
|
|
782
|
+
readonly enum: readonly ["header", "query", "path", "cookie", "body"];
|
|
783
|
+
};
|
|
784
|
+
readonly name: {
|
|
785
|
+
readonly type: "string";
|
|
786
|
+
};
|
|
787
|
+
readonly value: {
|
|
788
|
+
readonly oneOf: readonly [{
|
|
789
|
+
readonly type: "string";
|
|
790
|
+
}, {
|
|
791
|
+
readonly type: "number";
|
|
792
|
+
}, {
|
|
793
|
+
readonly type: "boolean";
|
|
794
|
+
}];
|
|
795
|
+
};
|
|
796
|
+
};
|
|
797
|
+
readonly required: readonly ["name", "value"];
|
|
798
|
+
readonly additionalProperties: false;
|
|
799
|
+
}, {
|
|
800
|
+
readonly type: "object";
|
|
801
|
+
readonly properties: {
|
|
802
|
+
readonly reference: {
|
|
803
|
+
readonly type: "string";
|
|
804
|
+
};
|
|
805
|
+
readonly value: {
|
|
806
|
+
readonly oneOf: readonly [{
|
|
807
|
+
readonly type: "string";
|
|
808
|
+
}, {
|
|
809
|
+
readonly type: "number";
|
|
810
|
+
}, {
|
|
811
|
+
readonly type: "boolean";
|
|
812
|
+
}];
|
|
813
|
+
};
|
|
814
|
+
};
|
|
815
|
+
readonly required: readonly ["reference"];
|
|
816
|
+
readonly additionalProperties: false;
|
|
817
|
+
}];
|
|
818
|
+
};
|
|
819
|
+
};
|
|
820
|
+
readonly successCriteria: {
|
|
821
|
+
readonly type: "array";
|
|
822
|
+
readonly items: {
|
|
823
|
+
readonly type: "object";
|
|
824
|
+
readonly properties: {
|
|
825
|
+
readonly condition: {
|
|
826
|
+
readonly type: "string";
|
|
827
|
+
};
|
|
828
|
+
readonly context: {
|
|
829
|
+
readonly type: "string";
|
|
830
|
+
};
|
|
831
|
+
readonly type: {
|
|
832
|
+
readonly oneOf: readonly [{
|
|
833
|
+
readonly type: "string";
|
|
834
|
+
readonly enum: readonly ["regex", "jsonpath", "simple", "xpath"];
|
|
835
|
+
}, {
|
|
836
|
+
readonly type: "object";
|
|
837
|
+
readonly properties: {
|
|
838
|
+
readonly type: {
|
|
839
|
+
readonly type: "string";
|
|
840
|
+
readonly enum: readonly ["jsonpath"];
|
|
841
|
+
};
|
|
842
|
+
readonly version: {
|
|
843
|
+
readonly type: "string";
|
|
844
|
+
readonly enum: readonly ["draft-goessner-dispatch-jsonpath-00"];
|
|
845
|
+
};
|
|
846
|
+
};
|
|
847
|
+
}, {
|
|
848
|
+
readonly type: "object";
|
|
849
|
+
readonly properties: {
|
|
850
|
+
readonly type: {
|
|
851
|
+
readonly type: "string";
|
|
852
|
+
readonly enum: readonly ["xpath"];
|
|
853
|
+
};
|
|
854
|
+
readonly version: {
|
|
855
|
+
readonly type: "string";
|
|
856
|
+
readonly enum: readonly ["xpath-30", "xpath-20", "xpath-10"];
|
|
857
|
+
};
|
|
858
|
+
};
|
|
859
|
+
}];
|
|
860
|
+
};
|
|
861
|
+
};
|
|
862
|
+
readonly required: readonly ["condition"];
|
|
863
|
+
readonly additionalProperties: false;
|
|
864
|
+
};
|
|
865
|
+
};
|
|
866
|
+
readonly onSuccess: {
|
|
867
|
+
readonly type: "array";
|
|
868
|
+
readonly items: {
|
|
869
|
+
readonly type: "object";
|
|
870
|
+
readonly properties: {
|
|
871
|
+
readonly name: {
|
|
872
|
+
readonly type: "string";
|
|
873
|
+
};
|
|
874
|
+
readonly type: {
|
|
875
|
+
readonly type: "string";
|
|
876
|
+
readonly enum: readonly ["goto", "end"];
|
|
877
|
+
};
|
|
878
|
+
readonly stepId: {
|
|
879
|
+
readonly type: "string";
|
|
880
|
+
};
|
|
881
|
+
readonly workflowId: {
|
|
882
|
+
readonly type: "string";
|
|
883
|
+
};
|
|
884
|
+
readonly criteria: {
|
|
885
|
+
readonly type: "array";
|
|
886
|
+
readonly items: {
|
|
887
|
+
readonly type: "object";
|
|
888
|
+
readonly properties: {
|
|
889
|
+
readonly condition: {
|
|
890
|
+
readonly type: "string";
|
|
891
|
+
};
|
|
892
|
+
readonly context: {
|
|
893
|
+
readonly type: "string";
|
|
894
|
+
};
|
|
895
|
+
readonly type: {
|
|
896
|
+
readonly oneOf: readonly [{
|
|
897
|
+
readonly type: "string";
|
|
898
|
+
readonly enum: readonly ["regex", "jsonpath", "simple", "xpath"];
|
|
899
|
+
}, {
|
|
900
|
+
readonly type: "object";
|
|
901
|
+
readonly properties: {
|
|
902
|
+
readonly type: {
|
|
903
|
+
readonly type: "string";
|
|
904
|
+
readonly enum: readonly ["jsonpath"];
|
|
905
|
+
};
|
|
906
|
+
readonly version: {
|
|
907
|
+
readonly type: "string";
|
|
908
|
+
readonly enum: readonly ["draft-goessner-dispatch-jsonpath-00"];
|
|
909
|
+
};
|
|
910
|
+
};
|
|
911
|
+
}, {
|
|
912
|
+
readonly type: "object";
|
|
913
|
+
readonly properties: {
|
|
914
|
+
readonly type: {
|
|
915
|
+
readonly type: "string";
|
|
916
|
+
readonly enum: readonly ["xpath"];
|
|
917
|
+
};
|
|
918
|
+
readonly version: {
|
|
919
|
+
readonly type: "string";
|
|
920
|
+
readonly enum: readonly ["xpath-30", "xpath-20", "xpath-10"];
|
|
921
|
+
};
|
|
922
|
+
};
|
|
923
|
+
}];
|
|
924
|
+
};
|
|
925
|
+
};
|
|
926
|
+
readonly required: readonly ["condition"];
|
|
927
|
+
readonly additionalProperties: false;
|
|
928
|
+
};
|
|
929
|
+
};
|
|
930
|
+
};
|
|
931
|
+
readonly additionalProperties: false;
|
|
932
|
+
readonly required: readonly ["type", "name"];
|
|
933
|
+
};
|
|
934
|
+
};
|
|
935
|
+
readonly onFailure: {
|
|
936
|
+
readonly type: "array";
|
|
937
|
+
readonly items: {
|
|
938
|
+
readonly type: "object";
|
|
939
|
+
readonly properties: {
|
|
940
|
+
readonly name: {
|
|
941
|
+
readonly type: "string";
|
|
942
|
+
};
|
|
943
|
+
readonly type: {
|
|
944
|
+
readonly type: "string";
|
|
945
|
+
readonly enum: readonly ["goto", "retry", "end"];
|
|
946
|
+
};
|
|
947
|
+
readonly workflowId: {
|
|
948
|
+
readonly type: "string";
|
|
949
|
+
};
|
|
950
|
+
readonly stepId: {
|
|
951
|
+
readonly type: "string";
|
|
952
|
+
};
|
|
953
|
+
readonly retryAfter: {
|
|
954
|
+
readonly type: "number";
|
|
955
|
+
};
|
|
956
|
+
readonly retryLimit: {
|
|
957
|
+
readonly type: "number";
|
|
958
|
+
};
|
|
959
|
+
readonly criteria: {
|
|
960
|
+
readonly type: "array";
|
|
961
|
+
readonly items: {
|
|
962
|
+
readonly type: "object";
|
|
963
|
+
readonly properties: {
|
|
964
|
+
readonly condition: {
|
|
965
|
+
readonly type: "string";
|
|
966
|
+
};
|
|
967
|
+
readonly context: {
|
|
968
|
+
readonly type: "string";
|
|
969
|
+
};
|
|
970
|
+
readonly type: {
|
|
971
|
+
readonly oneOf: readonly [{
|
|
972
|
+
readonly type: "string";
|
|
973
|
+
readonly enum: readonly ["regex", "jsonpath", "simple", "xpath"];
|
|
974
|
+
}, {
|
|
975
|
+
readonly type: "object";
|
|
976
|
+
readonly properties: {
|
|
977
|
+
readonly type: {
|
|
978
|
+
readonly type: "string";
|
|
979
|
+
readonly enum: readonly ["jsonpath"];
|
|
980
|
+
};
|
|
981
|
+
readonly version: {
|
|
982
|
+
readonly type: "string";
|
|
983
|
+
readonly enum: readonly ["draft-goessner-dispatch-jsonpath-00"];
|
|
984
|
+
};
|
|
985
|
+
};
|
|
986
|
+
}, {
|
|
987
|
+
readonly type: "object";
|
|
988
|
+
readonly properties: {
|
|
989
|
+
readonly type: {
|
|
990
|
+
readonly type: "string";
|
|
991
|
+
readonly enum: readonly ["xpath"];
|
|
992
|
+
};
|
|
993
|
+
readonly version: {
|
|
994
|
+
readonly type: "string";
|
|
995
|
+
readonly enum: readonly ["xpath-30", "xpath-20", "xpath-10"];
|
|
996
|
+
};
|
|
997
|
+
};
|
|
998
|
+
}];
|
|
999
|
+
};
|
|
1000
|
+
};
|
|
1001
|
+
readonly required: readonly ["condition"];
|
|
1002
|
+
readonly additionalProperties: false;
|
|
1003
|
+
};
|
|
1004
|
+
};
|
|
1005
|
+
};
|
|
1006
|
+
readonly additionalProperties: false;
|
|
1007
|
+
readonly required: readonly ["type", "name"];
|
|
1008
|
+
};
|
|
1009
|
+
};
|
|
1010
|
+
readonly outputs: {
|
|
1011
|
+
readonly type: "object";
|
|
1012
|
+
readonly additionalProperties: {
|
|
1013
|
+
readonly oneOf: readonly [{
|
|
1014
|
+
readonly type: "string";
|
|
1015
|
+
}, {
|
|
1016
|
+
readonly type: "object";
|
|
1017
|
+
}, {
|
|
1018
|
+
readonly type: "array";
|
|
1019
|
+
}, {
|
|
1020
|
+
readonly type: "boolean";
|
|
1021
|
+
}, {
|
|
1022
|
+
readonly type: "number";
|
|
1023
|
+
}];
|
|
1024
|
+
};
|
|
1025
|
+
};
|
|
1026
|
+
readonly 'x-inherit': {
|
|
1027
|
+
readonly type: "string";
|
|
1028
|
+
readonly enum: readonly ["auto", "none"];
|
|
1029
|
+
};
|
|
1030
|
+
readonly 'x-expect': {
|
|
1031
|
+
readonly type: "object";
|
|
1032
|
+
readonly properties: {
|
|
1033
|
+
readonly statusCode: {
|
|
1034
|
+
readonly type: "number";
|
|
1035
|
+
};
|
|
1036
|
+
readonly mimeType: {
|
|
1037
|
+
readonly type: "string";
|
|
1038
|
+
};
|
|
1039
|
+
readonly body: {};
|
|
1040
|
+
readonly schema: {
|
|
1041
|
+
readonly type: "object";
|
|
1042
|
+
readonly additionalProperties: true;
|
|
1043
|
+
};
|
|
1044
|
+
};
|
|
1045
|
+
readonly additionalProperties: false;
|
|
1046
|
+
readonly oneOf: readonly [{
|
|
1047
|
+
readonly required: readonly ["statusCode"];
|
|
1048
|
+
}, {
|
|
1049
|
+
readonly required: readonly ["mimeType"];
|
|
1050
|
+
}, {
|
|
1051
|
+
readonly required: readonly ["body"];
|
|
1052
|
+
}, {
|
|
1053
|
+
readonly required: readonly ["schema"];
|
|
1054
|
+
}];
|
|
1055
|
+
};
|
|
1056
|
+
readonly 'x-assert': {
|
|
1057
|
+
readonly type: "string";
|
|
1058
|
+
};
|
|
1059
|
+
readonly 'x-operation': {
|
|
1060
|
+
readonly type: "object";
|
|
1061
|
+
readonly properties: {
|
|
1062
|
+
readonly path: {
|
|
1063
|
+
readonly type: "string";
|
|
1064
|
+
};
|
|
1065
|
+
readonly method: {
|
|
1066
|
+
readonly type: "string";
|
|
1067
|
+
readonly enum: readonly ["get", "post", "put", "delete", "patch"];
|
|
1068
|
+
};
|
|
1069
|
+
readonly sourceDescriptionName: {
|
|
1070
|
+
readonly type: "string";
|
|
1071
|
+
};
|
|
1072
|
+
readonly serverUrl: {
|
|
1073
|
+
readonly type: "string";
|
|
1074
|
+
};
|
|
1075
|
+
};
|
|
1076
|
+
readonly additionalProperties: false;
|
|
1077
|
+
readonly required: readonly ["path", "method"];
|
|
1078
|
+
};
|
|
1079
|
+
readonly requestBody: {
|
|
1080
|
+
readonly type: "object";
|
|
1081
|
+
readonly properties: {
|
|
1082
|
+
readonly contentType: {
|
|
1083
|
+
readonly type: "string";
|
|
1084
|
+
};
|
|
1085
|
+
readonly payload: {
|
|
1086
|
+
readonly oneOf: readonly [{
|
|
1087
|
+
readonly type: "string";
|
|
1088
|
+
}, {
|
|
1089
|
+
readonly type: "object";
|
|
1090
|
+
readonly additionalProperties: true;
|
|
1091
|
+
}, {
|
|
1092
|
+
readonly type: "array";
|
|
1093
|
+
}, {
|
|
1094
|
+
readonly type: "number";
|
|
1095
|
+
}, {
|
|
1096
|
+
readonly type: "boolean";
|
|
1097
|
+
}];
|
|
1098
|
+
};
|
|
1099
|
+
readonly encoding: {
|
|
1100
|
+
readonly type: "string";
|
|
1101
|
+
};
|
|
1102
|
+
readonly replacements: {
|
|
1103
|
+
readonly type: "array";
|
|
1104
|
+
readonly items: {
|
|
1105
|
+
readonly type: "object";
|
|
1106
|
+
readonly properties: {
|
|
1107
|
+
readonly target: {
|
|
1108
|
+
readonly type: "string";
|
|
1109
|
+
};
|
|
1110
|
+
readonly value: {
|
|
1111
|
+
readonly oneOf: readonly [{
|
|
1112
|
+
readonly type: "string";
|
|
1113
|
+
}, {
|
|
1114
|
+
readonly type: "object";
|
|
1115
|
+
}, {
|
|
1116
|
+
readonly type: "array";
|
|
1117
|
+
}, {
|
|
1118
|
+
readonly type: "number";
|
|
1119
|
+
}, {
|
|
1120
|
+
readonly type: "boolean";
|
|
1121
|
+
}];
|
|
1122
|
+
};
|
|
1123
|
+
};
|
|
1124
|
+
};
|
|
1125
|
+
};
|
|
1126
|
+
};
|
|
1127
|
+
readonly additionalProperties: false;
|
|
1128
|
+
readonly required: readonly ["payload"];
|
|
1129
|
+
};
|
|
1130
|
+
};
|
|
1131
|
+
readonly required: readonly ["stepId"];
|
|
1132
|
+
readonly oneOf: readonly [{
|
|
1133
|
+
readonly required: readonly ["x-operation"];
|
|
1134
|
+
}, {
|
|
1135
|
+
readonly required: readonly ["operationId"];
|
|
1136
|
+
}, {
|
|
1137
|
+
readonly required: readonly ["operationPath"];
|
|
1138
|
+
}, {
|
|
1139
|
+
readonly required: readonly ["workflowId"];
|
|
1140
|
+
}];
|
|
1141
|
+
};
|
|
1142
|
+
};
|
|
1143
|
+
readonly successActions: {
|
|
1144
|
+
readonly type: "array";
|
|
1145
|
+
readonly items: {
|
|
1146
|
+
readonly type: "object";
|
|
1147
|
+
readonly properties: {
|
|
1148
|
+
readonly name: {
|
|
1149
|
+
readonly type: "string";
|
|
1150
|
+
};
|
|
1151
|
+
readonly type: {
|
|
1152
|
+
readonly type: "string";
|
|
1153
|
+
readonly enum: readonly ["goto", "end"];
|
|
1154
|
+
};
|
|
1155
|
+
readonly stepId: {
|
|
1156
|
+
readonly type: "string";
|
|
1157
|
+
};
|
|
1158
|
+
readonly workflowId: {
|
|
1159
|
+
readonly type: "string";
|
|
1160
|
+
};
|
|
1161
|
+
readonly criteria: {
|
|
1162
|
+
readonly type: "array";
|
|
1163
|
+
readonly items: {
|
|
1164
|
+
readonly type: "object";
|
|
1165
|
+
readonly properties: {
|
|
1166
|
+
readonly condition: {
|
|
1167
|
+
readonly type: "string";
|
|
1168
|
+
};
|
|
1169
|
+
readonly context: {
|
|
1170
|
+
readonly type: "string";
|
|
1171
|
+
};
|
|
1172
|
+
readonly type: {
|
|
1173
|
+
readonly oneOf: readonly [{
|
|
1174
|
+
readonly type: "string";
|
|
1175
|
+
readonly enum: readonly ["regex", "jsonpath", "simple", "xpath"];
|
|
1176
|
+
}, {
|
|
1177
|
+
readonly type: "object";
|
|
1178
|
+
readonly properties: {
|
|
1179
|
+
readonly type: {
|
|
1180
|
+
readonly type: "string";
|
|
1181
|
+
readonly enum: readonly ["jsonpath"];
|
|
1182
|
+
};
|
|
1183
|
+
readonly version: {
|
|
1184
|
+
readonly type: "string";
|
|
1185
|
+
readonly enum: readonly ["draft-goessner-dispatch-jsonpath-00"];
|
|
1186
|
+
};
|
|
1187
|
+
};
|
|
1188
|
+
}, {
|
|
1189
|
+
readonly type: "object";
|
|
1190
|
+
readonly properties: {
|
|
1191
|
+
readonly type: {
|
|
1192
|
+
readonly type: "string";
|
|
1193
|
+
readonly enum: readonly ["xpath"];
|
|
1194
|
+
};
|
|
1195
|
+
readonly version: {
|
|
1196
|
+
readonly type: "string";
|
|
1197
|
+
readonly enum: readonly ["xpath-30", "xpath-20", "xpath-10"];
|
|
1198
|
+
};
|
|
1199
|
+
};
|
|
1200
|
+
}];
|
|
1201
|
+
};
|
|
1202
|
+
};
|
|
1203
|
+
readonly required: readonly ["condition"];
|
|
1204
|
+
readonly additionalProperties: false;
|
|
1205
|
+
};
|
|
1206
|
+
};
|
|
1207
|
+
};
|
|
1208
|
+
readonly additionalProperties: false;
|
|
1209
|
+
readonly required: readonly ["type", "name"];
|
|
1210
|
+
};
|
|
1211
|
+
};
|
|
1212
|
+
readonly failureActions: {
|
|
1213
|
+
readonly type: "array";
|
|
1214
|
+
readonly items: {
|
|
1215
|
+
readonly type: "object";
|
|
1216
|
+
readonly properties: {
|
|
1217
|
+
readonly name: {
|
|
1218
|
+
readonly type: "string";
|
|
1219
|
+
};
|
|
1220
|
+
readonly type: {
|
|
1221
|
+
readonly type: "string";
|
|
1222
|
+
readonly enum: readonly ["goto", "retry", "end"];
|
|
1223
|
+
};
|
|
1224
|
+
readonly workflowId: {
|
|
1225
|
+
readonly type: "string";
|
|
1226
|
+
};
|
|
1227
|
+
readonly stepId: {
|
|
1228
|
+
readonly type: "string";
|
|
1229
|
+
};
|
|
1230
|
+
readonly retryAfter: {
|
|
1231
|
+
readonly type: "number";
|
|
1232
|
+
};
|
|
1233
|
+
readonly retryLimit: {
|
|
1234
|
+
readonly type: "number";
|
|
1235
|
+
};
|
|
1236
|
+
readonly criteria: {
|
|
1237
|
+
readonly type: "array";
|
|
1238
|
+
readonly items: {
|
|
1239
|
+
readonly type: "object";
|
|
1240
|
+
readonly properties: {
|
|
1241
|
+
readonly condition: {
|
|
1242
|
+
readonly type: "string";
|
|
1243
|
+
};
|
|
1244
|
+
readonly context: {
|
|
1245
|
+
readonly type: "string";
|
|
1246
|
+
};
|
|
1247
|
+
readonly type: {
|
|
1248
|
+
readonly oneOf: readonly [{
|
|
1249
|
+
readonly type: "string";
|
|
1250
|
+
readonly enum: readonly ["regex", "jsonpath", "simple", "xpath"];
|
|
1251
|
+
}, {
|
|
1252
|
+
readonly type: "object";
|
|
1253
|
+
readonly properties: {
|
|
1254
|
+
readonly type: {
|
|
1255
|
+
readonly type: "string";
|
|
1256
|
+
readonly enum: readonly ["jsonpath"];
|
|
1257
|
+
};
|
|
1258
|
+
readonly version: {
|
|
1259
|
+
readonly type: "string";
|
|
1260
|
+
readonly enum: readonly ["draft-goessner-dispatch-jsonpath-00"];
|
|
1261
|
+
};
|
|
1262
|
+
};
|
|
1263
|
+
}, {
|
|
1264
|
+
readonly type: "object";
|
|
1265
|
+
readonly properties: {
|
|
1266
|
+
readonly type: {
|
|
1267
|
+
readonly type: "string";
|
|
1268
|
+
readonly enum: readonly ["xpath"];
|
|
1269
|
+
};
|
|
1270
|
+
readonly version: {
|
|
1271
|
+
readonly type: "string";
|
|
1272
|
+
readonly enum: readonly ["xpath-30", "xpath-20", "xpath-10"];
|
|
1273
|
+
};
|
|
1274
|
+
};
|
|
1275
|
+
}];
|
|
1276
|
+
};
|
|
1277
|
+
};
|
|
1278
|
+
readonly required: readonly ["condition"];
|
|
1279
|
+
readonly additionalProperties: false;
|
|
1280
|
+
};
|
|
1281
|
+
};
|
|
1282
|
+
};
|
|
1283
|
+
readonly additionalProperties: false;
|
|
1284
|
+
readonly required: readonly ["type", "name"];
|
|
1285
|
+
};
|
|
1286
|
+
};
|
|
1287
|
+
};
|
|
1288
|
+
readonly additionalProperties: false;
|
|
1289
|
+
readonly required: readonly ["workflowId", "steps"];
|
|
1290
|
+
};
|
|
3
1291
|
export declare const arazzoSchema: {
|
|
4
1292
|
readonly type: "object";
|
|
5
1293
|
readonly properties: {
|
|
@@ -110,24 +1398,6 @@ export declare const arazzoSchema: {
|
|
|
110
1398
|
};
|
|
111
1399
|
readonly required: readonly ["name", "value"];
|
|
112
1400
|
readonly additionalProperties: false;
|
|
113
|
-
}, {
|
|
114
|
-
readonly type: "object";
|
|
115
|
-
readonly properties: {
|
|
116
|
-
readonly $ref: {
|
|
117
|
-
readonly type: "string";
|
|
118
|
-
};
|
|
119
|
-
readonly value: {
|
|
120
|
-
readonly oneOf: readonly [{
|
|
121
|
-
readonly type: "string";
|
|
122
|
-
}, {
|
|
123
|
-
readonly type: "number";
|
|
124
|
-
}, {
|
|
125
|
-
readonly type: "boolean";
|
|
126
|
-
}];
|
|
127
|
-
};
|
|
128
|
-
};
|
|
129
|
-
readonly required: readonly ["$ref"];
|
|
130
|
-
readonly additionalProperties: false;
|
|
131
1401
|
}, {
|
|
132
1402
|
readonly type: "object";
|
|
133
1403
|
readonly properties: {
|
|
@@ -189,24 +1459,6 @@ export declare const arazzoSchema: {
|
|
|
189
1459
|
};
|
|
190
1460
|
readonly required: readonly ["name", "value"];
|
|
191
1461
|
readonly additionalProperties: false;
|
|
192
|
-
}, {
|
|
193
|
-
readonly type: "object";
|
|
194
|
-
readonly properties: {
|
|
195
|
-
readonly $ref: {
|
|
196
|
-
readonly type: "string";
|
|
197
|
-
};
|
|
198
|
-
readonly value: {
|
|
199
|
-
readonly oneOf: readonly [{
|
|
200
|
-
readonly type: "string";
|
|
201
|
-
}, {
|
|
202
|
-
readonly type: "number";
|
|
203
|
-
}, {
|
|
204
|
-
readonly type: "boolean";
|
|
205
|
-
}];
|
|
206
|
-
};
|
|
207
|
-
};
|
|
208
|
-
readonly required: readonly ["$ref"];
|
|
209
|
-
readonly additionalProperties: false;
|
|
210
1462
|
}, {
|
|
211
1463
|
readonly type: "object";
|
|
212
1464
|
readonly properties: {
|
|
@@ -311,24 +1563,6 @@ export declare const arazzoSchema: {
|
|
|
311
1563
|
};
|
|
312
1564
|
readonly required: readonly ["name", "value"];
|
|
313
1565
|
readonly additionalProperties: false;
|
|
314
|
-
}, {
|
|
315
|
-
readonly type: "object";
|
|
316
|
-
readonly properties: {
|
|
317
|
-
readonly $ref: {
|
|
318
|
-
readonly type: "string";
|
|
319
|
-
};
|
|
320
|
-
readonly value: {
|
|
321
|
-
readonly oneOf: readonly [{
|
|
322
|
-
readonly type: "string";
|
|
323
|
-
}, {
|
|
324
|
-
readonly type: "number";
|
|
325
|
-
}, {
|
|
326
|
-
readonly type: "boolean";
|
|
327
|
-
}];
|
|
328
|
-
};
|
|
329
|
-
};
|
|
330
|
-
readonly required: readonly ["$ref"];
|
|
331
|
-
readonly additionalProperties: false;
|
|
332
1566
|
}, {
|
|
333
1567
|
readonly type: "object";
|
|
334
1568
|
readonly properties: {
|
|
@@ -543,7 +1777,17 @@ export declare const arazzoSchema: {
|
|
|
543
1777
|
readonly outputs: {
|
|
544
1778
|
readonly type: "object";
|
|
545
1779
|
readonly additionalProperties: {
|
|
546
|
-
readonly
|
|
1780
|
+
readonly oneOf: readonly [{
|
|
1781
|
+
readonly type: "string";
|
|
1782
|
+
}, {
|
|
1783
|
+
readonly type: "object";
|
|
1784
|
+
}, {
|
|
1785
|
+
readonly type: "array";
|
|
1786
|
+
}, {
|
|
1787
|
+
readonly type: "boolean";
|
|
1788
|
+
}, {
|
|
1789
|
+
readonly type: "number";
|
|
1790
|
+
}];
|
|
547
1791
|
};
|
|
548
1792
|
};
|
|
549
1793
|
readonly 'x-inherit': {
|
|
@@ -858,24 +2102,6 @@ export declare const arazzoSchema: {
|
|
|
858
2102
|
};
|
|
859
2103
|
readonly required: readonly ["name", "value"];
|
|
860
2104
|
readonly additionalProperties: false;
|
|
861
|
-
}, {
|
|
862
|
-
readonly type: "object";
|
|
863
|
-
readonly properties: {
|
|
864
|
-
readonly $ref: {
|
|
865
|
-
readonly type: "string";
|
|
866
|
-
};
|
|
867
|
-
readonly value: {
|
|
868
|
-
readonly oneOf: readonly [{
|
|
869
|
-
readonly type: "string";
|
|
870
|
-
}, {
|
|
871
|
-
readonly type: "number";
|
|
872
|
-
}, {
|
|
873
|
-
readonly type: "boolean";
|
|
874
|
-
}];
|
|
875
|
-
};
|
|
876
|
-
};
|
|
877
|
-
readonly required: readonly ["$ref"];
|
|
878
|
-
readonly additionalProperties: false;
|
|
879
2105
|
}, {
|
|
880
2106
|
readonly type: "object";
|
|
881
2107
|
readonly properties: {
|