@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/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.257",
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": "e05d9b48",
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,