@celigo/api-specs 0.2.2-IO-168454-EPIC-fb → 0.2.3-IO-168454-EPIC-fb

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
@@ -4344,7 +4344,8 @@ components:
4344
4344
  type: object
4345
4345
  description: |-
4346
4346
  Query payload for retrieving decoded log data for a step within an API
4347
- request execution. Same shape as the flow log-data query.
4347
+ request execution. All four selector keys are always required here; the
4348
+ flow log-data query's `stage: tool` composition does not apply to APIs.
4348
4349
  required:
4349
4350
  - _expOrImpId
4350
4351
  - stage
package/dist/flow.yml CHANGED
@@ -2813,12 +2813,13 @@ paths:
2813
2813
  Returns one page of execution-log entries for a specific flow run — one entry per record-at-step
2814
2814
  (export or import). Entries carry the `(_expOrImpId, groupId, recordId, traceKey)` tuple needed to
2815
2815
  drill into per-stage metadata and data via the `logs/metadata/query` and `logs/data/query` endpoints.
2816
+ A ToolImport appears as one row per record; open the steps inside it with `logs/metadata/query`.
2816
2817
 
2817
2818
  Execution logs are populated only when the flow has logging enabled (either full `logMode` or the
2818
2819
  time-bounded `logging.debugUntil` debug window). Jobs older than the flow's log retention window will
2819
2820
  return an empty `logs` array.
2820
2821
 
2821
- For detailed per-stage data (HTTP request/response, script `options.logs` output), pick an
2822
+ For detailed per-stage data (HTTP request/response, hook input/output), pick an
2822
2823
  entry and call `POST .../logs/data/query` with the corresponding `stage`. To stitch an
2823
2824
  export entry to its downstream imports, use the `traceKey` with
2824
2825
  `POST .../logs/metadata/query`.
@@ -2856,7 +2857,9 @@ paths:
2856
2857
  - name: _expOrImpId
2857
2858
  in: query
2858
2859
  required: false
2859
- description: Comma-separated list of export or import step ids. Only entries produced by these steps are returned.
2860
+ description: |-
2861
+ Comma-separated list of export or import step ids. Only entries produced by these steps are returned.
2862
+ Use the outermost ToolImport id for a Tool; a nested ToolImport id matches no rows.
2860
2863
  schema:
2861
2864
  type: string
2862
2865
  - name: traceKeyPrefix
@@ -2937,13 +2940,15 @@ paths:
2937
2940
  the source export plus its downstream imports.
2938
2941
 
2939
2942
  Pull the `_expOrImpId`, `groupId`, `recordId`, and (optionally) `traceKey` values from a
2940
- `GET /v1/flows/{_id}/jobs/{_jobId}/logs` entry.
2943
+ `GET /v1/flows/{_id}/jobs/{_jobId}/logs` entry. To open the steps inside a ToolImport
2944
+ without a trace key, send `_toolImportId` with `recordId`.
2941
2945
 
2942
2946
  Pair this with `logs/data/query` to build a full per-record trace: this endpoint shows which
2943
2947
  steps were touched and timing; the data endpoint returns actual payloads. When
2944
2948
  `duplicateTraceKey` is `true`, the traceKey was seen on more than one record in the job, so
2945
2949
  results may mix records from retries or fan-out. Without `traceKey` in the request,
2946
- `traceView` is `false` and only the single queried step is returned.
2950
+ `traceView` is `false` and only the queried step is returned — or, with `_toolImportId`,
2951
+ that Tool's chain.
2947
2952
  parameters:
2948
2953
  - name: _id
2949
2954
  in: path
@@ -2981,6 +2986,12 @@ paths:
2981
2986
  groupId: 1WsTiyxQ
2982
2987
  recordId: CMeN0hDc
2983
2988
  traceKey: '0'
2989
+ tool_chain:
2990
+ summary: One Tool's chain, without a group id
2991
+ value:
2992
+ _expOrImpId: 60a2c4e6f321d800129a1a3c
2993
+ _toolImportId: 60a2c4e6f321d800129a1a3c
2994
+ recordId: rtool001
2984
2995
  responses:
2985
2996
  '200':
2986
2997
  description: Step metadata (or a trace across paired steps when `traceKey` was supplied).
@@ -3010,6 +3021,30 @@ paths:
3010
3021
  timeTaken: 1232
3011
3022
  startedAt: '2026-04-23 02:51:51.111'
3012
3023
  completedAt: '2026-04-23 02:51:52.343'
3024
+ tool_chain:
3025
+ summary: Collapsed Tool node plus one internal step
3026
+ value:
3027
+ duplicateTraceKey: false
3028
+ traceView: false
3029
+ steps:
3030
+ - _expOrImpId: 60a2c4e6f321d800129a1a3c
3031
+ _toolImportId: 60a2c4e6f321d800129a1a3c
3032
+ recordId: rtool001
3033
+ groupId: g1in0001
3034
+ outputGroupId: g1out001
3035
+ status: success
3036
+ timeTaken: 1200
3037
+ startedAt: '2026-04-23 02:51:45.066'
3038
+ completedAt: '2026-04-23 02:51:46.810'
3039
+ - _expOrImpId: 69a9aa5c54e3d9bd11b86d82
3040
+ _toolImportId: 60a2c4e6f321d800129a1a3c
3041
+ recordId: rtool001
3042
+ groupId: gint0001
3043
+ status: error
3044
+ stage: apiCall
3045
+ timeTaken: 400
3046
+ startedAt: '2026-04-23 02:51:45.400'
3047
+ completedAt: '2026-04-23 02:51:45.800'
3013
3048
  single_step:
3014
3049
  summary: Response when the request omitted `traceKey`
3015
3050
  value:
@@ -3038,21 +3073,23 @@ paths:
3038
3073
  summary: Get per-stage execution log data for a record
3039
3074
  description: |-
3040
3075
  Returns the decoded log data (typically request/response bodies, transform input/output, or script
3041
- `options.logs` entries) for a single `(step, stage)` tuple within a flow run.
3076
+ hook input/output) for a single `(step, stage)` tuple within a flow run.
3042
3077
 
3043
3078
  Stages are bubble-kind specific. The most useful values:
3044
3079
  - **Export / Lookup:** `apiCall` (HTTP request+response for HTTP exports), `transformation`,
3045
- `outputFilter`, `responseMapping`.
3046
- - **Import:** `apiCall`, `mapping`, `inputFilter`, `responseTransformation`.
3080
+ `outputFilter`, `preSavePageHook`; lookups also `responseMapping`, `postResponseMapHook`.
3081
+ - **Import:** `apiCall`, `inputFilter`, `mapping`, `responseTransformation`, `preMapHook`,
3082
+ `postMapHook`, `postSubmitHook`.
3047
3083
  - **Router:** `routing` (branching decision).
3048
- - **Any:** the `function` name from a configured script hook (e.g. `preMap`, `postMap`, `postSubmit`,
3049
- `postResponseMap`, `preSavePage`) — populated only when the hook explicitly calls
3050
- `options.logs.push(...)`.
3084
+ - **ToolImport:** `tool` composes the record entering the Tool (`log.input`) and the record
3085
+ entering output validation (`log.output`, omitted until that pass completes). For the
3086
+ outermost Tool, set `_toolImportId` equal to `_expOrImpId`. For a Tool nested inside
3087
+ another Tool, omit `_toolImportId`. `groupId` is ignored. To drill into one side, query
3088
+ a real stage (for example `schemaValidation`) with that side's `groupId` from the trace.
3051
3089
 
3052
3090
  This is typically the terminal call in the drill-down sequence: `execution-logs` then
3053
3091
  `metadata/query` then `data/query`. For HTTP traces, set `stage: apiCall`. A 200 with
3054
- `logs: []` means the stage ran but produced no log entry — usually because a script did not
3055
- call `options.logs.push()`, or the stage is not instrumented for that adaptor.
3092
+ `logs: []` means no log entry was stored for that stage and record.
3056
3093
  parameters:
3057
3094
  - name: _id
3058
3095
  in: path
@@ -3084,13 +3121,20 @@ paths:
3084
3121
  groupId: 69e981ee18808f3e5ed1b2fd
3085
3122
  recordId: '0'
3086
3123
  stage: apiCall
3087
- post_map_script:
3088
- summary: Fetch `options.logs` output from a postMap script hook
3124
+ post_map_hook:
3125
+ summary: Fetch the input and output of a postMap script hook
3089
3126
  value:
3090
3127
  _expOrImpId: 69a9aa5d3b213b3ac975e8d2
3091
3128
  groupId: 69e981ee18808f3e5ed1b2fd
3092
3129
  recordId: '0'
3093
- stage: postMap
3130
+ stage: postMapHook
3131
+ tool_import:
3132
+ summary: Composed input and output for an outermost ToolImport
3133
+ value:
3134
+ _expOrImpId: 60a2c4e6f321d800129a1a3c
3135
+ _toolImportId: 60a2c4e6f321d800129a1a3c
3136
+ recordId: rtool001
3137
+ stage: tool
3094
3138
  responses:
3095
3139
  '200':
3096
3140
  description: Log entries for the requested `(step, stage)`.
@@ -3114,8 +3158,23 @@ paths:
3114
3158
  response:
3115
3159
  statusCode: 200
3116
3160
  errors: []
3117
- empty_no_hook_output:
3118
- summary: Script-hook stage that never called `options.logs.push(...)`
3161
+ tool_import:
3162
+ summary: ToolImport input and output after both passes
3163
+ value:
3164
+ logs:
3165
+ - log:
3166
+ stage: tool
3167
+ recordId: rtool001
3168
+ groupId: g1in0001
3169
+ outputGroupId: g1out001
3170
+ input:
3171
+ orderId: 815
3172
+ output:
3173
+ orderId: 815
3174
+ confirmationCode: CONF-789
3175
+ errors: []
3176
+ empty_no_log_entry:
3177
+ summary: Stage with no stored log entry for the record
3119
3178
  value:
3120
3179
  logs: []
3121
3180
  errors: []
@@ -7319,6 +7378,10 @@ components:
7319
7378
 
7320
7379
  The tuple `(_expOrImpId, groupId, recordId)` uniquely identifies the record-at-step; `traceKey` groups
7321
7380
  the paired export and import entries that processed the same record end-to-end.
7381
+
7382
+ A ToolImport is one row per record. Steps inside the Tool are not separate rows; their
7383
+ failures roll into this row's `status`. `groupId` is the Tool's input-side group once
7384
+ that pass has been recorded.
7322
7385
  properties:
7323
7386
  startedAt:
7324
7387
  type: string
@@ -7349,17 +7412,25 @@ components:
7349
7412
  description: Id of the export or import step that produced this entry.
7350
7413
  examples:
7351
7414
  - 60a2c4e6f321d800129a1a3c
7415
+ _toolImportId:
7416
+ type: string
7417
+ format: objectId
7418
+ description: |-
7419
+ ToolImport id on a Tool rollup row. Equals `_expOrImpId`. Absent on export
7420
+ and import steps that are not a ToolImport.
7421
+ examples:
7422
+ - 60a2c4e6f321d800129a1a3c
7352
7423
  status:
7353
7424
  type: string
7354
7425
  description: Outcome of this step for this record.
7355
7426
  enum:
7356
7427
  - success
7357
7428
  - error
7358
- - ignored
7429
+ - ignore
7359
7430
  x-enumDescriptions:
7360
7431
  success: The record was processed successfully at this step.
7361
7432
  error: The record encountered an error during processing.
7362
- ignored: The record was skipped by a filter or routing rule.
7433
+ ignore: The record was skipped by a filter or routing rule.
7363
7434
  timeTaken:
7364
7435
  type: integer
7365
7436
  description: Milliseconds spent processing this record at this step.
@@ -7402,7 +7473,7 @@ components:
7402
7473
  - 60a2c4e6f321d800129a1a3c
7403
7474
  groupId:
7404
7475
  type: string
7405
- description: The `groupId` from the matching `execution-log` entry.
7476
+ description: The `groupId` from the matching execution-log entry. Ignored when `_toolImportId` is set.
7406
7477
  examples:
7407
7478
  - g_5f8d43a1b9e5a80011a35f2d
7408
7479
  recordId:
@@ -7410,6 +7481,14 @@ components:
7410
7481
  description: The `recordId` from the matching `execution-log` entry.
7411
7482
  examples:
7412
7483
  - r_0001
7484
+ _toolImportId:
7485
+ type: string
7486
+ format: objectId
7487
+ description: |-
7488
+ ToolImport id. Scopes the step view (no usable `traceKey`) to that Tool's chain for
7489
+ `recordId` — the Tool node plus steps inside it — and makes `groupId` optional.
7490
+ examples:
7491
+ - 60a2c4e6f321d800129a1a3c
7413
7492
  traceKey:
7414
7493
  type: string
7415
7494
  description: |-
@@ -7419,11 +7498,20 @@ components:
7419
7498
  - ORD-100245
7420
7499
  required:
7421
7500
  - _expOrImpId
7422
- - groupId
7423
7501
  - recordId
7502
+ if:
7503
+ required:
7504
+ - _toolImportId
7505
+ then: {}
7506
+ else:
7507
+ required:
7508
+ - groupId
7424
7509
  ExecutionLogStep:
7425
7510
  type: object
7426
- description: Per-step timing and outcome for a single record as it passed through one export or import.
7511
+ description: |-
7512
+ Per-step timing and outcome for a single record as it passed through one export or import.
7513
+ A ToolImport with both an input and an output pass collapses to one step; steps inside
7514
+ the Tool remain separate entries.
7427
7515
  properties:
7428
7516
  _expOrImpId:
7429
7517
  type: string
@@ -7438,20 +7526,36 @@ components:
7438
7526
  - r_0001
7439
7527
  groupId:
7440
7528
  type: string
7441
- description: Opaque batch id.
7529
+ description: Opaque batch id. On a collapsed ToolImport step this is the input-side group.
7442
7530
  examples:
7443
7531
  - g_5f8d43a1b9e5a80011a35f2d
7532
+ outputGroupId:
7533
+ type: string
7534
+ description: |-
7535
+ Output-side group. Present only on a collapsed ToolImport step. `logs/data/query`
7536
+ with `stage: tool` resolves both groups itself; do not send this value as its `groupId`.
7537
+ examples:
7538
+ - g_out_5f8d43a1b9e5a80011a35f2d
7539
+ _toolImportId:
7540
+ type: string
7541
+ format: objectId
7542
+ description: |-
7543
+ Outermost ToolImport of the chain this step belongs to. Present on every step in
7544
+ the chain, including nested Tool nodes and steps inside the Tool. Absent on flow
7545
+ steps outside a Tool.
7546
+ examples:
7547
+ - 60a2c4e6f321d800129a1a3c
7444
7548
  status:
7445
7549
  type: string
7446
7550
  description: Outcome at this step.
7447
7551
  enum:
7448
7552
  - success
7449
7553
  - error
7450
- - ignored
7554
+ - ignore
7451
7555
  x-enumDescriptions:
7452
7556
  success: The record was processed successfully at this step.
7453
7557
  error: The record encountered an error during processing.
7454
- ignored: The record was skipped by a filter or routing rule.
7558
+ ignore: The record was skipped by a filter or routing rule.
7455
7559
  timeTaken:
7456
7560
  type: integer
7457
7561
  description: Milliseconds spent at this step for this record.
@@ -7471,10 +7575,12 @@ components:
7471
7575
  type: string
7472
7576
  description: |-
7473
7577
  Pipeline stage at which this step entry was recorded. Observed values include `apiCall`
7474
- (the adaptor invocation itself). Useful for filtering metadata responses when a step has
7475
- multiple stage entries across a single record's pass.
7578
+ (the adaptor invocation itself) and `schemaValidation` (a Tool input or output check).
7579
+ Useful for filtering metadata responses when a step has multiple stage entries across
7580
+ a single record's pass.
7476
7581
  examples:
7477
7582
  - apiCall
7583
+ - schemaValidation
7478
7584
  ExecutionLogMetadataResponse:
7479
7585
  type: object
7480
7586
  description: |-
@@ -7493,10 +7599,12 @@ components:
7493
7599
  type: boolean
7494
7600
  description: |-
7495
7601
  `true` when the response contains a multi-step trace (i.e. the request supplied `traceKey` and paired
7496
- steps were found). `false` when the response is scoped to the single queried step.
7602
+ steps were found). `false` when the response is scoped to the queried step or Tool chain.
7497
7603
  steps:
7498
7604
  type: array
7499
- description: Per-step metadata. A single entry when `traceView` is false; one per paired step otherwise.
7605
+ description: |-
7606
+ Per-step metadata. One entry for a plain step query; the collapsed Tool node plus the
7607
+ steps inside it when `_toolImportId` was sent; one per paired step when `traceView` is true.
7500
7608
  items:
7501
7609
  $ref: '#/components/schemas/ExecutionLogStep'
7502
7610
  ExecutionLogDataRequest:
@@ -7513,26 +7621,46 @@ components:
7513
7621
  - 60a2c4e6f321d800129a1a3c
7514
7622
  stage:
7515
7623
  type: string
7516
- description: Execution stage whose data to return.
7624
+ description: |-
7625
+ Execution stage whose data to return. `tool` composes a ToolImport's input
7626
+ and output; `groupId` is not required for that stage.
7517
7627
  enum:
7518
7628
  - apiCall
7519
- - preMap
7520
- - postMap
7521
- - postSubmit
7522
- - postResponseMap
7523
- - transform
7524
- - responseTransform
7629
+ - inputFilter
7630
+ - outputFilter
7631
+ - transformation
7632
+ - mapping
7633
+ - responseMapping
7634
+ - responseTransformation
7635
+ - routing
7636
+ - preSavePageHook
7637
+ - preMapHook
7638
+ - postMapHook
7639
+ - postSubmitHook
7640
+ - postResponseMapHook
7641
+ - schemaValidation
7642
+ - tool
7525
7643
  x-enumDescriptions:
7526
7644
  apiCall: Raw HTTP request and response from the adaptor invocation.
7527
- preMap: Data captured by the preMap script hook via options.logs.push().
7528
- postMap: Data captured by the postMap script hook via options.logs.push().
7529
- postSubmit: Data captured by the postSubmit script hook via options.logs.push().
7530
- postResponseMap: Data captured by the postResponseMap script hook via options.logs.push().
7531
- transform: Data captured during the transformation stage.
7532
- responseTransform: Data captured during the response transformation stage.
7645
+ inputFilter: Input-filter evaluation for the record.
7646
+ outputFilter: Output-filter evaluation for the record.
7647
+ transformation: Record before and after the transformation.
7648
+ mapping: Record before and after field mapping.
7649
+ responseMapping: Response mapped back onto the record.
7650
+ responseTransformation: Import response before and after the response transformation.
7651
+ routing: Branch decision for the record on a router.
7652
+ preSavePageHook: Input and output of the preSavePage script hook.
7653
+ preMapHook: Input and output of the preMap script hook.
7654
+ postMapHook: Input and output of the postMap script hook.
7655
+ postSubmitHook: Input and output of the postSubmit script hook.
7656
+ postResponseMapHook: Input and output of the postResponseMap script hook.
7657
+ schemaValidation: Record entering a ToolImport's input or output schema validation.
7658
+ tool: Composed ToolImport input and output. The server resolves both groups.
7533
7659
  groupId:
7534
7660
  type: string
7535
- description: Batch id from the `execution-log` entry.
7661
+ description: |-
7662
+ Batch id from the execution-log entry. Required unless `stage` is `tool`,
7663
+ in which case it is ignored.
7536
7664
  examples:
7537
7665
  - g_5f8d43a1b9e5a80011a35f2d
7538
7666
  recordId:
@@ -7540,11 +7668,29 @@ components:
7540
7668
  description: Record id from the `execution-log` entry.
7541
7669
  examples:
7542
7670
  - r_0001
7671
+ _toolImportId:
7672
+ type: string
7673
+ format: objectId
7674
+ description: |-
7675
+ Outermost ToolImport id, used with `stage: tool`. Set it equal to `_expOrImpId`
7676
+ for the outermost Tool; omit it for a nested ToolImport, where `_expOrImpId` is
7677
+ the inner id. A value that differs from `_expOrImpId` is rejected with 400.
7678
+ examples:
7679
+ - 60a2c4e6f321d800129a1a3c
7543
7680
  required:
7544
7681
  - _expOrImpId
7545
7682
  - stage
7546
- - groupId
7547
7683
  - recordId
7684
+ if:
7685
+ properties:
7686
+ stage:
7687
+ const: tool
7688
+ required:
7689
+ - stage
7690
+ then: {}
7691
+ else:
7692
+ required:
7693
+ - groupId
7548
7694
  ExecutionLogDataResponse:
7549
7695
  type: object
7550
7696
  description: |-
@@ -7552,8 +7698,9 @@ components:
7552
7698
  `POST /v1/flows/{_id}/jobs/{_jobId}/logs/data/query`.
7553
7699
 
7554
7700
  The payload inside `logs[].log` is stage-specific. For `apiCall`, it contains decoded request + response
7555
- bodies, headers, status, and duration. For script-hook stages (`preMap`, `postMap`, …), it contains
7556
- whatever the hook pushed via `options.logs.push(...)`, and is empty (`logs: []`) when the hook did not log.
7701
+ bodies, headers, status, and duration. For script-hook stages (`preMapHook`, `postMapHook`, …), it
7702
+ contains the hook's `input`, `output`, and `errors`. `logs` is empty when nothing was stored for the stage.
7703
+ For `stage: tool`, `logs[].log` is the composed ToolImport input and output described below.
7557
7704
  properties:
7558
7705
  logs:
7559
7706
  type: array
@@ -7563,13 +7710,48 @@ components:
7563
7710
  properties:
7564
7711
  log:
7565
7712
  type: object
7566
- description: The stage payload. Fields vary by the requested stage.
7713
+ description: 'Stage payload. Fields vary by the requested stage; the properties below apply to `stage: tool`.'
7714
+ properties:
7715
+ stage:
7716
+ type: string
7717
+ description: Stage that produced this payload.
7718
+ examples:
7719
+ - tool
7720
+ recordId:
7721
+ type: string
7722
+ description: Record the payload belongs to.
7723
+ examples:
7724
+ - rtool001
7725
+ groupId:
7726
+ type: string
7727
+ description: Input-side group of the ToolImport.
7728
+ examples:
7729
+ - g1in0001
7730
+ outputGroupId:
7731
+ type: string
7732
+ description: Output-side group of the ToolImport. Absent until the output pass completes.
7733
+ examples:
7734
+ - g1out001
7735
+ input:
7736
+ description: Record entering the Tool.
7737
+ output:
7738
+ description: Record entering output validation. Absent until the output pass completes.
7567
7739
  additionalProperties: true
7740
+ externalReference:
7741
+ type: array
7742
+ description: |-
7743
+ Replaces an inline field whose payload exceeds the size limit. For `stage: tool`,
7744
+ each entry's `target` is `input` or `output`.
7745
+ items:
7746
+ type: object
7747
+ additionalProperties: true
7568
7748
  errors:
7569
7749
  type: array
7570
7750
  description: |-
7571
7751
  Query-scoped errors. Some adaptors (e.g. NetSuiteDistributedImport) attach the actual failure here rather
7572
- than inside `logs[].log.errors`. Empty on success.
7752
+ than inside `logs[].log.errors`. For `stage: tool` on an outermost ToolImport, failures
7753
+ from any step inside the Tool are listed here, even when `logs` is empty; a nested
7754
+ ToolImport returns `[]`. Empty on success.
7573
7755
  items:
7574
7756
  type: object
7575
7757
  additionalProperties: true
package/dist/tool.yml CHANGED
@@ -1725,13 +1725,16 @@ paths:
1725
1725
  array. Large payloads are not inlined — the entry carries an `externalReference` whose
1726
1726
  `s3Key` you pass to the signed-URL endpoint.
1727
1727
 
1728
- For nested Tools, set `stage` to `tool` with the nested ToolImport id to fetch the
1729
- composed input/output payload.
1728
+ For a nested Tool, set `stage` to `tool` and `_expOrImpId` to the nested ToolImport
1729
+ id. `groupId` is ignored. `logs[].log.input` is the record entering the nested Tool
1730
+ and `logs[].log.output` is the record entering output validation; `output` is omitted
1731
+ when that bubble has not completed.
1730
1732
 
1731
1733
  When the invocation is missing or not visible under the caller's integration ACL,
1732
1734
  the endpoint returns `204 No Content`. `404` applies only to an unknown or inaccessible
1733
- Tool `_id`. A malformed `executionId` returns `422`, and a body missing any of the four
1734
- selector keys returns `400`. Sandbox Tools return `403`.
1735
+ Tool `_id`. A malformed `executionId` returns `422`, and a body missing a required
1736
+ selector returns `400` (`groupId` is required for every stage except `tool`). Sandbox
1737
+ Tools return `403`.
1735
1738
  parameters:
1736
1739
  - name: _id
1737
1740
  in: path
@@ -1778,7 +1781,6 @@ paths:
1778
1781
  value:
1779
1782
  _expOrImpId: 67ee026136f4d1eeb529ad63
1780
1783
  stage: tool
1781
- groupId: g-12345
1782
1784
  recordId: r-67890
1783
1785
  responses:
1784
1786
  '200':
@@ -1811,6 +1813,20 @@ paths:
1811
1813
  value:
1812
1814
  logs: []
1813
1815
  errors: []
1816
+ nestedTool:
1817
+ summary: Nested Tool composed input and output
1818
+ value:
1819
+ logs:
1820
+ - log:
1821
+ _expOrImpId: 67ee026136f4d1eeb529ad63
1822
+ stage: tool
1823
+ input:
1824
+ record:
1825
+ orderId: SO-1043
1826
+ output:
1827
+ record:
1828
+ orderId: SO-1043
1829
+ errors: []
1814
1830
  '204':
1815
1831
  description: Invocation not found or not visible under the caller's integration ACL.
1816
1832
  '400':
@@ -1820,11 +1836,12 @@ paths:
1820
1836
  schema:
1821
1837
  $ref: '#/components/schemas/Error'
1822
1838
  examples:
1823
- missing_selector:
1839
+ missing_group_id:
1840
+ summary: Non-tool stage sent without groupId
1824
1841
  value:
1825
1842
  errors:
1826
1843
  - code: missing_required_field
1827
- message: _expOrImpId, stage, groupId, recordId is required.
1844
+ message: groupId is required.
1828
1845
  '401':
1829
1846
  $ref: '#/components/responses/401-unauthorized'
1830
1847
  '403':
@@ -37172,12 +37189,22 @@ components:
37172
37189
  description: |-
37173
37190
  Selector for one stored payload within a Tool invocation. Copy `_expOrImpId`,
37174
37191
  `groupId`, and `recordId` from a step on the trace-metadata response and name the
37175
- `stage` whose payload you want.
37192
+ `stage` whose payload you want. When `stage` is `tool`, `groupId` is not required
37193
+ and is ignored — send the nested ToolImport id as `_expOrImpId` and the `recordId`.
37176
37194
  required:
37177
37195
  - _expOrImpId
37178
37196
  - stage
37179
- - groupId
37180
37197
  - recordId
37198
+ if:
37199
+ properties:
37200
+ stage:
37201
+ const: tool
37202
+ required:
37203
+ - stage
37204
+ then: {}
37205
+ else:
37206
+ required:
37207
+ - groupId
37181
37208
  properties:
37182
37209
  _expOrImpId:
37183
37210
  type: string
@@ -37200,7 +37227,9 @@ components:
37200
37227
  - tool
37201
37228
  groupId:
37202
37229
  type: string
37203
- description: Group identifier of the step record.
37230
+ description: |-
37231
+ Group identifier of the step record. Required for every stage except `tool`,
37232
+ where it is ignored.
37204
37233
  examples:
37205
37234
  - YYFuqOqC
37206
37235
  recordId:
@@ -37251,6 +37280,12 @@ components:
37251
37280
  examples:
37252
37281
  - schemaValidation
37253
37282
  - responseMapping
37283
+ - tool
37284
+ _expOrImpId:
37285
+ type: string
37286
+ description: 'Nested ToolImport id from the selector. Present only for `stage: tool`.'
37287
+ examples:
37288
+ - 67ee026136f4d1eeb529ad63
37254
37289
  toolStage:
37255
37290
  type:
37256
37291
  - string
@@ -37266,11 +37301,14 @@ components:
37266
37301
  description: |-
37267
37302
  Data the stage received. For the input and output bubbles this is
37268
37303
  `{record}`; for a lookup step's `responseMapping` stage it is the lookup
37269
- response envelope (`statusCode`, `data`, `errors`).
37304
+ response envelope (`statusCode`, `data`, `errors`). For `stage: tool`
37305
+ this is the nested Tool's input-bubble payload.
37270
37306
  output:
37271
37307
  type: object
37272
37308
  additionalProperties: true
37273
- description: Data the stage produced, as `{record}`.
37309
+ description: |-
37310
+ Data the stage produced, as `{record}`. For `stage: tool` this is the
37311
+ output-bubble payload and is omitted until that bubble completes.
37274
37312
  errors:
37275
37313
  type: array
37276
37314
  description: Errors the stage raised for this record; empty on success.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celigo/api-specs",
3
- "version": "0.2.2-IO-168454-EPIC-fb",
3
+ "version": "0.2.3-IO-168454-EPIC-fb",
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": "4a10a43",
5
- "generatedAt": "2026-09-29"
4
+ "iasCommit": "8f1412c",
5
+ "generatedAt": "2026-09-30"
6
6
  },
7
7
  "roots": {
8
8
  "aiagent": 133,