@celigo/api-specs 0.2.267 → 0.2.269
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/dist/alert.yml +204 -32
- package/dist/api.yml +403 -31
- package/dist/audit.yml +6 -3
- package/dist/connection.yml +327 -11
- package/dist/enduser.yml +363 -10
- package/dist/flow.yml +38 -1
- package/dist/import.yml +3 -0
- package/dist/integration.yml +85 -11
- package/dist/job.yml +12 -0
- package/dist/mcp-server.yml +295 -6
- package/dist/networkpolicy.yml +1 -1
- package/dist/stack.yml +33 -5
- package/dist/tool.yml +303 -19
- package/dist/topic.yml +3 -2
- package/package.json +1 -1
- package/schemas.json +816 -686
package/dist/alert.yml
CHANGED
|
@@ -66,7 +66,9 @@ paths:
|
|
|
66
66
|
- name: _integrationId
|
|
67
67
|
in: query
|
|
68
68
|
required: false
|
|
69
|
-
description:
|
|
69
|
+
description: |-
|
|
70
|
+
Filter by integration id. Returns the integration's flow-level alerts and its
|
|
71
|
+
integration-level alert. Required for tile-level (shared) users.
|
|
70
72
|
schema:
|
|
71
73
|
type: string
|
|
72
74
|
format: objectId
|
|
@@ -76,7 +78,10 @@ paths:
|
|
|
76
78
|
- name: _flowId
|
|
77
79
|
in: query
|
|
78
80
|
required: false
|
|
79
|
-
description:
|
|
81
|
+
description: |-
|
|
82
|
+
Filter by flow id. Returns only the flow-level alert on this flow, not the
|
|
83
|
+
integration-level alert that also covers it; filter by `_integrationId` to get
|
|
84
|
+
both.
|
|
80
85
|
schema:
|
|
81
86
|
type: string
|
|
82
87
|
format: objectId
|
|
@@ -97,10 +102,14 @@ paths:
|
|
|
97
102
|
in: query
|
|
98
103
|
required: false
|
|
99
104
|
description: |-
|
|
100
|
-
|
|
101
|
-
|
|
105
|
+
Returns only alerts that have never fired. For a time range, use
|
|
106
|
+
`lastTriggeredAt_gte` / `lastTriggeredAt_lte` instead.
|
|
102
107
|
schema:
|
|
103
108
|
type: string
|
|
109
|
+
enum:
|
|
110
|
+
- never
|
|
111
|
+
x-enumDescriptions:
|
|
112
|
+
never: Match alerts with no `lastTriggeredAt`.
|
|
104
113
|
examples:
|
|
105
114
|
- never
|
|
106
115
|
- name: lastTriggeredAt_gte
|
|
@@ -143,7 +152,6 @@ paths:
|
|
|
143
152
|
thresholdMinutes: 30
|
|
144
153
|
_recipientUserIds:
|
|
145
154
|
- 624cb0346309dc3a543733a2
|
|
146
|
-
lastTriggeredAt: null
|
|
147
155
|
createdAt: '2026-05-01T10:00:00.000Z'
|
|
148
156
|
lastModified: '2026-05-01T10:00:00.000Z'
|
|
149
157
|
'400':
|
|
@@ -152,6 +160,20 @@ paths:
|
|
|
152
160
|
$ref: '#/components/responses/401-unauthorized'
|
|
153
161
|
'403':
|
|
154
162
|
$ref: '#/components/responses/403-forbidden'
|
|
163
|
+
'422':
|
|
164
|
+
description: |-
|
|
165
|
+
`lastTriggeredAt` is a value other than `never`, or `lastTriggeredAt_gte` /
|
|
166
|
+
`lastTriggeredAt_lte` is not a valid date (`invalid_query_param`).
|
|
167
|
+
content:
|
|
168
|
+
application/json:
|
|
169
|
+
schema:
|
|
170
|
+
$ref: '#/components/schemas/Error'
|
|
171
|
+
examples:
|
|
172
|
+
invalidLastTriggeredAt:
|
|
173
|
+
value:
|
|
174
|
+
errors:
|
|
175
|
+
- code: invalid_query_param
|
|
176
|
+
message: The query parameter "lastTriggeredAt" has invalid value.
|
|
155
177
|
post:
|
|
156
178
|
x-internal: false
|
|
157
179
|
operationId: createAlert
|
|
@@ -213,17 +235,48 @@ paths:
|
|
|
213
235
|
_recipientUserIds:
|
|
214
236
|
- 624cb0346309dc3a543733a2
|
|
215
237
|
- 6356f24327114d57ab843e1f
|
|
216
|
-
lastTriggeredAt: null
|
|
217
238
|
createdAt: '2026-05-01T10:00:00.000Z'
|
|
218
239
|
lastModified: '2026-05-01T10:00:00.000Z'
|
|
219
240
|
'400':
|
|
220
|
-
|
|
241
|
+
description: |-
|
|
242
|
+
The body failed validation. `invalid_field` covers a threshold out of range and a
|
|
243
|
+
missing or unsupported `type`; `missing_required_field` covers no recipients and a
|
|
244
|
+
body with neither `_flowId` nor `_integrationId`; `create_not_allowed` is a
|
|
245
|
+
malformed recipient email; `invalid_ref` is a `_flowId` or `_integrationId` that
|
|
246
|
+
matches no flow or integration in the account.
|
|
247
|
+
content:
|
|
248
|
+
application/json:
|
|
249
|
+
schema:
|
|
250
|
+
$ref: '#/components/schemas/Error'
|
|
251
|
+
examples:
|
|
252
|
+
thresholdOutOfRange:
|
|
253
|
+
summary: Threshold below the minimum
|
|
254
|
+
value:
|
|
255
|
+
errors:
|
|
256
|
+
- code: invalid_field
|
|
257
|
+
source: resource
|
|
258
|
+
message: thresholdMinutes must be at least 5.
|
|
259
|
+
noRecipients:
|
|
260
|
+
summary: Empty or missing `_recipientEmails`
|
|
261
|
+
value:
|
|
262
|
+
errors:
|
|
263
|
+
- code: missing_required_field
|
|
264
|
+
source: resource
|
|
265
|
+
message: At least one recipient is required for long-runtime alerts.
|
|
266
|
+
unknownFlow:
|
|
267
|
+
summary: '`_flowId` matches no flow'
|
|
268
|
+
value:
|
|
269
|
+
errors:
|
|
270
|
+
- code: invalid_ref
|
|
271
|
+
message: _flowId is invalid.
|
|
221
272
|
'401':
|
|
222
273
|
$ref: '#/components/responses/401-unauthorized'
|
|
223
274
|
'403':
|
|
224
275
|
$ref: '#/components/responses/403-forbidden'
|
|
225
276
|
'409':
|
|
226
|
-
description:
|
|
277
|
+
description: |-
|
|
278
|
+
An alert of the same type already exists for this flow, or for this integration
|
|
279
|
+
when `_flowId` is omitted.
|
|
227
280
|
content:
|
|
228
281
|
application/json:
|
|
229
282
|
schema:
|
|
@@ -232,10 +285,20 @@ paths:
|
|
|
232
285
|
duplicate:
|
|
233
286
|
value:
|
|
234
287
|
errors:
|
|
235
|
-
- code:
|
|
236
|
-
message: An alert already exists for this flow
|
|
288
|
+
- code: duplicate
|
|
289
|
+
message: An alert of this type already exists for this flow or integration.
|
|
237
290
|
'422':
|
|
238
|
-
|
|
291
|
+
description: '`_flowId` or `_integrationId` is not a valid ObjectId (`invalid_ref`).'
|
|
292
|
+
content:
|
|
293
|
+
application/json:
|
|
294
|
+
schema:
|
|
295
|
+
$ref: '#/components/schemas/Error'
|
|
296
|
+
examples:
|
|
297
|
+
malformedFlowId:
|
|
298
|
+
value:
|
|
299
|
+
errors:
|
|
300
|
+
- code: invalid_ref
|
|
301
|
+
message: Please provide a valid _flowId.
|
|
239
302
|
/v1/alerts/bulk/recipients:
|
|
240
303
|
patch:
|
|
241
304
|
x-internal: false
|
|
@@ -250,7 +313,10 @@ paths:
|
|
|
250
313
|
|
|
251
314
|
Full success returns `204` with no body. Partial failure returns `200` with
|
|
252
315
|
`{ failed: [...] }` only — successful alerts are omitted. There is no
|
|
253
|
-
`success` or `skipped` array.
|
|
316
|
+
`success` or `skipped` array. A `remove` never takes an alert's last
|
|
317
|
+
recipient: that recipient stays, and the alert is listed in `failed[]` with the
|
|
318
|
+
kept email in `affectedRecipientEmails`. An id in `_alertIds` that matches no
|
|
319
|
+
alert is listed there too, not answered with `404`.
|
|
254
320
|
|
|
255
321
|
Requires permission `put:alert:models`. Returns `403` when
|
|
256
322
|
`ENABLE_PROACTIVE_ALERTS` is off. `add` is limited to one integration per
|
|
@@ -296,18 +362,48 @@ paths:
|
|
|
296
362
|
affectedRecipientEmails:
|
|
297
363
|
- ops@example.com
|
|
298
364
|
errors:
|
|
299
|
-
- code:
|
|
300
|
-
message: Cannot remove the last recipient
|
|
365
|
+
- code: not_allowed
|
|
366
|
+
message: Cannot remove the last recipient of an alert. Delete the alert instead.
|
|
367
|
+
unknownAlertId:
|
|
368
|
+
summary: An id in `_alertIds` matches no alert
|
|
369
|
+
value:
|
|
370
|
+
failed:
|
|
371
|
+
- _id: '000000000000000000000000'
|
|
372
|
+
affectedRecipientEmails:
|
|
373
|
+
- ops@example.com
|
|
374
|
+
errors:
|
|
375
|
+
- code: invalid_ref
|
|
376
|
+
message: Alert not found.
|
|
301
377
|
'204':
|
|
302
378
|
description: All targeted alerts updated successfully.
|
|
303
379
|
'400':
|
|
304
|
-
|
|
380
|
+
description: |-
|
|
381
|
+
Both or neither of `_alertIds` and `_integrationId` were sent, or `action` is not
|
|
382
|
+
`add` or `remove` (`invalid_field`); or `_integrationId` matches no integration in the
|
|
383
|
+
account (`invalid_ref`).
|
|
384
|
+
content:
|
|
385
|
+
application/json:
|
|
386
|
+
schema:
|
|
387
|
+
$ref: '#/components/schemas/Error'
|
|
388
|
+
examples:
|
|
389
|
+
bothTargets:
|
|
390
|
+
value:
|
|
391
|
+
errors:
|
|
392
|
+
- code: invalid_field
|
|
393
|
+
message: Provide either _alertIds or _integrationId, not both.
|
|
394
|
+
unknownIntegration:
|
|
395
|
+
value:
|
|
396
|
+
errors:
|
|
397
|
+
- code: invalid_ref
|
|
398
|
+
message: _integrationId is invalid.
|
|
305
399
|
'401':
|
|
306
400
|
$ref: '#/components/responses/401-unauthorized'
|
|
307
401
|
'403':
|
|
308
402
|
$ref: '#/components/responses/403-forbidden'
|
|
309
403
|
'404':
|
|
310
|
-
description:
|
|
404
|
+
description: |-
|
|
405
|
+
The integration named by `_integrationId` has no alerts. Returned for `add` and
|
|
406
|
+
`remove` alike.
|
|
311
407
|
content:
|
|
312
408
|
application/json:
|
|
313
409
|
schema:
|
|
@@ -316,10 +412,20 @@ paths:
|
|
|
316
412
|
noAlerts:
|
|
317
413
|
value:
|
|
318
414
|
errors:
|
|
319
|
-
- code:
|
|
320
|
-
message: No alerts found for
|
|
415
|
+
- code: invalid_ref
|
|
416
|
+
message: No alerts found for the given _integrationId.
|
|
321
417
|
'422':
|
|
322
|
-
|
|
418
|
+
description: An id in `_alertIds`, or `_integrationId`, is not a valid ObjectId (`invalid_ref`).
|
|
419
|
+
content:
|
|
420
|
+
application/json:
|
|
421
|
+
schema:
|
|
422
|
+
$ref: '#/components/schemas/Error'
|
|
423
|
+
examples:
|
|
424
|
+
malformedAlertId:
|
|
425
|
+
value:
|
|
426
|
+
errors:
|
|
427
|
+
- code: invalid_ref
|
|
428
|
+
message: Please provide a valid _alertIds.
|
|
323
429
|
/v1/alerts/{_id}:
|
|
324
430
|
get:
|
|
325
431
|
x-internal: false
|
|
@@ -374,15 +480,16 @@ paths:
|
|
|
374
480
|
thresholdMinutes: 30
|
|
375
481
|
_recipientUserIds:
|
|
376
482
|
- 624cb0346309dc3a543733a2
|
|
377
|
-
lastTriggeredAt: null
|
|
378
483
|
createdAt: '2026-05-01T10:00:00.000Z'
|
|
379
484
|
lastModified: '2026-05-01T10:00:00.000Z'
|
|
485
|
+
'400':
|
|
486
|
+
$ref: '#/components/responses/400-invalid-id'
|
|
380
487
|
'401':
|
|
381
488
|
$ref: '#/components/responses/401-unauthorized'
|
|
382
489
|
'403':
|
|
383
490
|
$ref: '#/components/responses/403-forbidden'
|
|
384
491
|
'404':
|
|
385
|
-
$ref: '#/components/responses/404-not-found'
|
|
492
|
+
$ref: '#/components/responses/404-alert-not-found'
|
|
386
493
|
put:
|
|
387
494
|
x-internal: false
|
|
388
495
|
operationId: updateAlert
|
|
@@ -441,17 +548,50 @@ paths:
|
|
|
441
548
|
_recipientUserIds:
|
|
442
549
|
- 624cb0346309dc3a543733a2
|
|
443
550
|
- 6356f24327114d57ab843e1f
|
|
444
|
-
lastTriggeredAt: null
|
|
445
551
|
createdAt: '2026-05-01T10:00:00.000Z'
|
|
446
552
|
lastModified: '2026-05-15T14:30:00.000Z'
|
|
447
553
|
'400':
|
|
448
|
-
|
|
554
|
+
description: |-
|
|
555
|
+
The body is empty (`invalid_request`), has no `_recipientEmails`
|
|
556
|
+
(`missing_required_field`), or carries a threshold out of range (`invalid_field`);
|
|
557
|
+
or `_id` is not a valid ObjectId (`invalid_ref`).
|
|
558
|
+
content:
|
|
559
|
+
application/json:
|
|
560
|
+
schema:
|
|
561
|
+
$ref: '#/components/schemas/Error'
|
|
562
|
+
examples:
|
|
563
|
+
noRecipients:
|
|
564
|
+
summary: '`_recipientEmails` omitted'
|
|
565
|
+
value:
|
|
566
|
+
errors:
|
|
567
|
+
- code: missing_required_field
|
|
568
|
+
source: resource
|
|
569
|
+
message: At least one recipient is required for long-runtime alerts.
|
|
570
|
+
emptyBody:
|
|
571
|
+
summary: Empty body
|
|
572
|
+
value:
|
|
573
|
+
errors:
|
|
574
|
+
- code: invalid_request
|
|
575
|
+
message: Request body can't be empty.
|
|
576
|
+
thresholdOutOfRange:
|
|
577
|
+
summary: Threshold above the maximum
|
|
578
|
+
value:
|
|
579
|
+
errors:
|
|
580
|
+
- code: invalid_field
|
|
581
|
+
source: resource
|
|
582
|
+
message: thresholdMinutes must be at most 59940.
|
|
583
|
+
malformedId:
|
|
584
|
+
summary: '`_id` is not a valid ObjectId'
|
|
585
|
+
value:
|
|
586
|
+
errors:
|
|
587
|
+
- code: invalid_ref
|
|
588
|
+
message: Please provide a valid _id.
|
|
449
589
|
'401':
|
|
450
590
|
$ref: '#/components/responses/401-unauthorized'
|
|
451
591
|
'403':
|
|
452
592
|
$ref: '#/components/responses/403-forbidden'
|
|
453
593
|
'404':
|
|
454
|
-
$ref: '#/components/responses/404-not-found'
|
|
594
|
+
$ref: '#/components/responses/404-alert-not-found'
|
|
455
595
|
'422':
|
|
456
596
|
$ref: '#/components/responses/422-unprocessable-entity'
|
|
457
597
|
delete:
|
|
@@ -480,12 +620,14 @@ paths:
|
|
|
480
620
|
responses:
|
|
481
621
|
'204':
|
|
482
622
|
description: Alert soft-deleted.
|
|
623
|
+
'400':
|
|
624
|
+
$ref: '#/components/responses/400-invalid-id'
|
|
483
625
|
'401':
|
|
484
626
|
$ref: '#/components/responses/401-unauthorized'
|
|
485
627
|
'403':
|
|
486
628
|
$ref: '#/components/responses/403-forbidden'
|
|
487
629
|
'404':
|
|
488
|
-
$ref: '#/components/responses/404-not-found'
|
|
630
|
+
$ref: '#/components/responses/404-alert-not-found'
|
|
489
631
|
/v1/alerts/{_id}/audit:
|
|
490
632
|
get:
|
|
491
633
|
x-internal: false
|
|
@@ -836,7 +978,7 @@ components:
|
|
|
836
978
|
description: Whether this is an instance of an abstract (Integration App) flow.
|
|
837
979
|
flowGroupName:
|
|
838
980
|
type: string
|
|
839
|
-
description: Name of the flow
|
|
981
|
+
description: Name of the flow group this flow belongs to. Absent when the flow is in no group.
|
|
840
982
|
integration:
|
|
841
983
|
type: object
|
|
842
984
|
readOnly: true
|
|
@@ -851,12 +993,12 @@ components:
|
|
|
851
993
|
examples:
|
|
852
994
|
- 12
|
|
853
995
|
lastTriggeredAt:
|
|
854
|
-
type:
|
|
855
|
-
- string
|
|
856
|
-
- 'null'
|
|
996
|
+
type: string
|
|
857
997
|
format: date-time
|
|
858
998
|
readOnly: true
|
|
859
|
-
description:
|
|
999
|
+
description: |-
|
|
1000
|
+
Timestamp when the alert last fired. Absent until the alert first fires;
|
|
1001
|
+
the list's `lastTriggeredAt=never` filter matches those alerts.
|
|
860
1002
|
examples:
|
|
861
1003
|
- '2026-06-01T12:00:00.000Z'
|
|
862
1004
|
createdAt:
|
|
@@ -1094,12 +1236,17 @@ components:
|
|
|
1094
1236
|
properties:
|
|
1095
1237
|
code:
|
|
1096
1238
|
type: string
|
|
1239
|
+
description: |-
|
|
1240
|
+
Machine-readable reason, such as `not_allowed` when the change would
|
|
1241
|
+
remove the alert's last recipient, or `invalid_ref` when the id matches
|
|
1242
|
+
no alert.
|
|
1097
1243
|
examples:
|
|
1098
|
-
-
|
|
1244
|
+
- not_allowed
|
|
1099
1245
|
message:
|
|
1100
1246
|
type: string
|
|
1247
|
+
description: Human-readable explanation of the failure.
|
|
1101
1248
|
examples:
|
|
1102
|
-
- Cannot remove the last recipient
|
|
1249
|
+
- Cannot remove the last recipient of an alert. Delete the alert instead.
|
|
1103
1250
|
field:
|
|
1104
1251
|
type: string
|
|
1105
1252
|
examples:
|
|
@@ -1116,6 +1263,7 @@ components:
|
|
|
1116
1263
|
properties:
|
|
1117
1264
|
longRuntime:
|
|
1118
1265
|
type: object
|
|
1266
|
+
description: Long-runtime threshold that replaces the stored one.
|
|
1119
1267
|
required:
|
|
1120
1268
|
- thresholdMinutes
|
|
1121
1269
|
properties:
|
|
@@ -1199,6 +1347,30 @@ components:
|
|
|
1199
1347
|
errors:
|
|
1200
1348
|
- code: forbidden
|
|
1201
1349
|
message: You do not have permission to access this resource.
|
|
1350
|
+
400-invalid-id:
|
|
1351
|
+
description: '`_id` is not a valid ObjectId.'
|
|
1352
|
+
content:
|
|
1353
|
+
application/json:
|
|
1354
|
+
schema:
|
|
1355
|
+
$ref: '#/components/schemas/Error'
|
|
1356
|
+
examples:
|
|
1357
|
+
malformedId:
|
|
1358
|
+
value:
|
|
1359
|
+
errors:
|
|
1360
|
+
- code: invalid_ref
|
|
1361
|
+
message: Please provide a valid _id.
|
|
1362
|
+
404-alert-not-found:
|
|
1363
|
+
description: No alert with this id exists in the account, or the alert was deleted.
|
|
1364
|
+
content:
|
|
1365
|
+
application/json:
|
|
1366
|
+
schema:
|
|
1367
|
+
$ref: '#/components/schemas/Error'
|
|
1368
|
+
examples:
|
|
1369
|
+
notFound:
|
|
1370
|
+
value:
|
|
1371
|
+
errors:
|
|
1372
|
+
- code: invalid_ref
|
|
1373
|
+
message: Alert not found.
|
|
1202
1374
|
422-unprocessable-entity:
|
|
1203
1375
|
description: |
|
|
1204
1376
|
Unprocessable entity. The request was well-formed but was unable to be followed due to semantic errors.
|