@celigo/api-specs 0.2.2 → 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.
Files changed (44) hide show
  1. package/README.md +71 -80
  2. package/dist/account.yml +201 -3
  3. package/dist/agent.yml +7 -0
  4. package/dist/ai-agent.yml +587 -122
  5. package/dist/api.yml +5954 -127
  6. package/dist/apim.yml +0 -4
  7. package/dist/asynchelper.yml +117 -22
  8. package/dist/audit.yml +41 -2
  9. package/dist/bartendertemplate.yml +508 -0
  10. package/dist/connection.yml +1166 -125
  11. package/dist/ediprofile.yml +7 -0
  12. package/dist/editransaction.yml +250 -14
  13. package/dist/enduser.yml +5778 -35
  14. package/dist/export.yml +1028 -983
  15. package/dist/filedefinition.yml +37 -0
  16. package/dist/filedefinitionrules.yml +722 -0
  17. package/dist/fileserver.yml +1316 -0
  18. package/dist/filestorage.yml +712 -330
  19. package/dist/flow.yml +359 -98
  20. package/dist/guardrail.yml +280 -489
  21. package/dist/httpconnectorendpoint.yml +602 -126
  22. package/dist/httpconnectorresource.yml +1160 -84
  23. package/dist/iclient.yml +131 -76
  24. package/dist/import.yml +1937 -236
  25. package/dist/integration.yml +1024 -42
  26. package/dist/job.yml +180 -92
  27. package/dist/lookupcache.yml +7 -0
  28. package/dist/marketplace.yml +285 -105
  29. package/dist/mcp-server.yml +6745 -68
  30. package/dist/notification.yml +33 -8
  31. package/dist/processor.yml +8 -3
  32. package/dist/recyclebin.yml +32 -2
  33. package/dist/script.yml +7 -0
  34. package/dist/stack.yml +642 -5
  35. package/dist/storagequery.yml +865 -0
  36. package/dist/subscription.yml +254 -58
  37. package/dist/sync.yml +383 -72
  38. package/dist/template.yml +39 -1
  39. package/dist/tool.yml +6135 -2240
  40. package/dist/topic.yml +1783 -0
  41. package/dist/tradingpartnerconnector.yml +10 -0
  42. package/dist/user.yml +238 -32
  43. package/package.json +13 -1
  44. package/schemas.json +2346 -1885
package/dist/flow.yml CHANGED
@@ -63,10 +63,14 @@ paths:
63
63
  - name: name
64
64
  in: query
65
65
  description: |-
66
- Filter by name — a substring match, not an exact match. An empty
67
- value is ignored.
66
+ Filter to flows whose name contains this value — a case-insensitive
67
+ substring match, not an exact match; regex metacharacters match
68
+ literally and surrounding whitespace is trimmed. An empty value is
69
+ ignored; a value longer than the maximum is rejected with 400
70
+ `invalid_query_param`.
68
71
  schema:
69
72
  type: string
73
+ maxLength: 150
70
74
  examples:
71
75
  - Order
72
76
  - name: disabled
@@ -166,7 +170,9 @@ paths:
166
170
  logging:
167
171
  mode: accountLevel
168
172
  '204':
169
- description: No flows exist in the account.
173
+ description: No flows match — the account has none, or the filters excluded every flow.
174
+ '400':
175
+ $ref: '#/components/responses/400-bad-request'
170
176
  '401':
171
177
  $ref: '#/components/responses/401-unauthorized'
172
178
  post:
@@ -181,11 +187,19 @@ paths:
181
187
  abstract/instance patterns, create the abstract flow first, then create instances with
182
188
  `_abstractFlowId`.
183
189
 
184
- When `_integrationId` is omitted, the flow is auto-assigned to the
190
+ When `_integrationId` is omitted or `null`, the flow is auto-assigned to the
185
191
  account's "Standalone flows" integration rather than left standalone.
186
192
  If that migration integration does not exist on the account, the
187
- request fails with `422 standalone_flows_not_supported`. Always pass an
188
- explicit `_integrationId`.
193
+ request fails with `422 standalone_flows_not_supported`. A value that is
194
+ not a well-formed ObjectId is rejected with `400 invalid_ref` before the
195
+ flow is validated, and an id that names no integration in the account
196
+ fails with `422 invalid_ref`. Always pass an explicit `_integrationId`.
197
+
198
+ `schedule` is validated on every write even when `disabled` is true, so a
199
+ disabled flow cannot be parked with a broken schedule: `422 invalid_value`
200
+ when the expression cannot be parsed into a schedule, `422
201
+ schedule_not_supported` when its runs would be less than a minute apart
202
+ (which is also what free text produces).
189
203
  operationId: createFlow
190
204
  tags:
191
205
  - Flows
@@ -2799,12 +2813,13 @@ paths:
2799
2813
  Returns one page of execution-log entries for a specific flow run — one entry per record-at-step
2800
2814
  (export or import). Entries carry the `(_expOrImpId, groupId, recordId, traceKey)` tuple needed to
2801
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`.
2802
2817
 
2803
2818
  Execution logs are populated only when the flow has logging enabled (either full `logMode` or the
2804
2819
  time-bounded `logging.debugUntil` debug window). Jobs older than the flow's log retention window will
2805
2820
  return an empty `logs` array.
2806
2821
 
2807
- 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
2808
2823
  entry and call `POST .../logs/data/query` with the corresponding `stage`. To stitch an
2809
2824
  export entry to its downstream imports, use the `traceKey` with
2810
2825
  `POST .../logs/metadata/query`.
@@ -2842,7 +2857,9 @@ paths:
2842
2857
  - name: _expOrImpId
2843
2858
  in: query
2844
2859
  required: false
2845
- 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.
2846
2863
  schema:
2847
2864
  type: string
2848
2865
  - name: traceKeyPrefix
@@ -2923,13 +2940,15 @@ paths:
2923
2940
  the source export plus its downstream imports.
2924
2941
 
2925
2942
  Pull the `_expOrImpId`, `groupId`, `recordId`, and (optionally) `traceKey` values from a
2926
- `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`.
2927
2945
 
2928
2946
  Pair this with `logs/data/query` to build a full per-record trace: this endpoint shows which
2929
2947
  steps were touched and timing; the data endpoint returns actual payloads. When
2930
2948
  `duplicateTraceKey` is `true`, the traceKey was seen on more than one record in the job, so
2931
2949
  results may mix records from retries or fan-out. Without `traceKey` in the request,
2932
- `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.
2933
2952
  parameters:
2934
2953
  - name: _id
2935
2954
  in: path
@@ -2967,6 +2986,12 @@ paths:
2967
2986
  groupId: 1WsTiyxQ
2968
2987
  recordId: CMeN0hDc
2969
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
2970
2995
  responses:
2971
2996
  '200':
2972
2997
  description: Step metadata (or a trace across paired steps when `traceKey` was supplied).
@@ -2996,6 +3021,30 @@ paths:
2996
3021
  timeTaken: 1232
2997
3022
  startedAt: '2026-04-23 02:51:51.111'
2998
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'
2999
3048
  single_step:
3000
3049
  summary: Response when the request omitted `traceKey`
3001
3050
  value:
@@ -3024,21 +3073,23 @@ paths:
3024
3073
  summary: Get per-stage execution log data for a record
3025
3074
  description: |-
3026
3075
  Returns the decoded log data (typically request/response bodies, transform input/output, or script
3027
- `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.
3028
3077
 
3029
3078
  Stages are bubble-kind specific. The most useful values:
3030
3079
  - **Export / Lookup:** `apiCall` (HTTP request+response for HTTP exports), `transformation`,
3031
- `outputFilter`, `responseMapping`.
3032
- - **Import:** `apiCall`, `mapping`, `inputFilter`, `responseTransformation`.
3080
+ `outputFilter`, `preSavePageHook`; lookups also `responseMapping`, `postResponseMapHook`.
3081
+ - **Import:** `apiCall`, `inputFilter`, `mapping`, `responseTransformation`, `preMapHook`,
3082
+ `postMapHook`, `postSubmitHook`.
3033
3083
  - **Router:** `routing` (branching decision).
3034
- - **Any:** the `function` name from a configured script hook (e.g. `preMap`, `postMap`, `postSubmit`,
3035
- `postResponseMap`, `preSavePage`) — populated only when the hook explicitly calls
3036
- `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.
3037
3089
 
3038
3090
  This is typically the terminal call in the drill-down sequence: `execution-logs` then
3039
3091
  `metadata/query` then `data/query`. For HTTP traces, set `stage: apiCall`. A 200 with
3040
- `logs: []` means the stage ran but produced no log entry — usually because a script did not
3041
- 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.
3042
3093
  parameters:
3043
3094
  - name: _id
3044
3095
  in: path
@@ -3070,13 +3121,20 @@ paths:
3070
3121
  groupId: 69e981ee18808f3e5ed1b2fd
3071
3122
  recordId: '0'
3072
3123
  stage: apiCall
3073
- post_map_script:
3074
- 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
3075
3126
  value:
3076
3127
  _expOrImpId: 69a9aa5d3b213b3ac975e8d2
3077
3128
  groupId: 69e981ee18808f3e5ed1b2fd
3078
3129
  recordId: '0'
3079
- 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
3080
3138
  responses:
3081
3139
  '200':
3082
3140
  description: Log entries for the requested `(step, stage)`.
@@ -3100,8 +3158,23 @@ paths:
3100
3158
  response:
3101
3159
  statusCode: 200
3102
3160
  errors: []
3103
- empty_no_hook_output:
3104
- 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
3105
3178
  value:
3106
3179
  logs: []
3107
3180
  errors: []
@@ -4673,7 +4746,11 @@ components:
4673
4746
  - 66a1f2c3b4d5e6f7a8b9c0d1
4674
4747
  schedule:
4675
4748
  type: string
4676
- description: Override the export's schedule
4749
+ description: |-
4750
+ Replaces the page generator's schedule for this instance, in the same
4751
+ Celigo 6-field cron format as the flow-level `schedule`. Parsed on every
4752
+ write regardless of `disabled`; an unparseable expression fails with
4753
+ `422 invalid_value` at `overrides.exports[i].schedule`.
4677
4754
  examples:
4678
4755
  - '? 5 0,4,8,12,16,20 ? * *'
4679
4756
  skipRetries:
@@ -5154,15 +5231,20 @@ components:
5154
5231
  format: objectId
5155
5232
  x-celigo-refModel: integrations
5156
5233
  description: |-
5157
- Integration this flow belongs to. Omitting it on create no longer
5158
- produces a standalone flow — the flow is auto-assigned to the
5159
- account's "Standalone flows" integration (or the create fails with
5160
- `422 standalone_flows_not_supported` when that integration is
5161
- missing). Always set it explicitly.
5234
+ Integration this flow belongs to. Omitting it (or sending `null`) on
5235
+ create no longer produces a standalone flow — the flow is auto-assigned
5236
+ to the account's "Standalone flows" integration (or the create fails
5237
+ with `422 standalone_flows_not_supported` when that integration is
5238
+ missing). A value that is not a well-formed ObjectId is rejected with
5239
+ `400 invalid_ref` rather than auto-assigned. Always set it explicitly.
5162
5240
  examples:
5163
5241
  - 60a2c4e6f321d800129a1a3c
5164
5242
  x-celigo-ai-guidance:
5165
5243
  - To move the flow to a different integration, PUT with a changed _integrationId AND remove _flowGroupingId (flow groups are per-integration; a stale value is rejected with 422 flowgrouping_not_belong). The platform registers the flow's step connections in the target integration on save.
5244
+ - |-
5245
+ Send a real integration id: a malformed value fails with 400 `invalid_ref`
5246
+ ("Please provide a valid _integrationId."), and a well-formed id that names
5247
+ no integration in the account fails with 422 `invalid_ref`.
5166
5248
  schedule:
5167
5249
  type:
5168
5250
  - string
@@ -5170,13 +5252,24 @@ components:
5170
5252
  description: |-
5171
5253
  Celigo 6-field cron expression: `? minute hour day-of-month month day-of-week`.
5172
5254
  Explicit minute/hour lists, ranges, wildcards, and step forms (`*/N`) are all valid.
5173
- Leave empty for event-driven or webhook-triggered flows.
5255
+ Leave empty for event-driven or webhook-triggered flows. Validated on every
5256
+ write, including while `disabled` is true, so a flow cannot be parked disabled
5257
+ with a broken schedule: `422 invalid_value` when the expression cannot be parsed
5258
+ into a schedule (for example all wildcards, `? * * ? * *`), `422
5259
+ schedule_not_supported` when its runs would be less than a minute apart — which
5260
+ is also what free text such as `every 5 minutes` produces.
5174
5261
  x-celigo-ai-guidance:
5175
5262
  - |-
5176
5263
  Build `schedule` as a Celigo 6-field cron:
5177
5264
  `? minute hour day-of-month month day-of-week`.
5178
5265
  The seconds field is always `?`; day-of-month is usually `?`, month `*`,
5179
5266
  and day-of-week `*` (or specific days, 0=Sun..6=Sat).
5267
+ - |-
5268
+ Disabling a flow does not bypass schedule validation: POST, PUT, and PATCH
5269
+ all reject free text or a sub-minute expression (`not a cron`, `* * * * * *`)
5270
+ with 422 `schedule_not_supported`, and an expression that parses to no
5271
+ schedule (`? * * ? * *`) with 422 `invalid_value`. Fix or clear the schedule
5272
+ instead of disabling the flow to get past the error.
5180
5273
  - |-
5181
5274
  Prefer explicit lists when AUTHORING a schedule — hourly or longer:
5182
5275
  minute `5` with an explicit hour list
@@ -5333,10 +5426,18 @@ components:
5333
5426
  - false
5334
5427
  autoResolveMatchingTraceKeys:
5335
5428
  type: boolean
5336
- description: When true, new errors with trace keys matching existing open errors are auto-resolved.
5429
+ default: true
5430
+ description: |-
5431
+ When true, a new error for a record whose trace key already has open errors on the same step
5432
+ auto-resolves the older ones, a later success for that record auto-resolves its open errors,
5433
+ and errors classified `intermittent` are retried automatically — up to four attempts, the
5434
+ first about 30 minutes after the error.
5337
5435
  examples:
5338
5436
  - true
5339
5437
  - false
5438
+ x-celigo-ai-guidance:
5439
+ - Both behaviors hang off this one flag — off means repeated failures of a record stay open and intermittent errors get no automatic retries; never turn it off as a fix for "duplicate" errors (those come from the destination, not from trace keys).
5440
+ - Intermittent auto-retry does not depend on the trace key — errors with a blank trace key are scheduled and retried the same way; a blank key only loses the duplicate collapse.
5340
5441
  isAbstract:
5341
5442
  type: boolean
5342
5443
  description: |-
@@ -5632,17 +5733,6 @@ components:
5632
5733
  description: Source resource this flow was cloned or installed from.
5633
5734
  examples:
5634
5735
  - 60a2c4e6f321d800129a1a3c
5635
- Request:
5636
- type: object
5637
- description: |-
5638
- Fields for creating or updating a flow.
5639
-
5640
- Use `pageProcessors` for simple linear flows or `routers` for conditional branching — never
5641
- include both. The `schedule` field uses Celigo's 6-field cron format (not standard 5-field).
5642
- required:
5643
- - name
5644
- allOf:
5645
- - $ref: '#/components/schemas/FlowBase'
5646
5736
  Error:
5647
5737
  type: object
5648
5738
  description: Standard error response envelope returned by integrator.io APIs.
@@ -5683,6 +5773,17 @@ components:
5683
5773
  - message
5684
5774
  required:
5685
5775
  - errors
5776
+ Request:
5777
+ type: object
5778
+ description: |-
5779
+ Fields for creating or updating a flow.
5780
+
5781
+ Use `pageProcessors` for simple linear flows or `routers` for conditional branching — never
5782
+ include both. The `schedule` field uses Celigo's 6-field cron format (not standard 5-field).
5783
+ required:
5784
+ - name
5785
+ allOf:
5786
+ - $ref: '#/components/schemas/FlowBase'
5686
5787
  JsonPatchOperation:
5687
5788
  type: object
5688
5789
  description: A single JSON Patch operation (RFC 6902).
@@ -6102,13 +6203,18 @@ components:
6102
6203
  classification:
6103
6204
  type: string
6104
6205
  description: |-
6105
- Category assigned by the platform (or a user) to this error — drives auto-retry and reporting.
6106
- Empty when unclassified.
6206
+ Category the platform derives from the error's code, message, and source — read-only, never
6207
+ set by users; `intermittent` errors are retried automatically while the flow's
6208
+ `autoResolveMatchingTraceKeys` is on. Absent when nothing matched with confidence. The value
6209
+ set is the `classification` dimension of the errors filter metadata.
6107
6210
  examples:
6108
6211
  - intermittent
6212
+ x-celigo-ai-guidance:
6213
+ - Read the classification off the record; never infer it from the message text — the classifier is heuristic and identical messages can classify differently.
6214
+ - There is no setting, mapping, hook, or API that changes a classification; a wrong one is a Celigo Support matter.
6109
6215
  classifiedBy:
6110
6216
  type: string
6111
- description: '`auto` when the platform classified it, or a user id / email when a human did.'
6217
+ description: '`auto` on every classified error; absent on unclassified ones.'
6112
6218
  examples:
6113
6219
  - auto
6114
6220
  reqAndResKey:
@@ -6140,11 +6246,14 @@ components:
6140
6246
  type: string
6141
6247
  format: date-time
6142
6248
  description: |-
6143
- When the platform is scheduled to auto-retry this error. Populated on `classification:
6144
- intermittent` errors (the platform retries with exponential backoff up to a cap). Absent on
6145
- errors that won't be auto-retried.
6249
+ Present while the platform is auto-retrying this `intermittent` error. On a first-occurrence
6250
+ error it is stamped about a minute after `occurredAt` and is not the first attempt time (that
6251
+ runs roughly 30 minutes out); on the error a failed attempt opens, it is the next scheduled
6252
+ attempt. Absent once the attempts are exhausted and on errors that are not auto-retried.
6146
6253
  examples:
6147
6254
  - '2026-01-15T09:35:00.000Z'
6255
+ x-celigo-ai-guidance:
6256
+ - Presence answers "is this error in auto-retry mode?"; the value is a real schedule only after at least one attempt has run.
6148
6257
  tags:
6149
6258
  type:
6150
6259
  - array
@@ -6700,15 +6809,29 @@ components:
6700
6809
  triggeredBy:
6701
6810
  type: string
6702
6811
  readOnly: true
6703
- description: Who/what triggered the job (free-form string).
6812
+ description: |-
6813
+ What started the run. On a `flow` job: `system` for a scheduled run, the `_id` of
6814
+ the user who ran the flow, or the `_id` of the upstream flow whose `_runNextFlowIds`
6815
+ chained into this one; absent on event-driven runs (webhook, real-time listener, and
6816
+ stream page generators), which the inbound event starts. On a `retry` job: `auto`
6817
+ for the platform's automatic intermittent-error retry, otherwise the `_id` of the
6818
+ user who submitted the retry. Absent on `export` and `import` child jobs — the
6819
+ parent flow job carries it.
6704
6820
  examples:
6705
- - scheduler
6821
+ - system
6706
6822
  canceledBy:
6707
6823
  type: string
6708
6824
  readOnly: true
6709
- description: Who/what requested cancellation (free-form string).
6825
+ description: |-
6826
+ Who canceled the run: the `_id` of the user who requested the cancel, or `system` for
6827
+ every platform-initiated cancel — stuck-run recovery after a worker exit or crash or
6828
+ when a run stops making progress, stale-run cleanup, a scheduler that could not
6829
+ re-queue the run, and the cancels that follow deleting the flow or replacing one of
6830
+ its connections. The record does not say which of these it was.
6831
+ x-celigo-ai-guidance:
6832
+ - A `system` cancel is not something the user did and not a verdict on the flow's configuration, and by itself it does not prove the run was stuck — deleting the flow or replacing one of its connections cancels in-flight runs the same way; read the run's age and progress counters for that.
6710
6833
  examples:
6711
- - user
6834
+ - system
6712
6835
  flowExecutionGroupId:
6713
6836
  type: string
6714
6837
  readOnly: true
@@ -6721,6 +6844,7 @@ components:
6721
6844
  description: |
6722
6845
  Total number of errors produced by the job (including resolved ones).
6723
6846
  Use `numOpenError` for the count of currently unresolved errors.
6847
+ On a parent flow job this is the sum across every step; on a child job it is that step's count.
6724
6848
  examples:
6725
6849
  - 10
6726
6850
  numOpenError:
@@ -6746,13 +6870,20 @@ components:
6746
6870
  numSuccess:
6747
6871
  type: integer
6748
6872
  readOnly: true
6749
- description: Number of successful records/pages.
6873
+ description: |-
6874
+ Number of records processed successfully. On a parent flow job (`type: flow`) this is the
6875
+ sum across every step in the run, so one record that passes through an export and an import
6876
+ counts twice. On a child job (`type: export` or `import`) it is that step's count alone.
6877
+ For per-step counts, read the run with `GET /v1/jobs/{_id}/family` or list its children with
6878
+ `GET /v1/jobs?_flowJobId={_id}&type=import`.
6750
6879
  examples:
6751
6880
  - 10
6752
6881
  numIgnore:
6753
6882
  type: integer
6754
6883
  readOnly: true
6755
- description: Number of ignored records/pages.
6884
+ description: |-
6885
+ Number of records skipped, for example by an import's ignore-existing or ignore-missing rule.
6886
+ Summed across steps on a parent flow job; per step on a child job.
6756
6887
  examples:
6757
6888
  - 0
6758
6889
  numExport:
@@ -7247,6 +7378,10 @@ components:
7247
7378
 
7248
7379
  The tuple `(_expOrImpId, groupId, recordId)` uniquely identifies the record-at-step; `traceKey` groups
7249
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.
7250
7385
  properties:
7251
7386
  startedAt:
7252
7387
  type: string
@@ -7277,17 +7412,25 @@ components:
7277
7412
  description: Id of the export or import step that produced this entry.
7278
7413
  examples:
7279
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
7280
7423
  status:
7281
7424
  type: string
7282
7425
  description: Outcome of this step for this record.
7283
7426
  enum:
7284
7427
  - success
7285
7428
  - error
7286
- - ignored
7429
+ - ignore
7287
7430
  x-enumDescriptions:
7288
7431
  success: The record was processed successfully at this step.
7289
7432
  error: The record encountered an error during processing.
7290
- ignored: The record was skipped by a filter or routing rule.
7433
+ ignore: The record was skipped by a filter or routing rule.
7291
7434
  timeTaken:
7292
7435
  type: integer
7293
7436
  description: Milliseconds spent processing this record at this step.
@@ -7330,7 +7473,7 @@ components:
7330
7473
  - 60a2c4e6f321d800129a1a3c
7331
7474
  groupId:
7332
7475
  type: string
7333
- description: The `groupId` from the matching `execution-log` entry.
7476
+ description: The `groupId` from the matching execution-log entry. Ignored when `_toolImportId` is set.
7334
7477
  examples:
7335
7478
  - g_5f8d43a1b9e5a80011a35f2d
7336
7479
  recordId:
@@ -7338,6 +7481,14 @@ components:
7338
7481
  description: The `recordId` from the matching `execution-log` entry.
7339
7482
  examples:
7340
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
7341
7492
  traceKey:
7342
7493
  type: string
7343
7494
  description: |-
@@ -7347,11 +7498,20 @@ components:
7347
7498
  - ORD-100245
7348
7499
  required:
7349
7500
  - _expOrImpId
7350
- - groupId
7351
7501
  - recordId
7502
+ if:
7503
+ required:
7504
+ - _toolImportId
7505
+ then: {}
7506
+ else:
7507
+ required:
7508
+ - groupId
7352
7509
  ExecutionLogStep:
7353
7510
  type: object
7354
- 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.
7355
7515
  properties:
7356
7516
  _expOrImpId:
7357
7517
  type: string
@@ -7366,20 +7526,36 @@ components:
7366
7526
  - r_0001
7367
7527
  groupId:
7368
7528
  type: string
7369
- description: Opaque batch id.
7529
+ description: Opaque batch id. On a collapsed ToolImport step this is the input-side group.
7370
7530
  examples:
7371
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
7372
7548
  status:
7373
7549
  type: string
7374
7550
  description: Outcome at this step.
7375
7551
  enum:
7376
7552
  - success
7377
7553
  - error
7378
- - ignored
7554
+ - ignore
7379
7555
  x-enumDescriptions:
7380
7556
  success: The record was processed successfully at this step.
7381
7557
  error: The record encountered an error during processing.
7382
- ignored: The record was skipped by a filter or routing rule.
7558
+ ignore: The record was skipped by a filter or routing rule.
7383
7559
  timeTaken:
7384
7560
  type: integer
7385
7561
  description: Milliseconds spent at this step for this record.
@@ -7399,10 +7575,12 @@ components:
7399
7575
  type: string
7400
7576
  description: |-
7401
7577
  Pipeline stage at which this step entry was recorded. Observed values include `apiCall`
7402
- (the adaptor invocation itself). Useful for filtering metadata responses when a step has
7403
- 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.
7404
7581
  examples:
7405
7582
  - apiCall
7583
+ - schemaValidation
7406
7584
  ExecutionLogMetadataResponse:
7407
7585
  type: object
7408
7586
  description: |-
@@ -7421,10 +7599,12 @@ components:
7421
7599
  type: boolean
7422
7600
  description: |-
7423
7601
  `true` when the response contains a multi-step trace (i.e. the request supplied `traceKey` and paired
7424
- 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.
7425
7603
  steps:
7426
7604
  type: array
7427
- 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.
7428
7608
  items:
7429
7609
  $ref: '#/components/schemas/ExecutionLogStep'
7430
7610
  ExecutionLogDataRequest:
@@ -7441,26 +7621,46 @@ components:
7441
7621
  - 60a2c4e6f321d800129a1a3c
7442
7622
  stage:
7443
7623
  type: string
7444
- 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.
7445
7627
  enum:
7446
7628
  - apiCall
7447
- - preMap
7448
- - postMap
7449
- - postSubmit
7450
- - postResponseMap
7451
- - transform
7452
- - 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
7453
7643
  x-enumDescriptions:
7454
7644
  apiCall: Raw HTTP request and response from the adaptor invocation.
7455
- preMap: Data captured by the preMap script hook via options.logs.push().
7456
- postMap: Data captured by the postMap script hook via options.logs.push().
7457
- postSubmit: Data captured by the postSubmit script hook via options.logs.push().
7458
- postResponseMap: Data captured by the postResponseMap script hook via options.logs.push().
7459
- transform: Data captured during the transformation stage.
7460
- 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.
7461
7659
  groupId:
7462
7660
  type: string
7463
- 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.
7464
7664
  examples:
7465
7665
  - g_5f8d43a1b9e5a80011a35f2d
7466
7666
  recordId:
@@ -7468,11 +7668,29 @@ components:
7468
7668
  description: Record id from the `execution-log` entry.
7469
7669
  examples:
7470
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
7471
7680
  required:
7472
7681
  - _expOrImpId
7473
7682
  - stage
7474
- - groupId
7475
7683
  - recordId
7684
+ if:
7685
+ properties:
7686
+ stage:
7687
+ const: tool
7688
+ required:
7689
+ - stage
7690
+ then: {}
7691
+ else:
7692
+ required:
7693
+ - groupId
7476
7694
  ExecutionLogDataResponse:
7477
7695
  type: object
7478
7696
  description: |-
@@ -7480,8 +7698,9 @@ components:
7480
7698
  `POST /v1/flows/{_id}/jobs/{_jobId}/logs/data/query`.
7481
7699
 
7482
7700
  The payload inside `logs[].log` is stage-specific. For `apiCall`, it contains decoded request + response
7483
- bodies, headers, status, and duration. For script-hook stages (`preMap`, `postMap`, …), it contains
7484
- 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.
7485
7704
  properties:
7486
7705
  logs:
7487
7706
  type: array
@@ -7491,13 +7710,48 @@ components:
7491
7710
  properties:
7492
7711
  log:
7493
7712
  type: object
7494
- 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.
7495
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
7496
7748
  errors:
7497
7749
  type: array
7498
7750
  description: |-
7499
7751
  Query-scoped errors. Some adaptors (e.g. NetSuiteDistributedImport) attach the actual failure here rather
7500
- 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.
7501
7755
  items:
7502
7756
  type: object
7503
7757
  additionalProperties: true
@@ -7801,6 +8055,13 @@ components:
7801
8055
  description: Display name of the dependent resource.
7802
8056
  examples:
7803
8057
  - Import Orders to NetSuite
8058
+ type:
8059
+ type: string
8060
+ description: |-
8061
+ Sub-type of the dependent resource when its collection distinguishes one, such as
8062
+ `stream` for a listener export. Only present for resource types that carry a `type`.
8063
+ examples:
8064
+ - stream
7804
8065
  paths:
7805
8066
  type: array
7806
8067
  description: |-
@@ -7864,6 +8125,19 @@ components:
7864
8125
  export:
7865
8126
  - 64ff4b21612a134bd2f45534
7866
8127
  responses:
8128
+ 400-bad-request:
8129
+ description: |
8130
+ Bad request. The server could not understand the request because of malformed syntax or invalid parameters.
8131
+ content:
8132
+ application/json:
8133
+ schema:
8134
+ $ref: '#/components/schemas/Error'
8135
+ examples:
8136
+ default:
8137
+ value:
8138
+ errors:
8139
+ - code: invalid_request
8140
+ message: The request body failed validation.
7867
8141
  401-unauthorized:
7868
8142
  description: |-
7869
8143
  Unauthorized. The request lacks a valid bearer token, or the provided token
@@ -7898,19 +8172,6 @@ components:
7898
8172
  summary: Bearer token invalid or revoked
7899
8173
  value:
7900
8174
  message: Bearer Authentication Failed
7901
- 400-bad-request:
7902
- description: |
7903
- Bad request. The server could not understand the request because of malformed syntax or invalid parameters.
7904
- content:
7905
- application/json:
7906
- schema:
7907
- $ref: '#/components/schemas/Error'
7908
- examples:
7909
- default:
7910
- value:
7911
- errors:
7912
- - code: invalid_request
7913
- message: The request body failed validation.
7914
8175
  422-unprocessable-entity:
7915
8176
  description: |
7916
8177
  Unprocessable entity. The request was well-formed but was unable to be followed due to semantic errors.