@celigo/api-specs 0.2.352 → 0.2.353

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/api.yml CHANGED
@@ -1800,7 +1800,10 @@ paths:
1800
1800
  from the export to call the source again. Real calls to the API don't read it. Imports never
1801
1801
  send; each returns its saved `mockResponse`, or a placeholder response when none is saved
1802
1802
  (see `mockResponse` on imports), and a run in which such an import executes saves that
1803
- placeholder on it as its `mockResponse`.
1803
+ placeholder on it as its `mockResponse`. A step that calls a Tool (`ToolImport`) differs:
1804
+ the Tool runs inside the test run under these same rules and the step returns its output;
1805
+ the step's `mockResponse` is not read, though the placeholder is still saved on one that had
1806
+ none.
1804
1807
 
1805
1808
  Test runs never paginate, whatever `pagination.enabled` says: the captured success
1806
1809
  response carries no `pagination` object, and a `Celigo-Next-Cursor` entry in
@@ -6156,7 +6159,16 @@ components:
6156
6159
  `{"id": "1234567890", "mockResponse": "replace me"}` (numbered
6157
6160
  `1234567890-1`, `1234567890-2`, … when a page holds several records)
6158
6161
  — an `extract: "id"` in a test run merges that mock id, never a
6159
- destination record id.
6162
+ destination record id. A step that calls a Tool (`ToolImport`) is the
6163
+ exception: a test run runs the Tool, and the envelope is the Tool's
6164
+ output — under `_json` and again at the root, with no `id`,
6165
+ `statusCode`, `errors` or `ignored` — not the step's `mockResponse`.
6166
+ Only a page-processor preview (`previewPageProcessor`) of a later
6167
+ step reads that `mockResponse`, as saved and without copying its
6168
+ `_json` fields to the root: over a mock that holds the Tool's output
6169
+ under `_json` alone, `_json.<path>` finds its value and a root
6170
+ `<path>` finds nothing. Write a `ToolImport` step's extracts as
6171
+ `_json.<path>`, which both read (live, 2026-11-27).
6160
6172
 
6161
6173
  An `extract` may also be a Handlebars expression. It evaluates against
6162
6174
  the same envelope as a plain path, so every path inside `{{ }}` starts
package/dist/flow.yml CHANGED
@@ -4111,7 +4111,8 @@ paths:
4111
4111
 
4112
4112
  A test run does not call every application its steps name. An export with a
4113
4113
  saved `mockOutput` — the page generator or a lookup — answers from it and is
4114
- not called; one with none is read from its application. Imports never send.
4114
+ not called; one with none is read from its application. Imports never send — a step that
4115
+ calls a Tool runs it, and the Tool's own imports do not send either.
4115
4116
  For an HTTP export, `GET /v1/flows/{_id}/test/run/{runId}/{_stepId}` shows
4116
4117
  which it did.
4117
4118
 
@@ -4137,7 +4138,12 @@ paths:
4137
4138
  from the saved records instead of calling the application; remove `mockOutput` from the
4138
4139
  export to read the application again. An import returns its saved `mockResponse`, or a
4139
4140
  placeholder response when none is saved (see `mockResponse` on imports), and a run saves that
4140
- placeholder on an import that had none.
4141
+ placeholder on an import that had none. A step that calls a Tool (`ToolImport`) differs: the
4142
+ Tool runs inside the test run under these same rules — its lookups answer from a saved
4143
+ `mockOutput` or read their application, its imports are not sent — and the step returns the
4144
+ Tool's output; its `mockResponse` is not read, though the placeholder is still saved on one
4145
+ that had none. Its child job has `type: tool`, and the Tool's own steps are child jobs of
4146
+ the run too.
4141
4147
 
4142
4148
  Test-run state is short-lived and ephemeral — capture the `runId` (the
4143
4149
  `flowJob._id`) and read back any step detail soon after the run returns.
@@ -4373,7 +4379,9 @@ paths:
4373
4379
  `exportMapping` — no request was sent, though both stages are recorded. A
4374
4380
  NetSuite search or Salesforce SOQL export records `request` and `parse` only,
4375
4381
  the same in both cases. An import's request is never sent: its `response`
4376
- output carries its `mockResponse` status, 200 for the placeholder.
4382
+ output carries its `mockResponse` status, 200 for the placeholder. A step
4383
+ that calls a Tool records no `response` stage: the Tool ran, and the input
4384
+ of the step's `responseMap` stage is the Tool's output.
4377
4385
  items:
4378
4386
  type: object
4379
4387
  description: One stage of the step.
@@ -4850,7 +4858,8 @@ paths:
4850
4858
  without sending; `{sendAndPreview: true}` (the import editor's "Send"
4851
4859
  button) executes it against the live destination — a real write — and
4852
4860
  stops at the parsed response (the target's postSubmit hook does not
4853
- run). Both composing modes serve HTTP import targets only: a NetSuite,
4861
+ run). Both composing modes serve HTTP import targets and a target that
4862
+ calls a Tool (`ToolImport`, below) only: a NetSuite,
4854
4863
  Salesforce, RDBMS or FTP target answers `422 no_data_available` ("You
4855
4864
  must add at least one mock input record…") whatever records the chain
4856
4865
  delivers — the generic "no record reached the target", not a data
@@ -4870,9 +4879,22 @@ paths:
4870
4879
  saved `mockOutput` is present (a saved mock always wins); upstream
4871
4880
  imports are NEVER executed — each substitutes its saved `mockResponse`,
4872
4881
  or a platform placeholder when none is saved, before its response
4873
- mapping and postResponseMap hook run. A target LOOKUP executes its
4882
+ mapping and postResponseMap hook run. An upstream step that calls a
4883
+ Tool (`ToolImport`) is such an import: the Tool is not run, so the
4884
+ steps after it see what the step's `mockResponse` gives its response
4885
+ mapping, where a test run sees the Tool's output. When an upstream
4886
+ step has no `_connectionId` and its flow entry carries
4887
+ `hooks.postResponseMap`, the preview of every later step fails (known
4888
+ issue IO-244591; `hooks.postResponseMap` on a flow's page processor
4889
+ describes it). A target LOOKUP executes its
4874
4890
  live query even when it carries a saved `mockOutput` (the mock
4875
- substitutes only upstream). When a target import's `failPath` rules
4891
+ substitutes only upstream). A target `ToolImport` returns the arriving
4892
+ record with no options flag; `{preview: true}` adds an `input` stage —
4893
+ the record mapped to the Tool's input — and runs nothing;
4894
+ `{sendAndPreview: true}` runs the Tool for real — its lookups read
4895
+ their application even when they carry a saved `mockOutput`, and its
4896
+ imports send — and returns `input` and `output` stages. When a target
4897
+ import's `failPath` rules
4876
4898
  judge the destination's answer a failure, the response is `422` whose
4877
4899
  `errors[]` carry `source: application` and `stage: apiCall` — the
4878
4900
  request did execute. With `includeStages: false` the response is the
@@ -4908,8 +4930,9 @@ paths:
4908
4930
  to get the stage-by-stage diagnostic array. No job is created and no
4909
4931
  flow state changes; live calls are limited to the source export,
4910
4932
  un-mocked upstream lookups, the target lookup, and — only under
4911
- `sendAndPreview` — the target import. Upstream imports never call
4912
- out.
4933
+ `sendAndPreview` — the target import (for a target `ToolImport`: the
4934
+ Tool's lookups read their application and the Tool's imports send).
4935
+ Upstream imports never call out.
4913
4936
  requestBody:
4914
4937
  required: true
4915
4938
  content:
@@ -4996,7 +5019,8 @@ paths:
4996
5019
  $ref: '#/components/responses/401-unauthorized'
4997
5020
  '422':
4998
5021
  description: |-
4999
- The preview failed. Read `errors[].code` to tell the cases apart —
5022
+ The preview failed. Read `errors[].code` to tell the cases apart
5023
+ (one case below can carry no `code` — match its `message`) —
5000
5024
  `source: application` alone doesn't mean a request was sent:
5001
5025
  - `no_data_available` with `source: integrator` — no record reached
5002
5026
  the target in a composing mode (the target is a NetSuite,
@@ -5009,6 +5033,18 @@ paths:
5009
5033
  (`pre_save_page_hook` for the source export's preSavePage hook,
5010
5034
  `post_response_map_hook` for a step's postResponseMap hook) — that
5011
5035
  hook threw, and nothing reached the target.
5036
+ - A `message` that begins `Cast to ObjectId failed` and names the
5037
+ `Connection` model — a step before the target has no `_connectionId`
5038
+ and carries a postResponseMap hook (known issue IO-244591;
5039
+ `hooks.postResponseMap` on a flow's page processor describes it);
5040
+ nothing reached the target. A flow without routers answers it as
5041
+ `unexpected_preview_error` with `source: internal`; a flow with
5042
+ routers answers a body of `statusCode: 422` and `errors` whose one
5043
+ entry carries the `message` alone, neither `code` nor `source` —
5044
+ match the message.
5045
+ - `invalid_canonical_form` on `field: mockResponse` — a target
5046
+ `ToolImport` under `{preview: true}` whose `mockResponse` is not in
5047
+ canonical form.
5012
5048
  - `handlebars_template_parse_error` — a target template doesn't
5013
5049
  compile. It carries `source: application` and `stage: apiCall`
5014
5050
  although nothing was sent.
@@ -5060,6 +5096,19 @@ paths:
5060
5096
  - code: 200
5061
5097
  source: application
5062
5098
  message: '{"args":{},"json":{"FirstName":"FAILME"}}'
5099
+ hookedStepWithoutConnection:
5100
+ summary: A step before the target has no connection and carries a postResponseMap hook (known issue IO-244591) — a flow without routers
5101
+ value:
5102
+ errors:
5103
+ - code: unexpected_preview_error
5104
+ source: internal
5105
+ message: 'Cast to ObjectId failed for value "{ _id: undefined }" (type Object) at path "_id" for model "Connection"'
5106
+ hookedStepWithoutConnectionInAFlowWithRouters:
5107
+ summary: The same known issue (IO-244591) on a flow with routers — the error carries no code and no source
5108
+ description: 'The live body also carries `statusCode: 422` beside `errors`.'
5109
+ value:
5110
+ errors:
5111
+ - message: 'Cast to ObjectId failed for value "{ _id: undefined }" (type Object) at path "_id" for model "Connection"'
5063
5112
  /v1/flows/{_id}/dependencies:
5064
5113
  get:
5065
5114
  x-internal: false
@@ -5355,7 +5404,16 @@ components:
5355
5404
  `{"id": "1234567890", "mockResponse": "replace me"}` (numbered
5356
5405
  `1234567890-1`, `1234567890-2`, … when a page holds several records)
5357
5406
  — an `extract: "id"` in a test run merges that mock id, never a
5358
- destination record id.
5407
+ destination record id. A step that calls a Tool (`ToolImport`) is the
5408
+ exception: a test run runs the Tool, and the envelope is the Tool's
5409
+ output — under `_json` and again at the root, with no `id`,
5410
+ `statusCode`, `errors` or `ignored` — not the step's `mockResponse`.
5411
+ Only a page-processor preview (`previewPageProcessor`) of a later
5412
+ step reads that `mockResponse`, as saved and without copying its
5413
+ `_json` fields to the root: over a mock that holds the Tool's output
5414
+ under `_json` alone, `_json.<path>` finds its value and a root
5415
+ `<path>` finds nothing. Write a `ToolImport` step's extracts as
5416
+ `_json.<path>`, which both read (live, 2026-11-27).
5359
5417
 
5360
5418
  An `extract` may also be a Handlebars expression. It evaluates against
5361
5419
  the same envelope as a plain path, so every path inside `{{ }}` starts
@@ -5640,7 +5698,9 @@ components:
5640
5698
  `recordId`. An error this hook raises is stored at
5641
5699
  retry stage `post_response_mapping`: a retry runs the hook again on the saved record
5642
5700
  (as response mapping left it) and the step's stored reply, without repeating the
5643
- lookup or the destination request.
5701
+ lookup or the destination request. On a step that has no connection of its own, this
5702
+ hook makes later steps fail in the page-processor preview (known issue IO-244591,
5703
+ described in the guidance).
5644
5704
  x-celigo-ai-guidance:
5645
5705
  - |-
5646
5706
  Verified live 2026-11-12 in flow runs with this hook on an HTTP lookup step and on
@@ -5690,6 +5750,19 @@ components:
5690
5750
  no new request, and after the retry data was edited the retry passed the hook and
5691
5751
  reached the next import; the same day a `preSavePage` error and a `successPath`
5692
5752
  error on that lookup were each retried with a new lookup request and a fresh reply.
5753
+ - |-
5754
+ Known issue (IO-244591), until the fix is released: on a step that has no
5755
+ `_connectionId` — a step that calls a Tool (`ToolImport`), or an AI agent or
5756
+ guardrail step saved without a connection — this hook makes the page-processor
5757
+ preview (`previewPageProcessor`) of every later step answer 422
5758
+ `unexpected_preview_error` with `source: internal` and the message `Cast to
5759
+ ObjectId failed for value "{ _id: undefined }" (type Object) at path "_id" for
5760
+ model "Connection"`, whatever the function does; with a hooked Tool step in a
5761
+ branch of a flow with `routers` the same message came back with no `code` and no
5762
+ `source`. The hooked step itself and the steps before it preview, and a flow test
5763
+ run and a real run run the hook and deliver the record, so read what reaches the
5764
+ later steps from a test run. The same hook on an HTTP import, which has a
5765
+ connection, did not cause it (live, 2026-11-27).
5693
5766
  properties:
5694
5767
  function:
5695
5768
  type: string
package/dist/import.yml CHANGED
@@ -18595,8 +18595,11 @@ components:
18595
18595
  integrator.io canonical format — the server rejects any other shape with a 422.
18596
18596
  x-celigo-ai-guidance:
18597
18597
  - |-
18598
- Flow test runs and flow-builder previews NEVER execute imports —
18599
- they substitute this mockResponse, or the platform placeholder
18598
+ Flow-builder previews NEVER execute an upstream import, and flow
18599
+ test runs never execute an import other than one that calls a
18600
+ Tool (``ToolImport`` — a test run runs the Tool and does not read
18601
+ this field; last entry). Both substitute this mockResponse, or
18602
+ the platform placeholder
18600
18603
  ``{id: "1234567890", mockResponse: "replace me"}`` when none is
18601
18604
  saved. With the placeholder, downstream response mappings extract
18602
18605
  nothing real and downstream steps' sample panels go empty — the
@@ -18613,6 +18616,21 @@ components:
18613
18616
  saved mockResponse holding ``mockResponse: "replace me"`` is that
18614
18617
  placeholder, not a response anyone authored — replace it with a
18615
18618
  realistic one.
18619
+ - |-
18620
+ An import that calls a Tool (``ToolImport``) is the exception in
18621
+ test runs: a test run of a flow, Tool or API runs the Tool — its
18622
+ lookups answer from a saved ``mockOutput`` or read their
18623
+ application, its imports are not sent — and returns the Tool's
18624
+ output without reading this mockResponse, though it still saves
18625
+ the placeholder on a ``ToolImport`` that has none. Only the
18626
+ flow-builder preview reads a ``ToolImport``'s mockResponse, in
18627
+ place of the Tool's output, for the steps after it: to preview
18628
+ those steps with what the Tool returns, save
18629
+ ``[{"statusCode": 200, "errors": [], "_json": <the Tool's
18630
+ output>}]`` here. The preview reads that mock as saved — a
18631
+ response-mapping extract written ``_json.<path>`` finds its
18632
+ value, a root path (``<path>``) finds nothing unless the mock
18633
+ repeats the field at its root (live, 2026-11-27).
18616
18634
  items:
18617
18635
  type: object
18618
18636
  properties:
@@ -18854,7 +18872,7 @@ components:
18854
18872
  description: |-
18855
18873
  Sample destination response kept with the import for authoring its response mapping.
18856
18874
  Flow test runs and previews don't read it; they substitute `mockResponse`, or a
18857
- placeholder when none is saved.
18875
+ placeholder when none is saved (a test run of a `ToolImport` runs the Tool instead).
18858
18876
  responseTransform:
18859
18877
  x-celigo-agent:
18860
18878
  - transform
package/dist/tool.yml CHANGED
@@ -2494,7 +2494,10 @@ paths:
2494
2494
  to call the source again. `POST /v1/tools/{_id}/invoke` neither reads nor writes it. Imports
2495
2495
  never send; each returns its saved `mockResponse`, or a placeholder response when none is
2496
2496
  saved (see `mockResponse` on imports), and a run in which such an import executes saves that
2497
- placeholder on it as its `mockResponse`. A test run is keyed by the request's `triggeredAt`:
2497
+ placeholder on it as its `mockResponse`. A step that calls another Tool (`ToolImport`)
2498
+ differs: that Tool runs inside the test run under these same rules and the step returns its
2499
+ output; the step's `mockResponse` is not read, though the placeholder is still saved on one
2500
+ that had none. A test run is keyed by the request's `triggeredAt`:
2498
2501
  one sent with a `triggeredAt` that an earlier test run of the tool already used is refused
2499
2502
  with 400 `test_run_not_allowed` ("Cannot run the test tool when it is already in the running
2500
2503
  state."), even after that run has finished. Runs with different `triggeredAt` values run at
@@ -28342,8 +28345,11 @@ components:
28342
28345
  integrator.io canonical format — the server rejects any other shape with a 422.
28343
28346
  x-celigo-ai-guidance:
28344
28347
  - |-
28345
- Flow test runs and flow-builder previews NEVER execute imports —
28346
- they substitute this mockResponse, or the platform placeholder
28348
+ Flow-builder previews NEVER execute an upstream import, and flow
28349
+ test runs never execute an import other than one that calls a
28350
+ Tool (``ToolImport`` — a test run runs the Tool and does not read
28351
+ this field; last entry). Both substitute this mockResponse, or
28352
+ the platform placeholder
28347
28353
  ``{id: "1234567890", mockResponse: "replace me"}`` when none is
28348
28354
  saved. With the placeholder, downstream response mappings extract
28349
28355
  nothing real and downstream steps' sample panels go empty — the
@@ -28360,6 +28366,21 @@ components:
28360
28366
  saved mockResponse holding ``mockResponse: "replace me"`` is that
28361
28367
  placeholder, not a response anyone authored — replace it with a
28362
28368
  realistic one.
28369
+ - |-
28370
+ An import that calls a Tool (``ToolImport``) is the exception in
28371
+ test runs: a test run of a flow, Tool or API runs the Tool — its
28372
+ lookups answer from a saved ``mockOutput`` or read their
28373
+ application, its imports are not sent — and returns the Tool's
28374
+ output without reading this mockResponse, though it still saves
28375
+ the placeholder on a ``ToolImport`` that has none. Only the
28376
+ flow-builder preview reads a ``ToolImport``'s mockResponse, in
28377
+ place of the Tool's output, for the steps after it: to preview
28378
+ those steps with what the Tool returns, save
28379
+ ``[{"statusCode": 200, "errors": [], "_json": <the Tool's
28380
+ output>}]`` here. The preview reads that mock as saved — a
28381
+ response-mapping extract written ``_json.<path>`` finds its
28382
+ value, a root path (``<path>``) finds nothing unless the mock
28383
+ repeats the field at its root (live, 2026-11-27).
28363
28384
  items:
28364
28385
  type: object
28365
28386
  properties:
@@ -28601,7 +28622,7 @@ components:
28601
28622
  description: |-
28602
28623
  Sample destination response kept with the import for authoring its response mapping.
28603
28624
  Flow test runs and previews don't read it; they substitute `mockResponse`, or a
28604
- placeholder when none is saved.
28625
+ placeholder when none is saved (a test run of a `ToolImport` runs the Tool instead).
28605
28626
  responseTransform:
28606
28627
  x-celigo-agent:
28607
28628
  - transform
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celigo/api-specs",
3
- "version": "0.2.352",
3
+ "version": "0.2.353",
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,8 +1,8 @@
1
1
  {
2
2
  "provenance": {
3
3
  "repo": "celigo/integrator-api-specs",
4
- "iasCommit": "ab74dad9",
5
- "generatedAt": "2026-11-25"
4
+ "iasCommit": "de8d12aa",
5
+ "generatedAt": "2026-11-27"
6
6
  },
7
7
  "roots": {
8
8
  "aiagent": 130,