@celigo/api-specs 0.2.1 → 0.2.2-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 +627 -135
  5. package/dist/api.yml +5953 -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 +169 -63
  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 +6099 -2242
  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
@@ -4079,8 +4093,10 @@ components:
4079
4093
 
4080
4094
  - **Lookup steps**: `{"statusCode": 200, "data": [<result records>],
4081
4095
  "errors": []}` — `data` holds the records the lookup returned, so
4082
- extracts must start from it (e.g. `data[0].name`). A bare result-record
4083
- field name (e.g. `name`) resolves to nothing and merges nothing.
4096
+ extracts must start from it: `data[0].name` copies a field of the
4097
+ first result, `data` copies the whole result array. A bare
4098
+ result-record field name (e.g. `name`) resolves to nothing and merges
4099
+ nothing.
4084
4100
  - **Import steps**: `{"id": "<destination record id>", "statusCode": 200,
4085
4101
  "ignored": false, "errors": [], "_json": <raw destination response>}` —
4086
4102
  use `id` for the destination-assigned id and `_json.<path>` for fields
@@ -4100,11 +4116,26 @@ components:
4100
4116
  responseMapping is fully replaced on PUT: omitting it resets the step
4101
4117
  to empty `{"fields": [], "lists": []}`. Always send the complete
4102
4118
  intended mapping for every step.
4119
+ - |-
4120
+ To carry several lookup results onto the record, use `extract: "data"`
4121
+ (the whole result array) or a `lists` entry whose extracts use
4122
+ `data[*].x` — never `data[*].x` in `fields[].extract`, which merges
4123
+ nothing: the record simply never gains the field.
4103
4124
  examples:
4104
4125
  - fields:
4105
4126
  - extract: id
4106
4127
  generate: ContactId
4107
4128
  lists: []
4129
+ - fields:
4130
+ - extract: data[0].customer.name
4131
+ generate: customerName
4132
+ lists:
4133
+ - generate: matchedOrders
4134
+ fields:
4135
+ - extract: data[*].id
4136
+ generate: orderId
4137
+ - extract: data[*].total
4138
+ generate: amount
4108
4139
  properties:
4109
4140
  fields:
4110
4141
  type: array
@@ -4119,13 +4150,17 @@ components:
4119
4150
  description: |
4120
4151
  Path within the canonical response envelope to copy the value
4121
4152
  from. For lookup steps, paths start from the envelope's `data`
4122
- array (`data[0].x` and `data.0.x` are equivalent); for import
4123
- steps, use the envelope fields `id`, `statusCode`, `ignored`,
4124
- or `_json.<path>` for the raw response body. Paths that skip
4125
- the envelope (bare response field names) resolve to nothing.
4153
+ array (`data[0].x` and `data.0.x` are equivalent; `data` alone
4154
+ copies every result); for import steps, use the envelope fields
4155
+ `id`, `statusCode`, `ignored`, or `_json.<path>` for the raw
4156
+ response body. Paths that skip the envelope (bare response
4157
+ field names) resolve to nothing, and a `[*]` wildcard is not
4158
+ honored here — `data[*].x` merges nothing; iterate arrays with
4159
+ `lists` instead.
4126
4160
  examples:
4127
4161
  - data[0].customer.name
4128
4162
  - data.0.fields.Product Name
4163
+ - data
4129
4164
  - id
4130
4165
  - _json.orderNumber
4131
4166
  generate:
@@ -4143,8 +4178,10 @@ components:
4143
4178
  description: |
4144
4179
  Array mappings that build a target array on the in-flight record
4145
4180
  from an array inside the response envelope — one output item per
4146
- response item. Not needed for one-to-many (fan-out) merge-back,
4147
- which uses plain field mappings.
4181
+ element of the array the item extracts mark with `[*]` (`data[*].x`
4182
+ for lookups, `_json.<arrayPath>[*].x` for imports); an empty source
4183
+ array yields an empty target array. Not needed for one-to-many
4184
+ (fan-out) merge-back, which uses plain field mappings.
4148
4185
  items:
4149
4186
  type: object
4150
4187
  properties:
@@ -4168,12 +4205,16 @@ components:
4168
4205
  extract:
4169
4206
  type: string
4170
4207
  description: |
4171
- Source field within each response-array item, relative
4172
- to the item itself.
4208
+ Full envelope path to the source value, with `[*]`
4209
+ marking the array to iterate — `data[*].productId` for a
4210
+ lookup, `_json.items[*].sku` for an import. A path without
4211
+ `[*]` (e.g. `statusCode`) repeats the same envelope value
4212
+ on every item; an item-relative name (`productId`)
4213
+ resolves to nothing and produces empty objects.
4173
4214
  examples:
4174
- - productId
4175
- - quantity
4176
- - price
4215
+ - data[*].productId
4216
+ - data[*].quantity
4217
+ - _json.items[*].sku
4177
4218
  generate:
4178
4219
  type: string
4179
4220
  description: Target field within each mapped array item.
@@ -4646,7 +4687,11 @@ components:
4646
4687
  - 66a1f2c3b4d5e6f7a8b9c0d1
4647
4688
  schedule:
4648
4689
  type: string
4649
- description: Override the export's schedule
4690
+ description: |-
4691
+ Replaces the page generator's schedule for this instance, in the same
4692
+ Celigo 6-field cron format as the flow-level `schedule`. Parsed on every
4693
+ write regardless of `disabled`; an unparseable expression fails with
4694
+ `422 invalid_value` at `overrides.exports[i].schedule`.
4650
4695
  examples:
4651
4696
  - '? 5 0,4,8,12,16,20 ? * *'
4652
4697
  skipRetries:
@@ -5127,15 +5172,20 @@ components:
5127
5172
  format: objectId
5128
5173
  x-celigo-refModel: integrations
5129
5174
  description: |-
5130
- Integration this flow belongs to. Omitting it on create no longer
5131
- produces a standalone flow — the flow is auto-assigned to the
5132
- account's "Standalone flows" integration (or the create fails with
5133
- `422 standalone_flows_not_supported` when that integration is
5134
- missing). Always set it explicitly.
5175
+ Integration this flow belongs to. Omitting it (or sending `null`) on
5176
+ create no longer produces a standalone flow — the flow is auto-assigned
5177
+ to the account's "Standalone flows" integration (or the create fails
5178
+ with `422 standalone_flows_not_supported` when that integration is
5179
+ missing). A value that is not a well-formed ObjectId is rejected with
5180
+ `400 invalid_ref` rather than auto-assigned. Always set it explicitly.
5135
5181
  examples:
5136
5182
  - 60a2c4e6f321d800129a1a3c
5137
5183
  x-celigo-ai-guidance:
5138
5184
  - 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.
5185
+ - |-
5186
+ Send a real integration id: a malformed value fails with 400 `invalid_ref`
5187
+ ("Please provide a valid _integrationId."), and a well-formed id that names
5188
+ no integration in the account fails with 422 `invalid_ref`.
5139
5189
  schedule:
5140
5190
  type:
5141
5191
  - string
@@ -5143,13 +5193,24 @@ components:
5143
5193
  description: |-
5144
5194
  Celigo 6-field cron expression: `? minute hour day-of-month month day-of-week`.
5145
5195
  Explicit minute/hour lists, ranges, wildcards, and step forms (`*/N`) are all valid.
5146
- Leave empty for event-driven or webhook-triggered flows.
5196
+ Leave empty for event-driven or webhook-triggered flows. Validated on every
5197
+ write, including while `disabled` is true, so a flow cannot be parked disabled
5198
+ with a broken schedule: `422 invalid_value` when the expression cannot be parsed
5199
+ into a schedule (for example all wildcards, `? * * ? * *`), `422
5200
+ schedule_not_supported` when its runs would be less than a minute apart — which
5201
+ is also what free text such as `every 5 minutes` produces.
5147
5202
  x-celigo-ai-guidance:
5148
5203
  - |-
5149
5204
  Build `schedule` as a Celigo 6-field cron:
5150
5205
  `? minute hour day-of-month month day-of-week`.
5151
5206
  The seconds field is always `?`; day-of-month is usually `?`, month `*`,
5152
5207
  and day-of-week `*` (or specific days, 0=Sun..6=Sat).
5208
+ - |-
5209
+ Disabling a flow does not bypass schedule validation: POST, PUT, and PATCH
5210
+ all reject free text or a sub-minute expression (`not a cron`, `* * * * * *`)
5211
+ with 422 `schedule_not_supported`, and an expression that parses to no
5212
+ schedule (`? * * ? * *`) with 422 `invalid_value`. Fix or clear the schedule
5213
+ instead of disabling the flow to get past the error.
5153
5214
  - |-
5154
5215
  Prefer explicit lists when AUTHORING a schedule — hourly or longer:
5155
5216
  minute `5` with an explicit hour list
@@ -5306,10 +5367,18 @@ components:
5306
5367
  - false
5307
5368
  autoResolveMatchingTraceKeys:
5308
5369
  type: boolean
5309
- description: When true, new errors with trace keys matching existing open errors are auto-resolved.
5370
+ default: true
5371
+ description: |-
5372
+ When true, a new error for a record whose trace key already has open errors on the same step
5373
+ auto-resolves the older ones, a later success for that record auto-resolves its open errors,
5374
+ and errors classified `intermittent` are retried automatically — up to four attempts, the
5375
+ first about 30 minutes after the error.
5310
5376
  examples:
5311
5377
  - true
5312
5378
  - false
5379
+ x-celigo-ai-guidance:
5380
+ - 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).
5381
+ - 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.
5313
5382
  isAbstract:
5314
5383
  type: boolean
5315
5384
  description: |-
@@ -5605,17 +5674,6 @@ components:
5605
5674
  description: Source resource this flow was cloned or installed from.
5606
5675
  examples:
5607
5676
  - 60a2c4e6f321d800129a1a3c
5608
- Request:
5609
- type: object
5610
- description: |-
5611
- Fields for creating or updating a flow.
5612
-
5613
- Use `pageProcessors` for simple linear flows or `routers` for conditional branching — never
5614
- include both. The `schedule` field uses Celigo's 6-field cron format (not standard 5-field).
5615
- required:
5616
- - name
5617
- allOf:
5618
- - $ref: '#/components/schemas/FlowBase'
5619
5677
  Error:
5620
5678
  type: object
5621
5679
  description: Standard error response envelope returned by integrator.io APIs.
@@ -5656,6 +5714,17 @@ components:
5656
5714
  - message
5657
5715
  required:
5658
5716
  - errors
5717
+ Request:
5718
+ type: object
5719
+ description: |-
5720
+ Fields for creating or updating a flow.
5721
+
5722
+ Use `pageProcessors` for simple linear flows or `routers` for conditional branching — never
5723
+ include both. The `schedule` field uses Celigo's 6-field cron format (not standard 5-field).
5724
+ required:
5725
+ - name
5726
+ allOf:
5727
+ - $ref: '#/components/schemas/FlowBase'
5659
5728
  JsonPatchOperation:
5660
5729
  type: object
5661
5730
  description: A single JSON Patch operation (RFC 6902).
@@ -6075,13 +6144,18 @@ components:
6075
6144
  classification:
6076
6145
  type: string
6077
6146
  description: |-
6078
- Category assigned by the platform (or a user) to this error — drives auto-retry and reporting.
6079
- Empty when unclassified.
6147
+ Category the platform derives from the error's code, message, and source — read-only, never
6148
+ set by users; `intermittent` errors are retried automatically while the flow's
6149
+ `autoResolveMatchingTraceKeys` is on. Absent when nothing matched with confidence. The value
6150
+ set is the `classification` dimension of the errors filter metadata.
6080
6151
  examples:
6081
6152
  - intermittent
6153
+ x-celigo-ai-guidance:
6154
+ - Read the classification off the record; never infer it from the message text — the classifier is heuristic and identical messages can classify differently.
6155
+ - There is no setting, mapping, hook, or API that changes a classification; a wrong one is a Celigo Support matter.
6082
6156
  classifiedBy:
6083
6157
  type: string
6084
- description: '`auto` when the platform classified it, or a user id / email when a human did.'
6158
+ description: '`auto` on every classified error; absent on unclassified ones.'
6085
6159
  examples:
6086
6160
  - auto
6087
6161
  reqAndResKey:
@@ -6113,11 +6187,14 @@ components:
6113
6187
  type: string
6114
6188
  format: date-time
6115
6189
  description: |-
6116
- When the platform is scheduled to auto-retry this error. Populated on `classification:
6117
- intermittent` errors (the platform retries with exponential backoff up to a cap). Absent on
6118
- errors that won't be auto-retried.
6190
+ Present while the platform is auto-retrying this `intermittent` error. On a first-occurrence
6191
+ error it is stamped about a minute after `occurredAt` and is not the first attempt time (that
6192
+ runs roughly 30 minutes out); on the error a failed attempt opens, it is the next scheduled
6193
+ attempt. Absent once the attempts are exhausted and on errors that are not auto-retried.
6119
6194
  examples:
6120
6195
  - '2026-01-15T09:35:00.000Z'
6196
+ x-celigo-ai-guidance:
6197
+ - Presence answers "is this error in auto-retry mode?"; the value is a real schedule only after at least one attempt has run.
6121
6198
  tags:
6122
6199
  type:
6123
6200
  - array
@@ -6673,15 +6750,29 @@ components:
6673
6750
  triggeredBy:
6674
6751
  type: string
6675
6752
  readOnly: true
6676
- description: Who/what triggered the job (free-form string).
6753
+ description: |-
6754
+ What started the run. On a `flow` job: `system` for a scheduled run, the `_id` of
6755
+ the user who ran the flow, or the `_id` of the upstream flow whose `_runNextFlowIds`
6756
+ chained into this one; absent on event-driven runs (webhook, real-time listener, and
6757
+ stream page generators), which the inbound event starts. On a `retry` job: `auto`
6758
+ for the platform's automatic intermittent-error retry, otherwise the `_id` of the
6759
+ user who submitted the retry. Absent on `export` and `import` child jobs — the
6760
+ parent flow job carries it.
6677
6761
  examples:
6678
- - scheduler
6762
+ - system
6679
6763
  canceledBy:
6680
6764
  type: string
6681
6765
  readOnly: true
6682
- description: Who/what requested cancellation (free-form string).
6766
+ description: |-
6767
+ Who canceled the run: the `_id` of the user who requested the cancel, or `system` for
6768
+ every platform-initiated cancel — stuck-run recovery after a worker exit or crash or
6769
+ when a run stops making progress, stale-run cleanup, a scheduler that could not
6770
+ re-queue the run, and the cancels that follow deleting the flow or replacing one of
6771
+ its connections. The record does not say which of these it was.
6772
+ x-celigo-ai-guidance:
6773
+ - 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.
6683
6774
  examples:
6684
- - user
6775
+ - system
6685
6776
  flowExecutionGroupId:
6686
6777
  type: string
6687
6778
  readOnly: true
@@ -6694,6 +6785,7 @@ components:
6694
6785
  description: |
6695
6786
  Total number of errors produced by the job (including resolved ones).
6696
6787
  Use `numOpenError` for the count of currently unresolved errors.
6788
+ On a parent flow job this is the sum across every step; on a child job it is that step's count.
6697
6789
  examples:
6698
6790
  - 10
6699
6791
  numOpenError:
@@ -6719,13 +6811,20 @@ components:
6719
6811
  numSuccess:
6720
6812
  type: integer
6721
6813
  readOnly: true
6722
- description: Number of successful records/pages.
6814
+ description: |-
6815
+ Number of records processed successfully. On a parent flow job (`type: flow`) this is the
6816
+ sum across every step in the run, so one record that passes through an export and an import
6817
+ counts twice. On a child job (`type: export` or `import`) it is that step's count alone.
6818
+ For per-step counts, read the run with `GET /v1/jobs/{_id}/family` or list its children with
6819
+ `GET /v1/jobs?_flowJobId={_id}&type=import`.
6723
6820
  examples:
6724
6821
  - 10
6725
6822
  numIgnore:
6726
6823
  type: integer
6727
6824
  readOnly: true
6728
- description: Number of ignored records/pages.
6825
+ description: |-
6826
+ Number of records skipped, for example by an import's ignore-existing or ignore-missing rule.
6827
+ Summed across steps on a parent flow job; per step on a child job.
6729
6828
  examples:
6730
6829
  - 0
6731
6830
  numExport:
@@ -7774,6 +7873,13 @@ components:
7774
7873
  description: Display name of the dependent resource.
7775
7874
  examples:
7776
7875
  - Import Orders to NetSuite
7876
+ type:
7877
+ type: string
7878
+ description: |-
7879
+ Sub-type of the dependent resource when its collection distinguishes one, such as
7880
+ `stream` for a listener export. Only present for resource types that carry a `type`.
7881
+ examples:
7882
+ - stream
7777
7883
  paths:
7778
7884
  type: array
7779
7885
  description: |-
@@ -7837,6 +7943,19 @@ components:
7837
7943
  export:
7838
7944
  - 64ff4b21612a134bd2f45534
7839
7945
  responses:
7946
+ 400-bad-request:
7947
+ description: |
7948
+ Bad request. The server could not understand the request because of malformed syntax or invalid parameters.
7949
+ content:
7950
+ application/json:
7951
+ schema:
7952
+ $ref: '#/components/schemas/Error'
7953
+ examples:
7954
+ default:
7955
+ value:
7956
+ errors:
7957
+ - code: invalid_request
7958
+ message: The request body failed validation.
7840
7959
  401-unauthorized:
7841
7960
  description: |-
7842
7961
  Unauthorized. The request lacks a valid bearer token, or the provided token
@@ -7871,19 +7990,6 @@ components:
7871
7990
  summary: Bearer token invalid or revoked
7872
7991
  value:
7873
7992
  message: Bearer Authentication Failed
7874
- 400-bad-request:
7875
- description: |
7876
- Bad request. The server could not understand the request because of malformed syntax or invalid parameters.
7877
- content:
7878
- application/json:
7879
- schema:
7880
- $ref: '#/components/schemas/Error'
7881
- examples:
7882
- default:
7883
- value:
7884
- errors:
7885
- - code: invalid_request
7886
- message: The request body failed validation.
7887
7993
  422-unprocessable-entity:
7888
7994
  description: |
7889
7995
  Unprocessable entity. The request was well-formed but was unable to be followed due to semantic errors.