@celigo/api-specs 0.2.261 → 0.2.263
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 +65 -11
- package/dist/connection.yml +7 -9
- package/dist/enduser.yml +17 -16
- package/dist/export.yml +34 -0
- package/dist/filedefinition.yml +46 -10
- package/dist/flow.yml +143 -11
- package/dist/import.yml +36 -0
- package/dist/integration.yml +50 -7
- package/dist/mcp-server.yml +98 -43
- package/dist/processor.yml +27 -3
- package/dist/template.yml +1 -1
- package/dist/tool.yml +67 -15
- package/dist/topic.yml +107 -11
- 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.
|
|
@@ -8260,8 +8316,9 @@ components:
|
|
|
8260
8316
|
PGP keys and options for the file transports — `ftp`, `s3`, the on-premise file system and the
|
|
8261
8317
|
cloud file-provider connections such as Box, Dropbox, Google Drive, Azure Blob Storage and
|
|
8262
8318
|
Celigo file storage. `publicKey` encrypts the files the connection's imports write,
|
|
8263
|
-
record-generated files and transferred (blob) files alike; `privateKey` with
|
|
8264
|
-
decrypts the files its exports read and signs encrypted output. Supply at
|
|
8319
|
+
record-generated files and transferred (blob) files alike; `privateKey` (with `passphrase` when
|
|
8320
|
+
the key is protected) decrypts the files its exports read and signs encrypted output. Supply at
|
|
8321
|
+
least one of the two.
|
|
8265
8322
|
properties:
|
|
8266
8323
|
publicKey:
|
|
8267
8324
|
type: string
|
|
@@ -8290,7 +8347,10 @@ components:
|
|
|
8290
8347
|
passphrase:
|
|
8291
8348
|
type: string
|
|
8292
8349
|
writeOnly: true
|
|
8293
|
-
description:
|
|
8350
|
+
description: |-
|
|
8351
|
+
Passphrase that unlocks `privateKey` (encrypted at rest; returned masked as `"******"`). Set it
|
|
8352
|
+
when the private key is passphrase-protected; a connection with a private key and no
|
|
8353
|
+
passphrase saves.
|
|
8294
8354
|
compressionAlgorithm:
|
|
8295
8355
|
type: string
|
|
8296
8356
|
enum:
|
|
@@ -8304,12 +8364,6 @@ components:
|
|
|
8304
8364
|
type: boolean
|
|
8305
8365
|
default: true
|
|
8306
8366
|
description: When true, produces ASCII-armored (text) PGP output. Set to false only when the recipient requires binary PGP output.
|
|
8307
|
-
if:
|
|
8308
|
-
required:
|
|
8309
|
-
- privateKey
|
|
8310
|
-
then:
|
|
8311
|
-
required:
|
|
8312
|
-
- passphrase
|
|
8313
8367
|
SSL:
|
|
8314
8368
|
type: object
|
|
8315
8369
|
description: |-
|
package/dist/connection.yml
CHANGED
|
@@ -3984,8 +3984,9 @@ components:
|
|
|
3984
3984
|
PGP keys and options for the file transports — `ftp`, `s3`, the on-premise file system and the
|
|
3985
3985
|
cloud file-provider connections such as Box, Dropbox, Google Drive, Azure Blob Storage and
|
|
3986
3986
|
Celigo file storage. `publicKey` encrypts the files the connection's imports write,
|
|
3987
|
-
record-generated files and transferred (blob) files alike; `privateKey` with
|
|
3988
|
-
decrypts the files its exports read and signs encrypted output. Supply at
|
|
3987
|
+
record-generated files and transferred (blob) files alike; `privateKey` (with `passphrase` when
|
|
3988
|
+
the key is protected) decrypts the files its exports read and signs encrypted output. Supply at
|
|
3989
|
+
least one of the two.
|
|
3989
3990
|
properties:
|
|
3990
3991
|
publicKey:
|
|
3991
3992
|
type: string
|
|
@@ -4014,7 +4015,10 @@ components:
|
|
|
4014
4015
|
passphrase:
|
|
4015
4016
|
type: string
|
|
4016
4017
|
writeOnly: true
|
|
4017
|
-
description:
|
|
4018
|
+
description: |-
|
|
4019
|
+
Passphrase that unlocks `privateKey` (encrypted at rest; returned masked as `"******"`). Set it
|
|
4020
|
+
when the private key is passphrase-protected; a connection with a private key and no
|
|
4021
|
+
passphrase saves.
|
|
4018
4022
|
compressionAlgorithm:
|
|
4019
4023
|
type: string
|
|
4020
4024
|
enum:
|
|
@@ -4028,12 +4032,6 @@ components:
|
|
|
4028
4032
|
type: boolean
|
|
4029
4033
|
default: true
|
|
4030
4034
|
description: When true, produces ASCII-armored (text) PGP output. Set to false only when the recipient requires binary PGP output.
|
|
4031
|
-
if:
|
|
4032
|
-
required:
|
|
4033
|
-
- privateKey
|
|
4034
|
-
then:
|
|
4035
|
-
required:
|
|
4036
|
-
- passphrase
|
|
4037
4035
|
SSL:
|
|
4038
4036
|
type: object
|
|
4039
4037
|
description: |-
|
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
|
|
@@ -2026,8 +2029,9 @@ components:
|
|
|
2026
2029
|
PGP keys and options for the file transports — `ftp`, `s3`, the on-premise file system and the
|
|
2027
2030
|
cloud file-provider connections such as Box, Dropbox, Google Drive, Azure Blob Storage and
|
|
2028
2031
|
Celigo file storage. `publicKey` encrypts the files the connection's imports write,
|
|
2029
|
-
record-generated files and transferred (blob) files alike; `privateKey` with
|
|
2030
|
-
decrypts the files its exports read and signs encrypted output. Supply at
|
|
2032
|
+
record-generated files and transferred (blob) files alike; `privateKey` (with `passphrase` when
|
|
2033
|
+
the key is protected) decrypts the files its exports read and signs encrypted output. Supply at
|
|
2034
|
+
least one of the two.
|
|
2031
2035
|
properties:
|
|
2032
2036
|
publicKey:
|
|
2033
2037
|
type: string
|
|
@@ -2056,7 +2060,10 @@ components:
|
|
|
2056
2060
|
passphrase:
|
|
2057
2061
|
type: string
|
|
2058
2062
|
writeOnly: true
|
|
2059
|
-
description:
|
|
2063
|
+
description: |-
|
|
2064
|
+
Passphrase that unlocks `privateKey` (encrypted at rest; returned masked as `"******"`). Set it
|
|
2065
|
+
when the private key is passphrase-protected; a connection with a private key and no
|
|
2066
|
+
passphrase saves.
|
|
2060
2067
|
compressionAlgorithm:
|
|
2061
2068
|
type: string
|
|
2062
2069
|
enum:
|
|
@@ -2070,12 +2077,6 @@ components:
|
|
|
2070
2077
|
type: boolean
|
|
2071
2078
|
default: true
|
|
2072
2079
|
description: When true, produces ASCII-armored (text) PGP output. Set to false only when the recipient requires binary PGP output.
|
|
2073
|
-
if:
|
|
2074
|
-
required:
|
|
2075
|
-
- privateKey
|
|
2076
|
-
then:
|
|
2077
|
-
required:
|
|
2078
|
-
- passphrase
|
|
2079
2080
|
SSL:
|
|
2080
2081
|
type: object
|
|
2081
2082
|
description: |-
|
package/dist/export.yml
CHANGED
|
@@ -184,6 +184,22 @@ paths:
|
|
|
184
184
|
x-celigo-refModel: exports
|
|
185
185
|
examples:
|
|
186
186
|
- 5f8d43a1b9e5a80011a35f2c
|
|
187
|
+
- name: mergeInstanceFlowId
|
|
188
|
+
in: query
|
|
189
|
+
description: |-
|
|
190
|
+
Instance flow whose overrides to apply: the response is this export with that instance's
|
|
191
|
+
`overrides.exports[]` entry for it (such as `_connectionId` or `http.relativeURI`) in
|
|
192
|
+
place of the stored values, and nothing is saved. Fields the override leaves out are
|
|
193
|
+
inherited, but one set to `null` drops its whole parent object (a null
|
|
194
|
+
`http.relativeURI` removes all of `http`). A flow that is not an instance, or an
|
|
195
|
+
instance whose abstract flow does not use this export, is rejected with 400
|
|
196
|
+
`invalid_request`; an unknown flow id returns 404.
|
|
197
|
+
schema:
|
|
198
|
+
type: string
|
|
199
|
+
format: objectId
|
|
200
|
+
x-celigo-refModel: flows
|
|
201
|
+
examples:
|
|
202
|
+
- 6a0fd84629f7fd19fd68feac
|
|
187
203
|
responses:
|
|
188
204
|
'200':
|
|
189
205
|
description: Export retrieved successfully
|
|
@@ -206,6 +222,22 @@ paths:
|
|
|
206
222
|
apiIdentifier: e53af6b210
|
|
207
223
|
createdAt: '2026-06-09T17:30:12.482Z'
|
|
208
224
|
lastModified: '2026-06-09T17:30:12.554Z'
|
|
225
|
+
merged_for_instance:
|
|
226
|
+
summary: Read with mergeInstanceFlowId — the instance overrides _connectionId and http.relativeURI
|
|
227
|
+
value:
|
|
228
|
+
_id: 5f8d43a1b9e5a80011a35f2c
|
|
229
|
+
name: Get Modified Contacts
|
|
230
|
+
_connectionId: 6a0fc7eb7202049b32ea45c1
|
|
231
|
+
adaptorType: HTTPExport
|
|
232
|
+
http:
|
|
233
|
+
relativeURI: /api/v2/contacts
|
|
234
|
+
method: GET
|
|
235
|
+
asynchronous: true
|
|
236
|
+
apiIdentifier: e53af6b210
|
|
237
|
+
createdAt: '2026-06-09T17:30:12.482Z'
|
|
238
|
+
lastModified: '2026-06-09T17:30:12.554Z'
|
|
239
|
+
'400':
|
|
240
|
+
$ref: '#/components/responses/400-bad-request'
|
|
209
241
|
'401':
|
|
210
242
|
$ref: '#/components/responses/401-unauthorized'
|
|
211
243
|
'404':
|
|
@@ -418,6 +450,8 @@ paths:
|
|
|
418
450
|
description: |
|
|
419
451
|
Replaces the connection used by an export in a flow and cancels any running jobs.
|
|
420
452
|
This is useful when migrating flows between environments or updating to newer connection versions.
|
|
453
|
+
Only `_connectionId` changes: the export's relative URI and other settings stay as authored,
|
|
454
|
+
also when the new connection is bound to a different HTTP connector.
|
|
421
455
|
operationId: replaceConnectionOnExport
|
|
422
456
|
tags:
|
|
423
457
|
- Exports
|
package/dist/filedefinition.yml
CHANGED
|
@@ -1138,28 +1138,57 @@ components:
|
|
|
1138
1138
|
delimited:
|
|
1139
1139
|
type: object
|
|
1140
1140
|
description: |
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1141
|
+
Delimiters for every `format` that starts with "delimited" (CSV, X12, EDIFACT).
|
|
1142
|
+
Generation always writes these saved values. A version "2" `delimited/x12` or
|
|
1143
|
+
`delimited/edifact` parse instead reads the element separator, component separator
|
|
1144
|
+
and segment terminator from the incoming envelope — the ISA segment for X12, the UNB
|
|
1145
|
+
segment for EDIFACT — and uses them for that parse only, so one definition parses
|
|
1146
|
+
interchanges from partners who use different delimiters. The stored definition is
|
|
1147
|
+
not changed. Version "1" definitions and plain delimited files always parse with the
|
|
1148
|
+
saved values; check either behavior against a sample with
|
|
1149
|
+
`POST /v1/processors/structuredFileParser`.
|
|
1150
|
+
x-celigo-ai-guidance:
|
|
1151
|
+
- |-
|
|
1152
|
+
Envelope delimiters are read only from an X12 ISA in its fixed 106-character form.
|
|
1153
|
+
An interchange whose ISA is not padded to that length is parsed with the saved
|
|
1154
|
+
delimiters, and when those do not produce an ISA segment either the parse fails
|
|
1155
|
+
with 422 `delimiter_detect_failed` "Could not read delimiters from the EDI envelope,
|
|
1156
|
+
and the file definition delimiters did not produce an ISA header." — fix the ISA
|
|
1157
|
+
padding or save the partner's delimiters.
|
|
1158
|
+
- |-
|
|
1159
|
+
Detection needs `version: "2"`. A version "1" X12 definition saved with `*` that is
|
|
1160
|
+
fed a `|`-separated interchange fails with 422 `missing_row` "Required rule must have
|
|
1161
|
+
the respective row in the source file. Path: rules[0].required for line: 1".
|
|
1144
1162
|
properties:
|
|
1145
1163
|
rowSuffix:
|
|
1146
1164
|
type: string
|
|
1147
1165
|
description: |
|
|
1148
|
-
|
|
1166
|
+
Segment terminator (X12 `~`, EDIFACT `'`) or other text the generator appends to
|
|
1167
|
+
every row before `rowDelimiter`; rules with `skipRowSuffix: true` omit it. A
|
|
1168
|
+
version "2" X12 or EDIFACT parse strips the terminator the envelope declares
|
|
1169
|
+
instead of this value.
|
|
1149
1170
|
examples:
|
|
1150
1171
|
- \n
|
|
1151
1172
|
- \r\n
|
|
1152
1173
|
rowDelimiter:
|
|
1153
1174
|
type: string
|
|
1154
1175
|
description: |
|
|
1155
|
-
|
|
1176
|
+
Splits the file into rows when parsing and is written after each row's
|
|
1177
|
+
`rowSuffix` when generating. A version "2" X12 or EDIFACT parse splits on the
|
|
1178
|
+
segment terminator the envelope declares (plus any line break that follows it),
|
|
1179
|
+
so an interchange with no line breaks parses too; generation still writes this
|
|
1180
|
+
value.
|
|
1156
1181
|
examples:
|
|
1157
1182
|
- \n
|
|
1158
1183
|
- ~\n
|
|
1159
1184
|
colDelimiter:
|
|
1160
1185
|
type: string
|
|
1161
1186
|
description: |
|
|
1162
|
-
|
|
1187
|
+
Separates the elements of a row — `,` for CSV, `*` for X12, `+` for EDIFACT — when
|
|
1188
|
+
parsing and generating. A version "2" X12 or EDIFACT parse uses the element
|
|
1189
|
+
separator found in the incoming ISA (the character after `ISA`) or UNB segment
|
|
1190
|
+
instead, so a partner's `|`-separated interchange parses against a definition
|
|
1191
|
+
saved with `*`; generation always writes this value.
|
|
1163
1192
|
examples:
|
|
1164
1193
|
- ','
|
|
1165
1194
|
- \t
|
|
@@ -1168,8 +1197,12 @@ components:
|
|
|
1168
1197
|
compositeDelimiter:
|
|
1169
1198
|
type: string
|
|
1170
1199
|
description: |
|
|
1171
|
-
|
|
1172
|
-
|
|
1200
|
+
Separates the sub-elements of a composite element (a rule element whose `value`
|
|
1201
|
+
is an object) that does not set its own `delimiter` — `:` is usual for EDIFACT,
|
|
1202
|
+
`>` or `:` for X12. A version "2" X12 or EDIFACT parse uses the component
|
|
1203
|
+
separator the envelope declares (ISA16 for X12; the character after the syntax
|
|
1204
|
+
identifier in UNB01 for EDIFACT), so composites split correctly whatever the
|
|
1205
|
+
partner sends; generation joins sub-elements with this value.
|
|
1173
1206
|
examples:
|
|
1174
1207
|
- ':'
|
|
1175
1208
|
- '>'
|
|
@@ -1191,8 +1224,11 @@ components:
|
|
|
1191
1224
|
escapeReleaseChar:
|
|
1192
1225
|
type: boolean
|
|
1193
1226
|
description: |
|
|
1194
|
-
|
|
1195
|
-
|
|
1227
|
+
When true, a `?` in front of a delimiter makes that character part of the value
|
|
1228
|
+
instead of a separator (`PO?+W3B` parses as `PO+W3B`); it protects the separators a
|
|
1229
|
+
version "2" EDIFACT parse reads from the envelope as well as the saved ones. When
|
|
1230
|
+
false, `?` is ordinary text and the delimiter after it still splits the element. Set
|
|
1231
|
+
it for EDIFACT partners who release characters in their data.
|
|
1196
1232
|
skipEDIValidation:
|
|
1197
1233
|
type: boolean
|
|
1198
1234
|
default: true
|
package/dist/flow.yml
CHANGED
|
@@ -55,6 +55,16 @@ paths:
|
|
|
55
55
|
type: string
|
|
56
56
|
format: objectId
|
|
57
57
|
x-celigo-refModel: flows
|
|
58
|
+
- name: mergeInstance
|
|
59
|
+
in: query
|
|
60
|
+
description: |-
|
|
61
|
+
When true, returns each instance merged with its abstract flow, exactly as
|
|
62
|
+
`GET /v1/flows/{_id}?mergeInstance=true` returns it. Works only with
|
|
63
|
+
`_abstractFlowId`; without it the request is rejected with 400 `missing_query_param`,
|
|
64
|
+
whatever other filters are set.
|
|
65
|
+
schema:
|
|
66
|
+
type: boolean
|
|
67
|
+
default: false
|
|
58
68
|
- name: externalId
|
|
59
69
|
in: query
|
|
60
70
|
description: Filter to flows matching this exact external identifier.
|
|
@@ -295,7 +305,8 @@ paths:
|
|
|
295
305
|
the response merges the abstract flow's configuration into the instance.
|
|
296
306
|
Without this, instance flows return a sparse object containing only
|
|
297
307
|
`_abstractFlowId`, `overrides`, and instance-level fields — no
|
|
298
|
-
`pageGenerators` or `routers`.
|
|
308
|
+
`pageGenerators` or `routers`. The merged object omits `overrides` and a `PUT` of it
|
|
309
|
+
fails with 422 `flow_instance_invalid_fields`, so edit an instance from the unmerged read.
|
|
299
310
|
schema:
|
|
300
311
|
type: boolean
|
|
301
312
|
default: false
|
|
@@ -781,10 +792,19 @@ paths:
|
|
|
781
792
|
instead of requiring per-resource PUTs.
|
|
782
793
|
|
|
783
794
|
The replacement connection must exist and be of the same adaptor type as the original. If the
|
|
784
|
-
types do not match, the request is rejected with a 422.
|
|
795
|
+
types do not match, the request is rejected with a 422. Adaptor type is the only compatibility
|
|
796
|
+
check: two HTTP connections bound to different connectors (Google Drive and Google Sheets, for
|
|
797
|
+
example), or a connector-bound and a plain HTTP connection, swap without error. Only the
|
|
798
|
+
connection reference changes; each step keeps its relative URIs and other settings as authored.
|
|
785
799
|
|
|
786
800
|
Use `GET /v1/flows/{_id}/descendants` to verify which resources use a given connection
|
|
787
801
|
before replacing.
|
|
802
|
+
x-celigo-ai-guidance:
|
|
803
|
+
- |-
|
|
804
|
+
Use this call when the new connection reaches the same API (credential rotation, sandbox to
|
|
805
|
+
production). When it reaches a different API — another connector, or connector-bound to plain
|
|
806
|
+
HTTP — change each step's relative URI and endpoint together with its connection instead:
|
|
807
|
+
this call returns 204 and leaves the paths authored for the old API in place.
|
|
788
808
|
parameters:
|
|
789
809
|
- name: _id
|
|
790
810
|
in: path
|
|
@@ -840,6 +860,11 @@ paths:
|
|
|
840
860
|
Flow-level preconditions enforced by the platform:
|
|
841
861
|
- The flow must not be `disabled`.
|
|
842
862
|
- The flow must be in an enabled integration (when part of one).
|
|
863
|
+
- The flow must not be abstract (`isAbstract`): an abstract flow is refused with
|
|
864
|
+
`422 abstract_flow_run_not_allowed` whether or not it is disabled. Run one of its instances.
|
|
865
|
+
- An instance counts as disabled while its abstract flow is disabled, whatever its own
|
|
866
|
+
`disabled` says, and is refused with `422 invalid_flow` like any disabled flow. Its
|
|
867
|
+
merged read (`GET /v1/flows/{_id}?mergeInstance=true`) shows `disabled: true` in that state.
|
|
843
868
|
|
|
844
869
|
|
|
845
870
|
To trace a run end-to-end, arm debug logging before calling this, then use the returned
|
|
@@ -3776,6 +3801,8 @@ paths:
|
|
|
3776
3801
|
synchronously. Unlike `POST /v1/flows/{_id}/run` (which queues an
|
|
3777
3802
|
asynchronous production job), a test run executes inline against the
|
|
3778
3803
|
flow's current configuration and records the per-step stages it produced.
|
|
3804
|
+
The body's `_exportId` picks the page generator the run starts from, and
|
|
3805
|
+
the flow can be enabled or disabled.
|
|
3779
3806
|
|
|
3780
3807
|
Test runs are kept in a **separate history** from production runs — the
|
|
3781
3808
|
`flowJob` and `childJobs` returned here are test artifacts, not records
|
|
@@ -3805,6 +3832,27 @@ paths:
|
|
|
3805
3832
|
type: string
|
|
3806
3833
|
format: objectId
|
|
3807
3834
|
x-celigo-refModel: flows
|
|
3835
|
+
requestBody:
|
|
3836
|
+
required: true
|
|
3837
|
+
content:
|
|
3838
|
+
application/json:
|
|
3839
|
+
schema:
|
|
3840
|
+
type: object
|
|
3841
|
+
required:
|
|
3842
|
+
- _exportId
|
|
3843
|
+
properties:
|
|
3844
|
+
_exportId:
|
|
3845
|
+
type: string
|
|
3846
|
+
format: objectId
|
|
3847
|
+
x-celigo-refModel: exports
|
|
3848
|
+
description: |-
|
|
3849
|
+
Page generator the test run starts from — the `_exportId` of one of the
|
|
3850
|
+
flow's `pageGenerators`. A missing id, or any id that is not one of them,
|
|
3851
|
+
fails with 400 `missing_pageGenerator_doc`.
|
|
3852
|
+
examples:
|
|
3853
|
+
default:
|
|
3854
|
+
value:
|
|
3855
|
+
_exportId: 69d462d5b9c28ea0b7f82522
|
|
3808
3856
|
responses:
|
|
3809
3857
|
'200':
|
|
3810
3858
|
description: |-
|
|
@@ -3873,7 +3921,20 @@ paths:
|
|
|
3873
3921
|
numPagesGenerated: 1
|
|
3874
3922
|
_expOrImpId: 69d462d5b9c28ea0b7f82522
|
|
3875
3923
|
'400':
|
|
3876
|
-
|
|
3924
|
+
description: |-
|
|
3925
|
+
Bad request — notably a body whose `_exportId` is missing or is not one of
|
|
3926
|
+
the flow's page generators (`missing_pageGenerator_doc`).
|
|
3927
|
+
content:
|
|
3928
|
+
application/json:
|
|
3929
|
+
schema:
|
|
3930
|
+
$ref: '#/components/schemas/Error'
|
|
3931
|
+
examples:
|
|
3932
|
+
missing_page_generator:
|
|
3933
|
+
summary: '`_exportId` missing, or not one of the flow''s page generators'
|
|
3934
|
+
value:
|
|
3935
|
+
errors:
|
|
3936
|
+
- code: missing_pageGenerator_doc
|
|
3937
|
+
message: The page generator corresponding to the _exportId 6a2e23bbcf5b64ca6b93b799 is not found.
|
|
3877
3938
|
'401':
|
|
3878
3939
|
$ref: '#/components/responses/401-unauthorized'
|
|
3879
3940
|
'404':
|
|
@@ -3917,7 +3978,9 @@ paths:
|
|
|
3917
3978
|
|
|
3918
3979
|
For each stage, `input` and `output` are arrays of record envelopes
|
|
3919
3980
|
(`{record, errors, traceKey}`) and may be `null` when the stage produced
|
|
3920
|
-
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
|
|
3921
3984
|
`GET /v1/flows/{_id}/test/run/{runId}/{_stepId}/logs/requestAndResponse`
|
|
3922
3985
|
when you need the raw outbound HTTP request/response captures instead of
|
|
3923
3986
|
the staged record view.
|
|
@@ -4008,6 +4071,43 @@ paths:
|
|
|
4008
4071
|
items:
|
|
4009
4072
|
type: object
|
|
4010
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
|
|
4011
4111
|
examples:
|
|
4012
4112
|
default:
|
|
4013
4113
|
summary: Two stages — request (input only) and parse (output only)
|
|
@@ -4032,6 +4132,25 @@ paths:
|
|
|
4032
4132
|
errors: []
|
|
4033
4133
|
traceKey: null
|
|
4034
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
|
|
4035
4154
|
'400':
|
|
4036
4155
|
$ref: '#/components/responses/400-bad-request'
|
|
4037
4156
|
'401':
|
|
@@ -5090,10 +5209,10 @@ components:
|
|
|
5090
5209
|
type: string
|
|
5091
5210
|
description: |
|
|
5092
5211
|
Label for the branch, unique within the router. On a branching router it is shown on
|
|
5093
|
-
the Flow Builder canvas
|
|
5094
|
-
|
|
5095
|
-
pass-through router has no visible label; the server
|
|
5096
|
-
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.
|
|
5097
5216
|
examples:
|
|
5098
5217
|
- enterprise_customers
|
|
5099
5218
|
- high_priority
|
|
@@ -5301,10 +5420,20 @@ components:
|
|
|
5301
5420
|
- 60a2c4e6f321d800129a1a3c
|
|
5302
5421
|
function:
|
|
5303
5422
|
type: string
|
|
5304
|
-
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.
|
|
5305
5428
|
examples:
|
|
5306
5429
|
- routeByCustomerType
|
|
5307
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`.
|
|
5308
5437
|
branches:
|
|
5309
5438
|
type: array
|
|
5310
5439
|
description: |
|
|
@@ -5739,7 +5868,7 @@ components:
|
|
|
5739
5868
|
- 66a1f2c3b4d5e6f7a8b9c0d1
|
|
5740
5869
|
function:
|
|
5741
5870
|
type: string
|
|
5742
|
-
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]`.
|
|
5743
5872
|
branches:
|
|
5744
5873
|
type: array
|
|
5745
5874
|
description: Override branch configurations
|
|
@@ -6237,7 +6366,8 @@ components:
|
|
|
6237
6366
|
|
|
6238
6367
|
Constraints: top-level `pageProcessors` are not allowed (use `routers` — a linear chain
|
|
6239
6368
|
sits in one pass-through router with neither routing field set), cannot reference another
|
|
6240
|
-
abstract flow, cannot be a "run next" target, and cannot be unset
|
|
6369
|
+
abstract flow, cannot be a "run next" target, and cannot be unset or deleted while
|
|
6370
|
+
instances exist — delete the instances first.
|
|
6241
6371
|
examples:
|
|
6242
6372
|
- true
|
|
6243
6373
|
- false
|
|
@@ -6254,6 +6384,8 @@ components:
|
|
|
6254
6384
|
customize it only through `overrides`.
|
|
6255
6385
|
Do not set `pageGenerators`, `pageProcessors`, `routers`,
|
|
6256
6386
|
or `runPageGeneratorsInParallel` on the instance — they are inherited from the abstract flow.
|
|
6387
|
+
A create or PUT that carries `pageGenerators` or `routers` fails with 422
|
|
6388
|
+
`flow_instance_invalid_fields`.
|
|
6257
6389
|
examples:
|
|
6258
6390
|
- 60a2c4e6f321d800129a1a3c
|
|
6259
6391
|
overrides:
|