@celigo/api-specs 0.2.263 → 0.2.265
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 +1 -1
- package/dist/connection.yml +1 -1
- package/dist/enduser.yml +1 -1
- package/dist/export.yml +52 -26
- package/dist/filestorage.yml +15 -0
- package/dist/import.yml +146 -54
- package/dist/integration.yml +68 -0
- package/dist/lookupcache.yml +35 -14
- package/dist/mcp-server.yml +11 -3
- package/dist/tool.yml +79 -36
- package/package.json +1 -1
- package/schemas.json +1 -1
package/dist/api.yml
CHANGED
|
@@ -13433,7 +13433,7 @@ components:
|
|
|
13433
13433
|
databricks: Databricks SQL/Spark via JDBC.
|
|
13434
13434
|
oracle:thin: Oracle Database via the Oracle Thin JDBC driver.
|
|
13435
13435
|
sqlserver: Microsoft SQL Server via the JTDS or Microsoft JDBC driver.
|
|
13436
|
-
activedirectory:
|
|
13436
|
+
activedirectory: Microsoft Active Directory over LDAP (default port 389) through an on-premise agent, read with SQL against the directory tables the driver exposes; LDAPVersion and BaseDN go in properties.
|
|
13437
13437
|
db2: IBM DB2 database via JDBC.
|
|
13438
13438
|
workday: Workday via JDBC for report and data access.
|
|
13439
13439
|
description: |-
|
package/dist/connection.yml
CHANGED
|
@@ -9101,7 +9101,7 @@ components:
|
|
|
9101
9101
|
databricks: Databricks SQL/Spark via JDBC.
|
|
9102
9102
|
oracle:thin: Oracle Database via the Oracle Thin JDBC driver.
|
|
9103
9103
|
sqlserver: Microsoft SQL Server via the JTDS or Microsoft JDBC driver.
|
|
9104
|
-
activedirectory:
|
|
9104
|
+
activedirectory: Microsoft Active Directory over LDAP (default port 389) through an on-premise agent, read with SQL against the directory tables the driver exposes; LDAPVersion and BaseDN go in properties.
|
|
9105
9105
|
db2: IBM DB2 database via JDBC.
|
|
9106
9106
|
workday: Workday via JDBC for report and data access.
|
|
9107
9107
|
description: |-
|
package/dist/enduser.yml
CHANGED
|
@@ -7146,7 +7146,7 @@ components:
|
|
|
7146
7146
|
databricks: Databricks SQL/Spark via JDBC.
|
|
7147
7147
|
oracle:thin: Oracle Database via the Oracle Thin JDBC driver.
|
|
7148
7148
|
sqlserver: Microsoft SQL Server via the JTDS or Microsoft JDBC driver.
|
|
7149
|
-
activedirectory:
|
|
7149
|
+
activedirectory: Microsoft Active Directory over LDAP (default port 389) through an on-premise agent, read with SQL against the directory tables the driver exposes; LDAPVersion and BaseDN go in properties.
|
|
7150
7150
|
db2: IBM DB2 database via JDBC.
|
|
7151
7151
|
workday: Workday via JDBC for report and data access.
|
|
7152
7152
|
description: |-
|
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/import.yml
CHANGED
|
@@ -755,10 +755,12 @@ paths:
|
|
|
755
755
|
data:
|
|
756
756
|
type: array
|
|
757
757
|
description: |-
|
|
758
|
-
Sample source records
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
758
|
+
Sample source records. Only the first record is previewed —
|
|
759
|
+
later records are neither sent nor returned, whatever the
|
|
760
|
+
import's batch size — so preview one record per call. Pass
|
|
761
|
+
`[{}]` for adaptors that don't require an input record (e.g.
|
|
762
|
+
AI Agent imports whose prompt generates the payload). An
|
|
763
|
+
**empty array** (`[]`) is accepted but produces a minimal
|
|
762
764
|
`{data:[null]}` response with no `stages`. **Omitting `data`
|
|
763
765
|
entirely returns HTTP 204** — the engine short-circuits when
|
|
764
766
|
it has no records to trace.
|
|
@@ -778,7 +780,7 @@ paths:
|
|
|
778
780
|
provider: openai
|
|
779
781
|
openai:
|
|
780
782
|
model: gpt-4.1-mini
|
|
781
|
-
instructions:
|
|
783
|
+
instructions: Reply with the single word OK.
|
|
782
784
|
temperature: 0.5
|
|
783
785
|
topP: 0.5
|
|
784
786
|
maxOutputTokens: 5000
|
|
@@ -787,36 +789,66 @@ paths:
|
|
|
787
789
|
responses:
|
|
788
790
|
'200':
|
|
789
791
|
description: |-
|
|
790
|
-
Preview executed.
|
|
791
|
-
`stages[]
|
|
792
|
-
|
|
793
|
-
|
|
792
|
+
Preview executed. `data` echoes the previewed record; what was sent and
|
|
793
|
+
what came back are in `stages[]`, which is absent when nothing was sent
|
|
794
|
+
(`data: []`, or a one-to-many import with an empty or missing
|
|
795
|
+
`pathToMany` array on the record). For a one-to-many import a 200 can
|
|
796
|
+
still hold a later child the destination refused: check each `raw`
|
|
797
|
+
entry's `statusCode`.
|
|
794
798
|
content:
|
|
795
799
|
application/json:
|
|
796
800
|
schema:
|
|
797
801
|
$ref: '#/components/schemas/ImportPreviewResponse'
|
|
798
802
|
examples:
|
|
799
803
|
aiagent_stages:
|
|
800
|
-
summary: AI Agent preview — request → raw → parse stages
|
|
804
|
+
summary: AI Agent preview — request → raw → parse stages (trimmed)
|
|
801
805
|
value:
|
|
802
806
|
data:
|
|
803
|
-
-
|
|
807
|
+
- {}
|
|
804
808
|
stages:
|
|
805
809
|
- name: request
|
|
806
810
|
data:
|
|
807
811
|
- model: gpt-4.1-mini
|
|
808
|
-
instructions:
|
|
812
|
+
instructions: Reply with the single word OK.
|
|
809
813
|
temperature: 0.5
|
|
810
|
-
|
|
811
|
-
|
|
814
|
+
top_p: 0.5
|
|
815
|
+
max_output_tokens: 5000
|
|
816
|
+
input:
|
|
817
|
+
- role: user
|
|
818
|
+
content:
|
|
819
|
+
- type: input_text
|
|
820
|
+
text: '{}'
|
|
812
821
|
errors: null
|
|
813
822
|
- name: raw
|
|
814
823
|
data:
|
|
815
|
-
-
|
|
824
|
+
- final_output: OK
|
|
825
|
+
usage:
|
|
826
|
+
input_tokens: 19
|
|
827
|
+
output_tokens: 2
|
|
828
|
+
total_tokens: 21
|
|
816
829
|
errors: null
|
|
817
830
|
- name: parse
|
|
818
831
|
data:
|
|
819
|
-
-
|
|
832
|
+
- statusCode: 200
|
|
833
|
+
_json:
|
|
834
|
+
data:
|
|
835
|
+
_text: OK
|
|
836
|
+
_text: OK
|
|
837
|
+
errors: null
|
|
838
|
+
one_to_many_nothing_to_send:
|
|
839
|
+
summary: One-to-many import whose pathToMany array is empty — nothing sent
|
|
840
|
+
value:
|
|
841
|
+
data:
|
|
842
|
+
- name: Acme
|
|
843
|
+
items: []
|
|
844
|
+
input_filter_dropped:
|
|
845
|
+
summary: The import's filter drops the record — nothing sent
|
|
846
|
+
value:
|
|
847
|
+
data:
|
|
848
|
+
- name: Acme
|
|
849
|
+
stages:
|
|
850
|
+
- name: inputFilter
|
|
851
|
+
data: null
|
|
820
852
|
errors: null
|
|
821
853
|
'204':
|
|
822
854
|
description: |-
|
|
@@ -838,11 +870,55 @@ paths:
|
|
|
838
870
|
have no compose-only surface anywhere (the SQL editor's Handlebars
|
|
839
871
|
evaluation is their only preview). Structural validation returns the
|
|
840
872
|
standard errors envelope.
|
|
873
|
+
|
|
874
|
+
A record that fails while running also answers 422: a mapping that
|
|
875
|
+
fails the record (`extract_empty`), a hook that throws (`script_error`,
|
|
876
|
+
naming the hook's `stage`), a `pathToMany` value that isn't an array
|
|
877
|
+
(`oneToMany_error`, sent without a `message`), or the destination
|
|
878
|
+
answering the first request with an error status (`source:
|
|
879
|
+
application`, the HTTP status as `code`) — that body also carries the
|
|
880
|
+
`request` and `raw` stages.
|
|
841
881
|
content:
|
|
842
882
|
application/json:
|
|
843
883
|
schema:
|
|
844
884
|
$ref: '#/components/schemas/Error'
|
|
845
885
|
examples:
|
|
886
|
+
destination_error:
|
|
887
|
+
summary: The destination answers the request with HTTP 500 (trimmed)
|
|
888
|
+
value:
|
|
889
|
+
errors:
|
|
890
|
+
- source: application
|
|
891
|
+
code: 500
|
|
892
|
+
message: Internal Server Error
|
|
893
|
+
stage: apiCall
|
|
894
|
+
classification: intermittent
|
|
895
|
+
resolved: false
|
|
896
|
+
occurredAt: 1792563298579
|
|
897
|
+
stages:
|
|
898
|
+
- name: request
|
|
899
|
+
data:
|
|
900
|
+
- url: https://api.example.com/orders
|
|
901
|
+
method: POST
|
|
902
|
+
body: '{"name":"Acme"}'
|
|
903
|
+
errors: null
|
|
904
|
+
- name: raw
|
|
905
|
+
data:
|
|
906
|
+
- url: https://api.example.com/orders
|
|
907
|
+
statusCode: 500
|
|
908
|
+
body: ''
|
|
909
|
+
errors: null
|
|
910
|
+
mapping_failed:
|
|
911
|
+
summary: A mapping set to fail the record finds no source value
|
|
912
|
+
value:
|
|
913
|
+
errors:
|
|
914
|
+
- code: extract_empty
|
|
915
|
+
message: 'email: Source field has no value'
|
|
916
|
+
generate: email
|
|
917
|
+
fatal: true
|
|
918
|
+
source: mapping
|
|
919
|
+
stage: mapping
|
|
920
|
+
resolved: false
|
|
921
|
+
occurredAt: 1792563392529
|
|
846
922
|
missing_import:
|
|
847
923
|
value:
|
|
848
924
|
errors:
|
|
@@ -5814,7 +5890,7 @@ components:
|
|
|
5814
5890
|
per_page: Execute one SQL statement per page (batch) of records.
|
|
5815
5891
|
first_page: Execute the SQL statement once for the first page only, typically for setup or cleanup scripts.
|
|
5816
5892
|
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)
|
|
5893
|
+
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
5894
|
description: |-
|
|
5819
5895
|
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
5896
|
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 +5918,8 @@ components:
|
|
|
5842
5918
|
- No `primaryKeys` for pure INSERT (auto-generates INSERT)
|
|
5843
5919
|
- No `bulkInsert` beside it (the server drops a `bulkInsert` sent with bulk_load)
|
|
5844
5920
|
- **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
|
-
-
|
|
5921
|
+
- **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.
|
|
5922
|
+
- 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
5923
|
|
|
5847
5924
|
**STEP 2: Database does NOT support bulk_load**
|
|
5848
5925
|
- **Pure INSERT**: → **USE `["bulk_insert"]`** (requires `bulkInsert` object)
|
|
@@ -6109,7 +6186,7 @@ components:
|
|
|
6109
6186
|
- '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
6187
|
aggregation:
|
|
6111
6188
|
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.
|
|
6189
|
+
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
6190
|
properties:
|
|
6114
6191
|
type:
|
|
6115
6192
|
type: string
|
|
@@ -9126,6 +9203,7 @@ components:
|
|
|
9126
9203
|
properties:
|
|
9127
9204
|
fileName:
|
|
9128
9205
|
type: string
|
|
9206
|
+
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
9207
|
description: |-
|
|
9130
9208
|
**REQUIRED for file-based imports.**
|
|
9131
9209
|
|
|
@@ -9135,16 +9213,17 @@ components:
|
|
|
9135
9213
|
(`{{record.fileMeta.fileName}}` from an FTP source, `fileMeta.name` from Google Drive).
|
|
9136
9214
|
|
|
9137
9215
|
**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.
|
|
9216
|
+
- 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
9217
|
- Only use a fixed filename (without timestamp) if the user explicitly requests overwriting or a fixed name.
|
|
9218
|
+
- 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
9219
|
|
|
9141
9220
|
**Common patterns**
|
|
9142
|
-
- `"data-{{timestamp}}.json"` - Timestamped JSON file (DEFAULT — use this pattern when not specified)
|
|
9221
|
+
- `"data-{{timestamp "x"}}.json"` - Timestamped JSON file (DEFAULT — use this pattern when not specified)
|
|
9143
9222
|
- `"export-{{timestamp 'YYYY-MM-DD'}}.csv"` - Date-stamped CSV file
|
|
9144
9223
|
- `"{{recordType}}-backup.xml"` - Dynamic record type naming
|
|
9145
9224
|
|
|
9146
9225
|
**Examples**
|
|
9147
|
-
- `"customers-{{timestamp}}.json"`
|
|
9226
|
+
- `"customers-{{timestamp "x"}}.json"`
|
|
9148
9227
|
- `"orders-export.csv"`
|
|
9149
9228
|
- `"inventory-{{timestamp 'YYYY-MM-DD'}}.xlsx"`
|
|
9150
9229
|
|
|
@@ -9164,8 +9243,18 @@ components:
|
|
|
9164
9243
|
record on a `blob: true` import, the page's record array otherwise — so `record.`
|
|
9165
9244
|
previews empty there; judge by a run. The metadata field names are the exporting
|
|
9166
9245
|
provider's — read them off the incoming sample record.
|
|
9246
|
+
- |-
|
|
9247
|
+
The save does not validate the rendered name — a literal `a:b.json` and a bare
|
|
9248
|
+
`{{timestamp}}` both save 201 — so an unsupported character surfaces only when the file
|
|
9249
|
+
is written. On Celigo Storage the record fails with `STORAGE_INVALID_NAME` "File name
|
|
9250
|
+
contains invalid characters" (source `connector`), which a colon triggers; the bare
|
|
9251
|
+
`{{timestamp}}` renders an ISO stamp with colons, while `{{timestamp "x"}}` (the import
|
|
9252
|
+
form's default, epoch milliseconds) writes. A file-generation import saved with no
|
|
9253
|
+
`fileName` still writes, naming the file with a hyphenated UTC stamp and no extension
|
|
9254
|
+
(`2026-11-07T02-26-06`), so always set one. Live-verified 2026-11-06 with flow runs on
|
|
9255
|
+
a Celigo Storage import.
|
|
9167
9256
|
examples:
|
|
9168
|
-
- customers-{{timestamp}}.json
|
|
9257
|
+
- customers-{{timestamp "x"}}.json
|
|
9169
9258
|
- orders-export.csv
|
|
9170
9259
|
skipAggregation:
|
|
9171
9260
|
type: boolean
|
|
@@ -9676,6 +9765,7 @@ components:
|
|
|
9676
9765
|
file path in `http.relativeURI`.
|
|
9677
9766
|
x-celigo-ai-guidance:
|
|
9678
9767
|
- 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.
|
|
9768
|
+
- '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
9769
|
properties:
|
|
9680
9770
|
pathMode:
|
|
9681
9771
|
type: string
|
|
@@ -9694,8 +9784,11 @@ components:
|
|
|
9694
9784
|
description: |-
|
|
9695
9785
|
Provider-native folder ID of the destination directory (e.g. a Google Drive folder ID);
|
|
9696
9786
|
set when pathMode is directoryId. This is the file provider's own ID, not a Celigo resource ID.
|
|
9787
|
+
For Celigo Storage it is the folder's storage item id, and an id no folder carries fails
|
|
9788
|
+
the run with `storage_parent_folder_not_found`.
|
|
9697
9789
|
examples:
|
|
9698
9790
|
- 1KppvTTr4jKhJqwPAhGWN6SRwk5m45DL2
|
|
9791
|
+
- 6aee8b26ddc1d57f005d3d66
|
|
9699
9792
|
name:
|
|
9700
9793
|
type: string
|
|
9701
9794
|
description: |-
|
|
@@ -18963,49 +19056,48 @@ components:
|
|
|
18963
19056
|
ImportPreviewResponse:
|
|
18964
19057
|
type: object
|
|
18965
19058
|
description: |-
|
|
18966
|
-
Envelope returned by `POST /v1/imports/preview
|
|
18967
|
-
|
|
18968
|
-
|
|
18969
|
-
|
|
18970
|
-
see the operation description for the write-safety warning.
|
|
19059
|
+
Envelope returned by `POST /v1/imports/preview`: the previewed source record
|
|
19060
|
+
and the stage-by-stage trace of sending it. The `request` stage executes the
|
|
19061
|
+
composed destination request — see the operation description for the
|
|
19062
|
+
write-safety warning.
|
|
18971
19063
|
properties:
|
|
18972
19064
|
data:
|
|
18973
19065
|
type: array
|
|
18974
19066
|
description: |-
|
|
18975
|
-
|
|
18976
|
-
|
|
18977
|
-
|
|
19067
|
+
The first record of the request's `data[]`, echoed as sent. It is not the
|
|
19068
|
+
mapped record or the destination's answer, which are in `stages[]`;
|
|
19069
|
+
`[null]` when the request sent `data: []`.
|
|
18978
19070
|
items: {}
|
|
18979
19071
|
stages:
|
|
18980
19072
|
type: array
|
|
18981
19073
|
description: |-
|
|
18982
|
-
Ordered
|
|
18983
|
-
the
|
|
18984
|
-
|
|
18985
|
-
|
|
18986
|
-
|
|
18987
|
-
|
|
18988
|
-
|
|
18989
|
-
|
|
18990
|
-
|
|
18991
|
-
|
|
18992
|
-
|
|
18993
|
-
|
|
18994
|
-
raised at that stage. Stage-level errors do NOT fail the overall
|
|
18995
|
-
call — they surface here rather than failing the overall request.
|
|
19074
|
+
Ordered trace of the record through the import. `inputFilter` comes first
|
|
19075
|
+
when the import has a `filter`, with `data: null`; when the filter drops
|
|
19076
|
+
the record it is the only stage and nothing is sent. Then `request`, `raw`
|
|
19077
|
+
and `parse`, for HTTP and AI agent imports alike. Mappings and hooks add
|
|
19078
|
+
no stages: the mapped record and a `preMap` hook's output are what
|
|
19079
|
+
`request` sends, and a `postSubmit` hook's output is the `parse` data.
|
|
19080
|
+
|
|
19081
|
+
Absent when nothing reaches the destination: the request sent `data: []`,
|
|
19082
|
+
or a one-to-many import (`oneToMany: true`) finds an empty array or no
|
|
19083
|
+
value at `pathToMany` on the record. The preview then returns only the
|
|
19084
|
+
echoed record and never calls the destination, so preview a one-to-many
|
|
19085
|
+
import with a sample whose array has items.
|
|
18996
19086
|
items:
|
|
18997
19087
|
type: object
|
|
18998
|
-
description: One
|
|
19088
|
+
description: One stage's output.
|
|
18999
19089
|
properties:
|
|
19000
19090
|
name:
|
|
19001
19091
|
type: string
|
|
19002
|
-
description: Stage identifier
|
|
19092
|
+
description: Stage identifier — `inputFilter`, `request`, `raw` or `parse`.
|
|
19003
19093
|
data:
|
|
19004
19094
|
description: |-
|
|
19005
|
-
Stage output
|
|
19006
|
-
|
|
19007
|
-
|
|
19008
|
-
|
|
19095
|
+
Stage output, one entry per request sent (one per child for a
|
|
19096
|
+
one-to-many import). `request` holds what was sent (`url`,
|
|
19097
|
+
`method`, `headers` and `body` for HTTP; the model request for an
|
|
19098
|
+
AI agent), `raw` the destination's unparsed answer (`statusCode`,
|
|
19099
|
+
`headers` and `body` for HTTP), and `parse` the parsed answer
|
|
19100
|
+
(`statusCode` and `_json`).
|
|
19009
19101
|
oneOf:
|
|
19010
19102
|
- title: Array
|
|
19011
19103
|
type: array
|
|
@@ -19026,9 +19118,9 @@ components:
|
|
|
19026
19118
|
errors:
|
|
19027
19119
|
type: array
|
|
19028
19120
|
description: |-
|
|
19029
|
-
|
|
19030
|
-
|
|
19031
|
-
|
|
19121
|
+
Absent from a 200 response. A preview that fails answers 422 instead,
|
|
19122
|
+
with its errors in that body — see the operation's 422 response for
|
|
19123
|
+
which failures those are.
|
|
19032
19124
|
items:
|
|
19033
19125
|
type: object
|
|
19034
19126
|
additionalProperties: true
|
package/dist/integration.yml
CHANGED
|
@@ -638,6 +638,22 @@ paths:
|
|
|
638
638
|
lastModified: '2026-06-10T02:57:51.483Z'
|
|
639
639
|
'204':
|
|
640
640
|
description: No revisions exist for this integration.
|
|
641
|
+
'400':
|
|
642
|
+
description: |-
|
|
643
|
+
The integration belongs to another environment of the account than the one the token
|
|
644
|
+
acts in. `GET /v1/integrations/{_id}` answers 404 for the same id; an id that exists in no
|
|
645
|
+
environment answers 404 here too.
|
|
646
|
+
content:
|
|
647
|
+
application/json:
|
|
648
|
+
schema:
|
|
649
|
+
$ref: '#/components/schemas/Error'
|
|
650
|
+
examples:
|
|
651
|
+
other_environment:
|
|
652
|
+
summary: Integration from another environment
|
|
653
|
+
value:
|
|
654
|
+
errors:
|
|
655
|
+
- code: invalid_environment_for_integration
|
|
656
|
+
message: The integration does not belong to the current environment. Please validate the environment and try again
|
|
641
657
|
'401':
|
|
642
658
|
$ref: '#/components/responses/401-unauthorized'
|
|
643
659
|
'404':
|
|
@@ -697,6 +713,21 @@ paths:
|
|
|
697
713
|
installSteps: []
|
|
698
714
|
createdAt: '2026-06-10T02:57:51.483Z'
|
|
699
715
|
lastModified: '2026-06-10T02:57:51.483Z'
|
|
716
|
+
'400':
|
|
717
|
+
description: |-
|
|
718
|
+
The integration belongs to another environment of the account than the one the token
|
|
719
|
+
acts in. The environment is checked before the revision is looked up.
|
|
720
|
+
content:
|
|
721
|
+
application/json:
|
|
722
|
+
schema:
|
|
723
|
+
$ref: '#/components/schemas/Error'
|
|
724
|
+
examples:
|
|
725
|
+
other_environment:
|
|
726
|
+
summary: Integration from another environment
|
|
727
|
+
value:
|
|
728
|
+
errors:
|
|
729
|
+
- code: invalid_environment_for_integration
|
|
730
|
+
message: The integration does not belong to the current environment. Please validate the environment and try again
|
|
700
731
|
'401':
|
|
701
732
|
$ref: '#/components/responses/401-unauthorized'
|
|
702
733
|
'404':
|
|
@@ -713,6 +744,10 @@ paths:
|
|
|
713
744
|
history. The returned revision has `type: snapshot` and `status: completed` immediately --
|
|
714
745
|
snapshots are synchronous and do not require an apply step. This is the only revision type
|
|
715
746
|
that can be created via the public API; `pull` and `revert` revisions require the Celigo UI.
|
|
747
|
+
|
|
748
|
+
A standalone copy made with `POST /v1/integrations/{_id}/clone` can't be snapshotted: it isn't
|
|
749
|
+
lifecycle-linked to its source, so the request fails with 422 `lifecycleerror`. Snapshot the
|
|
750
|
+
source integration instead.
|
|
716
751
|
parameters:
|
|
717
752
|
- name: _id
|
|
718
753
|
in: path
|
|
@@ -764,6 +799,19 @@ paths:
|
|
|
764
799
|
$ref: '#/components/responses/401-unauthorized'
|
|
765
800
|
'404':
|
|
766
801
|
$ref: '#/components/responses/404-not-found'
|
|
802
|
+
'422':
|
|
803
|
+
description: The integration is a standalone copy made by `POST /v1/integrations/{_id}/clone`.
|
|
804
|
+
content:
|
|
805
|
+
application/json:
|
|
806
|
+
schema:
|
|
807
|
+
$ref: '#/components/schemas/Error'
|
|
808
|
+
examples:
|
|
809
|
+
standalone_clone:
|
|
810
|
+
summary: Snapshot of an integration made by the clone endpoint
|
|
811
|
+
value:
|
|
812
|
+
errors:
|
|
813
|
+
- code: lifecycleerror
|
|
814
|
+
message: clone must be linked to source integration before revisions can be comitted.
|
|
767
815
|
/v1/integrations/{_id}/revisions/{_revisionId}/diff:
|
|
768
816
|
get:
|
|
769
817
|
x-internal: false
|
|
@@ -828,6 +876,10 @@ paths:
|
|
|
828
876
|
`failed` revisions (read their cause from
|
|
829
877
|
`GET /v1/integrations/{_id}/revisions/{_revisionId}/errors` instead), and
|
|
830
878
|
`inprogress` revisions whose install steps haven't materialized yet.
|
|
879
|
+
|
|
880
|
+
Error code `invalid_environment_for_integration` means the integration belongs to another
|
|
881
|
+
environment of the account than the one the token acts in. That check runs before the
|
|
882
|
+
revision is looked up.
|
|
831
883
|
content:
|
|
832
884
|
application/json:
|
|
833
885
|
schema:
|
|
@@ -838,6 +890,12 @@ paths:
|
|
|
838
890
|
errors:
|
|
839
891
|
- message: Failed to perform operation. Revision is in an invalid state
|
|
840
892
|
code: invalid_revision_state
|
|
893
|
+
other_environment:
|
|
894
|
+
summary: Integration from another environment
|
|
895
|
+
value:
|
|
896
|
+
errors:
|
|
897
|
+
- code: invalid_environment_for_integration
|
|
898
|
+
message: The integration does not belong to the current environment. Please validate the environment and try again
|
|
841
899
|
'401':
|
|
842
900
|
$ref: '#/components/responses/401-unauthorized'
|
|
843
901
|
'404':
|
|
@@ -901,6 +959,10 @@ paths:
|
|
|
901
959
|
Revision is not in `failed` state, so it has no error records. Error code
|
|
902
960
|
`invalid_revision_state` — returned for `completed`, `canceled`, and `inprogress` revisions
|
|
903
961
|
of every type, including snapshots.
|
|
962
|
+
|
|
963
|
+
Error code `invalid_environment_for_integration` means the integration belongs to another
|
|
964
|
+
environment of the account than the one the token acts in. That check runs before the
|
|
965
|
+
revision is looked up.
|
|
904
966
|
content:
|
|
905
967
|
application/json:
|
|
906
968
|
schema:
|
|
@@ -911,6 +973,12 @@ paths:
|
|
|
911
973
|
errors:
|
|
912
974
|
- message: Failed to perform operation. Revision is in an invalid state
|
|
913
975
|
code: invalid_revision_state
|
|
976
|
+
other_environment:
|
|
977
|
+
summary: Integration from another environment
|
|
978
|
+
value:
|
|
979
|
+
errors:
|
|
980
|
+
- code: invalid_environment_for_integration
|
|
981
|
+
message: The integration does not belong to the current environment. Please validate the environment and try again
|
|
914
982
|
'401':
|
|
915
983
|
$ref: '#/components/responses/401-unauthorized'
|
|
916
984
|
'404':
|
package/dist/lookupcache.yml
CHANGED
|
@@ -596,17 +596,22 @@ paths:
|
|
|
596
596
|
query — explicit keys or a prefix — can travel in the request body.
|
|
597
597
|
|
|
598
598
|
Body variants:
|
|
599
|
-
- omitted or `{}` →
|
|
599
|
+
- omitted or `{}` → all entries, up to 1000 per page (unordered).
|
|
600
600
|
- `{keys: [...]}` → one entry per requested key. Hits carry `value`; misses
|
|
601
601
|
carry `error: {message}` — missing keys are **reported**, not silently
|
|
602
602
|
omitted. Branch on `error` vs `value` when consuming the response.
|
|
603
|
-
- `{startsWith: "prefix"}` →
|
|
604
|
-
(case-sensitive).
|
|
603
|
+
- `{startsWith: "prefix"}` → entries whose key begins with `prefix`
|
|
604
|
+
(case-sensitive), up to 1000 per page.
|
|
605
605
|
|
|
606
606
|
`keys` and `startsWith` are treated as mutually exclusive client-side; if both
|
|
607
607
|
are supplied the server honors `keys` and ignores `startsWith`. Keys are
|
|
608
|
-
case-sensitive.
|
|
609
|
-
|
|
608
|
+
case-sensitive.
|
|
609
|
+
|
|
610
|
+
Unfiltered and `startsWith` reads are paged. While more entries remain, the
|
|
611
|
+
response carries `nextPageURL`; POST to it with the same body to read the next
|
|
612
|
+
page, and stop at the first response without one. The URL keeps only the read
|
|
613
|
+
position (`startAfterKey`, `shardId`), not the prefix, so a `startsWith` read
|
|
614
|
+
posted there without its body comes back unfiltered.
|
|
610
615
|
parameters:
|
|
611
616
|
- name: _id
|
|
612
617
|
in: path
|
|
@@ -658,6 +663,16 @@ paths:
|
|
|
658
663
|
- key: ZZ
|
|
659
664
|
error:
|
|
660
665
|
message: The requested key does not match any entry in the lookup cache. Check the key.
|
|
666
|
+
paged:
|
|
667
|
+
summary: A page of an unfiltered read with more entries to follow (truncated)
|
|
668
|
+
value:
|
|
669
|
+
success: true
|
|
670
|
+
data:
|
|
671
|
+
- key: SKU-2748
|
|
672
|
+
value: '8959'
|
|
673
|
+
- key: SKU-2749
|
|
674
|
+
value: '8960'
|
|
675
|
+
nextPageURL: /v1/lookupcaches/69c2eb25365fb658aa39c642/getData?startAfterKey=SKU-2749&shardId=2
|
|
661
676
|
'400':
|
|
662
677
|
$ref: '#/components/responses/400-bad-request'
|
|
663
678
|
'401':
|
|
@@ -1181,7 +1196,7 @@ components:
|
|
|
1181
1196
|
Request body for reading entries from a lookup cache.
|
|
1182
1197
|
|
|
1183
1198
|
All fields are optional. If omitted, the endpoint returns the first page of the
|
|
1184
|
-
cache (up to
|
|
1199
|
+
cache (up to 1000 entries, unordered). `keys` and `startsWith` should be
|
|
1185
1200
|
treated as mutually exclusive — if both are supplied the server honors `keys`
|
|
1186
1201
|
and ignores `startsWith`. An empty JSON body (`{}`) is equivalent to calling
|
|
1187
1202
|
the endpoint with no body.
|
|
@@ -1202,9 +1217,10 @@ components:
|
|
|
1202
1217
|
startsWith:
|
|
1203
1218
|
type: string
|
|
1204
1219
|
description: |-
|
|
1205
|
-
Key prefix filter. Returns
|
|
1206
|
-
string (case-sensitive). Useful for namespaced keys like
|
|
1207
|
-
`tenant-42/customer-…`.
|
|
1220
|
+
Key prefix filter. Returns the entries whose key begins with the supplied
|
|
1221
|
+
string (case-sensitive), up to 1000 per page. Useful for namespaced keys like
|
|
1222
|
+
`tenant-42/customer-…`. Send it again with every `nextPageURL` request: the
|
|
1223
|
+
URL doesn't carry it, and a page read without it is unfiltered.
|
|
1208
1224
|
examples:
|
|
1209
1225
|
- tenant-42/
|
|
1210
1226
|
LookupCacheDataMissingEntry:
|
|
@@ -1234,15 +1250,20 @@ components:
|
|
|
1234
1250
|
description: |-
|
|
1235
1251
|
Response from a successful lookup-cache read. Contains the matching entries.
|
|
1236
1252
|
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
large caches — callers that need to iterate a cache larger than the page limit
|
|
1240
|
-
should use `startsWith` to narrow the result set, or key their data with a known
|
|
1241
|
-
prefix scheme.
|
|
1253
|
+
Unfiltered and `startsWith` reads return up to 1000 entries per page and carry
|
|
1254
|
+
`nextPageURL` while more remain.
|
|
1242
1255
|
properties:
|
|
1243
1256
|
success:
|
|
1244
1257
|
type: boolean
|
|
1245
1258
|
description: When true, the read request completed successfully.
|
|
1259
|
+
nextPageURL:
|
|
1260
|
+
type: string
|
|
1261
|
+
description: |-
|
|
1262
|
+
Relative URL of the next page, present while an unfiltered or `startsWith` read has
|
|
1263
|
+
more entries; absent on the last page. POST to it with the same request body — it
|
|
1264
|
+
doesn't carry the `startsWith` prefix.
|
|
1265
|
+
examples:
|
|
1266
|
+
- /v1/lookupcaches/69c2eb25365fb658aa39c642/getData?startAfterKey=SKU-2749&shardId=2
|
|
1246
1267
|
data:
|
|
1247
1268
|
type: array
|
|
1248
1269
|
description: |-
|
package/dist/mcp-server.yml
CHANGED
|
@@ -4382,7 +4382,9 @@ components:
|
|
|
4382
4382
|
maxLength: 128
|
|
4383
4383
|
pattern: ^\/[a-zA-Z0-9_\-]+$
|
|
4384
4384
|
description: |-
|
|
4385
|
-
URI path segment for the MCP server endpoint
|
|
4385
|
+
URI path segment for the MCP server endpoint: MCP clients reach the server at
|
|
4386
|
+
`/mcp/{accountAlias}{relativeURI}` (`accountAlias` is an account setting), and with an
|
|
4387
|
+
API token it also answers at `/mcp{relativeURI}`. Must be unique per account —
|
|
4386
4388
|
duplicates are rejected with 422 `mcp_server_duplicate_relative_uri`. Only letters,
|
|
4387
4389
|
numbers, dashes, and underscores after the leading slash (the server's error message
|
|
4388
4390
|
also claims colons and dots are allowed, but they are rejected in practice). The
|
|
@@ -4416,7 +4418,13 @@ components:
|
|
|
4416
4418
|
type: boolean
|
|
4417
4419
|
default: true
|
|
4418
4420
|
description: |-
|
|
4419
|
-
When true, the server refuses MCP clients
|
|
4421
|
+
When true, the server refuses MCP clients: on the alias URL
|
|
4422
|
+
(`/mcp/{accountAlias}{relativeURI}`) a disabled or deleted server, one
|
|
4423
|
+
with nothing enabled, or an unknown alias answers HTTP 404
|
|
4424
|
+
`resource_not_found` with no `WWW-Authenticate` header, whatever
|
|
4425
|
+
credential is sent, while the direct `/mcp{relativeURI}` route still
|
|
4426
|
+
authenticates the call and then returns JSON-RPC error `1006` ("MCP
|
|
4427
|
+
Server not found for relativeURI: …"). New servers start disabled.
|
|
4420
4428
|
Enabling requires at least one enabled tool, API, resource, or prompt,
|
|
4421
4429
|
or one enabled and available upstream capability — otherwise the write
|
|
4422
4430
|
is rejected with 422 `mcp_server_enablement_requires_enabled_item`.
|
|
@@ -10330,7 +10338,7 @@ components:
|
|
|
10330
10338
|
databricks: Databricks SQL/Spark via JDBC.
|
|
10331
10339
|
oracle:thin: Oracle Database via the Oracle Thin JDBC driver.
|
|
10332
10340
|
sqlserver: Microsoft SQL Server via the JTDS or Microsoft JDBC driver.
|
|
10333
|
-
activedirectory:
|
|
10341
|
+
activedirectory: Microsoft Active Directory over LDAP (default port 389) through an on-premise agent, read with SQL against the directory tables the driver exposes; LDAPVersion and BaseDN go in properties.
|
|
10334
10342
|
db2: IBM DB2 database via JDBC.
|
|
10335
10343
|
workday: Workday via JDBC for report and data access.
|
|
10336
10344
|
description: |-
|
package/dist/tool.yml
CHANGED
|
@@ -12700,7 +12700,7 @@ components:
|
|
|
12700
12700
|
databricks: Databricks SQL/Spark via JDBC.
|
|
12701
12701
|
oracle:thin: Oracle Database via the Oracle Thin JDBC driver.
|
|
12702
12702
|
sqlserver: Microsoft SQL Server via the JTDS or Microsoft JDBC driver.
|
|
12703
|
-
activedirectory:
|
|
12703
|
+
activedirectory: Microsoft Active Directory over LDAP (default port 389) through an on-premise agent, read with SQL against the directory tables the driver exposes; LDAPVersion and BaseDN go in properties.
|
|
12704
12704
|
db2: IBM DB2 database via JDBC.
|
|
12705
12705
|
workday: Workday via JDBC for report and data access.
|
|
12706
12706
|
description: |-
|
|
@@ -17928,7 +17928,7 @@ components:
|
|
|
17928
17928
|
per_page: Execute one SQL statement per page (batch) of records.
|
|
17929
17929
|
first_page: Execute the SQL statement once for the first page only, typically for setup or cleanup scripts.
|
|
17930
17930
|
bulk_load: Stage data as a file and load via database-native COPY/bulk mechanism for maximum throughput.
|
|
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; 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.
|
|
17932
17932
|
description: |-
|
|
17933
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`.
|
|
17934
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.
|
|
@@ -17956,7 +17956,8 @@ components:
|
|
|
17956
17956
|
- No `primaryKeys` for pure INSERT (auto-generates INSERT)
|
|
17957
17957
|
- No `bulkInsert` beside it (the server drops a `bulkInsert` sent with bulk_load)
|
|
17958
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.
|
|
17959
|
-
-
|
|
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.
|
|
17960
17961
|
|
|
17961
17962
|
**STEP 2: Database does NOT support bulk_load**
|
|
17962
17963
|
- **Pure INSERT**: → **USE `["bulk_insert"]`** (requires `bulkInsert` object)
|
|
@@ -18223,7 +18224,7 @@ components:
|
|
|
18223
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}}`.'
|
|
18224
18225
|
aggregation:
|
|
18225
18226
|
type: object
|
|
18226
|
-
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.'
|
|
18227
18228
|
properties:
|
|
18228
18229
|
type:
|
|
18229
18230
|
type: string
|
|
@@ -21240,6 +21241,7 @@ components:
|
|
|
21240
21241
|
properties:
|
|
21241
21242
|
fileName:
|
|
21242
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.'
|
|
21243
21245
|
description: |-
|
|
21244
21246
|
**REQUIRED for file-based imports.**
|
|
21245
21247
|
|
|
@@ -21249,16 +21251,17 @@ components:
|
|
|
21249
21251
|
(`{{record.fileMeta.fileName}}` from an FTP source, `fileMeta.name` from Google Drive).
|
|
21250
21252
|
|
|
21251
21253
|
**Default behavior**
|
|
21252
|
-
- 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.
|
|
21253
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".
|
|
21254
21257
|
|
|
21255
21258
|
**Common patterns**
|
|
21256
|
-
- `"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)
|
|
21257
21260
|
- `"export-{{timestamp 'YYYY-MM-DD'}}.csv"` - Date-stamped CSV file
|
|
21258
21261
|
- `"{{recordType}}-backup.xml"` - Dynamic record type naming
|
|
21259
21262
|
|
|
21260
21263
|
**Examples**
|
|
21261
|
-
- `"customers-{{timestamp}}.json"`
|
|
21264
|
+
- `"customers-{{timestamp "x"}}.json"`
|
|
21262
21265
|
- `"orders-export.csv"`
|
|
21263
21266
|
- `"inventory-{{timestamp 'YYYY-MM-DD'}}.xlsx"`
|
|
21264
21267
|
|
|
@@ -21278,8 +21281,18 @@ components:
|
|
|
21278
21281
|
record on a `blob: true` import, the page's record array otherwise — so `record.`
|
|
21279
21282
|
previews empty there; judge by a run. The metadata field names are the exporting
|
|
21280
21283
|
provider's — read them off the incoming sample record.
|
|
21281
|
-
|
|
21282
|
-
|
|
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
|
|
21283
21296
|
- orders-export.csv
|
|
21284
21297
|
skipAggregation:
|
|
21285
21298
|
type: boolean
|
|
@@ -21790,6 +21803,7 @@ components:
|
|
|
21790
21803
|
file path in `http.relativeURI`.
|
|
21791
21804
|
x-celigo-ai-guidance:
|
|
21792
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.'
|
|
21793
21807
|
properties:
|
|
21794
21808
|
pathMode:
|
|
21795
21809
|
type: string
|
|
@@ -21808,8 +21822,11 @@ components:
|
|
|
21808
21822
|
description: |-
|
|
21809
21823
|
Provider-native folder ID of the destination directory (e.g. a Google Drive folder ID);
|
|
21810
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`.
|
|
21811
21827
|
examples:
|
|
21812
21828
|
- 1KppvTTr4jKhJqwPAhGWN6SRwk5m45DL2
|
|
21829
|
+
- 6aee8b26ddc1d57f005d3d66
|
|
21813
21830
|
name:
|
|
21814
21831
|
type: string
|
|
21815
21832
|
description: |-
|
|
@@ -32350,6 +32367,7 @@ components:
|
|
|
32350
32367
|
x-celigo-ai-guidance:
|
|
32351
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.
|
|
32352
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.'
|
|
32353
32371
|
properties:
|
|
32354
32372
|
pathMode:
|
|
32355
32373
|
type: string
|
|
@@ -32368,10 +32386,13 @@ components:
|
|
|
32368
32386
|
description: |-
|
|
32369
32387
|
Provider-native folder ID of the source directory (e.g. a Google Drive folder ID); set
|
|
32370
32388
|
when pathMode is directoryId. This is the file provider's own ID, not a Celigo resource ID.
|
|
32371
|
-
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`.
|
|
32372
32392
|
examples:
|
|
32373
32393
|
- 1KppvTTr4jKhJqwPAhGWN6SRwk5m45DL2
|
|
32374
32394
|
- inbound/orders/
|
|
32395
|
+
- 6aee8b26ddc1d57f005d3d66
|
|
32375
32396
|
name:
|
|
32376
32397
|
type: string
|
|
32377
32398
|
description: |-
|
|
@@ -33409,7 +33430,7 @@ components:
|
|
|
33409
33430
|
These fields can be used with any pagination method to detect the last page:
|
|
33410
33431
|
|
|
33411
33432
|
- `lastPageStatusCode` - Detect last page by HTTP status code
|
|
33412
|
-
- `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)
|
|
33413
33434
|
- `lastPageValues` - Values at lastPagePath that indicate last page
|
|
33414
33435
|
- |-
|
|
33415
33436
|
## COMMON IMPLEMENTATION PATTERNS
|
|
@@ -33983,9 +34004,15 @@ components:
|
|
|
33983
34004
|
- response.records
|
|
33984
34005
|
lastPageStatusCode:
|
|
33985
34006
|
type: integer
|
|
33986
|
-
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.'
|
|
33987
34008
|
x-celigo-ai-guidance:
|
|
33988
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).
|
|
33989
34016
|
- |-
|
|
33990
34017
|
## FIELD BEHAVIOR
|
|
33991
34018
|
|
|
@@ -34040,7 +34067,7 @@ components:
|
|
|
34040
34067
|
- 500
|
|
34041
34068
|
lastPagePath:
|
|
34042
34069
|
type: string
|
|
34043
|
-
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.'
|
|
34044
34071
|
x-celigo-ai-guidance:
|
|
34045
34072
|
- |-
|
|
34046
34073
|
## FIELD BEHAVIOR
|
|
@@ -34091,18 +34118,24 @@ components:
|
|
|
34091
34118
|
```
|
|
34092
34119
|
|
|
34093
34120
|
IMPORTANT: The path is evaluated using JSON path notation, on the responses the
|
|
34094
|
-
method note below describes. If the path doesn't exist in the response,
|
|
34095
|
-
|
|
34096
|
-
|
|
34097
|
-
|
|
34098
|
-
`
|
|
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
|
|
34099
34129
|
`pageInfo.hasNextPage: false`), set `lastPageStatusCode: 200` with it; without that,
|
|
34100
|
-
paging goes on while the token at `path` is non-empty, so a last page that
|
|
34101
|
-
carries a cursor costs one more request. On `method: body` the path is read on
|
|
34102
|
-
every response, with no status code needed
|
|
34103
|
-
endpoint for `token` (two
|
|
34104
|
-
|
|
34105
|
-
|
|
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.
|
|
34106
34139
|
examples:
|
|
34107
34140
|
- meta.isLastPage
|
|
34108
34141
|
- pagination.hasMore
|
|
@@ -34110,7 +34143,7 @@ components:
|
|
|
34110
34143
|
- error.message
|
|
34111
34144
|
lastPageValues:
|
|
34112
34145
|
type: array
|
|
34113
|
-
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.'
|
|
34114
34147
|
x-celigo-ai-guidance:
|
|
34115
34148
|
- Specifies which value(s) at the lastPagePath indicate the end of pagination.
|
|
34116
34149
|
- |-
|
|
@@ -34118,7 +34151,8 @@ components:
|
|
|
34118
34151
|
|
|
34119
34152
|
- REQUIRED when lastPagePath is used
|
|
34120
34153
|
- Array of string values (even for boolean or numeric comparisons)
|
|
34121
|
-
-
|
|
34154
|
+
- Matching ignores letter case and surrounding whitespace; a JSON boolean or number
|
|
34155
|
+
matches its string form
|
|
34122
34156
|
- Multiple values create an OR condition (any match indicates last page)
|
|
34123
34157
|
- |-
|
|
34124
34158
|
## IMPLEMENTATION GUIDANCE
|
|
@@ -34141,10 +34175,12 @@ components:
|
|
|
34141
34175
|
"lastPageValues": ["false", "0"]
|
|
34142
34176
|
```
|
|
34143
34177
|
|
|
34144
|
-
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)
|
|
34145
34181
|
```json
|
|
34146
34182
|
"lastPagePath": "meta.nextCursor",
|
|
34147
|
-
"lastPageValues": ["
|
|
34183
|
+
"lastPageValues": [""]
|
|
34148
34184
|
```
|
|
34149
34185
|
|
|
34150
34186
|
4. For specific error messages
|
|
@@ -34156,21 +34192,28 @@ components:
|
|
|
34156
34192
|
## TECHNICAL DETAILS
|
|
34157
34193
|
|
|
34158
34194
|
- All values must be specified as strings, even for boolean or numeric comparisons
|
|
34159
|
-
- 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 `[""]`)
|
|
34160
34200
|
- Empty string is represented as ""
|
|
34161
|
-
-
|
|
34162
|
-
|
|
34163
|
-
|
|
34164
|
-
|
|
34165
|
-
|
|
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.
|
|
34166
34210
|
items:
|
|
34167
34211
|
type: string
|
|
34168
34212
|
examples:
|
|
34169
34213
|
- - 'true'
|
|
34170
34214
|
- - 'false'
|
|
34171
34215
|
- '0'
|
|
34172
|
-
- - '
|
|
34173
|
-
- ''
|
|
34216
|
+
- - ''
|
|
34174
34217
|
- - No more pages
|
|
34175
34218
|
- End of results
|
|
34176
34219
|
maxPagePath:
|
package/package.json
CHANGED