@celigo/api-specs 0.2.300 → 0.2.301

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.
@@ -135,8 +135,7 @@ paths:
135
135
  entitlement (partner uploads land there) and returns the current `storageUsage`
136
136
  alongside the server; `identifier` may be omitted once the server exists.
137
137
  Disabling keeps the identifier and every account, refuses new logins, and ends
138
- open sessions; repeating a disable is a no-op. Sandbox environments cannot
139
- enable a server (403 `FILESERVER_NOT_ENTITLED`). Requires a full-access API
138
+ open sessions; repeating a disable is a no-op. Requires a full-access API
140
139
  token.
141
140
  requestBody:
142
141
  required: true
@@ -229,8 +228,7 @@ paths:
229
228
  '403':
230
229
  description: |-
231
230
  The token is not a full-access API token (`FILESERVER_FULL_ACCESS_TOKEN_REQUIRED`),
232
- the account's license lacks the file server add-on or the environment is a
233
- sandbox (`FILESERVER_NOT_ENTITLED`). A personal access token is refused the same way as a scoped token, and a manage, monitor or integration-level user gets `access_restricted`: only the owner and administrators manage the file server.
231
+ or the account's license lacks the file server add-on (`FILESERVER_NOT_ENTITLED`). A personal access token is refused the same way as a scoped token, and a manage, monitor or integration-level user gets `access_restricted`: only the owner and administrators manage the file server.
234
232
  content:
235
233
  application/json:
236
234
  schema:
@@ -432,9 +430,9 @@ paths:
432
430
  $ref: '#/components/responses/401-unauthorized'
433
431
  '403':
434
432
  description: |-
435
- The token is not a full-access API token (`FILESERVER_FULL_ACCESS_TOKEN_REQUIRED`), or
436
- the environment is a sandbox (`FILESERVER_NOT_ENTITLED`). A personal access token is
437
- refused the same way as a scoped token, and a monitor user gets `access_restricted`.
433
+ The token is not a full-access API token (`FILESERVER_FULL_ACCESS_TOKEN_REQUIRED`).
434
+ A personal access token is refused the same way as a scoped token, and a monitor
435
+ user gets `access_restricted`.
438
436
  content:
439
437
  application/json:
440
438
  schema:
@@ -573,8 +571,7 @@ paths:
573
571
  '403':
574
572
  description: |-
575
573
  The token is not a full-access API token (`FILESERVER_FULL_ACCESS_TOKEN_REQUIRED`);
576
- the license lacks the add-on or the environment is a sandbox
577
- (`FILESERVER_NOT_ENTITLED`); or the environment already holds
574
+ the license lacks the add-on (`FILESERVER_NOT_ENTITLED`); or the environment already holds
578
575
  `limits.maxAccounts` enabled accounts (`FILESERVER_MAX_ACCOUNTS_EXCEEDED`). A
579
576
  personal access token is refused the same way as a scoped token, and a monitor
580
577
  user gets `access_restricted`.
@@ -836,8 +833,7 @@ paths:
836
833
  '403':
837
834
  description: |-
838
835
  The token is not a full-access API token (`FILESERVER_FULL_ACCESS_TOKEN_REQUIRED`);
839
- the license lacks the add-on or the environment is a sandbox
840
- (`FILESERVER_NOT_ENTITLED`); or re-enabling would exceed `limits.maxAccounts`
836
+ the license lacks the add-on (`FILESERVER_NOT_ENTITLED`); or re-enabling would exceed `limits.maxAccounts`
841
837
  (`FILESERVER_MAX_ACCOUNTS_EXCEEDED`). A personal access token is refused the
842
838
  same way as a scoped token, and a monitor user gets `access_restricted`.
843
839
  content:
@@ -1265,7 +1261,11 @@ components:
1265
1261
  maxFileSizeBytes:
1266
1262
  type: integer
1267
1263
  minimum: 0
1268
- description: Largest single file a partner may upload, in bytes.
1264
+ description: |-
1265
+ Largest single file a partner may upload, in bytes. There is no
1266
+ smallest-size setting, but an empty (0-byte) upload is always refused: the
1267
+ SFTP close fails with "Empty files are not supported", nothing is stored, and
1268
+ a file the upload was replacing is left as it was.
1269
1269
  examples:
1270
1270
  - 10737418240
1271
1271
  entitled:
@@ -1897,7 +1897,7 @@ components:
1897
1897
  description: |-
1898
1898
  The token is not a full-access API token (`FILESERVER_FULL_ACCESS_TOKEN_REQUIRED`) --
1899
1899
  a scoped API token, or any personal access token, which never counts as full access --
1900
- or the license lacks the add-on / the environment is a sandbox (`FILESERVER_NOT_ENTITLED`).
1900
+ or, on a change, the license lacks the add-on (`FILESERVER_NOT_ENTITLED`); a read never checks the license.
1901
1901
  A monitor user is refused with `access_restricted`.
1902
1902
  content:
1903
1903
  application/json:
@@ -577,8 +577,8 @@ paths:
577
577
  responses:
578
578
  '200':
579
579
  description: |-
580
- Matching items. Includes `breadcrumb` in list mode and per-item
581
- `location` in search mode.
580
+ Matching items. Includes `breadcrumb` and per-item `parentPath` in
581
+ list mode, and per-item `location` in search mode.
582
582
  headers:
583
583
  Link:
584
584
  description: |-
@@ -2302,15 +2302,59 @@ paths:
2302
2302
  in: query
2303
2303
  required: false
2304
2304
  description: |-
2305
- Return only this file's or folder's history, including entries
2306
- recorded after it went to the recycle bin or was purged. A single
2307
- ID; an ID that matches no entry returns an empty list.
2305
+ Return only the history of these files or folders, including entries
2306
+ recorded after they went to the recycle bin or were purged. Repeat the
2307
+ parameter or send a comma-separated list; at most 50 distinct values.
2308
+ An ID that matches no entry adds no entries; an empty value is
2309
+ rejected.
2308
2310
  schema:
2309
- type: string
2310
- format: objectId
2311
- x-celigo-refModel: storageitems
2311
+ type: array
2312
+ minItems: 1
2313
+ maxItems: 50
2314
+ items:
2315
+ type: string
2316
+ format: objectId
2317
+ x-celigo-refModel: storageitems
2312
2318
  examples:
2313
- - 683b2a0e1c3d5f001a9e8b01
2319
+ - - 683b2a0e1c3d5f001a9e8b01
2320
+ - 684c3b1f2d4e6a002b0f9c34
2321
+ - name: _integrationId
2322
+ in: query
2323
+ required: false
2324
+ description: |-
2325
+ Return only entries for items in these integrations' system folder
2326
+ trees. Repeat the parameter or send a comma-separated list; at most 50
2327
+ distinct values. An empty value is rejected.
2328
+ schema:
2329
+ type: array
2330
+ minItems: 1
2331
+ maxItems: 50
2332
+ items:
2333
+ type: string
2334
+ format: objectId
2335
+ x-celigo-refModel: integrations
2336
+ examples:
2337
+ - - 6ab1e7ab38d7733b4594d0d2
2338
+ - name: type
2339
+ in: query
2340
+ required: false
2341
+ description: |-
2342
+ Return only entries for these item types. `query` and `login` entries
2343
+ belong to no item, so any `type` filter leaves them out. Repeat the
2344
+ parameter or send a comma-separated list.
2345
+ schema:
2346
+ type: array
2347
+ maxItems: 50
2348
+ items:
2349
+ type: string
2350
+ enum:
2351
+ - file
2352
+ - folder
2353
+ x-enumDescriptions:
2354
+ file: Entries for files
2355
+ folder: Entries for folders
2356
+ examples:
2357
+ - - file
2314
2358
  - name: _byUserId
2315
2359
  in: query
2316
2360
  required: false
@@ -2560,10 +2604,12 @@ paths:
2560
2604
  $ref: '#/components/responses/403-forbidden'
2561
2605
  '422':
2562
2606
  description: |-
2563
- A filter is malformed or has more than 50 distinct values
2607
+ A filter is malformed or has more than 50 distinct values, or
2608
+ `_resourceId` or `_integrationId` is sent empty
2564
2609
  (`STORAGE_INVALID_FILTER`), `pageSize` is out of range
2565
2610
  (`STORAGE_INVALID_PAGE_SIZE`), or `sort_by` or `sort_order` is
2566
- unsupported (`STORAGE_INVALID_SORT`).
2611
+ unsupported (`STORAGE_INVALID_SORT`). An empty `type`, `source`,
2612
+ `action`, or `_byUserId` is ignored rather than refused.
2567
2613
  content:
2568
2614
  application/json:
2569
2615
  schema:
@@ -2576,11 +2622,17 @@ paths:
2576
2622
  - code: STORAGE_INVALID_FILTER
2577
2623
  message: _userId is not a supported filter
2578
2624
  invalidResourceId:
2579
- summary: _resourceId is not an ObjectId
2625
+ summary: A _resourceId value is not an ObjectId
2626
+ value:
2627
+ errors:
2628
+ - code: STORAGE_INVALID_FILTER
2629
+ message: '_resourceId contains an invalid value: report.pdf'
2630
+ emptyIntegrationId:
2631
+ summary: _integrationId sent with no value
2580
2632
  value:
2581
2633
  errors:
2582
2634
  - code: STORAGE_INVALID_FILTER
2583
- message: _resourceId must be a valid ObjectId
2635
+ message: _integrationId must not be empty
2584
2636
  invalidPageSize:
2585
2637
  summary: pageSize out of range
2586
2638
  value:
@@ -2640,9 +2692,11 @@ paths:
2640
2692
  $ref: '#/components/responses/403-forbidden'
2641
2693
  '422':
2642
2694
  description: |-
2643
- A filter is malformed or the body carries a paging field — `pageSize`,
2644
- `limit`, `after`, or `before` (`STORAGE_INVALID_FILTER`) — or the sort
2645
- is unsupported (`STORAGE_INVALID_SORT`).
2695
+ A filter is malformed, `_resourceId` or `_integrationId` is sent
2696
+ empty, or the body carries a paging field — `pageSize`, `limit`,
2697
+ `after`, or `before` (`STORAGE_INVALID_FILTER`) — or the sort is
2698
+ unsupported (`STORAGE_INVALID_SORT`). An empty `type`, `source`,
2699
+ `action`, or `_byUserId` is ignored rather than refused.
2646
2700
  content:
2647
2701
  application/json:
2648
2702
  schema:
@@ -3274,6 +3328,15 @@ components:
3274
3328
  description: Name of the containing folder.
3275
3329
  examples:
3276
3330
  - My Files
3331
+ parentPath:
3332
+ type: string
3333
+ readOnly: true
3334
+ description: |-
3335
+ Path of the folder that holds this item, from the account root, with
3336
+ a leading and trailing `/`; `/` for an item at the root. Present only
3337
+ in list-mode results from `GET /v1/storage/items`.
3338
+ examples:
3339
+ - /My Files/Reports/
3277
3340
  createdAt:
3278
3341
  type: string
3279
3342
  format: date-time
@@ -3851,8 +3914,8 @@ components:
3851
3914
  type: string
3852
3915
  description: |-
3853
3916
  File or folder the action applied to, as an ObjectId string. Empty
3854
- for `query` and `login` entries, which belong to no item. Use with
3855
- the `_resourceId` filter to read one item's history.
3917
+ for `query` and `login` entries, which belong to no item. Pass it to
3918
+ the `_resourceId` filter to read the item's history.
3856
3919
  examples:
3857
3920
  - 683b2a0e1c3d5f001a9e8b01
3858
3921
  resourceName:
@@ -3910,8 +3973,8 @@ components:
3910
3973
  type: object
3911
3974
  additionalProperties: true
3912
3975
  description: |-
3913
- Action-specific facts, an empty object when there are none, as for a
3914
- `merge` or a folder's `purge`. `create` and `restore` carry the parent
3976
+ Action-specific facts, an empty object when there are none.
3977
+ `create` and `restore` carry the parent
3915
3978
  folder (`_parentId`); `move` carries `_previousParentId` and
3916
3979
  `_newParentId`, plus `previousName` and `newName` when it also renamed
3917
3980
  the item and `bulk` when it came from `POST /v1/storage/items/move`.
@@ -3920,8 +3983,9 @@ components:
3920
3983
  and `overwrite`, plus `previousBytes` when it replaced content;
3921
3984
  `download` carries `size` and `linkExpiresIn`, plus `fileCount` for a
3922
3985
  folder; `copy` carries `_sourceId`, `_destinationParentId`, and
3923
- `bytes`; `delete` carries the item's `name`; a file's `purge` carries
3924
- `bytes`; `query` carries the `sql`; `login` carries `method`,
3986
+ `bytes`; `merge` carries the merged-away source folder's `sourceId`
3987
+ and `sourceName`; `delete` and `purge` carry the item's `name`, and a
3988
+ file's `purge` also `bytes`; `query` carries the `sql`; `login` carries `method`,
3925
3989
  `success`, and, on a failure, `reason`.
3926
3990
  examples:
3927
3991
  - previousName: report.pdf
@@ -3935,14 +3999,49 @@ components:
3935
3999
  (`pageSize`, `limit`, `after`, `before`) are rejected.
3936
4000
  properties:
3937
4001
  _resourceId:
3938
- type: string
3939
- format: objectId
3940
- x-celigo-refModel: storageitems
4002
+ type: array
4003
+ minItems: 1
4004
+ maxItems: 50
3941
4005
  description: |-
3942
- Export only this item's history, including entries recorded after it
3943
- went to the recycle bin.
4006
+ Export only these items' history, including entries recorded after
4007
+ they went to the recycle bin. A comma-separated string is also
4008
+ accepted.
4009
+ items:
4010
+ type: string
4011
+ format: objectId
4012
+ x-celigo-refModel: storageitems
3944
4013
  examples:
3945
- - 683b2a0e1c3d5f001a9e8b01
4014
+ - - 683b2a0e1c3d5f001a9e8b01
4015
+ - 684c3b1f2d4e6a002b0f9c34
4016
+ _integrationId:
4017
+ type: array
4018
+ minItems: 1
4019
+ maxItems: 50
4020
+ description: |-
4021
+ Export only entries for items in these integrations' system folder
4022
+ trees. A comma-separated string is also accepted.
4023
+ items:
4024
+ type: string
4025
+ format: objectId
4026
+ x-celigo-refModel: integrations
4027
+ examples:
4028
+ - - 6ab1e7ab38d7733b4594d0d2
4029
+ type:
4030
+ type: array
4031
+ maxItems: 50
4032
+ description: |-
4033
+ Export only entries for these item types; `query` and `login`
4034
+ entries belong to no item, so any `type` filter leaves them out.
4035
+ items:
4036
+ type: string
4037
+ enum:
4038
+ - file
4039
+ - folder
4040
+ x-enumDescriptions:
4041
+ file: Entries for files
4042
+ folder: Entries for folders
4043
+ examples:
4044
+ - - file
3946
4045
  _byUserId:
3947
4046
  type: array
3948
4047
  maxItems: 50
@@ -3828,7 +3828,7 @@ components:
3828
3828
  default: false
3829
3829
  description: |-
3830
3830
  When true, the row stays attached but is hidden from MCP clients and
3831
- does not count toward the server's enablement rule.
3831
+ does not count toward `enabledItemCount`.
3832
3832
  examples:
3833
3833
  - false
3834
3834
  overrides:
@@ -3858,8 +3858,7 @@ components:
3858
3858
  default: false
3859
3859
  description: |-
3860
3860
  When true, the last discovery run no longer found this `upstreamName`
3861
- in the upstream catalog; the row is kept but not served and does not
3862
- count toward enablement.
3861
+ in the upstream catalog; the row is kept but not served.
3863
3862
  examples:
3864
3863
  - false
3865
3864
  discoveredAt:
@@ -4070,11 +4069,13 @@ components:
4070
4069
  rejected with 422 `mcp_server_duplicate_policy`. A rejected call is not
4071
4070
  executed, does not count toward usage, and receives HTTP 429 with a
4072
4071
  `Retry-After` header (seconds until the allowance refills or the quota
4073
- period resets), an `X-RateLimit-Limit` header, and a JSON-RPC error
4074
- (code -32004) whose message names the policy: `Rate limit exceeded: <name>`
4075
- or `Usage quota exceeded: <name>`. A quota counts only calls accepted after
4076
- it was added; editing the limit keeps the running count for the current UTC
4077
- period, and removing then re-adding the quota starts a new count.
4072
+ period resets), an `X-RateLimit-Limit` header when a rate limit refused it
4073
+ (`X-Quota-Remaining` and `X-Quota-Reset` when a quota did), and a JSON-RPC
4074
+ error (code -32004) whose message names the policy:
4075
+ `Rate limit exceeded: <name>` or `Usage quota exceeded: <name>`. A quota
4076
+ counts only calls accepted after it was added; editing the limit keeps the
4077
+ running count for the current UTC period, and removing then re-adding the
4078
+ quota starts a new count.
4078
4079
  x-celigo-ai-guidance:
4079
4080
  - |-
4080
4081
  Configure one policy per kind — one server-level rate limit, one per-user
@@ -4082,10 +4083,11 @@ components:
4082
4083
  same `type` and `keyResolver` is rejected with 422
4083
4084
  `mcp_server_duplicate_policy`.
4084
4085
  - |-
4085
- A `tools/call` counts against every enabled policy, even when the named tool
4086
- does not exist; `initialize`, `tools/list`, `prompts/list`, and `resources/list`
4087
- are never counted or rejected (all live-verified). Whether `prompts/get` and
4088
- `resources/read` count has not been verified — do not assert either way.
4086
+ A `tools/call`, `prompts/get`, or `resources/read` counts against every enabled
4087
+ policy, even when the named tool, prompt, or resource does not exist, and one
4088
+ sent after the allowance is used up is refused with 429 and JSON-RPC -32004;
4089
+ `initialize`, `tools/list`, `prompts/list`, and `resources/list` are never
4090
+ counted or rejected (all live-verified).
4089
4091
  - |-
4090
4092
  Bearer API-token traffic is evaluated by `endpoint`-keyed rate limits and by
4091
4093
  quotas only; a `consumer`-keyed rate limit applies to OAuth end users, each
@@ -4449,14 +4451,14 @@ components:
4449
4451
  default: false
4450
4452
  description: |-
4451
4453
  When true, the server refuses MCP clients: on the alias URL
4452
- (`/mcp/{accountAlias}{relativeURI}`) a disabled or deleted server or an
4453
- unknown alias answers HTTP 404 `resource_not_found` with no
4454
- `WWW-Authenticate` header, whatever credential is sent, while the direct
4455
- `/mcp{relativeURI}` route still authenticates the call and then returns
4456
- JSON-RPC error `1006` ("MCP Server not found for relativeURI: …"). A new
4457
- server is created enabled with `enabledItemCount` 0: it answers
4458
- `initialize` on the direct route but lists no tools, prompts, or
4459
- resources until an item is enabled.
4454
+ (`/mcp/{accountAlias}{relativeURI}`) a disabled or deleted server, a
4455
+ `relativeURI` no server has, or an unknown alias answers HTTP 404
4456
+ `resource_not_found` with no `WWW-Authenticate` header, whatever
4457
+ credential is sent, while the direct `/mcp{relativeURI}` route still
4458
+ authenticates the call and then returns JSON-RPC error `1006` ("MCP
4459
+ Server not found for relativeURI: …"). A new server is created enabled
4460
+ with `enabledItemCount` 0: it answers `initialize` on both URLs but
4461
+ lists no tools, prompts, or resources until an item is enabled.
4460
4462
  x-celigo-ai-guidance:
4461
4463
  - |-
4462
4464
  Create the server with its items enabled, or enable them right after: a server
package/dist/sync.yml CHANGED
@@ -225,8 +225,9 @@ paths:
225
225
  '400':
226
226
  description: |-
227
227
  Bad request. `_integrationId` is missing (`missing_integration_id`), the body
228
- contains `_id` or `_userId` (`id_and_userId_in_request`), or a connection
229
- reference is not a valid id.
228
+ contains `_id` or `_userId` (`id_and_userId_in_request`), a connection
229
+ reference is not a valid id, `_runNextFlowIds` or `_runNextSyncIds` is not an
230
+ array of ids, or either list has more than 100 entries (`batch_size_exceeded`).
230
231
  content:
231
232
  application/json:
232
233
  schema:
@@ -238,6 +239,12 @@ paths:
238
239
  errors:
239
240
  - code: missing_integration_id
240
241
  message: To create sync integration id is required. Not provided in request body.
242
+ batch_size_exceeded:
243
+ summary: More than 100 run-next ids
244
+ value:
245
+ errors:
246
+ - code: batch_size_exceeded
247
+ message: Maximum batch size is 100.
241
248
  '401':
242
249
  $ref: '#/components/responses/401-unauthorized-or-scoped-token'
243
250
  '403':
@@ -265,25 +272,53 @@ paths:
265
272
  errors:
266
273
  - code: access_restricted
267
274
  message: Access restricted
275
+ '409':
276
+ description: |-
277
+ `destination._connectionId` is a well-formed id that is no connection in the
278
+ account (`CONNECTION_NOT_FOUND`). Nothing is created.
279
+ content:
280
+ application/json:
281
+ schema:
282
+ $ref: '#/components/schemas/Error'
283
+ examples:
284
+ destination_connection_not_found:
285
+ summary: Unknown destination connection
286
+ value:
287
+ errors:
288
+ - code: CONNECTION_NOT_FOUND
289
+ message: Connection not found
268
290
  '422':
269
291
  description: |-
270
292
  Validation failed. `source._connectionId` is missing
271
293
  (`missing_source_connection`), the integration was not created with
272
- `syncs: true` (`integration_not_for_sync`), `destination._connectionId` isn't a
273
- connection in the account (`missing_destination_connection`), the destination
294
+ `syncs: true` (`integration_not_for_sync`), `destination._connectionId` is missing
295
+ while `database`, `schema` or `tablePrefix` is sent
296
+ (`missing_destination_connection`), the destination
274
297
  connection is offline while a `database` or `schema` is set
275
- (`offline_destination_connection`), the destination duplicates another sync
298
+ (`offline_destination_connection`), the destination warehouse didn't answer the
299
+ save's schema check in time (`destination_schema_check_timeout` — nothing is
300
+ saved; retry), the destination duplicates another sync
276
301
  (`duplicate_destination_host`), the destination connector rejected the
277
302
  sync configuration (`invalid_destination_sync_config`), two enabled
278
303
  datasets resolve to the same destination table
279
304
  (`conflicting_table_name`), a field exceeds its size limit
280
- (`size_limit_exceeded`), or the drift policy is inconsistent
281
- (`drift_policy_invalid_setup`).
305
+ (`size_limit_exceeded`), the drift policy is inconsistent
306
+ (`drift_policy_invalid_setup`), or a run-next id was refused: not a flow or sync in
307
+ the account (`invalid_ref`), an abstract flow
308
+ (`abstract_run_next_flow_not_allowed`), or a flow with no batch export
309
+ (`invalid_flow`).
282
310
  content:
283
311
  application/json:
284
312
  schema:
285
313
  $ref: '#/components/schemas/Error'
286
314
  examples:
315
+ run_next_invalid_ref:
316
+ summary: A run-next flow id the account doesn't have
317
+ value:
318
+ errors:
319
+ - field: _runNextFlowIds[0]
320
+ code: invalid_ref
321
+ message: 6a2a95909e994395f3c2a4f1 is not a valid _runNextFlowIds[0]
287
322
  missing_source_connection:
288
323
  summary: Missing source connection
289
324
  value:
@@ -456,7 +491,9 @@ paths:
456
491
  '400':
457
492
  description: |-
458
493
  Bad request. The body contains `_integrationId` (`sync_integration_id_update`)
459
- or `_id`/`_userId` (`id_and_userId_in_request`).
494
+ or `_id`/`_userId` (`id_and_userId_in_request`), `_runNextFlowIds` or
495
+ `_runNextSyncIds` is not an array of ids, or either list has more than 100 entries
496
+ (`batch_size_exceeded`).
460
497
  content:
461
498
  application/json:
462
499
  schema:
@@ -496,30 +533,66 @@ paths:
496
533
  message: Access restricted
497
534
  '404':
498
535
  $ref: '#/components/responses/404-not-found'
536
+ '409':
537
+ description: |-
538
+ `destination._connectionId` is a well-formed id that is no connection in the
539
+ account (`CONNECTION_NOT_FOUND`). The stored sync is unchanged.
540
+ content:
541
+ application/json:
542
+ schema:
543
+ $ref: '#/components/schemas/Error'
544
+ examples:
545
+ destination_connection_not_found:
546
+ summary: Unknown destination connection
547
+ value:
548
+ errors:
549
+ - code: CONNECTION_NOT_FOUND
550
+ message: Connection not found
499
551
  '422':
500
552
  description: |-
501
553
  Validation failed. `source._connectionId` is missing
502
554
  (`missing_source_connection`), the sync is not ready to enable
503
- (`sync_not_enabled`), the update drops the saved destination connection or names a
504
- connection that doesn't exist (`missing_destination_connection`, "Destination
555
+ (`sync_not_enabled`), the update drops the saved destination connection or sends
556
+ `database`, `schema` or `tablePrefix` without a connection
557
+ (`missing_destination_connection`, "Destination
505
558
  connection is missing in the request"), the new destination connection is another
506
559
  warehouse type than the saved one (`duplicate_destination_type`, "Destination
507
560
  connection type is not same as the previous destination connection type"), a new
508
561
  `database` or `schema` was sent while the destination connection is offline
509
562
  (`offline_destination_connection` — the platform creates the schema when the
510
- destination is saved), the destination duplicates another sync
563
+ destination is saved), the destination warehouse didn't answer that schema check in
564
+ time (`destination_schema_check_timeout` — the stored sync is unchanged; retry), the
565
+ destination duplicates another sync
511
566
  (`duplicate_destination_host`), the destination connector rejected the
512
567
  sync configuration (`invalid_destination_sync_config`), two enabled
513
568
  datasets resolve to the same destination table
514
569
  (`conflicting_table_name`), a field exceeds its size limit
515
570
  (`size_limit_exceeded`), the drift policy is inconsistent
516
- (`drift_policy_invalid_setup`), or the destination's application differs from
517
- the integration's other syncs.
571
+ (`drift_policy_invalid_setup`), the destination's application differs from
572
+ the integration's other syncs, or a run-next id the save adds was refused: not a
573
+ flow or sync in the account, this sync, or a loop back to this sync (`invalid_ref`),
574
+ an abstract flow (`abstract_run_next_flow_not_allowed`), or a flow with no batch
575
+ export (`invalid_flow`).
518
576
  content:
519
577
  application/json:
520
578
  schema:
521
579
  $ref: '#/components/schemas/Error'
522
580
  examples:
581
+ run_next_abstract_flow:
582
+ summary: An abstract flow added to _runNextFlowIds
583
+ value:
584
+ errors:
585
+ - field: _runNextFlowIds[0]
586
+ code: abstract_run_next_flow_not_allowed
587
+ message: Specifying an abstract flow as a run next flow is not allowed.
588
+ destination_schema_check_timeout:
589
+ summary: The warehouse didn't answer in time
590
+ value:
591
+ errors:
592
+ - source: DI-MANAGEMENT-SERVICE
593
+ code: destination_schema_check_timeout
594
+ message: Destination warehouse did not respond in time; the save was not applied, please retry
595
+ resolved: false
523
596
  mixed_destination_types:
524
597
  summary: Another destination application in the same integration
525
598
  value:
@@ -579,6 +652,22 @@ paths:
579
652
  $ref: '#/components/responses/403-one-time-token'
580
653
  '404':
581
654
  $ref: '#/components/responses/404-not-found'
655
+ '422':
656
+ description: |-
657
+ Another sync lists this sync in its `_runNextSyncIds`
658
+ (`dependencies_not_deleted`). Take this sync off that list, or delete that sync,
659
+ first.
660
+ content:
661
+ application/json:
662
+ schema:
663
+ $ref: '#/components/schemas/Error'
664
+ examples:
665
+ listed_by_another_sync:
666
+ summary: Another sync runs this sync next
667
+ value:
668
+ errors:
669
+ - code: dependencies_not_deleted
670
+ message: sync 6a4b8bfb731a7a5cae9bd364 must be deleted before you can delete sync 6a559b5185efa7502eefd439
582
671
  /v1/integrations/{_integrationId}/syncs:
583
672
  get:
584
673
  x-internal: false
@@ -935,7 +1024,8 @@ paths:
935
1024
  primary key, a `tableName` is already taken (or, for an enabled dataset, matches
936
1025
  another dataset's table name in another letter case), two source columns sanitize to
937
1026
  the same destination column name (`duplicate_sanitized_column_names` — rename
938
- or disable the conflicting source columns), or a data-element combination is
1027
+ or disable the conflicting source columns), an update changes a dataset's
1028
+ `isExport` (`is_export_update_not_allowed`), or a data-element combination is
939
1029
  invalid (e.g. `transformMode` without children, or `isPrimaryKey` with `mask`).
940
1030
  content:
941
1031
  application/json:
@@ -1018,6 +1108,59 @@ paths:
1018
1108
  $ref: '#/components/responses/403-one-time-token'
1019
1109
  '404':
1020
1110
  $ref: '#/components/responses/404-not-found'
1111
+ /v1/syncs/{_syncId}/descendants:
1112
+ get:
1113
+ x-internal: false
1114
+ summary: List a sync's run-next flows and syncs
1115
+ description: |-
1116
+ Resolves a sync's `_runNextFlowIds` and `_runNextSyncIds` to the flows and syncs they
1117
+ point at, with the caller's permission on each one and its current state. Rows are
1118
+ returned in list order. A sync with neither list set, or with both emptied, returns
1119
+ empty `flows` and `syncs` arrays.
1120
+ operationId: listSyncDescendants
1121
+ tags:
1122
+ - Syncs
1123
+ parameters:
1124
+ - name: _syncId
1125
+ in: path
1126
+ required: true
1127
+ description: Sync id.
1128
+ schema:
1129
+ type: string
1130
+ format: objectId
1131
+ x-celigo-refModel: syncs
1132
+ examples:
1133
+ - 6a4b8bfb731a7a5cae9bd364
1134
+ responses:
1135
+ '200':
1136
+ description: The flows and syncs this sync runs next.
1137
+ content:
1138
+ application/json:
1139
+ schema:
1140
+ $ref: '#/components/schemas/SyncDescendants'
1141
+ examples:
1142
+ listed:
1143
+ summary: One flow and one sync listed
1144
+ value:
1145
+ flows:
1146
+ - _id: 6a2a95909e994395f3c2a4f1
1147
+ name: Load orders to NetSuite
1148
+ permission: manage
1149
+ status: ok
1150
+ syncs:
1151
+ - _id: 6a559b5185efa7502eefd439
1152
+ name: Order Analytics
1153
+ permission: manage
1154
+ status: disabled
1155
+ empty:
1156
+ summary: Neither list set
1157
+ value:
1158
+ flows: []
1159
+ syncs: []
1160
+ '401':
1161
+ $ref: '#/components/responses/401-unauthorized-or-scoped-token'
1162
+ '404':
1163
+ $ref: '#/components/responses/404-not-found'
1021
1164
  /v1/syncs/{_syncId}/run:
1022
1165
  post:
1023
1166
  x-internal: false
@@ -2788,8 +2931,9 @@ paths:
2788
2931
  data warehouse a sync loads records into. A sync's destination application is the type of
2789
2932
  its destination connection (`rdbms.type` for warehouse connections), which must match one
2790
2933
  of the returned ids. Identifiers include `snowflake` (Snowflake), `nsaw` (NetSuite
2791
- Analytics Warehouse), `bigquery` (Google BigQuery), `mssql` (Microsoft SQL Server), and
2792
- `redshift` (Amazon Redshift).
2934
+ Analytics Warehouse), `bigquery` (Google BigQuery), `mssql` (Microsoft SQL Server),
2935
+ `redshift` (Amazon Redshift), `azuresynapse` (Azure Synapse Analytics), and
2936
+ `microsoftfabric` (Microsoft Fabric — an `rdbms.type: fabric` connection).
2793
2937
  tags:
2794
2938
  - Syncs
2795
2939
  operationId: listSyncDestinations
@@ -2814,7 +2958,9 @@ paths:
2814
2958
  examples:
2815
2959
  default:
2816
2960
  value:
2961
+ - id: azuresynapse
2817
2962
  - id: bigquery
2963
+ - id: microsoftfabric
2818
2964
  - id: mssql
2819
2965
  - id: nsaw
2820
2966
  - id: redshift
@@ -3021,8 +3167,9 @@ paths:
3021
3167
  Returns the full column/field catalog for one table/object on a connection, as read
3022
3168
  from the source application. Use it to build the `dataElements` selection before
3023
3169
  saving a dataset via `PUT /v1/syncs/{_syncId}/datasets` — each element's `name` here
3024
- is the `name` to reference there. Read an export's record structure (`isExport=true`)
3025
- or an HTTP-connector object's columns through
3170
+ is the `name` to reference there. An export's record structure (`isExport=true`) is
3171
+ read from a live preview of the export, so no draft sync is needed. Read an
3172
+ HTTP-connector object's columns through
3026
3173
  `GET /v1/di/metadata/sync/{_syncId}/connections/{_connectionId}/datasets/{datasetName}/details`
3027
3174
  once a draft sync exists.
3028
3175
  operationId: getConnectionDatasetDetails
@@ -3319,11 +3466,6 @@ paths:
3319
3466
  schema:
3320
3467
  $ref: '#/components/schemas/Error'
3321
3468
  examples:
3322
- export_or_connector_object:
3323
- summary: An export or HTTP-connector object (read it through the sync-scoped route)
3324
- value:
3325
- errors:
3326
- - message: 'A required parameter is missing: _datasetId'
3327
3469
  unknown_dataset:
3328
3470
  summary: Table does not exist in the source
3329
3471
  value:
@@ -4152,9 +4294,10 @@ components:
4152
4294
  destination yet. The destination application is the connection's own type
4153
4295
  (`rdbms.type` for warehouse connections), so `database` and `schema` are read in that
4154
4296
  application's terms — Google BigQuery treats them as the GCP project and the dataset.
4155
- A `database` and `schema` pair can back only one sync, even across integrations — reusing one,
4156
- in any letter case, fails with `422 duplicate_destination_host` — and all syncs in an
4157
- integration must target the same destination application type.
4297
+ A `database` and `schema` pair can back only one sync on a destination connection,
4298
+ even across integrations — reusing one, in any letter case, fails with
4299
+ `422 duplicate_destination_host` — and all syncs in an integration must target the
4300
+ same destination application type.
4158
4301
  properties:
4159
4302
  _connectionId:
4160
4303
  type: string
@@ -4162,8 +4305,9 @@ components:
4162
4305
  x-celigo-refModel: connections
4163
4306
  description: |-
4164
4307
  Connection to the destination warehouse. Its application (`rdbms.type` such as
4165
- `snowflake`, `bigquery`, `mssql` or `redshift`, or a NetSuite Analytics Warehouse JDBC
4166
- connection) is one of the ids returned by `GET /v1/di/metadata/destinations`.
4308
+ `snowflake`, `bigquery`, `mssql`, `redshift` or `azuresynapse`, `rdbms.type: fabric`
4309
+ for Microsoft Fabric, or a NetSuite Analytics Warehouse JDBC connection) is one of
4310
+ the ids returned by `GET /v1/di/metadata/destinations`.
4167
4311
  examples:
4168
4312
  - 68d02dbe0839a514623c1d6d
4169
4313
  database:
@@ -4189,6 +4333,30 @@ components:
4189
4333
  - sf_
4190
4334
  driftPolicy:
4191
4335
  $ref: '#/components/schemas/SyncDriftPolicy'
4336
+ _runNextFlowIds:
4337
+ type: array
4338
+ maxItems: 100
4339
+ description: |-
4340
+ Flows to run after this sync. Absent until the list is first set; an emptied list is
4341
+ returned as `[]`.
4342
+ items:
4343
+ type: string
4344
+ format: objectId
4345
+ x-celigo-refModel: flows
4346
+ examples:
4347
+ - - 6a2a95909e994395f3c2a4f1
4348
+ _runNextSyncIds:
4349
+ type: array
4350
+ maxItems: 100
4351
+ description: |-
4352
+ Other syncs to run after this sync. Absent until the list is first set; an emptied
4353
+ list is returned as `[]`.
4354
+ items:
4355
+ type: string
4356
+ format: objectId
4357
+ x-celigo-refModel: syncs
4358
+ examples:
4359
+ - - 6a559b5185efa7502eefd439
4192
4360
  items:
4193
4361
  type: object
4194
4362
  properties:
@@ -4266,7 +4434,8 @@ components:
4266
4434
  Writable sync fields for `POST /v1/syncs` and `PUT /v1/syncs/{_id}`. Updates are full
4267
4435
  replacements: omitted optional fields (`schedule`, `timezone`, `destination` details,
4268
4436
  the `driftPolicy.element` settings) are cleared, not preserved, so send the complete
4269
- desired configuration on every PUT. A PUT that omits `disabled` returns the sync enabled
4437
+ desired configuration on every PUT. `_runNextFlowIds` and `_runNextSyncIds` are the
4438
+ exception: a PUT that omits them keeps the stored lists. A PUT that omits `disabled` returns the sync enabled
4270
4439
  (`disabled: false`) when its source, destination and `historicDateTime` are set.
4271
4440
  required:
4272
4441
  - source
@@ -4387,13 +4556,27 @@ components:
4387
4556
  enabled. The destination application is the connection's own type (`rdbms.type`
4388
4557
  for warehouse connections), so `database` and `schema` are read in that
4389
4558
  application's terms — Google BigQuery treats them as the GCP project and the
4390
- dataset. A `database` and `schema` pair, in any letter case, can back only one sync,
4391
- even across integrations (`422 duplicate_destination_host`, "Duplicate destination host found"). All syncs in
4559
+ dataset. A `database` and `schema` pair, in any letter case, can back only one sync on
4560
+ a destination connection, even across integrations (`422 duplicate_destination_host`).
4561
+ Sending `database`, `schema` or `tablePrefix` without `_connectionId` fails with
4562
+ `422 missing_destination_connection`, and a `_connectionId` that is no connection in
4563
+ the account fails with `409 CONNECTION_NOT_FOUND`. Saving a new `database` or `schema`
4564
+ checks the warehouse; when the warehouse doesn't answer in time the save fails with
4565
+ `422 destination_schema_check_timeout`, nothing is saved, and the request can be
4566
+ retried. All syncs in
4392
4567
  an integration must target the same destination application type, and a sync's
4393
4568
  destination type can't change once saved. An Amazon Redshift destination is checked
4394
4569
  on every save that sends `_connectionId`: a missing `database` or `schema` fails with
4395
4570
  422 `invalid_destination_sync_config` ("Redshift database is required on sync
4396
- destination" / "Redshift schema is required on sync destination").
4571
+ destination" / "Redshift schema is required on sync destination"). Microsoft Fabric
4572
+ and Azure Synapse destinations are checked on those saves too, one error per unmet
4573
+ rule: Fabric needs a connection with a staging location plus `database` and `schema`
4574
+ (422 `invalid_destination_sync_config`: "Fabric connection with a staging location is
4575
+ required", "Warehouse is required on sync destination", "Schema is required on sync
4576
+ destination"); Synapse needs a service-principal connection with ADLS Gen2 staging
4577
+ and a `database` equal to the connection's (422
4578
+ `DIMETADATA_AZURESYNAPSE_SERVICE_PRINCIPAL_REQUIRED`,
4579
+ `DIMETADATA_AZURESYNAPSE_STAGING_REQUIRED`, `DIMETADATA_AZURESYNAPSE_DATABASE_MISMATCH`).
4397
4580
  x-celigo-ai-guidance:
4398
4581
  - |-
4399
4582
  Send the block complete or not at all. A partial block is rejected in the destination's
@@ -4410,15 +4593,6 @@ components:
4410
4593
  `invalid_host` for SQL Server, `big_query_unexpected_error` for BigQuery,
4411
4594
  `redshift_auth_fail` for Amazon Redshift — and no sync document is created or
4412
4595
  updated; fix the connection rather than changing database or schema names.
4413
- - |-
4414
- A destination host that doesn't resolve can leave the save without a response for
4415
- more than 30 seconds, with nothing saved (seen on SQL Server and Snowflake
4416
- connections). Read the sync back before sending it again.
4417
- - |-
4418
- The duplicate_destination_host check compares the database and schema names
4419
- without regard to case. It refused a pair already used by another sync even when
4420
- the host, the destination type, the source connection and the integration all
4421
- differed, so give each sync a schema of its own.
4422
4596
  - |-
4423
4597
  A destination whose application differs from the other syncs' in the same
4424
4598
  integration fails with 422 "The destination type for all the syncs under an
@@ -4437,9 +4611,11 @@ components:
4437
4611
  x-celigo-refModel: connections
4438
4612
  description: |-
4439
4613
  Connection to the destination warehouse. Its application (`rdbms.type` such as
4440
- `snowflake`, `bigquery`, `mssql` or `redshift`, or a NetSuite Analytics Warehouse JDBC
4441
- connection) must be one of the ids returned by `GET /v1/di/metadata/destinations`;
4442
- any other connection fails with `422 invalid_destination_type`.
4614
+ `snowflake`, `bigquery`, `mssql`, `redshift` or `azuresynapse`, `rdbms.type: fabric`
4615
+ for Microsoft Fabric (destination id `microsoftfabric`), or a NetSuite Analytics
4616
+ Warehouse JDBC connection) must be one of the ids returned by
4617
+ `GET /v1/di/metadata/destinations`; any other connection fails with
4618
+ `422 invalid_destination_type`.
4443
4619
  examples:
4444
4620
  - 68d02dbe0839a514623c1d6d
4445
4621
  database:
@@ -4473,6 +4649,38 @@ components:
4473
4649
  - sf_
4474
4650
  driftPolicy:
4475
4651
  $ref: '#/components/schemas/SyncDriftPolicy'
4652
+ _runNextFlowIds:
4653
+ type: array
4654
+ maxItems: 100
4655
+ description: |-
4656
+ Flows to run after this sync. A PUT that omits the field keeps the stored list;
4657
+ send `[]` to clear it. More than 100 entries, or an entry that isn't an id, fails
4658
+ with 400. Only ids this save adds are checked: an id that isn't a flow in the
4659
+ account fails with `422 invalid_ref`; an abstract flow fails with
4660
+ `422 abstract_run_next_flow_not_allowed`; a flow with no batch export, a realtime
4661
+ flow included, fails with `422 invalid_flow`. Ids already on the list are kept even
4662
+ if the flow is later disabled or changed.
4663
+ items:
4664
+ type: string
4665
+ format: objectId
4666
+ x-celigo-refModel: flows
4667
+ examples:
4668
+ - - 6a2a95909e994395f3c2a4f1
4669
+ _runNextSyncIds:
4670
+ type: array
4671
+ maxItems: 100
4672
+ description: |-
4673
+ Other syncs to run after this sync. A PUT that omits the field keeps the stored
4674
+ list; send `[]` to clear it. More than 100 entries, or an entry that isn't an id,
4675
+ fails with 400. Only ids this save adds are checked: an id that isn't a sync in the
4676
+ account, is this sync, or would make the run-next chain loop back to this sync fails
4677
+ with `422 invalid_ref`. A sync can't be deleted while another sync lists it.
4678
+ items:
4679
+ type: string
4680
+ format: objectId
4681
+ x-celigo-refModel: syncs
4682
+ examples:
4683
+ - - 6a559b5185efa7502eefd439
4476
4684
  DataElement:
4477
4685
  type: object
4478
4686
  description: |-
@@ -4824,7 +5032,10 @@ components:
4824
5032
  When true, the dataset's records come from an existing export resource:
4825
5033
  `externalId` must be the export's ID, the export must use the sync's source
4826
5034
  connection (`400 connection_mismatch`), and the item must include `tableName`
4827
- and `dataElements` but no `exportProperties`.
5035
+ and `dataElements` but no `exportProperties`. Fixed when the dataset is created:
5036
+ an update that changes it fails with `422 is_export_update_not_allowed` ("isExport
5037
+ field cannot be updated after dataset is created."). Omitting it on update, or
5038
+ sending `false` or `null` for a dataset created without it, is not a change.
4828
5039
  examples:
4829
5040
  - false
4830
5041
  exportProperties:
@@ -4890,6 +5101,110 @@ components:
4890
5101
  dataset's previous selection entirely.
4891
5102
  items:
4892
5103
  $ref: '#/components/schemas/DataElement'
5104
+ RunNextPermission:
5105
+ type: string
5106
+ enum:
5107
+ - manage
5108
+ - monitor
5109
+ - none
5110
+ description: The caller's access level on the integration that holds the flow or sync.
5111
+ x-enumDescriptions:
5112
+ manage: The caller can manage the integration.
5113
+ monitor: The caller can only monitor the integration.
5114
+ none: The caller has no access to the integration.
5115
+ examples:
5116
+ - manage
5117
+ SyncDescendants:
5118
+ type: object
5119
+ description: The flows and syncs a sync's run-next lists resolve to, in list order.
5120
+ required:
5121
+ - flows
5122
+ - syncs
5123
+ properties:
5124
+ flows:
5125
+ type: array
5126
+ description: One row per `_runNextFlowIds` entry.
5127
+ items:
5128
+ type: object
5129
+ description: A flow this sync runs next.
5130
+ required:
5131
+ - _id
5132
+ - name
5133
+ - permission
5134
+ - status
5135
+ properties:
5136
+ _id:
5137
+ type: string
5138
+ format: objectId
5139
+ x-celigo-refModel: flows
5140
+ description: Flow id.
5141
+ examples:
5142
+ - 6a2a95909e994395f3c2a4f1
5143
+ name:
5144
+ type: string
5145
+ description: Flow name.
5146
+ examples:
5147
+ - Load orders to NetSuite
5148
+ permission:
5149
+ $ref: '#/components/schemas/RunNextPermission'
5150
+ status:
5151
+ type: string
5152
+ enum:
5153
+ - ok
5154
+ - disabled
5155
+ - abstract
5156
+ - realtime
5157
+ - no_batch_export
5158
+ description: |-
5159
+ The flow's run-next readiness. The first value that applies is returned,
5160
+ checked in the order `disabled`, `abstract`, `realtime`, `no_batch_export`. A
5161
+ flow that changed state after it was listed stays on the list and reports its
5162
+ current state here.
5163
+ x-enumDescriptions:
5164
+ ok: None of the other states apply.
5165
+ disabled: The flow is disabled.
5166
+ abstract: The flow is an abstract flow.
5167
+ realtime: The flow starts from a listener (a realtime export) instead of a batch export.
5168
+ no_batch_export: The flow has no batch export.
5169
+ examples:
5170
+ - ok
5171
+ syncs:
5172
+ type: array
5173
+ description: One row per `_runNextSyncIds` entry.
5174
+ items:
5175
+ type: object
5176
+ description: A sync this sync runs next.
5177
+ required:
5178
+ - _id
5179
+ - name
5180
+ - permission
5181
+ - status
5182
+ properties:
5183
+ _id:
5184
+ type: string
5185
+ format: objectId
5186
+ x-celigo-refModel: syncs
5187
+ description: Sync id.
5188
+ examples:
5189
+ - 6a559b5185efa7502eefd439
5190
+ name:
5191
+ type: string
5192
+ description: Sync name.
5193
+ examples:
5194
+ - Order Analytics
5195
+ permission:
5196
+ $ref: '#/components/schemas/RunNextPermission'
5197
+ status:
5198
+ type: string
5199
+ enum:
5200
+ - ok
5201
+ - disabled
5202
+ description: The listed sync's run-next readiness.
5203
+ x-enumDescriptions:
5204
+ ok: The sync is enabled.
5205
+ disabled: The sync is disabled.
5206
+ examples:
5207
+ - disabled
4893
5208
  SyncRunRequest:
4894
5209
  type: object
4895
5210
  description: |-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celigo/api-specs",
3
- "version": "0.2.300",
3
+ "version": "0.2.301",
4
4
  "private": false,
5
5
  "description": "Public OpenAPI bundles (dist/) and the celigo-cli lint schema pack (schemas.json).",
6
6
  "keywords": [
package/schemas.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "provenance": {
3
3
  "repo": "celigo/integrator-api-specs",
4
- "iasCommit": "33bc6aa8",
4
+ "iasCommit": "38d46aaa",
5
5
  "generatedAt": "2026-11-14"
6
6
  },
7
7
  "roots": {
@@ -9452,6 +9452,8 @@
9452
9452
  "p": {
9453
9453
  "_id": 0,
9454
9454
  "_integrationId": 0,
9455
+ "_runNextFlowIds": 20,
9456
+ "_runNextSyncIds": 20,
9455
9457
  "_userId": 0,
9456
9458
  "description": 0,
9457
9459
  "destination": 768,