@celigo/api-specs 0.2.262 → 0.2.264
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/api.yml +58 -2
- package/dist/enduser.yml +10 -7
- package/dist/export.yml +52 -26
- package/dist/filestorage.yml +15 -0
- package/dist/flow.yml +75 -7
- package/dist/import.yml +24 -7
- package/dist/integration.yml +50 -7
- package/dist/mcp-server.yml +29 -15
- package/dist/template.yml +1 -1
- package/dist/tool.yml +138 -41
- package/dist/user.yml +10 -7
- package/package.json +1 -1
- package/schemas.json +1 -1
package/dist/api.yml
CHANGED
|
@@ -1845,7 +1845,9 @@ paths:
|
|
|
1845
1845
|
|
|
1846
1846
|
Each entry in `stages[]` carries the stage `name` (e.g. `request`, `parse`, `router`) plus its
|
|
1847
1847
|
`input`, `output`, and `errors`. Stages that did not produce data for a given direction return
|
|
1848
|
-
`null` for that field. Top-level `errors` aggregates step-level errors.
|
|
1848
|
+
`null` for that field. Top-level `errors` aggregates step-level errors. A router's step id
|
|
1849
|
+
returns a top-level `output` instead of `stages` and `errors`: one entry per request, with the
|
|
1850
|
+
`branches` position the router chose and any routing `errors`.
|
|
1849
1851
|
parameters:
|
|
1850
1852
|
- name: _id
|
|
1851
1853
|
in: path
|
|
@@ -1901,6 +1903,41 @@ paths:
|
|
|
1901
1903
|
description: Aggregated step-level errors.
|
|
1902
1904
|
items:
|
|
1903
1905
|
type: object
|
|
1906
|
+
output:
|
|
1907
|
+
type: array
|
|
1908
|
+
description: |-
|
|
1909
|
+
Present instead of `stages` and `errors` when `_stepId` is a router id
|
|
1910
|
+
(a `builder.routers[].id`, or `apiRouter`): one entry per request the router
|
|
1911
|
+
handled.
|
|
1912
|
+
items:
|
|
1913
|
+
type: object
|
|
1914
|
+
additionalProperties: true
|
|
1915
|
+
properties:
|
|
1916
|
+
record:
|
|
1917
|
+
type: object
|
|
1918
|
+
additionalProperties: true
|
|
1919
|
+
description: The request record as it reached the router.
|
|
1920
|
+
traceKey:
|
|
1921
|
+
type:
|
|
1922
|
+
- string
|
|
1923
|
+
- 'null'
|
|
1924
|
+
description: Trace key of the request, or `null` when none was computed for it.
|
|
1925
|
+
errors:
|
|
1926
|
+
type: array
|
|
1927
|
+
description: |-
|
|
1928
|
+
Routing errors for the request, such as `branch_not_defined` or
|
|
1929
|
+
`invalid_script_routing`; empty when it routed cleanly.
|
|
1930
|
+
items:
|
|
1931
|
+
type: object
|
|
1932
|
+
additionalProperties: true
|
|
1933
|
+
branches:
|
|
1934
|
+
type: array
|
|
1935
|
+
description: |-
|
|
1936
|
+
Zero-based position of the branch chosen for the request; empty or
|
|
1937
|
+
absent when none was. A request with routing `errors` went down no
|
|
1938
|
+
branch, whatever this holds.
|
|
1939
|
+
items:
|
|
1940
|
+
type: integer
|
|
1904
1941
|
examples:
|
|
1905
1942
|
default:
|
|
1906
1943
|
value:
|
|
@@ -1924,6 +1961,17 @@ paths:
|
|
|
1924
1961
|
errors: []
|
|
1925
1962
|
traceKey: null
|
|
1926
1963
|
errors: []
|
|
1964
|
+
router_step:
|
|
1965
|
+
summary: Router step — the request went to the second branch
|
|
1966
|
+
value:
|
|
1967
|
+
output:
|
|
1968
|
+
- record:
|
|
1969
|
+
orderId: '1001'
|
|
1970
|
+
region: EU
|
|
1971
|
+
traceKey: '1001'
|
|
1972
|
+
errors: []
|
|
1973
|
+
branches:
|
|
1974
|
+
- 1
|
|
1927
1975
|
'400':
|
|
1928
1976
|
$ref: '#/components/responses/400-bad-request'
|
|
1929
1977
|
'401':
|
|
@@ -6092,10 +6140,18 @@ components:
|
|
|
6092
6140
|
- 60a2c4e6f321d800129a1a3c
|
|
6093
6141
|
function:
|
|
6094
6142
|
type: string
|
|
6095
|
-
description:
|
|
6143
|
+
description: |-
|
|
6144
|
+
Function in the script that picks the branch for the request. It receives the
|
|
6145
|
+
record being routed as `options.record` and returns the branch's zero-based position
|
|
6146
|
+
in `branches` as a one-item array, such as `[0]`.
|
|
6096
6147
|
examples:
|
|
6097
6148
|
- routeRequest
|
|
6098
6149
|
- determineBranch
|
|
6150
|
+
x-celigo-ai-guidance:
|
|
6151
|
+
- |-
|
|
6152
|
+
Return a branch position, never a branch name: a name, or a position with no branch,
|
|
6153
|
+
fails the request with `branch_not_defined`, and more than one position fails it
|
|
6154
|
+
with `invalid_script_routing`.
|
|
6099
6155
|
branches:
|
|
6100
6156
|
type: array
|
|
6101
6157
|
description: Processing branches, evaluated in order.
|
package/dist/enduser.yml
CHANGED
|
@@ -1293,13 +1293,16 @@ components:
|
|
|
1293
1293
|
Capability string for an `mcpServer` grant. `tool:`, `api:`,
|
|
1294
1294
|
`prompt:`, and `resource:` take `all` or a 24-hex id on the target
|
|
1295
1295
|
server — a `tools[]._toolId` or upstream tool row `_id`, an
|
|
1296
|
-
`apis[]._apiId`, a `prompts[]._id
|
|
1297
|
-
takes a `permissionSets[]._id` or
|
|
1298
|
-
`prompt:<_id>`: older grants written as
|
|
1299
|
-
validate but are not reported by
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1296
|
+
`apis[]._apiId`, a `prompts[]._id` or upstream prompt row `_id`, or
|
|
1297
|
+
a `resources[]._id`; `pset:` takes a `permissionSets[]._id` or
|
|
1298
|
+
`all`. Grant prompts with `prompt:<_id>`: older grants written as
|
|
1299
|
+
`tool:<prompt _id>` still validate, but they are not reported by
|
|
1300
|
+
effective access and do not open the prompt on the MCP endpoint —
|
|
1301
|
+
`prompts/list` hides it and `prompts/get` is denied, and `tool:all`
|
|
1302
|
+
does not cover prompts there either. Any other shape is rejected with
|
|
1303
|
+
400 `validation_failed` ("Invalid capability"), and an id that is
|
|
1304
|
+
not attached to the target server with 400 `validation_failed`
|
|
1305
|
+
naming the missing item.
|
|
1303
1306
|
examples:
|
|
1304
1307
|
- tool:all
|
|
1305
1308
|
- prompt:6b2c3d4e5f6a7b8c9d0e1f2a
|
package/dist/export.yml
CHANGED
|
@@ -6123,6 +6123,7 @@ components:
|
|
|
6123
6123
|
x-celigo-ai-guidance:
|
|
6124
6124
|
- Save-time validation accepts any string for id without checking it against the provider — set it only from a folder ID the user supplied or the UI folder browser stored; never fabricate one. To address a folder by path instead, set pathMode to relativePath and put the path in the adaptor's flat path field.
|
|
6125
6125
|
- '`id` and `pathMode` are validated as a pair: `pathMode: directoryId` without `id` fails with 422 `missing_required_field` ("File exports require the file.directory.id to have a value."), and `id` with any other pathMode fails with 422 `missing_required_field` ("File exports require the file.directory.pathMode to have a value.").'
|
|
6126
|
+
- 'On a Celigo Storage source (a Celigo APIs connection with `http.type: file`) the folder is resolved when the run or preview lists it, not at save: `pathMode: directoryId` with an `id` no folder carries fails with 422 `storage_parent_folder_not_found` "Parent folder not found in Celigo Storage. Verify the folder ID exists and the connection has access." (source `resource`); an `id` that is not a 24-character hex ObjectId fails with 422 `directory_id_invalid_format`; and with `pathMode: relativePath` a path in `http.relativeURI` that does not exist fails with 422 `storage_path_not_found` "Directory path ''<path>'' not found in Celigo Storage." Live-verified 2026-11-06 through POST /v1/connections/{_id}/export.'
|
|
6126
6127
|
properties:
|
|
6127
6128
|
pathMode:
|
|
6128
6129
|
type: string
|
|
@@ -6141,10 +6142,13 @@ components:
|
|
|
6141
6142
|
description: |-
|
|
6142
6143
|
Provider-native folder ID of the source directory (e.g. a Google Drive folder ID); set
|
|
6143
6144
|
when pathMode is directoryId. This is the file provider's own ID, not a Celigo resource ID.
|
|
6144
|
-
For Google Cloud Storage it is the object prefix inside the bucket, ending with
|
|
6145
|
+
For Google Cloud Storage it is the object prefix inside the bucket, ending with `/`; for
|
|
6146
|
+
Celigo Storage it is the folder's storage item id, and an id no folder carries fails the
|
|
6147
|
+
run with `storage_parent_folder_not_found`.
|
|
6145
6148
|
examples:
|
|
6146
6149
|
- 1KppvTTr4jKhJqwPAhGWN6SRwk5m45DL2
|
|
6147
6150
|
- inbound/orders/
|
|
6151
|
+
- 6aee8b26ddc1d57f005d3d66
|
|
6148
6152
|
name:
|
|
6149
6153
|
type: string
|
|
6150
6154
|
description: |-
|
|
@@ -7182,7 +7186,7 @@ components:
|
|
|
7182
7186
|
These fields can be used with any pagination method to detect the last page:
|
|
7183
7187
|
|
|
7184
7188
|
- `lastPageStatusCode` - Detect last page by HTTP status code
|
|
7185
|
-
- `lastPagePath` - JSON path to check for last page indicator
|
|
7189
|
+
- `lastPagePath` - JSON path to check for last page indicator (read only on a response whose status equals `lastPageStatusCode`, except on `method: body`, which reads it on every response)
|
|
7186
7190
|
- `lastPageValues` - Values at lastPagePath that indicate last page
|
|
7187
7191
|
- |-
|
|
7188
7192
|
## COMMON IMPLEMENTATION PATTERNS
|
|
@@ -7756,9 +7760,15 @@ components:
|
|
|
7756
7760
|
- response.records
|
|
7757
7761
|
lastPageStatusCode:
|
|
7758
7762
|
type: integer
|
|
7759
|
-
description: 'HTTP status code that signals the last page, replacing the default behavior of treating 404 as the end of pagination. When this status is received (any code but `200` paired with `lastPagePath`), paging stops and the response is not treated as an error. Set it when the API uses a non-404 code (such as 204 or 400) to indicate no more pages, or to `200` together with `lastPagePath` when the last page is an ordinary 200 response: then the response is parsed, its records are kept, and paging stops only when `lastPagePath` matches `lastPageValues`.'
|
|
7763
|
+
description: 'HTTP status code that signals the last page, replacing the default behavior of treating 404 as the end of pagination. When this status is received (any code but `200` paired with `lastPagePath`), paging stops and the response is not treated as an error. Set it when the API uses a non-404 code (such as 204 or 400) to indicate no more pages, or to `200` together with `lastPagePath` when the last page is an ordinary 200 response: then the response is parsed, its records are kept, and paging stops only when `lastPagePath` matches `lastPageValues`. With `page`, `skip` and `token` paging a `lastPagePath` condition is evaluated only on a response whose status equals this field, so leaving it unset switches that condition off; `method: body` reads `lastPagePath` on every response and needs no status code.'
|
|
7760
7764
|
x-celigo-ai-guidance:
|
|
7761
7765
|
- Specifies a custom HTTP status code that indicates the last page of results.
|
|
7766
|
+
- |-
|
|
7767
|
+
Leave this unset only with `method: body`. On `page`, `skip` and `token` paging a
|
|
7768
|
+
`lastPagePath`/`lastPageValues` stop condition is never evaluated without it: a `page`
|
|
7769
|
+
export with `lastPagePath: json.hasMore`, `lastPageValues: ["false"]` and no status code
|
|
7770
|
+
ran to its `maxPagePath` cap, while the same export with `lastPageStatusCode: 200` stopped
|
|
7771
|
+
after page 1 (live-verified 2026-11-06; `skip` behaved the same).
|
|
7762
7772
|
- |-
|
|
7763
7773
|
## FIELD BEHAVIOR
|
|
7764
7774
|
|
|
@@ -7813,7 +7823,7 @@ components:
|
|
|
7813
7823
|
- 500
|
|
7814
7824
|
lastPagePath:
|
|
7815
7825
|
type: string
|
|
7816
|
-
description: 'JSON path to a response-body field that signals the end of pagination, such as a "has more" flag or a cursor that empties on the last page. Must be used with `lastPageValues`, which lists the values at this path that stop paging.
|
|
7826
|
+
description: 'JSON path to a response-body field that signals the end of pagination, such as a "has more" flag or a cursor that empties on the last page. Must be used with `lastPageValues`, which lists the values at this path that stop paging. With `page`, `skip` and `token` paging the path is read only on a response whose status code equals `lastPageStatusCode` — without that field the condition is never evaluated — so pair it with `lastPageStatusCode: 200` for an ordinary last page; there, a response where the path is missing keeps paging. With `method: body` it is read on every response, and a response where the path is missing or null is itself treated as the last page.'
|
|
7817
7827
|
x-celigo-ai-guidance:
|
|
7818
7828
|
- |-
|
|
7819
7829
|
## FIELD BEHAVIOR
|
|
@@ -7864,18 +7874,24 @@ components:
|
|
|
7864
7874
|
```
|
|
7865
7875
|
|
|
7866
7876
|
IMPORTANT: The path is evaluated using JSON path notation, on the responses the
|
|
7867
|
-
method note below describes. If the path doesn't exist in the response,
|
|
7868
|
-
|
|
7877
|
+
method note below describes. If the path doesn't exist in the response, a
|
|
7878
|
+
status-code-gated check is not met and paging continues; on `method: body` a missing
|
|
7879
|
+
or null value at the path ends paging.
|
|
7869
7880
|
- |-
|
|
7870
|
-
On `
|
|
7871
|
-
|
|
7881
|
+
On `page`, `skip` and `token` paging the path is checked only on a response whose
|
|
7882
|
+
status code equals `lastPageStatusCode`; with no status code set the stop condition
|
|
7883
|
+
is never evaluated and paging runs on to `maxPagePath` / `maxCountPath`, an empty
|
|
7884
|
+
page or an exhausted token. For an API whose last page is an ordinary 200 (a GraphQL
|
|
7872
7885
|
`pageInfo.hasNextPage: false`), set `lastPageStatusCode: 200` with it; without that,
|
|
7873
|
-
paging goes on while the token at `path` is non-empty, so a last page that
|
|
7874
|
-
carries a cursor costs one more request. On `method: body` the path is read on
|
|
7875
|
-
every response, with no status code needed
|
|
7876
|
-
endpoint for `token` (two
|
|
7877
|
-
|
|
7878
|
-
|
|
7886
|
+
token paging goes on while the token at `path` is non-empty, so a last page that
|
|
7887
|
+
still carries a cursor costs one more request. On `method: body` the path is read on
|
|
7888
|
+
every response, with no status code needed, and a missing or null value at the path
|
|
7889
|
+
ends paging. Live-verified 2026-10-22 against an echo endpoint for `token` (two
|
|
7890
|
+
requests without `lastPageStatusCode`, one with 200) and `body` (stopped on the
|
|
7891
|
+
second response), and 2026-11-06 for `page` and `skip` (ran to the page cap without
|
|
7892
|
+
`lastPageStatusCode`, stopped on page 1 with `200`) and for `body` without a status
|
|
7893
|
+
code (stopped on page 1 on a match, on a missing path and on a null value); `url`
|
|
7894
|
+
paging was not verified.
|
|
7879
7895
|
examples:
|
|
7880
7896
|
- meta.isLastPage
|
|
7881
7897
|
- pagination.hasMore
|
|
@@ -7883,7 +7899,7 @@ components:
|
|
|
7883
7899
|
- error.message
|
|
7884
7900
|
lastPageValues:
|
|
7885
7901
|
type: array
|
|
7886
|
-
description: Values at `lastPagePath` that stop pagination; a match on any entry ends paging.
|
|
7902
|
+
description: 'Values at `lastPagePath` that stop pagination; a match on any entry ends paging. Entries are matched loosely against the value at the path: letter case and surrounding whitespace are ignored, a JSON boolean matches `"true"` / `"false"`, a number matches its decimal string (`"0"`), and an empty string matches `""`. A JSON null matches nothing, not even `"null"` — on `method: body` a null or missing field is itself the last-page signal, while under a status-code check it keeps paging. Required when `lastPagePath` is set.'
|
|
7887
7903
|
x-celigo-ai-guidance:
|
|
7888
7904
|
- Specifies which value(s) at the lastPagePath indicate the end of pagination.
|
|
7889
7905
|
- |-
|
|
@@ -7891,7 +7907,8 @@ components:
|
|
|
7891
7907
|
|
|
7892
7908
|
- REQUIRED when lastPagePath is used
|
|
7893
7909
|
- Array of string values (even for boolean or numeric comparisons)
|
|
7894
|
-
-
|
|
7910
|
+
- Matching ignores letter case and surrounding whitespace; a JSON boolean or number
|
|
7911
|
+
matches its string form
|
|
7895
7912
|
- Multiple values create an OR condition (any match indicates last page)
|
|
7896
7913
|
- |-
|
|
7897
7914
|
## IMPLEMENTATION GUIDANCE
|
|
@@ -7914,10 +7931,12 @@ components:
|
|
|
7914
7931
|
"lastPageValues": ["false", "0"]
|
|
7915
7932
|
```
|
|
7916
7933
|
|
|
7917
|
-
3. For empty
|
|
7934
|
+
3. For cursors that empty on the last page (an empty string matches `""`; a
|
|
7935
|
+
cursor that turns JSON null ends `method: body` paging by itself and never
|
|
7936
|
+
matches under a status-code check)
|
|
7918
7937
|
```json
|
|
7919
7938
|
"lastPagePath": "meta.nextCursor",
|
|
7920
|
-
"lastPageValues": ["
|
|
7939
|
+
"lastPageValues": [""]
|
|
7921
7940
|
```
|
|
7922
7941
|
|
|
7923
7942
|
4. For specific error messages
|
|
@@ -7929,21 +7948,28 @@ components:
|
|
|
7929
7948
|
## TECHNICAL DETAILS
|
|
7930
7949
|
|
|
7931
7950
|
- All values must be specified as strings, even for boolean or numeric comparisons
|
|
7932
|
-
- JSON
|
|
7951
|
+
- A JSON boolean matches "true" / "false" and a number matches its decimal string;
|
|
7952
|
+
letter case and surrounding whitespace are ignored (live-verified 2026-11-06 on
|
|
7953
|
+
`page` paging with `lastPageStatusCode: 200` and on `body` paging without one:
|
|
7954
|
+
`false`, `"FALSE"` and `" false "` each stopped against `["false"]`, `0` against
|
|
7955
|
+
`["0"]`, `""` against `[""]`)
|
|
7933
7956
|
- Empty string is represented as ""
|
|
7934
|
-
-
|
|
7935
|
-
|
|
7936
|
-
|
|
7937
|
-
|
|
7938
|
-
|
|
7957
|
+
- JSON null matches no entry, not even "null": on `method: body` a null or missing
|
|
7958
|
+
value ends paging on its own; under a status-code check it keeps paging (a `page`
|
|
7959
|
+
export with `lastPageStatusCode: 200`, `hasMore: null` and `["null"]` ran to its
|
|
7960
|
+
page cap)
|
|
7961
|
+
|
|
7962
|
+
IMPORTANT: Under a status-code check this field is only consulted when the
|
|
7963
|
+
lastPagePath exists in the response; on method: body a missing path ends paging
|
|
7964
|
+
before the values are consulted. Both lastPagePath and lastPageValues must be
|
|
7965
|
+
configured correctly for proper pagination termination.
|
|
7939
7966
|
items:
|
|
7940
7967
|
type: string
|
|
7941
7968
|
examples:
|
|
7942
7969
|
- - 'true'
|
|
7943
7970
|
- - 'false'
|
|
7944
7971
|
- '0'
|
|
7945
|
-
- - '
|
|
7946
|
-
- ''
|
|
7972
|
+
- - ''
|
|
7947
7973
|
- - No more pages
|
|
7948
7974
|
- End of results
|
|
7949
7975
|
maxPagePath:
|
package/dist/filestorage.yml
CHANGED
|
@@ -904,6 +904,7 @@ paths:
|
|
|
904
904
|
- mimeType
|
|
905
905
|
- type
|
|
906
906
|
- status
|
|
907
|
+
- lastModified
|
|
907
908
|
- _parentId
|
|
908
909
|
- __ancestorIds
|
|
909
910
|
- path
|
|
@@ -914,6 +915,7 @@ paths:
|
|
|
914
915
|
mimeType: File MIME type.
|
|
915
916
|
type: Item type (`file` or `folder`).
|
|
916
917
|
status: Item lifecycle status.
|
|
918
|
+
lastModified: Timestamp of the item's most recent metadata change.
|
|
917
919
|
_parentId: Parent folder id.
|
|
918
920
|
__ancestorIds: Ancestor folder id chain from the root.
|
|
919
921
|
path: Breadcrumb path built from ancestor folder names, e.g. `/invoices/2026/inv-001.pdf`.
|
|
@@ -967,6 +969,15 @@ paths:
|
|
|
967
969
|
size:
|
|
968
970
|
type: integer
|
|
969
971
|
description: File size in bytes. Present when requested via `fields`.
|
|
972
|
+
lastModified:
|
|
973
|
+
type: string
|
|
974
|
+
format: date-time
|
|
975
|
+
description: |-
|
|
976
|
+
Timestamp of the file's most recent metadata change,
|
|
977
|
+
as on the storage item. Present when requested via
|
|
978
|
+
`fields`.
|
|
979
|
+
examples:
|
|
980
|
+
- '2026-03-28T14:30:00.000Z'
|
|
970
981
|
path:
|
|
971
982
|
type: string
|
|
972
983
|
description: |-
|
|
@@ -2339,6 +2350,7 @@ paths:
|
|
|
2339
2350
|
- sso
|
|
2340
2351
|
- fileserver
|
|
2341
2352
|
- system
|
|
2353
|
+
- knowledge-fabric
|
|
2342
2354
|
x-enumDescriptions:
|
|
2343
2355
|
ui: Celigo UI
|
|
2344
2356
|
api: REST API
|
|
@@ -2351,6 +2363,7 @@ paths:
|
|
|
2351
2363
|
sso: Single sign-on sessions
|
|
2352
2364
|
fileserver: SFTP through the Celigo file server
|
|
2353
2365
|
system: Automated platform processes
|
|
2366
|
+
knowledge-fabric: Knowledge Fabric; its file reads are not logged, so this value matches no entries
|
|
2354
2367
|
examples:
|
|
2355
2368
|
- - ui
|
|
2356
2369
|
- api
|
|
@@ -3960,6 +3973,7 @@ components:
|
|
|
3960
3973
|
- sso
|
|
3961
3974
|
- fileserver
|
|
3962
3975
|
- system
|
|
3976
|
+
- knowledge-fabric
|
|
3963
3977
|
x-enumDescriptions:
|
|
3964
3978
|
ui: Celigo UI
|
|
3965
3979
|
api: REST API
|
|
@@ -3972,6 +3986,7 @@ components:
|
|
|
3972
3986
|
sso: Single sign-on sessions
|
|
3973
3987
|
fileserver: SFTP through the Celigo file server
|
|
3974
3988
|
system: Automated platform processes
|
|
3989
|
+
knowledge-fabric: Knowledge Fabric; its file reads are not logged, so this value matches no entries
|
|
3975
3990
|
examples:
|
|
3976
3991
|
- - ui
|
|
3977
3992
|
- api
|
package/dist/flow.yml
CHANGED
|
@@ -3978,7 +3978,9 @@ paths:
|
|
|
3978
3978
|
|
|
3979
3979
|
For each stage, `input` and `output` are arrays of record envelopes
|
|
3980
3980
|
(`{record, errors, traceKey}`) and may be `null` when the stage produced
|
|
3981
|
-
no records on that side.
|
|
3981
|
+
no records on that side. A router's step id returns a top-level `output`
|
|
3982
|
+
instead of `stages` and `errors`: one entry per record, with the
|
|
3983
|
+
`branches` positions the router sent it to and any routing `errors`. Use
|
|
3982
3984
|
`GET /v1/flows/{_id}/test/run/{runId}/{_stepId}/logs/requestAndResponse`
|
|
3983
3985
|
when you need the raw outbound HTTP request/response captures instead of
|
|
3984
3986
|
the staged record view.
|
|
@@ -4069,6 +4071,43 @@ paths:
|
|
|
4069
4071
|
items:
|
|
4070
4072
|
type: object
|
|
4071
4073
|
additionalProperties: true
|
|
4074
|
+
output:
|
|
4075
|
+
type: array
|
|
4076
|
+
description: |-
|
|
4077
|
+
Present instead of `stages` and `errors` when `_stepId` is a router id
|
|
4078
|
+
(a `routers[].id`, or the synthetic `main` router): one entry per record
|
|
4079
|
+
the router handled.
|
|
4080
|
+
items:
|
|
4081
|
+
type: object
|
|
4082
|
+
additionalProperties: true
|
|
4083
|
+
properties:
|
|
4084
|
+
record:
|
|
4085
|
+
type: object
|
|
4086
|
+
additionalProperties: true
|
|
4087
|
+
description: The record as it reached the router.
|
|
4088
|
+
traceKey:
|
|
4089
|
+
type:
|
|
4090
|
+
- string
|
|
4091
|
+
- 'null'
|
|
4092
|
+
description: |-
|
|
4093
|
+
Trace key of the record, rendered from the page generator's
|
|
4094
|
+
`traceKeyTemplate`; `null` when the export sets none.
|
|
4095
|
+
errors:
|
|
4096
|
+
type: array
|
|
4097
|
+
description: |-
|
|
4098
|
+
Routing errors for the record, such as `branch_not_defined` or
|
|
4099
|
+
`invalid_script_routing`; empty when it routed cleanly.
|
|
4100
|
+
items:
|
|
4101
|
+
type: object
|
|
4102
|
+
additionalProperties: true
|
|
4103
|
+
branches:
|
|
4104
|
+
type: array
|
|
4105
|
+
description: |-
|
|
4106
|
+
Zero-based positions, in the router's `branches`, chosen for the record;
|
|
4107
|
+
empty or absent when none was. A record with routing `errors` went down
|
|
4108
|
+
no branch, whatever this holds.
|
|
4109
|
+
items:
|
|
4110
|
+
type: integer
|
|
4072
4111
|
examples:
|
|
4073
4112
|
default:
|
|
4074
4113
|
summary: Two stages — request (input only) and parse (output only)
|
|
@@ -4093,6 +4132,25 @@ paths:
|
|
|
4093
4132
|
errors: []
|
|
4094
4133
|
traceKey: null
|
|
4095
4134
|
errors: []
|
|
4135
|
+
router_step:
|
|
4136
|
+
summary: Router step — one record routed, one rejected by the routing script
|
|
4137
|
+
value:
|
|
4138
|
+
output:
|
|
4139
|
+
- record:
|
|
4140
|
+
orderId: '1001'
|
|
4141
|
+
region: EU
|
|
4142
|
+
traceKey: '1001'
|
|
4143
|
+
errors: []
|
|
4144
|
+
branches:
|
|
4145
|
+
- 1
|
|
4146
|
+
- record:
|
|
4147
|
+
orderId: '1002'
|
|
4148
|
+
region: APAC
|
|
4149
|
+
traceKey: '1002'
|
|
4150
|
+
errors:
|
|
4151
|
+
- code: branch_not_defined
|
|
4152
|
+
source: resource
|
|
4153
|
+
stage: routing
|
|
4096
4154
|
'400':
|
|
4097
4155
|
$ref: '#/components/responses/400-bad-request'
|
|
4098
4156
|
'401':
|
|
@@ -5151,10 +5209,10 @@ components:
|
|
|
5151
5209
|
type: string
|
|
5152
5210
|
description: |
|
|
5153
5211
|
Label for the branch, unique within the router. On a branching router it is shown on
|
|
5154
|
-
the Flow Builder canvas
|
|
5155
|
-
|
|
5156
|
-
pass-through router has no visible label; the server
|
|
5157
|
-
name is omitted.
|
|
5212
|
+
the Flow Builder canvas and appears in logs — make it describe the branch's purpose. A
|
|
5213
|
+
routing script picks branches by their position in the router's `branches`, never by
|
|
5214
|
+
name. The single branch of a pass-through router has no visible label; the server
|
|
5215
|
+
stores an empty string when the name is omitted.
|
|
5158
5216
|
examples:
|
|
5159
5217
|
- enterprise_customers
|
|
5160
5218
|
- high_priority
|
|
@@ -5362,10 +5420,20 @@ components:
|
|
|
5362
5420
|
- 60a2c4e6f321d800129a1a3c
|
|
5363
5421
|
function:
|
|
5364
5422
|
type: string
|
|
5365
|
-
description:
|
|
5423
|
+
description: |-
|
|
5424
|
+
Function in the script that picks each record's branches. It receives the record as
|
|
5425
|
+
`options.record` and returns the zero-based positions of the chosen branches in
|
|
5426
|
+
`branches` as an array of integers, such as `[0]`, or `[0, 1]` under
|
|
5427
|
+
`all_matching_branches`; an empty array routes the record down no branch, without an error.
|
|
5366
5428
|
examples:
|
|
5367
5429
|
- routeByCustomerType
|
|
5368
5430
|
- calculateBranch
|
|
5431
|
+
x-celigo-ai-guidance:
|
|
5432
|
+
- |-
|
|
5433
|
+
Return branch positions, never branch names: a name, or a position with no branch,
|
|
5434
|
+
fails the record at the routing stage with `branch_not_defined` ("The branch is
|
|
5435
|
+
undefined or unavailable"). Under `first_matching_branch`, returning more than one
|
|
5436
|
+
position fails the record with `invalid_script_routing`.
|
|
5369
5437
|
branches:
|
|
5370
5438
|
type: array
|
|
5371
5439
|
description: |
|
|
@@ -5800,7 +5868,7 @@ components:
|
|
|
5800
5868
|
- 66a1f2c3b4d5e6f7a8b9c0d1
|
|
5801
5869
|
function:
|
|
5802
5870
|
type: string
|
|
5803
|
-
description: Function
|
|
5871
|
+
description: Function in that script that replaces the abstract router's `script.function`; it returns each record's branches as zero-based positions in the router's `branches`, such as `[0]`.
|
|
5804
5872
|
branches:
|
|
5805
5873
|
type: array
|
|
5806
5874
|
description: Override branch configurations
|
package/dist/import.yml
CHANGED
|
@@ -5814,7 +5814,7 @@ components:
|
|
|
5814
5814
|
per_page: Execute one SQL statement per page (batch) of records.
|
|
5815
5815
|
first_page: Execute the SQL statement once for the first page only, typically for setup or cleanup scripts.
|
|
5816
5816
|
bulk_load: Stage data as a file and load via database-native COPY/bulk mechanism for maximum throughput.
|
|
5817
|
-
x-celigo-ui-override: Required by the RDBMS import form (rdbms.queryType is required:true). The form defaults a new import to bulk_load wherever it offers that option — Snowflake always; Google BigQuery, Microsoft SQL Server (cloud connections only)
|
|
5817
|
+
x-celigo-ui-override: Required by the RDBMS import form (rdbms.queryType is required:true). The form defaults a new import to bulk_load wherever it offers that option — Snowflake always; Azure Synapse always, with the option disabled (and bulk_insert the default) while the connection routes through an on-premise agent (_agentId), its mssql.authType is not azure-service-principal, or its azuresynapse.staging lacks adlsGen2.storageAccount, adlsGen2.container or folder (imports/rdbms/azuresynapse.js getSynapseBulkLoadGap, no flag); Google BigQuery, Microsoft SQL Server (cloud connections only) and Amazon Redshift when the account's enableSizeBasedAggregation feature flag is on for that database (Redshift only once its updated import form has reached the account as well) — and to bulk_insert otherwise. Encoded to mirror the form so builders produce connectable configurations.
|
|
5818
5818
|
description: |-
|
|
5819
5819
|
Execution strategy for the SQL operation, which determines the required companion field: per_record, per_page, and first_page require `query`; bulk_insert requires `bulkInsert`; bulk_load requires `bulkLoad`.
|
|
5820
5820
|
Prefer the highest-performance type the operation supports: bulk_load (Snowflake, Google BigQuery, Microsoft SQL Server on a cloud connection, Azure Synapse and Amazon Redshift — handles INSERT, upsert via `bulkLoad.primaryKeys`, and custom merge or ignore-existing logic via `bulkLoad.overrideMergeQuery`), then bulk_insert for pure INSERTs, then per_page, then per_record only when the logic cannot be expressed as a batch operation.
|
|
@@ -5842,7 +5842,8 @@ components:
|
|
|
5842
5842
|
- No `primaryKeys` for pure INSERT (auto-generates INSERT)
|
|
5843
5843
|
- No `bulkInsert` beside it (the server drops a `bulkInsert` sent with bulk_load)
|
|
5844
5844
|
- **Amazon Redshift needs no AWS setup for bulk_load**: Celigo stages the files in Celigo-managed encrypted storage and Redshift loads them with COPY — no S3 bucket, IAM role, cluster role attachment or extra connection field. The save is accepted on either `redshift.authType` (accesskey and awsIam) and against a provisioned cluster or a Serverless workgroup alike. Never steer a Redshift import to bulk_insert for lack of setup.
|
|
5845
|
-
-
|
|
5845
|
+
- **Azure Synapse lists bulk_load without any flag**: the import form disables the option (and defaults a new import to bulk_insert) while the connection routes through an on-premise agent, authenticates with a database user instead of a service principal (`mssql.authType` other than `azure-service-principal`), or has no ADLS Gen2 staging (`azuresynapse.staging` with `adlsGen2.storageAccount`, `adlsGen2.container` and `folder`). The API saves a Synapse bulk_load import on any of those connections (201 on each, live-verified 2026-11-06), so author it only when the connection meets all three; otherwise the form shows the stored bulk_load disabled with the gap named, and under the authentication gap warns that the import will not run until the connection uses a service principal.
|
|
5846
|
+
- The import form shows the bulk_load option only when the account's `enableSizeBasedAggregation` feature flag is on for that database (BigQuery, SQL Server; Snowflake and Azure Synapse always show it). Amazon Redshift has two gates: its import form gains the option only with the form update that followed the bulk-load release — until that update reaches an account, no flag setting shows it there — and from then on the same flag gates it. The flag is the form's switch, not the API's — a Redshift bulk_load import saves on an account whose flag has no redshift entry (off, to the form) — so author it, and tell the user when the option appears on their import form: once the flag is on for the account, and on Redshift once the updated form has reached it as well. An answer that names only the flag is incomplete for Redshift. A form that does not list the option cannot show a stored bulk_load, and picking any listed query type there switches the import to that type (bulk_insert most often); today's forms keep a stored bulk_load through a plain save, while the updated Redshift form rewrites an unlisted bulk_load to bulk_insert on save — so until the option shows, a change to the import's query type goes through the API or this assistant, not the form.
|
|
5846
5847
|
|
|
5847
5848
|
**STEP 2: Database does NOT support bulk_load**
|
|
5848
5849
|
- **Pure INSERT**: → **USE `["bulk_insert"]`** (requires `bulkInsert` object)
|
|
@@ -6109,7 +6110,7 @@ components:
|
|
|
6109
6110
|
- 'The statement runs after the files are loaded into the staging table: read from `{{preMergeTemporaryTable}}` (also written `{{import.rdbms.bulkLoad.preMergeTemporaryTable}}`) and write to `{{tableName}}`; the form warns when the staging-table placeholder is missing. Use it for ignore-existing, conditional updates or multi-table work the generated MERGE cannot express — for example `INSERT INTO {{tableName}} (id, total) SELECT id, total FROM {{preMergeTemporaryTable}}`.'
|
|
6110
6111
|
aggregation:
|
|
6111
6112
|
type: object
|
|
6112
|
-
description: How the staged files are cut and handed to the database. The import form writes it for a new bulk-load import when the account's `enableSizeBasedAggregation` flag is on for that database (Snowflake included — its form offers bulk_load without the flag but writes `aggregation` only with it); the server fills `type` and `maxFileSizeInMB` when they are omitted, so `loadDataAsAvailable` is the only value to author.
|
|
6113
|
+
description: 'How the staged files are cut and handed to the database. The import form writes it for a new bulk-load import when the account''s `enableSizeBasedAggregation` flag is on for that database (Snowflake included — its form offers bulk_load without the flag but writes `aggregation` only with it; the Azure Synapse form writes `loadDataAsAvailable: false` for every new bulk-load import, no flag involved); the server fills `type` and `maxFileSizeInMB` when they are omitted, so `loadDataAsAvailable` is the only value to author.'
|
|
6113
6114
|
properties:
|
|
6114
6115
|
type:
|
|
6115
6116
|
type: string
|
|
@@ -9126,6 +9127,7 @@ components:
|
|
|
9126
9127
|
properties:
|
|
9127
9128
|
fileName:
|
|
9128
9129
|
type: string
|
|
9130
|
+
x-celigo-ui-override: 'Required by the import form (the shared file.fileName field is required: true), which seeds a new import with file-{{timestamp "x"}}.<ext> the first time the field appears with no value — the extension follows the file type (csv, json, xlsx, xml; edi for a file definition). The API neither requires nor defaults it: a save without fileName is accepted and stores none, and the run then names the file with a hyphenated UTC stamp and no extension (2026-11-07T02-26-06 on a Celigo Storage import). Encoded to mirror the form so builders produce complete configurations.'
|
|
9129
9131
|
description: |-
|
|
9130
9132
|
**REQUIRED for file-based imports.**
|
|
9131
9133
|
|
|
@@ -9135,16 +9137,17 @@ components:
|
|
|
9135
9137
|
(`{{record.fileMeta.fileName}}` from an FTP source, `fileMeta.name` from Google Drive).
|
|
9136
9138
|
|
|
9137
9139
|
**Default behavior**
|
|
9138
|
-
- When the user does not specify a file naming convention, **always default to timestamped filenames** using `{{timestamp}}` (e.g., `"items-{{timestamp}}.csv"`). This ensures each run produces a unique file and avoids overwriting previous exports.
|
|
9140
|
+
- When the user does not specify a file naming convention, **always default to timestamped filenames** using `{{timestamp "x"}}` — epoch milliseconds, the import form's own default for a new import (e.g., `"items-{{timestamp "x"}}.csv"`). This ensures each run produces a unique file and avoids overwriting previous exports. The bare `{{timestamp}}` renders an ISO stamp whose colons Celigo Storage refuses.
|
|
9139
9141
|
- Only use a fixed filename (without timestamp) if the user explicitly requests overwriting or a fixed name.
|
|
9142
|
+
- The save does not validate the name; a character the destination refuses fails the record when the file is written — on Celigo Storage with `STORAGE_INVALID_NAME` "File name contains invalid characters".
|
|
9140
9143
|
|
|
9141
9144
|
**Common patterns**
|
|
9142
|
-
- `"data-{{timestamp}}.json"` - Timestamped JSON file (DEFAULT — use this pattern when not specified)
|
|
9145
|
+
- `"data-{{timestamp "x"}}.json"` - Timestamped JSON file (DEFAULT — use this pattern when not specified)
|
|
9143
9146
|
- `"export-{{timestamp 'YYYY-MM-DD'}}.csv"` - Date-stamped CSV file
|
|
9144
9147
|
- `"{{recordType}}-backup.xml"` - Dynamic record type naming
|
|
9145
9148
|
|
|
9146
9149
|
**Examples**
|
|
9147
|
-
- `"customers-{{timestamp}}.json"`
|
|
9150
|
+
- `"customers-{{timestamp "x"}}.json"`
|
|
9148
9151
|
- `"orders-export.csv"`
|
|
9149
9152
|
- `"inventory-{{timestamp 'YYYY-MM-DD'}}.xlsx"`
|
|
9150
9153
|
|
|
@@ -9164,8 +9167,18 @@ components:
|
|
|
9164
9167
|
record on a `blob: true` import, the page's record array otherwise — so `record.`
|
|
9165
9168
|
previews empty there; judge by a run. The metadata field names are the exporting
|
|
9166
9169
|
provider's — read them off the incoming sample record.
|
|
9170
|
+
- |-
|
|
9171
|
+
The save does not validate the rendered name — a literal `a:b.json` and a bare
|
|
9172
|
+
`{{timestamp}}` both save 201 — so an unsupported character surfaces only when the file
|
|
9173
|
+
is written. On Celigo Storage the record fails with `STORAGE_INVALID_NAME` "File name
|
|
9174
|
+
contains invalid characters" (source `connector`), which a colon triggers; the bare
|
|
9175
|
+
`{{timestamp}}` renders an ISO stamp with colons, while `{{timestamp "x"}}` (the import
|
|
9176
|
+
form's default, epoch milliseconds) writes. A file-generation import saved with no
|
|
9177
|
+
`fileName` still writes, naming the file with a hyphenated UTC stamp and no extension
|
|
9178
|
+
(`2026-11-07T02-26-06`), so always set one. Live-verified 2026-11-06 with flow runs on
|
|
9179
|
+
a Celigo Storage import.
|
|
9167
9180
|
examples:
|
|
9168
|
-
- customers-{{timestamp}}.json
|
|
9181
|
+
- customers-{{timestamp "x"}}.json
|
|
9169
9182
|
- orders-export.csv
|
|
9170
9183
|
skipAggregation:
|
|
9171
9184
|
type: boolean
|
|
@@ -9676,6 +9689,7 @@ components:
|
|
|
9676
9689
|
file path in `http.relativeURI`.
|
|
9677
9690
|
x-celigo-ai-guidance:
|
|
9678
9691
|
- Save-time validation accepts any string for id without checking it against the provider — set it only from a folder ID the user supplied or the UI folder browser stored; never fabricate one. To address a folder by path instead, set pathMode to relativePath and put the path in the adaptor's flat path field.
|
|
9692
|
+
- 'On a Celigo Storage destination (a Celigo APIs connection with `http.type: file`) the folder is resolved when the file is written, not at save: `pathMode: directoryId` with an `id` no folder carries saves 201 and the run''s records then fail with `storage_parent_folder_not_found` "Parent folder not found in Celigo Storage. Verify the folder ID exists and the connection has access." (source `resource`), whereas `pathMode: relativePath` creates a path in `http.relativeURI` that does not exist yet and writes into it. Live-verified 2026-11-06 with flow runs.'
|
|
9679
9693
|
properties:
|
|
9680
9694
|
pathMode:
|
|
9681
9695
|
type: string
|
|
@@ -9694,8 +9708,11 @@ components:
|
|
|
9694
9708
|
description: |-
|
|
9695
9709
|
Provider-native folder ID of the destination directory (e.g. a Google Drive folder ID);
|
|
9696
9710
|
set when pathMode is directoryId. This is the file provider's own ID, not a Celigo resource ID.
|
|
9711
|
+
For Celigo Storage it is the folder's storage item id, and an id no folder carries fails
|
|
9712
|
+
the run with `storage_parent_folder_not_found`.
|
|
9697
9713
|
examples:
|
|
9698
9714
|
- 1KppvTTr4jKhJqwPAhGWN6SRwk5m45DL2
|
|
9715
|
+
- 6aee8b26ddc1d57f005d3d66
|
|
9699
9716
|
name:
|
|
9700
9717
|
type: string
|
|
9701
9718
|
description: |-
|
package/dist/integration.yml
CHANGED
|
@@ -283,18 +283,26 @@ paths:
|
|
|
283
283
|
summary: Patch an integration
|
|
284
284
|
description: |-
|
|
285
285
|
Partially updates an integration using a JSON Patch document (RFC 6902).
|
|
286
|
-
|
|
287
|
-
|
|
286
|
+
`replace` and `add` set a value (a currently unset field is fine) and
|
|
287
|
+
`remove` unsets it; `copy` and `test` are rejected. Only these paths are
|
|
288
|
+
accepted:
|
|
288
289
|
|
|
289
290
|
| Path | Description |
|
|
290
291
|
|------|-------------|
|
|
291
292
|
| `/settings` | Integration settings object |
|
|
292
293
|
| `/flowGroupings` | Flow grouping configuration |
|
|
293
294
|
| `/apiGroupings` | API grouping configuration |
|
|
295
|
+
| `/iLMIgnore` | Fields lifecycle pulls and reverts leave untouched, keyed by resource type (the integration's `iLMIgnore` field); a field path the type does not allow is rejected with 422 |
|
|
296
|
+
| `/tag` | Label that tells apart installs of the same Integration App |
|
|
297
|
+
| `/celigoAgentAutoRunMode` | Celigo Agent auto-run toggle |
|
|
298
|
+
| `/version` | Installed Integration App version, normally written by the app's update workflow |
|
|
299
|
+
| `/updateInProgress` | Integration App update flag, normally managed by the update workflow |
|
|
294
300
|
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
301
|
+
Any other path — including `/name` and `/description` — fails with 422
|
|
302
|
+
`<path> is not a whitelisted property`, and a `null` value is rejected. A
|
|
303
|
+
successful patch returns no body, so the server-assigned `_id` of a grouping
|
|
304
|
+
added through `/flowGroupings` or `/apiGroupings` is only available from a
|
|
305
|
+
follow-up `GET`.
|
|
298
306
|
operationId: patchIntegration
|
|
299
307
|
tags:
|
|
300
308
|
- Integrations
|
|
@@ -323,6 +331,16 @@ paths:
|
|
|
323
331
|
path: /settings
|
|
324
332
|
value:
|
|
325
333
|
region: us-west-2
|
|
334
|
+
set_ilm_ignore:
|
|
335
|
+
summary: Keep flow names and one setting out of lifecycle pulls
|
|
336
|
+
value:
|
|
337
|
+
- op: replace
|
|
338
|
+
path: /iLMIgnore
|
|
339
|
+
value:
|
|
340
|
+
integration:
|
|
341
|
+
- settings.region
|
|
342
|
+
flow:
|
|
343
|
+
- name
|
|
326
344
|
responses:
|
|
327
345
|
'204':
|
|
328
346
|
description: Integration patched successfully
|
|
@@ -331,7 +349,27 @@ paths:
|
|
|
331
349
|
'404':
|
|
332
350
|
$ref: '#/components/responses/404-not-found'
|
|
333
351
|
'422':
|
|
334
|
-
|
|
352
|
+
description: Patch rejected.
|
|
353
|
+
content:
|
|
354
|
+
application/json:
|
|
355
|
+
schema:
|
|
356
|
+
$ref: '#/components/schemas/Error'
|
|
357
|
+
examples:
|
|
358
|
+
non_whitelisted:
|
|
359
|
+
summary: Path is not patchable
|
|
360
|
+
value:
|
|
361
|
+
errors:
|
|
362
|
+
- message: /name is not a whitelisted property
|
|
363
|
+
unsupported_operation:
|
|
364
|
+
summary: Unsupported operation (`copy` or `test`)
|
|
365
|
+
value:
|
|
366
|
+
errors:
|
|
367
|
+
- message: Operation 'copy' is not supported
|
|
368
|
+
invalid_ilm_ignore_path:
|
|
369
|
+
summary: iLMIgnore names a field its resource type does not allow
|
|
370
|
+
value:
|
|
371
|
+
errors:
|
|
372
|
+
- message: Invalid path expression `notARealField` for flow. Path expression not supported
|
|
335
373
|
delete:
|
|
336
374
|
x-internal: false
|
|
337
375
|
summary: Delete an integration
|
|
@@ -4528,7 +4566,12 @@ components:
|
|
|
4528
4566
|
cache name), and must be removed before the cache can be deregistered.
|
|
4529
4567
|
iLMIgnore:
|
|
4530
4568
|
type: object
|
|
4531
|
-
description:
|
|
4569
|
+
description: |-
|
|
4570
|
+
Fields that integration lifecycle pulls and reverts leave untouched, keyed by resource type
|
|
4571
|
+
(`integration`, `flow`, `export`, ...) with an array of field paths for each. Change it with
|
|
4572
|
+
`PATCH /v1/integrations/{_id}` on `/iLMIgnore` and read the saved value back here; a field
|
|
4573
|
+
path the resource type does not allow is rejected with 422 ("Invalid path expression
|
|
4574
|
+
`<path>` for <type>. Path expression not supported").
|
|
4532
4575
|
additionalProperties: true
|
|
4533
4576
|
ResourceResponse:
|
|
4534
4577
|
type: object
|
package/dist/mcp-server.yml
CHANGED
|
@@ -3200,7 +3200,11 @@ components:
|
|
|
3200
3200
|
disabled:
|
|
3201
3201
|
type: boolean
|
|
3202
3202
|
default: true
|
|
3203
|
-
description:
|
|
3203
|
+
description: |-
|
|
3204
|
+
When true, this tool is disabled and will not be exposed to MCP clients:
|
|
3205
|
+
`tools/list` leaves it out, and a `tools/call` that still names it gets
|
|
3206
|
+
JSON-RPC error -32601 ("Tool not found: …") with `error.data.hint`
|
|
3207
|
+
`refresh_tools_list`, the same answer as for an unknown name.
|
|
3204
3208
|
x-celigo-ai-guidance:
|
|
3205
3209
|
- |-
|
|
3206
3210
|
Indicates whether this tool is disabled within the MCP server;
|
|
@@ -3261,7 +3265,12 @@ components:
|
|
|
3261
3265
|
disabled:
|
|
3262
3266
|
type: boolean
|
|
3263
3267
|
default: true
|
|
3264
|
-
description:
|
|
3268
|
+
description: |-
|
|
3269
|
+
When true, this API tool is disabled and will not be exposed to MCP
|
|
3270
|
+
clients: `tools/list` leaves it out, and a `tools/call` that still names
|
|
3271
|
+
it gets JSON-RPC error -32601 ("Tool not found: …") with
|
|
3272
|
+
`error.data.hint` `refresh_tools_list`, the same answer as for an
|
|
3273
|
+
unknown name.
|
|
3265
3274
|
x-celigo-ai-guidance:
|
|
3266
3275
|
- Whether this API tool is disabled within the MCP server.
|
|
3267
3276
|
examples:
|
|
@@ -3496,8 +3505,9 @@ components:
|
|
|
3496
3505
|
Server-generated identifier for the prompt — the grant handle
|
|
3497
3506
|
referenced as `prompt:<_id>` in end-user, group, and role resource
|
|
3498
3507
|
grants and in `permissionSets[]._promptIds` (older grants written as
|
|
3499
|
-
`tool:<_id>` still validate but are not reported by effective
|
|
3500
|
-
access
|
|
3508
|
+
`tool:<_id>` still validate, but they are not reported by effective
|
|
3509
|
+
access and do not open the prompt for end-users on the MCP
|
|
3510
|
+
endpoint). Identity is preserved across updates by matching on `name`,
|
|
3501
3511
|
so renaming a prompt assigns a new `_id` and breaks grants that
|
|
3502
3512
|
reference the old one.
|
|
3503
3513
|
examples:
|
|
@@ -3777,8 +3787,11 @@ components:
|
|
|
3777
3787
|
readOnly: true
|
|
3778
3788
|
description: |-
|
|
3779
3789
|
Server-generated identifier for the row — the grant handle referenced
|
|
3780
|
-
as `tool:<_id>`
|
|
3781
|
-
|
|
3790
|
+
in resource grants as `tool:<_id>` for a tool row and `prompt:<_id>`
|
|
3791
|
+
for a prompt row. Tool rows are also accepted in
|
|
3792
|
+
`permissionSets[]._toolIds`. A `tool:<_id>` grant on a prompt row
|
|
3793
|
+
still validates but does not open the prompt for end-users on the
|
|
3794
|
+
MCP endpoint. Preserved across PUT while the row keeps
|
|
3782
3795
|
its `upstreamName`.
|
|
3783
3796
|
examples:
|
|
3784
3797
|
- 6ab1ebd05af4c5a3ea6b0959
|
|
@@ -11064,16 +11077,17 @@ components:
|
|
|
11064
11077
|
Capability string granting access on this server. `tool:`, `api:`,
|
|
11065
11078
|
`prompt:`, and `resource:` take either `all` or a 24-hex id — a
|
|
11066
11079
|
`tools[]._toolId` or upstream tool row `_id`, an `apis[]._apiId`, a
|
|
11067
|
-
`prompts[]._id`, or a `resources[]._id` —
|
|
11068
|
-
`permissionSets[]._id` or `all`. Each `:all` covers
|
|
11069
|
-
`pset:all` covers every permission set on this server,
|
|
11070
|
-
included, and reaches only what the sets contain — an
|
|
11071
|
-
prompt in no set stays denied. Grant prompts with
|
|
11080
|
+
`prompts[]._id` or upstream prompt row `_id`, or a `resources[]._id` —
|
|
11081
|
+
and `pset:` takes a `permissionSets[]._id` or `all`. Each `:all` covers
|
|
11082
|
+
only its own kind; `pset:all` covers every permission set on this server,
|
|
11083
|
+
sets added later included, and reaches only what the sets contain — an
|
|
11084
|
+
attached tool or prompt in no set stays denied. Grant prompts with
|
|
11072
11085
|
`prompt:<_id>` — older grants written as `tool:<prompt _id>` still
|
|
11073
|
-
validate but are not reported by effective access
|
|
11074
|
-
|
|
11075
|
-
|
|
11076
|
-
|
|
11086
|
+
validate, but they are not reported by effective access and do not open
|
|
11087
|
+
the prompt on the MCP endpoint (`prompts/list` hides it and `prompts/get`
|
|
11088
|
+
is denied). Any other shape is rejected with 400 `validation_failed`
|
|
11089
|
+
("Invalid capability"), and an id not attached to this server with 400
|
|
11090
|
+
`validation_failed` naming the missing item.
|
|
11077
11091
|
examples:
|
|
11078
11092
|
- tool:all
|
|
11079
11093
|
- prompt:6b2c3d4e5f6a7b8c9d0e1f2a
|
package/dist/template.yml
CHANGED
|
@@ -458,7 +458,7 @@ paths:
|
|
|
458
458
|
value:
|
|
459
459
|
errors:
|
|
460
460
|
- code: invalid_template
|
|
461
|
-
message: MCP server templates cannot be installed through the Integration template path.
|
|
461
|
+
message: MCP server templates cannot be installed through the Integration template path. Use Upload MCP.
|
|
462
462
|
missingStack:
|
|
463
463
|
summary: The preview reported stackRequired and no _stackId was sent
|
|
464
464
|
value:
|
package/dist/tool.yml
CHANGED
|
@@ -2667,6 +2667,9 @@ paths:
|
|
|
2667
2667
|
Returns the stage-by-stage result of a single step from a prior tool test
|
|
2668
2668
|
run. Each entry in `stages[]` describes one stage (e.g. `request`,
|
|
2669
2669
|
`parse`, `router`, `input`) with its `input`, `output`, and any `errors`.
|
|
2670
|
+
A router's step id returns a top-level `output` instead of `stages` and
|
|
2671
|
+
`errors`: one entry per input, with the `branches` position the router
|
|
2672
|
+
chose and any routing `errors`.
|
|
2670
2673
|
|
|
2671
2674
|
The `runId` is the `flowJob._id` returned by
|
|
2672
2675
|
`POST /v1/tools/{_id}/test/run`. The `{_stepId}` is one of the step ids
|
|
@@ -2755,9 +2758,41 @@ paths:
|
|
|
2755
2758
|
items:
|
|
2756
2759
|
type: object
|
|
2757
2760
|
additionalProperties: true
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
+
output:
|
|
2762
|
+
type: array
|
|
2763
|
+
description: |-
|
|
2764
|
+
Present instead of `stages` and `errors` when `_stepId` is a router id
|
|
2765
|
+
(a `routers[].id`, or the synthetic `main` router): one entry per input
|
|
2766
|
+
the router handled.
|
|
2767
|
+
items:
|
|
2768
|
+
type: object
|
|
2769
|
+
additionalProperties: true
|
|
2770
|
+
properties:
|
|
2771
|
+
record:
|
|
2772
|
+
type: object
|
|
2773
|
+
additionalProperties: true
|
|
2774
|
+
description: The input as it reached the router.
|
|
2775
|
+
traceKey:
|
|
2776
|
+
type:
|
|
2777
|
+
- string
|
|
2778
|
+
- 'null'
|
|
2779
|
+
description: Trace key of the input, or `null` when none was computed for it.
|
|
2780
|
+
errors:
|
|
2781
|
+
type: array
|
|
2782
|
+
description: |-
|
|
2783
|
+
Routing errors for the input, such as `branch_not_defined` or
|
|
2784
|
+
`record_not_routed_to_any_branch`; empty when it routed cleanly.
|
|
2785
|
+
items:
|
|
2786
|
+
type: object
|
|
2787
|
+
additionalProperties: true
|
|
2788
|
+
branches:
|
|
2789
|
+
type: array
|
|
2790
|
+
description: |-
|
|
2791
|
+
Zero-based position, in the router's `branches`, chosen for the input;
|
|
2792
|
+
empty or absent when none was. An input with routing `errors` went down
|
|
2793
|
+
no branch, whatever this holds.
|
|
2794
|
+
items:
|
|
2795
|
+
type: integer
|
|
2761
2796
|
examples:
|
|
2762
2797
|
default:
|
|
2763
2798
|
summary: Two stages — request consumed input, parse produced output
|
|
@@ -2782,6 +2817,17 @@ paths:
|
|
|
2782
2817
|
traceKey: null
|
|
2783
2818
|
input: null
|
|
2784
2819
|
errors: []
|
|
2820
|
+
router_step:
|
|
2821
|
+
summary: Router step — the input went to the second branch
|
|
2822
|
+
value:
|
|
2823
|
+
output:
|
|
2824
|
+
- record:
|
|
2825
|
+
orderId: '1001'
|
|
2826
|
+
region: EU
|
|
2827
|
+
traceKey: '1001'
|
|
2828
|
+
errors: []
|
|
2829
|
+
branches:
|
|
2830
|
+
- 1
|
|
2785
2831
|
'400':
|
|
2786
2832
|
$ref: '#/components/responses/400-bad-request'
|
|
2787
2833
|
'401':
|
|
@@ -6945,8 +6991,6 @@ components:
|
|
|
6945
6991
|
type: object
|
|
6946
6992
|
description: |
|
|
6947
6993
|
Script configuration when routeRecordsUsing is "script".
|
|
6948
|
-
|
|
6949
|
-
The function should return the name of the branch to route to.
|
|
6950
6994
|
properties:
|
|
6951
6995
|
_scriptId:
|
|
6952
6996
|
type: string
|
|
@@ -6957,10 +7001,20 @@ components:
|
|
|
6957
7001
|
- 60a2c4e6f321d800129a1a3c
|
|
6958
7002
|
function:
|
|
6959
7003
|
type: string
|
|
6960
|
-
description:
|
|
7004
|
+
description: |-
|
|
7005
|
+
Function in the script that picks the branch for the input. It receives the input as
|
|
7006
|
+
`options.record` and returns the branch's zero-based position in `branches` as a
|
|
7007
|
+
one-item array, such as `[0]`.
|
|
6961
7008
|
examples:
|
|
6962
7009
|
- routeInput
|
|
6963
7010
|
- determineBranch
|
|
7011
|
+
x-celigo-ai-guidance:
|
|
7012
|
+
- |-
|
|
7013
|
+
Return a branch position, never a branch name: a name, or a position with no branch,
|
|
7014
|
+
fails the input with `branch_not_defined`; more than one position fails it with
|
|
7015
|
+
`invalid_script_routing`; and an empty array fails it with
|
|
7016
|
+
`record_not_routed_to_any_branch` ("Record did not match any branch routing criteria
|
|
7017
|
+
during tool execution").
|
|
6964
7018
|
branches:
|
|
6965
7019
|
type: array
|
|
6966
7020
|
description: |
|
|
@@ -17874,7 +17928,7 @@ components:
|
|
|
17874
17928
|
per_page: Execute one SQL statement per page (batch) of records.
|
|
17875
17929
|
first_page: Execute the SQL statement once for the first page only, typically for setup or cleanup scripts.
|
|
17876
17930
|
bulk_load: Stage data as a file and load via database-native COPY/bulk mechanism for maximum throughput.
|
|
17877
|
-
x-celigo-ui-override: Required by the RDBMS import form (rdbms.queryType is required:true). The form defaults a new import to bulk_load wherever it offers that option — Snowflake always; Google BigQuery, Microsoft SQL Server (cloud connections only)
|
|
17931
|
+
x-celigo-ui-override: Required by the RDBMS import form (rdbms.queryType is required:true). The form defaults a new import to bulk_load wherever it offers that option — Snowflake always; Azure Synapse always, with the option disabled (and bulk_insert the default) while the connection routes through an on-premise agent (_agentId), its mssql.authType is not azure-service-principal, or its azuresynapse.staging lacks adlsGen2.storageAccount, adlsGen2.container or folder (imports/rdbms/azuresynapse.js getSynapseBulkLoadGap, no flag); Google BigQuery, Microsoft SQL Server (cloud connections only) and Amazon Redshift when the account's enableSizeBasedAggregation feature flag is on for that database (Redshift only once its updated import form has reached the account as well) — and to bulk_insert otherwise. Encoded to mirror the form so builders produce connectable configurations.
|
|
17878
17932
|
description: |-
|
|
17879
17933
|
Execution strategy for the SQL operation, which determines the required companion field: per_record, per_page, and first_page require `query`; bulk_insert requires `bulkInsert`; bulk_load requires `bulkLoad`.
|
|
17880
17934
|
Prefer the highest-performance type the operation supports: bulk_load (Snowflake, Google BigQuery, Microsoft SQL Server on a cloud connection, Azure Synapse and Amazon Redshift — handles INSERT, upsert via `bulkLoad.primaryKeys`, and custom merge or ignore-existing logic via `bulkLoad.overrideMergeQuery`), then bulk_insert for pure INSERTs, then per_page, then per_record only when the logic cannot be expressed as a batch operation.
|
|
@@ -17902,7 +17956,8 @@ components:
|
|
|
17902
17956
|
- No `primaryKeys` for pure INSERT (auto-generates INSERT)
|
|
17903
17957
|
- No `bulkInsert` beside it (the server drops a `bulkInsert` sent with bulk_load)
|
|
17904
17958
|
- **Amazon Redshift needs no AWS setup for bulk_load**: Celigo stages the files in Celigo-managed encrypted storage and Redshift loads them with COPY — no S3 bucket, IAM role, cluster role attachment or extra connection field. The save is accepted on either `redshift.authType` (accesskey and awsIam) and against a provisioned cluster or a Serverless workgroup alike. Never steer a Redshift import to bulk_insert for lack of setup.
|
|
17905
|
-
-
|
|
17959
|
+
- **Azure Synapse lists bulk_load without any flag**: the import form disables the option (and defaults a new import to bulk_insert) while the connection routes through an on-premise agent, authenticates with a database user instead of a service principal (`mssql.authType` other than `azure-service-principal`), or has no ADLS Gen2 staging (`azuresynapse.staging` with `adlsGen2.storageAccount`, `adlsGen2.container` and `folder`). The API saves a Synapse bulk_load import on any of those connections (201 on each, live-verified 2026-11-06), so author it only when the connection meets all three; otherwise the form shows the stored bulk_load disabled with the gap named, and under the authentication gap warns that the import will not run until the connection uses a service principal.
|
|
17960
|
+
- The import form shows the bulk_load option only when the account's `enableSizeBasedAggregation` feature flag is on for that database (BigQuery, SQL Server; Snowflake and Azure Synapse always show it). Amazon Redshift has two gates: its import form gains the option only with the form update that followed the bulk-load release — until that update reaches an account, no flag setting shows it there — and from then on the same flag gates it. The flag is the form's switch, not the API's — a Redshift bulk_load import saves on an account whose flag has no redshift entry (off, to the form) — so author it, and tell the user when the option appears on their import form: once the flag is on for the account, and on Redshift once the updated form has reached it as well. An answer that names only the flag is incomplete for Redshift. A form that does not list the option cannot show a stored bulk_load, and picking any listed query type there switches the import to that type (bulk_insert most often); today's forms keep a stored bulk_load through a plain save, while the updated Redshift form rewrites an unlisted bulk_load to bulk_insert on save — so until the option shows, a change to the import's query type goes through the API or this assistant, not the form.
|
|
17906
17961
|
|
|
17907
17962
|
**STEP 2: Database does NOT support bulk_load**
|
|
17908
17963
|
- **Pure INSERT**: → **USE `["bulk_insert"]`** (requires `bulkInsert` object)
|
|
@@ -18169,7 +18224,7 @@ components:
|
|
|
18169
18224
|
- 'The statement runs after the files are loaded into the staging table: read from `{{preMergeTemporaryTable}}` (also written `{{import.rdbms.bulkLoad.preMergeTemporaryTable}}`) and write to `{{tableName}}`; the form warns when the staging-table placeholder is missing. Use it for ignore-existing, conditional updates or multi-table work the generated MERGE cannot express — for example `INSERT INTO {{tableName}} (id, total) SELECT id, total FROM {{preMergeTemporaryTable}}`.'
|
|
18170
18225
|
aggregation:
|
|
18171
18226
|
type: object
|
|
18172
|
-
description: How the staged files are cut and handed to the database. The import form writes it for a new bulk-load import when the account's `enableSizeBasedAggregation` flag is on for that database (Snowflake included — its form offers bulk_load without the flag but writes `aggregation` only with it); the server fills `type` and `maxFileSizeInMB` when they are omitted, so `loadDataAsAvailable` is the only value to author.
|
|
18227
|
+
description: 'How the staged files are cut and handed to the database. The import form writes it for a new bulk-load import when the account''s `enableSizeBasedAggregation` flag is on for that database (Snowflake included — its form offers bulk_load without the flag but writes `aggregation` only with it; the Azure Synapse form writes `loadDataAsAvailable: false` for every new bulk-load import, no flag involved); the server fills `type` and `maxFileSizeInMB` when they are omitted, so `loadDataAsAvailable` is the only value to author.'
|
|
18173
18228
|
properties:
|
|
18174
18229
|
type:
|
|
18175
18230
|
type: string
|
|
@@ -21186,6 +21241,7 @@ components:
|
|
|
21186
21241
|
properties:
|
|
21187
21242
|
fileName:
|
|
21188
21243
|
type: string
|
|
21244
|
+
x-celigo-ui-override: 'Required by the import form (the shared file.fileName field is required: true), which seeds a new import with file-{{timestamp "x"}}.<ext> the first time the field appears with no value — the extension follows the file type (csv, json, xlsx, xml; edi for a file definition). The API neither requires nor defaults it: a save without fileName is accepted and stores none, and the run then names the file with a hyphenated UTC stamp and no extension (2026-11-07T02-26-06 on a Celigo Storage import). Encoded to mirror the form so builders produce complete configurations.'
|
|
21189
21245
|
description: |-
|
|
21190
21246
|
**REQUIRED for file-based imports.**
|
|
21191
21247
|
|
|
@@ -21195,16 +21251,17 @@ components:
|
|
|
21195
21251
|
(`{{record.fileMeta.fileName}}` from an FTP source, `fileMeta.name` from Google Drive).
|
|
21196
21252
|
|
|
21197
21253
|
**Default behavior**
|
|
21198
|
-
- When the user does not specify a file naming convention, **always default to timestamped filenames** using `{{timestamp}}` (e.g., `"items-{{timestamp}}.csv"`). This ensures each run produces a unique file and avoids overwriting previous exports.
|
|
21254
|
+
- When the user does not specify a file naming convention, **always default to timestamped filenames** using `{{timestamp "x"}}` — epoch milliseconds, the import form's own default for a new import (e.g., `"items-{{timestamp "x"}}.csv"`). This ensures each run produces a unique file and avoids overwriting previous exports. The bare `{{timestamp}}` renders an ISO stamp whose colons Celigo Storage refuses.
|
|
21199
21255
|
- Only use a fixed filename (without timestamp) if the user explicitly requests overwriting or a fixed name.
|
|
21256
|
+
- The save does not validate the name; a character the destination refuses fails the record when the file is written — on Celigo Storage with `STORAGE_INVALID_NAME` "File name contains invalid characters".
|
|
21200
21257
|
|
|
21201
21258
|
**Common patterns**
|
|
21202
|
-
- `"data-{{timestamp}}.json"` - Timestamped JSON file (DEFAULT — use this pattern when not specified)
|
|
21259
|
+
- `"data-{{timestamp "x"}}.json"` - Timestamped JSON file (DEFAULT — use this pattern when not specified)
|
|
21203
21260
|
- `"export-{{timestamp 'YYYY-MM-DD'}}.csv"` - Date-stamped CSV file
|
|
21204
21261
|
- `"{{recordType}}-backup.xml"` - Dynamic record type naming
|
|
21205
21262
|
|
|
21206
21263
|
**Examples**
|
|
21207
|
-
- `"customers-{{timestamp}}.json"`
|
|
21264
|
+
- `"customers-{{timestamp "x"}}.json"`
|
|
21208
21265
|
- `"orders-export.csv"`
|
|
21209
21266
|
- `"inventory-{{timestamp 'YYYY-MM-DD'}}.xlsx"`
|
|
21210
21267
|
|
|
@@ -21224,8 +21281,18 @@ components:
|
|
|
21224
21281
|
record on a `blob: true` import, the page's record array otherwise — so `record.`
|
|
21225
21282
|
previews empty there; judge by a run. The metadata field names are the exporting
|
|
21226
21283
|
provider's — read them off the incoming sample record.
|
|
21227
|
-
|
|
21228
|
-
|
|
21284
|
+
- |-
|
|
21285
|
+
The save does not validate the rendered name — a literal `a:b.json` and a bare
|
|
21286
|
+
`{{timestamp}}` both save 201 — so an unsupported character surfaces only when the file
|
|
21287
|
+
is written. On Celigo Storage the record fails with `STORAGE_INVALID_NAME` "File name
|
|
21288
|
+
contains invalid characters" (source `connector`), which a colon triggers; the bare
|
|
21289
|
+
`{{timestamp}}` renders an ISO stamp with colons, while `{{timestamp "x"}}` (the import
|
|
21290
|
+
form's default, epoch milliseconds) writes. A file-generation import saved with no
|
|
21291
|
+
`fileName` still writes, naming the file with a hyphenated UTC stamp and no extension
|
|
21292
|
+
(`2026-11-07T02-26-06`), so always set one. Live-verified 2026-11-06 with flow runs on
|
|
21293
|
+
a Celigo Storage import.
|
|
21294
|
+
examples:
|
|
21295
|
+
- customers-{{timestamp "x"}}.json
|
|
21229
21296
|
- orders-export.csv
|
|
21230
21297
|
skipAggregation:
|
|
21231
21298
|
type: boolean
|
|
@@ -21736,6 +21803,7 @@ components:
|
|
|
21736
21803
|
file path in `http.relativeURI`.
|
|
21737
21804
|
x-celigo-ai-guidance:
|
|
21738
21805
|
- Save-time validation accepts any string for id without checking it against the provider — set it only from a folder ID the user supplied or the UI folder browser stored; never fabricate one. To address a folder by path instead, set pathMode to relativePath and put the path in the adaptor's flat path field.
|
|
21806
|
+
- 'On a Celigo Storage destination (a Celigo APIs connection with `http.type: file`) the folder is resolved when the file is written, not at save: `pathMode: directoryId` with an `id` no folder carries saves 201 and the run''s records then fail with `storage_parent_folder_not_found` "Parent folder not found in Celigo Storage. Verify the folder ID exists and the connection has access." (source `resource`), whereas `pathMode: relativePath` creates a path in `http.relativeURI` that does not exist yet and writes into it. Live-verified 2026-11-06 with flow runs.'
|
|
21739
21807
|
properties:
|
|
21740
21808
|
pathMode:
|
|
21741
21809
|
type: string
|
|
@@ -21754,8 +21822,11 @@ components:
|
|
|
21754
21822
|
description: |-
|
|
21755
21823
|
Provider-native folder ID of the destination directory (e.g. a Google Drive folder ID);
|
|
21756
21824
|
set when pathMode is directoryId. This is the file provider's own ID, not a Celigo resource ID.
|
|
21825
|
+
For Celigo Storage it is the folder's storage item id, and an id no folder carries fails
|
|
21826
|
+
the run with `storage_parent_folder_not_found`.
|
|
21757
21827
|
examples:
|
|
21758
21828
|
- 1KppvTTr4jKhJqwPAhGWN6SRwk5m45DL2
|
|
21829
|
+
- 6aee8b26ddc1d57f005d3d66
|
|
21759
21830
|
name:
|
|
21760
21831
|
type: string
|
|
21761
21832
|
description: |-
|
|
@@ -32296,6 +32367,7 @@ components:
|
|
|
32296
32367
|
x-celigo-ai-guidance:
|
|
32297
32368
|
- Save-time validation accepts any string for id without checking it against the provider — set it only from a folder ID the user supplied or the UI folder browser stored; never fabricate one. To address a folder by path instead, set pathMode to relativePath and put the path in the adaptor's flat path field.
|
|
32298
32369
|
- '`id` and `pathMode` are validated as a pair: `pathMode: directoryId` without `id` fails with 422 `missing_required_field` ("File exports require the file.directory.id to have a value."), and `id` with any other pathMode fails with 422 `missing_required_field` ("File exports require the file.directory.pathMode to have a value.").'
|
|
32370
|
+
- 'On a Celigo Storage source (a Celigo APIs connection with `http.type: file`) the folder is resolved when the run or preview lists it, not at save: `pathMode: directoryId` with an `id` no folder carries fails with 422 `storage_parent_folder_not_found` "Parent folder not found in Celigo Storage. Verify the folder ID exists and the connection has access." (source `resource`); an `id` that is not a 24-character hex ObjectId fails with 422 `directory_id_invalid_format`; and with `pathMode: relativePath` a path in `http.relativeURI` that does not exist fails with 422 `storage_path_not_found` "Directory path ''<path>'' not found in Celigo Storage." Live-verified 2026-11-06 through POST /v1/connections/{_id}/export.'
|
|
32299
32371
|
properties:
|
|
32300
32372
|
pathMode:
|
|
32301
32373
|
type: string
|
|
@@ -32314,10 +32386,13 @@ components:
|
|
|
32314
32386
|
description: |-
|
|
32315
32387
|
Provider-native folder ID of the source directory (e.g. a Google Drive folder ID); set
|
|
32316
32388
|
when pathMode is directoryId. This is the file provider's own ID, not a Celigo resource ID.
|
|
32317
|
-
For Google Cloud Storage it is the object prefix inside the bucket, ending with
|
|
32389
|
+
For Google Cloud Storage it is the object prefix inside the bucket, ending with `/`; for
|
|
32390
|
+
Celigo Storage it is the folder's storage item id, and an id no folder carries fails the
|
|
32391
|
+
run with `storage_parent_folder_not_found`.
|
|
32318
32392
|
examples:
|
|
32319
32393
|
- 1KppvTTr4jKhJqwPAhGWN6SRwk5m45DL2
|
|
32320
32394
|
- inbound/orders/
|
|
32395
|
+
- 6aee8b26ddc1d57f005d3d66
|
|
32321
32396
|
name:
|
|
32322
32397
|
type: string
|
|
32323
32398
|
description: |-
|
|
@@ -33355,7 +33430,7 @@ components:
|
|
|
33355
33430
|
These fields can be used with any pagination method to detect the last page:
|
|
33356
33431
|
|
|
33357
33432
|
- `lastPageStatusCode` - Detect last page by HTTP status code
|
|
33358
|
-
- `lastPagePath` - JSON path to check for last page indicator
|
|
33433
|
+
- `lastPagePath` - JSON path to check for last page indicator (read only on a response whose status equals `lastPageStatusCode`, except on `method: body`, which reads it on every response)
|
|
33359
33434
|
- `lastPageValues` - Values at lastPagePath that indicate last page
|
|
33360
33435
|
- |-
|
|
33361
33436
|
## COMMON IMPLEMENTATION PATTERNS
|
|
@@ -33929,9 +34004,15 @@ components:
|
|
|
33929
34004
|
- response.records
|
|
33930
34005
|
lastPageStatusCode:
|
|
33931
34006
|
type: integer
|
|
33932
|
-
description: 'HTTP status code that signals the last page, replacing the default behavior of treating 404 as the end of pagination. When this status is received (any code but `200` paired with `lastPagePath`), paging stops and the response is not treated as an error. Set it when the API uses a non-404 code (such as 204 or 400) to indicate no more pages, or to `200` together with `lastPagePath` when the last page is an ordinary 200 response: then the response is parsed, its records are kept, and paging stops only when `lastPagePath` matches `lastPageValues`.'
|
|
34007
|
+
description: 'HTTP status code that signals the last page, replacing the default behavior of treating 404 as the end of pagination. When this status is received (any code but `200` paired with `lastPagePath`), paging stops and the response is not treated as an error. Set it when the API uses a non-404 code (such as 204 or 400) to indicate no more pages, or to `200` together with `lastPagePath` when the last page is an ordinary 200 response: then the response is parsed, its records are kept, and paging stops only when `lastPagePath` matches `lastPageValues`. With `page`, `skip` and `token` paging a `lastPagePath` condition is evaluated only on a response whose status equals this field, so leaving it unset switches that condition off; `method: body` reads `lastPagePath` on every response and needs no status code.'
|
|
33933
34008
|
x-celigo-ai-guidance:
|
|
33934
34009
|
- Specifies a custom HTTP status code that indicates the last page of results.
|
|
34010
|
+
- |-
|
|
34011
|
+
Leave this unset only with `method: body`. On `page`, `skip` and `token` paging a
|
|
34012
|
+
`lastPagePath`/`lastPageValues` stop condition is never evaluated without it: a `page`
|
|
34013
|
+
export with `lastPagePath: json.hasMore`, `lastPageValues: ["false"]` and no status code
|
|
34014
|
+
ran to its `maxPagePath` cap, while the same export with `lastPageStatusCode: 200` stopped
|
|
34015
|
+
after page 1 (live-verified 2026-11-06; `skip` behaved the same).
|
|
33935
34016
|
- |-
|
|
33936
34017
|
## FIELD BEHAVIOR
|
|
33937
34018
|
|
|
@@ -33986,7 +34067,7 @@ components:
|
|
|
33986
34067
|
- 500
|
|
33987
34068
|
lastPagePath:
|
|
33988
34069
|
type: string
|
|
33989
|
-
description: 'JSON path to a response-body field that signals the end of pagination, such as a "has more" flag or a cursor that empties on the last page. Must be used with `lastPageValues`, which lists the values at this path that stop paging.
|
|
34070
|
+
description: 'JSON path to a response-body field that signals the end of pagination, such as a "has more" flag or a cursor that empties on the last page. Must be used with `lastPageValues`, which lists the values at this path that stop paging. With `page`, `skip` and `token` paging the path is read only on a response whose status code equals `lastPageStatusCode` — without that field the condition is never evaluated — so pair it with `lastPageStatusCode: 200` for an ordinary last page; there, a response where the path is missing keeps paging. With `method: body` it is read on every response, and a response where the path is missing or null is itself treated as the last page.'
|
|
33990
34071
|
x-celigo-ai-guidance:
|
|
33991
34072
|
- |-
|
|
33992
34073
|
## FIELD BEHAVIOR
|
|
@@ -34037,18 +34118,24 @@ components:
|
|
|
34037
34118
|
```
|
|
34038
34119
|
|
|
34039
34120
|
IMPORTANT: The path is evaluated using JSON path notation, on the responses the
|
|
34040
|
-
method note below describes. If the path doesn't exist in the response,
|
|
34041
|
-
|
|
34042
|
-
|
|
34043
|
-
|
|
34044
|
-
`
|
|
34121
|
+
method note below describes. If the path doesn't exist in the response, a
|
|
34122
|
+
status-code-gated check is not met and paging continues; on `method: body` a missing
|
|
34123
|
+
or null value at the path ends paging.
|
|
34124
|
+
- |-
|
|
34125
|
+
On `page`, `skip` and `token` paging the path is checked only on a response whose
|
|
34126
|
+
status code equals `lastPageStatusCode`; with no status code set the stop condition
|
|
34127
|
+
is never evaluated and paging runs on to `maxPagePath` / `maxCountPath`, an empty
|
|
34128
|
+
page or an exhausted token. For an API whose last page is an ordinary 200 (a GraphQL
|
|
34045
34129
|
`pageInfo.hasNextPage: false`), set `lastPageStatusCode: 200` with it; without that,
|
|
34046
|
-
paging goes on while the token at `path` is non-empty, so a last page that
|
|
34047
|
-
carries a cursor costs one more request. On `method: body` the path is read on
|
|
34048
|
-
every response, with no status code needed
|
|
34049
|
-
endpoint for `token` (two
|
|
34050
|
-
|
|
34051
|
-
|
|
34130
|
+
token paging goes on while the token at `path` is non-empty, so a last page that
|
|
34131
|
+
still carries a cursor costs one more request. On `method: body` the path is read on
|
|
34132
|
+
every response, with no status code needed, and a missing or null value at the path
|
|
34133
|
+
ends paging. Live-verified 2026-10-22 against an echo endpoint for `token` (two
|
|
34134
|
+
requests without `lastPageStatusCode`, one with 200) and `body` (stopped on the
|
|
34135
|
+
second response), and 2026-11-06 for `page` and `skip` (ran to the page cap without
|
|
34136
|
+
`lastPageStatusCode`, stopped on page 1 with `200`) and for `body` without a status
|
|
34137
|
+
code (stopped on page 1 on a match, on a missing path and on a null value); `url`
|
|
34138
|
+
paging was not verified.
|
|
34052
34139
|
examples:
|
|
34053
34140
|
- meta.isLastPage
|
|
34054
34141
|
- pagination.hasMore
|
|
@@ -34056,7 +34143,7 @@ components:
|
|
|
34056
34143
|
- error.message
|
|
34057
34144
|
lastPageValues:
|
|
34058
34145
|
type: array
|
|
34059
|
-
description: Values at `lastPagePath` that stop pagination; a match on any entry ends paging.
|
|
34146
|
+
description: 'Values at `lastPagePath` that stop pagination; a match on any entry ends paging. Entries are matched loosely against the value at the path: letter case and surrounding whitespace are ignored, a JSON boolean matches `"true"` / `"false"`, a number matches its decimal string (`"0"`), and an empty string matches `""`. A JSON null matches nothing, not even `"null"` — on `method: body` a null or missing field is itself the last-page signal, while under a status-code check it keeps paging. Required when `lastPagePath` is set.'
|
|
34060
34147
|
x-celigo-ai-guidance:
|
|
34061
34148
|
- Specifies which value(s) at the lastPagePath indicate the end of pagination.
|
|
34062
34149
|
- |-
|
|
@@ -34064,7 +34151,8 @@ components:
|
|
|
34064
34151
|
|
|
34065
34152
|
- REQUIRED when lastPagePath is used
|
|
34066
34153
|
- Array of string values (even for boolean or numeric comparisons)
|
|
34067
|
-
-
|
|
34154
|
+
- Matching ignores letter case and surrounding whitespace; a JSON boolean or number
|
|
34155
|
+
matches its string form
|
|
34068
34156
|
- Multiple values create an OR condition (any match indicates last page)
|
|
34069
34157
|
- |-
|
|
34070
34158
|
## IMPLEMENTATION GUIDANCE
|
|
@@ -34087,10 +34175,12 @@ components:
|
|
|
34087
34175
|
"lastPageValues": ["false", "0"]
|
|
34088
34176
|
```
|
|
34089
34177
|
|
|
34090
|
-
3. For empty
|
|
34178
|
+
3. For cursors that empty on the last page (an empty string matches `""`; a
|
|
34179
|
+
cursor that turns JSON null ends `method: body` paging by itself and never
|
|
34180
|
+
matches under a status-code check)
|
|
34091
34181
|
```json
|
|
34092
34182
|
"lastPagePath": "meta.nextCursor",
|
|
34093
|
-
"lastPageValues": ["
|
|
34183
|
+
"lastPageValues": [""]
|
|
34094
34184
|
```
|
|
34095
34185
|
|
|
34096
34186
|
4. For specific error messages
|
|
@@ -34102,21 +34192,28 @@ components:
|
|
|
34102
34192
|
## TECHNICAL DETAILS
|
|
34103
34193
|
|
|
34104
34194
|
- All values must be specified as strings, even for boolean or numeric comparisons
|
|
34105
|
-
- JSON
|
|
34195
|
+
- A JSON boolean matches "true" / "false" and a number matches its decimal string;
|
|
34196
|
+
letter case and surrounding whitespace are ignored (live-verified 2026-11-06 on
|
|
34197
|
+
`page` paging with `lastPageStatusCode: 200` and on `body` paging without one:
|
|
34198
|
+
`false`, `"FALSE"` and `" false "` each stopped against `["false"]`, `0` against
|
|
34199
|
+
`["0"]`, `""` against `[""]`)
|
|
34106
34200
|
- Empty string is represented as ""
|
|
34107
|
-
-
|
|
34108
|
-
|
|
34109
|
-
|
|
34110
|
-
|
|
34111
|
-
|
|
34201
|
+
- JSON null matches no entry, not even "null": on `method: body` a null or missing
|
|
34202
|
+
value ends paging on its own; under a status-code check it keeps paging (a `page`
|
|
34203
|
+
export with `lastPageStatusCode: 200`, `hasMore: null` and `["null"]` ran to its
|
|
34204
|
+
page cap)
|
|
34205
|
+
|
|
34206
|
+
IMPORTANT: Under a status-code check this field is only consulted when the
|
|
34207
|
+
lastPagePath exists in the response; on method: body a missing path ends paging
|
|
34208
|
+
before the values are consulted. Both lastPagePath and lastPageValues must be
|
|
34209
|
+
configured correctly for proper pagination termination.
|
|
34112
34210
|
items:
|
|
34113
34211
|
type: string
|
|
34114
34212
|
examples:
|
|
34115
34213
|
- - 'true'
|
|
34116
34214
|
- - 'false'
|
|
34117
34215
|
- '0'
|
|
34118
|
-
- - '
|
|
34119
|
-
- ''
|
|
34216
|
+
- - ''
|
|
34120
34217
|
- - No more pages
|
|
34121
34218
|
- End of results
|
|
34122
34219
|
maxPagePath:
|
package/dist/user.yml
CHANGED
|
@@ -910,13 +910,16 @@ components:
|
|
|
910
910
|
Capability string for an `mcpServer` grant. `tool:`, `api:`,
|
|
911
911
|
`prompt:`, and `resource:` take `all` or a 24-hex id on the target
|
|
912
912
|
server — a `tools[]._toolId` or upstream tool row `_id`, an
|
|
913
|
-
`apis[]._apiId`, a `prompts[]._id
|
|
914
|
-
takes a `permissionSets[]._id` or
|
|
915
|
-
`prompt:<_id>`: older grants written as
|
|
916
|
-
validate but are not reported by
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
913
|
+
`apis[]._apiId`, a `prompts[]._id` or upstream prompt row `_id`, or
|
|
914
|
+
a `resources[]._id`; `pset:` takes a `permissionSets[]._id` or
|
|
915
|
+
`all`. Grant prompts with `prompt:<_id>`: older grants written as
|
|
916
|
+
`tool:<prompt _id>` still validate, but they are not reported by
|
|
917
|
+
effective access and do not open the prompt on the MCP endpoint —
|
|
918
|
+
`prompts/list` hides it and `prompts/get` is denied, and `tool:all`
|
|
919
|
+
does not cover prompts there either. Any other shape is rejected with
|
|
920
|
+
400 `validation_failed` ("Invalid capability"), and an id that is
|
|
921
|
+
not attached to the target server with 400 `validation_failed`
|
|
922
|
+
naming the missing item.
|
|
920
923
|
examples:
|
|
921
924
|
- tool:all
|
|
922
925
|
- prompt:6b2c3d4e5f6a7b8c9d0e1f2a
|
package/package.json
CHANGED