@celigo/api-specs 0.2.266 → 0.2.268
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/ai-agent.yml +8 -8
- package/dist/alert.yml +204 -32
- package/dist/api.yml +451 -39
- package/dist/connection.yml +434 -20
- package/dist/enduser.yml +295 -6
- package/dist/eventreport.yml +12 -1
- package/dist/flow.yml +50 -2
- package/dist/import.yml +12 -4
- package/dist/integration.yml +3 -0
- package/dist/job.yml +47 -4
- package/dist/mcp-server.yml +295 -6
- package/dist/notification.yml +19 -2
- package/dist/sync.yml +216 -36
- package/dist/tool.yml +312 -23
- package/package.json +1 -1
- package/schemas.json +816 -686
package/dist/sync.yml
CHANGED
|
@@ -143,7 +143,9 @@ paths:
|
|
|
143
143
|
'204':
|
|
144
144
|
description: No syncs exist in the account.
|
|
145
145
|
'401':
|
|
146
|
-
$ref: '#/components/responses/401-unauthorized'
|
|
146
|
+
$ref: '#/components/responses/401-unauthorized-or-scoped-token'
|
|
147
|
+
'403':
|
|
148
|
+
$ref: '#/components/responses/403-one-time-token'
|
|
147
149
|
'422':
|
|
148
150
|
$ref: '#/components/responses/422-unprocessable-entity'
|
|
149
151
|
post:
|
|
@@ -237,7 +239,32 @@ paths:
|
|
|
237
239
|
- code: missing_integration_id
|
|
238
240
|
message: To create sync integration id is required. Not provided in request body.
|
|
239
241
|
'401':
|
|
240
|
-
$ref: '#/components/responses/401-unauthorized'
|
|
242
|
+
$ref: '#/components/responses/401-unauthorized-or-scoped-token'
|
|
243
|
+
'403':
|
|
244
|
+
description: |-
|
|
245
|
+
Forbidden. Returned for a user with manage access to specific integrations only
|
|
246
|
+
when `_integrationId` is not one of them, or when `source._connectionId` or
|
|
247
|
+
`destination._connectionId` is not registered on any of their integrations
|
|
248
|
+
(`invalid_access`). The account owner and users with account-level access skip
|
|
249
|
+
both checks. A request made with a one-time token is refused with
|
|
250
|
+
`access_restricted`.
|
|
251
|
+
content:
|
|
252
|
+
application/json:
|
|
253
|
+
schema:
|
|
254
|
+
$ref: '#/components/schemas/Error'
|
|
255
|
+
examples:
|
|
256
|
+
unregisteredConnection:
|
|
257
|
+
summary: A connection the caller's integrations don't register
|
|
258
|
+
value:
|
|
259
|
+
errors:
|
|
260
|
+
- code: invalid_access
|
|
261
|
+
message: You don't have the required permission to access the integration. Please contact your account administrator to gain access for the integration.
|
|
262
|
+
oneTimeToken:
|
|
263
|
+
summary: Request made with a one-time token
|
|
264
|
+
value:
|
|
265
|
+
errors:
|
|
266
|
+
- code: access_restricted
|
|
267
|
+
message: Access restricted
|
|
241
268
|
'422':
|
|
242
269
|
description: |-
|
|
243
270
|
Validation failed. `source._connectionId` is missing
|
|
@@ -326,7 +353,9 @@ paths:
|
|
|
326
353
|
reduced: automate
|
|
327
354
|
expanded: automate
|
|
328
355
|
'401':
|
|
329
|
-
$ref: '#/components/responses/401-unauthorized'
|
|
356
|
+
$ref: '#/components/responses/401-unauthorized-or-scoped-token'
|
|
357
|
+
'403':
|
|
358
|
+
$ref: '#/components/responses/403-one-time-token'
|
|
330
359
|
'404':
|
|
331
360
|
$ref: '#/components/responses/404-not-found'
|
|
332
361
|
put:
|
|
@@ -440,7 +469,31 @@ paths:
|
|
|
440
469
|
- code: sync_integration_id_update
|
|
441
470
|
message: Integration Id cannot be updated in sync once assigned.
|
|
442
471
|
'401':
|
|
443
|
-
$ref: '#/components/responses/401-unauthorized'
|
|
472
|
+
$ref: '#/components/responses/401-unauthorized-or-scoped-token'
|
|
473
|
+
'403':
|
|
474
|
+
description: |-
|
|
475
|
+
Forbidden. Returned for a user with manage access to specific integrations only
|
|
476
|
+
when the body's `source._connectionId` or `destination._connectionId` is not
|
|
477
|
+
registered on any of their integrations (`invalid_access`); the stored sync is
|
|
478
|
+
unchanged. The account owner and users with account-level access skip this check.
|
|
479
|
+
A request made with a one-time token is refused with `access_restricted`.
|
|
480
|
+
content:
|
|
481
|
+
application/json:
|
|
482
|
+
schema:
|
|
483
|
+
$ref: '#/components/schemas/Error'
|
|
484
|
+
examples:
|
|
485
|
+
unregisteredConnection:
|
|
486
|
+
summary: A connection the caller's integrations don't register
|
|
487
|
+
value:
|
|
488
|
+
errors:
|
|
489
|
+
- code: invalid_access
|
|
490
|
+
message: You don't have the required permission to access the integration. Please contact your account administrator to gain access for the integration.
|
|
491
|
+
oneTimeToken:
|
|
492
|
+
summary: Request made with a one-time token
|
|
493
|
+
value:
|
|
494
|
+
errors:
|
|
495
|
+
- code: access_restricted
|
|
496
|
+
message: Access restricted
|
|
444
497
|
'404':
|
|
445
498
|
$ref: '#/components/responses/404-not-found'
|
|
446
499
|
'422':
|
|
@@ -521,7 +574,9 @@ paths:
|
|
|
521
574
|
- code: sync_delete_not_allowed
|
|
522
575
|
message: Cannot delete an enabled sync. Please disable the sync before deletion.
|
|
523
576
|
'401':
|
|
524
|
-
$ref: '#/components/responses/401-unauthorized'
|
|
577
|
+
$ref: '#/components/responses/401-unauthorized-or-scoped-token'
|
|
578
|
+
'403':
|
|
579
|
+
$ref: '#/components/responses/403-one-time-token'
|
|
525
580
|
'404':
|
|
526
581
|
$ref: '#/components/responses/404-not-found'
|
|
527
582
|
/v1/integrations/{_integrationId}/syncs:
|
|
@@ -608,7 +663,9 @@ paths:
|
|
|
608
663
|
'204':
|
|
609
664
|
description: The integration has no syncs, or the integration does not exist.
|
|
610
665
|
'401':
|
|
611
|
-
$ref: '#/components/responses/401-unauthorized'
|
|
666
|
+
$ref: '#/components/responses/401-unauthorized-or-scoped-token'
|
|
667
|
+
'403':
|
|
668
|
+
$ref: '#/components/responses/403-one-time-token'
|
|
612
669
|
'422':
|
|
613
670
|
$ref: '#/components/responses/422-unprocessable-entity'
|
|
614
671
|
/v1/syncs/{_syncId}/datasets:
|
|
@@ -618,7 +675,9 @@ paths:
|
|
|
618
675
|
description: |-
|
|
619
676
|
Returns the datasets configured on a sync — the tables/objects it replicates —
|
|
620
677
|
sorted by name. Export-backed datasets whose export no longer uses the sync's
|
|
621
|
-
source connection carry `mismatchSyncConnection: true`.
|
|
678
|
+
source connection carry `mismatchSyncConnection: true`. An export-backed dataset
|
|
679
|
+
whose export was deleted is left out of the list, and the sync's next run deletes
|
|
680
|
+
it.
|
|
622
681
|
operationId: listDatasetsForSync
|
|
623
682
|
tags:
|
|
624
683
|
- Syncs
|
|
@@ -734,9 +793,7 @@ paths:
|
|
|
734
793
|
children: []
|
|
735
794
|
mismatchSyncConnection: true
|
|
736
795
|
'204':
|
|
737
|
-
description:
|
|
738
|
-
The sync has no datasets (none matching `enable`, when it is sent), or the sync
|
|
739
|
-
does not exist.
|
|
796
|
+
description: The sync exists and has no datasets (none matching `enable`, when it is sent).
|
|
740
797
|
'400':
|
|
741
798
|
description: |-
|
|
742
799
|
`enable` is something other than `true` or `false` (`invalid_query_param`). The
|
|
@@ -753,7 +810,22 @@ paths:
|
|
|
753
810
|
- code: invalid_query_param
|
|
754
811
|
message: The query parameter "enable" has invalid value.
|
|
755
812
|
'401':
|
|
756
|
-
$ref: '#/components/responses/401-unauthorized'
|
|
813
|
+
$ref: '#/components/responses/401-unauthorized-or-scoped-token'
|
|
814
|
+
'403':
|
|
815
|
+
$ref: '#/components/responses/403-one-time-token'
|
|
816
|
+
'404':
|
|
817
|
+
description: The sync does not exist in the account or was deleted (`invalid_ref`).
|
|
818
|
+
content:
|
|
819
|
+
application/json:
|
|
820
|
+
schema:
|
|
821
|
+
$ref: '#/components/schemas/Error'
|
|
822
|
+
examples:
|
|
823
|
+
missingSync:
|
|
824
|
+
summary: Unknown or deleted sync
|
|
825
|
+
value:
|
|
826
|
+
errors:
|
|
827
|
+
- code: invalid_ref
|
|
828
|
+
message: syncs not found.
|
|
757
829
|
'422':
|
|
758
830
|
$ref: '#/components/responses/422-unprocessable-entity'
|
|
759
831
|
put:
|
|
@@ -853,7 +925,9 @@ paths:
|
|
|
853
925
|
- code: dataset_externalId_id_required
|
|
854
926
|
message: For creation externalId should be provide and for update dataset id should be provided but not both.
|
|
855
927
|
'401':
|
|
856
|
-
$ref: '#/components/responses/401-unauthorized'
|
|
928
|
+
$ref: '#/components/responses/401-unauthorized-or-scoped-token'
|
|
929
|
+
'403':
|
|
930
|
+
$ref: '#/components/responses/403-one-time-token'
|
|
857
931
|
'422':
|
|
858
932
|
description: |-
|
|
859
933
|
Validation failed. An enabled dataset is missing `ingestionMode`
|
|
@@ -939,7 +1013,9 @@ paths:
|
|
|
939
1013
|
mask: false
|
|
940
1014
|
children: []
|
|
941
1015
|
'401':
|
|
942
|
-
$ref: '#/components/responses/401-unauthorized'
|
|
1016
|
+
$ref: '#/components/responses/401-unauthorized-or-scoped-token'
|
|
1017
|
+
'403':
|
|
1018
|
+
$ref: '#/components/responses/403-one-time-token'
|
|
943
1019
|
'404':
|
|
944
1020
|
$ref: '#/components/responses/404-not-found'
|
|
945
1021
|
/v1/syncs/{_syncId}/run:
|
|
@@ -1129,6 +1205,10 @@ paths:
|
|
|
1129
1205
|
set, `queued` and `running` jobs are pinned to the first pages even if they fall outside
|
|
1130
1206
|
the range; `canceling` jobs are not pinned. Follow `Link` header URLs as-is to page
|
|
1131
1207
|
through pinned jobs and then the date-filtered remainder.
|
|
1208
|
+
|
|
1209
|
+
Only `createdAt_gt` and `createdAt_lte` filter by date; `createdAt_gte` and `createdAt_lt`
|
|
1210
|
+
are ignored. A blank or whitespace-only bound counts as not sent. A bound that is not a
|
|
1211
|
+
valid date answers 422 `invalid_query_param` before the sync is looked up.
|
|
1132
1212
|
parameters:
|
|
1133
1213
|
- name: _syncId
|
|
1134
1214
|
in: path
|
|
@@ -1168,7 +1248,7 @@ paths:
|
|
|
1168
1248
|
- name: createdAt_gt
|
|
1169
1249
|
in: query
|
|
1170
1250
|
required: false
|
|
1171
|
-
description: Only return jobs created after this time. Accepts ISO 8601 or epoch milliseconds.
|
|
1251
|
+
description: Only return jobs created after this time. Accepts ISO 8601 or epoch milliseconds; any other non-blank value answers 422.
|
|
1172
1252
|
schema:
|
|
1173
1253
|
type: string
|
|
1174
1254
|
examples:
|
|
@@ -1176,7 +1256,7 @@ paths:
|
|
|
1176
1256
|
- name: createdAt_lte
|
|
1177
1257
|
in: query
|
|
1178
1258
|
required: false
|
|
1179
|
-
description: Only return jobs created at or before this time. Accepts ISO 8601 or epoch milliseconds.
|
|
1259
|
+
description: Only return jobs created at or before this time. Accepts ISO 8601 or epoch milliseconds; any other non-blank value answers 422.
|
|
1180
1260
|
schema:
|
|
1181
1261
|
type: string
|
|
1182
1262
|
examples:
|
|
@@ -1284,6 +1364,21 @@ paths:
|
|
|
1284
1364
|
errors:
|
|
1285
1365
|
- code: invalid_ref
|
|
1286
1366
|
message: Sync not found.
|
|
1367
|
+
'422':
|
|
1368
|
+
description: |-
|
|
1369
|
+
`createdAt_gt` or `createdAt_lte` is not a valid date. Checked before the sync is
|
|
1370
|
+
looked up. Error code: `invalid_query_param`.
|
|
1371
|
+
content:
|
|
1372
|
+
application/json:
|
|
1373
|
+
schema:
|
|
1374
|
+
$ref: '#/components/schemas/Error'
|
|
1375
|
+
examples:
|
|
1376
|
+
invalid_date:
|
|
1377
|
+
summary: createdAt_gt is not a date
|
|
1378
|
+
value:
|
|
1379
|
+
errors:
|
|
1380
|
+
- code: invalid_query_param
|
|
1381
|
+
message: createdAt_gt must be a valid date in ISO 8601 format or epoch milliseconds.
|
|
1287
1382
|
/v1/syncs/{_syncId}/syncJobs/cancel:
|
|
1288
1383
|
put:
|
|
1289
1384
|
x-internal: false
|
|
@@ -3491,8 +3586,10 @@ paths:
|
|
|
3491
3586
|
type: boolean
|
|
3492
3587
|
description: |-
|
|
3493
3588
|
Only present (as `true`) when the export no longer uses the
|
|
3494
|
-
sync's source connection, or is no longer among
|
|
3495
|
-
connection's exports (for example, it was
|
|
3589
|
+
sync's source connection, or still exists but is no longer among
|
|
3590
|
+
the source connection's exports (for example, it was disabled).
|
|
3591
|
+
A saved export dataset whose export was deleted is left out of
|
|
3592
|
+
the list.
|
|
3496
3593
|
examples:
|
|
3497
3594
|
- true
|
|
3498
3595
|
totalFieldCount:
|
|
@@ -4092,6 +4189,37 @@ components:
|
|
|
4092
4189
|
- sf_
|
|
4093
4190
|
driftPolicy:
|
|
4094
4191
|
$ref: '#/components/schemas/SyncDriftPolicy'
|
|
4192
|
+
items:
|
|
4193
|
+
type: object
|
|
4194
|
+
properties:
|
|
4195
|
+
code:
|
|
4196
|
+
oneOf:
|
|
4197
|
+
- type: string
|
|
4198
|
+
- type: integer
|
|
4199
|
+
description: |-
|
|
4200
|
+
Machine-readable error code. Usually a string like
|
|
4201
|
+
`invalid_ref`, `missing_required_field`, or `unauthorized`;
|
|
4202
|
+
may be an **integer** when the error mirrors an upstream HTTP
|
|
4203
|
+
status (e.g. `500`) — most commonly returned by connection-ping
|
|
4204
|
+
and adaptor-proxy responses.
|
|
4205
|
+
message:
|
|
4206
|
+
type: string
|
|
4207
|
+
description: Human-readable description of the error.
|
|
4208
|
+
field:
|
|
4209
|
+
type: string
|
|
4210
|
+
description: |-
|
|
4211
|
+
Optional pointer to the document field that caused the error.
|
|
4212
|
+
Used by structural validation errors (`missing_required_field`,
|
|
4213
|
+
`invalid_ref`) to indicate which field is at fault
|
|
4214
|
+
(e.g. `_id`, `type`, `http.baseURI`).
|
|
4215
|
+
source:
|
|
4216
|
+
type: string
|
|
4217
|
+
description: |-
|
|
4218
|
+
Optional origin layer for the error — e.g. `application` when
|
|
4219
|
+
the error came from the remote system the adaptor called,
|
|
4220
|
+
`connector` when the adaptor itself rejected the request.
|
|
4221
|
+
required:
|
|
4222
|
+
- message
|
|
4095
4223
|
Error:
|
|
4096
4224
|
type: object
|
|
4097
4225
|
description: Standard error response envelope returned by integrator.io APIs.
|
|
@@ -5390,17 +5518,16 @@ components:
|
|
|
5390
5518
|
- action: Table removed
|
|
5391
5519
|
resourceType: Table
|
|
5392
5520
|
responses:
|
|
5393
|
-
401-unauthorized:
|
|
5521
|
+
401-unauthorized-or-scoped-token:
|
|
5394
5522
|
description: |-
|
|
5395
|
-
Unauthorized.
|
|
5396
|
-
|
|
5523
|
+
Unauthorized. Either the request has no valid bearer token, or the token is an API
|
|
5524
|
+
token scoped to specific resources instead of `fullAccess`. Sync and dataset
|
|
5525
|
+
endpoints take a full-access API token, a personal access token, or a signed-in
|
|
5526
|
+
session; a scoped token is refused with `access_restricted` before the sync is
|
|
5527
|
+
looked up or changed.
|
|
5397
5528
|
|
|
5398
|
-
|
|
5399
|
-
|
|
5400
|
-
standard `{errors: [...]}` envelope. Instead the body is a bare
|
|
5401
|
-
`{message: string}` object with no `code`, no `errors` array. Callers
|
|
5402
|
-
handling 401s should key off the HTTP status and the `message` string,
|
|
5403
|
-
not try to destructure an `errors[]`.
|
|
5529
|
+
A missing or invalid token gets the auth middleware's bare `{message}` body, with no
|
|
5530
|
+
`errors` array. A scoped token gets the standard `{errors: [...]}` envelope.
|
|
5404
5531
|
content:
|
|
5405
5532
|
application/json:
|
|
5406
5533
|
schema:
|
|
@@ -5409,21 +5536,40 @@ components:
|
|
|
5409
5536
|
message:
|
|
5410
5537
|
type: string
|
|
5411
5538
|
description: |-
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
|
|
5539
|
+
Present when the token is missing or invalid: `Unauthorized` (no
|
|
5540
|
+
`Authorization` header) or `Bearer Authentication Failed`.
|
|
5541
|
+
errors:
|
|
5542
|
+
type: array
|
|
5543
|
+
description: Present when the token is a scoped API token.
|
|
5544
|
+
items:
|
|
5545
|
+
$ref: '#/components/schemas/items'
|
|
5418
5546
|
examples:
|
|
5419
|
-
|
|
5420
|
-
summary:
|
|
5547
|
+
scopedToken:
|
|
5548
|
+
summary: An API token scoped to specific resources
|
|
5421
5549
|
value:
|
|
5422
|
-
|
|
5423
|
-
|
|
5550
|
+
errors:
|
|
5551
|
+
- code: access_restricted
|
|
5552
|
+
message: You don't have the required permissions to perform the action.
|
|
5553
|
+
invalidToken:
|
|
5424
5554
|
summary: Bearer token invalid or revoked
|
|
5425
5555
|
value:
|
|
5426
5556
|
message: Bearer Authentication Failed
|
|
5557
|
+
403-one-time-token:
|
|
5558
|
+
description: |-
|
|
5559
|
+
Forbidden. The request was authenticated with a one-time token, which sync and
|
|
5560
|
+
dataset endpoints refuse with `access_restricted` before the sync is looked up or
|
|
5561
|
+
changed. Use a full-access API token or a personal access token.
|
|
5562
|
+
content:
|
|
5563
|
+
application/json:
|
|
5564
|
+
schema:
|
|
5565
|
+
$ref: '#/components/schemas/Error'
|
|
5566
|
+
examples:
|
|
5567
|
+
oneTimeToken:
|
|
5568
|
+
summary: Request made with a one-time token
|
|
5569
|
+
value:
|
|
5570
|
+
errors:
|
|
5571
|
+
- code: access_restricted
|
|
5572
|
+
message: Access restricted
|
|
5427
5573
|
422-unprocessable-entity:
|
|
5428
5574
|
description: |
|
|
5429
5575
|
Unprocessable entity. The request was well-formed but was unable to be followed due to semantic errors.
|
|
@@ -5450,6 +5596,40 @@ components:
|
|
|
5450
5596
|
errors:
|
|
5451
5597
|
- code: not_found
|
|
5452
5598
|
message: The requested resource was not found.
|
|
5599
|
+
401-unauthorized:
|
|
5600
|
+
description: |-
|
|
5601
|
+
Unauthorized. The request lacks a valid bearer token, or the provided token
|
|
5602
|
+
failed to authenticate.
|
|
5603
|
+
|
|
5604
|
+
Note: the 401 response is produced by the auth middleware **before** the
|
|
5605
|
+
request reaches the endpoint handler, so it does **not** follow the
|
|
5606
|
+
standard `{errors: [...]}` envelope. Instead the body is a bare
|
|
5607
|
+
`{message: string}` object with no `code`, no `errors` array. Callers
|
|
5608
|
+
handling 401s should key off the HTTP status and the `message` string,
|
|
5609
|
+
not try to destructure an `errors[]`.
|
|
5610
|
+
content:
|
|
5611
|
+
application/json:
|
|
5612
|
+
schema:
|
|
5613
|
+
type: object
|
|
5614
|
+
properties:
|
|
5615
|
+
message:
|
|
5616
|
+
type: string
|
|
5617
|
+
description: |-
|
|
5618
|
+
Human-readable description of the auth failure. Known values:
|
|
5619
|
+
- `"Unauthorized"` — no `Authorization` header on the request.
|
|
5620
|
+
- `"Bearer Authentication Failed"` — header present but token
|
|
5621
|
+
is invalid, revoked, or expired.
|
|
5622
|
+
required:
|
|
5623
|
+
- message
|
|
5624
|
+
examples:
|
|
5625
|
+
missing_token:
|
|
5626
|
+
summary: No Authorization header sent
|
|
5627
|
+
value:
|
|
5628
|
+
message: Unauthorized
|
|
5629
|
+
invalid_token:
|
|
5630
|
+
summary: Bearer token invalid or revoked
|
|
5631
|
+
value:
|
|
5632
|
+
message: Bearer Authentication Failed
|
|
5453
5633
|
400-bad-request:
|
|
5454
5634
|
description: |
|
|
5455
5635
|
Bad request. The server could not understand the request because of malformed syntax or invalid parameters.
|