@celigo/api-specs 0.2.258 → 0.2.260
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/ai-agent.yml +110 -16
- package/dist/editransaction.yml +28 -2
- package/dist/export.yml +218 -52
- package/dist/flow.yml +242 -14
- package/dist/guardrail.yml +27 -0
- package/dist/import.yml +168 -27
- package/dist/mcp-server.yml +120 -10
- package/dist/tool.yml +133 -34
- package/package.json +1 -1
- package/schemas.json +66 -44
package/dist/ai-agent.yml
CHANGED
|
@@ -228,6 +228,7 @@ paths:
|
|
|
228
228
|
strict: false
|
|
229
229
|
verbose: medium
|
|
230
230
|
tools: []
|
|
231
|
+
attachedKnowledgeBaseIds: []
|
|
231
232
|
createdAt: '2026-03-09T17:17:50.501Z'
|
|
232
233
|
lastModified: '2026-03-09T17:17:50.501Z'
|
|
233
234
|
'400':
|
|
@@ -1352,6 +1353,32 @@ components:
|
|
|
1352
1353
|
the array index.
|
|
1353
1354
|
resources:
|
|
1354
1355
|
$ref: '#/components/schemas/McpResources'
|
|
1356
|
+
attachedKnowledgeBaseIds:
|
|
1357
|
+
type: array
|
|
1358
|
+
maxItems: 50
|
|
1359
|
+
uniqueItems: true
|
|
1360
|
+
default: []
|
|
1361
|
+
description: |-
|
|
1362
|
+
Knowledge bases the agent retrieves from, for every provider. Returned on every agent —
|
|
1363
|
+
`[]` until one is attached — except after a PATCH `remove`, which drops the field. On PUT
|
|
1364
|
+
a non-empty array replaces the stored list (duplicate ids collapse to their first
|
|
1365
|
+
occurrence), while omitting the list, `null`, and `[]` all keep it; clear it with
|
|
1366
|
+
`PATCH /v1/imports/{_id}` — `replace` with `[]` or `remove` on
|
|
1367
|
+
`/aiAgent/attachedKnowledgeBaseIds`.
|
|
1368
|
+
items:
|
|
1369
|
+
type: string
|
|
1370
|
+
format: objectId
|
|
1371
|
+
x-celigo-refModel: knowledgebases
|
|
1372
|
+
x-celigo-ai-guidance:
|
|
1373
|
+
- |-
|
|
1374
|
+
Every id must be a knowledge base in this environment (`GET /v1/knowledgebases`):
|
|
1375
|
+
any other value — a malformed string or the id of another resource — fails the save
|
|
1376
|
+
with 422 `attached_knowledge_base_invalid` naming the ids, and more than 50 distinct
|
|
1377
|
+
ids fails with 422 `invalid_field` on `aiAgent.attachedKnowledgeBaseIds`.
|
|
1378
|
+
- |-
|
|
1379
|
+
Sending `[]` on PUT does not detach anything; use PATCH `replace` with `[]` or
|
|
1380
|
+
`remove` on the whole path. PATCH `add` at `/aiAgent/attachedKnowledgeBaseIds/-`
|
|
1381
|
+
does not append — it fails with 422 — so send the complete list with `replace`.
|
|
1355
1382
|
openai:
|
|
1356
1383
|
type: object
|
|
1357
1384
|
description: |
|
|
@@ -6112,7 +6139,9 @@ components:
|
|
|
6112
6139
|
Two modes, decided by the SHAPE of the record entering the step. Object record with a child
|
|
6113
6140
|
array under a field → set ``pathToMany`` to that field. Array record (a ``groupByFields``
|
|
6114
6141
|
export, a CSV/file group, a script that returns an array) → leave ``pathToMany`` blank; each
|
|
6115
|
-
element becomes one record. Live-verified 2026-09-10 on flows, Tools, and APIs.
|
|
6142
|
+
element becomes one record. Live-verified 2026-09-10 on flows, Tools, and APIs. The one
|
|
6143
|
+
exception is an array record whose children sit under a single element's field: its path
|
|
6144
|
+
starts with that element's index (``0.items``) — see ``pathToMany``.
|
|
6116
6145
|
- |-
|
|
6117
6146
|
Blank ``pathToMany`` on an OBJECT record fails every record with code ``oneToMany_error``:
|
|
6118
6147
|
"Failed to extract child records from oneToMany import data. Record at index 0 was not an
|
|
@@ -6124,14 +6153,29 @@ components:
|
|
|
6124
6153
|
- |-
|
|
6125
6154
|
Child record shape differs by mode. Path mode: each child is the array element plus
|
|
6126
6155
|
``_PARENT`` (the parent record minus the array). Blank/row mode: each child is the element
|
|
6127
|
-
itself, with no ``_PARENT``. In both modes templates on the step reference
|
|
6156
|
+
itself, with no ``_PARENT``. In both modes templates on the step reference an object child as
|
|
6128
6157
|
``{{record.<field>}}``; a response mapping on a one-to-many lookup merges into each child and
|
|
6129
6158
|
the downstream step receives the re-joined parent (path mode) or the re-joined array (row
|
|
6130
6159
|
mode) with every element enriched.
|
|
6160
|
+
- |-
|
|
6161
|
+
A child that is itself an ARRAY (rows under the path, or an array element in row mode) is a
|
|
6162
|
+
grouped record in either mode: templates bind it as ``rows`` (``{{rows.0.<field>}}``,
|
|
6163
|
+
``{{rows.length}}``) and ``record.*`` is undefined — ``{{record.0.<field>}}`` renders empty
|
|
6164
|
+
in the HTTP body and leaves its field out of a mapping, while the record still succeeds with
|
|
6165
|
+
no error. ``{{0.<field>}}`` resolves in a mapping expression but renders empty in the body;
|
|
6166
|
+
``{{rows.0.<field>}}`` works in both. Live-verified 2026-10-26 in import previews and real
|
|
6167
|
+
flow runs.
|
|
6168
|
+
- |-
|
|
6169
|
+
An array child's ``_PARENT`` reaches mapping expressions (``{{_PARENT.<field>}}``) and
|
|
6170
|
+
JSONPath extracts (``$._PARENT.<field>``; the child's own rows are ``$[0].<field>``) —
|
|
6171
|
+
``_PARENT.0.<field>`` under an index path, whose parent is an array — but every ``_PARENT``
|
|
6172
|
+
path renders empty in the HTTP body template. To send a parent value, map it into a named
|
|
6173
|
+
row; the mapped record is then an object, which the body reads as ``{{record.<row>}}``.
|
|
6174
|
+
Live-verified 2026-10-26 in import previews and a real flow run.
|
|
6131
6175
|
- |-
|
|
6132
6176
|
One-to-many never batches by itself: ``batch_of_records`` appears as the HTTP body template
|
|
6133
6177
|
root only when ``http.batchSize`` is greater than 1 (children are batched after fan-out).
|
|
6134
|
-
With the default batch size the template root is ``record
|
|
6178
|
+
With the default batch size the template root is ``record`` (``rows`` for an array child).
|
|
6135
6179
|
default: false
|
|
6136
6180
|
examples:
|
|
6137
6181
|
- true
|
|
@@ -6139,11 +6183,13 @@ components:
|
|
|
6139
6183
|
PathToMany:
|
|
6140
6184
|
type: string
|
|
6141
6185
|
description: |
|
|
6142
|
-
Path to the array of child records
|
|
6143
|
-
|
|
6144
|
-
|
|
6145
|
-
|
|
6146
|
-
|
|
6186
|
+
Path to the array of child records when `oneToMany` is true, in dot notation (`items`,
|
|
6187
|
+
`lines.lineItems`). Leave blank when the incoming record is itself an array (grouped or
|
|
6188
|
+
row-based data) and each element is a child record; when an array record's children sit under
|
|
6189
|
+
one element's field, start the path with that element's index (`0.items`). A path that does not
|
|
6190
|
+
resolve to an array processes zero records and reports success. Read only on steps that receive
|
|
6191
|
+
a record (imports, lookup exports); on a standalone export it is saved and ignored — see
|
|
6192
|
+
`oneToMany`.
|
|
6147
6193
|
x-celigo-ai-guidance:
|
|
6148
6194
|
- |-
|
|
6149
6195
|
Inert on a standalone export (a flow's page generator) exactly like ``oneToMany`` — the value
|
|
@@ -6151,19 +6197,30 @@ components:
|
|
|
6151
6197
|
(live-verified 2026-09-18). Splitting a standalone export's records into one per element is
|
|
6152
6198
|
``hooks.preSavePage`` work, or the file definition's record boundary; never this field.
|
|
6153
6199
|
- |-
|
|
6154
|
-
|
|
6155
|
-
On an array record (a ``groupByFields`` export, a CSV/file
|
|
6156
|
-
|
|
6157
|
-
|
|
6158
|
-
|
|
6200
|
+
Start the path with a field name ONLY when the record entering the step is an object whose
|
|
6201
|
+
children sit under that field. On an array record (a ``groupByFields`` export, a CSV/file
|
|
6202
|
+
group, a script returning an array) a path that starts with a field name resolves to nothing:
|
|
6203
|
+
the step processes ZERO children, builds no request, and reports success with no error.
|
|
6204
|
+
Live-verified 2026-09-10 — the failure is silent, so confirm the arriving record's shape (test
|
|
6205
|
+
run stage data, or the flow builder's input panel: ``rows`` means array).
|
|
6206
|
+
- |-
|
|
6207
|
+
On an array record only a path that starts with an element index resolves:
|
|
6208
|
+
``0.finalFulfillmentData`` fans out the array under element 0's ``finalFulfillmentData``
|
|
6209
|
+
field. An index past the last element fans out zero children with the same silent success.
|
|
6210
|
+
Live-verified 2026-10-26 in import previews and real flow runs fed by a ``groupByFields``
|
|
6211
|
+
export.
|
|
6159
6212
|
- |-
|
|
6160
6213
|
Blank with an object record is the ``oneToMany_error`` failure ("Record at index 0 was not an
|
|
6161
6214
|
array, and no PathToMany was provided"); blank with an array record is the correct row-based
|
|
6162
6215
|
configuration. An empty string behaves exactly like an absent field.
|
|
6163
6216
|
- |-
|
|
6164
|
-
Use the bare field name or dotted path (``lineItems``, ``details.items``
|
|
6165
|
-
expression. Each child in path mode carries ``_PARENT`` (the
|
|
6166
|
-
parent-level fields
|
|
6217
|
+
Use the bare field name or dotted path (``lineItems``, ``details.items``, or ``0.items`` on an
|
|
6218
|
+
array record), not a JSONPath expression. Each child in path mode carries ``_PARENT`` (the
|
|
6219
|
+
parent minus the array), so an object child reads parent-level fields as
|
|
6220
|
+
``{{record._PARENT.<field>}}``. Under an index path the parent is the array record itself,
|
|
6221
|
+
minus only the fanned field: ``{{record._PARENT.0.<field>}}``, with its other elements at
|
|
6222
|
+
``_PARENT.1``, ``_PARENT.2``, and so on. A child that is itself an array binds as ``rows``
|
|
6223
|
+
instead — see ``oneToMany`` for where its ``_PARENT`` can be read.
|
|
6167
6224
|
examples:
|
|
6168
6225
|
- items
|
|
6169
6226
|
- line_items
|
|
@@ -6595,6 +6652,43 @@ components:
|
|
|
6595
6652
|
- aiAgent
|
|
6596
6653
|
allOf:
|
|
6597
6654
|
- $ref: '#/components/schemas/AiAgentBase'
|
|
6655
|
+
if:
|
|
6656
|
+
not:
|
|
6657
|
+
required:
|
|
6658
|
+
- _connectionId
|
|
6659
|
+
then:
|
|
6660
|
+
x-celigo-ui-override: The AI agent form (forms/definitions/ai/aiAgent.js preSave, with the Add tools picker) offers and keeps Code Execution only on a BYOK agent whose model metadata declares supportsCodeExecution (a BYOK agent's existing tool also survives while that metadata is unavailable), and strips it from a Celigo AI agent on save. Encoded to mirror the form so builders produce agents that can run.
|
|
6661
|
+
properties:
|
|
6662
|
+
aiAgent:
|
|
6663
|
+
properties:
|
|
6664
|
+
openai:
|
|
6665
|
+
properties:
|
|
6666
|
+
tools:
|
|
6667
|
+
items:
|
|
6668
|
+
properties:
|
|
6669
|
+
type:
|
|
6670
|
+
not:
|
|
6671
|
+
const: code_execution
|
|
6672
|
+
litellm:
|
|
6673
|
+
properties:
|
|
6674
|
+
_overrides:
|
|
6675
|
+
properties:
|
|
6676
|
+
gemini:
|
|
6677
|
+
properties:
|
|
6678
|
+
tools:
|
|
6679
|
+
items:
|
|
6680
|
+
properties:
|
|
6681
|
+
type:
|
|
6682
|
+
not:
|
|
6683
|
+
const: codeExecution
|
|
6684
|
+
anthropic:
|
|
6685
|
+
properties:
|
|
6686
|
+
tools:
|
|
6687
|
+
items:
|
|
6688
|
+
properties:
|
|
6689
|
+
type:
|
|
6690
|
+
not:
|
|
6691
|
+
const: codeExecution
|
|
6598
6692
|
PreviewCompareRequest:
|
|
6599
6693
|
type: object
|
|
6600
6694
|
description: |-
|
package/dist/editransaction.yml
CHANGED
|
@@ -261,6 +261,7 @@ paths:
|
|
|
261
261
|
mode: expand
|
|
262
262
|
referenceDocumentNumber: PO P129-ORDER-0001
|
|
263
263
|
partnerPairKey: 'ACMEFOODS :CELIGOTEST '
|
|
264
|
+
parentTransactionId: 6ae8902e8f6a1c2d3e4f5a6b
|
|
264
265
|
responses:
|
|
265
266
|
'200':
|
|
266
267
|
description: |-
|
|
@@ -603,7 +604,9 @@ paths:
|
|
|
603
604
|
- code: lifecycle_group_not_found
|
|
604
605
|
message: No accessible lifecycle group found for the given referenceDocumentNumber and partnerPairKey
|
|
605
606
|
'422':
|
|
606
|
-
description:
|
|
607
|
+
description: |-
|
|
608
|
+
A lifecycle field is unusable: `view` and `mode` contradict each other, or
|
|
609
|
+
`parentTransactionId` is not a 24-character hex id.
|
|
607
610
|
content:
|
|
608
611
|
application/json:
|
|
609
612
|
schema:
|
|
@@ -620,6 +623,12 @@ paths:
|
|
|
620
623
|
errors:
|
|
621
624
|
- code: invalid_query_view
|
|
622
625
|
message: view must be lifecycle when mode is provided
|
|
626
|
+
invalid_lifecycle_expand_parent_id:
|
|
627
|
+
summary: parentTransactionId that is not an object id
|
|
628
|
+
value:
|
|
629
|
+
errors:
|
|
630
|
+
- code: invalid_lifecycle_expand_parent_id
|
|
631
|
+
message: parentTransactionId must be a 24-character hex ObjectId
|
|
623
632
|
/v1/ediTransactions/search:
|
|
624
633
|
post:
|
|
625
634
|
x-internal: false
|
|
@@ -2718,7 +2727,7 @@ components:
|
|
|
2718
2727
|
- expand
|
|
2719
2728
|
x-enumDescriptions:
|
|
2720
2729
|
browse: Return one collapsed row per lifecycle group in `groups`.
|
|
2721
|
-
expand: Return
|
|
2730
|
+
expand: Return the group named by `referenceDocumentNumber` and `partnerPairKey` in `group`, with the parent row left out of `group.ediTransactions`.
|
|
2722
2731
|
description: |-
|
|
2723
2732
|
Lifecycle mode; required with `view: lifecycle`. Any other value fails
|
|
2724
2733
|
with 422 `invalid_lifecycle_mode`, and `mode` without
|
|
@@ -2742,6 +2751,23 @@ components:
|
|
|
2742
2751
|
Required with `mode: expand`.
|
|
2743
2752
|
examples:
|
|
2744
2753
|
- 'ACMEFOODS :CELIGOTEST '
|
|
2754
|
+
parentTransactionId:
|
|
2755
|
+
x-internal: false
|
|
2756
|
+
type:
|
|
2757
|
+
- string
|
|
2758
|
+
- 'null'
|
|
2759
|
+
format: objectId
|
|
2760
|
+
pattern: ^[a-fA-F0-9]{24}$
|
|
2761
|
+
x-celigo-refModel: editransactions
|
|
2762
|
+
description: |-
|
|
2763
|
+
Expand only. Transaction you already show as the group's parent row,
|
|
2764
|
+
usually the browse group's `latestTransaction._id`; letter case does
|
|
2765
|
+
not matter. Expand leaves it out of `group.ediTransactions` when it is
|
|
2766
|
+
among the returned members, and leaves nothing out when it is not.
|
|
2767
|
+
Omit it or send null to leave out the newest member instead; any other
|
|
2768
|
+
value fails with 422 `invalid_lifecycle_expand_parent_id`.
|
|
2769
|
+
examples:
|
|
2770
|
+
- 5f8d43a1b9e5a80011a35f2c
|
|
2745
2771
|
scanBatchSize:
|
|
2746
2772
|
type: integer
|
|
2747
2773
|
minimum: 1
|
package/dist/export.yml
CHANGED
|
@@ -471,7 +471,7 @@ paths:
|
|
|
471
471
|
description: |-
|
|
472
472
|
Runs an export doc through the flow engine's preview pipeline and returns
|
|
473
473
|
the sample data it would have emitted, along with stage-by-stage
|
|
474
|
-
diagnostics
|
|
474
|
+
diagnostics. **No Job record is created** and
|
|
475
475
|
no flow-level state is updated — this is a stateless preview.
|
|
476
476
|
|
|
477
477
|
Body is a complete export document (the shape you would POST to
|
|
@@ -489,12 +489,13 @@ paths:
|
|
|
489
489
|
when previewing a standalone export.
|
|
490
490
|
|
|
491
491
|
Use `test.limit` inside the body to cap the number of records
|
|
492
|
-
returned.
|
|
493
|
-
`errors[]
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
doesn't exist
|
|
492
|
+
returned. A preview that fails answers 422, not a 200 carrying
|
|
493
|
+
`errors[]`: structural validation failures (e.g. missing
|
|
494
|
+
`_connectionId`), an output `filter` with an unknown operator or one
|
|
495
|
+
that can't read a record's value, a Handlebars template that doesn't
|
|
496
|
+
compile, a hook or script that throws, an error status from the source
|
|
497
|
+
and a Google Cloud Storage bucket or object that doesn't exist all do
|
|
498
|
+
(see the 422 response).
|
|
498
499
|
requestBody:
|
|
499
500
|
required: true
|
|
500
501
|
content:
|
|
@@ -525,11 +526,8 @@ paths:
|
|
|
525
526
|
responses:
|
|
526
527
|
'200':
|
|
527
528
|
description: |-
|
|
528
|
-
Preview envelope for a preview that ran
|
|
529
|
-
422
|
|
530
|
-
the export config (handlebars template failures, runtime errors)
|
|
531
|
-
surface in `errors[]` and `stages[].errors[]`; inspect those before
|
|
532
|
-
trusting `stages[].data[]`.
|
|
529
|
+
Preview envelope for a preview that ran, without a top-level `errors`.
|
|
530
|
+
A failing preview answers 422 instead (see that response).
|
|
533
531
|
content:
|
|
534
532
|
application/json:
|
|
535
533
|
schema:
|
|
@@ -555,26 +553,159 @@ paths:
|
|
|
555
553
|
$ref: '#/components/responses/401-unauthorized'
|
|
556
554
|
'422':
|
|
557
555
|
description: |-
|
|
558
|
-
Structural validation
|
|
559
|
-
for fields the preview pipeline needs before
|
|
560
|
-
(e.g. `_connectionId`)
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
`
|
|
556
|
+
The preview failed. Structural validation comes first — typically
|
|
557
|
+
`missing_required_field` for fields the preview pipeline needs before
|
|
558
|
+
it can execute (e.g. `_connectionId`), an error that carries `code`
|
|
559
|
+
and `field` but no `message` — and an output `filter` with an unknown
|
|
560
|
+
operator is refused with `filter_validation_error`. Once the preview
|
|
561
|
+
runs, a Handlebars template that doesn't compile answers
|
|
562
|
+
`handlebars_template_parse_error` (`source: resource`), a hook or
|
|
563
|
+
script that throws answers `script_error` (`source` names the hook,
|
|
564
|
+
`stage` the stage it ran in, and that stage's `errors[]` is populated),
|
|
565
|
+
and an error status from the source comes back as the error's `code`
|
|
566
|
+
(`source: application`), with the `request` and `raw` stages beside
|
|
567
|
+
`errors`. A valid output filter also fails the preview when a record
|
|
568
|
+
holds a value its type conversion can't read, such as an empty or
|
|
569
|
+
non-date string under `epochtime`: the message is "Invalid date.
|
|
570
|
+
Cannot convert given string or number to date time.", followed by
|
|
571
|
+
`; record=` and that record as JSON. A Google Cloud Storage read of a
|
|
572
|
+
bucket or object that doesn't exist fails with `gcs_bucket_not_found`
|
|
573
|
+
or `gcs_object_not_found`.
|
|
567
574
|
content:
|
|
568
575
|
application/json:
|
|
569
576
|
schema:
|
|
570
|
-
|
|
577
|
+
type: object
|
|
578
|
+
required:
|
|
579
|
+
- errors
|
|
580
|
+
properties:
|
|
581
|
+
errors:
|
|
582
|
+
type: array
|
|
583
|
+
description: |-
|
|
584
|
+
One entry per failure; a structural failure lists each missing field.
|
|
585
|
+
Runtime failures also carry `resolved` and `occurredAt`, a source error its
|
|
586
|
+
`classification`, and a `script_error` its `stage`, `location` and `stack`.
|
|
587
|
+
items:
|
|
588
|
+
type: object
|
|
589
|
+
additionalProperties: true
|
|
590
|
+
required:
|
|
591
|
+
- code
|
|
592
|
+
properties:
|
|
593
|
+
code:
|
|
594
|
+
oneOf:
|
|
595
|
+
- type: string
|
|
596
|
+
- type: integer
|
|
597
|
+
description: |-
|
|
598
|
+
`missing_required_field` from structural validation, otherwise the
|
|
599
|
+
failure's code (`filter_validation_error`, `handlebars_template_parse_error`,
|
|
600
|
+
`script_error`, `gcs_bucket_not_found`, ...); an integer when it mirrors
|
|
601
|
+
the error status the source answered.
|
|
602
|
+
field:
|
|
603
|
+
type: string
|
|
604
|
+
description: |-
|
|
605
|
+
The document field a structural error is about (`_connectionId`), or
|
|
606
|
+
`filter` on `filter_validation_error`.
|
|
607
|
+
message:
|
|
608
|
+
type: string
|
|
609
|
+
description: |-
|
|
610
|
+
What went wrong, in the platform's words; absent on a structural
|
|
611
|
+
`missing_required_field` error, which carries `code` and `field` only.
|
|
612
|
+
source:
|
|
613
|
+
type: string
|
|
614
|
+
description: |-
|
|
615
|
+
Where the failure arose: `resource` for the export's own templates,
|
|
616
|
+
`application` for the source system's answer, the hook or filter name
|
|
617
|
+
(`pre_save_page_hook`, `output_filter`) for a `script_error`; absent on
|
|
618
|
+
structural errors.
|
|
619
|
+
stages:
|
|
620
|
+
type:
|
|
621
|
+
- array
|
|
622
|
+
- 'null'
|
|
623
|
+
description: |-
|
|
624
|
+
Present once the preview has started running: the stages that completed before
|
|
625
|
+
the failure (`request` and `raw` for a source error, through the failing hook or
|
|
626
|
+
filter stage for a `script_error`), shaped as in the 200 response, or `null`
|
|
627
|
+
when the request could not be built because a template doesn't compile.
|
|
628
|
+
items:
|
|
629
|
+
type: object
|
|
630
|
+
additionalProperties: true
|
|
571
631
|
examples:
|
|
572
632
|
missingConnection:
|
|
633
|
+
summary: Structural validation — the document has no _connectionId
|
|
573
634
|
value:
|
|
574
635
|
errors:
|
|
575
636
|
- code: missing_required_field
|
|
576
|
-
|
|
577
|
-
|
|
637
|
+
field: _connectionId
|
|
638
|
+
unknownFilterOperator:
|
|
639
|
+
summary: The output filter uses an operator that doesn't exist
|
|
640
|
+
value:
|
|
641
|
+
errors:
|
|
642
|
+
- field: filter
|
|
643
|
+
code: filter_validation_error
|
|
644
|
+
message: 'Invalid operation: frobnicate.'
|
|
645
|
+
handlebarsParseError:
|
|
646
|
+
summary: The relative URI template doesn't compile (message trimmed)
|
|
647
|
+
value:
|
|
648
|
+
errors:
|
|
649
|
+
- code: handlebars_template_parse_error
|
|
650
|
+
message: 'Failed to generate request url from template: https://api.example.com/users/{{#each}}. Details: Parse error on line 1: …'
|
|
651
|
+
source: resource
|
|
652
|
+
resolved: false
|
|
653
|
+
occurredAt: 1792564791337
|
|
654
|
+
stages: null
|
|
655
|
+
scriptError:
|
|
656
|
+
summary: The preSavePage hook throws (stages trimmed)
|
|
657
|
+
value:
|
|
658
|
+
errors:
|
|
659
|
+
- code: script_error
|
|
660
|
+
message: 'Error: boom from preSavePage'
|
|
661
|
+
source: pre_save_page_hook
|
|
662
|
+
stage: preSavePageHook
|
|
663
|
+
location: throwing-hook:2
|
|
664
|
+
resolved: false
|
|
665
|
+
occurredAt: 1794017910246
|
|
666
|
+
stages:
|
|
667
|
+
- name: request
|
|
668
|
+
data:
|
|
669
|
+
- url: https://api.example.com/users
|
|
670
|
+
method: GET
|
|
671
|
+
errors: null
|
|
672
|
+
- name: raw
|
|
673
|
+
data:
|
|
674
|
+
- url: https://api.example.com/users
|
|
675
|
+
statusCode: 200
|
|
676
|
+
errors: null
|
|
677
|
+
- name: parse
|
|
678
|
+
data:
|
|
679
|
+
- id: 1
|
|
680
|
+
errors: null
|
|
681
|
+
- name: preSavePageHook
|
|
682
|
+
data: null
|
|
683
|
+
errors:
|
|
684
|
+
- code: script_error
|
|
685
|
+
message: 'Error: boom from preSavePage'
|
|
686
|
+
source: pre_save_page_hook
|
|
687
|
+
sourceError:
|
|
688
|
+
summary: The source answers HTTP 500 (trimmed)
|
|
689
|
+
value:
|
|
690
|
+
errors:
|
|
691
|
+
- code: 500
|
|
692
|
+
message: Internal Server Error
|
|
693
|
+
source: application
|
|
694
|
+
classification: intermittent
|
|
695
|
+
resolved: false
|
|
696
|
+
occurredAt: 1792564790554
|
|
697
|
+
stages:
|
|
698
|
+
- name: request
|
|
699
|
+
data:
|
|
700
|
+
- url: https://api.example.com/users
|
|
701
|
+
method: GET
|
|
702
|
+
errors: null
|
|
703
|
+
- name: raw
|
|
704
|
+
data:
|
|
705
|
+
- url: https://api.example.com/users
|
|
706
|
+
statusCode: 500
|
|
707
|
+
body: ''
|
|
708
|
+
errors: null
|
|
578
709
|
gcsBucketNotFound:
|
|
579
710
|
summary: Google Cloud Storage bucket that doesn't exist
|
|
580
711
|
value:
|
|
@@ -887,7 +1018,9 @@ components:
|
|
|
887
1018
|
Two modes, decided by the SHAPE of the record entering the step. Object record with a child
|
|
888
1019
|
array under a field → set ``pathToMany`` to that field. Array record (a ``groupByFields``
|
|
889
1020
|
export, a CSV/file group, a script that returns an array) → leave ``pathToMany`` blank; each
|
|
890
|
-
element becomes one record. Live-verified 2026-09-10 on flows, Tools, and APIs.
|
|
1021
|
+
element becomes one record. Live-verified 2026-09-10 on flows, Tools, and APIs. The one
|
|
1022
|
+
exception is an array record whose children sit under a single element's field: its path
|
|
1023
|
+
starts with that element's index (``0.items``) — see ``pathToMany``.
|
|
891
1024
|
- |-
|
|
892
1025
|
Blank ``pathToMany`` on an OBJECT record fails every record with code ``oneToMany_error``:
|
|
893
1026
|
"Failed to extract child records from oneToMany import data. Record at index 0 was not an
|
|
@@ -899,14 +1032,29 @@ components:
|
|
|
899
1032
|
- |-
|
|
900
1033
|
Child record shape differs by mode. Path mode: each child is the array element plus
|
|
901
1034
|
``_PARENT`` (the parent record minus the array). Blank/row mode: each child is the element
|
|
902
|
-
itself, with no ``_PARENT``. In both modes templates on the step reference
|
|
1035
|
+
itself, with no ``_PARENT``. In both modes templates on the step reference an object child as
|
|
903
1036
|
``{{record.<field>}}``; a response mapping on a one-to-many lookup merges into each child and
|
|
904
1037
|
the downstream step receives the re-joined parent (path mode) or the re-joined array (row
|
|
905
1038
|
mode) with every element enriched.
|
|
1039
|
+
- |-
|
|
1040
|
+
A child that is itself an ARRAY (rows under the path, or an array element in row mode) is a
|
|
1041
|
+
grouped record in either mode: templates bind it as ``rows`` (``{{rows.0.<field>}}``,
|
|
1042
|
+
``{{rows.length}}``) and ``record.*`` is undefined — ``{{record.0.<field>}}`` renders empty
|
|
1043
|
+
in the HTTP body and leaves its field out of a mapping, while the record still succeeds with
|
|
1044
|
+
no error. ``{{0.<field>}}`` resolves in a mapping expression but renders empty in the body;
|
|
1045
|
+
``{{rows.0.<field>}}`` works in both. Live-verified 2026-10-26 in import previews and real
|
|
1046
|
+
flow runs.
|
|
1047
|
+
- |-
|
|
1048
|
+
An array child's ``_PARENT`` reaches mapping expressions (``{{_PARENT.<field>}}``) and
|
|
1049
|
+
JSONPath extracts (``$._PARENT.<field>``; the child's own rows are ``$[0].<field>``) —
|
|
1050
|
+
``_PARENT.0.<field>`` under an index path, whose parent is an array — but every ``_PARENT``
|
|
1051
|
+
path renders empty in the HTTP body template. To send a parent value, map it into a named
|
|
1052
|
+
row; the mapped record is then an object, which the body reads as ``{{record.<row>}}``.
|
|
1053
|
+
Live-verified 2026-10-26 in import previews and a real flow run.
|
|
906
1054
|
- |-
|
|
907
1055
|
One-to-many never batches by itself: ``batch_of_records`` appears as the HTTP body template
|
|
908
1056
|
root only when ``http.batchSize`` is greater than 1 (children are batched after fan-out).
|
|
909
|
-
With the default batch size the template root is ``record
|
|
1057
|
+
With the default batch size the template root is ``record`` (``rows`` for an array child).
|
|
910
1058
|
default: false
|
|
911
1059
|
examples:
|
|
912
1060
|
- true
|
|
@@ -914,11 +1062,13 @@ components:
|
|
|
914
1062
|
PathToMany:
|
|
915
1063
|
type: string
|
|
916
1064
|
description: |
|
|
917
|
-
Path to the array of child records
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
1065
|
+
Path to the array of child records when `oneToMany` is true, in dot notation (`items`,
|
|
1066
|
+
`lines.lineItems`). Leave blank when the incoming record is itself an array (grouped or
|
|
1067
|
+
row-based data) and each element is a child record; when an array record's children sit under
|
|
1068
|
+
one element's field, start the path with that element's index (`0.items`). A path that does not
|
|
1069
|
+
resolve to an array processes zero records and reports success. Read only on steps that receive
|
|
1070
|
+
a record (imports, lookup exports); on a standalone export it is saved and ignored — see
|
|
1071
|
+
`oneToMany`.
|
|
922
1072
|
x-celigo-ai-guidance:
|
|
923
1073
|
- |-
|
|
924
1074
|
Inert on a standalone export (a flow's page generator) exactly like ``oneToMany`` — the value
|
|
@@ -926,19 +1076,30 @@ components:
|
|
|
926
1076
|
(live-verified 2026-09-18). Splitting a standalone export's records into one per element is
|
|
927
1077
|
``hooks.preSavePage`` work, or the file definition's record boundary; never this field.
|
|
928
1078
|
- |-
|
|
929
|
-
|
|
930
|
-
On an array record (a ``groupByFields`` export, a CSV/file
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
1079
|
+
Start the path with a field name ONLY when the record entering the step is an object whose
|
|
1080
|
+
children sit under that field. On an array record (a ``groupByFields`` export, a CSV/file
|
|
1081
|
+
group, a script returning an array) a path that starts with a field name resolves to nothing:
|
|
1082
|
+
the step processes ZERO children, builds no request, and reports success with no error.
|
|
1083
|
+
Live-verified 2026-09-10 — the failure is silent, so confirm the arriving record's shape (test
|
|
1084
|
+
run stage data, or the flow builder's input panel: ``rows`` means array).
|
|
1085
|
+
- |-
|
|
1086
|
+
On an array record only a path that starts with an element index resolves:
|
|
1087
|
+
``0.finalFulfillmentData`` fans out the array under element 0's ``finalFulfillmentData``
|
|
1088
|
+
field. An index past the last element fans out zero children with the same silent success.
|
|
1089
|
+
Live-verified 2026-10-26 in import previews and real flow runs fed by a ``groupByFields``
|
|
1090
|
+
export.
|
|
934
1091
|
- |-
|
|
935
1092
|
Blank with an object record is the ``oneToMany_error`` failure ("Record at index 0 was not an
|
|
936
1093
|
array, and no PathToMany was provided"); blank with an array record is the correct row-based
|
|
937
1094
|
configuration. An empty string behaves exactly like an absent field.
|
|
938
1095
|
- |-
|
|
939
|
-
Use the bare field name or dotted path (``lineItems``, ``details.items``
|
|
940
|
-
expression. Each child in path mode carries ``_PARENT`` (the
|
|
941
|
-
parent-level fields
|
|
1096
|
+
Use the bare field name or dotted path (``lineItems``, ``details.items``, or ``0.items`` on an
|
|
1097
|
+
array record), not a JSONPath expression. Each child in path mode carries ``_PARENT`` (the
|
|
1098
|
+
parent minus the array), so an object child reads parent-level fields as
|
|
1099
|
+
``{{record._PARENT.<field>}}``. Under an index path the parent is the array record itself,
|
|
1100
|
+
minus only the fanned field: ``{{record._PARENT.0.<field>}}``, with its other elements at
|
|
1101
|
+
``_PARENT.1``, ``_PARENT.2``, and so on. A child that is itself an array binds as ``rows``
|
|
1102
|
+
instead — see ``oneToMany`` for where its ``_PARENT`` can be read.
|
|
942
1103
|
examples:
|
|
943
1104
|
- items
|
|
944
1105
|
- line_items
|
|
@@ -16909,18 +17070,24 @@ components:
|
|
|
16909
17070
|
`webhook` object when `type` is `webhook`); an HTTP or SQL `delta` export saves without a
|
|
16910
17071
|
`delta` object because its request carries `{{lastExportDateTime}}`, though
|
|
16911
17072
|
`delta.startDate` sets its first window. It still needs `type: delta`: on an export
|
|
16912
|
-
with no `type` (or `all
|
|
16913
|
-
|
|
16914
|
-
|
|
16915
|
-
|
|
16916
|
-
|
|
16917
|
-
|
|
16918
|
-
|
|
17073
|
+
with no `type` (or `all`), `{{lastExportDateTime}}` and `{{currentExportDateTime}}` are
|
|
17074
|
+
not defined, and where that leaves an HTTP export's run depends on which part of the
|
|
17075
|
+
request carries them. Bare in `http.body` they render empty, so the body goes out with
|
|
17076
|
+
blank values each time; bare in `http.relativeURI` or a header, the run fails before
|
|
17077
|
+
anything is sent with `handlebars_template_parse_error`, "Failed to generate request url
|
|
17078
|
+
(or headers) from template … Details: "lastExportDateTime" not defined in the model".
|
|
17079
|
+
Under `type: test` they are defined but empty, so the URI, a header or the body goes out
|
|
17080
|
+
with blank values instead. `dateFormat` on one renders the run's current time (the
|
|
17081
|
+
request asks for changes since now), and `dateAdd` on one fails the whole render in the
|
|
17082
|
+
body or the relative URI alike — `handlebars_template_parse_error`, "Failed to generate
|
|
17083
|
+
request body (or url) from template … Details: Invalid time value" (live-verified
|
|
17084
|
+
2026-10-22, 2026-11-04 and 2026-11-06). When incremental reads are intended, restoring
|
|
16919
17085
|
`type: delta` (with `delta.startDate` for the first window) makes the variables resolve;
|
|
16920
17086
|
when reading everything is intended, change the template — drop the variable or guard it
|
|
16921
17087
|
with `{{#if lastExportDateTime}}…{{else}}fallback{{/if}}`, whose else branch (a literal, in
|
|
16922
|
-
practice a fixed start date) renders
|
|
16923
|
-
`type: test`. Use `blob` only to transfer raw files
|
|
17088
|
+
practice a fixed start date) renders, in the relative URI as well as the body, on an
|
|
17089
|
+
export with no `type`, `type: all` or `type: test`. Use `blob` only to transfer raw files
|
|
17090
|
+
without parsing their contents.
|
|
16924
17091
|
x-celigo-ai-guidance:
|
|
16925
17092
|
- |-
|
|
16926
17093
|
## HOW TO PICK THE TYPE VALUE
|
|
@@ -18302,9 +18469,8 @@ components:
|
|
|
18302
18469
|
errors:
|
|
18303
18470
|
type: array
|
|
18304
18471
|
description: |-
|
|
18305
|
-
|
|
18306
|
-
|
|
18307
|
-
ran clean; callers should treat `undefined` and `[]` as equivalent.
|
|
18472
|
+
Absent from a 200 response. A preview that fails answers 422 instead,
|
|
18473
|
+
with its errors in that body.
|
|
18308
18474
|
items:
|
|
18309
18475
|
type: object
|
|
18310
18476
|
additionalProperties: true
|