@celigo/api-specs 0.2.261 → 0.2.263

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/import.yml CHANGED
@@ -185,6 +185,20 @@ paths:
185
185
  x-celigo-refModel: imports
186
186
  examples:
187
187
  - 5f8d43a1b9e5a80011a35f2c
188
+ - name: mergeInstanceFlowId
189
+ in: query
190
+ description: |-
191
+ Instance flow whose overrides to apply: the response is this import with that instance's
192
+ `overrides.imports[]` entry for it (such as `_connectionId` or `filter`) in place of the
193
+ stored values, every field the override leaves out inherited, and nothing saved. A flow
194
+ that is not an instance, or an instance whose abstract flow does not use this import, is
195
+ rejected with 400 `invalid_request`; an unknown flow id returns 404.
196
+ schema:
197
+ type: string
198
+ format: objectId
199
+ x-celigo-refModel: flows
200
+ examples:
201
+ - 6a0fd84629f7fd19fd68feac
188
202
  responses:
189
203
  '200':
190
204
  description: Import retrieved successfully
@@ -211,6 +225,26 @@ paths:
211
225
  apiIdentifier: if0626b560
212
226
  createdAt: '2026-06-09T17:32:41.218Z'
213
227
  lastModified: '2026-06-09T17:32:41.296Z'
228
+ merged_for_instance:
229
+ summary: Read with mergeInstanceFlowId — the instance overrides _connectionId
230
+ value:
231
+ _id: 5f8d43a1b9e5a80011a35f2c
232
+ name: Shopify Customer Import
233
+ _connectionId: 6a0fc7eb7202049b32ea45c1
234
+ adaptorType: HTTPImport
235
+ http:
236
+ relativeURI:
237
+ - /customers.json
238
+ method:
239
+ - POST
240
+ requestMediaType: json
241
+ successMediaType: json
242
+ sendPostMappedData: true
243
+ apiIdentifier: if0626b560
244
+ createdAt: '2026-06-09T17:32:41.218Z'
245
+ lastModified: '2026-06-09T17:32:41.296Z'
246
+ '400':
247
+ $ref: '#/components/responses/400-bad-request'
214
248
  '401':
215
249
  $ref: '#/components/responses/401-unauthorized'
216
250
  '404':
@@ -489,6 +523,8 @@ paths:
489
523
  description: |
490
524
  Replaces the connection used by an import in a flow and cancels any related running jobs.
491
525
  This is useful when migrating flows between environments or updating to newer connection versions.
526
+ Only `_connectionId` changes: the import's relative URIs and other settings stay as authored,
527
+ also when the new connection is bound to a different HTTP connector.
492
528
  operationId: replaceConnectionOnImport
493
529
  tags:
494
530
  - Imports
@@ -283,18 +283,26 @@ paths:
283
283
  summary: Patch an integration
284
284
  description: |-
285
285
  Partially updates an integration using a JSON Patch document (RFC 6902).
286
- Only the `replace` operation is supported, and only on the following
287
- whitelisted paths:
286
+ `replace` and `add` set a value (a currently unset field is fine) and
287
+ `remove` unsets it; `copy` and `test` are rejected. Only these paths are
288
+ accepted:
288
289
 
289
290
  | Path | Description |
290
291
  |------|-------------|
291
292
  | `/settings` | Integration settings object |
292
293
  | `/flowGroupings` | Flow grouping configuration |
293
294
  | `/apiGroupings` | API grouping configuration |
295
+ | `/iLMIgnore` | Fields lifecycle pulls and reverts leave untouched, keyed by resource type (the integration's `iLMIgnore` field); a field path the type does not allow is rejected with 422 |
296
+ | `/tag` | Label that tells apart installs of the same Integration App |
297
+ | `/celigoAgentAutoRunMode` | Celigo Agent auto-run toggle |
298
+ | `/version` | Installed Integration App version, normally written by the app's update workflow |
299
+ | `/updateInProgress` | Integration App update flag, normally managed by the update workflow |
294
300
 
295
- All other paths are rejected with `422`. A successful patch returns no body, so the
296
- server-assigned `_id` of a grouping added through `/flowGroupings` or `/apiGroupings`
297
- is only available from a follow-up `GET`.
301
+ Any other path — including `/name` and `/description` — fails with 422
302
+ `<path> is not a whitelisted property`, and a `null` value is rejected. A
303
+ successful patch returns no body, so the server-assigned `_id` of a grouping
304
+ added through `/flowGroupings` or `/apiGroupings` is only available from a
305
+ follow-up `GET`.
298
306
  operationId: patchIntegration
299
307
  tags:
300
308
  - Integrations
@@ -323,6 +331,16 @@ paths:
323
331
  path: /settings
324
332
  value:
325
333
  region: us-west-2
334
+ set_ilm_ignore:
335
+ summary: Keep flow names and one setting out of lifecycle pulls
336
+ value:
337
+ - op: replace
338
+ path: /iLMIgnore
339
+ value:
340
+ integration:
341
+ - settings.region
342
+ flow:
343
+ - name
326
344
  responses:
327
345
  '204':
328
346
  description: Integration patched successfully
@@ -331,7 +349,27 @@ paths:
331
349
  '404':
332
350
  $ref: '#/components/responses/404-not-found'
333
351
  '422':
334
- $ref: '#/components/responses/422-unprocessable-entity'
352
+ description: Patch rejected.
353
+ content:
354
+ application/json:
355
+ schema:
356
+ $ref: '#/components/schemas/Error'
357
+ examples:
358
+ non_whitelisted:
359
+ summary: Path is not patchable
360
+ value:
361
+ errors:
362
+ - message: /name is not a whitelisted property
363
+ unsupported_operation:
364
+ summary: Unsupported operation (`copy` or `test`)
365
+ value:
366
+ errors:
367
+ - message: Operation 'copy' is not supported
368
+ invalid_ilm_ignore_path:
369
+ summary: iLMIgnore names a field its resource type does not allow
370
+ value:
371
+ errors:
372
+ - message: Invalid path expression `notARealField` for flow. Path expression not supported
335
373
  delete:
336
374
  x-internal: false
337
375
  summary: Delete an integration
@@ -4528,7 +4566,12 @@ components:
4528
4566
  cache name), and must be removed before the cache can be deregistered.
4529
4567
  iLMIgnore:
4530
4568
  type: object
4531
- description: Configuration to exclude specific resources from integration lifecycle management.
4569
+ description: |-
4570
+ Fields that integration lifecycle pulls and reverts leave untouched, keyed by resource type
4571
+ (`integration`, `flow`, `export`, ...) with an array of field paths for each. Change it with
4572
+ `PATCH /v1/integrations/{_id}` on `/iLMIgnore` and read the saved value back here; a field
4573
+ path the resource type does not allow is rejected with 422 ("Invalid path expression
4574
+ `<path>` for <type>. Path expression not supported").
4532
4575
  additionalProperties: true
4533
4576
  ResourceResponse:
4534
4577
  type: object
@@ -22,6 +22,7 @@ info:
22
22
  - Can proxy **upstream MCP servers** (`upstreamMcpConnections[]`, attached through `mcp`-type connections) and whitelist which of their tools, prompts, and resources it exposes
23
23
  - Lists the **connections** each end user must supply their own credentials for (`connections[]`); only entries with `requiresEndUserCredentials: true` are kept
24
24
  - Can be pinned to a **network policy** (`_networkPolicyId`) that restricts which IP ranges may reach it
25
+ - Carries **request-log capture** settings (`logging.mode`, `logging.debugUntil`); a new server starts at `basic`
25
26
  servers:
26
27
  - url: https://api.integrator.io
27
28
  description: Production (US / default region)
@@ -129,6 +130,8 @@ paths:
129
130
  _resourceIds: []
130
131
  upstreamMcpConnections: []
131
132
  policies: []
133
+ logging:
134
+ mode: basic
132
135
  oauth:
133
136
  useCeligoOauth: true
134
137
  createdAt: '2026-04-24T16:52:05.607Z'
@@ -202,7 +205,7 @@ paths:
202
205
  $ref: '#/components/schemas/MCPServer'
203
206
  examples:
204
207
  created:
205
- summary: Created from the minimal request (disabled by default, empty arrays)
208
+ summary: Created from the minimal request (empty arrays, basic logging)
206
209
  value:
207
210
  _id: 69eb9fb5b4fc023618e490b8
208
211
  _userId: 624cb0346309dc3a543733a2
@@ -218,6 +221,8 @@ paths:
218
221
  permissionSets: []
219
222
  upstreamMcpConnections: []
220
223
  policies: []
224
+ logging:
225
+ mode: basic
221
226
  createdAt: '2026-04-24T16:52:05.607Z'
222
227
  lastModified: '2026-04-24T16:52:05.607Z'
223
228
  enabledItemCount: 0
@@ -442,6 +447,8 @@ paths:
442
447
  resources: []
443
448
  _networkPolicyId: 6ab1ebbfb9e4547494ff7558
444
449
  policies: []
450
+ logging:
451
+ mode: basic
445
452
  oauth:
446
453
  useCeligoOauth: true
447
454
  createdAt: '2026-04-24T16:52:05.607Z'
@@ -464,10 +471,12 @@ paths:
464
471
  that required end-user credentials invalidates the end users' `mcpChild`
465
472
  connections for it unless another server still requires them. Three fields work the other
466
473
  way round: `upstreamMcpConnections`, `_networkPolicyId` and `logging` keep their
467
- stored value when omitted — send `[]` or `null` to clear the first two
468
- — and a PUT that includes `upstreamMcpConnections` re-approves the
469
- current upstream definitions. A `logging.mode` the account cannot use
470
- is rejected the same way as on PATCH (422 `payload_storage_required`).
474
+ stored value when omitted — send `[]`, `null`, and `{}` or `null`
475
+ respectively to clear them — and a PUT that includes
476
+ `upstreamMcpConnections` re-approves the current upstream definitions.
477
+ A `logging.mode` the account cannot use is rejected the same way as on
478
+ PATCH (422 `payload_storage_required`), and so is a `logging.debugUntil`
479
+ in the past (422 `invalid_date`).
471
480
  `_templateId` is ignored. `relativeURI`
472
481
  can be changed but must remain unique per account.
473
482
  operationId: updateMcpServer
@@ -595,6 +604,8 @@ paths:
595
604
  _resourceIds: []
596
605
  upstreamMcpConnections: []
597
606
  policies: []
607
+ logging:
608
+ mode: basic
598
609
  oauth:
599
610
  useCeligoOauth: true
600
611
  createdAt: '2026-04-24T16:52:05.607Z'
@@ -632,10 +643,14 @@ paths:
632
643
  `/logging/mode` takes `replace` with one of the request-log modes;
633
644
  `/logging/debugUntil` takes `replace` with a future date-time to start a
634
645
  debug window and `remove` to end it early (a `remove` with no window set
635
- is accepted and changes nothing). Payload storage must be enabled for
636
- the account for `standard`, `detailed` and a debug window — 422
637
- `payload_storage_required` for the two modes, 422 `not_allowed` for the
638
- window; `basic` and `noLogging` need no payload storage — and a mode
646
+ is accepted and changes nothing); `add` works on both paths too, and
647
+ `remove /logging/mode` leaves the server with no stored mode. A
648
+ `debugUntil` in the past is 422 `invalid_date`, one further ahead than
649
+ the license's `logging.maxDebugDuration` is 422 `not_allowed`, and one
650
+ that is not a date-time is 422 `invalid_field`. Payload storage must be
651
+ enabled for the account for `standard`, `detailed` and a debug window —
652
+ 422 `payload_storage_required` for the two modes, 422 `not_allowed` for
653
+ the window; `basic` and `noLogging` need no payload storage — and a mode
639
654
  outside the set, in any other spelling, is 422 `invalid_logging_mode`.
640
655
  Under `/policies`, `add`, `replace`, and `remove` work on the whole
641
656
  array, `add` works at `/policies/-` or an index, and `replace` works at
@@ -763,8 +778,8 @@ paths:
763
778
  description: |-
764
779
  The patch names a path outside the whitelist, an invalid
765
780
  `_networkPolicyId`, an invalid policy, a request-log mode or debug
766
- window the account cannot use, or would enable a server with
767
- nothing enabled.
781
+ window the account cannot use, a debug window in the past or beyond
782
+ the license's limit, or would enable a server with nothing enabled.
768
783
  content:
769
784
  application/json:
770
785
  schema:
@@ -794,6 +809,20 @@ paths:
794
809
  - field: logging.debugUntil
795
810
  code: not_allowed
796
811
  message: The McpServer logging mode cannot be set to debug as payload storage is not enabled.
812
+ debug_window_in_the_past:
813
+ summary: A debugUntil that is not in the future
814
+ value:
815
+ errors:
816
+ - field: logging.debugUntil
817
+ code: invalid_date
818
+ message: Debug logging end time must be in the future.
819
+ debug_window_beyond_license:
820
+ summary: A debugUntil further ahead than the license's logging.maxDebugDuration
821
+ value:
822
+ errors:
823
+ - field: logging.debugUntil
824
+ code: not_allowed
825
+ message: As per your license, you can only set debug duration up to 72.0 hours. Please contact celigo support to upgrade your license.
797
826
  enablement:
798
827
  value:
799
828
  errors:
@@ -3171,7 +3200,11 @@ components:
3171
3200
  disabled:
3172
3201
  type: boolean
3173
3202
  default: true
3174
- description: When true, this tool is disabled and will not be exposed to MCP clients.
3203
+ description: |-
3204
+ When true, this tool is disabled and will not be exposed to MCP clients:
3205
+ `tools/list` leaves it out, and a `tools/call` that still names it gets
3206
+ JSON-RPC error -32601 ("Tool not found: …") with `error.data.hint`
3207
+ `refresh_tools_list`, the same answer as for an unknown name.
3175
3208
  x-celigo-ai-guidance:
3176
3209
  - |-
3177
3210
  Indicates whether this tool is disabled within the MCP server;
@@ -3232,7 +3265,12 @@ components:
3232
3265
  disabled:
3233
3266
  type: boolean
3234
3267
  default: true
3235
- description: When true, this API tool is disabled and will not be exposed to MCP clients.
3268
+ description: |-
3269
+ When true, this API tool is disabled and will not be exposed to MCP
3270
+ clients: `tools/list` leaves it out, and a `tools/call` that still names
3271
+ it gets JSON-RPC error -32601 ("Tool not found: …") with
3272
+ `error.data.hint` `refresh_tools_list`, the same answer as for an
3273
+ unknown name.
3236
3274
  x-celigo-ai-guidance:
3237
3275
  - Whether this API tool is disabled within the MCP server.
3238
3276
  examples:
@@ -3467,8 +3505,9 @@ components:
3467
3505
  Server-generated identifier for the prompt — the grant handle
3468
3506
  referenced as `prompt:<_id>` in end-user, group, and role resource
3469
3507
  grants and in `permissionSets[]._promptIds` (older grants written as
3470
- `tool:<_id>` still validate but are not reported by effective
3471
- access). Identity is preserved across updates by matching on `name`,
3508
+ `tool:<_id>` still validate, but they are not reported by effective
3509
+ access and do not open the prompt for end-users on the MCP
3510
+ endpoint). Identity is preserved across updates by matching on `name`,
3472
3511
  so renaming a prompt assigns a new `_id` and breaks grants that
3473
3512
  reference the old one.
3474
3513
  examples:
@@ -3748,8 +3787,11 @@ components:
3748
3787
  readOnly: true
3749
3788
  description: |-
3750
3789
  Server-generated identifier for the row — the grant handle referenced
3751
- as `tool:<_id>` in resource grants and, for tool rows, accepted in
3752
- `permissionSets[]._toolIds`. Preserved across PUT while the row keeps
3790
+ in resource grants as `tool:<_id>` for a tool row and `prompt:<_id>`
3791
+ for a prompt row. Tool rows are also accepted in
3792
+ `permissionSets[]._toolIds`. A `tool:<_id>` grant on a prompt row
3793
+ still validates but does not open the prompt for end-users on the
3794
+ MCP endpoint. Preserved across PUT while the row keeps
3753
3795
  its `upstreamName`.
3754
3796
  examples:
3755
3797
  - 6ab1ebd05af4c5a3ea6b0959
@@ -4547,10 +4589,20 @@ components:
4547
4589
  servers are created with `{"mode": "basic"}`. Changed with
4548
4590
  `PATCH /v1/mcpservers/{_id}` on the `/logging/mode` and
4549
4591
  `/logging/debugUntil` paths, or by sending the object on PUT;
4550
- omitted on PUT, the stored value is kept. A change applies to the
4592
+ omitted on PUT, the stored value is kept, while `logging: {}` or
4593
+ `null` on PUT (or PATCH `remove /logging/mode`) clears it, after
4594
+ which the field is absent from responses and requests are recorded
4595
+ as entries only. A change applies to the
4551
4596
  requests that follow it, not to entries already recorded. While
4552
4597
  payload storage is off for the account, requests are recorded as
4553
4598
  entries only whatever the stored mode.
4599
+ x-celigo-ai-guidance:
4600
+ - |-
4601
+ Leave logging out of a create: the server stores mode basic. To change it
4602
+ later, PATCH replace /logging/mode — the whole /logging object is not a
4603
+ whitelisted path. While payload storage is off for the account, standard
4604
+ and detailed fail with 422 "payload_storage_required" and any debugUntil
4605
+ with 422 "not_allowed"; noLogging and basic save without it.
4554
4606
  properties:
4555
4607
  mode:
4556
4608
  type: string
@@ -4584,13 +4636,17 @@ components:
4584
4636
  While this timestamp is in the future, every request is captured
4585
4637
  with full payloads and execution detail regardless of `mode`;
4586
4638
  once it passes, the stored `mode` applies again without any
4587
- further write. Set it to a future time; it needs payload storage
4588
- enabled for the account (422 `not_allowed` otherwise). The UI
4589
- offers windows up to the plan's debug allowance, and a window
4590
- longer than a new plan allows is cleared by the platform when
4591
- the plan changes. Clear an active window with a PATCH `remove` —
4592
- removing it when none is set is accepted and changes nothing.
4593
- Absent from responses when no window is set.
4639
+ further write (the past value stays in responses until removed
4640
+ or replaced). The value must lie in the future (422
4641
+ `invalid_date`), at most the license's `logging.maxDebugDuration`
4642
+ minutes ahead (422 `not_allowed`, "As per your license, you can
4643
+ only set debug duration up to N hours"), and be a date-time (422
4644
+ `invalid_field`); payload storage must be on for the account
4645
+ (422 `not_allowed`, "…as payload storage is not enabled"). A
4646
+ window longer than a new plan allows is cleared by the platform
4647
+ when the plan changes. Clear an active window with a PATCH
4648
+ `remove` — removing it when none is set is accepted and changes
4649
+ nothing. Absent from responses when no window has been set.
4594
4650
  examples:
4595
4651
  - '2026-10-27T09:30:00.000Z'
4596
4652
  oauth:
@@ -5157,8 +5213,9 @@ components:
5157
5213
  PGP keys and options for the file transports — `ftp`, `s3`, the on-premise file system and the
5158
5214
  cloud file-provider connections such as Box, Dropbox, Google Drive, Azure Blob Storage and
5159
5215
  Celigo file storage. `publicKey` encrypts the files the connection's imports write,
5160
- record-generated files and transferred (blob) files alike; `privateKey` with its `passphrase`
5161
- decrypts the files its exports read and signs encrypted output. Supply at least one of the two.
5216
+ record-generated files and transferred (blob) files alike; `privateKey` (with `passphrase` when
5217
+ the key is protected) decrypts the files its exports read and signs encrypted output. Supply at
5218
+ least one of the two.
5162
5219
  properties:
5163
5220
  publicKey:
5164
5221
  type: string
@@ -5187,7 +5244,10 @@ components:
5187
5244
  passphrase:
5188
5245
  type: string
5189
5246
  writeOnly: true
5190
- description: Passphrase that unlocks `privateKey` (encrypted at rest; returned masked as `"******"`). Set this whenever `privateKey` is provided.
5247
+ description: |-
5248
+ Passphrase that unlocks `privateKey` (encrypted at rest; returned masked as `"******"`). Set it
5249
+ when the private key is passphrase-protected; a connection with a private key and no
5250
+ passphrase saves.
5191
5251
  compressionAlgorithm:
5192
5252
  type: string
5193
5253
  enum:
@@ -5201,12 +5261,6 @@ components:
5201
5261
  type: boolean
5202
5262
  default: true
5203
5263
  description: When true, produces ASCII-armored (text) PGP output. Set to false only when the recipient requires binary PGP output.
5204
- if:
5205
- required:
5206
- - privateKey
5207
- then:
5208
- required:
5209
- - passphrase
5210
5264
  SSL:
5211
5265
  type: object
5212
5266
  description: |-
@@ -11023,16 +11077,17 @@ components:
11023
11077
  Capability string granting access on this server. `tool:`, `api:`,
11024
11078
  `prompt:`, and `resource:` take either `all` or a 24-hex id — a
11025
11079
  `tools[]._toolId` or upstream tool row `_id`, an `apis[]._apiId`, a
11026
- `prompts[]._id`, or a `resources[]._id` — and `pset:` takes a
11027
- `permissionSets[]._id` or `all`. Each `:all` covers only its own kind;
11028
- `pset:all` covers every permission set on this server, sets added later
11029
- included, and reaches only what the sets contain — an attached tool or
11030
- prompt in no set stays denied. Grant prompts with
11080
+ `prompts[]._id` or upstream prompt row `_id`, or a `resources[]._id` —
11081
+ and `pset:` takes a `permissionSets[]._id` or `all`. Each `:all` covers
11082
+ only its own kind; `pset:all` covers every permission set on this server,
11083
+ sets added later included, and reaches only what the sets contain — an
11084
+ attached tool or prompt in no set stays denied. Grant prompts with
11031
11085
  `prompt:<_id>` — older grants written as `tool:<prompt _id>` still
11032
- validate but are not reported by effective access. Any other shape is
11033
- rejected with 400 `validation_failed` ("Invalid capability"), and an id
11034
- not attached to this server with 400 `validation_failed` naming the
11035
- missing item.
11086
+ validate, but they are not reported by effective access and do not open
11087
+ the prompt on the MCP endpoint (`prompts/list` hides it and `prompts/get`
11088
+ is denied). Any other shape is rejected with 400 `validation_failed`
11089
+ ("Invalid capability"), and an id not attached to this server with 400
11090
+ `validation_failed` naming the missing item.
11036
11091
  examples:
11037
11092
  - tool:all
11038
11093
  - prompt:6b2c3d4e5f6a7b8c9d0e1f2a
@@ -660,7 +660,11 @@ paths:
660
660
  fixed: Fixed-width columns padded to defined lengths.
661
661
  delimited:
662
662
  type: object
663
- description: Required when `format` starts with `delimited`.
663
+ description: |-
664
+ Required when `format` starts with `delimited`. For a `version` `"2"`
665
+ X12 or EDIFACT definition the parse reads the element, component and
666
+ segment separators from the ISA or UNB segment at the start of `data`
667
+ and uses them over these values for this call.
664
668
  properties:
665
669
  rowSuffix:
666
670
  type: string
@@ -807,7 +811,9 @@ paths:
807
811
  '401':
808
812
  $ref: '#/components/responses/401-unauthorized'
809
813
  '422':
810
- description: File definition validation error or missing required segment.
814
+ description: |-
815
+ File definition validation error, missing required segment, or an EDI envelope
816
+ whose delimiters could not be read.
811
817
  content:
812
818
  application/json:
813
819
  schema:
@@ -821,13 +827,31 @@ paths:
821
827
  type: string
822
828
  description: |-
823
829
  Error code. Common values: `file_definition_error`,
824
- `missing_row`, `WRONG_MAX_OCCURRENCE`.
830
+ `missing_row`, `WRONG_MAX_OCCURRENCE`, `edi_error` (a mandatory
831
+ envelope segment is missing), and `delimiter_detect_failed` (a
832
+ version `"2"` X12 definition fed an interchange whose ISA is not
833
+ the fixed 106-character form and does not use the saved
834
+ delimiters either).
835
+ name:
836
+ type: string
837
+ description: Title of the failure; present on `delimiter_detect_failed`.
825
838
  resolved:
826
839
  type: boolean
827
840
  occurredAt:
828
841
  type: integer
829
842
  path:
830
843
  type: string
844
+ examples:
845
+ delimiter_detect_failed:
846
+ summary: Unpadded ISA that uses neither detectable nor saved delimiters
847
+ value:
848
+ code: delimiter_detect_failed
849
+ message: Could not read delimiters from the EDI envelope, and the file definition delimiters did not produce an ISA header.
850
+ source: resource
851
+ name: Delimiter detection failed
852
+ resolved: false
853
+ occurredAt: 1794017548333
854
+ path: processor.structuredFileParser
831
855
  /v1/processors/structuredFileGenerator:
832
856
  post:
833
857
  x-internal: false
package/dist/template.yml CHANGED
@@ -458,7 +458,7 @@ paths:
458
458
  value:
459
459
  errors:
460
460
  - code: invalid_template
461
- message: MCP server templates cannot be installed through the Integration template path.
461
+ message: MCP server templates cannot be installed through the Integration template path. Use Upload MCP.
462
462
  missingStack:
463
463
  summary: The preview reported stackRequired and no _stackId was sent
464
464
  value:
package/dist/tool.yml CHANGED
@@ -2667,6 +2667,9 @@ paths:
2667
2667
  Returns the stage-by-stage result of a single step from a prior tool test
2668
2668
  run. Each entry in `stages[]` describes one stage (e.g. `request`,
2669
2669
  `parse`, `router`, `input`) with its `input`, `output`, and any `errors`.
2670
+ A router's step id returns a top-level `output` instead of `stages` and
2671
+ `errors`: one entry per input, with the `branches` position the router
2672
+ chose and any routing `errors`.
2670
2673
 
2671
2674
  The `runId` is the `flowJob._id` returned by
2672
2675
  `POST /v1/tools/{_id}/test/run`. The `{_stepId}` is one of the step ids
@@ -2755,9 +2758,41 @@ paths:
2755
2758
  items:
2756
2759
  type: object
2757
2760
  additionalProperties: true
2758
- required:
2759
- - stages
2760
- - errors
2761
+ output:
2762
+ type: array
2763
+ description: |-
2764
+ Present instead of `stages` and `errors` when `_stepId` is a router id
2765
+ (a `routers[].id`, or the synthetic `main` router): one entry per input
2766
+ the router handled.
2767
+ items:
2768
+ type: object
2769
+ additionalProperties: true
2770
+ properties:
2771
+ record:
2772
+ type: object
2773
+ additionalProperties: true
2774
+ description: The input as it reached the router.
2775
+ traceKey:
2776
+ type:
2777
+ - string
2778
+ - 'null'
2779
+ description: Trace key of the input, or `null` when none was computed for it.
2780
+ errors:
2781
+ type: array
2782
+ description: |-
2783
+ Routing errors for the input, such as `branch_not_defined` or
2784
+ `record_not_routed_to_any_branch`; empty when it routed cleanly.
2785
+ items:
2786
+ type: object
2787
+ additionalProperties: true
2788
+ branches:
2789
+ type: array
2790
+ description: |-
2791
+ Zero-based position, in the router's `branches`, chosen for the input;
2792
+ empty or absent when none was. An input with routing `errors` went down
2793
+ no branch, whatever this holds.
2794
+ items:
2795
+ type: integer
2761
2796
  examples:
2762
2797
  default:
2763
2798
  summary: Two stages — request consumed input, parse produced output
@@ -2782,6 +2817,17 @@ paths:
2782
2817
  traceKey: null
2783
2818
  input: null
2784
2819
  errors: []
2820
+ router_step:
2821
+ summary: Router step — the input went to the second branch
2822
+ value:
2823
+ output:
2824
+ - record:
2825
+ orderId: '1001'
2826
+ region: EU
2827
+ traceKey: '1001'
2828
+ errors: []
2829
+ branches:
2830
+ - 1
2785
2831
  '400':
2786
2832
  $ref: '#/components/responses/400-bad-request'
2787
2833
  '401':
@@ -6945,8 +6991,6 @@ components:
6945
6991
  type: object
6946
6992
  description: |
6947
6993
  Script configuration when routeRecordsUsing is "script".
6948
-
6949
- The function should return the name of the branch to route to.
6950
6994
  properties:
6951
6995
  _scriptId:
6952
6996
  type: string
@@ -6957,10 +7001,20 @@ components:
6957
7001
  - 60a2c4e6f321d800129a1a3c
6958
7002
  function:
6959
7003
  type: string
6960
- description: Function name that returns the branch name
7004
+ description: |-
7005
+ Function in the script that picks the branch for the input. It receives the input as
7006
+ `options.record` and returns the branch's zero-based position in `branches` as a
7007
+ one-item array, such as `[0]`.
6961
7008
  examples:
6962
7009
  - routeInput
6963
7010
  - determineBranch
7011
+ x-celigo-ai-guidance:
7012
+ - |-
7013
+ Return a branch position, never a branch name: a name, or a position with no branch,
7014
+ fails the input with `branch_not_defined`; more than one position fails it with
7015
+ `invalid_script_routing`; and an empty array fails it with
7016
+ `record_not_routed_to_any_branch` ("Record did not match any branch routing criteria
7017
+ during tool execution").
6964
7018
  branches:
6965
7019
  type: array
6966
7020
  description: |
@@ -7586,8 +7640,9 @@ components:
7586
7640
  PGP keys and options for the file transports — `ftp`, `s3`, the on-premise file system and the
7587
7641
  cloud file-provider connections such as Box, Dropbox, Google Drive, Azure Blob Storage and
7588
7642
  Celigo file storage. `publicKey` encrypts the files the connection's imports write,
7589
- record-generated files and transferred (blob) files alike; `privateKey` with its `passphrase`
7590
- decrypts the files its exports read and signs encrypted output. Supply at least one of the two.
7643
+ record-generated files and transferred (blob) files alike; `privateKey` (with `passphrase` when
7644
+ the key is protected) decrypts the files its exports read and signs encrypted output. Supply at
7645
+ least one of the two.
7591
7646
  properties:
7592
7647
  publicKey:
7593
7648
  type: string
@@ -7616,7 +7671,10 @@ components:
7616
7671
  passphrase:
7617
7672
  type: string
7618
7673
  writeOnly: true
7619
- description: Passphrase that unlocks `privateKey` (encrypted at rest; returned masked as `"******"`). Set this whenever `privateKey` is provided.
7674
+ description: |-
7675
+ Passphrase that unlocks `privateKey` (encrypted at rest; returned masked as `"******"`). Set it
7676
+ when the private key is passphrase-protected; a connection with a private key and no
7677
+ passphrase saves.
7620
7678
  compressionAlgorithm:
7621
7679
  type: string
7622
7680
  enum:
@@ -7630,12 +7688,6 @@ components:
7630
7688
  type: boolean
7631
7689
  default: true
7632
7690
  description: When true, produces ASCII-armored (text) PGP output. Set to false only when the recipient requires binary PGP output.
7633
- if:
7634
- required:
7635
- - privateKey
7636
- then:
7637
- required:
7638
- - passphrase
7639
7691
  SSL:
7640
7692
  type: object
7641
7693
  description: |-