@celigo/api-specs 0.2.3 → 0.2.4-IO-168454-EPIC-fb

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.
Files changed (52) hide show
  1. package/README.md +71 -80
  2. package/dist/account.yml +456 -55
  3. package/dist/agent.yml +15 -0
  4. package/dist/ai-agent.yml +1000 -192
  5. package/dist/alert.yml +1226 -0
  6. package/dist/api.yml +6375 -178
  7. package/dist/apim.yml +0 -4
  8. package/dist/asynchelper.yml +441 -62
  9. package/dist/audit.yml +57 -2
  10. package/dist/bartendertemplate.yml +508 -0
  11. package/dist/connection.yml +2533 -189
  12. package/dist/connector.yml +8 -0
  13. package/dist/ediprofile.yml +15 -0
  14. package/dist/editransaction.yml +250 -14
  15. package/dist/enduser.yml +6063 -47
  16. package/dist/environment.yml +8 -0
  17. package/dist/eventreport.yml +8 -0
  18. package/dist/export.yml +1624 -1804
  19. package/dist/filedefinition.yml +47 -0
  20. package/dist/filedefinitionrules.yml +722 -0
  21. package/dist/fileserver.yml +1457 -0
  22. package/dist/filestorage.yml +1087 -535
  23. package/dist/flow.yml +896 -209
  24. package/dist/guardrail.yml +310 -499
  25. package/dist/httpconnector.yml +8 -0
  26. package/dist/httpconnectorendpoint.yml +610 -126
  27. package/dist/httpconnectorresource.yml +1160 -84
  28. package/dist/iclient.yml +245 -114
  29. package/dist/import.yml +2583 -448
  30. package/dist/integration.yml +1114 -45
  31. package/dist/job.yml +188 -92
  32. package/dist/lookupcache.yml +45 -14
  33. package/dist/marketplace.yml +352 -107
  34. package/dist/mcp-oauth-provider.yml +15 -30
  35. package/dist/mcp-server.yml +7004 -68
  36. package/dist/networkpolicy.yml +1221 -0
  37. package/dist/notification.yml +59 -9
  38. package/dist/processor.yml +8 -3
  39. package/dist/recyclebin.yml +32 -2
  40. package/dist/script.yml +91 -16
  41. package/dist/stack.yml +642 -5
  42. package/dist/storagequery.yml +935 -0
  43. package/dist/subscription.yml +428 -67
  44. package/dist/sync.yml +435 -79
  45. package/dist/tag.yml +8 -0
  46. package/dist/template.yml +47 -1
  47. package/dist/tool.yml +7932 -3273
  48. package/dist/topic.yml +1806 -0
  49. package/dist/tradingpartnerconnector.yml +18 -0
  50. package/dist/user.yml +465 -42
  51. package/package.json +13 -1
  52. package/schemas.json +2358 -1887
package/dist/sync.yml CHANGED
@@ -238,7 +238,8 @@ paths:
238
238
  '422':
239
239
  description: |-
240
240
  Validation failed. `source._connectionId` is missing
241
- (`missing_source_connection`), the destination duplicates another sync
241
+ (`missing_source_connection`), the integration was not created with
242
+ `syncs: true` (`integration_not_for_sync`), the destination duplicates another sync
242
243
  (`duplicate_destination_host`), the destination connector rejected the
243
244
  sync configuration (`invalid_destination_sync_config`), two enabled
244
245
  datasets resolve to the same destination table
@@ -256,6 +257,13 @@ paths:
256
257
  errors:
257
258
  - code: missing_source_connection
258
259
  message: Source connection is missing in the request
260
+ integration_not_for_sync:
261
+ summary: Integration was not created for syncs
262
+ value:
263
+ errors:
264
+ - field: _integrationId
265
+ code: integration_not_for_sync
266
+ message: An integration is suppose to have either flows or syncs but not both.
259
267
  /v1/syncs/{_id}:
260
268
  get:
261
269
  x-internal: false
@@ -888,12 +896,18 @@ paths:
888
896
  run is **asynchronous**: the response returns as soon as the job is queued. Use
889
897
  `GET /v1/syncJobs/{_syncJobId}` or `GET /v1/syncs/{_syncId}/syncJobs` to poll for terminal status.
890
898
 
891
- By default the run type is `"normal"` (incremental delta). Pass `runType: "resync"` to force a
892
- full re-extraction from the source, which drops the delta checkpoint and reloads all data.
899
+ A resync drops the delta checkpoint and reloads all data. Subset selection on a resync
900
+ is always accepted; on a normal run it is rejected unless the account has partial
901
+ normal sync enabled.
893
902
 
894
- Preconditions enforced by the platform:
903
+ Preconditions enforced by the platform, in order:
904
+ - The body must be valid (`400 invalid_parameter`).
905
+ - The sync must have a backing replication flow. A draft whose destination has never been
906
+ saved has none and answers `404 sync_flow_not_present` — before the disabled check and
907
+ before any `datasetIds` membership or entitlement check, so a draft never reaches
908
+ `422 invalid_sync`.
895
909
  - The sync must not be disabled (`422 invalid_sync`).
896
- - There must not be a job already queued for this sync (`409 sync_job_already_queued`).
910
+ - There must not be a job already queued or running for this sync (`409 sync_job_already_queued`).
897
911
 
898
912
  The returned `flowExecutionGroupId` is a correlation key across jobs and errors. For
899
913
  multi-table syncs, a single run creates one parent job with per-table children visible via
@@ -921,6 +935,13 @@ paths:
921
935
  summary: Full resync from source
922
936
  value:
923
937
  runType: resync
938
+ resyncSubset:
939
+ summary: Resync selected datasets
940
+ value:
941
+ runType: resync
942
+ datasetIds:
943
+ - 6a559b547885d8f93921c2ba
944
+ - 6a559b547885d8f93921c2bb
924
945
  responses:
925
946
  '200':
926
947
  description: Sync run accepted and queued.
@@ -936,25 +957,61 @@ paths:
936
957
  flowExecutionGroupId: 6821c01c39db7c2b9cdc0e29
937
958
  '400':
938
959
  description: |-
939
- Bad request. Invalid `runType` value.
940
- Error code: `invalid_parameter`.
960
+ Bad request. A malformed `_syncId`, an invalid `runType`, an invalid `datasetIds`
961
+ shape (empty array, non-array, or non-ObjectId entries), subset selection on a
962
+ normal run when that is not enabled for the account, or datasets that do not
963
+ belong to this sync / are disabled.
964
+ Error codes: `invalid_ref`, `invalid_parameter`, `invalid_dataset_selection`.
941
965
  content:
942
966
  application/json:
943
967
  schema:
944
968
  $ref: '#/components/schemas/Error'
945
969
  examples:
970
+ malformed_sync_id:
971
+ summary: _syncId is not a valid ObjectId
972
+ value:
973
+ errors:
974
+ - code: invalid_ref
975
+ message: Please provide a valid _syncId.
946
976
  invalid_run_type:
947
977
  summary: Invalid runType parameter
948
978
  value:
949
979
  errors:
950
980
  - code: invalid_parameter
951
- message: Invalid value for runType.
981
+ message: 'runType must be one of: normal, resync'
982
+ dataset_ids_not_supported:
983
+ summary: Subset selection on a normal run is not enabled
984
+ value:
985
+ errors:
986
+ - code: invalid_parameter
987
+ message: datasetIds is not supported for normal sync runs
988
+ empty_dataset_ids:
989
+ summary: datasetIds is an empty array
990
+ value:
991
+ errors:
992
+ - code: invalid_parameter
993
+ message: datasetIds must contain at least one dataset ID
994
+ invalid_dataset_ids_shape:
995
+ summary: datasetIds is not an array of ObjectIds
996
+ value:
997
+ errors:
998
+ - code: invalid_parameter
999
+ message: datasetIds must be an array of valid dataset IDs
1000
+ invalid_dataset_selection:
1001
+ summary: Selected datasets do not belong to this sync or are disabled
1002
+ value:
1003
+ errors:
1004
+ - code: invalid_dataset_selection
1005
+ message: one or more selected datasets do not belong to this sync or are disabled
952
1006
  '401':
953
1007
  $ref: '#/components/responses/401-unauthorized'
954
1008
  '404':
955
1009
  description: |-
956
- Sync not found.
957
- Error code: `invalid_ref`.
1010
+ Sync not found (`invalid_ref`), or the sync has no backing replication flow because
1011
+ its destination has never been saved (`sync_flow_not_present`). The second check runs
1012
+ before the disabled, membership, and entitlement checks, so a draft sync answers this
1013
+ way whatever the body.
1014
+ Error codes: `invalid_ref`, `sync_flow_not_present`.
958
1015
  content:
959
1016
  application/json:
960
1017
  schema:
@@ -965,7 +1022,13 @@ paths:
965
1022
  value:
966
1023
  errors:
967
1024
  - code: invalid_ref
968
- message: Sync not found.
1025
+ message: 'Sync not found: 6ac4949901f0467e95366000'
1026
+ sync_flow_not_present:
1027
+ summary: Draft sync with no saved destination
1028
+ value:
1029
+ errors:
1030
+ - code: sync_flow_not_present
1031
+ message: The flow is not present in the sync.
969
1032
  '409':
970
1033
  description: |-
971
1034
  A sync job is already queued or running for this sync.
@@ -1004,12 +1067,10 @@ paths:
1004
1067
  - Sync Jobs
1005
1068
  summary: List sync jobs for a sync
1006
1069
  description: |-
1007
- Returns all sync job records for the given sync, ordered by creation time (most recent first).
1008
- The response wraps the array in a `data` field alongside a `totalCount`.
1009
-
1010
- Note: although the response shape suggests pagination (`totalCount`), the `limit`, `offset`,
1011
- and `status` query parameters are silently ignored by the server as of this writing. The
1012
- endpoint always returns the complete list of jobs.
1070
+ Returns parent sync jobs for the given sync, newest first. When a created-at filter is
1071
+ set, `queued` and `running` jobs are pinned to the first pages even if they fall outside
1072
+ the range; `canceling` jobs are not pinned. Follow `Link` header URLs as-is to page
1073
+ through pinned jobs and then the date-filtered remainder.
1013
1074
  parameters:
1014
1075
  - name: _syncId
1015
1076
  in: path
@@ -1019,9 +1080,73 @@ paths:
1019
1080
  type: string
1020
1081
  format: objectId
1021
1082
  x-celigo-refModel: syncs
1083
+ - name: pageSize
1084
+ in: query
1085
+ required: false
1086
+ description: Maximum number of jobs to return per page.
1087
+ schema:
1088
+ type: integer
1089
+ minimum: 1
1090
+ maximum: 100
1091
+ default: 100
1092
+ examples:
1093
+ - 25
1094
+ - name: after
1095
+ in: query
1096
+ required: false
1097
+ description: |-
1098
+ Opaque pagination cursor for the next page. Take it from the `after` value in
1099
+ the `Link` response header's `rel="next"` URL rather than constructing it.
1100
+ schema:
1101
+ type: string
1102
+ - name: before
1103
+ in: query
1104
+ required: false
1105
+ description: |-
1106
+ Opaque pagination cursor for the previous page. Take it from the `before` value in
1107
+ the `Link` response header's `rel="prev"` URL rather than constructing it.
1108
+ schema:
1109
+ type: string
1110
+ - name: createdAt_gt
1111
+ in: query
1112
+ required: false
1113
+ description: Only return jobs created after this time. Accepts ISO 8601 or epoch milliseconds.
1114
+ schema:
1115
+ type: string
1116
+ examples:
1117
+ - '2026-04-01T00:00:00.000Z'
1118
+ - name: createdAt_lte
1119
+ in: query
1120
+ required: false
1121
+ description: Only return jobs created at or before this time. Accepts ISO 8601 or epoch milliseconds.
1122
+ schema:
1123
+ type: string
1124
+ examples:
1125
+ - '2026-04-30T23:59:59.000Z'
1126
+ - name: listPhase
1127
+ in: query
1128
+ required: false
1129
+ description: |-
1130
+ Pagination phase echoed in `Link` URLs when a date filter is present. Follow those
1131
+ URLs as-is rather than setting this yourself.
1132
+ schema:
1133
+ type: string
1134
+ enum:
1135
+ - pinned
1136
+ - historical
1137
+ x-enumDescriptions:
1138
+ pinned: Pages queued and running jobs first
1139
+ historical: Pages the date-filtered remainder (completed, failed, canceled, canceling)
1022
1140
  responses:
1023
1141
  '200':
1024
- description: List of sync jobs.
1142
+ description: Page of sync jobs.
1143
+ headers:
1144
+ Link:
1145
+ description: |-
1146
+ RFC 5988 pagination links. Includes `<...>; rel="next"` and/or
1147
+ `<...>; rel="prev"` when more pages remain; absent on a single page.
1148
+ schema:
1149
+ type: string
1025
1150
  content:
1026
1151
  application/json:
1027
1152
  schema:
@@ -1060,8 +1185,30 @@ paths:
1060
1185
  numExtractedRecords: 11982
1061
1186
  numTablesSynced: 3
1062
1187
  triggeredBy: schedule
1063
- runType: normal
1188
+ runType: resync
1189
+ datasetIds:
1190
+ - 6a559b547885d8f93921c2ba
1064
1191
  totalCount: 2
1192
+ empty:
1193
+ summary: Sync with no jobs
1194
+ value:
1195
+ data: []
1196
+ totalCount: 0
1197
+ '400':
1198
+ description: |-
1199
+ Invalid pagination cursor or query parameter.
1200
+ Error code: `invalid_query_param`.
1201
+ content:
1202
+ application/json:
1203
+ schema:
1204
+ $ref: '#/components/schemas/Error'
1205
+ examples:
1206
+ invalid_query_param:
1207
+ summary: Malformed pagination cursor
1208
+ value:
1209
+ errors:
1210
+ - code: invalid_query_param
1211
+ message: Invalid pagination cursor.
1065
1212
  '401':
1066
1213
  $ref: '#/components/responses/401-unauthorized'
1067
1214
  '404':
@@ -1085,14 +1232,15 @@ paths:
1085
1232
  operationId: cancelSyncJobs
1086
1233
  tags:
1087
1234
  - Sync Jobs
1088
- summary: Cancel all running sync jobs for a sync
1235
+ summary: Cancel all in-progress sync jobs
1089
1236
  description: |-
1090
- Cancels all currently running or queued sync jobs for the given sync. This is a bulk cancel
1091
- that affects every in-progress job associated with the sync.
1237
+ Cancels every queued or running sync job for the given sync, including the underlying
1238
+ flow jobs for each run.
1092
1239
 
1093
- If there are no cancellable jobs (all jobs are already in a terminal state), the request
1094
- is rejected. To cancel a single specific job instead, use
1095
- `PUT /v1/syncJobs/{_syncJobId}/cancel`.
1240
+ If every job is already terminal, the request is rejected. If parent jobs are canceled
1241
+ but no flow jobs remain, the response includes a confirmation message instead of an
1242
+ empty success. A job whose cancellation is already in progress is not cancelled again.
1243
+ To cancel a single specific job instead, use `PUT /v1/syncJobs/{_syncJobId}/cancel`.
1096
1244
  parameters:
1097
1245
  - name: _syncId
1098
1246
  in: path
@@ -1103,8 +1251,25 @@ paths:
1103
1251
  format: objectId
1104
1252
  x-celigo-refModel: syncs
1105
1253
  responses:
1254
+ '200':
1255
+ description: Parent jobs canceled; no remaining flow jobs to cancel.
1256
+ content:
1257
+ application/json:
1258
+ schema:
1259
+ type: object
1260
+ properties:
1261
+ message:
1262
+ type: string
1263
+ description: Confirmation that there were no remaining flow jobs to cancel.
1264
+ examples:
1265
+ - No more jobs to cancel
1266
+ examples:
1267
+ no_more_jobs:
1268
+ summary: Parents canceled with no remaining flow jobs
1269
+ value:
1270
+ message: No more jobs to cancel
1106
1271
  '204':
1107
- description: All running sync jobs have been canceled. No response body.
1272
+ description: Cancellation accepted. No response body.
1108
1273
  '401':
1109
1274
  $ref: '#/components/responses/401-unauthorized'
1110
1275
  '404':
@@ -1117,11 +1282,26 @@ paths:
1117
1282
  $ref: '#/components/schemas/Error'
1118
1283
  examples:
1119
1284
  no_jobs:
1120
- summary: No running jobs to cancel
1285
+ summary: No queued or running jobs to cancel
1121
1286
  value:
1122
1287
  errors:
1123
1288
  - code: sync_jobs_not_found
1124
1289
  message: No cancellable sync jobs found.
1290
+ '409':
1291
+ description: |-
1292
+ Cancellation is already in progress for the remaining jobs.
1293
+ Error code: `sync_job_cancellation_in_progress`.
1294
+ content:
1295
+ application/json:
1296
+ schema:
1297
+ $ref: '#/components/schemas/Error'
1298
+ examples:
1299
+ cancellation_in_progress:
1300
+ summary: Jobs already canceling
1301
+ value:
1302
+ errors:
1303
+ - code: sync_job_cancellation_in_progress
1304
+ message: 'Cancellation is already in progress for sync job(s): 6821c01c39db7c2b9cdc0e30.'
1125
1305
  /v1/syncJobs/{_syncJobId}:
1126
1306
  get:
1127
1307
  x-internal: false
@@ -1271,17 +1451,12 @@ paths:
1271
1451
  - Sync Jobs
1272
1452
  summary: List errors for a sync job
1273
1453
  description: |-
1274
- Returns an array of error records for the given parent sync job. Errors are produced during
1275
- extraction or loading and are scoped to individual tables.
1276
-
1277
- The response includes an `x-total-count` header with the total number of errors (useful when
1278
- filtering by child job).
1454
+ Returns errors produced during extraction or loading for the given parent sync job,
1455
+ scoped to individual tables.
1279
1456
 
1280
- Use the `_childJobId` query parameter to filter errors to a single table's child job. Without
1281
- it, errors across all tables in the run are returned. To find a child job id, call
1282
- `GET /v1/syncJobs/{_syncJobId}/family` and read `tables[]._id`. Each error also carries a
1283
- `tableName` field for client-side grouping. The response is a bare array, not wrapped in a
1284
- `data` envelope.
1457
+ Use `_childJobId` to filter to a single table. Without it, errors across all tables
1458
+ in the run are returned. To find a child job id, call
1459
+ `GET /v1/syncJobs/{_syncJobId}/family` and read `tables[]._id`.
1285
1460
  parameters:
1286
1461
  - name: _parentJobId
1287
1462
  in: path
@@ -1295,21 +1470,54 @@ paths:
1295
1470
  in: query
1296
1471
  required: false
1297
1472
  description: |-
1298
- Optional child (table-level) job id to filter errors to a single table.
1473
+ Child (table-level) job id to filter errors to a single table.
1299
1474
  Obtain this from the `tables[]._id` field in the job family response.
1300
1475
  schema:
1301
1476
  type: string
1302
1477
  format: objectId
1303
1478
  examples:
1304
1479
  - 6821c01c39db7c2b9cdc0e31
1480
+ - name: pageSize
1481
+ in: query
1482
+ required: false
1483
+ description: Maximum number of errors to return per page.
1484
+ schema:
1485
+ type: integer
1486
+ minimum: 1
1487
+ maximum: 100
1488
+ default: 100
1489
+ examples:
1490
+ - 25
1491
+ - name: after
1492
+ in: query
1493
+ required: false
1494
+ description: |-
1495
+ Opaque pagination cursor for the next page. Take it from the `after` value in
1496
+ the `Link` response header's `rel="next"` URL rather than constructing it.
1497
+ schema:
1498
+ type: string
1499
+ - name: before
1500
+ in: query
1501
+ required: false
1502
+ description: |-
1503
+ Opaque pagination cursor for the previous page. Take it from the `before` value in
1504
+ the `Link` response header's `rel="prev"` URL rather than constructing it.
1505
+ schema:
1506
+ type: string
1305
1507
  responses:
1306
1508
  '200':
1307
1509
  description: Array of sync error records.
1308
1510
  headers:
1309
- x-total-count:
1310
- description: Total number of errors matching the query.
1511
+ X-Total-Count:
1512
+ description: Total number of errors matching the query, ignoring the current page.
1311
1513
  schema:
1312
1514
  type: integer
1515
+ Link:
1516
+ description: |-
1517
+ RFC 5988 pagination links. Includes `<...>; rel="next"` and/or
1518
+ `<...>; rel="prev"` when more pages remain; absent on a single page.
1519
+ schema:
1520
+ type: string
1313
1521
  content:
1314
1522
  application/json:
1315
1523
  schema:
@@ -1349,6 +1557,21 @@ paths:
1349
1557
  empty:
1350
1558
  summary: No errors
1351
1559
  value: []
1560
+ '400':
1561
+ description: |-
1562
+ Invalid pagination cursor or query parameter.
1563
+ Error code: `invalid_query_param`.
1564
+ content:
1565
+ application/json:
1566
+ schema:
1567
+ $ref: '#/components/schemas/Error'
1568
+ examples:
1569
+ invalid_query_param:
1570
+ summary: Malformed pagination cursor
1571
+ value:
1572
+ errors:
1573
+ - code: invalid_query_param
1574
+ message: Invalid pagination cursor.
1352
1575
  '401':
1353
1576
  $ref: '#/components/responses/401-unauthorized'
1354
1577
  '404':
@@ -1361,11 +1584,13 @@ paths:
1361
1584
  - Sync Jobs
1362
1585
  summary: Cancel a single sync job
1363
1586
  description: |-
1364
- Cancels a specific sync job by id.
1587
+ Cancels a specific sync job by id, including its underlying flow jobs.
1365
1588
 
1366
- Only jobs that are still in progress (`running`) can be canceled. Jobs already in a terminal
1367
- state (`completed`, `failed`, `canceled`) cannot be canceled. To cancel all running jobs for
1368
- a sync at once, use `PUT /v1/syncs/{_syncId}/syncJobs/cancel` instead.
1589
+ Only queued or running jobs can be canceled. Terminal jobs cannot. A job whose
1590
+ cancellation is already in progress is not cancelled again. If the parent is canceled
1591
+ but no flow jobs remain, the response includes a confirmation message instead of an
1592
+ empty success. To cancel all in-progress jobs for a sync at once, use
1593
+ `PUT /v1/syncs/{_syncId}/syncJobs/cancel`.
1369
1594
  parameters:
1370
1595
  - name: _syncJobId
1371
1596
  in: path
@@ -1376,8 +1601,25 @@ paths:
1376
1601
  format: objectId
1377
1602
  x-celigo-refModel: syncJobs
1378
1603
  responses:
1604
+ '200':
1605
+ description: Parent job canceled; no remaining flow jobs to cancel.
1606
+ content:
1607
+ application/json:
1608
+ schema:
1609
+ type: object
1610
+ properties:
1611
+ message:
1612
+ type: string
1613
+ description: Confirmation that there were no remaining flow jobs to cancel.
1614
+ examples:
1615
+ - No more jobs to cancel
1616
+ examples:
1617
+ no_more_jobs:
1618
+ summary: Parent canceled with no remaining flow jobs
1619
+ value:
1620
+ message: No more jobs to cancel
1379
1621
  '204':
1380
- description: Sync job canceled successfully. No response body.
1622
+ description: Cancellation accepted. No response body.
1381
1623
  '401':
1382
1624
  $ref: '#/components/responses/401-unauthorized'
1383
1625
  '403':
@@ -1394,9 +1636,24 @@ paths:
1394
1636
  value:
1395
1637
  errors:
1396
1638
  - code: sync_job_not_cancellable
1397
- message: The sync job is not in a cancellable state.
1639
+ message: The job 6821c01c39db7c2b9cdc0e30 is already in terminal state. Status - completed
1398
1640
  '404':
1399
1641
  $ref: '#/components/responses/404-not-found'
1642
+ '409':
1643
+ description: |-
1644
+ Cancellation is already in progress for this job.
1645
+ Error code: `sync_job_cancellation_in_progress`.
1646
+ content:
1647
+ application/json:
1648
+ schema:
1649
+ $ref: '#/components/schemas/Error'
1650
+ examples:
1651
+ cancellation_in_progress:
1652
+ summary: Job already canceling
1653
+ value:
1654
+ errors:
1655
+ - code: sync_job_cancellation_in_progress
1656
+ message: 'Cancellation is already in progress for sync job(s): 6821c01c39db7c2b9cdc0e30.'
1400
1657
  /v1/integrations/{_integrationId}/syncJobs/latest:
1401
1658
  get:
1402
1659
  x-internal: false
@@ -2380,9 +2637,10 @@ paths:
2380
2637
  summary: List supported sync destination applications
2381
2638
  description: |-
2382
2639
  Returns the catalog of applications that can be used as the **destination** of a sync — the
2383
- data warehouse a sync loads records into. Use the returned `id` as the destination application
2384
- when building a sync. Identifiers include `snowflake` (Snowflake), `nsaw` (NetSuite
2385
- Analytics Warehouse), and `bigquery` (Google BigQuery).
2640
+ data warehouse a sync loads records into. A sync's destination application is the type of
2641
+ its destination connection (`rdbms.type` for warehouse connections), which must match one
2642
+ of the returned ids. Identifiers include `snowflake` (Snowflake), `nsaw` (NetSuite
2643
+ Analytics Warehouse), `bigquery` (Google BigQuery), and `mssql` (Microsoft SQL Server).
2386
2644
  tags:
2387
2645
  - Syncs
2388
2646
  operationId: listSyncDestinations
@@ -2407,8 +2665,10 @@ paths:
2407
2665
  examples:
2408
2666
  default:
2409
2667
  value:
2410
- - id: snowflake
2668
+ - id: bigquery
2669
+ - id: mssql
2411
2670
  - id: nsaw
2671
+ - id: snowflake
2412
2672
  '401':
2413
2673
  $ref: '#/components/responses/401-unauthorized'
2414
2674
  /v1/di/metadata/connections/{_connectionId}/datasets:
@@ -3626,27 +3886,35 @@ components:
3626
3886
  type: object
3627
3887
  description: |-
3628
3888
  Data warehouse the sync loads records into. Empty (`{}`) on a draft that has no
3629
- destination yet. Each source + destination host/database/schema combination must
3630
- be unique across syncs — reusing one fails with `422 duplicate_destination_host` —
3631
- and all syncs in an integration must target the same destination application type.
3889
+ destination yet. The destination application is the connection's own type
3890
+ (`rdbms.type` for warehouse connections), so `database` and `schema` are read in that
3891
+ application's terms — Google BigQuery treats them as the GCP project and the dataset.
3892
+ Each source + destination host/database/schema combination must be unique across
3893
+ syncs — reusing one fails with `422 duplicate_destination_host` — and all syncs in an
3894
+ integration must target the same destination application type.
3632
3895
  properties:
3633
3896
  _connectionId:
3634
3897
  type: string
3635
3898
  format: objectId
3636
3899
  x-celigo-refModel: connections
3637
3900
  description: |-
3638
- Connection to the destination warehouse. The application must be one of the
3639
- supported sync destinations returned by `GET /v1/di/metadata/destinations`.
3901
+ Connection to the destination warehouse. Its application (`rdbms.type` such as
3902
+ `snowflake`, `bigquery` or `mssql`, or a NetSuite Analytics Warehouse JDBC
3903
+ connection) is one of the ids returned by `GET /v1/di/metadata/destinations`.
3640
3904
  examples:
3641
3905
  - 68d02dbe0839a514623c1d6d
3642
3906
  database:
3643
3907
  type: string
3644
- description: Database in the destination warehouse the sync loads into.
3908
+ description: |-
3909
+ Database in the destination warehouse the sync loads into. For Google BigQuery this
3910
+ is the GCP project id the tables are created in (`project.dataset.table`).
3645
3911
  examples:
3646
3912
  - ANALYTICS_DB
3647
3913
  schema:
3648
3914
  type: string
3649
- description: Schema within `database` where the sync creates and loads tables.
3915
+ description: |-
3916
+ Schema within `database` where the sync creates and loads tables. For Google
3917
+ BigQuery this is the dataset name, with case preserved.
3650
3918
  examples:
3651
3919
  - salesforce_raw
3652
3920
  tablePrefix:
@@ -3719,14 +3987,24 @@ components:
3719
3987
  - |-
3720
3988
  When scaffolding a draft sync before the destination is known, send only
3721
3989
  _integrationId and source._connectionId; the sync is created disabled and the
3722
- destination can be filled in with a later PUT.
3990
+ destination can be filled in with a later PUT. A draft with no saved destination
3991
+ has no backing flow, so POST /v1/syncs/{_syncId}/run answers 404 sync_flow_not_present
3992
+ (ahead of the disabled check) rather than 422 invalid_sync.
3993
+ - |-
3994
+ Create the parent integration with syncs: true in the POST /v1/integrations body. An
3995
+ integration created without it fails the sync create with 422 integration_not_for_sync
3996
+ ("An integration is suppose to have either flows or syncs but not both"), and PUT
3997
+ /v1/integrations/{_id} ignores the syncs field, so the only fix is a new integration.
3723
3998
  properties:
3724
3999
  _integrationId:
3725
4000
  type: string
3726
4001
  format: objectId
3727
4002
  x-celigo-refModel: integrations
3728
4003
  description: |-
3729
- Integration to create the sync in. Required on create; forbidden on update —
4004
+ Integration to create the sync in. It must have been created with `syncs: true`
4005
+ (`POST /v1/integrations`) — an integration without that flag fails the create with
4006
+ `422 integration_not_for_sync`, and the flag cannot be added afterwards because
4007
+ `PUT /v1/integrations/{_id}` ignores it. Required on create; forbidden on update —
3730
4008
  the integration cannot be changed once assigned (`400 sync_integration_id_update`).
3731
4009
  examples:
3732
4010
  - 69f4ffd395ec28be9cb8c12e
@@ -3795,27 +4073,60 @@ components:
3795
4073
  description: |-
3796
4074
  Data warehouse the sync loads records into. Omit while drafting; a complete
3797
4075
  destination (connection, database, schema) is required before the sync can be
3798
- enabled. The source + destination host/database/schema combination must be unique
4076
+ enabled. The destination application is the connection's own type (`rdbms.type`
4077
+ for warehouse connections), so `database` and `schema` are read in that
4078
+ application's terms — Google BigQuery treats them as the GCP project and the
4079
+ dataset. The source + destination host/database/schema combination must be unique
3799
4080
  across syncs (`422 duplicate_destination_host`), and all syncs in an integration
3800
4081
  must target the same destination application type.
4082
+ x-celigo-ai-guidance:
4083
+ - |-
4084
+ Send the block complete or not at all. A partial block is rejected in the destination's
4085
+ own vocabulary with 422 `invalid_destination_sync_config`: `GCP project is required on
4086
+ sync destination` / `BigQuery dataset is required on sync destination` (BigQuery),
4087
+ `SQL Server database is required on sync destination` / `SQL Server schema is required
4088
+ on sync destination` (Microsoft SQL Server). A partial Snowflake block is not caught
4089
+ by validation — the save reaches the warehouse and fails with Snowflake's own
4090
+ `002003` "Database 'UNDEFINED' does not exist" error.
4091
+ - |-
4092
+ Saving a complete destination connects to the warehouse to create the schema
4093
+ (dataset) when it is missing. An unreachable host or unusable credentials fail the
4094
+ save with the connection's error — 422 `invalid_host` for SQL Server,
4095
+ `big_query_unexpected_error` for BigQuery — and no sync document is created or
4096
+ updated; fix the connection rather than changing database or schema names.
4097
+ - |-
4098
+ Microsoft SQL Server validates `database` and `schema` as identifiers (start with a
4099
+ letter or underscore; letters, digits, underscore or `$`; at most 128 characters) and
4100
+ rejects others with 422 `invalid_destination_sync_config`
4101
+ (`SQL Server schema name is invalid: ...`).
3801
4102
  properties:
3802
4103
  _connectionId:
3803
4104
  type: string
3804
4105
  format: objectId
3805
4106
  x-celigo-refModel: connections
3806
4107
  description: |-
3807
- Connection to the destination warehouse. The application must be one of the
3808
- supported sync destinations returned by `GET /v1/di/metadata/destinations`.
4108
+ Connection to the destination warehouse. Its application (`rdbms.type` such as
4109
+ `snowflake`, `bigquery` or `mssql`, or a NetSuite Analytics Warehouse JDBC
4110
+ connection) must be one of the ids returned by `GET /v1/di/metadata/destinations`;
4111
+ any other connection fails with `422 invalid_destination_type`.
3809
4112
  examples:
3810
4113
  - 68d02dbe0839a514623c1d6d
3811
4114
  database:
3812
4115
  type: string
3813
- description: Database in the destination warehouse the sync loads into.
4116
+ description: |-
4117
+ Database in the destination warehouse the sync loads into; it must already exist.
4118
+ For Google BigQuery this is the GCP project id the tables are created in
4119
+ (`project.dataset.table`).
4120
+ x-celigo-ui-override: For a BigQuery destination the Create Sync wizard shows no database picker and fills this field with the selected connection's rdbms.bigquery.projectId (IO-195900).
3814
4121
  examples:
3815
4122
  - ANALYTICS_DB
3816
4123
  schema:
3817
4124
  type: string
3818
- description: Schema within `database` where the sync creates and loads tables.
4125
+ description: |-
4126
+ Schema within `database` where the sync creates and loads tables; created on save
4127
+ when it does not exist. For Google BigQuery this is the dataset name, with case
4128
+ preserved.
4129
+ x-celigo-ui-override: For a BigQuery destination the Create Sync wizard labels this field "dataset" and accepts only letters, digits and underscore (no $), starting with a letter or underscore, at most 1024 characters (IO-195900); Snowflake and NSAW validation is unchanged.
3819
4130
  examples:
3820
4131
  - salesforce_raw
3821
4132
  tablePrefix:
@@ -4220,9 +4531,8 @@ components:
4220
4531
  SyncRunRequest:
4221
4532
  type: object
4222
4533
  description: |-
4223
- Optional request body for triggering a sync run. When omitted or sent as `{}`, the sync runs
4224
- with `runType: "normal"` (incremental delta). Pass `runType: "resync"` to force a full re-extraction
4225
- from the source system, discarding the current delta checkpoint.
4534
+ Optional request body for triggering a sync run. When omitted or sent as `{}`, the sync
4535
+ runs every enabled dataset as an incremental delta.
4226
4536
  properties:
4227
4537
  runType:
4228
4538
  type: string
@@ -4234,9 +4544,32 @@ components:
4234
4544
  normal: Incremental delta sync extracting only records modified since the last run.
4235
4545
  resync: Full resync re-extracting all records from the source system.
4236
4546
  default: normal
4547
+ datasetIds:
4548
+ type: array
4549
+ minItems: 1
4550
+ description: |-
4551
+ Scopes this run to these datasets on the sync. Omit the field to run every
4552
+ enabled dataset; an empty array is rejected. Each id must belong to this sync
4553
+ and be enabled, and subset selection on a normal run is rejected unless the
4554
+ account has partial normal sync enabled.
4555
+ items:
4556
+ type: string
4557
+ format: objectId
4558
+ x-celigo-refModel: datasets
4559
+ examples:
4560
+ - - 6a559b547885d8f93921c2ba
4561
+ - 6a559b547885d8f93921c2bb
4562
+ x-celigo-ai-guidance:
4563
+ - Omit datasetIds to run every enabled dataset. Empty array is rejected; duplicates are de-duplicated.
4564
+ - Partial selection with runType resync is always accepted. Partial selection with runType normal is rejected with invalid_parameter unless the account has partial normal sync enabled.
4565
+ - Datasets that do not belong to this sync or are disabled fail with 400 invalid_dataset_selection.
4237
4566
  examples:
4238
4567
  - runType: normal
4239
4568
  - runType: resync
4569
+ - runType: resync
4570
+ datasetIds:
4571
+ - 6a559b547885d8f93921c2ba
4572
+ - 6a559b547885d8f93921c2bb
4240
4573
  SyncRunResponse:
4241
4574
  type: object
4242
4575
  description: |-
@@ -4340,18 +4673,19 @@ components:
4340
4673
  type: string
4341
4674
  readOnly: true
4342
4675
  description: |-
4343
- Current lifecycle state. Jobs start as `queued` when a run is accepted, move to
4344
- `running` once a worker picks them up, and end as `completed`, `failed`, or
4345
- `canceled`.
4676
+ Current lifecycle state. Cancel is asynchronous: the job stays non-terminal
4677
+ until in-flight work stops.
4346
4678
  enum:
4347
4679
  - queued
4348
4680
  - running
4681
+ - canceling
4349
4682
  - completed
4350
4683
  - failed
4351
4684
  - canceled
4352
4685
  x-enumDescriptions:
4353
4686
  queued: Run accepted and waiting for a worker to start execution.
4354
4687
  running: Sync is currently executing.
4688
+ canceling: Cancellation requested; in-flight work has not yet stopped.
4355
4689
  completed: Sync finished successfully.
4356
4690
  failed: Sync finished with a fatal error.
4357
4691
  canceled: Sync was canceled by a user or the system.
@@ -4388,7 +4722,7 @@ components:
4388
4722
  canceledBy:
4389
4723
  type: string
4390
4724
  readOnly: true
4391
- description: Who or what canceled this run. Only present when `status` is `canceled`.
4725
+ description: Who requested cancellation. Present once cancellation has been requested.
4392
4726
  examples:
4393
4727
  - user:tyler.lamparter@celigo.com
4394
4728
  runType:
@@ -4401,6 +4735,17 @@ components:
4401
4735
  x-enumDescriptions:
4402
4736
  normal: Incremental delta sync extracting only records modified since the last run.
4403
4737
  resync: Full resync re-extracting all records from the source system.
4738
+ datasetIds:
4739
+ type: array
4740
+ readOnly: true
4741
+ description: Datasets this run was scoped to. Absent when the run included every enabled dataset.
4742
+ items:
4743
+ type: string
4744
+ format: objectId
4745
+ x-celigo-refModel: datasets
4746
+ examples:
4747
+ - - 6a559b547885d8f93921c2ba
4748
+ - 6a559b547885d8f93921c2bb
4404
4749
  examples:
4405
4750
  - _id: 6821c01c39db7c2b9cdc0e30
4406
4751
  flowExecutionGroupId: 6821c01c39db7c2b9cdc0e29
@@ -4417,24 +4762,35 @@ components:
4417
4762
  numTablesSynced: 3
4418
4763
  triggeredBy: user:tyler.lamparter@celigo.com
4419
4764
  runType: normal
4765
+ - _id: 6821c01c39db7c2b9cdc0e40
4766
+ flowExecutionGroupId: 6821c01c39db7c2b9cdc0e39
4767
+ _integrationId: 67d7b6e69e4b1371e5d1e2a1
4768
+ _syncId: 682094fa7eb7fc3e7ab7a4a0
4769
+ createdAt: '2026-04-28T15:00:00.000Z'
4770
+ startedAt: '2026-04-28T15:00:01.000Z'
4771
+ status: running
4772
+ numErrors: 0
4773
+ numLoadedRecords: 0
4774
+ numExtractedRecords: 0
4775
+ numTablesSynced: 1
4776
+ triggeredBy: user:tyler.lamparter@celigo.com
4777
+ runType: resync
4778
+ datasetIds:
4779
+ - 6a559b547885d8f93921c2ba
4780
+ - 6a559b547885d8f93921c2bb
4420
4781
  SyncJobsResponse:
4421
4782
  type: object
4422
- description: |-
4423
- Paginated list of sync jobs for a given sync. Contains the array of job records and a total count.
4424
-
4425
- Note: although the response includes `totalCount`, the `limit` and `offset` query parameters
4426
- on the list endpoint are silently ignored by the server as of this writing. The response always
4427
- returns all jobs.
4783
+ description: One page of sync jobs for a given sync, plus the total number of jobs matching the query.
4428
4784
  properties:
4429
4785
  data:
4430
4786
  type: array
4431
- description: Array of sync job records.
4787
+ description: Sync job records for this page, newest first.
4432
4788
  items:
4433
4789
  $ref: '#/components/schemas/SyncJob'
4434
4790
  totalCount:
4435
4791
  type: integer
4436
4792
  readOnly: true
4437
- description: Total number of sync jobs for this sync (across all pages).
4793
+ description: Total number of sync jobs matching the query, including queued and running jobs pinned outside a date filter.
4438
4794
  examples:
4439
4795
  - 1
4440
4796
  examples: