@celigo/api-specs 0.2.307 → 0.2.308
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/flow.yml +131 -13
- package/package.json +1 -1
- package/schemas.json +2 -2
package/dist/flow.yml
CHANGED
|
@@ -787,6 +787,11 @@ paths:
|
|
|
787
787
|
`GET /v1/flows/{_id}/{_stepId}/errors`. For a whole-integration rollup, use
|
|
788
788
|
`GET /v1/integrations/{_id}/errors`. `lastErrorAt` is only populated on entries with
|
|
789
789
|
`numError > 0`.
|
|
790
|
+
|
|
791
|
+
A ToolImport step's entry counts the open errors of its whole tool chain. The error records are
|
|
792
|
+
listed under the step inside the tool that failed, not under the ToolImport: pass
|
|
793
|
+
`_toolImportId` to get the chain's per-step counts, then read that step's errors with
|
|
794
|
+
`GET /v1/flows/{_id}/{_stepId}/errors`.
|
|
790
795
|
parameters:
|
|
791
796
|
- name: _id
|
|
792
797
|
in: path
|
|
@@ -796,6 +801,19 @@ paths:
|
|
|
796
801
|
type: string
|
|
797
802
|
format: objectId
|
|
798
803
|
x-celigo-refModel: flows
|
|
804
|
+
- name: _toolImportId
|
|
805
|
+
in: query
|
|
806
|
+
required: false
|
|
807
|
+
description: |-
|
|
808
|
+
ToolImport step of the flow whose tool chain to summarize. The response then lists the steps
|
|
809
|
+
of that chain instead of the flow's own steps: one entry per export or import inside the
|
|
810
|
+
tool and its nested tools, and three entries per ToolImport level — the level itself and its
|
|
811
|
+
`toolStage` `input` and `output`. A ToolImport nested inside another's tool returns an empty
|
|
812
|
+
`flowErrors` array, and a value that is not a valid id returns `400` `invalid_ref`.
|
|
813
|
+
schema:
|
|
814
|
+
type: string
|
|
815
|
+
format: objectId
|
|
816
|
+
x-celigo-refModel: imports
|
|
799
817
|
responses:
|
|
800
818
|
'200':
|
|
801
819
|
description: Per-step open-error summary.
|
|
@@ -813,6 +831,31 @@ paths:
|
|
|
813
831
|
lastErrorAt: '2026-04-21T10:51:13.221Z'
|
|
814
832
|
- _expOrImpId: 69a9aa5c54e3d9bd11b86d82
|
|
815
833
|
numError: 0
|
|
834
|
+
tool_chain:
|
|
835
|
+
summary: With _toolImportId — the chain of a ToolImport whose tool nests a second tool
|
|
836
|
+
value:
|
|
837
|
+
flowErrors:
|
|
838
|
+
- _expOrImpId: 6af9ecef416839654bc2ebe1
|
|
839
|
+
numError: 0
|
|
840
|
+
- _expOrImpId: 6af9ecf0cc1815dca10ea6ff
|
|
841
|
+
numError: 1
|
|
842
|
+
lastErrorAt: '2026-11-15T17:37:07.013Z'
|
|
843
|
+
- _expOrImpId: 6af9ed16cc1815dca10ea729
|
|
844
|
+
numError: 0
|
|
845
|
+
- _expOrImpId: 6af9ed16cc1815dca10ea729
|
|
846
|
+
numError: 0
|
|
847
|
+
toolStage: input
|
|
848
|
+
- _expOrImpId: 6af9ed16cc1815dca10ea729
|
|
849
|
+
numError: 0
|
|
850
|
+
toolStage: output
|
|
851
|
+
- _expOrImpId: 6af9ed87416839654bc2ec3c
|
|
852
|
+
numError: 0
|
|
853
|
+
- _expOrImpId: 6af9ed87416839654bc2ec3c
|
|
854
|
+
numError: 0
|
|
855
|
+
toolStage: input
|
|
856
|
+
- _expOrImpId: 6af9ed87416839654bc2ec3c
|
|
857
|
+
numError: 0
|
|
858
|
+
toolStage: output
|
|
816
859
|
'400':
|
|
817
860
|
$ref: '#/components/responses/400-bad-request'
|
|
818
861
|
'401':
|
|
@@ -1482,7 +1525,9 @@ paths:
|
|
|
1482
1525
|
description: |-
|
|
1483
1526
|
Returns one page of currently-open (unresolved) errors for a single step (export or import) within
|
|
1484
1527
|
a flow. The step id is the `_exportId` / `_importId` from the flow's `pageGenerators[]`,
|
|
1485
|
-
`pageProcessors[]`, or `routers[].branches[].pageProcessors[]`.
|
|
1528
|
+
`pageProcessors[]`, or `routers[].branches[].pageProcessors[]`. An error raised inside a
|
|
1529
|
+
ToolImport step's tool is listed under the export or import inside the tool that failed, read
|
|
1530
|
+
with that step's id on this same flow; the ToolImport's own id returns an empty list.
|
|
1486
1531
|
|
|
1487
1532
|
For a flow-wide rollup (per-step counts only), use `GET /v1/flows/{_id}/errors` instead.
|
|
1488
1533
|
To scope the list to one specific run, pass `_flowJobId` together with the required
|
|
@@ -3291,7 +3336,9 @@ paths:
|
|
|
3291
3336
|
|
|
3292
3337
|
A ToolImport step's tool chain is returned as one entry per record and chain, carrying
|
|
3293
3338
|
`_toolImportId`: the steps inside the tool and any nested tools do not get entries of their own,
|
|
3294
|
-
and the entry's `status` is `error` when any step in the chain errored.
|
|
3339
|
+
and the entry's `status` is `error` when any step in the chain errored. The rollup is written
|
|
3340
|
+
after the step records: right after a run ends, the entry of a chain that failed can still read
|
|
3341
|
+
`success`, so re-query before treating the chain as clean.
|
|
3295
3342
|
|
|
3296
3343
|
For per-stage data (an HTTP request and response, or a mapping's or script hook's input and
|
|
3297
3344
|
output), pick an entry and call `POST .../logs/data/query` with the corresponding `stage`. To stitch an
|
|
@@ -3621,7 +3668,9 @@ paths:
|
|
|
3621
3668
|
before concluding the step recorded nothing.
|
|
3622
3669
|
|
|
3623
3670
|
For a ToolImport step, set `stage` to `tool` to get the record's input to and output from the
|
|
3624
|
-
whole tool, without `groupId`.
|
|
3671
|
+
whole tool, without `groupId`. Each end of the tool is also its own entry: `schemaValidation`
|
|
3672
|
+
with the ToolImport's id and the trace step's `groupId` (the input end) or `outputGroupId` (the
|
|
3673
|
+
output end). With `stage` `tool`, a missing `recordId` or `_expOrImpId` returns
|
|
3625
3674
|
`400` `missing_required_field`, and a `_toolImportId` that differs from `_expOrImpId` returns
|
|
3626
3675
|
`400` `invalid_exp_or_imp_id`.
|
|
3627
3676
|
parameters:
|
|
@@ -3669,6 +3718,13 @@ paths:
|
|
|
3669
3718
|
_toolImportId: 6ae149afa8b7937d2e5a3765
|
|
3670
3719
|
recordId: cAl5nHBP
|
|
3671
3720
|
stage: tool
|
|
3721
|
+
tool_output_end:
|
|
3722
|
+
summary: Fetch the record a ToolImport step's tool returned (groupId is the step's outputGroupId)
|
|
3723
|
+
value:
|
|
3724
|
+
_expOrImpId: 6af9ed87416839654bc2ec3c
|
|
3725
|
+
groupId: Wecs7yWG
|
|
3726
|
+
recordId: SW55vKl8
|
|
3727
|
+
stage: schemaValidation
|
|
3672
3728
|
responses:
|
|
3673
3729
|
'200':
|
|
3674
3730
|
description: Log entries for the requested `(step, stage)`.
|
|
@@ -3750,6 +3806,28 @@ paths:
|
|
|
3750
3806
|
errorMessage: 'id: String contains alpha characters'
|
|
3751
3807
|
errorCode: non_parsable_string
|
|
3752
3808
|
errorSource: resource
|
|
3809
|
+
tool_output_end:
|
|
3810
|
+
summary: schemaValidation on a ToolImport step with its outputGroupId
|
|
3811
|
+
value:
|
|
3812
|
+
logs:
|
|
3813
|
+
- log:
|
|
3814
|
+
timestamp: '2026-11-15T17:37:38.639Z'
|
|
3815
|
+
groupId: Wecs7yWG
|
|
3816
|
+
recordId: SW55vKl8
|
|
3817
|
+
stage: schemaValidation
|
|
3818
|
+
toolStage: output
|
|
3819
|
+
input:
|
|
3820
|
+
record:
|
|
3821
|
+
commentId: 9
|
|
3822
|
+
postTitle: qui est esse
|
|
3823
|
+
authorName: Glenna Reichert
|
|
3824
|
+
output:
|
|
3825
|
+
record:
|
|
3826
|
+
commentId: 9
|
|
3827
|
+
postTitle: qui est esse
|
|
3828
|
+
authorName: Glenna Reichert
|
|
3829
|
+
errors: []
|
|
3830
|
+
errors: []
|
|
3753
3831
|
empty_result:
|
|
3754
3832
|
summary: Nothing captured for the stage, or an unknown stage name
|
|
3755
3833
|
value:
|
|
@@ -7225,7 +7303,8 @@ components:
|
|
|
7225
7303
|
type: object
|
|
7226
7304
|
description: |-
|
|
7227
7305
|
Per-step summary of open errors for a flow. One entry per export or import step; entries with
|
|
7228
|
-
`numError: 0` still appear so the caller can see the full step list.
|
|
7306
|
+
`numError: 0` still appear so the caller can see the full step list. With `_toolImportId`, the
|
|
7307
|
+
entries are the steps of that ToolImport's tool chain.
|
|
7229
7308
|
properties:
|
|
7230
7309
|
flowErrors:
|
|
7231
7310
|
type: array
|
|
@@ -7239,6 +7318,17 @@ components:
|
|
|
7239
7318
|
description: Id of the export or import step.
|
|
7240
7319
|
examples:
|
|
7241
7320
|
- 60a2c4e6f321d800129a1a3c
|
|
7321
|
+
toolStage:
|
|
7322
|
+
type: string
|
|
7323
|
+
enum:
|
|
7324
|
+
- input
|
|
7325
|
+
- output
|
|
7326
|
+
x-enumDescriptions:
|
|
7327
|
+
input: The entry counts errors at the tool's input end
|
|
7328
|
+
output: The entry counts errors at the tool's output end
|
|
7329
|
+
description: |-
|
|
7330
|
+
End of the tool this entry counts. Present only on a tool-chain summary
|
|
7331
|
+
(`_toolImportId`), on the two extra entries each ToolImport level gets.
|
|
7242
7332
|
numError:
|
|
7243
7333
|
type: integer
|
|
7244
7334
|
minimum: 0
|
|
@@ -9078,7 +9168,9 @@ components:
|
|
|
9078
9168
|
type: string
|
|
9079
9169
|
description: |-
|
|
9080
9170
|
Outcome of this step for this record. A ToolImport chain entry is `error` when any step in
|
|
9081
|
-
the chain errored, even if the ToolImport's own pass succeeded.
|
|
9171
|
+
the chain errored, even if the ToolImport's own pass succeeded. That rollup is written after
|
|
9172
|
+
the step records: an entry read right after the job's `endedAt` can still be `success` for a
|
|
9173
|
+
chain that failed, so re-query before treating it as final.
|
|
9082
9174
|
enum:
|
|
9083
9175
|
- success
|
|
9084
9176
|
- error
|
|
@@ -9206,9 +9298,13 @@ components:
|
|
|
9206
9298
|
status:
|
|
9207
9299
|
type: string
|
|
9208
9300
|
description: |-
|
|
9209
|
-
Outcome at this step.
|
|
9210
|
-
|
|
9211
|
-
failed names the stage.
|
|
9301
|
+
Outcome at this step. When the request traces the chain (`traceKey` or `_toolImportId`), the
|
|
9302
|
+
outermost ToolImport step is `error` when any step in its chain errored, even if its own
|
|
9303
|
+
pass succeeded; its `stage` then stays empty, and the step that failed names the stage. A
|
|
9304
|
+
nested ToolImport is not rolled up: it stays `success` when a step inside its own tool
|
|
9305
|
+
errored. Without `traceKey` and `_toolImportId` there is no rollup: the response is the
|
|
9306
|
+
ToolImport's input-side row with that pass's own status, `success` even for a chain that
|
|
9307
|
+
failed inside.
|
|
9212
9308
|
enum:
|
|
9213
9309
|
- success
|
|
9214
9310
|
- error
|
|
@@ -9286,7 +9382,14 @@ components:
|
|
|
9286
9382
|
_expOrImpId:
|
|
9287
9383
|
type: string
|
|
9288
9384
|
format: objectId
|
|
9289
|
-
description:
|
|
9385
|
+
description: |-
|
|
9386
|
+
Id of the export or import step the record was processed by. The two ends of a tool run by a
|
|
9387
|
+
ToolImport step are read with that ToolImport's own id, nested ToolImports included.
|
|
9388
|
+
x-celigo-ai-guidance:
|
|
9389
|
+
- |-
|
|
9390
|
+
For a tool's input or output inside a flow run, send the ToolImport step's id. The
|
|
9391
|
+
`<toolId>_input` form used by tool invocation logs returns `400` `invalid_exp_or_imp_id`
|
|
9392
|
+
here, and the bare tool id returns an empty `logs` array.
|
|
9290
9393
|
examples:
|
|
9291
9394
|
- 60a2c4e6f321d800129a1a3c
|
|
9292
9395
|
stage:
|
|
@@ -9302,6 +9405,13 @@ components:
|
|
|
9302
9405
|
neither the bare hook name (`preMap`) nor `<functionName>Hook` returns them (live-verified
|
|
9303
9406
|
2026-10-20; `inputFilter` 2026-10-22). `tool` returns a ToolImport step's composed input and
|
|
9304
9407
|
output for the record; it needs no `groupId`.
|
|
9408
|
+
|
|
9409
|
+
On a ToolImport level (the flow's ToolImport step or one nested in its tool),
|
|
9410
|
+
`schemaValidation` returns the record at one end of the tool on a `detailed` or `debug` job:
|
|
9411
|
+
with the level's `groupId`, the record entering the tool, and with its `outputGroupId`, the
|
|
9412
|
+
record the tool returned. On a `debug` job, `mapping` with the level's `groupId` returns the
|
|
9413
|
+
ToolImport's own mapping and with its `outputGroupId` the tool's output mapping, and
|
|
9414
|
+
`responseMapping` is recorded under `outputGroupId` (live-verified 2026-11-15).
|
|
9305
9415
|
examples:
|
|
9306
9416
|
- apiCall
|
|
9307
9417
|
- transformation
|
|
@@ -9315,9 +9425,12 @@ components:
|
|
|
9315
9425
|
- postSubmitHook
|
|
9316
9426
|
- postResponseMapHook
|
|
9317
9427
|
- tool
|
|
9428
|
+
- schemaValidation
|
|
9318
9429
|
groupId:
|
|
9319
9430
|
type: string
|
|
9320
|
-
description:
|
|
9431
|
+
description: |-
|
|
9432
|
+
Batch id from the `execution-log` entry or the trace step. For the output side of a
|
|
9433
|
+
ToolImport level, that step's `outputGroupId`. Ignored when `stage` is `tool`.
|
|
9321
9434
|
examples:
|
|
9322
9435
|
- g_5f8d43a1b9e5a80011a35f2d
|
|
9323
9436
|
recordId:
|
|
@@ -9332,8 +9445,9 @@ components:
|
|
|
9332
9445
|
description: |-
|
|
9333
9446
|
Outermost ToolImport of the chain. Set it to the same value as `_expOrImpId` when `stage` is
|
|
9334
9447
|
`tool` and `_expOrImpId` is the outermost ToolImport, so the response carries the chain's
|
|
9335
|
-
errors; without it `errors` comes back empty. Omit it for a tool nested inside another
|
|
9336
|
-
|
|
9448
|
+
errors; without it `errors` comes back empty. Omit it for a tool nested inside another: set
|
|
9449
|
+
to the nested ToolImport's own id, it returns an empty `logs` array. A different value or a
|
|
9450
|
+
malformed id returns `400` `invalid_exp_or_imp_id`.
|
|
9337
9451
|
examples:
|
|
9338
9452
|
- 60a2c4e6f321d800129a1a3c
|
|
9339
9453
|
required:
|
|
@@ -9372,7 +9486,11 @@ components:
|
|
|
9372
9486
|
`{record}`. `outputGroupId` appears once the tool's output pass has run and `output` once that
|
|
9373
9487
|
pass stored a record, so a chain that failed inside the tool has `input` only. Payloads are
|
|
9374
9488
|
written after the job's step records, so right after a run a side can be missing because it has
|
|
9375
|
-
not landed yet; re-query before treating it as absent.
|
|
9489
|
+
not landed yet; re-query before treating it as absent. On a `basic` job the entry carries the
|
|
9490
|
+
ids only, without `input` or `output` (live-verified 2026-11-15).
|
|
9491
|
+
- `schemaValidation`: on a ToolImport level, a per-record entry for one end of the tool, carrying
|
|
9492
|
+
`toolStage` (`input` or `output`), the record at that end as `input.record` and
|
|
9493
|
+
`output.record`, and `errors`. Empty on a `basic` job (live-verified 2026-11-15).
|
|
9376
9494
|
properties:
|
|
9377
9495
|
logs:
|
|
9378
9496
|
type: array
|
package/package.json
CHANGED