@celigo/api-specs 0.2.262 → 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/api.yml +58 -2
- package/dist/enduser.yml +10 -7
- package/dist/flow.yml +75 -7
- package/dist/integration.yml +50 -7
- package/dist/mcp-server.yml +29 -15
- package/dist/template.yml +1 -1
- package/dist/tool.yml +60 -6
- package/dist/user.yml +10 -7
- package/package.json +1 -1
- package/schemas.json +1 -1
package/dist/api.yml
CHANGED
|
@@ -1845,7 +1845,9 @@ paths:
|
|
|
1845
1845
|
|
|
1846
1846
|
Each entry in `stages[]` carries the stage `name` (e.g. `request`, `parse`, `router`) plus its
|
|
1847
1847
|
`input`, `output`, and `errors`. Stages that did not produce data for a given direction return
|
|
1848
|
-
`null` for that field. Top-level `errors` aggregates step-level errors.
|
|
1848
|
+
`null` for that field. Top-level `errors` aggregates step-level errors. A router's step id
|
|
1849
|
+
returns a top-level `output` instead of `stages` and `errors`: one entry per request, with the
|
|
1850
|
+
`branches` position the router chose and any routing `errors`.
|
|
1849
1851
|
parameters:
|
|
1850
1852
|
- name: _id
|
|
1851
1853
|
in: path
|
|
@@ -1901,6 +1903,41 @@ paths:
|
|
|
1901
1903
|
description: Aggregated step-level errors.
|
|
1902
1904
|
items:
|
|
1903
1905
|
type: object
|
|
1906
|
+
output:
|
|
1907
|
+
type: array
|
|
1908
|
+
description: |-
|
|
1909
|
+
Present instead of `stages` and `errors` when `_stepId` is a router id
|
|
1910
|
+
(a `builder.routers[].id`, or `apiRouter`): one entry per request the router
|
|
1911
|
+
handled.
|
|
1912
|
+
items:
|
|
1913
|
+
type: object
|
|
1914
|
+
additionalProperties: true
|
|
1915
|
+
properties:
|
|
1916
|
+
record:
|
|
1917
|
+
type: object
|
|
1918
|
+
additionalProperties: true
|
|
1919
|
+
description: The request record as it reached the router.
|
|
1920
|
+
traceKey:
|
|
1921
|
+
type:
|
|
1922
|
+
- string
|
|
1923
|
+
- 'null'
|
|
1924
|
+
description: Trace key of the request, or `null` when none was computed for it.
|
|
1925
|
+
errors:
|
|
1926
|
+
type: array
|
|
1927
|
+
description: |-
|
|
1928
|
+
Routing errors for the request, such as `branch_not_defined` or
|
|
1929
|
+
`invalid_script_routing`; empty when it routed cleanly.
|
|
1930
|
+
items:
|
|
1931
|
+
type: object
|
|
1932
|
+
additionalProperties: true
|
|
1933
|
+
branches:
|
|
1934
|
+
type: array
|
|
1935
|
+
description: |-
|
|
1936
|
+
Zero-based position of the branch chosen for the request; empty or
|
|
1937
|
+
absent when none was. A request with routing `errors` went down no
|
|
1938
|
+
branch, whatever this holds.
|
|
1939
|
+
items:
|
|
1940
|
+
type: integer
|
|
1904
1941
|
examples:
|
|
1905
1942
|
default:
|
|
1906
1943
|
value:
|
|
@@ -1924,6 +1961,17 @@ paths:
|
|
|
1924
1961
|
errors: []
|
|
1925
1962
|
traceKey: null
|
|
1926
1963
|
errors: []
|
|
1964
|
+
router_step:
|
|
1965
|
+
summary: Router step — the request went to the second branch
|
|
1966
|
+
value:
|
|
1967
|
+
output:
|
|
1968
|
+
- record:
|
|
1969
|
+
orderId: '1001'
|
|
1970
|
+
region: EU
|
|
1971
|
+
traceKey: '1001'
|
|
1972
|
+
errors: []
|
|
1973
|
+
branches:
|
|
1974
|
+
- 1
|
|
1927
1975
|
'400':
|
|
1928
1976
|
$ref: '#/components/responses/400-bad-request'
|
|
1929
1977
|
'401':
|
|
@@ -6092,10 +6140,18 @@ components:
|
|
|
6092
6140
|
- 60a2c4e6f321d800129a1a3c
|
|
6093
6141
|
function:
|
|
6094
6142
|
type: string
|
|
6095
|
-
description:
|
|
6143
|
+
description: |-
|
|
6144
|
+
Function in the script that picks the branch for the request. It receives the
|
|
6145
|
+
record being routed as `options.record` and returns the branch's zero-based position
|
|
6146
|
+
in `branches` as a one-item array, such as `[0]`.
|
|
6096
6147
|
examples:
|
|
6097
6148
|
- routeRequest
|
|
6098
6149
|
- determineBranch
|
|
6150
|
+
x-celigo-ai-guidance:
|
|
6151
|
+
- |-
|
|
6152
|
+
Return a branch position, never a branch name: a name, or a position with no branch,
|
|
6153
|
+
fails the request with `branch_not_defined`, and more than one position fails it
|
|
6154
|
+
with `invalid_script_routing`.
|
|
6099
6155
|
branches:
|
|
6100
6156
|
type: array
|
|
6101
6157
|
description: Processing branches, evaluated in order.
|
package/dist/enduser.yml
CHANGED
|
@@ -1293,13 +1293,16 @@ components:
|
|
|
1293
1293
|
Capability string for an `mcpServer` grant. `tool:`, `api:`,
|
|
1294
1294
|
`prompt:`, and `resource:` take `all` or a 24-hex id on the target
|
|
1295
1295
|
server — a `tools[]._toolId` or upstream tool row `_id`, an
|
|
1296
|
-
`apis[]._apiId`, a `prompts[]._id
|
|
1297
|
-
takes a `permissionSets[]._id` or
|
|
1298
|
-
`prompt:<_id>`: older grants written as
|
|
1299
|
-
validate but are not reported by
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1296
|
+
`apis[]._apiId`, a `prompts[]._id` or upstream prompt row `_id`, or
|
|
1297
|
+
a `resources[]._id`; `pset:` takes a `permissionSets[]._id` or
|
|
1298
|
+
`all`. Grant prompts with `prompt:<_id>`: older grants written as
|
|
1299
|
+
`tool:<prompt _id>` still validate, but they are not reported by
|
|
1300
|
+
effective access and do not open the prompt on the MCP endpoint —
|
|
1301
|
+
`prompts/list` hides it and `prompts/get` is denied, and `tool:all`
|
|
1302
|
+
does not cover prompts there either. Any other shape is rejected with
|
|
1303
|
+
400 `validation_failed` ("Invalid capability"), and an id that is
|
|
1304
|
+
not attached to the target server with 400 `validation_failed`
|
|
1305
|
+
naming the missing item.
|
|
1303
1306
|
examples:
|
|
1304
1307
|
- tool:all
|
|
1305
1308
|
- prompt:6b2c3d4e5f6a7b8c9d0e1f2a
|
package/dist/flow.yml
CHANGED
|
@@ -3978,7 +3978,9 @@ paths:
|
|
|
3978
3978
|
|
|
3979
3979
|
For each stage, `input` and `output` are arrays of record envelopes
|
|
3980
3980
|
(`{record, errors, traceKey}`) and may be `null` when the stage produced
|
|
3981
|
-
no records on that side.
|
|
3981
|
+
no records on that side. A router's step id returns a top-level `output`
|
|
3982
|
+
instead of `stages` and `errors`: one entry per record, with the
|
|
3983
|
+
`branches` positions the router sent it to and any routing `errors`. Use
|
|
3982
3984
|
`GET /v1/flows/{_id}/test/run/{runId}/{_stepId}/logs/requestAndResponse`
|
|
3983
3985
|
when you need the raw outbound HTTP request/response captures instead of
|
|
3984
3986
|
the staged record view.
|
|
@@ -4069,6 +4071,43 @@ paths:
|
|
|
4069
4071
|
items:
|
|
4070
4072
|
type: object
|
|
4071
4073
|
additionalProperties: true
|
|
4074
|
+
output:
|
|
4075
|
+
type: array
|
|
4076
|
+
description: |-
|
|
4077
|
+
Present instead of `stages` and `errors` when `_stepId` is a router id
|
|
4078
|
+
(a `routers[].id`, or the synthetic `main` router): one entry per record
|
|
4079
|
+
the router handled.
|
|
4080
|
+
items:
|
|
4081
|
+
type: object
|
|
4082
|
+
additionalProperties: true
|
|
4083
|
+
properties:
|
|
4084
|
+
record:
|
|
4085
|
+
type: object
|
|
4086
|
+
additionalProperties: true
|
|
4087
|
+
description: The record as it reached the router.
|
|
4088
|
+
traceKey:
|
|
4089
|
+
type:
|
|
4090
|
+
- string
|
|
4091
|
+
- 'null'
|
|
4092
|
+
description: |-
|
|
4093
|
+
Trace key of the record, rendered from the page generator's
|
|
4094
|
+
`traceKeyTemplate`; `null` when the export sets none.
|
|
4095
|
+
errors:
|
|
4096
|
+
type: array
|
|
4097
|
+
description: |-
|
|
4098
|
+
Routing errors for the record, such as `branch_not_defined` or
|
|
4099
|
+
`invalid_script_routing`; empty when it routed cleanly.
|
|
4100
|
+
items:
|
|
4101
|
+
type: object
|
|
4102
|
+
additionalProperties: true
|
|
4103
|
+
branches:
|
|
4104
|
+
type: array
|
|
4105
|
+
description: |-
|
|
4106
|
+
Zero-based positions, in the router's `branches`, chosen for the record;
|
|
4107
|
+
empty or absent when none was. A record with routing `errors` went down
|
|
4108
|
+
no branch, whatever this holds.
|
|
4109
|
+
items:
|
|
4110
|
+
type: integer
|
|
4072
4111
|
examples:
|
|
4073
4112
|
default:
|
|
4074
4113
|
summary: Two stages — request (input only) and parse (output only)
|
|
@@ -4093,6 +4132,25 @@ paths:
|
|
|
4093
4132
|
errors: []
|
|
4094
4133
|
traceKey: null
|
|
4095
4134
|
errors: []
|
|
4135
|
+
router_step:
|
|
4136
|
+
summary: Router step — one record routed, one rejected by the routing script
|
|
4137
|
+
value:
|
|
4138
|
+
output:
|
|
4139
|
+
- record:
|
|
4140
|
+
orderId: '1001'
|
|
4141
|
+
region: EU
|
|
4142
|
+
traceKey: '1001'
|
|
4143
|
+
errors: []
|
|
4144
|
+
branches:
|
|
4145
|
+
- 1
|
|
4146
|
+
- record:
|
|
4147
|
+
orderId: '1002'
|
|
4148
|
+
region: APAC
|
|
4149
|
+
traceKey: '1002'
|
|
4150
|
+
errors:
|
|
4151
|
+
- code: branch_not_defined
|
|
4152
|
+
source: resource
|
|
4153
|
+
stage: routing
|
|
4096
4154
|
'400':
|
|
4097
4155
|
$ref: '#/components/responses/400-bad-request'
|
|
4098
4156
|
'401':
|
|
@@ -5151,10 +5209,10 @@ components:
|
|
|
5151
5209
|
type: string
|
|
5152
5210
|
description: |
|
|
5153
5211
|
Label for the branch, unique within the router. On a branching router it is shown on
|
|
5154
|
-
the Flow Builder canvas
|
|
5155
|
-
|
|
5156
|
-
pass-through router has no visible label; the server
|
|
5157
|
-
name is omitted.
|
|
5212
|
+
the Flow Builder canvas and appears in logs — make it describe the branch's purpose. A
|
|
5213
|
+
routing script picks branches by their position in the router's `branches`, never by
|
|
5214
|
+
name. The single branch of a pass-through router has no visible label; the server
|
|
5215
|
+
stores an empty string when the name is omitted.
|
|
5158
5216
|
examples:
|
|
5159
5217
|
- enterprise_customers
|
|
5160
5218
|
- high_priority
|
|
@@ -5362,10 +5420,20 @@ components:
|
|
|
5362
5420
|
- 60a2c4e6f321d800129a1a3c
|
|
5363
5421
|
function:
|
|
5364
5422
|
type: string
|
|
5365
|
-
description:
|
|
5423
|
+
description: |-
|
|
5424
|
+
Function in the script that picks each record's branches. It receives the record as
|
|
5425
|
+
`options.record` and returns the zero-based positions of the chosen branches in
|
|
5426
|
+
`branches` as an array of integers, such as `[0]`, or `[0, 1]` under
|
|
5427
|
+
`all_matching_branches`; an empty array routes the record down no branch, without an error.
|
|
5366
5428
|
examples:
|
|
5367
5429
|
- routeByCustomerType
|
|
5368
5430
|
- calculateBranch
|
|
5431
|
+
x-celigo-ai-guidance:
|
|
5432
|
+
- |-
|
|
5433
|
+
Return branch positions, never branch names: a name, or a position with no branch,
|
|
5434
|
+
fails the record at the routing stage with `branch_not_defined` ("The branch is
|
|
5435
|
+
undefined or unavailable"). Under `first_matching_branch`, returning more than one
|
|
5436
|
+
position fails the record with `invalid_script_routing`.
|
|
5369
5437
|
branches:
|
|
5370
5438
|
type: array
|
|
5371
5439
|
description: |
|
|
@@ -5800,7 +5868,7 @@ components:
|
|
|
5800
5868
|
- 66a1f2c3b4d5e6f7a8b9c0d1
|
|
5801
5869
|
function:
|
|
5802
5870
|
type: string
|
|
5803
|
-
description: Function
|
|
5871
|
+
description: Function in that script that replaces the abstract router's `script.function`; it returns each record's branches as zero-based positions in the router's `branches`, such as `[0]`.
|
|
5804
5872
|
branches:
|
|
5805
5873
|
type: array
|
|
5806
5874
|
description: Override branch configurations
|
package/dist/integration.yml
CHANGED
|
@@ -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
|
-
|
|
287
|
-
|
|
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
|
-
|
|
296
|
-
|
|
297
|
-
|
|
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
|
-
|
|
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:
|
|
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
|
package/dist/mcp-server.yml
CHANGED
|
@@ -3200,7 +3200,11 @@ components:
|
|
|
3200
3200
|
disabled:
|
|
3201
3201
|
type: boolean
|
|
3202
3202
|
default: true
|
|
3203
|
-
description:
|
|
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.
|
|
3204
3208
|
x-celigo-ai-guidance:
|
|
3205
3209
|
- |-
|
|
3206
3210
|
Indicates whether this tool is disabled within the MCP server;
|
|
@@ -3261,7 +3265,12 @@ components:
|
|
|
3261
3265
|
disabled:
|
|
3262
3266
|
type: boolean
|
|
3263
3267
|
default: true
|
|
3264
|
-
description:
|
|
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.
|
|
3265
3274
|
x-celigo-ai-guidance:
|
|
3266
3275
|
- Whether this API tool is disabled within the MCP server.
|
|
3267
3276
|
examples:
|
|
@@ -3496,8 +3505,9 @@ components:
|
|
|
3496
3505
|
Server-generated identifier for the prompt — the grant handle
|
|
3497
3506
|
referenced as `prompt:<_id>` in end-user, group, and role resource
|
|
3498
3507
|
grants and in `permissionSets[]._promptIds` (older grants written as
|
|
3499
|
-
`tool:<_id>` still validate but are not reported by effective
|
|
3500
|
-
access
|
|
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`,
|
|
3501
3511
|
so renaming a prompt assigns a new `_id` and breaks grants that
|
|
3502
3512
|
reference the old one.
|
|
3503
3513
|
examples:
|
|
@@ -3777,8 +3787,11 @@ components:
|
|
|
3777
3787
|
readOnly: true
|
|
3778
3788
|
description: |-
|
|
3779
3789
|
Server-generated identifier for the row — the grant handle referenced
|
|
3780
|
-
as `tool:<_id>`
|
|
3781
|
-
|
|
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
|
|
3782
3795
|
its `upstreamName`.
|
|
3783
3796
|
examples:
|
|
3784
3797
|
- 6ab1ebd05af4c5a3ea6b0959
|
|
@@ -11064,16 +11077,17 @@ components:
|
|
|
11064
11077
|
Capability string granting access on this server. `tool:`, `api:`,
|
|
11065
11078
|
`prompt:`, and `resource:` take either `all` or a 24-hex id — a
|
|
11066
11079
|
`tools[]._toolId` or upstream tool row `_id`, an `apis[]._apiId`, a
|
|
11067
|
-
`prompts[]._id`, or a `resources[]._id` —
|
|
11068
|
-
`permissionSets[]._id` or `all`. Each `:all` covers
|
|
11069
|
-
`pset:all` covers every permission set on this server,
|
|
11070
|
-
included, and reaches only what the sets contain — an
|
|
11071
|
-
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
|
|
11072
11085
|
`prompt:<_id>` — older grants written as `tool:<prompt _id>` still
|
|
11073
|
-
validate but are not reported by effective access
|
|
11074
|
-
|
|
11075
|
-
|
|
11076
|
-
|
|
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.
|
|
11077
11091
|
examples:
|
|
11078
11092
|
- tool:all
|
|
11079
11093
|
- prompt:6b2c3d4e5f6a7b8c9d0e1f2a
|
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
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
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:
|
|
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: |
|
package/dist/user.yml
CHANGED
|
@@ -910,13 +910,16 @@ components:
|
|
|
910
910
|
Capability string for an `mcpServer` grant. `tool:`, `api:`,
|
|
911
911
|
`prompt:`, and `resource:` take `all` or a 24-hex id on the target
|
|
912
912
|
server — a `tools[]._toolId` or upstream tool row `_id`, an
|
|
913
|
-
`apis[]._apiId`, a `prompts[]._id
|
|
914
|
-
takes a `permissionSets[]._id` or
|
|
915
|
-
`prompt:<_id>`: older grants written as
|
|
916
|
-
validate but are not reported by
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
913
|
+
`apis[]._apiId`, a `prompts[]._id` or upstream prompt row `_id`, or
|
|
914
|
+
a `resources[]._id`; `pset:` takes a `permissionSets[]._id` or
|
|
915
|
+
`all`. Grant prompts with `prompt:<_id>`: older grants written as
|
|
916
|
+
`tool:<prompt _id>` still validate, but they are not reported by
|
|
917
|
+
effective access and do not open the prompt on the MCP endpoint —
|
|
918
|
+
`prompts/list` hides it and `prompts/get` is denied, and `tool:all`
|
|
919
|
+
does not cover prompts there either. Any other shape is rejected with
|
|
920
|
+
400 `validation_failed` ("Invalid capability"), and an id that is
|
|
921
|
+
not attached to the target server with 400 `validation_failed`
|
|
922
|
+
naming the missing item.
|
|
920
923
|
examples:
|
|
921
924
|
- tool:all
|
|
922
925
|
- prompt:6b2c3d4e5f6a7b8c9d0e1f2a
|
package/package.json
CHANGED