@celigo/api-specs 0.2.258 → 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 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 the child as
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 inside an object record when `oneToMany` is true, in dot
6143
- notation (`items`, `lines.lineItems`). Leave blank when the incoming record is itself an array
6144
- (grouped or row-based data) — each element is then a child record. A path that does not resolve
6145
- to an array processes zero records and reports success. Read only on steps that receive a
6146
- record (imports, lookup exports); on a standalone export it is saved and ignored — see `oneToMany`.
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
- Set this ONLY when the record entering the step is an object whose children sit under a field.
6155
- On an array record (a ``groupByFields`` export, a CSV/file group, a script returning an array)
6156
- any path resolves to nothing: the step processes ZERO children, builds no request, and reports
6157
- success with no error. Live-verified 2026-09-10 — the failure is silent, so confirm the arriving
6158
- record's shape (test run stage data, or the flow builder's input panel: ``rows`` means array).
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``), not a JSONPath
6165
- expression. Each child in path mode carries ``_PARENT`` (the parent minus the array), so
6166
- parent-level fields are read as ``{{record._PARENT.<field>}}``.
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
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 the child as
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 inside an object record when `oneToMany` is true, in dot
918
- notation (`items`, `lines.lineItems`). Leave blank when the incoming record is itself an array
919
- (grouped or row-based data) — each element is then a child record. A path that does not resolve
920
- to an array processes zero records and reports success. Read only on steps that receive a
921
- record (imports, lookup exports); on a standalone export it is saved and ignored — see `oneToMany`.
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
- Set this ONLY when the record entering the step is an object whose children sit under a field.
930
- On an array record (a ``groupByFields`` export, a CSV/file group, a script returning an array)
931
- any path resolves to nothing: the step processes ZERO children, builds no request, and reports
932
- success with no error. Live-verified 2026-09-10 — the failure is silent, so confirm the arriving
933
- record's shape (test run stage data, or the flow builder's input panel: ``rows`` means array).
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``), not a JSONPath
940
- expression. Each child in path mode carries ``_PARENT`` (the parent minus the array), so
941
- parent-level fields are read as ``{{record._PARENT.<field>}}``.
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
@@ -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 path is accepted:
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 the fanned-out child on a ``oneToMany`` import) or ``rows``
2087
- (a grouped/array record), and ``data`` is the one-element list
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
- Optional static key→value object evaluated BEFORE the HTTP
2891
- request. When the incoming value matches a key, the mapped
2892
- value is returned without hitting the remote endpoint. Null
2893
- on dynamic lookups with no static map.
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
- Checks if a record with matching Email exists; if found, skips creation
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 the child as
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 inside an object record when `oneToMany` is true, in dot
12832
- notation (`items`, `lines.lineItems`). Leave blank when the incoming record is itself an array
12833
- (grouped or row-based data) — each element is then a child record. A path that does not resolve
12834
- to an array processes zero records and reports success. Read only on steps that receive a
12835
- record (imports, lookup exports); on a standalone export it is saved and ignored — see `oneToMany`.
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
- Set this ONLY when the record entering the step is an object whose children sit under a field.
12844
- On an array record (a ``groupByFields`` export, a CSV/file group, a script returning an array)
12845
- any path resolves to nothing: the step processes ZERO children, builds no request, and reports
12846
- success with no error. Live-verified 2026-09-10 — the failure is silent, so confirm the arriving
12847
- record's shape (test run stage data, or the flow builder's input panel: ``rows`` means array).
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``), not a JSONPath
12854
- expression. Each child in path mode carries ``_PARENT`` (the parent minus the array), so
12855
- parent-level fields are read as ``{{record._PARENT.<field>}}``.
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/tool.yml CHANGED
@@ -13904,6 +13904,8 @@ components:
13904
13904
  Required whenever the connection referenced by _connectionId has type http, and on
13905
13905
  `NetSuiteHTTPImport` (NetSuite's REST APIs on a `netsuite` connection, where `nsDomainType`
13906
13906
  supplies the host).
13907
+ `ignoreExisting`, `ignoreMissing` and `ignoreExtract` are import-level fields; copies sent
13908
+ inside this object are dropped without an error, so nothing is skipped.
13907
13909
  x-celigo-ai-guidance:
13908
13910
  - |-
13909
13911
  IMPORTANT:
@@ -14469,8 +14471,9 @@ components:
14469
14471
  a serialized batch. The template root depends ONLY on
14470
14472
  ``batchSize`` (live-verified 2026-09-10): with ``batchSize`` 1
14471
14473
  (the default) the root carries ``record`` (an object record —
14472
- or the fanned-out child on a ``oneToMany`` import) or ``rows``
14473
- (a grouped/array record), and ``data`` is the one-element list
14474
+ or an object child fanned out by ``oneToMany``) or ``rows``
14475
+ (a grouped/array record, including a fanned-out child that is
14476
+ itself an array), and ``data`` is the one-element list
14474
14477
  of records in the request (a grouped record is that element,
14475
14478
  itself an array); with ``batchSize`` > 1 the root carries
14476
14479
  ``batch_of_records`` (one ``{record: …}`` item per object
@@ -15180,6 +15183,11 @@ components:
15180
15183
 
15181
15184
  - **Static** — only ``map`` + optional ``default``. No HTTP
15182
15185
  request issued. Use for small controlled vocabularies.
15186
+ Never add a ``map`` to a working request lookup: an entry that
15187
+ carries both saves without error, but only the map is used and
15188
+ the request is never sent, so every value the map lacks is a
15189
+ miss (``default``, or ``lookup_error`` under
15190
+ ``allowFailures: false``) instead of the looked-up value.
15183
15191
  - **Dynamic** — ``method`` + ``relativeURI`` (+ ``body``,
15184
15192
  ``headers``, ``extract``). Issues a live HTTP request per
15185
15193
  lookup. Adds one HTTP request per record at runtime — factor
@@ -15273,10 +15281,13 @@ components:
15273
15281
  - object
15274
15282
  - 'null'
15275
15283
  description: |
15276
- Optional static key→value object evaluated BEFORE the HTTP
15277
- request. When the incoming value matches a key, the mapped
15278
- value is returned without hitting the remote endpoint. Null
15279
- on dynamic lookups with no static map.
15284
+ Static key→value table. A lookup whose ``map`` holds any entry
15285
+ is static: a matching value returns the mapped value and any
15286
+ other value is a miss settled by ``default`` and
15287
+ ``allowFailures``, with no HTTP request — ``method``,
15288
+ ``relativeURI`` and ``extract`` saved beside it are never sent.
15289
+ Omit it on a request lookup; ``null`` is stored as sent and
15290
+ ``{}`` is dropped on save, and either way the request runs.
15280
15291
  default:
15281
15292
  type:
15282
15293
  - string
@@ -18745,7 +18756,7 @@ components:
18745
18756
  - function
18746
18757
  Salesforce-2:
18747
18758
  type: object
18748
- 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.'
18759
+ 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.'
18749
18760
  x-celigo-ai-guidance:
18750
18761
  - |-
18751
18762
  Configuration for Salesforce imports containing operation type, API selection,
@@ -19415,13 +19426,12 @@ components:
19415
19426
  ```json
19416
19427
  {
19417
19428
  "operation": "insert",
19418
- "ignoreExisting": true,
19419
19429
  "idLookup": {
19420
19430
  "whereClause": "Email = '{{{Email}}}'"
19421
19431
  }
19422
19432
  }
19423
19433
  ```
19424
- Checks if a record with matching Email exists; if found, skips creation
19434
+ With `ignoreExisting: true` set at the import level (not in this object), checks if a record with matching Email exists; if found, skips creation
19425
19435
 
19426
19436
  ### Addupdate (create or update) by Email:
19427
19437
  ```json
@@ -22201,6 +22211,32 @@ components:
22201
22211
  the array index.
22202
22212
  resources:
22203
22213
  $ref: '#/components/schemas/McpResources'
22214
+ attachedKnowledgeBaseIds:
22215
+ type: array
22216
+ maxItems: 50
22217
+ uniqueItems: true
22218
+ default: []
22219
+ description: |-
22220
+ Knowledge bases the agent retrieves from, for every provider. Returned on every agent —
22221
+ `[]` until one is attached — except after a PATCH `remove`, which drops the field. On PUT
22222
+ a non-empty array replaces the stored list (duplicate ids collapse to their first
22223
+ occurrence), while omitting the list, `null`, and `[]` all keep it; clear it with
22224
+ `PATCH /v1/imports/{_id}` — `replace` with `[]` or `remove` on
22225
+ `/aiAgent/attachedKnowledgeBaseIds`.
22226
+ items:
22227
+ type: string
22228
+ format: objectId
22229
+ x-celigo-refModel: knowledgebases
22230
+ x-celigo-ai-guidance:
22231
+ - |-
22232
+ Every id must be a knowledge base in this environment (`GET /v1/knowledgebases`):
22233
+ any other value — a malformed string or the id of another resource — fails the save
22234
+ with 422 `attached_knowledge_base_invalid` naming the ids, and more than 50 distinct
22235
+ ids fails with 422 `invalid_field` on `aiAgent.attachedKnowledgeBaseIds`.
22236
+ - |-
22237
+ Sending `[]` on PUT does not detach anything; use PATCH `replace` with `[]` or
22238
+ `remove` on the whole path. PATCH `add` at `/aiAgent/attachedKnowledgeBaseIds/-`
22239
+ does not append — it fails with 422 — so send the complete list with `replace`.
22204
22240
  openai:
22205
22241
  type: object
22206
22242
  description: |
@@ -23719,6 +23755,33 @@ components:
23719
23755
  the array index.
23720
23756
  resources:
23721
23757
  $ref: '#/components/schemas/McpResources'
23758
+ attachedKnowledgeBaseIds:
23759
+ type: array
23760
+ maxItems: 50
23761
+ uniqueItems: true
23762
+ description: |-
23763
+ Knowledge bases the guardrail's model retrieves from, for every provider. Present only once
23764
+ set: a guardrail created without the list has no field, and a PATCH `remove` drops it
23765
+ again. On PUT a non-empty array replaces the stored list (duplicate ids collapse to their
23766
+ first occurrence), while omitting the list, `null`, and `[]` all keep it; clear it with
23767
+ `PATCH /v1/imports/{_id}` — `replace` with `[]` or `remove` on
23768
+ `/guardrail/aiAgent/attachedKnowledgeBaseIds`.
23769
+ items:
23770
+ type: string
23771
+ format: objectId
23772
+ x-celigo-refModel: knowledgebases
23773
+ x-celigo-ai-guidance:
23774
+ - |-
23775
+ Every id must be a knowledge base in this environment (`GET /v1/knowledgebases`):
23776
+ any other value — a malformed string or the id of another resource — fails the save
23777
+ with 422 `attached_knowledge_base_invalid` naming the ids, and more than 50 distinct
23778
+ ids fails with 422 `invalid_field` on `guardrail.aiAgent.attachedKnowledgeBaseIds`
23779
+ (the message names `aiAgent.attachedKnowledgeBaseIds`).
23780
+ - |-
23781
+ Sending `[]` on PUT does not detach anything; use PATCH `replace` with `[]` or
23782
+ `remove` on the whole path. PATCH `add` at
23783
+ `/guardrail/aiAgent/attachedKnowledgeBaseIds/-` does not append — it fails with
23784
+ 422 — so send the complete list with `replace`.
23722
23785
  openai:
23723
23786
  type: object
23724
23787
  description: |
@@ -24901,7 +24964,9 @@ components:
24901
24964
  Two modes, decided by the SHAPE of the record entering the step. Object record with a child
24902
24965
  array under a field → set ``pathToMany`` to that field. Array record (a ``groupByFields``
24903
24966
  export, a CSV/file group, a script that returns an array) → leave ``pathToMany`` blank; each
24904
- element becomes one record. Live-verified 2026-09-10 on flows, Tools, and APIs.
24967
+ element becomes one record. Live-verified 2026-09-10 on flows, Tools, and APIs. The one
24968
+ exception is an array record whose children sit under a single element's field: its path
24969
+ starts with that element's index (``0.items``) — see ``pathToMany``.
24905
24970
  - |-
24906
24971
  Blank ``pathToMany`` on an OBJECT record fails every record with code ``oneToMany_error``:
24907
24972
  "Failed to extract child records from oneToMany import data. Record at index 0 was not an
@@ -24913,14 +24978,29 @@ components:
24913
24978
  - |-
24914
24979
  Child record shape differs by mode. Path mode: each child is the array element plus
24915
24980
  ``_PARENT`` (the parent record minus the array). Blank/row mode: each child is the element
24916
- itself, with no ``_PARENT``. In both modes templates on the step reference the child as
24981
+ itself, with no ``_PARENT``. In both modes templates on the step reference an object child as
24917
24982
  ``{{record.<field>}}``; a response mapping on a one-to-many lookup merges into each child and
24918
24983
  the downstream step receives the re-joined parent (path mode) or the re-joined array (row
24919
24984
  mode) with every element enriched.
24985
+ - |-
24986
+ A child that is itself an ARRAY (rows under the path, or an array element in row mode) is a
24987
+ grouped record in either mode: templates bind it as ``rows`` (``{{rows.0.<field>}}``,
24988
+ ``{{rows.length}}``) and ``record.*`` is undefined — ``{{record.0.<field>}}`` renders empty
24989
+ in the HTTP body and leaves its field out of a mapping, while the record still succeeds with
24990
+ no error. ``{{0.<field>}}`` resolves in a mapping expression but renders empty in the body;
24991
+ ``{{rows.0.<field>}}`` works in both. Live-verified 2026-10-26 in import previews and real
24992
+ flow runs.
24993
+ - |-
24994
+ An array child's ``_PARENT`` reaches mapping expressions (``{{_PARENT.<field>}}``) and
24995
+ JSONPath extracts (``$._PARENT.<field>``; the child's own rows are ``$[0].<field>``) —
24996
+ ``_PARENT.0.<field>`` under an index path, whose parent is an array — but every ``_PARENT``
24997
+ path renders empty in the HTTP body template. To send a parent value, map it into a named
24998
+ row; the mapped record is then an object, which the body reads as ``{{record.<row>}}``.
24999
+ Live-verified 2026-10-26 in import previews and a real flow run.
24920
25000
  - |-
24921
25001
  One-to-many never batches by itself: ``batch_of_records`` appears as the HTTP body template
24922
25002
  root only when ``http.batchSize`` is greater than 1 (children are batched after fan-out).
24923
- With the default batch size the template root is ``record``.
25003
+ With the default batch size the template root is ``record`` (``rows`` for an array child).
24924
25004
  default: false
24925
25005
  examples:
24926
25006
  - true
@@ -24928,11 +25008,13 @@ components:
24928
25008
  PathToMany:
24929
25009
  type: string
24930
25010
  description: |
24931
- Path to the array of child records inside an object record when `oneToMany` is true, in dot
24932
- notation (`items`, `lines.lineItems`). Leave blank when the incoming record is itself an array
24933
- (grouped or row-based data) — each element is then a child record. A path that does not resolve
24934
- to an array processes zero records and reports success. Read only on steps that receive a
24935
- record (imports, lookup exports); on a standalone export it is saved and ignored — see `oneToMany`.
25011
+ Path to the array of child records when `oneToMany` is true, in dot notation (`items`,
25012
+ `lines.lineItems`). Leave blank when the incoming record is itself an array (grouped or
25013
+ row-based data) and each element is a child record; when an array record's children sit under
25014
+ one element's field, start the path with that element's index (`0.items`). A path that does not
25015
+ resolve to an array processes zero records and reports success. Read only on steps that receive
25016
+ a record (imports, lookup exports); on a standalone export it is saved and ignored — see
25017
+ `oneToMany`.
24936
25018
  x-celigo-ai-guidance:
24937
25019
  - |-
24938
25020
  Inert on a standalone export (a flow's page generator) exactly like ``oneToMany`` — the value
@@ -24940,19 +25022,30 @@ components:
24940
25022
  (live-verified 2026-09-18). Splitting a standalone export's records into one per element is
24941
25023
  ``hooks.preSavePage`` work, or the file definition's record boundary; never this field.
24942
25024
  - |-
24943
- Set this ONLY when the record entering the step is an object whose children sit under a field.
24944
- On an array record (a ``groupByFields`` export, a CSV/file group, a script returning an array)
24945
- any path resolves to nothing: the step processes ZERO children, builds no request, and reports
24946
- success with no error. Live-verified 2026-09-10 — the failure is silent, so confirm the arriving
24947
- record's shape (test run stage data, or the flow builder's input panel: ``rows`` means array).
25025
+ Start the path with a field name ONLY when the record entering the step is an object whose
25026
+ children sit under that field. On an array record (a ``groupByFields`` export, a CSV/file
25027
+ group, a script returning an array) a path that starts with a field name resolves to nothing:
25028
+ the step processes ZERO children, builds no request, and reports success with no error.
25029
+ Live-verified 2026-09-10 — the failure is silent, so confirm the arriving record's shape (test
25030
+ run stage data, or the flow builder's input panel: ``rows`` means array).
25031
+ - |-
25032
+ On an array record only a path that starts with an element index resolves:
25033
+ ``0.finalFulfillmentData`` fans out the array under element 0's ``finalFulfillmentData``
25034
+ field. An index past the last element fans out zero children with the same silent success.
25035
+ Live-verified 2026-10-26 in import previews and real flow runs fed by a ``groupByFields``
25036
+ export.
24948
25037
  - |-
24949
25038
  Blank with an object record is the ``oneToMany_error`` failure ("Record at index 0 was not an
24950
25039
  array, and no PathToMany was provided"); blank with an array record is the correct row-based
24951
25040
  configuration. An empty string behaves exactly like an absent field.
24952
25041
  - |-
24953
- Use the bare field name or dotted path (``lineItems``, ``details.items``), not a JSONPath
24954
- expression. Each child in path mode carries ``_PARENT`` (the parent minus the array), so
24955
- parent-level fields are read as ``{{record._PARENT.<field>}}``.
25042
+ Use the bare field name or dotted path (``lineItems``, ``details.items``, or ``0.items`` on an
25043
+ array record), not a JSONPath expression. Each child in path mode carries ``_PARENT`` (the
25044
+ parent minus the array), so an object child reads parent-level fields as
25045
+ ``{{record._PARENT.<field>}}``. Under an index path the parent is the array record itself,
25046
+ minus only the fanned field: ``{{record._PARENT.0.<field>}}``, with its other elements at
25047
+ ``_PARENT.1``, ``_PARENT.2``, and so on. A child that is itself an array binds as ``rows``
25048
+ instead — see ``oneToMany`` for where its ``_PARENT`` can be read.
24956
25049
  examples:
24957
25050
  - items
24958
25051
  - line_items
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celigo/api-specs",
3
- "version": "0.2.258",
3
+ "version": "0.2.259",
4
4
  "private": false,
5
5
  "description": "Public OpenAPI bundles (dist/) and the celigo-cli lint schema pack (schemas.json).",
6
6
  "keywords": [
package/schemas.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "provenance": {
3
3
  "repo": "celigo/integrator-api-specs",
4
- "iasCommit": "e2aa74db",
4
+ "iasCommit": "e060509b",
5
5
  "generatedAt": "2026-11-07"
6
6
  },
7
7
  "roots": {
@@ -45,6 +45,7 @@
45
45
  "object"
46
46
  ],
47
47
  "p": {
48
+ "attachedKnowledgeBaseIds": 20,
48
49
  "instructions": 0,
49
50
  "litellm": 85,
50
51
  "model": 0,