@celigo/api-specs 0.2.257 → 0.2.259
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 +73 -16
- package/dist/audit.yml +16 -0
- package/dist/editransaction.yml +177 -38
- package/dist/export.yml +46 -16
- package/dist/guardrail.yml +27 -0
- package/dist/import.yml +130 -27
- package/dist/processor.yml +112 -6
- package/dist/recyclebin.yml +6 -0
- package/dist/tool.yml +118 -25
- package/package.json +1 -1
- package/schemas.json +2 -1
package/dist/export.yml
CHANGED
|
@@ -887,7 +887,9 @@ components:
|
|
|
887
887
|
Two modes, decided by the SHAPE of the record entering the step. Object record with a child
|
|
888
888
|
array under a field → set ``pathToMany`` to that field. Array record (a ``groupByFields``
|
|
889
889
|
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.
|
|
890
|
+
element becomes one record. Live-verified 2026-09-10 on flows, Tools, and APIs. The one
|
|
891
|
+
exception is an array record whose children sit under a single element's field: its path
|
|
892
|
+
starts with that element's index (``0.items``) — see ``pathToMany``.
|
|
891
893
|
- |-
|
|
892
894
|
Blank ``pathToMany`` on an OBJECT record fails every record with code ``oneToMany_error``:
|
|
893
895
|
"Failed to extract child records from oneToMany import data. Record at index 0 was not an
|
|
@@ -899,14 +901,29 @@ components:
|
|
|
899
901
|
- |-
|
|
900
902
|
Child record shape differs by mode. Path mode: each child is the array element plus
|
|
901
903
|
``_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
|
|
904
|
+
itself, with no ``_PARENT``. In both modes templates on the step reference an object child as
|
|
903
905
|
``{{record.<field>}}``; a response mapping on a one-to-many lookup merges into each child and
|
|
904
906
|
the downstream step receives the re-joined parent (path mode) or the re-joined array (row
|
|
905
907
|
mode) with every element enriched.
|
|
908
|
+
- |-
|
|
909
|
+
A child that is itself an ARRAY (rows under the path, or an array element in row mode) is a
|
|
910
|
+
grouped record in either mode: templates bind it as ``rows`` (``{{rows.0.<field>}}``,
|
|
911
|
+
``{{rows.length}}``) and ``record.*`` is undefined — ``{{record.0.<field>}}`` renders empty
|
|
912
|
+
in the HTTP body and leaves its field out of a mapping, while the record still succeeds with
|
|
913
|
+
no error. ``{{0.<field>}}`` resolves in a mapping expression but renders empty in the body;
|
|
914
|
+
``{{rows.0.<field>}}`` works in both. Live-verified 2026-10-26 in import previews and real
|
|
915
|
+
flow runs.
|
|
916
|
+
- |-
|
|
917
|
+
An array child's ``_PARENT`` reaches mapping expressions (``{{_PARENT.<field>}}``) and
|
|
918
|
+
JSONPath extracts (``$._PARENT.<field>``; the child's own rows are ``$[0].<field>``) —
|
|
919
|
+
``_PARENT.0.<field>`` under an index path, whose parent is an array — but every ``_PARENT``
|
|
920
|
+
path renders empty in the HTTP body template. To send a parent value, map it into a named
|
|
921
|
+
row; the mapped record is then an object, which the body reads as ``{{record.<row>}}``.
|
|
922
|
+
Live-verified 2026-10-26 in import previews and a real flow run.
|
|
906
923
|
- |-
|
|
907
924
|
One-to-many never batches by itself: ``batch_of_records`` appears as the HTTP body template
|
|
908
925
|
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
|
|
926
|
+
With the default batch size the template root is ``record`` (``rows`` for an array child).
|
|
910
927
|
default: false
|
|
911
928
|
examples:
|
|
912
929
|
- true
|
|
@@ -914,11 +931,13 @@ components:
|
|
|
914
931
|
PathToMany:
|
|
915
932
|
type: string
|
|
916
933
|
description: |
|
|
917
|
-
Path to the array of child records
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
934
|
+
Path to the array of child records when `oneToMany` is true, in dot notation (`items`,
|
|
935
|
+
`lines.lineItems`). Leave blank when the incoming record is itself an array (grouped or
|
|
936
|
+
row-based data) and each element is a child record; when an array record's children sit under
|
|
937
|
+
one element's field, start the path with that element's index (`0.items`). A path that does not
|
|
938
|
+
resolve to an array processes zero records and reports success. Read only on steps that receive
|
|
939
|
+
a record (imports, lookup exports); on a standalone export it is saved and ignored — see
|
|
940
|
+
`oneToMany`.
|
|
922
941
|
x-celigo-ai-guidance:
|
|
923
942
|
- |-
|
|
924
943
|
Inert on a standalone export (a flow's page generator) exactly like ``oneToMany`` — the value
|
|
@@ -926,19 +945,30 @@ components:
|
|
|
926
945
|
(live-verified 2026-09-18). Splitting a standalone export's records into one per element is
|
|
927
946
|
``hooks.preSavePage`` work, or the file definition's record boundary; never this field.
|
|
928
947
|
- |-
|
|
929
|
-
|
|
930
|
-
On an array record (a ``groupByFields`` export, a CSV/file
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
948
|
+
Start the path with a field name ONLY when the record entering the step is an object whose
|
|
949
|
+
children sit under that field. On an array record (a ``groupByFields`` export, a CSV/file
|
|
950
|
+
group, a script returning an array) a path that starts with a field name resolves to nothing:
|
|
951
|
+
the step processes ZERO children, builds no request, and reports success with no error.
|
|
952
|
+
Live-verified 2026-09-10 — the failure is silent, so confirm the arriving record's shape (test
|
|
953
|
+
run stage data, or the flow builder's input panel: ``rows`` means array).
|
|
954
|
+
- |-
|
|
955
|
+
On an array record only a path that starts with an element index resolves:
|
|
956
|
+
``0.finalFulfillmentData`` fans out the array under element 0's ``finalFulfillmentData``
|
|
957
|
+
field. An index past the last element fans out zero children with the same silent success.
|
|
958
|
+
Live-verified 2026-10-26 in import previews and real flow runs fed by a ``groupByFields``
|
|
959
|
+
export.
|
|
934
960
|
- |-
|
|
935
961
|
Blank with an object record is the ``oneToMany_error`` failure ("Record at index 0 was not an
|
|
936
962
|
array, and no PathToMany was provided"); blank with an array record is the correct row-based
|
|
937
963
|
configuration. An empty string behaves exactly like an absent field.
|
|
938
964
|
- |-
|
|
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
|
|
965
|
+
Use the bare field name or dotted path (``lineItems``, ``details.items``, or ``0.items`` on an
|
|
966
|
+
array record), not a JSONPath expression. Each child in path mode carries ``_PARENT`` (the
|
|
967
|
+
parent minus the array), so an object child reads parent-level fields as
|
|
968
|
+
``{{record._PARENT.<field>}}``. Under an index path the parent is the array record itself,
|
|
969
|
+
minus only the fanned field: ``{{record._PARENT.0.<field>}}``, with its other elements at
|
|
970
|
+
``_PARENT.1``, ``_PARENT.2``, and so on. A child that is itself an array binds as ``rows``
|
|
971
|
+
instead — see ``oneToMany`` for where its ``_PARENT`` can be read.
|
|
942
972
|
examples:
|
|
943
973
|
- items
|
|
944
974
|
- line_items
|
package/dist/guardrail.yml
CHANGED
|
@@ -865,6 +865,33 @@ components:
|
|
|
865
865
|
the array index.
|
|
866
866
|
resources:
|
|
867
867
|
$ref: '#/components/schemas/McpResources'
|
|
868
|
+
attachedKnowledgeBaseIds:
|
|
869
|
+
type: array
|
|
870
|
+
maxItems: 50
|
|
871
|
+
uniqueItems: true
|
|
872
|
+
description: |-
|
|
873
|
+
Knowledge bases the guardrail's model retrieves from, for every provider. Present only once
|
|
874
|
+
set: a guardrail created without the list has no field, and a PATCH `remove` drops it
|
|
875
|
+
again. On PUT a non-empty array replaces the stored list (duplicate ids collapse to their
|
|
876
|
+
first occurrence), while omitting the list, `null`, and `[]` all keep it; clear it with
|
|
877
|
+
`PATCH /v1/imports/{_id}` — `replace` with `[]` or `remove` on
|
|
878
|
+
`/guardrail/aiAgent/attachedKnowledgeBaseIds`.
|
|
879
|
+
items:
|
|
880
|
+
type: string
|
|
881
|
+
format: objectId
|
|
882
|
+
x-celigo-refModel: knowledgebases
|
|
883
|
+
x-celigo-ai-guidance:
|
|
884
|
+
- |-
|
|
885
|
+
Every id must be a knowledge base in this environment (`GET /v1/knowledgebases`):
|
|
886
|
+
any other value — a malformed string or the id of another resource — fails the save
|
|
887
|
+
with 422 `attached_knowledge_base_invalid` naming the ids, and more than 50 distinct
|
|
888
|
+
ids fails with 422 `invalid_field` on `guardrail.aiAgent.attachedKnowledgeBaseIds`
|
|
889
|
+
(the message names `aiAgent.attachedKnowledgeBaseIds`).
|
|
890
|
+
- |-
|
|
891
|
+
Sending `[]` on PUT does not detach anything; use PATCH `replace` with `[]` or
|
|
892
|
+
`remove` on the whole path. PATCH `add` at
|
|
893
|
+
`/guardrail/aiAgent/attachedKnowledgeBaseIds/-` does not append — it fails with
|
|
894
|
+
422 — so send the complete list with `replace`.
|
|
868
895
|
openai:
|
|
869
896
|
type: object
|
|
870
897
|
description: |
|
package/dist/import.yml
CHANGED
|
@@ -294,13 +294,15 @@ paths:
|
|
|
294
294
|
summary: Patch an import
|
|
295
295
|
description: |-
|
|
296
296
|
Partially updates an import using a JSON Patch document (RFC 6902).
|
|
297
|
-
Only the following whitelisted
|
|
297
|
+
Only the following whitelisted paths are accepted:
|
|
298
298
|
|
|
299
299
|
| Path | Operations | Description |
|
|
300
300
|
|------|------------|-------------|
|
|
301
301
|
| `/debugUntil` | `replace`, `add`, `remove` | Step debug-capture expiry (ISO-8601, at most 3600 seconds from now — a later value is rejected with 422 `update_not_allowed`); `remove` stops capture and succeeds even when the field is absent |
|
|
302
|
+
| `/aiAgent/attachedKnowledgeBaseIds` | `replace`, `add`, `remove` | Knowledge bases an AI agent import retrieves from, always as the whole list: `replace` or `add` with the full array (an id that is not a knowledge base in this environment is rejected with 422 `attached_knowledge_base_invalid`), `remove` drops the field. PATCH is the only way to detach — `replace` with `[]` or `remove` clears the list, while a PUT with `[]` keeps the stored ids. `add` at `/-` and `remove` at an array index are rejected with 422 |
|
|
303
|
+
| `/guardrail/aiAgent/attachedKnowledgeBaseIds` | `replace`, `add`, `remove` | The same list on an `ai_agent` guardrail import, with the same operations and errors |
|
|
302
304
|
|
|
303
|
-
All other paths are rejected with `422
|
|
305
|
+
All other paths are rejected with `422` (`"/name is not a whitelisted property"`).
|
|
304
306
|
operationId: patchImport
|
|
305
307
|
tags:
|
|
306
308
|
- Imports
|
|
@@ -328,6 +330,14 @@ paths:
|
|
|
328
330
|
- op: replace
|
|
329
331
|
path: /debugUntil
|
|
330
332
|
value: '2026-05-02T16:00:00.000Z'
|
|
333
|
+
attach_knowledge_bases:
|
|
334
|
+
summary: Replace an AI agent's attached knowledge bases
|
|
335
|
+
value:
|
|
336
|
+
- op: replace
|
|
337
|
+
path: /aiAgent/attachedKnowledgeBaseIds
|
|
338
|
+
value:
|
|
339
|
+
- 6aed72df39fad8fd3fe9ccc5
|
|
340
|
+
- 6aed731639fad8fd3fe9cccd
|
|
331
341
|
responses:
|
|
332
342
|
'204':
|
|
333
343
|
description: Import patched successfully
|
|
@@ -1518,6 +1528,8 @@ components:
|
|
|
1518
1528
|
Required whenever the connection referenced by _connectionId has type http, and on
|
|
1519
1529
|
`NetSuiteHTTPImport` (NetSuite's REST APIs on a `netsuite` connection, where `nsDomainType`
|
|
1520
1530
|
supplies the host).
|
|
1531
|
+
`ignoreExisting`, `ignoreMissing` and `ignoreExtract` are import-level fields; copies sent
|
|
1532
|
+
inside this object are dropped without an error, so nothing is skipped.
|
|
1521
1533
|
x-celigo-ai-guidance:
|
|
1522
1534
|
- |-
|
|
1523
1535
|
IMPORTANT:
|
|
@@ -2083,8 +2095,9 @@ components:
|
|
|
2083
2095
|
a serialized batch. The template root depends ONLY on
|
|
2084
2096
|
``batchSize`` (live-verified 2026-09-10): with ``batchSize`` 1
|
|
2085
2097
|
(the default) the root carries ``record`` (an object record —
|
|
2086
|
-
or
|
|
2087
|
-
(a grouped/array record
|
|
2098
|
+
or an object child fanned out by ``oneToMany``) or ``rows``
|
|
2099
|
+
(a grouped/array record, including a fanned-out child that is
|
|
2100
|
+
itself an array), and ``data`` is the one-element list
|
|
2088
2101
|
of records in the request (a grouped record is that element,
|
|
2089
2102
|
itself an array); with ``batchSize`` > 1 the root carries
|
|
2090
2103
|
``batch_of_records`` (one ``{record: …}`` item per object
|
|
@@ -2794,6 +2807,11 @@ components:
|
|
|
2794
2807
|
|
|
2795
2808
|
- **Static** — only ``map`` + optional ``default``. No HTTP
|
|
2796
2809
|
request issued. Use for small controlled vocabularies.
|
|
2810
|
+
Never add a ``map`` to a working request lookup: an entry that
|
|
2811
|
+
carries both saves without error, but only the map is used and
|
|
2812
|
+
the request is never sent, so every value the map lacks is a
|
|
2813
|
+
miss (``default``, or ``lookup_error`` under
|
|
2814
|
+
``allowFailures: false``) instead of the looked-up value.
|
|
2797
2815
|
- **Dynamic** — ``method`` + ``relativeURI`` (+ ``body``,
|
|
2798
2816
|
``headers``, ``extract``). Issues a live HTTP request per
|
|
2799
2817
|
lookup. Adds one HTTP request per record at runtime — factor
|
|
@@ -2887,10 +2905,13 @@ components:
|
|
|
2887
2905
|
- object
|
|
2888
2906
|
- 'null'
|
|
2889
2907
|
description: |
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
value is
|
|
2893
|
-
|
|
2908
|
+
Static key→value table. A lookup whose ``map`` holds any entry
|
|
2909
|
+
is static: a matching value returns the mapped value and any
|
|
2910
|
+
other value is a miss settled by ``default`` and
|
|
2911
|
+
``allowFailures``, with no HTTP request — ``method``,
|
|
2912
|
+
``relativeURI`` and ``extract`` saved beside it are never sent.
|
|
2913
|
+
Omit it on a request lookup; ``null`` is stored as sent and
|
|
2914
|
+
``{}`` is dropped on save, and either way the request runs.
|
|
2894
2915
|
default:
|
|
2895
2916
|
type:
|
|
2896
2917
|
- string
|
|
@@ -6645,7 +6666,7 @@ components:
|
|
|
6645
6666
|
- function
|
|
6646
6667
|
Salesforce:
|
|
6647
6668
|
type: object
|
|
6648
|
-
description: 'Salesforce-specific configuration for the import: the operation to perform, the API to use, and object-level settings such as `sObjectType`, `idLookup`, and `upsert`. Properties like `ignoreExisting`, `ignoreMissing`, `name`, and `description` are not part of this object — they belong at the import level.'
|
|
6669
|
+
description: 'Salesforce-specific configuration for the import: the operation to perform, the API to use, and object-level settings such as `sObjectType`, `idLookup`, and `upsert`. Properties like `ignoreExisting`, `ignoreMissing`, `name`, and `description` are not part of this object — they belong at the import level. An `ignoreExisting` sent inside this object is dropped without an error, so the import does not skip existing records.'
|
|
6649
6670
|
x-celigo-ai-guidance:
|
|
6650
6671
|
- |-
|
|
6651
6672
|
Configuration for Salesforce imports containing operation type, API selection,
|
|
@@ -7315,13 +7336,12 @@ components:
|
|
|
7315
7336
|
```json
|
|
7316
7337
|
{
|
|
7317
7338
|
"operation": "insert",
|
|
7318
|
-
"ignoreExisting": true,
|
|
7319
7339
|
"idLookup": {
|
|
7320
7340
|
"whereClause": "Email = '{{{Email}}}'"
|
|
7321
7341
|
}
|
|
7322
7342
|
}
|
|
7323
7343
|
```
|
|
7324
|
-
|
|
7344
|
+
With `ignoreExisting: true` set at the import level (not in this object), checks if a record with matching Email exists; if found, skips creation
|
|
7325
7345
|
|
|
7326
7346
|
### Addupdate (create or update) by Email:
|
|
7327
7347
|
```json
|
|
@@ -10101,6 +10121,32 @@ components:
|
|
|
10101
10121
|
the array index.
|
|
10102
10122
|
resources:
|
|
10103
10123
|
$ref: '#/components/schemas/McpResources'
|
|
10124
|
+
attachedKnowledgeBaseIds:
|
|
10125
|
+
type: array
|
|
10126
|
+
maxItems: 50
|
|
10127
|
+
uniqueItems: true
|
|
10128
|
+
default: []
|
|
10129
|
+
description: |-
|
|
10130
|
+
Knowledge bases the agent retrieves from, for every provider. Returned on every agent —
|
|
10131
|
+
`[]` until one is attached — except after a PATCH `remove`, which drops the field. On PUT
|
|
10132
|
+
a non-empty array replaces the stored list (duplicate ids collapse to their first
|
|
10133
|
+
occurrence), while omitting the list, `null`, and `[]` all keep it; clear it with
|
|
10134
|
+
`PATCH /v1/imports/{_id}` — `replace` with `[]` or `remove` on
|
|
10135
|
+
`/aiAgent/attachedKnowledgeBaseIds`.
|
|
10136
|
+
items:
|
|
10137
|
+
type: string
|
|
10138
|
+
format: objectId
|
|
10139
|
+
x-celigo-refModel: knowledgebases
|
|
10140
|
+
x-celigo-ai-guidance:
|
|
10141
|
+
- |-
|
|
10142
|
+
Every id must be a knowledge base in this environment (`GET /v1/knowledgebases`):
|
|
10143
|
+
any other value — a malformed string or the id of another resource — fails the save
|
|
10144
|
+
with 422 `attached_knowledge_base_invalid` naming the ids, and more than 50 distinct
|
|
10145
|
+
ids fails with 422 `invalid_field` on `aiAgent.attachedKnowledgeBaseIds`.
|
|
10146
|
+
- |-
|
|
10147
|
+
Sending `[]` on PUT does not detach anything; use PATCH `replace` with `[]` or
|
|
10148
|
+
`remove` on the whole path. PATCH `add` at `/aiAgent/attachedKnowledgeBaseIds/-`
|
|
10149
|
+
does not append — it fails with 422 — so send the complete list with `replace`.
|
|
10104
10150
|
openai:
|
|
10105
10151
|
type: object
|
|
10106
10152
|
description: |
|
|
@@ -11619,6 +11665,33 @@ components:
|
|
|
11619
11665
|
the array index.
|
|
11620
11666
|
resources:
|
|
11621
11667
|
$ref: '#/components/schemas/McpResources'
|
|
11668
|
+
attachedKnowledgeBaseIds:
|
|
11669
|
+
type: array
|
|
11670
|
+
maxItems: 50
|
|
11671
|
+
uniqueItems: true
|
|
11672
|
+
description: |-
|
|
11673
|
+
Knowledge bases the guardrail's model retrieves from, for every provider. Present only once
|
|
11674
|
+
set: a guardrail created without the list has no field, and a PATCH `remove` drops it
|
|
11675
|
+
again. On PUT a non-empty array replaces the stored list (duplicate ids collapse to their
|
|
11676
|
+
first occurrence), while omitting the list, `null`, and `[]` all keep it; clear it with
|
|
11677
|
+
`PATCH /v1/imports/{_id}` — `replace` with `[]` or `remove` on
|
|
11678
|
+
`/guardrail/aiAgent/attachedKnowledgeBaseIds`.
|
|
11679
|
+
items:
|
|
11680
|
+
type: string
|
|
11681
|
+
format: objectId
|
|
11682
|
+
x-celigo-refModel: knowledgebases
|
|
11683
|
+
x-celigo-ai-guidance:
|
|
11684
|
+
- |-
|
|
11685
|
+
Every id must be a knowledge base in this environment (`GET /v1/knowledgebases`):
|
|
11686
|
+
any other value — a malformed string or the id of another resource — fails the save
|
|
11687
|
+
with 422 `attached_knowledge_base_invalid` naming the ids, and more than 50 distinct
|
|
11688
|
+
ids fails with 422 `invalid_field` on `guardrail.aiAgent.attachedKnowledgeBaseIds`
|
|
11689
|
+
(the message names `aiAgent.attachedKnowledgeBaseIds`).
|
|
11690
|
+
- |-
|
|
11691
|
+
Sending `[]` on PUT does not detach anything; use PATCH `replace` with `[]` or
|
|
11692
|
+
`remove` on the whole path. PATCH `add` at
|
|
11693
|
+
`/guardrail/aiAgent/attachedKnowledgeBaseIds/-` does not append — it fails with
|
|
11694
|
+
422 — so send the complete list with `replace`.
|
|
11622
11695
|
openai:
|
|
11623
11696
|
type: object
|
|
11624
11697
|
description: |
|
|
@@ -12801,7 +12874,9 @@ components:
|
|
|
12801
12874
|
Two modes, decided by the SHAPE of the record entering the step. Object record with a child
|
|
12802
12875
|
array under a field → set ``pathToMany`` to that field. Array record (a ``groupByFields``
|
|
12803
12876
|
export, a CSV/file group, a script that returns an array) → leave ``pathToMany`` blank; each
|
|
12804
|
-
element becomes one record. Live-verified 2026-09-10 on flows, Tools, and APIs.
|
|
12877
|
+
element becomes one record. Live-verified 2026-09-10 on flows, Tools, and APIs. The one
|
|
12878
|
+
exception is an array record whose children sit under a single element's field: its path
|
|
12879
|
+
starts with that element's index (``0.items``) — see ``pathToMany``.
|
|
12805
12880
|
- |-
|
|
12806
12881
|
Blank ``pathToMany`` on an OBJECT record fails every record with code ``oneToMany_error``:
|
|
12807
12882
|
"Failed to extract child records from oneToMany import data. Record at index 0 was not an
|
|
@@ -12813,14 +12888,29 @@ components:
|
|
|
12813
12888
|
- |-
|
|
12814
12889
|
Child record shape differs by mode. Path mode: each child is the array element plus
|
|
12815
12890
|
``_PARENT`` (the parent record minus the array). Blank/row mode: each child is the element
|
|
12816
|
-
itself, with no ``_PARENT``. In both modes templates on the step reference
|
|
12891
|
+
itself, with no ``_PARENT``. In both modes templates on the step reference an object child as
|
|
12817
12892
|
``{{record.<field>}}``; a response mapping on a one-to-many lookup merges into each child and
|
|
12818
12893
|
the downstream step receives the re-joined parent (path mode) or the re-joined array (row
|
|
12819
12894
|
mode) with every element enriched.
|
|
12895
|
+
- |-
|
|
12896
|
+
A child that is itself an ARRAY (rows under the path, or an array element in row mode) is a
|
|
12897
|
+
grouped record in either mode: templates bind it as ``rows`` (``{{rows.0.<field>}}``,
|
|
12898
|
+
``{{rows.length}}``) and ``record.*`` is undefined — ``{{record.0.<field>}}`` renders empty
|
|
12899
|
+
in the HTTP body and leaves its field out of a mapping, while the record still succeeds with
|
|
12900
|
+
no error. ``{{0.<field>}}`` resolves in a mapping expression but renders empty in the body;
|
|
12901
|
+
``{{rows.0.<field>}}`` works in both. Live-verified 2026-10-26 in import previews and real
|
|
12902
|
+
flow runs.
|
|
12903
|
+
- |-
|
|
12904
|
+
An array child's ``_PARENT`` reaches mapping expressions (``{{_PARENT.<field>}}``) and
|
|
12905
|
+
JSONPath extracts (``$._PARENT.<field>``; the child's own rows are ``$[0].<field>``) —
|
|
12906
|
+
``_PARENT.0.<field>`` under an index path, whose parent is an array — but every ``_PARENT``
|
|
12907
|
+
path renders empty in the HTTP body template. To send a parent value, map it into a named
|
|
12908
|
+
row; the mapped record is then an object, which the body reads as ``{{record.<row>}}``.
|
|
12909
|
+
Live-verified 2026-10-26 in import previews and a real flow run.
|
|
12820
12910
|
- |-
|
|
12821
12911
|
One-to-many never batches by itself: ``batch_of_records`` appears as the HTTP body template
|
|
12822
12912
|
root only when ``http.batchSize`` is greater than 1 (children are batched after fan-out).
|
|
12823
|
-
With the default batch size the template root is ``record
|
|
12913
|
+
With the default batch size the template root is ``record`` (``rows`` for an array child).
|
|
12824
12914
|
default: false
|
|
12825
12915
|
examples:
|
|
12826
12916
|
- true
|
|
@@ -12828,11 +12918,13 @@ components:
|
|
|
12828
12918
|
PathToMany:
|
|
12829
12919
|
type: string
|
|
12830
12920
|
description: |
|
|
12831
|
-
Path to the array of child records
|
|
12832
|
-
|
|
12833
|
-
|
|
12834
|
-
|
|
12835
|
-
|
|
12921
|
+
Path to the array of child records when `oneToMany` is true, in dot notation (`items`,
|
|
12922
|
+
`lines.lineItems`). Leave blank when the incoming record is itself an array (grouped or
|
|
12923
|
+
row-based data) and each element is a child record; when an array record's children sit under
|
|
12924
|
+
one element's field, start the path with that element's index (`0.items`). A path that does not
|
|
12925
|
+
resolve to an array processes zero records and reports success. Read only on steps that receive
|
|
12926
|
+
a record (imports, lookup exports); on a standalone export it is saved and ignored — see
|
|
12927
|
+
`oneToMany`.
|
|
12836
12928
|
x-celigo-ai-guidance:
|
|
12837
12929
|
- |-
|
|
12838
12930
|
Inert on a standalone export (a flow's page generator) exactly like ``oneToMany`` — the value
|
|
@@ -12840,19 +12932,30 @@ components:
|
|
|
12840
12932
|
(live-verified 2026-09-18). Splitting a standalone export's records into one per element is
|
|
12841
12933
|
``hooks.preSavePage`` work, or the file definition's record boundary; never this field.
|
|
12842
12934
|
- |-
|
|
12843
|
-
|
|
12844
|
-
On an array record (a ``groupByFields`` export, a CSV/file
|
|
12845
|
-
|
|
12846
|
-
|
|
12847
|
-
|
|
12935
|
+
Start the path with a field name ONLY when the record entering the step is an object whose
|
|
12936
|
+
children sit under that field. On an array record (a ``groupByFields`` export, a CSV/file
|
|
12937
|
+
group, a script returning an array) a path that starts with a field name resolves to nothing:
|
|
12938
|
+
the step processes ZERO children, builds no request, and reports success with no error.
|
|
12939
|
+
Live-verified 2026-09-10 — the failure is silent, so confirm the arriving record's shape (test
|
|
12940
|
+
run stage data, or the flow builder's input panel: ``rows`` means array).
|
|
12941
|
+
- |-
|
|
12942
|
+
On an array record only a path that starts with an element index resolves:
|
|
12943
|
+
``0.finalFulfillmentData`` fans out the array under element 0's ``finalFulfillmentData``
|
|
12944
|
+
field. An index past the last element fans out zero children with the same silent success.
|
|
12945
|
+
Live-verified 2026-10-26 in import previews and real flow runs fed by a ``groupByFields``
|
|
12946
|
+
export.
|
|
12848
12947
|
- |-
|
|
12849
12948
|
Blank with an object record is the ``oneToMany_error`` failure ("Record at index 0 was not an
|
|
12850
12949
|
array, and no PathToMany was provided"); blank with an array record is the correct row-based
|
|
12851
12950
|
configuration. An empty string behaves exactly like an absent field.
|
|
12852
12951
|
- |-
|
|
12853
|
-
Use the bare field name or dotted path (``lineItems``, ``details.items``
|
|
12854
|
-
expression. Each child in path mode carries ``_PARENT`` (the
|
|
12855
|
-
parent-level fields
|
|
12952
|
+
Use the bare field name or dotted path (``lineItems``, ``details.items``, or ``0.items`` on an
|
|
12953
|
+
array record), not a JSONPath expression. Each child in path mode carries ``_PARENT`` (the
|
|
12954
|
+
parent minus the array), so an object child reads parent-level fields as
|
|
12955
|
+
``{{record._PARENT.<field>}}``. Under an index path the parent is the array record itself,
|
|
12956
|
+
minus only the fanned field: ``{{record._PARENT.0.<field>}}``, with its other elements at
|
|
12957
|
+
``_PARENT.1``, ``_PARENT.2``, and so on. A child that is itself an array binds as ``rows``
|
|
12958
|
+
instead — see ``oneToMany`` for where its ``_PARENT`` can be read.
|
|
12856
12959
|
examples:
|
|
12857
12960
|
- items
|
|
12858
12961
|
- line_items
|
package/dist/processor.yml
CHANGED
|
@@ -1189,10 +1189,11 @@ paths:
|
|
|
1189
1189
|
`null`, and a field under a null object fails the record before anything is sent. Check a
|
|
1190
1190
|
nullable field with an import preview, not here.
|
|
1191
1191
|
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1192
|
+
A helper that doesn't exist is refused with 422 once it is called with arguments or as a
|
|
1193
|
+
block; with neither, the name is read as a field and renders that field's value, or nothing.
|
|
1194
|
+
`GET /v1/processors` lists helpers under the handlebars entry's `helperFunctions`, but that
|
|
1195
|
+
list is not complete: `eq` and `truncateWords`, for example, render although it omits them,
|
|
1196
|
+
so render a doubtful helper once here before relying on it.
|
|
1196
1197
|
|
|
1197
1198
|
By default `lookup` doesn't resolve here: each call renders a placeholder such as
|
|
1198
1199
|
`{$ASYNCID$0$0$}`, Handlebars' own `{{lookup object key}}` form included, and the placeholder
|
|
@@ -1380,11 +1381,116 @@ paths:
|
|
|
1380
1381
|
description: |-
|
|
1381
1382
|
The template could not be rendered, for example because it calls a helper that does not
|
|
1382
1383
|
exist ('Missing helper: "first"') or, with `rules.strict`, reads a path the data doesn't
|
|
1383
|
-
carry ('"poNumber" not defined in the model').
|
|
1384
|
+
carry ('"poNumber" not defined in the model'). The body depends on what failed: a template
|
|
1385
|
+
that fails to render answers one flat error object (`code`, `message`, `source`, `path`)
|
|
1386
|
+
rather than the usual `errors` array; a static lookup that fails under `options` answers
|
|
1387
|
+
`statusCode` plus an `errors` array; an `http` connection sent without `options.fieldPath`
|
|
1388
|
+
answers an empty `{}`.
|
|
1384
1389
|
content:
|
|
1385
1390
|
application/json:
|
|
1386
1391
|
schema:
|
|
1387
|
-
|
|
1392
|
+
type: object
|
|
1393
|
+
properties:
|
|
1394
|
+
code:
|
|
1395
|
+
type: string
|
|
1396
|
+
enum:
|
|
1397
|
+
- cannot_evaluate_handlebars
|
|
1398
|
+
x-enumDescriptions:
|
|
1399
|
+
cannot_evaluate_handlebars: The template engine stopped before producing a result.
|
|
1400
|
+
description: |-
|
|
1401
|
+
Present when the template fails to render, whether a helper is missing, a block
|
|
1402
|
+
names a helper that doesn't exist, or a strict render reads a path the data
|
|
1403
|
+
doesn't carry.
|
|
1404
|
+
message:
|
|
1405
|
+
type: string
|
|
1406
|
+
description: |-
|
|
1407
|
+
Present when the template fails to render; what failed, as the template engine
|
|
1408
|
+
reports it.
|
|
1409
|
+
examples:
|
|
1410
|
+
- 'Missing helper: "first"'
|
|
1411
|
+
- Unable to read "call" from undefined
|
|
1412
|
+
source:
|
|
1413
|
+
type: string
|
|
1414
|
+
description: |-
|
|
1415
|
+
Present when the template fails to render; the layer that raised the error,
|
|
1416
|
+
`resource` for the template itself.
|
|
1417
|
+
examples:
|
|
1418
|
+
- resource
|
|
1419
|
+
path:
|
|
1420
|
+
type: string
|
|
1421
|
+
description: Present when the template fails to render; the processor that raised the error.
|
|
1422
|
+
examples:
|
|
1423
|
+
- processor.handlebars
|
|
1424
|
+
statusCode:
|
|
1425
|
+
type: integer
|
|
1426
|
+
description: Present when a static lookup fails; repeats the HTTP status.
|
|
1427
|
+
examples:
|
|
1428
|
+
- 422
|
|
1429
|
+
errors:
|
|
1430
|
+
type: array
|
|
1431
|
+
description: |-
|
|
1432
|
+
Present when a static lookup fails; one entry per failure, in the usual error
|
|
1433
|
+
envelope shape.
|
|
1434
|
+
items:
|
|
1435
|
+
type: object
|
|
1436
|
+
properties:
|
|
1437
|
+
code:
|
|
1438
|
+
type: string
|
|
1439
|
+
enum:
|
|
1440
|
+
- cannot_evaluate_static_lookup
|
|
1441
|
+
- lookup_not_found
|
|
1442
|
+
- lookup_data_not_defined
|
|
1443
|
+
x-enumDescriptions:
|
|
1444
|
+
cannot_evaluate_static_lookup: The key is not in the lookup's `map` and the lookup sets `allowFailures` false.
|
|
1445
|
+
lookup_not_found: The template names a lookup the import doesn't define.
|
|
1446
|
+
lookup_data_not_defined: The key the template passes is missing, empty or the number `0`.
|
|
1447
|
+
description: |-
|
|
1448
|
+
Which part of the lookup failed. Fix the template's key or the import's
|
|
1449
|
+
`http.lookups` entry accordingly; `lookup_not_found` also covers Handlebars'
|
|
1450
|
+
own `{{lookup object key}}` form, which this route reads as a lookup name.
|
|
1451
|
+
message:
|
|
1452
|
+
type: string
|
|
1453
|
+
description: What failed, naming the lookup and, for an unresolved key, the key.
|
|
1454
|
+
examples:
|
|
1455
|
+
- 'Cannot evaluate the static lookup: "statusMap" using searchKey: "9".'
|
|
1456
|
+
source:
|
|
1457
|
+
type: string
|
|
1458
|
+
description: |-
|
|
1459
|
+
Layer that raised the failure: `lookup` when the lookup ran and couldn't
|
|
1460
|
+
resolve the key, `resource` when the import defines no lookup by that name.
|
|
1461
|
+
examples:
|
|
1462
|
+
- lookup
|
|
1463
|
+
examples:
|
|
1464
|
+
missing_helper:
|
|
1465
|
+
summary: A helper that doesn't exist, called with an argument
|
|
1466
|
+
value:
|
|
1467
|
+
code: cannot_evaluate_handlebars
|
|
1468
|
+
message: 'Missing helper: "first"'
|
|
1469
|
+
source: resource
|
|
1470
|
+
path: processor.handlebars
|
|
1471
|
+
strict_path:
|
|
1472
|
+
summary: A strict render reads a path the data doesn't carry
|
|
1473
|
+
value:
|
|
1474
|
+
code: cannot_evaluate_handlebars
|
|
1475
|
+
message: '"poNumber" not defined in the model. - 1:2'
|
|
1476
|
+
source: resource
|
|
1477
|
+
path: processor.handlebars
|
|
1478
|
+
static_lookup_key_not_in_map:
|
|
1479
|
+
summary: Static lookup key not in the map, allowFailures false
|
|
1480
|
+
value:
|
|
1481
|
+
statusCode: 422
|
|
1482
|
+
errors:
|
|
1483
|
+
- code: cannot_evaluate_static_lookup
|
|
1484
|
+
message: 'Cannot evaluate the static lookup: "statusMap" using searchKey: "9".'
|
|
1485
|
+
source: lookup
|
|
1486
|
+
lookup_not_found:
|
|
1487
|
+
summary: Template names a lookup the import doesn't define
|
|
1488
|
+
value:
|
|
1489
|
+
statusCode: 422
|
|
1490
|
+
errors:
|
|
1491
|
+
- code: lookup_not_found
|
|
1492
|
+
message: Lookup "nosuchMap" was not found on this import.
|
|
1493
|
+
source: resource
|
|
1388
1494
|
components:
|
|
1389
1495
|
securitySchemes:
|
|
1390
1496
|
bearerAuth:
|
package/dist/recyclebin.yml
CHANGED
|
@@ -544,6 +544,7 @@ components:
|
|
|
544
544
|
- McpServer
|
|
545
545
|
- EDIProfile
|
|
546
546
|
- Agent
|
|
547
|
+
- AgentGroup
|
|
547
548
|
- Topic
|
|
548
549
|
- NetworkPolicy
|
|
549
550
|
- Group
|
|
@@ -566,6 +567,7 @@ components:
|
|
|
566
567
|
McpServer: An MCP server endpoint exposing tools and APIs to external AI agents.
|
|
567
568
|
EDIProfile: A trading partner profile for EDI document exchange (X12/EDIFACT).
|
|
568
569
|
Agent: An on-premise agent that proxies API traffic to systems behind a firewall.
|
|
570
|
+
AgentGroup: An ordered set of on-premise agents that a connection can bind instead of one agent.
|
|
569
571
|
Topic: An Event Streams topic that buffers published messages for exports.
|
|
570
572
|
NetworkPolicy: An IP allow/deny list applied to sign-ins, access tokens, and MCP servers.
|
|
571
573
|
Group: An end-user group that bundles roles and resource grants.
|
|
@@ -737,6 +739,7 @@ components:
|
|
|
737
739
|
- mcpservers
|
|
738
740
|
- ediprofiles
|
|
739
741
|
- agents
|
|
742
|
+
- agentgroups
|
|
740
743
|
- topics
|
|
741
744
|
- networkpolicies
|
|
742
745
|
- groups
|
|
@@ -759,6 +762,7 @@ components:
|
|
|
759
762
|
mcpservers: MCP server endpoints for external AI agents.
|
|
760
763
|
ediprofiles: Trading partner profiles for EDI document exchange.
|
|
761
764
|
agents: On-premise agents proxying traffic behind firewalls.
|
|
765
|
+
agentgroups: Ordered sets of on-premise agents that a connection can bind instead of one agent.
|
|
762
766
|
topics: Event Streams topics that buffer published messages.
|
|
763
767
|
networkpolicies: IP allow/deny lists applied to sign-ins, tokens, and MCP servers.
|
|
764
768
|
groups: End-user groups that bundle roles and resource grants.
|
|
@@ -788,6 +792,7 @@ components:
|
|
|
788
792
|
- mcpservers
|
|
789
793
|
- ediprofiles
|
|
790
794
|
- agents
|
|
795
|
+
- agentgroups
|
|
791
796
|
- topics
|
|
792
797
|
- networkpolicies
|
|
793
798
|
- groups
|
|
@@ -809,6 +814,7 @@ components:
|
|
|
809
814
|
mcpservers: MCP server and its dependents.
|
|
810
815
|
ediprofiles: EDI profile and its dependents.
|
|
811
816
|
agents: On-premise agent and its dependents.
|
|
817
|
+
agentgroups: On-premise agent group (restored on its own; groups have no recycle-bin dependents).
|
|
812
818
|
topics: Event Streams topic (restored on its own; topics have no recycle-bin dependents).
|
|
813
819
|
networkpolicies: Network policy (restored on its own; policies have no recycle-bin dependents).
|
|
814
820
|
groups: End-user group (restored on its own).
|