@celigo/api-specs 0.2.294 → 0.2.296

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.
@@ -11128,21 +11128,32 @@ components:
11128
11128
  statusCode:
11129
11129
  type: integer
11130
11130
  description: |-
11131
- HTTP status of the record's outcome. The destination's status for an
11132
- accepted record; `422` when the import recorded a failure for the
11133
- record — including when the destination itself answered `200` and
11134
- the import's `failPath` rules declared it a failure.
11131
+ The import's verdict on the record, not the destination's HTTP status:
11132
+ `200` for an accepted record — destination answers 200, 201, 202 and
11133
+ 204 each return `200` here — and `422` when the import recorded a
11134
+ failure for the record: the destination answered an error status, it
11135
+ answered `200` and the import's `failPath` or `successPath` rules
11136
+ judged that a failure, or the request could not be built. On a failed
11137
+ record, `errors[].code` carries the destination's status when that
11138
+ code is an integer — see there.
11135
11139
  _json:
11136
- type: object
11137
11140
  description: |-
11138
- The destination's parsed response body for the record — the slice
11141
+ The destination's response body for the record, parsed — the slice
11139
11142
  under the import's `response.resourcePath` when one is defined — not
11140
11143
  the record that was sent. `{}` when the record was ignored or the
11141
- destination returned no usable body.
11142
- additionalProperties: true
11144
+ destination returned no body; the raw text, as a string, when the
11145
+ body is not JSON. A failed record carries it too.
11146
+ oneOf:
11147
+ - type: object
11148
+ additionalProperties: true
11149
+ - type: string
11143
11150
  _headers:
11144
11151
  type: object
11145
- description: Response headers the destination returned for the record.
11152
+ description: |-
11153
+ Response headers the destination returned for the record. Present
11154
+ when the destination accepted the record; the failed results probed
11155
+ — an error status, a `failPath` match, a `successPath` miss, a
11156
+ request that could not be built — carried none.
11146
11157
  additionalProperties: true
11147
11158
  ignored:
11148
11159
  type: boolean
@@ -11176,9 +11187,13 @@ components:
11176
11187
  - type: string
11177
11188
  - type: integer
11178
11189
  description: |-
11179
- The adaptor's error code, or the destination's HTTP status as
11180
- an integer when the import's `failPath` rules turned a
11181
- successful-looking response into a failure.
11190
+ The destination's HTTP status as an integer when its answer was
11191
+ the failure: the error status it answered (`400`, `404`, `418`),
11192
+ or `200` when the import's `failPath` rules matched a `200`
11193
+ answer. Otherwise the adaptor's error code as a string:
11194
+ `response_failure` when a `200` answer did not meet the
11195
+ import's `successPath` rules, `handlebars_template_parse_error`
11196
+ for a request that could not be built.
11182
11197
  message:
11183
11198
  type: string
11184
11199
  resolved:
package/dist/flow.yml CHANGED
@@ -5189,7 +5189,9 @@ components:
5189
5189
  `errors` mapped: a record failed by `failPath` on a 200 echo body reached the next
5190
5190
  router carrying `statusCode` 422, `errors` and the `id` read from that body; records
5191
5191
  answered a real 404 carried `statusCode` 422 and `errors` and no `id`; written records
5192
- carried the destination's status (200 in these runs) and no `errors`. So a router after
5192
+ carried `statusCode` 200 and no `errors`. That 200 is the platform's verdict as well:
5193
+ in a flow run on 2026-11-13, imports whose destinations answered 201 and 204 each
5194
+ mapped `statusCode` 200. So a router after
5193
5195
  the step picks out the failed records with a rule on the mapped `statusCode` equal to
5194
5196
  422 (or `errors` not empty) and lets every other record take the other branch —
5195
5197
  written records, and records the import's input filter skipped, which continue without
@@ -5208,16 +5210,45 @@ components:
5208
5210
  Hook that runs after the step's response mapping completes. The function receives
5209
5211
  `options.postResponseMapData` (the records, with response mapping applied) and
5210
5212
  `options.responseData` (the step's per-record results, in the same order) and returns
5211
- `postResponseMapData`, same length. A record an import step failed is in neither array
5212
- unless `proceedOnFailure` is true. Then it is included — carrying the fields its
5213
- response mapping extracted from the failure envelope (`statusCode` 422 and `errors`;
5214
- `id` only when the id path resolves on the destination's reply) — and its
5213
+ `postResponseMapData`, same length. What an entry holds depends on the step and on
5214
+ the record's outcome. Import step: the entry of a record that was written carries the
5215
+ `statusCode` and the destination's reply, and no `errors`. Lookup step, where no entry
5216
+ has a `statusCode`: the entry of a record the lookup returned records for carries them
5217
+ in `data`, with an empty `errors` array; the entry of a record the lookup returned
5218
+ nothing for carries an empty `data` and an empty `errors`; the entry of a record the
5219
+ lookup's `inputFilter` skipped carries an empty `data`, an empty `errors` and
5220
+ `ignored: true`. A record the step failed is in neither array unless
5221
+ `proceedOnFailure` is true. Then it is included. On an import step it carries the
5222
+ fields its response mapping extracted from the failure envelope (`statusCode` 422 and
5223
+ `errors`; `id` only when the id path resolves on the destination's reply), and its
5215
5224
  `responseData` entry has `statusCode` 422 and `errors` as an object keyed by index
5216
- (`"0"`, `"1"`, ...) rather than an array. A successful entry has no `errors`. An error this hook raises is stored at retry
5217
- stage `post_response_mapping`: a retry runs the hook again on the saved record (as
5218
- response mapping left it) and the step's stored reply, without repeating the lookup
5219
- or the destination request.
5225
+ (`"0"`, `"1"`, ...) rather than an array. On a lookup step it carries none of the
5226
+ step's response-mapped fields, and its entry holds only `errors` (an array of
5227
+ `{code, message, source}`) and `recordId`. An error this hook raises is stored at
5228
+ retry stage `post_response_mapping`: a retry runs the hook again on the saved record
5229
+ (as response mapping left it) and the step's stored reply, without repeating the
5230
+ lookup or the destination request.
5220
5231
  x-celigo-ai-guidance:
5232
+ - |-
5233
+ Verified live 2026-11-12 in flow runs with this hook on an HTTP lookup step and on
5234
+ an HTTP import step. Import step, two written records: each entry held `statusCode`
5235
+ (200), `id`, `_json`, `_headers` and `recordId`, and neither `errors` nor `ignored`.
5236
+ Lookup step with `proceedOnFailure: true`, four records, no entry holding
5237
+ `statusCode`: the entry of the record the lookup returned one record for held
5238
+ `data` (that record), `errors` (`[]`), `dataURIs`, `groupId`, `ignoredResults`,
5239
+ `recordId`, `resultRecordIds` and `subGroupIdMapForSuccess`; the entry of the record
5240
+ the lookup answered an empty array for held the same members without `groupId`,
5241
+ with `data` `[]`; the entry of the record the lookup's `inputFilter` skipped held,
5242
+ beside an empty `data` and an empty `errors`, `ignored: true`, `stage:
5243
+ "inputFilter"` and `ignoredData`; the entry of the record the lookup failed (HTTP
5244
+ 404) held only `errors` (`[{code: 404, message: "Not Found", source:
5245
+ "application"}]`) and `recordId`.
5246
+ A run with `proceedOnFailure` false over a returned, a failed and a skipped record
5247
+ held the returned and the skipped record in both arrays and nothing for the failed
5248
+ one. So a hook on a lookup step that lets a record through only when its entry's
5249
+ `statusCode` is 2xx reads `undefined` and stops every record. Read the entry
5250
+ instead: `errors` not empty is a failed lookup, `ignored` true a skipped one, an
5251
+ empty `data` no match.
5221
5252
  - |-
5222
5253
  Verified live 2026-10-22 in flow runs of an HTTP import, three records with one
5223
5254
  answered 404: with `proceedOnFailure` unset, both arrays held the two written
package/dist/import.yml CHANGED
@@ -660,18 +660,60 @@ paths:
660
660
  _headers:
661
661
  content-type: application/json; charset=utf-8
662
662
  destination_error:
663
- summary: Record failed at destination
663
+ summary: The destination answers HTTP 400 with no body — its status is errors[].code
664
664
  value:
665
665
  - statusCode: 422
666
666
  _json: {}
667
+ errors:
668
+ - source: application
669
+ code: 400
670
+ message: Bad Request
671
+ resolved: false
672
+ occurredAt: 1794545289277
673
+ stage: apiCall
674
+ classification: intermittent
675
+ success_path_not_met:
676
+ summary: The destination answers HTTP 200, but not with the value the import's successPath rule requires
677
+ value:
678
+ - statusCode: 422
679
+ _json:
680
+ Content-Length: '84'
681
+ Content-Type: application/json
682
+ ok: 'false'
667
683
  errors:
668
684
  - source: application
669
685
  code: response_failure
670
- message: 'response failed using path: "ok". Value found: "false".'
686
+ message: |
687
+ response failed using path: "ok". Value found: "false". Response body: {
688
+ "Content-Length": "84",
689
+ "Content-Type": "application/json",
690
+ "ok": "false"
691
+ }
671
692
  resolved: false
672
- occurredAt: 1777645680144
693
+ occurredAt: 1794545287674
673
694
  stage: apiCall
674
695
  classification: value
696
+ fail_path_matched:
697
+ summary: The destination answers HTTP 200 with a value the import's failPath rule names — errors[].code is 200
698
+ value:
699
+ - statusCode: 422
700
+ _json:
701
+ Content-Length: '84'
702
+ Content-Type: application/json
703
+ ok: 'false'
704
+ errors:
705
+ - code: 200
706
+ source: application
707
+ message: |
708
+ {
709
+ "Content-Length": "84",
710
+ "Content-Type": "application/json",
711
+ "ok": "false"
712
+ }
713
+ resolved: false
714
+ occurredAt: 1794545288511
715
+ stage: apiCall
716
+ classification: none
675
717
  ignored_by_input_filter:
676
718
  summary: Record excluded by the import's input filter — nothing sent
677
719
  value:
@@ -18157,10 +18199,12 @@ components:
18157
18199
  Hook that runs after the destination system responds, with access to both the
18158
18200
  submitted records and the destination's responses. Commonly used to inspect results
18159
18201
  or adjust the response data passed downstream. Each `options.responseData` entry is
18160
- one submitted record's result, in order: `statusCode`, `errors` (`{code, message,
18161
- source}`, empty on success), `ignored`, `id`, and `_json` — the destination's parsed
18162
- response body, where its own error detail sits (`_headers` holds the response
18163
- headers).
18202
+ one submitted record's result, in order: `statusCode` (the import's verdict on the
18203
+ record — 200 written, 422 failed — not the destination's HTTP status), `errors`
18204
+ (`{code, message, source}`, empty on a written record; on a failed one `errors[0]`
18205
+ holds the failure's detail), `ignored`, `id`, and `_json` — the destination's response
18206
+ body, parsed: `{}` when it sent none, the raw text when the body is not JSON. A
18207
+ written record's entry also carries `_headers`, the response headers.
18164
18208
  x-celigo-ai-guidance:
18165
18209
  - |-
18166
18210
  Post-submit JavaScript hook — runs AFTER each batch of
@@ -18173,6 +18217,51 @@ components:
18173
18217
  response, whose envelope carries the mock's id, such as
18174
18218
  ``1234567890``) → array of the same length, typically mutated
18175
18219
  to annotate or augment per-record errors.
18220
+ - |-
18221
+ `statusCode` is the import's verdict, not the HTTP status the
18222
+ destination answered: 200 on the entry of a record the import
18223
+ counts as written, 422 on the entry of a record it counts as
18224
+ failed. Verified live 2026-11-13 with a hook that reported its
18225
+ input: destination answers 200, 201, 202 and 204 each arrived
18226
+ as `statusCode` 200 with `errors` empty; answers 400, 404, 409,
18227
+ 418 and 500 each arrived as `statusCode` 422. The Help Center's
18228
+ postSubmit stub documents a third value that run did not
18229
+ produce: 403, "the connection went offline".
18230
+ - |-
18231
+ What `errors[0]` of a failed entry carried in that run, by
18232
+ cause. The destination answered 400, 404, 409, 418 or 500:
18233
+ `code` is that status as a number and `message` the raw
18234
+ response body, or the status text ("Bad Request") when the body
18235
+ is empty. A 200 answer matched the import's
18236
+ `http.response.failPath`: `code` is 200 (a number) and
18237
+ `message` the raw body. A 200 answer did not meet
18238
+ `http.response.successPath`: `code` is the string
18239
+ `response_failure` and `message` starts "response failed using
18240
+ path". The request URL template could not be rendered, so
18241
+ nothing was sent: `code` is the string
18242
+ `handlebars_template_parse_error`. Read `errors[0].code` as the
18243
+ destination's status only when it is a number.
18244
+ - |-
18245
+ Each failed entry in that run — one per cause above — had the
18246
+ keys `_json`, `errors` and `statusCode` and no `_headers`; each
18247
+ written entry had `_headers`. A written entry does not carry
18248
+ the destination's status anywhere, so a hook cannot tell a 204
18249
+ from a 200 by status: tell written answers apart by what they
18250
+ carry in `_json` or `_headers`.
18251
+ - |-
18252
+ Test `statusCode` against 200 for "written", never against a
18253
+ status the destination sends. With the entries of that run a
18254
+ test such as `statusCode !== 204` holds for every written
18255
+ record, so a hook that raises an error on it fails all of them,
18256
+ and a test such as `statusCode === 400` never holds, so a hook
18257
+ that handles a refused record on it does nothing: read a failed
18258
+ record's destination status from `errors[0].code`.
18259
+ - |-
18260
+ `_json` is `{}` when the answer has no body, the raw text when
18261
+ the body is not JSON (the 418 answer had a plain-text body) and
18262
+ the parsed body otherwise, on failed entries too (the
18263
+ `failPath` and `successPath` failures above), so check its type
18264
+ before reading fields from it.
18176
18265
  - |-
18177
18266
  An error this hook raises is stored at retry stage
18178
18267
  `page_processor_import`, like the import's own errors: a retry
@@ -19148,21 +19237,32 @@ components:
19148
19237
  statusCode:
19149
19238
  type: integer
19150
19239
  description: |-
19151
- HTTP status of the record's outcome. The destination's status for an
19152
- accepted record; `422` when the import recorded a failure for the
19153
- record — including when the destination itself answered `200` and
19154
- the import's `failPath` rules declared it a failure.
19240
+ The import's verdict on the record, not the destination's HTTP status:
19241
+ `200` for an accepted record — destination answers 200, 201, 202 and
19242
+ 204 each return `200` here — and `422` when the import recorded a
19243
+ failure for the record: the destination answered an error status, it
19244
+ answered `200` and the import's `failPath` or `successPath` rules
19245
+ judged that a failure, or the request could not be built. On a failed
19246
+ record, `errors[].code` carries the destination's status when that
19247
+ code is an integer — see there.
19155
19248
  _json:
19156
- type: object
19157
19249
  description: |-
19158
- The destination's parsed response body for the record — the slice
19250
+ The destination's response body for the record, parsed — the slice
19159
19251
  under the import's `response.resourcePath` when one is defined — not
19160
19252
  the record that was sent. `{}` when the record was ignored or the
19161
- destination returned no usable body.
19162
- additionalProperties: true
19253
+ destination returned no body; the raw text, as a string, when the
19254
+ body is not JSON. A failed record carries it too.
19255
+ oneOf:
19256
+ - type: object
19257
+ additionalProperties: true
19258
+ - type: string
19163
19259
  _headers:
19164
19260
  type: object
19165
- description: Response headers the destination returned for the record.
19261
+ description: |-
19262
+ Response headers the destination returned for the record. Present
19263
+ when the destination accepted the record; the failed results probed
19264
+ — an error status, a `failPath` match, a `successPath` miss, a
19265
+ request that could not be built — carried none.
19166
19266
  additionalProperties: true
19167
19267
  ignored:
19168
19268
  type: boolean
@@ -19196,9 +19296,13 @@ components:
19196
19296
  - type: string
19197
19297
  - type: integer
19198
19298
  description: |-
19199
- The adaptor's error code, or the destination's HTTP status as
19200
- an integer when the import's `failPath` rules turned a
19201
- successful-looking response into a failure.
19299
+ The destination's HTTP status as an integer when its answer was
19300
+ the failure: the error status it answered (`400`, `404`, `418`),
19301
+ or `200` when the import's `failPath` rules matched a `200`
19302
+ answer. Otherwise the adaptor's error code as a string:
19303
+ `response_failure` when a `200` answer did not meet the
19304
+ import's `successPath` rules, `handlebars_template_parse_error`
19305
+ for a request that could not be built.
19202
19306
  message:
19203
19307
  type: string
19204
19308
  resolved:
package/dist/tool.yml CHANGED
@@ -27854,10 +27854,12 @@ components:
27854
27854
  Hook that runs after the destination system responds, with access to both the
27855
27855
  submitted records and the destination's responses. Commonly used to inspect results
27856
27856
  or adjust the response data passed downstream. Each `options.responseData` entry is
27857
- one submitted record's result, in order: `statusCode`, `errors` (`{code, message,
27858
- source}`, empty on success), `ignored`, `id`, and `_json` — the destination's parsed
27859
- response body, where its own error detail sits (`_headers` holds the response
27860
- headers).
27857
+ one submitted record's result, in order: `statusCode` (the import's verdict on the
27858
+ record — 200 written, 422 failed — not the destination's HTTP status), `errors`
27859
+ (`{code, message, source}`, empty on a written record; on a failed one `errors[0]`
27860
+ holds the failure's detail), `ignored`, `id`, and `_json` — the destination's response
27861
+ body, parsed: `{}` when it sent none, the raw text when the body is not JSON. A
27862
+ written record's entry also carries `_headers`, the response headers.
27861
27863
  x-celigo-ai-guidance:
27862
27864
  - |-
27863
27865
  Post-submit JavaScript hook — runs AFTER each batch of
@@ -27870,6 +27872,51 @@ components:
27870
27872
  response, whose envelope carries the mock's id, such as
27871
27873
  ``1234567890``) → array of the same length, typically mutated
27872
27874
  to annotate or augment per-record errors.
27875
+ - |-
27876
+ `statusCode` is the import's verdict, not the HTTP status the
27877
+ destination answered: 200 on the entry of a record the import
27878
+ counts as written, 422 on the entry of a record it counts as
27879
+ failed. Verified live 2026-11-13 with a hook that reported its
27880
+ input: destination answers 200, 201, 202 and 204 each arrived
27881
+ as `statusCode` 200 with `errors` empty; answers 400, 404, 409,
27882
+ 418 and 500 each arrived as `statusCode` 422. The Help Center's
27883
+ postSubmit stub documents a third value that run did not
27884
+ produce: 403, "the connection went offline".
27885
+ - |-
27886
+ What `errors[0]` of a failed entry carried in that run, by
27887
+ cause. The destination answered 400, 404, 409, 418 or 500:
27888
+ `code` is that status as a number and `message` the raw
27889
+ response body, or the status text ("Bad Request") when the body
27890
+ is empty. A 200 answer matched the import's
27891
+ `http.response.failPath`: `code` is 200 (a number) and
27892
+ `message` the raw body. A 200 answer did not meet
27893
+ `http.response.successPath`: `code` is the string
27894
+ `response_failure` and `message` starts "response failed using
27895
+ path". The request URL template could not be rendered, so
27896
+ nothing was sent: `code` is the string
27897
+ `handlebars_template_parse_error`. Read `errors[0].code` as the
27898
+ destination's status only when it is a number.
27899
+ - |-
27900
+ Each failed entry in that run — one per cause above — had the
27901
+ keys `_json`, `errors` and `statusCode` and no `_headers`; each
27902
+ written entry had `_headers`. A written entry does not carry
27903
+ the destination's status anywhere, so a hook cannot tell a 204
27904
+ from a 200 by status: tell written answers apart by what they
27905
+ carry in `_json` or `_headers`.
27906
+ - |-
27907
+ Test `statusCode` against 200 for "written", never against a
27908
+ status the destination sends. With the entries of that run a
27909
+ test such as `statusCode !== 204` holds for every written
27910
+ record, so a hook that raises an error on it fails all of them,
27911
+ and a test such as `statusCode === 400` never holds, so a hook
27912
+ that handles a refused record on it does nothing: read a failed
27913
+ record's destination status from `errors[0].code`.
27914
+ - |-
27915
+ `_json` is `{}` when the answer has no body, the raw text when
27916
+ the body is not JSON (the 418 answer had a plain-text body) and
27917
+ the parsed body otherwise, on failed entries too (the
27918
+ `failPath` and `successPath` failures above), so check its type
27919
+ before reading fields from it.
27873
27920
  - |-
27874
27921
  An error this hook raises is stored at retry stage
27875
27922
  `page_processor_import`, like the import's own errors: a retry
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celigo/api-specs",
3
- "version": "0.2.294",
3
+ "version": "0.2.296",
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": "0141b82a",
4
+ "iasCommit": "cef41164",
5
5
  "generatedAt": "2026-11-13"
6
6
  },
7
7
  "roots": {