@umbraco-automate/mcp 17.6.0 → 18.6.2
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 +27 -20
- package/dist/collections.js +256 -260
- package/dist/collections.js.map +1 -1
- package/dist/index.js +261 -265
- package/dist/index.js.map +1 -1
- package/dist/tool-types.d.ts +59 -59
- package/package.json +8 -6
package/dist/collections.js
CHANGED
|
@@ -49,30 +49,57 @@ var getApprovalsPendingResponseItem = zod.object({
|
|
|
49
49
|
"requestedUtc": zod.iso.datetime({ "local": true, "offset": true }).nullish()
|
|
50
50
|
});
|
|
51
51
|
var getApprovalsPendingResponse = zod.array(getApprovalsPendingResponseItem);
|
|
52
|
+
var getAutomationsQueryTakeDefault = 100;
|
|
53
|
+
var getAutomationsQueryParams = zod.object({
|
|
54
|
+
"filter": zod.string().optional(),
|
|
55
|
+
"groupId": zod.guid().optional(),
|
|
56
|
+
"workspaceId": zod.guid().optional(),
|
|
57
|
+
"skip": zod.coerce.number().int().optional(),
|
|
58
|
+
"take": zod.coerce.number().int().default(getAutomationsQueryTakeDefault)
|
|
59
|
+
});
|
|
60
|
+
var getAutomationsResponse = zod.object({
|
|
61
|
+
"total": zod.int(),
|
|
62
|
+
"items": zod.array(zod.object({
|
|
63
|
+
"id": zod.guid(),
|
|
64
|
+
"alias": zod.string().min(1),
|
|
65
|
+
"name": zod.string().min(1),
|
|
66
|
+
"description": zod.string().nullish(),
|
|
67
|
+
"workspaceId": zod.guid(),
|
|
68
|
+
"groupId": zod.guid().nullish(),
|
|
69
|
+
"status": zod.enum(["Draft", "Published", "Unpublished"]),
|
|
70
|
+
"triggerAlias": zod.string().nullish(),
|
|
71
|
+
"version": zod.int(),
|
|
72
|
+
"publishedVersion": zod.int().nullish(),
|
|
73
|
+
"dateCreated": zod.iso.datetime({ "local": true, "offset": true }),
|
|
74
|
+
"dateModified": zod.iso.datetime({ "local": true, "offset": true }),
|
|
75
|
+
"health": zod.enum(["Healthy", "Degraded", "Disabled"])
|
|
76
|
+
}))
|
|
77
|
+
});
|
|
78
|
+
var postAutomationsBodyStepsItemRetryIntervalRegExp = new RegExp("^-?(\\d+\\.)?\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,7})?$");
|
|
52
79
|
zod.object({
|
|
53
80
|
"alias": zod.string().min(1),
|
|
54
81
|
"name": zod.string().min(1),
|
|
55
82
|
"description": zod.string().nullish(),
|
|
56
83
|
"workspaceId": zod.guid(),
|
|
57
84
|
"groupId": zod.guid().nullish(),
|
|
58
|
-
"trigger": zod.object({
|
|
85
|
+
"trigger": zod.union([zod.null(), zod.object({
|
|
59
86
|
"triggerAlias": zod.string(),
|
|
60
|
-
"settings": zod.
|
|
61
|
-
}).
|
|
87
|
+
"settings": zod.looseObject({})
|
|
88
|
+
})]).optional(),
|
|
62
89
|
"steps": zod.array(zod.object({
|
|
63
90
|
"id": zod.guid(),
|
|
64
91
|
"actionAlias": zod.string(),
|
|
65
92
|
"name": zod.string(),
|
|
66
93
|
"alias": zod.string().nullish(),
|
|
67
94
|
"connectionId": zod.guid().nullish(),
|
|
68
|
-
"settings": zod.
|
|
95
|
+
"settings": zod.looseObject({}),
|
|
69
96
|
"inputMappings": zod.record(zod.string(), zod.string()),
|
|
70
97
|
"position": zod.object({
|
|
71
98
|
"x": zod.number(),
|
|
72
99
|
"y": zod.number()
|
|
73
100
|
}),
|
|
74
101
|
"errorBehavior": zod.enum(["Retry", "Suspend", "Terminate", "Compensate"]),
|
|
75
|
-
"retryInterval": zod.string().nullish(),
|
|
102
|
+
"retryInterval": zod.string().regex(postAutomationsBodyStepsItemRetryIntervalRegExp).nullish(),
|
|
76
103
|
"maxRetries": zod.int().nullish()
|
|
77
104
|
})),
|
|
78
105
|
"connections": zod.array(zod.object({
|
|
@@ -81,7 +108,7 @@ zod.object({
|
|
|
81
108
|
"targetStepId": zod.guid(),
|
|
82
109
|
"targetHandle": zod.string().nullish(),
|
|
83
110
|
"outcome": zod.string().nullish(),
|
|
84
|
-
"filter": zod.object({
|
|
111
|
+
"filter": zod.union([zod.null(), zod.object({
|
|
85
112
|
"groups": zod.array(zod.object({
|
|
86
113
|
"conditions": zod.array(zod.object({
|
|
87
114
|
"leftOperand": zod.string(),
|
|
@@ -89,52 +116,23 @@ zod.object({
|
|
|
89
116
|
"rightOperand": zod.string()
|
|
90
117
|
}))
|
|
91
118
|
}))
|
|
92
|
-
}).
|
|
119
|
+
})]).optional()
|
|
93
120
|
})),
|
|
94
121
|
"canvasState": zod.string().nullish(),
|
|
95
|
-
"notificationSettings": zod.object({
|
|
122
|
+
"notificationSettings": zod.union([zod.null(), zod.object({
|
|
96
123
|
"channels": zod.array(zod.object({
|
|
97
124
|
"channelAlias": zod.string(),
|
|
98
|
-
"settings": zod.
|
|
125
|
+
"settings": zod.looseObject({}),
|
|
99
126
|
"isEnabled": zod.boolean(),
|
|
100
127
|
"notifyOn": zod.enum(["Never", "Failed", "Suspended", "FailedOrSuspended", "Completed", "Recovered", "Disabled", "Warning", "ReEnabled", "Resumed", "Rejected"])
|
|
101
128
|
}))
|
|
102
|
-
}).
|
|
129
|
+
})]).optional()
|
|
103
130
|
});
|
|
104
131
|
zod.void();
|
|
105
|
-
var getAutomationsQueryTakeDefault = 100;
|
|
106
|
-
var getAutomationsQueryParams = zod.object({
|
|
107
|
-
"filter": zod.string().optional(),
|
|
108
|
-
"groupId": zod.guid().optional(),
|
|
109
|
-
"workspaceId": zod.guid().optional(),
|
|
110
|
-
"skip": zod.coerce.number().int().optional(),
|
|
111
|
-
"take": zod.coerce.number().int().default(getAutomationsQueryTakeDefault)
|
|
112
|
-
});
|
|
113
|
-
var getAutomationsResponse = zod.object({
|
|
114
|
-
"total": zod.int(),
|
|
115
|
-
"items": zod.array(zod.object({
|
|
116
|
-
"id": zod.guid(),
|
|
117
|
-
"alias": zod.string().min(1),
|
|
118
|
-
"name": zod.string().min(1),
|
|
119
|
-
"description": zod.string().nullish(),
|
|
120
|
-
"workspaceId": zod.guid(),
|
|
121
|
-
"groupId": zod.guid().nullish(),
|
|
122
|
-
"status": zod.enum(["Draft", "Published", "Unpublished"]),
|
|
123
|
-
"triggerAlias": zod.string().nullish(),
|
|
124
|
-
"version": zod.int(),
|
|
125
|
-
"publishedVersion": zod.int().nullish(),
|
|
126
|
-
"dateCreated": zod.iso.datetime({ "local": true, "offset": true }),
|
|
127
|
-
"dateModified": zod.iso.datetime({ "local": true, "offset": true }),
|
|
128
|
-
"health": zod.enum(["Healthy", "Degraded", "Disabled"])
|
|
129
|
-
}))
|
|
130
|
-
});
|
|
131
|
-
var deleteAutomationsByIdParams = zod.object({
|
|
132
|
-
"id": zod.guid()
|
|
133
|
-
});
|
|
134
|
-
zod.unknown();
|
|
135
132
|
var getAutomationsByIdParams = zod.object({
|
|
136
133
|
"id": zod.guid()
|
|
137
134
|
});
|
|
135
|
+
var getAutomationsByIdResponseStepsItemRetryIntervalRegExp = new RegExp("^-?(\\d+\\.)?\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,7})?$");
|
|
138
136
|
var getAutomationsByIdResponse = zod.object({
|
|
139
137
|
"id": zod.guid(),
|
|
140
138
|
"alias": zod.string().min(1),
|
|
@@ -144,24 +142,24 @@ var getAutomationsByIdResponse = zod.object({
|
|
|
144
142
|
"publishedVersion": zod.int().nullish(),
|
|
145
143
|
"workspaceId": zod.guid(),
|
|
146
144
|
"groupId": zod.guid().nullish(),
|
|
147
|
-
"trigger": zod.object({
|
|
145
|
+
"trigger": zod.union([zod.null(), zod.object({
|
|
148
146
|
"triggerAlias": zod.string(),
|
|
149
|
-
"settings": zod.
|
|
150
|
-
}).
|
|
147
|
+
"settings": zod.looseObject({})
|
|
148
|
+
})]).optional(),
|
|
151
149
|
"steps": zod.array(zod.object({
|
|
152
150
|
"id": zod.guid(),
|
|
153
151
|
"actionAlias": zod.string(),
|
|
154
152
|
"name": zod.string(),
|
|
155
153
|
"alias": zod.string().nullish(),
|
|
156
154
|
"connectionId": zod.guid().nullish(),
|
|
157
|
-
"settings": zod.
|
|
155
|
+
"settings": zod.looseObject({}),
|
|
158
156
|
"inputMappings": zod.record(zod.string(), zod.string()),
|
|
159
157
|
"position": zod.object({
|
|
160
158
|
"x": zod.number(),
|
|
161
159
|
"y": zod.number()
|
|
162
160
|
}),
|
|
163
161
|
"errorBehavior": zod.enum(["Retry", "Suspend", "Terminate", "Compensate"]),
|
|
164
|
-
"retryInterval": zod.string().nullish(),
|
|
162
|
+
"retryInterval": zod.string().regex(getAutomationsByIdResponseStepsItemRetryIntervalRegExp).nullish(),
|
|
165
163
|
"maxRetries": zod.int().nullish()
|
|
166
164
|
})),
|
|
167
165
|
"connections": zod.array(zod.object({
|
|
@@ -170,7 +168,7 @@ var getAutomationsByIdResponse = zod.object({
|
|
|
170
168
|
"targetStepId": zod.guid(),
|
|
171
169
|
"targetHandle": zod.string().nullish(),
|
|
172
170
|
"outcome": zod.string().nullish(),
|
|
173
|
-
"filter": zod.object({
|
|
171
|
+
"filter": zod.union([zod.null(), zod.object({
|
|
174
172
|
"groups": zod.array(zod.object({
|
|
175
173
|
"conditions": zod.array(zod.object({
|
|
176
174
|
"leftOperand": zod.string(),
|
|
@@ -178,51 +176,56 @@ var getAutomationsByIdResponse = zod.object({
|
|
|
178
176
|
"rightOperand": zod.string()
|
|
179
177
|
}))
|
|
180
178
|
}))
|
|
181
|
-
}).
|
|
179
|
+
})]).optional()
|
|
182
180
|
})),
|
|
183
181
|
"canvasState": zod.string().nullish(),
|
|
184
182
|
"version": zod.int(),
|
|
185
183
|
"dateCreated": zod.iso.datetime({ "local": true, "offset": true }),
|
|
186
184
|
"dateModified": zod.iso.datetime({ "local": true, "offset": true }),
|
|
187
|
-
"notificationSettings": zod.object({
|
|
185
|
+
"notificationSettings": zod.union([zod.null(), zod.object({
|
|
188
186
|
"channels": zod.array(zod.object({
|
|
189
187
|
"channelAlias": zod.string(),
|
|
190
|
-
"settings": zod.
|
|
188
|
+
"settings": zod.looseObject({}),
|
|
191
189
|
"isEnabled": zod.boolean(),
|
|
192
190
|
"notifyOn": zod.enum(["Never", "Failed", "Suspended", "FailedOrSuspended", "Completed", "Recovered", "Disabled", "Warning", "ReEnabled", "Resumed", "Rejected"])
|
|
193
191
|
}))
|
|
194
|
-
}).
|
|
192
|
+
})]).optional(),
|
|
195
193
|
"health": zod.enum(["Healthy", "Degraded", "Disabled"]),
|
|
196
194
|
"warningIssuedUtc": zod.iso.datetime({ "local": true, "offset": true }).nullish(),
|
|
197
195
|
"disabledUtc": zod.iso.datetime({ "local": true, "offset": true }).nullish()
|
|
198
196
|
});
|
|
197
|
+
var deleteAutomationsByIdParams = zod.object({
|
|
198
|
+
"id": zod.guid()
|
|
199
|
+
});
|
|
200
|
+
zod.unknown();
|
|
199
201
|
zod.object({
|
|
200
202
|
"id": zod.guid()
|
|
201
203
|
});
|
|
202
|
-
var
|
|
204
|
+
var putAutomationsByIdBodyStepsItemRetryIntervalRegExp = new RegExp("^-?(\\d+\\.)?\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,7})?$");
|
|
205
|
+
var putAutomationsByIdBodyVersionMax = 2147483647;
|
|
203
206
|
zod.object({
|
|
204
207
|
"alias": zod.string().min(1),
|
|
205
208
|
"name": zod.string().min(1),
|
|
206
209
|
"description": zod.string().nullish(),
|
|
207
210
|
"groupId": zod.guid().nullish(),
|
|
208
|
-
"trigger": zod.object({
|
|
211
|
+
"trigger": zod.union([zod.null(), zod.object({
|
|
209
212
|
"triggerAlias": zod.string(),
|
|
210
|
-
"settings": zod.
|
|
211
|
-
}).
|
|
213
|
+
"settings": zod.looseObject({})
|
|
214
|
+
})]).optional(),
|
|
212
215
|
"steps": zod.array(zod.object({
|
|
213
216
|
"id": zod.guid(),
|
|
214
217
|
"actionAlias": zod.string(),
|
|
215
218
|
"name": zod.string(),
|
|
216
219
|
"alias": zod.string().nullish(),
|
|
217
220
|
"connectionId": zod.guid().nullish(),
|
|
218
|
-
"settings": zod.
|
|
221
|
+
"settings": zod.looseObject({}),
|
|
219
222
|
"inputMappings": zod.record(zod.string(), zod.string()),
|
|
220
223
|
"position": zod.object({
|
|
221
224
|
"x": zod.number(),
|
|
222
225
|
"y": zod.number()
|
|
223
226
|
}),
|
|
224
227
|
"errorBehavior": zod.enum(["Retry", "Suspend", "Terminate", "Compensate"]),
|
|
225
|
-
"retryInterval": zod.string().nullish(),
|
|
228
|
+
"retryInterval": zod.string().regex(putAutomationsByIdBodyStepsItemRetryIntervalRegExp).nullish(),
|
|
226
229
|
"maxRetries": zod.int().nullish()
|
|
227
230
|
})),
|
|
228
231
|
"connections": zod.array(zod.object({
|
|
@@ -231,7 +234,7 @@ zod.object({
|
|
|
231
234
|
"targetStepId": zod.guid(),
|
|
232
235
|
"targetHandle": zod.string().nullish(),
|
|
233
236
|
"outcome": zod.string().nullish(),
|
|
234
|
-
"filter": zod.object({
|
|
237
|
+
"filter": zod.union([zod.null(), zod.object({
|
|
235
238
|
"groups": zod.array(zod.object({
|
|
236
239
|
"conditions": zod.array(zod.object({
|
|
237
240
|
"leftOperand": zod.string(),
|
|
@@ -239,18 +242,18 @@ zod.object({
|
|
|
239
242
|
"rightOperand": zod.string()
|
|
240
243
|
}))
|
|
241
244
|
}))
|
|
242
|
-
}).
|
|
245
|
+
})]).optional()
|
|
243
246
|
})),
|
|
244
247
|
"canvasState": zod.string().nullish(),
|
|
245
|
-
"notificationSettings": zod.object({
|
|
248
|
+
"notificationSettings": zod.union([zod.null(), zod.object({
|
|
246
249
|
"channels": zod.array(zod.object({
|
|
247
250
|
"channelAlias": zod.string(),
|
|
248
|
-
"settings": zod.
|
|
251
|
+
"settings": zod.looseObject({}),
|
|
249
252
|
"isEnabled": zod.boolean(),
|
|
250
253
|
"notifyOn": zod.enum(["Never", "Failed", "Suspended", "FailedOrSuspended", "Completed", "Recovered", "Disabled", "Warning", "ReEnabled", "Resumed", "Rejected"])
|
|
251
254
|
}))
|
|
252
|
-
}).
|
|
253
|
-
"version": zod.int().min(1).max(
|
|
255
|
+
})]).optional(),
|
|
256
|
+
"version": zod.int().min(1).max(putAutomationsByIdBodyVersionMax)
|
|
254
257
|
});
|
|
255
258
|
zod.unknown();
|
|
256
259
|
var getAutomationsByIdAncestorsParams = zod.object({
|
|
@@ -272,6 +275,7 @@ var getAutomationsByIdExportParams = zod.object({
|
|
|
272
275
|
var getAutomationsByIdExportQueryParams = zod.object({
|
|
273
276
|
"include": zod.string().optional()
|
|
274
277
|
});
|
|
278
|
+
var getAutomationsByIdExportResponseAutomationStepsItemRetryIntervalRegExp = new RegExp("^-?(\\d+\\.)?\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,7})?$");
|
|
275
279
|
var getAutomationsByIdExportResponse = zod.object({
|
|
276
280
|
"formatVersion": zod.string(),
|
|
277
281
|
"exportedAt": zod.iso.datetime({ "local": true, "offset": true }),
|
|
@@ -284,24 +288,24 @@ var getAutomationsByIdExportResponse = zod.object({
|
|
|
284
288
|
"alias": zod.string(),
|
|
285
289
|
"name": zod.string(),
|
|
286
290
|
"description": zod.string().nullish(),
|
|
287
|
-
"trigger": zod.object({
|
|
291
|
+
"trigger": zod.union([zod.null(), zod.object({
|
|
288
292
|
"triggerAlias": zod.string(),
|
|
289
|
-
"settings": zod.
|
|
290
|
-
}).
|
|
293
|
+
"settings": zod.looseObject({})
|
|
294
|
+
})]).optional(),
|
|
291
295
|
"steps": zod.array(zod.object({
|
|
292
296
|
"id": zod.guid(),
|
|
293
297
|
"actionAlias": zod.string(),
|
|
294
298
|
"name": zod.string(),
|
|
295
299
|
"alias": zod.string().nullish(),
|
|
296
300
|
"connectionAlias": zod.string().nullish(),
|
|
297
|
-
"settings": zod.
|
|
301
|
+
"settings": zod.looseObject({}),
|
|
298
302
|
"inputMappings": zod.record(zod.string(), zod.string()),
|
|
299
303
|
"position": zod.object({
|
|
300
304
|
"x": zod.number(),
|
|
301
305
|
"y": zod.number()
|
|
302
306
|
}),
|
|
303
307
|
"errorBehavior": zod.enum(["Retry", "Suspend", "Terminate", "Compensate"]),
|
|
304
|
-
"retryInterval": zod.string().nullish(),
|
|
308
|
+
"retryInterval": zod.string().regex(getAutomationsByIdExportResponseAutomationStepsItemRetryIntervalRegExp).nullish(),
|
|
305
309
|
"maxRetries": zod.int().nullish()
|
|
306
310
|
})),
|
|
307
311
|
"connections": zod.array(zod.object({
|
|
@@ -310,7 +314,7 @@ var getAutomationsByIdExportResponse = zod.object({
|
|
|
310
314
|
"targetStepId": zod.guid(),
|
|
311
315
|
"targetHandle": zod.string().nullish(),
|
|
312
316
|
"outcome": zod.string().nullish(),
|
|
313
|
-
"filter": zod.object({
|
|
317
|
+
"filter": zod.union([zod.null(), zod.object({
|
|
314
318
|
"groups": zod.array(zod.object({
|
|
315
319
|
"conditions": zod.array(zod.object({
|
|
316
320
|
"leftOperand": zod.string(),
|
|
@@ -318,17 +322,17 @@ var getAutomationsByIdExportResponse = zod.object({
|
|
|
318
322
|
"rightOperand": zod.string()
|
|
319
323
|
}))
|
|
320
324
|
}))
|
|
321
|
-
}).
|
|
325
|
+
})]).optional()
|
|
322
326
|
})),
|
|
323
327
|
"canvasState": zod.string().nullish(),
|
|
324
|
-
"notificationSettings": zod.object({
|
|
328
|
+
"notificationSettings": zod.union([zod.null(), zod.object({
|
|
325
329
|
"channels": zod.array(zod.object({
|
|
326
330
|
"channelAlias": zod.string(),
|
|
327
|
-
"settings": zod.
|
|
331
|
+
"settings": zod.looseObject({}),
|
|
328
332
|
"isEnabled": zod.boolean(),
|
|
329
333
|
"notifyOn": zod.enum(["Never", "Failed", "Suspended", "FailedOrSuspended", "Completed", "Recovered", "Disabled", "Warning", "ReEnabled", "Resumed", "Rejected"])
|
|
330
334
|
}))
|
|
331
|
-
}).
|
|
335
|
+
})]).optional()
|
|
332
336
|
}),
|
|
333
337
|
"connectionReferences": zod.array(zod.object({
|
|
334
338
|
"alias": zod.string(),
|
|
@@ -339,6 +343,7 @@ var getAutomationsByIdExportResponse = zod.object({
|
|
|
339
343
|
var putAutomationsByIdImportParams = zod.object({
|
|
340
344
|
"id": zod.guid()
|
|
341
345
|
});
|
|
346
|
+
var putAutomationsByIdImportBodyAutomationStepsItemRetryIntervalRegExp = new RegExp("^-?(\\d+\\.)?\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,7})?$");
|
|
342
347
|
var putAutomationsByIdImportBody = zod.object({
|
|
343
348
|
"formatVersion": zod.string(),
|
|
344
349
|
"exportedAt": zod.iso.datetime({ "local": true, "offset": true }),
|
|
@@ -351,24 +356,24 @@ var putAutomationsByIdImportBody = zod.object({
|
|
|
351
356
|
"alias": zod.string(),
|
|
352
357
|
"name": zod.string(),
|
|
353
358
|
"description": zod.string().nullish(),
|
|
354
|
-
"trigger": zod.object({
|
|
359
|
+
"trigger": zod.union([zod.null(), zod.object({
|
|
355
360
|
"triggerAlias": zod.string(),
|
|
356
|
-
"settings": zod.
|
|
357
|
-
}).
|
|
361
|
+
"settings": zod.looseObject({})
|
|
362
|
+
})]).optional(),
|
|
358
363
|
"steps": zod.array(zod.object({
|
|
359
364
|
"id": zod.guid(),
|
|
360
365
|
"actionAlias": zod.string(),
|
|
361
366
|
"name": zod.string(),
|
|
362
367
|
"alias": zod.string().nullish(),
|
|
363
368
|
"connectionAlias": zod.string().nullish(),
|
|
364
|
-
"settings": zod.
|
|
369
|
+
"settings": zod.looseObject({}),
|
|
365
370
|
"inputMappings": zod.record(zod.string(), zod.string()),
|
|
366
371
|
"position": zod.object({
|
|
367
372
|
"x": zod.number(),
|
|
368
373
|
"y": zod.number()
|
|
369
374
|
}),
|
|
370
375
|
"errorBehavior": zod.enum(["Retry", "Suspend", "Terminate", "Compensate"]),
|
|
371
|
-
"retryInterval": zod.string().nullish(),
|
|
376
|
+
"retryInterval": zod.string().regex(putAutomationsByIdImportBodyAutomationStepsItemRetryIntervalRegExp).nullish(),
|
|
372
377
|
"maxRetries": zod.int().nullish()
|
|
373
378
|
})),
|
|
374
379
|
"connections": zod.array(zod.object({
|
|
@@ -377,7 +382,7 @@ var putAutomationsByIdImportBody = zod.object({
|
|
|
377
382
|
"targetStepId": zod.guid(),
|
|
378
383
|
"targetHandle": zod.string().nullish(),
|
|
379
384
|
"outcome": zod.string().nullish(),
|
|
380
|
-
"filter": zod.object({
|
|
385
|
+
"filter": zod.union([zod.null(), zod.object({
|
|
381
386
|
"groups": zod.array(zod.object({
|
|
382
387
|
"conditions": zod.array(zod.object({
|
|
383
388
|
"leftOperand": zod.string(),
|
|
@@ -385,17 +390,17 @@ var putAutomationsByIdImportBody = zod.object({
|
|
|
385
390
|
"rightOperand": zod.string()
|
|
386
391
|
}))
|
|
387
392
|
}))
|
|
388
|
-
}).
|
|
393
|
+
})]).optional()
|
|
389
394
|
})),
|
|
390
395
|
"canvasState": zod.string().nullish(),
|
|
391
|
-
"notificationSettings": zod.object({
|
|
396
|
+
"notificationSettings": zod.union([zod.null(), zod.object({
|
|
392
397
|
"channels": zod.array(zod.object({
|
|
393
398
|
"channelAlias": zod.string(),
|
|
394
|
-
"settings": zod.
|
|
399
|
+
"settings": zod.looseObject({}),
|
|
395
400
|
"isEnabled": zod.boolean(),
|
|
396
401
|
"notifyOn": zod.enum(["Never", "Failed", "Suspended", "FailedOrSuspended", "Completed", "Recovered", "Disabled", "Warning", "ReEnabled", "Resumed", "Rejected"])
|
|
397
402
|
}))
|
|
398
|
-
}).
|
|
403
|
+
})]).optional()
|
|
399
404
|
}),
|
|
400
405
|
"connectionReferences": zod.array(zod.object({
|
|
401
406
|
"alias": zod.string(),
|
|
@@ -484,6 +489,7 @@ var getAutomationsGroupsByGroupIdResponse = zod.object({
|
|
|
484
489
|
"workspaceId": zod.guid(),
|
|
485
490
|
"dateCreated": zod.iso.datetime({ "local": true, "offset": true })
|
|
486
491
|
});
|
|
492
|
+
var postAutomationsImportBodyExportModelAutomationStepsItemRetryIntervalRegExp = new RegExp("^-?(\\d+\\.)?\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,7})?$");
|
|
487
493
|
var postAutomationsImportBody = zod.object({
|
|
488
494
|
"workspaceId": zod.guid(),
|
|
489
495
|
"exportModel": zod.object({
|
|
@@ -498,24 +504,24 @@ var postAutomationsImportBody = zod.object({
|
|
|
498
504
|
"alias": zod.string(),
|
|
499
505
|
"name": zod.string(),
|
|
500
506
|
"description": zod.string().nullish(),
|
|
501
|
-
"trigger": zod.object({
|
|
507
|
+
"trigger": zod.union([zod.null(), zod.object({
|
|
502
508
|
"triggerAlias": zod.string(),
|
|
503
|
-
"settings": zod.
|
|
504
|
-
}).
|
|
509
|
+
"settings": zod.looseObject({})
|
|
510
|
+
})]).optional(),
|
|
505
511
|
"steps": zod.array(zod.object({
|
|
506
512
|
"id": zod.guid(),
|
|
507
513
|
"actionAlias": zod.string(),
|
|
508
514
|
"name": zod.string(),
|
|
509
515
|
"alias": zod.string().nullish(),
|
|
510
516
|
"connectionAlias": zod.string().nullish(),
|
|
511
|
-
"settings": zod.
|
|
517
|
+
"settings": zod.looseObject({}),
|
|
512
518
|
"inputMappings": zod.record(zod.string(), zod.string()),
|
|
513
519
|
"position": zod.object({
|
|
514
520
|
"x": zod.number(),
|
|
515
521
|
"y": zod.number()
|
|
516
522
|
}),
|
|
517
523
|
"errorBehavior": zod.enum(["Retry", "Suspend", "Terminate", "Compensate"]),
|
|
518
|
-
"retryInterval": zod.string().nullish(),
|
|
524
|
+
"retryInterval": zod.string().regex(postAutomationsImportBodyExportModelAutomationStepsItemRetryIntervalRegExp).nullish(),
|
|
519
525
|
"maxRetries": zod.int().nullish()
|
|
520
526
|
})),
|
|
521
527
|
"connections": zod.array(zod.object({
|
|
@@ -524,7 +530,7 @@ var postAutomationsImportBody = zod.object({
|
|
|
524
530
|
"targetStepId": zod.guid(),
|
|
525
531
|
"targetHandle": zod.string().nullish(),
|
|
526
532
|
"outcome": zod.string().nullish(),
|
|
527
|
-
"filter": zod.object({
|
|
533
|
+
"filter": zod.union([zod.null(), zod.object({
|
|
528
534
|
"groups": zod.array(zod.object({
|
|
529
535
|
"conditions": zod.array(zod.object({
|
|
530
536
|
"leftOperand": zod.string(),
|
|
@@ -532,17 +538,17 @@ var postAutomationsImportBody = zod.object({
|
|
|
532
538
|
"rightOperand": zod.string()
|
|
533
539
|
}))
|
|
534
540
|
}))
|
|
535
|
-
}).
|
|
541
|
+
})]).optional()
|
|
536
542
|
})),
|
|
537
543
|
"canvasState": zod.string().nullish(),
|
|
538
|
-
"notificationSettings": zod.object({
|
|
544
|
+
"notificationSettings": zod.union([zod.null(), zod.object({
|
|
539
545
|
"channels": zod.array(zod.object({
|
|
540
546
|
"channelAlias": zod.string(),
|
|
541
|
-
"settings": zod.
|
|
547
|
+
"settings": zod.looseObject({}),
|
|
542
548
|
"isEnabled": zod.boolean(),
|
|
543
549
|
"notifyOn": zod.enum(["Never", "Failed", "Suspended", "FailedOrSuspended", "Completed", "Recovered", "Disabled", "Warning", "ReEnabled", "Resumed", "Rejected"])
|
|
544
550
|
}))
|
|
545
|
-
}).
|
|
551
|
+
})]).optional()
|
|
546
552
|
}),
|
|
547
553
|
"connectionReferences": zod.array(zod.object({
|
|
548
554
|
"alias": zod.string(),
|
|
@@ -558,6 +564,7 @@ var postAutomationsImportResponse = zod.object({
|
|
|
558
564
|
"errors": zod.array(zod.string()),
|
|
559
565
|
"warnings": zod.array(zod.string())
|
|
560
566
|
});
|
|
567
|
+
var postAutomationsImportValidateBodyExportModelAutomationStepsItemRetryIntervalRegExp = new RegExp("^-?(\\d+\\.)?\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,7})?$");
|
|
561
568
|
var postAutomationsImportValidateBody = zod.object({
|
|
562
569
|
"workspaceId": zod.guid(),
|
|
563
570
|
"exportModel": zod.object({
|
|
@@ -572,24 +579,24 @@ var postAutomationsImportValidateBody = zod.object({
|
|
|
572
579
|
"alias": zod.string(),
|
|
573
580
|
"name": zod.string(),
|
|
574
581
|
"description": zod.string().nullish(),
|
|
575
|
-
"trigger": zod.object({
|
|
582
|
+
"trigger": zod.union([zod.null(), zod.object({
|
|
576
583
|
"triggerAlias": zod.string(),
|
|
577
|
-
"settings": zod.
|
|
578
|
-
}).
|
|
584
|
+
"settings": zod.looseObject({})
|
|
585
|
+
})]).optional(),
|
|
579
586
|
"steps": zod.array(zod.object({
|
|
580
587
|
"id": zod.guid(),
|
|
581
588
|
"actionAlias": zod.string(),
|
|
582
589
|
"name": zod.string(),
|
|
583
590
|
"alias": zod.string().nullish(),
|
|
584
591
|
"connectionAlias": zod.string().nullish(),
|
|
585
|
-
"settings": zod.
|
|
592
|
+
"settings": zod.looseObject({}),
|
|
586
593
|
"inputMappings": zod.record(zod.string(), zod.string()),
|
|
587
594
|
"position": zod.object({
|
|
588
595
|
"x": zod.number(),
|
|
589
596
|
"y": zod.number()
|
|
590
597
|
}),
|
|
591
598
|
"errorBehavior": zod.enum(["Retry", "Suspend", "Terminate", "Compensate"]),
|
|
592
|
-
"retryInterval": zod.string().nullish(),
|
|
599
|
+
"retryInterval": zod.string().regex(postAutomationsImportValidateBodyExportModelAutomationStepsItemRetryIntervalRegExp).nullish(),
|
|
593
600
|
"maxRetries": zod.int().nullish()
|
|
594
601
|
})),
|
|
595
602
|
"connections": zod.array(zod.object({
|
|
@@ -598,7 +605,7 @@ var postAutomationsImportValidateBody = zod.object({
|
|
|
598
605
|
"targetStepId": zod.guid(),
|
|
599
606
|
"targetHandle": zod.string().nullish(),
|
|
600
607
|
"outcome": zod.string().nullish(),
|
|
601
|
-
"filter": zod.object({
|
|
608
|
+
"filter": zod.union([zod.null(), zod.object({
|
|
602
609
|
"groups": zod.array(zod.object({
|
|
603
610
|
"conditions": zod.array(zod.object({
|
|
604
611
|
"leftOperand": zod.string(),
|
|
@@ -606,17 +613,17 @@ var postAutomationsImportValidateBody = zod.object({
|
|
|
606
613
|
"rightOperand": zod.string()
|
|
607
614
|
}))
|
|
608
615
|
}))
|
|
609
|
-
}).
|
|
616
|
+
})]).optional()
|
|
610
617
|
})),
|
|
611
618
|
"canvasState": zod.string().nullish(),
|
|
612
|
-
"notificationSettings": zod.object({
|
|
619
|
+
"notificationSettings": zod.union([zod.null(), zod.object({
|
|
613
620
|
"channels": zod.array(zod.object({
|
|
614
621
|
"channelAlias": zod.string(),
|
|
615
|
-
"settings": zod.
|
|
622
|
+
"settings": zod.looseObject({}),
|
|
616
623
|
"isEnabled": zod.boolean(),
|
|
617
624
|
"notifyOn": zod.enum(["Never", "Failed", "Suspended", "FailedOrSuspended", "Completed", "Recovered", "Disabled", "Warning", "ReEnabled", "Resumed", "Rejected"])
|
|
618
625
|
}))
|
|
619
|
-
}).
|
|
626
|
+
})]).optional()
|
|
620
627
|
}),
|
|
621
628
|
"connectionReferences": zod.array(zod.object({
|
|
622
629
|
"alias": zod.string(),
|
|
@@ -642,7 +649,7 @@ var getCatalogueActionsResponseItem = zod.object({
|
|
|
642
649
|
"group": zod.string().nullish(),
|
|
643
650
|
"icon": zod.string().nullish(),
|
|
644
651
|
"connectionTypeAlias": zod.string().nullish(),
|
|
645
|
-
"settingsSchema": zod.object({
|
|
652
|
+
"settingsSchema": zod.union([zod.null(), zod.object({
|
|
646
653
|
"fields": zod.array(zod.object({
|
|
647
654
|
"key": zod.string().min(1),
|
|
648
655
|
"label": zod.string(),
|
|
@@ -650,19 +657,19 @@ var getCatalogueActionsResponseItem = zod.object({
|
|
|
650
657
|
"valueKind": zod.enum(["String", "Scalar", "Collection"]),
|
|
651
658
|
"editorUiAlias": zod.string().nullish(),
|
|
652
659
|
"editorConfig": zod.string().nullish(),
|
|
653
|
-
"defaultValue": zod.unknown().
|
|
660
|
+
"defaultValue": zod.unknown().optional(),
|
|
654
661
|
"sortOrder": zod.int(),
|
|
655
662
|
"isSensitive": zod.boolean(),
|
|
656
663
|
"isRequired": zod.boolean(),
|
|
657
664
|
"group": zod.string().nullish(),
|
|
658
665
|
"supportsBindings": zod.boolean(),
|
|
659
|
-
"visibleWhen": zod.object({
|
|
666
|
+
"visibleWhen": zod.union([zod.null(), zod.object({
|
|
660
667
|
"key": zod.string(),
|
|
661
668
|
"values": zod.array(zod.string())
|
|
662
|
-
}).
|
|
669
|
+
})]).optional()
|
|
663
670
|
}))
|
|
664
|
-
}).
|
|
665
|
-
"outputSchema": zod.
|
|
671
|
+
})]).optional(),
|
|
672
|
+
"outputSchema": zod.looseObject({}).nullish(),
|
|
666
673
|
"hasDynamicOutputSchema": zod.boolean(),
|
|
667
674
|
"outcomes": zod.array(zod.object({
|
|
668
675
|
"key": zod.string().min(1),
|
|
@@ -680,7 +687,7 @@ var getCatalogueConnectionTypesResponseItem = zod.object({
|
|
|
680
687
|
"description": zod.string().nullish(),
|
|
681
688
|
"group": zod.string().nullish(),
|
|
682
689
|
"icon": zod.string().nullish(),
|
|
683
|
-
"settingsSchema": zod.object({
|
|
690
|
+
"settingsSchema": zod.union([zod.null(), zod.object({
|
|
684
691
|
"fields": zod.array(zod.object({
|
|
685
692
|
"key": zod.string().min(1),
|
|
686
693
|
"label": zod.string(),
|
|
@@ -688,18 +695,18 @@ var getCatalogueConnectionTypesResponseItem = zod.object({
|
|
|
688
695
|
"valueKind": zod.enum(["String", "Scalar", "Collection"]),
|
|
689
696
|
"editorUiAlias": zod.string().nullish(),
|
|
690
697
|
"editorConfig": zod.string().nullish(),
|
|
691
|
-
"defaultValue": zod.unknown().
|
|
698
|
+
"defaultValue": zod.unknown().optional(),
|
|
692
699
|
"sortOrder": zod.int(),
|
|
693
700
|
"isSensitive": zod.boolean(),
|
|
694
701
|
"isRequired": zod.boolean(),
|
|
695
702
|
"group": zod.string().nullish(),
|
|
696
703
|
"supportsBindings": zod.boolean(),
|
|
697
|
-
"visibleWhen": zod.object({
|
|
704
|
+
"visibleWhen": zod.union([zod.null(), zod.object({
|
|
698
705
|
"key": zod.string(),
|
|
699
706
|
"values": zod.array(zod.string())
|
|
700
|
-
}).
|
|
707
|
+
})]).optional()
|
|
701
708
|
}))
|
|
702
|
-
}).
|
|
709
|
+
})]).optional()
|
|
703
710
|
});
|
|
704
711
|
var getCatalogueConnectionTypesResponse = zod.array(getCatalogueConnectionTypesResponseItem);
|
|
705
712
|
var getCatalogueControlFlowsResponseItem = zod.object({
|
|
@@ -709,7 +716,7 @@ var getCatalogueControlFlowsResponseItem = zod.object({
|
|
|
709
716
|
"group": zod.string().nullish(),
|
|
710
717
|
"icon": zod.string().nullish(),
|
|
711
718
|
"connectionTypeAlias": zod.string().nullish(),
|
|
712
|
-
"settingsSchema": zod.object({
|
|
719
|
+
"settingsSchema": zod.union([zod.null(), zod.object({
|
|
713
720
|
"fields": zod.array(zod.object({
|
|
714
721
|
"key": zod.string().min(1),
|
|
715
722
|
"label": zod.string(),
|
|
@@ -717,19 +724,19 @@ var getCatalogueControlFlowsResponseItem = zod.object({
|
|
|
717
724
|
"valueKind": zod.enum(["String", "Scalar", "Collection"]),
|
|
718
725
|
"editorUiAlias": zod.string().nullish(),
|
|
719
726
|
"editorConfig": zod.string().nullish(),
|
|
720
|
-
"defaultValue": zod.unknown().
|
|
727
|
+
"defaultValue": zod.unknown().optional(),
|
|
721
728
|
"sortOrder": zod.int(),
|
|
722
729
|
"isSensitive": zod.boolean(),
|
|
723
730
|
"isRequired": zod.boolean(),
|
|
724
731
|
"group": zod.string().nullish(),
|
|
725
732
|
"supportsBindings": zod.boolean(),
|
|
726
|
-
"visibleWhen": zod.object({
|
|
733
|
+
"visibleWhen": zod.union([zod.null(), zod.object({
|
|
727
734
|
"key": zod.string(),
|
|
728
735
|
"values": zod.array(zod.string())
|
|
729
|
-
}).
|
|
736
|
+
})]).optional()
|
|
730
737
|
}))
|
|
731
|
-
}).
|
|
732
|
-
"outputSchema": zod.
|
|
738
|
+
})]).optional(),
|
|
739
|
+
"outputSchema": zod.looseObject({}).nullish(),
|
|
733
740
|
"hasDynamicOutputSchema": zod.boolean(),
|
|
734
741
|
"outcomes": zod.array(zod.object({
|
|
735
742
|
"key": zod.string().min(1),
|
|
@@ -746,7 +753,7 @@ var getCatalogueNotificationChannelsResponseItem = zod.object({
|
|
|
746
753
|
"name": zod.string().min(1),
|
|
747
754
|
"description": zod.string().nullish(),
|
|
748
755
|
"icon": zod.string().nullish(),
|
|
749
|
-
"settingsSchema": zod.object({
|
|
756
|
+
"settingsSchema": zod.union([zod.null(), zod.object({
|
|
750
757
|
"fields": zod.array(zod.object({
|
|
751
758
|
"key": zod.string().min(1),
|
|
752
759
|
"label": zod.string(),
|
|
@@ -754,18 +761,18 @@ var getCatalogueNotificationChannelsResponseItem = zod.object({
|
|
|
754
761
|
"valueKind": zod.enum(["String", "Scalar", "Collection"]),
|
|
755
762
|
"editorUiAlias": zod.string().nullish(),
|
|
756
763
|
"editorConfig": zod.string().nullish(),
|
|
757
|
-
"defaultValue": zod.unknown().
|
|
764
|
+
"defaultValue": zod.unknown().optional(),
|
|
758
765
|
"sortOrder": zod.int(),
|
|
759
766
|
"isSensitive": zod.boolean(),
|
|
760
767
|
"isRequired": zod.boolean(),
|
|
761
768
|
"group": zod.string().nullish(),
|
|
762
769
|
"supportsBindings": zod.boolean(),
|
|
763
|
-
"visibleWhen": zod.object({
|
|
770
|
+
"visibleWhen": zod.union([zod.null(), zod.object({
|
|
764
771
|
"key": zod.string(),
|
|
765
772
|
"values": zod.array(zod.string())
|
|
766
|
-
}).
|
|
773
|
+
})]).optional()
|
|
767
774
|
}))
|
|
768
|
-
}).
|
|
775
|
+
})]).optional()
|
|
769
776
|
});
|
|
770
777
|
var getCatalogueNotificationChannelsResponse = zod.array(getCatalogueNotificationChannelsResponseItem);
|
|
771
778
|
var getCatalogueStepTypesQueryParams = zod.object({
|
|
@@ -778,7 +785,7 @@ var getCatalogueStepTypesResponseItem = zod.object({
|
|
|
778
785
|
"group": zod.string().nullish(),
|
|
779
786
|
"icon": zod.string().nullish(),
|
|
780
787
|
"connectionTypeAlias": zod.string().nullish(),
|
|
781
|
-
"settingsSchema": zod.object({
|
|
788
|
+
"settingsSchema": zod.union([zod.null(), zod.object({
|
|
782
789
|
"fields": zod.array(zod.object({
|
|
783
790
|
"key": zod.string().min(1),
|
|
784
791
|
"label": zod.string(),
|
|
@@ -786,19 +793,19 @@ var getCatalogueStepTypesResponseItem = zod.object({
|
|
|
786
793
|
"valueKind": zod.enum(["String", "Scalar", "Collection"]),
|
|
787
794
|
"editorUiAlias": zod.string().nullish(),
|
|
788
795
|
"editorConfig": zod.string().nullish(),
|
|
789
|
-
"defaultValue": zod.unknown().
|
|
796
|
+
"defaultValue": zod.unknown().optional(),
|
|
790
797
|
"sortOrder": zod.int(),
|
|
791
798
|
"isSensitive": zod.boolean(),
|
|
792
799
|
"isRequired": zod.boolean(),
|
|
793
800
|
"group": zod.string().nullish(),
|
|
794
801
|
"supportsBindings": zod.boolean(),
|
|
795
|
-
"visibleWhen": zod.object({
|
|
802
|
+
"visibleWhen": zod.union([zod.null(), zod.object({
|
|
796
803
|
"key": zod.string(),
|
|
797
804
|
"values": zod.array(zod.string())
|
|
798
|
-
}).
|
|
805
|
+
})]).optional()
|
|
799
806
|
}))
|
|
800
|
-
}).
|
|
801
|
-
"outputSchema": zod.
|
|
807
|
+
})]).optional(),
|
|
808
|
+
"outputSchema": zod.looseObject({}).nullish(),
|
|
802
809
|
"hasDynamicOutputSchema": zod.boolean(),
|
|
803
810
|
"outcomes": zod.array(zod.object({
|
|
804
811
|
"key": zod.string().min(1),
|
|
@@ -814,7 +821,7 @@ zod.object({
|
|
|
814
821
|
"alias": zod.string()
|
|
815
822
|
});
|
|
816
823
|
zod.object({
|
|
817
|
-
"settings": zod.
|
|
824
|
+
"settings": zod.looseObject({})
|
|
818
825
|
});
|
|
819
826
|
var postCatalogueStepTypesByAliasOutcomesResponseItem = zod.object({
|
|
820
827
|
"key": zod.string().min(1),
|
|
@@ -827,20 +834,21 @@ zod.object({
|
|
|
827
834
|
"alias": zod.string()
|
|
828
835
|
});
|
|
829
836
|
zod.object({
|
|
830
|
-
"settings": zod.
|
|
837
|
+
"settings": zod.looseObject({})
|
|
831
838
|
});
|
|
832
|
-
|
|
839
|
+
var postCatalogueStepTypesByAliasOutputSchemaResponse = zod.looseObject({});
|
|
833
840
|
var getCatalogueTriggersQueryParams = zod.object({
|
|
834
841
|
"workspaceId": zod.guid().optional()
|
|
835
842
|
});
|
|
836
843
|
var getCatalogueTriggersResponseItem = zod.object({
|
|
844
|
+
"supportsManualRun": zod.boolean(),
|
|
837
845
|
"alias": zod.string().min(1),
|
|
838
846
|
"name": zod.string().min(1),
|
|
839
847
|
"description": zod.string().nullish(),
|
|
840
848
|
"group": zod.string().nullish(),
|
|
841
849
|
"icon": zod.string().nullish(),
|
|
842
850
|
"connectionTypeAlias": zod.string().nullish(),
|
|
843
|
-
"settingsSchema": zod.object({
|
|
851
|
+
"settingsSchema": zod.union([zod.null(), zod.object({
|
|
844
852
|
"fields": zod.array(zod.object({
|
|
845
853
|
"key": zod.string().min(1),
|
|
846
854
|
"label": zod.string(),
|
|
@@ -848,19 +856,19 @@ var getCatalogueTriggersResponseItem = zod.object({
|
|
|
848
856
|
"valueKind": zod.enum(["String", "Scalar", "Collection"]),
|
|
849
857
|
"editorUiAlias": zod.string().nullish(),
|
|
850
858
|
"editorConfig": zod.string().nullish(),
|
|
851
|
-
"defaultValue": zod.unknown().
|
|
859
|
+
"defaultValue": zod.unknown().optional(),
|
|
852
860
|
"sortOrder": zod.int(),
|
|
853
861
|
"isSensitive": zod.boolean(),
|
|
854
862
|
"isRequired": zod.boolean(),
|
|
855
863
|
"group": zod.string().nullish(),
|
|
856
864
|
"supportsBindings": zod.boolean(),
|
|
857
|
-
"visibleWhen": zod.object({
|
|
865
|
+
"visibleWhen": zod.union([zod.null(), zod.object({
|
|
858
866
|
"key": zod.string(),
|
|
859
867
|
"values": zod.array(zod.string())
|
|
860
|
-
}).
|
|
868
|
+
})]).optional()
|
|
861
869
|
}))
|
|
862
|
-
}).
|
|
863
|
-
"outputSchema": zod.
|
|
870
|
+
})]).optional(),
|
|
871
|
+
"outputSchema": zod.looseObject({}).nullish(),
|
|
864
872
|
"hasDynamicOutputSchema": zod.boolean(),
|
|
865
873
|
"outcomes": zod.array(zod.object({
|
|
866
874
|
"key": zod.string().min(1),
|
|
@@ -869,15 +877,14 @@ var getCatalogueTriggersResponseItem = zod.object({
|
|
|
869
877
|
"description": zod.string().nullish()
|
|
870
878
|
})),
|
|
871
879
|
"hasDynamicOutcomes": zod.boolean(),
|
|
872
|
-
"type": zod.string().min(1)
|
|
873
|
-
"supportsManualRun": zod.boolean()
|
|
880
|
+
"type": zod.string().min(1)
|
|
874
881
|
});
|
|
875
882
|
zod.array(getCatalogueTriggersResponseItem);
|
|
876
883
|
var getCatalogueWebhookAuthenticatorsResponseItem = zod.object({
|
|
877
884
|
"alias": zod.string().min(1),
|
|
878
885
|
"name": zod.string().min(1),
|
|
879
886
|
"description": zod.string().nullish(),
|
|
880
|
-
"settingsSchema": zod.object({
|
|
887
|
+
"settingsSchema": zod.union([zod.null(), zod.object({
|
|
881
888
|
"fields": zod.array(zod.object({
|
|
882
889
|
"key": zod.string().min(1),
|
|
883
890
|
"label": zod.string(),
|
|
@@ -885,27 +892,20 @@ var getCatalogueWebhookAuthenticatorsResponseItem = zod.object({
|
|
|
885
892
|
"valueKind": zod.enum(["String", "Scalar", "Collection"]),
|
|
886
893
|
"editorUiAlias": zod.string().nullish(),
|
|
887
894
|
"editorConfig": zod.string().nullish(),
|
|
888
|
-
"defaultValue": zod.unknown().
|
|
895
|
+
"defaultValue": zod.unknown().optional(),
|
|
889
896
|
"sortOrder": zod.int(),
|
|
890
897
|
"isSensitive": zod.boolean(),
|
|
891
898
|
"isRequired": zod.boolean(),
|
|
892
899
|
"group": zod.string().nullish(),
|
|
893
900
|
"supportsBindings": zod.boolean(),
|
|
894
|
-
"visibleWhen": zod.object({
|
|
901
|
+
"visibleWhen": zod.union([zod.null(), zod.object({
|
|
895
902
|
"key": zod.string(),
|
|
896
903
|
"values": zod.array(zod.string())
|
|
897
|
-
}).
|
|
904
|
+
})]).optional()
|
|
898
905
|
}))
|
|
899
|
-
}).
|
|
906
|
+
})]).optional()
|
|
900
907
|
});
|
|
901
908
|
var getCatalogueWebhookAuthenticatorsResponse = zod.array(getCatalogueWebhookAuthenticatorsResponseItem);
|
|
902
|
-
var postConnectionsBody = zod.object({
|
|
903
|
-
"alias": zod.string().min(1),
|
|
904
|
-
"name": zod.string().min(1),
|
|
905
|
-
"type": zod.string().min(1),
|
|
906
|
-
"settings": zod.record(zod.string(), zod.unknown().nullable())
|
|
907
|
-
});
|
|
908
|
-
zod.void();
|
|
909
909
|
var getConnectionsQueryTakeDefault = 100;
|
|
910
910
|
var getConnectionsQueryParams = zod.object({
|
|
911
911
|
"filter": zod.string().optional(),
|
|
@@ -924,10 +924,13 @@ var getConnectionsResponse = zod.object({
|
|
|
924
924
|
"dateModified": zod.iso.datetime({ "local": true, "offset": true })
|
|
925
925
|
}))
|
|
926
926
|
});
|
|
927
|
-
var
|
|
928
|
-
"
|
|
927
|
+
var postConnectionsBody = zod.object({
|
|
928
|
+
"alias": zod.string().min(1),
|
|
929
|
+
"name": zod.string().min(1),
|
|
930
|
+
"type": zod.string().min(1),
|
|
931
|
+
"settings": zod.looseObject({})
|
|
929
932
|
});
|
|
930
|
-
zod.
|
|
933
|
+
zod.void();
|
|
931
934
|
var getConnectionsByIdParams = zod.object({
|
|
932
935
|
"id": zod.guid()
|
|
933
936
|
});
|
|
@@ -936,21 +939,25 @@ var getConnectionsByIdResponse = zod.object({
|
|
|
936
939
|
"alias": zod.string().min(1),
|
|
937
940
|
"name": zod.string().min(1),
|
|
938
941
|
"type": zod.string().min(1),
|
|
939
|
-
"settings": zod.
|
|
942
|
+
"settings": zod.looseObject({}),
|
|
940
943
|
"version": zod.int(),
|
|
941
944
|
"dateCreated": zod.iso.datetime({ "local": true, "offset": true }),
|
|
942
945
|
"dateModified": zod.iso.datetime({ "local": true, "offset": true })
|
|
943
946
|
});
|
|
947
|
+
var deleteConnectionsByIdParams = zod.object({
|
|
948
|
+
"id": zod.guid()
|
|
949
|
+
});
|
|
950
|
+
zod.unknown();
|
|
944
951
|
var putConnectionsByIdParams = zod.object({
|
|
945
952
|
"id": zod.guid()
|
|
946
953
|
});
|
|
947
|
-
var
|
|
954
|
+
var putConnectionsByIdBodyVersionMax = 2147483647;
|
|
948
955
|
var putConnectionsByIdBody = zod.object({
|
|
949
956
|
"alias": zod.string().min(1),
|
|
950
957
|
"name": zod.string().min(1),
|
|
951
958
|
"type": zod.string().min(1),
|
|
952
|
-
"settings": zod.
|
|
953
|
-
"version": zod.int().min(1).max(
|
|
959
|
+
"settings": zod.looseObject({}),
|
|
960
|
+
"version": zod.int().min(1).max(putConnectionsByIdBodyVersionMax)
|
|
954
961
|
});
|
|
955
962
|
zod.unknown();
|
|
956
963
|
var postConnectionsByIdTestParams = zod.object({
|
|
@@ -968,15 +975,7 @@ var getMetricsQueryParams = zod.object({
|
|
|
968
975
|
});
|
|
969
976
|
var getMetricsResponse = zod.object({
|
|
970
977
|
"totalRuns": zod.int(),
|
|
971
|
-
"byStatus": zod.
|
|
972
|
-
"Pending": zod.int(),
|
|
973
|
-
"Running": zod.int(),
|
|
974
|
-
"Completed": zod.int(),
|
|
975
|
-
"Failed": zod.int(),
|
|
976
|
-
"Suspended": zod.int(),
|
|
977
|
-
"Cancelled": zod.int(),
|
|
978
|
-
"Rejected": zod.int()
|
|
979
|
-
}),
|
|
978
|
+
"byStatus": zod.record(zod.string(), zod.int()),
|
|
980
979
|
"successRate": zod.number()
|
|
981
980
|
});
|
|
982
981
|
var getMetricsByAutomationQueryTakeDefault = 10;
|
|
@@ -1141,14 +1140,6 @@ var getVersionHistoryByEntityTypeByEntityIdByFromEntityVersionCompareByToEntityV
|
|
|
1141
1140
|
});
|
|
1142
1141
|
var getVersionHistorySupportedTypesResponseItem = zod.string();
|
|
1143
1142
|
zod.array(getVersionHistorySupportedTypesResponseItem);
|
|
1144
|
-
zod.object({
|
|
1145
|
-
"alias": zod.string().min(1),
|
|
1146
|
-
"name": zod.string().min(1),
|
|
1147
|
-
"serviceAccountKey": zod.guid(),
|
|
1148
|
-
"userGroups": zod.array(zod.guid()),
|
|
1149
|
-
"allowedConnections": zod.array(zod.guid())
|
|
1150
|
-
});
|
|
1151
|
-
zod.void();
|
|
1152
1143
|
var getWorkspacesQueryTakeDefault = 100;
|
|
1153
1144
|
var getWorkspacesQueryParams = zod.object({
|
|
1154
1145
|
"filter": zod.string().optional(),
|
|
@@ -1168,9 +1159,13 @@ var getWorkspacesResponse = zod.object({
|
|
|
1168
1159
|
}))
|
|
1169
1160
|
});
|
|
1170
1161
|
zod.object({
|
|
1171
|
-
"
|
|
1162
|
+
"alias": zod.string().min(1),
|
|
1163
|
+
"name": zod.string().min(1),
|
|
1164
|
+
"serviceAccountKey": zod.guid(),
|
|
1165
|
+
"userGroups": zod.array(zod.guid()),
|
|
1166
|
+
"allowedConnections": zod.array(zod.guid())
|
|
1172
1167
|
});
|
|
1173
|
-
zod.
|
|
1168
|
+
zod.void();
|
|
1174
1169
|
zod.object({
|
|
1175
1170
|
"id": zod.guid()
|
|
1176
1171
|
});
|
|
@@ -1188,27 +1183,23 @@ var getWorkspacesByIdResponse = zod.object({
|
|
|
1188
1183
|
zod.object({
|
|
1189
1184
|
"id": zod.guid()
|
|
1190
1185
|
});
|
|
1191
|
-
|
|
1186
|
+
zod.unknown();
|
|
1187
|
+
zod.object({
|
|
1188
|
+
"id": zod.guid()
|
|
1189
|
+
});
|
|
1190
|
+
var putWorkspacesByIdBodyVersionMax = 2147483647;
|
|
1192
1191
|
var putWorkspacesByIdBody = zod.object({
|
|
1193
1192
|
"alias": zod.string().min(1),
|
|
1194
1193
|
"name": zod.string().min(1),
|
|
1195
1194
|
"serviceAccountKey": zod.guid(),
|
|
1196
1195
|
"userGroups": zod.array(zod.guid()),
|
|
1197
1196
|
"allowedConnections": zod.array(zod.guid()),
|
|
1198
|
-
"version": zod.int().min(1).max(
|
|
1197
|
+
"version": zod.int().min(1).max(putWorkspacesByIdBodyVersionMax)
|
|
1199
1198
|
});
|
|
1200
1199
|
zod.unknown();
|
|
1201
1200
|
zod.object({
|
|
1202
1201
|
"id": zod.guid()
|
|
1203
1202
|
});
|
|
1204
|
-
zod.object({
|
|
1205
|
-
"name": zod.string().min(1),
|
|
1206
|
-
"parentId": zod.guid().nullish()
|
|
1207
|
-
});
|
|
1208
|
-
zod.void();
|
|
1209
|
-
zod.object({
|
|
1210
|
-
"id": zod.guid()
|
|
1211
|
-
});
|
|
1212
1203
|
zod.object({
|
|
1213
1204
|
"parentGroupId": zod.guid().optional()
|
|
1214
1205
|
});
|
|
@@ -1221,10 +1212,13 @@ var getWorkspacesByIdGroupsResponseItem = zod.object({
|
|
|
1221
1212
|
});
|
|
1222
1213
|
var getWorkspacesByIdGroupsResponse = zod.array(getWorkspacesByIdGroupsResponseItem);
|
|
1223
1214
|
zod.object({
|
|
1224
|
-
"id": zod.guid()
|
|
1225
|
-
"groupId": zod.guid()
|
|
1215
|
+
"id": zod.guid()
|
|
1226
1216
|
});
|
|
1227
|
-
zod.
|
|
1217
|
+
zod.object({
|
|
1218
|
+
"name": zod.string().min(1),
|
|
1219
|
+
"parentId": zod.guid().nullish()
|
|
1220
|
+
});
|
|
1221
|
+
zod.void();
|
|
1228
1222
|
zod.object({
|
|
1229
1223
|
"id": zod.guid(),
|
|
1230
1224
|
"groupId": zod.guid()
|
|
@@ -1240,6 +1234,11 @@ zod.object({
|
|
|
1240
1234
|
"id": zod.guid(),
|
|
1241
1235
|
"groupId": zod.guid()
|
|
1242
1236
|
});
|
|
1237
|
+
zod.unknown();
|
|
1238
|
+
zod.object({
|
|
1239
|
+
"id": zod.guid(),
|
|
1240
|
+
"groupId": zod.guid()
|
|
1241
|
+
});
|
|
1243
1242
|
var putWorkspacesByIdGroupsByGroupIdBody = zod.object({
|
|
1244
1243
|
"name": zod.string().min(1),
|
|
1245
1244
|
"parentId": zod.guid().nullish()
|
|
@@ -2819,7 +2818,7 @@ var inputSchema28 = z.object({
|
|
|
2819
2818
|
`The step's configured settings, matching the shape described by that step type's settingsSchema, e.g. Form Submitted takes \`formIds\` (an array of form ids). ${SETTINGS_KEYS_HELP} Used to resolve a dynamic output schema when hasDynamicOutputSchema is true. An id that doesn't exist is not reported - it just adds nothing (a form that doesn't exist adds no fields), so check ids before relying on the result.`
|
|
2820
2819
|
)
|
|
2821
2820
|
});
|
|
2822
|
-
var outputSchema19 =
|
|
2821
|
+
var outputSchema19 = postCatalogueStepTypesByAliasOutputSchemaResponse;
|
|
2823
2822
|
var resolveStepTypeOutputSchemaTool = {
|
|
2824
2823
|
name: "resolve-step-type-output-schema",
|
|
2825
2824
|
description: "Computes the JSON schema of the data a configured step would output at runtime, for a given step type alias and settings. Use this when a catalogue entry has hasDynamicOutputSchema set to true, meaning its static outputSchema is not enough \u2014 the real output shape depends on how the step is configured (e.g. the columns returned by a database query action depend on the query itself). The resolved schema tells you what fields will be available for later steps in the automation to reference. If the step has no output for these settings, the result is { hasOutput: false, message } instead of a schema: control-flow steps like If and Parallel never output data, and a dynamic step returns this until it is configured enough to resolve (e.g. Run AI Agent before an agent is chosen). Read-only: no data is created or changed.",
|
|
@@ -3102,9 +3101,6 @@ var collection5 = {
|
|
|
3102
3101
|
]
|
|
3103
3102
|
};
|
|
3104
3103
|
var connections_default = collection5;
|
|
3105
|
-
var outputSchema21 = getMetricsResponse.extend({
|
|
3106
|
-
byStatus: z.record(z.string(), z.int())
|
|
3107
|
-
});
|
|
3108
3104
|
var inputSchema35 = {
|
|
3109
3105
|
...getMetricsQueryParams.shape,
|
|
3110
3106
|
workspaceId: getMetricsQueryParams.shape.workspaceId.describe(
|
|
@@ -3121,7 +3117,7 @@ var getMetricsTool = {
|
|
|
3121
3117
|
name: "get-metrics",
|
|
3122
3118
|
description: "Gets overall automation run metrics: totalRuns, a byStatus breakdown (e.g. how many runs are Completed, Failed, Running), and successRate (successful runs / total runs). Optionally scope to a single workspace with workspaceId, and/or restrict to runs started within [from, to] (ISO 8601 date-times). If from/to are omitted, the metrics cover all recorded runs with no time restriction. Use get-metrics-by-automation instead when you need the breakdown per individual automation rather than one aggregate total.",
|
|
3123
3119
|
inputSchema: inputSchema35,
|
|
3124
|
-
outputSchema:
|
|
3120
|
+
outputSchema: getMetricsResponse,
|
|
3125
3121
|
slices: ["read"],
|
|
3126
3122
|
annotations: {
|
|
3127
3123
|
readOnlyHint: true
|
|
@@ -3136,7 +3132,7 @@ var getMetricsTool = {
|
|
|
3136
3132
|
}
|
|
3137
3133
|
};
|
|
3138
3134
|
var get_metrics_default = withStandardDecorators(getMetricsTool);
|
|
3139
|
-
var
|
|
3135
|
+
var outputSchema21 = z.object({
|
|
3140
3136
|
items: z.array(getMetricsByAutomationResponseItem)
|
|
3141
3137
|
});
|
|
3142
3138
|
var inputSchema36 = {
|
|
@@ -3158,7 +3154,7 @@ var getMetricsByAutomationTool = {
|
|
|
3158
3154
|
name: "get-metrics-by-automation",
|
|
3159
3155
|
description: "Gets automation run metrics broken down per individual automation. Each item has automationId, automationName, totalRuns, successCount, and failCount, so you can compare automations or spot which ones fail most. Optionally scope to a single workspace with workspaceId, and/or restrict to runs started within [from, to] (ISO 8601 date-times) \u2014 if omitted, all recorded runs are considered. `take` limits how many automations are returned (defaults to 10) \u2014 the ordering of results is determined by the API and not otherwise documented here, so raise `take` if you need to confirm whether an automation you're looking for is included; there is no `skip`/total-count for this endpoint, so a full response cannot be distinguished from a truncated one. Use get-metrics instead when you only need one overall total rather than a per-automation list.",
|
|
3160
3156
|
inputSchema: inputSchema36,
|
|
3161
|
-
outputSchema:
|
|
3157
|
+
outputSchema: outputSchema21,
|
|
3162
3158
|
slices: ["list"],
|
|
3163
3159
|
annotations: {
|
|
3164
3160
|
readOnlyHint: true
|
|
@@ -3318,7 +3314,7 @@ var collection7 = {
|
|
|
3318
3314
|
]
|
|
3319
3315
|
};
|
|
3320
3316
|
var runs_default = collection7;
|
|
3321
|
-
var
|
|
3317
|
+
var outputSchema22 = z.object({
|
|
3322
3318
|
items: z.array(getVersionHistorySupportedTypesResponseItem)
|
|
3323
3319
|
});
|
|
3324
3320
|
var getVersionHistorySupportedTypesTool = {
|
|
@@ -3328,7 +3324,7 @@ var getVersionHistorySupportedTypesTool = {
|
|
|
3328
3324
|
annotations: {
|
|
3329
3325
|
readOnlyHint: true
|
|
3330
3326
|
},
|
|
3331
|
-
outputSchema:
|
|
3327
|
+
outputSchema: outputSchema22,
|
|
3332
3328
|
handler: async () => {
|
|
3333
3329
|
return executeGetItemsApiCall(
|
|
3334
3330
|
(client) => client.getVersionHistorySupportedTypes(CAPTURE_RAW_HTTP_RESPONSE)
|
|
@@ -3496,12 +3492,12 @@ var inputSchema46 = {
|
|
|
3496
3492
|
"Optional text matched against workspace name and alias."
|
|
3497
3493
|
)
|
|
3498
3494
|
};
|
|
3499
|
-
var
|
|
3495
|
+
var outputSchema23 = getWorkspacesResponse;
|
|
3500
3496
|
var listWorkspacesTool = {
|
|
3501
3497
|
name: "list-workspaces",
|
|
3502
3498
|
description: "Lists workspaces, optionally filtered by name/alias, with cursor paging (pass nextCursor from the previous response). Each result includes the workspace id, alias, name, and version needed to fetch, update, or list groups within it. Use list-workspace-groups afterwards to see how a specific workspace organizes its automations into groups.",
|
|
3503
3499
|
inputSchema: inputSchema46,
|
|
3504
|
-
outputSchema:
|
|
3500
|
+
outputSchema: outputSchema23,
|
|
3505
3501
|
slices: ["list"],
|
|
3506
3502
|
annotations: {
|
|
3507
3503
|
readOnlyHint: true
|
|
@@ -3516,12 +3512,12 @@ var list_workspaces_default = withStandardDecorators(listWorkspacesTool);
|
|
|
3516
3512
|
var inputSchema47 = {
|
|
3517
3513
|
workspaceId: z.string().describe("The id of the workspace to fetch.")
|
|
3518
3514
|
};
|
|
3519
|
-
var
|
|
3515
|
+
var outputSchema24 = getWorkspacesByIdResponse;
|
|
3520
3516
|
var getWorkspaceTool = {
|
|
3521
3517
|
name: "get-workspace",
|
|
3522
3518
|
description: "Gets a single workspace by id. Returns its alias, name, service account key, allowed user groups and connections, and the optimistic-concurrency `version` needed for update-workspace. Use list-workspaces to find a workspace id first.",
|
|
3523
3519
|
inputSchema: inputSchema47,
|
|
3524
|
-
outputSchema:
|
|
3520
|
+
outputSchema: outputSchema24,
|
|
3525
3521
|
slices: ["read"],
|
|
3526
3522
|
annotations: {
|
|
3527
3523
|
readOnlyHint: true
|
|
@@ -3539,12 +3535,12 @@ var inputSchema48 = {
|
|
|
3539
3535
|
"Optional parent group id. When set, returns only that group's direct children. When omitted, returns only the workspace's top-level groups (those with no parent) - not every group in the workspace. To see all groups, walk the tree: list top-level groups, then call this again with each group's id to list its children, recursively."
|
|
3540
3536
|
)
|
|
3541
3537
|
};
|
|
3542
|
-
var
|
|
3538
|
+
var outputSchema25 = z.object({ items: getWorkspacesByIdGroupsResponse });
|
|
3543
3539
|
var listWorkspaceGroupsTool = {
|
|
3544
3540
|
name: "list-workspace-groups",
|
|
3545
3541
|
description: "Lists one level of the groups a workspace uses to organize its automations: either the top-level groups (parentGroupId omitted) or the direct children of one group (parentGroupId set). This does not recursively return nested groups in a single call - call it again with a child group's id to go one level deeper. Each item includes the group id, name, parentId (for nesting) and workspaceId. Use get-workspace-group for a single group, or automations tools to see the automations filed under a group.",
|
|
3546
3542
|
inputSchema: inputSchema48,
|
|
3547
|
-
outputSchema:
|
|
3543
|
+
outputSchema: outputSchema25,
|
|
3548
3544
|
slices: ["list"],
|
|
3549
3545
|
annotations: {
|
|
3550
3546
|
readOnlyHint: true
|
|
@@ -3564,12 +3560,12 @@ var inputSchema49 = {
|
|
|
3564
3560
|
workspaceId: z.string().describe("The id of the workspace the group belongs to."),
|
|
3565
3561
|
groupId: z.string().describe("The id of the group to fetch.")
|
|
3566
3562
|
};
|
|
3567
|
-
var
|
|
3563
|
+
var outputSchema26 = getWorkspacesByIdGroupsByGroupIdResponse;
|
|
3568
3564
|
var getWorkspaceGroupTool = {
|
|
3569
3565
|
name: "get-workspace-group",
|
|
3570
3566
|
description: "Gets a single group within a workspace by id, including its name and optional parentId for nesting. Use list-workspace-groups to find a group id first, and automations tools to see the automations filed under it.",
|
|
3571
3567
|
inputSchema: inputSchema49,
|
|
3572
|
-
outputSchema:
|
|
3568
|
+
outputSchema: outputSchema26,
|
|
3573
3569
|
slices: ["read"],
|
|
3574
3570
|
annotations: {
|
|
3575
3571
|
readOnlyHint: true
|
|
@@ -3592,7 +3588,7 @@ var inputSchema50 = {
|
|
|
3592
3588
|
userGroups: z.array(z.string()).optional().default([]).describe("Ids of the Umbraco user groups allowed to manage this workspace."),
|
|
3593
3589
|
allowedConnections: z.array(z.string()).optional().default([]).describe("Ids of the connections that automations in this workspace are allowed to use.")
|
|
3594
3590
|
};
|
|
3595
|
-
var
|
|
3591
|
+
var outputSchema27 = z.object({
|
|
3596
3592
|
success: z.boolean(),
|
|
3597
3593
|
id: z.string().optional(),
|
|
3598
3594
|
location: z.string().optional()
|
|
@@ -3601,7 +3597,7 @@ var createWorkspaceTool = {
|
|
|
3601
3597
|
name: "create-workspace",
|
|
3602
3598
|
description: "Creates a new workspace to hold automations. A workspace is the top-level container that scopes automations, the groups (folders) used to organize them, the connections its automations may use, and which Umbraco user groups can manage it. Follow up with create-workspace-group to add folders, or automations tools to add automations to it.",
|
|
3603
3599
|
inputSchema: inputSchema50,
|
|
3604
|
-
outputSchema:
|
|
3600
|
+
outputSchema: outputSchema27,
|
|
3605
3601
|
slices: ["create"],
|
|
3606
3602
|
annotations: {
|
|
3607
3603
|
destructiveHint: false,
|
|
@@ -3637,7 +3633,7 @@ var inputSchema51 = {
|
|
|
3637
3633
|
name: z.string().min(1).describe("Display name for the group."),
|
|
3638
3634
|
parentId: z.string().nullish().describe("Optional id of a parent group, to nest this group underneath it. Omit for a top-level group.")
|
|
3639
3635
|
};
|
|
3640
|
-
var
|
|
3636
|
+
var outputSchema28 = z.object({
|
|
3641
3637
|
success: z.boolean(),
|
|
3642
3638
|
id: z.string().optional(),
|
|
3643
3639
|
location: z.string().optional()
|
|
@@ -3646,7 +3642,7 @@ var createWorkspaceGroupTool = {
|
|
|
3646
3642
|
name: "create-workspace-group",
|
|
3647
3643
|
description: "Creates a new group (folder) within a workspace to organize its automations. Pass parentId to nest it under an existing group, or omit it to create a top-level group. Use list-workspace-groups to find existing groups, and automations tools to file automations under the new group.",
|
|
3648
3644
|
inputSchema: inputSchema51,
|
|
3649
|
-
outputSchema:
|
|
3645
|
+
outputSchema: outputSchema28,
|
|
3650
3646
|
slices: ["create"],
|
|
3651
3647
|
annotations: {
|
|
3652
3648
|
destructiveHint: false,
|
|
@@ -3878,8 +3874,8 @@ function loosen(schema) {
|
|
|
3878
3874
|
}
|
|
3879
3875
|
function withLenientOutputSchema(tool) {
|
|
3880
3876
|
if (!tool.outputSchema) return tool;
|
|
3881
|
-
const
|
|
3882
|
-
return { ...tool, outputSchema:
|
|
3877
|
+
const outputSchema29 = tool.outputSchema instanceof z.ZodType ? loosen(tool.outputSchema) : loosen(z.object(tool.outputSchema));
|
|
3878
|
+
return { ...tool, outputSchema: outputSchema29 };
|
|
3883
3879
|
}
|
|
3884
3880
|
function withLenientOutputSchemas(collection10) {
|
|
3885
3881
|
return {
|
|
@@ -3972,41 +3968,41 @@ var getUmbracoAutomateManagementAPI = () => {
|
|
|
3972
3968
|
options
|
|
3973
3969
|
);
|
|
3974
3970
|
};
|
|
3975
|
-
const
|
|
3971
|
+
const getAutomations = (params, options) => {
|
|
3976
3972
|
return customInstance(
|
|
3977
3973
|
{
|
|
3978
3974
|
url: `/umbraco/automate/management/api/v1/automations`,
|
|
3979
|
-
method: "
|
|
3980
|
-
|
|
3981
|
-
data: createAutomationRequestModel
|
|
3975
|
+
method: "GET",
|
|
3976
|
+
params
|
|
3982
3977
|
},
|
|
3983
3978
|
options
|
|
3984
3979
|
);
|
|
3985
3980
|
};
|
|
3986
|
-
const
|
|
3981
|
+
const postAutomations = (createAutomationRequestModel, options) => {
|
|
3987
3982
|
return customInstance(
|
|
3988
3983
|
{
|
|
3989
3984
|
url: `/umbraco/automate/management/api/v1/automations`,
|
|
3990
|
-
method: "
|
|
3991
|
-
|
|
3985
|
+
method: "POST",
|
|
3986
|
+
headers: { "Content-Type": "application/json" },
|
|
3987
|
+
data: createAutomationRequestModel
|
|
3992
3988
|
},
|
|
3993
3989
|
options
|
|
3994
3990
|
);
|
|
3995
3991
|
};
|
|
3996
|
-
const
|
|
3992
|
+
const getAutomationsById = (id, options) => {
|
|
3997
3993
|
return customInstance(
|
|
3998
3994
|
{
|
|
3999
3995
|
url: `/umbraco/automate/management/api/v1/automations/${id}`,
|
|
4000
|
-
method: "
|
|
3996
|
+
method: "GET"
|
|
4001
3997
|
},
|
|
4002
3998
|
options
|
|
4003
3999
|
);
|
|
4004
4000
|
};
|
|
4005
|
-
const
|
|
4001
|
+
const deleteAutomationsById = (id, options) => {
|
|
4006
4002
|
return customInstance(
|
|
4007
4003
|
{
|
|
4008
4004
|
url: `/umbraco/automate/management/api/v1/automations/${id}`,
|
|
4009
|
-
method: "
|
|
4005
|
+
method: "DELETE"
|
|
4010
4006
|
},
|
|
4011
4007
|
options
|
|
4012
4008
|
);
|
|
@@ -4226,41 +4222,41 @@ var getUmbracoAutomateManagementAPI = () => {
|
|
|
4226
4222
|
options
|
|
4227
4223
|
);
|
|
4228
4224
|
};
|
|
4229
|
-
const
|
|
4225
|
+
const getConnections = (params, options) => {
|
|
4230
4226
|
return customInstance(
|
|
4231
4227
|
{
|
|
4232
4228
|
url: `/umbraco/automate/management/api/v1/connections`,
|
|
4233
|
-
method: "
|
|
4234
|
-
|
|
4235
|
-
data: createConnectionRequestModel
|
|
4229
|
+
method: "GET",
|
|
4230
|
+
params
|
|
4236
4231
|
},
|
|
4237
4232
|
options
|
|
4238
4233
|
);
|
|
4239
4234
|
};
|
|
4240
|
-
const
|
|
4235
|
+
const postConnections = (createConnectionRequestModel, options) => {
|
|
4241
4236
|
return customInstance(
|
|
4242
4237
|
{
|
|
4243
4238
|
url: `/umbraco/automate/management/api/v1/connections`,
|
|
4244
|
-
method: "
|
|
4245
|
-
|
|
4239
|
+
method: "POST",
|
|
4240
|
+
headers: { "Content-Type": "application/json" },
|
|
4241
|
+
data: createConnectionRequestModel
|
|
4246
4242
|
},
|
|
4247
4243
|
options
|
|
4248
4244
|
);
|
|
4249
4245
|
};
|
|
4250
|
-
const
|
|
4246
|
+
const getConnectionsById = (id, options) => {
|
|
4251
4247
|
return customInstance(
|
|
4252
4248
|
{
|
|
4253
4249
|
url: `/umbraco/automate/management/api/v1/connections/${id}`,
|
|
4254
|
-
method: "
|
|
4250
|
+
method: "GET"
|
|
4255
4251
|
},
|
|
4256
4252
|
options
|
|
4257
4253
|
);
|
|
4258
4254
|
};
|
|
4259
|
-
const
|
|
4255
|
+
const deleteConnectionsById = (id, options) => {
|
|
4260
4256
|
return customInstance(
|
|
4261
4257
|
{
|
|
4262
4258
|
url: `/umbraco/automate/management/api/v1/connections/${id}`,
|
|
4263
|
-
method: "
|
|
4259
|
+
method: "DELETE"
|
|
4264
4260
|
},
|
|
4265
4261
|
options
|
|
4266
4262
|
);
|
|
@@ -4424,41 +4420,41 @@ var getUmbracoAutomateManagementAPI = () => {
|
|
|
4424
4420
|
options
|
|
4425
4421
|
);
|
|
4426
4422
|
};
|
|
4427
|
-
const
|
|
4423
|
+
const getWorkspaces = (params, options) => {
|
|
4428
4424
|
return customInstance(
|
|
4429
4425
|
{
|
|
4430
4426
|
url: `/umbraco/automate/management/api/v1/workspaces`,
|
|
4431
|
-
method: "
|
|
4432
|
-
|
|
4433
|
-
data: createWorkspaceRequestModel
|
|
4427
|
+
method: "GET",
|
|
4428
|
+
params
|
|
4434
4429
|
},
|
|
4435
4430
|
options
|
|
4436
4431
|
);
|
|
4437
4432
|
};
|
|
4438
|
-
const
|
|
4433
|
+
const postWorkspaces = (createWorkspaceRequestModel, options) => {
|
|
4439
4434
|
return customInstance(
|
|
4440
4435
|
{
|
|
4441
4436
|
url: `/umbraco/automate/management/api/v1/workspaces`,
|
|
4442
|
-
method: "
|
|
4443
|
-
|
|
4437
|
+
method: "POST",
|
|
4438
|
+
headers: { "Content-Type": "application/json" },
|
|
4439
|
+
data: createWorkspaceRequestModel
|
|
4444
4440
|
},
|
|
4445
4441
|
options
|
|
4446
4442
|
);
|
|
4447
4443
|
};
|
|
4448
|
-
const
|
|
4444
|
+
const getWorkspacesById = (id, options) => {
|
|
4449
4445
|
return customInstance(
|
|
4450
4446
|
{
|
|
4451
4447
|
url: `/umbraco/automate/management/api/v1/workspaces/${id}`,
|
|
4452
|
-
method: "
|
|
4448
|
+
method: "GET"
|
|
4453
4449
|
},
|
|
4454
4450
|
options
|
|
4455
4451
|
);
|
|
4456
4452
|
};
|
|
4457
|
-
const
|
|
4453
|
+
const deleteWorkspacesById = (id, options) => {
|
|
4458
4454
|
return customInstance(
|
|
4459
4455
|
{
|
|
4460
4456
|
url: `/umbraco/automate/management/api/v1/workspaces/${id}`,
|
|
4461
|
-
method: "
|
|
4457
|
+
method: "DELETE"
|
|
4462
4458
|
},
|
|
4463
4459
|
options
|
|
4464
4460
|
);
|
|
@@ -4474,41 +4470,41 @@ var getUmbracoAutomateManagementAPI = () => {
|
|
|
4474
4470
|
options
|
|
4475
4471
|
);
|
|
4476
4472
|
};
|
|
4477
|
-
const
|
|
4473
|
+
const getWorkspacesByIdGroups = (id, params, options) => {
|
|
4478
4474
|
return customInstance(
|
|
4479
4475
|
{
|
|
4480
4476
|
url: `/umbraco/automate/management/api/v1/workspaces/${id}/groups`,
|
|
4481
|
-
method: "
|
|
4482
|
-
|
|
4483
|
-
data: createWorkspaceGroupRequestModel
|
|
4477
|
+
method: "GET",
|
|
4478
|
+
params
|
|
4484
4479
|
},
|
|
4485
4480
|
options
|
|
4486
4481
|
);
|
|
4487
4482
|
};
|
|
4488
|
-
const
|
|
4483
|
+
const postWorkspacesByIdGroups = (id, createWorkspaceGroupRequestModel, options) => {
|
|
4489
4484
|
return customInstance(
|
|
4490
4485
|
{
|
|
4491
4486
|
url: `/umbraco/automate/management/api/v1/workspaces/${id}/groups`,
|
|
4492
|
-
method: "
|
|
4493
|
-
|
|
4487
|
+
method: "POST",
|
|
4488
|
+
headers: { "Content-Type": "application/json" },
|
|
4489
|
+
data: createWorkspaceGroupRequestModel
|
|
4494
4490
|
},
|
|
4495
4491
|
options
|
|
4496
4492
|
);
|
|
4497
4493
|
};
|
|
4498
|
-
const
|
|
4494
|
+
const getWorkspacesByIdGroupsByGroupId = (id, groupId, options) => {
|
|
4499
4495
|
return customInstance(
|
|
4500
4496
|
{
|
|
4501
4497
|
url: `/umbraco/automate/management/api/v1/workspaces/${id}/groups/${groupId}`,
|
|
4502
|
-
method: "
|
|
4498
|
+
method: "GET"
|
|
4503
4499
|
},
|
|
4504
4500
|
options
|
|
4505
4501
|
);
|
|
4506
4502
|
};
|
|
4507
|
-
const
|
|
4503
|
+
const deleteWorkspacesByIdGroupsByGroupId = (id, groupId, options) => {
|
|
4508
4504
|
return customInstance(
|
|
4509
4505
|
{
|
|
4510
4506
|
url: `/umbraco/automate/management/api/v1/workspaces/${id}/groups/${groupId}`,
|
|
4511
|
-
method: "
|
|
4507
|
+
method: "DELETE"
|
|
4512
4508
|
},
|
|
4513
4509
|
options
|
|
4514
4510
|
);
|
|
@@ -4524,7 +4520,7 @@ var getUmbracoAutomateManagementAPI = () => {
|
|
|
4524
4520
|
options
|
|
4525
4521
|
);
|
|
4526
4522
|
};
|
|
4527
|
-
return { postApprovalsByRunIdStepsByStepIdDecision, getApprovalsPending, postAutomations,
|
|
4523
|
+
return { postApprovalsByRunIdStepsByStepIdDecision, getApprovalsPending, getAutomations, postAutomations, getAutomationsById, deleteAutomationsById, putAutomationsById, getAutomationsByIdAncestors, getAutomationsByIdExport, putAutomationsByIdImport, postAutomationsByIdPublish, postAutomationsByIdReEnable, getAutomationsByIdRuns, postAutomationsByIdTrigger, postAutomationsByIdUnpublish, getAutomationsByIdWebhookUrl, getAutomationsGroupsByGroupId, postAutomationsImport, postAutomationsImportValidate, getCatalogueActions, getCatalogueConnectionTypes, getCatalogueControlFlows, getCatalogueNotificationChannels, getCatalogueStepTypes, postCatalogueStepTypesByAliasOutcomes, postCatalogueStepTypesByAliasOutputSchema, getCatalogueTriggers, getCatalogueWebhookAuthenticators, getConnections, postConnections, getConnectionsById, deleteConnectionsById, putConnectionsById, postConnectionsByIdTest, getMetrics, getMetricsByAutomation, getRuns, getRunsById, postRunsByIdReplay, postRunsByIdResume, getRunsByIdStepRunsByStepRunIdData, postRunsByIdSuspend, postRunsByIdTerminate, getRunsByIdTriggerData, getVersionHistoryByEntityTypeByEntityId, getVersionHistoryByEntityTypeByEntityIdByEntityVersion, postVersionHistoryByEntityTypeByEntityIdByEntityVersionRollback, getVersionHistoryByEntityTypeByEntityIdByFromEntityVersionCompareByToEntityVersion, getVersionHistorySupportedTypes, getWorkspaces, postWorkspaces, getWorkspacesById, deleteWorkspacesById, putWorkspacesById, getWorkspacesByIdGroups, postWorkspacesByIdGroups, getWorkspacesByIdGroupsByGroupId, deleteWorkspacesByIdGroupsByGroupId, putWorkspacesByIdGroupsByGroupId };
|
|
4528
4524
|
};
|
|
4529
4525
|
|
|
4530
4526
|
// src/collections.ts
|