@celigo/api-specs 0.2.172 → 0.2.173
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/ai-agent.yml +11 -3
- package/dist/api.yml +15 -4
- package/dist/asynchelper.yml +3 -1
- package/dist/enduser.yml +5 -1
- package/dist/export.yml +14 -4
- package/dist/flow.yml +48 -6
- package/dist/httpconnector.yml +3 -1
- package/dist/httpconnectorresource.yml +3 -1
- package/dist/import.yml +32 -4
- package/dist/mcp-oauth-provider.yml +10 -3
- package/dist/mcp-server.yml +11 -3
- package/dist/tool.yml +40 -6
- package/dist/tradingpartnerconnector.yml +3 -1
- package/package.json +1 -1
- package/schemas.json +1 -1
package/dist/ai-agent.yml
CHANGED
|
@@ -4860,7 +4860,9 @@ components:
|
|
|
4860
4860
|
x-celigo-refModel: scripts
|
|
4861
4861
|
description: |
|
|
4862
4862
|
Reference to the Script resource that contains the filtering logic. This must be a valid
|
|
4863
|
-
ObjectId of a Script resource
|
|
4863
|
+
ObjectId of a Script resource in this account: any other id fails the save with 422
|
|
4864
|
+
("Only a script owned by the user or a script shared by the Integration App can be used
|
|
4865
|
+
at filter.script._scriptId.").
|
|
4864
4866
|
|
|
4865
4867
|
The referenced script must contain the function specified in the `function` field
|
|
4866
4868
|
and must be written to handle filtering specifically. The script receives
|
|
@@ -5597,7 +5599,9 @@ components:
|
|
|
5597
5599
|
Reference to a predefined script resource containing the transformation logic.
|
|
5598
5600
|
|
|
5599
5601
|
The referenced script should contain the function specified in the
|
|
5600
|
-
'function' property.
|
|
5602
|
+
'function' property. It must be a script in this account: any other id fails the save
|
|
5603
|
+
with 422 ("Only a script owned by the user or a script shared by the Integration App can
|
|
5604
|
+
be used at transform.script._scriptId.").
|
|
5601
5605
|
format: objectid
|
|
5602
5606
|
x-celigo-refModel: scripts
|
|
5603
5607
|
examples:
|
|
@@ -5630,7 +5634,11 @@ components:
|
|
|
5630
5634
|
type: string
|
|
5631
5635
|
format: objectId
|
|
5632
5636
|
x-celigo-refModel: scripts
|
|
5633
|
-
description:
|
|
5637
|
+
description: |-
|
|
5638
|
+
Script containing the hook function named in `function`. Send this or `_stackId`, not both.
|
|
5639
|
+
Must be a script in this account: any other id fails the save with 422, naming the hook,
|
|
5640
|
+
such as "Only a script owned by the user or a script shared by the Integration App can
|
|
5641
|
+
be used at hooks.preMap._scriptId." on an import's `preMap`.
|
|
5634
5642
|
_stackId:
|
|
5635
5643
|
type: string
|
|
5636
5644
|
format: objectId
|
package/dist/api.yml
CHANGED
|
@@ -2560,8 +2560,12 @@ components:
|
|
|
2560
2560
|
Script:
|
|
2561
2561
|
type: object
|
|
2562
2562
|
description: |-
|
|
2563
|
-
Script-mode configuration.
|
|
2564
|
-
|
|
2563
|
+
Script-mode configuration. Callers reach the API at `/v1/apis/{_id}/request`, and the
|
|
2564
|
+
referenced function is called with one `options` object: `method`, `headers` (the
|
|
2565
|
+
request's headers, without `Authorization`), `queryString` (the parsed query string),
|
|
2566
|
+
`body`, and `rawBody` (the body as received, a string). On a GET, `body` is absent and
|
|
2567
|
+
`rawBody` is empty. It returns `{statusCode, headers, body}`: `headers` is optional,
|
|
2568
|
+
and `body` may be any JSON value, an array included.
|
|
2565
2569
|
properties:
|
|
2566
2570
|
_scriptId:
|
|
2567
2571
|
type: string
|
|
@@ -2581,8 +2585,15 @@ components:
|
|
|
2581
2585
|
- function
|
|
2582
2586
|
x-celigo-ai-guidance:
|
|
2583
2587
|
- |-
|
|
2584
|
-
In script mode, you provide a custom JavaScript function that receives the
|
|
2585
|
-
object
|
|
2588
|
+
In script mode, you provide a custom JavaScript function that receives the `options`
|
|
2589
|
+
object (`method`, `headers` without `Authorization`, `queryString`, `body`, `rawBody`)
|
|
2590
|
+
and returns the response. This gives you complete control over the API behavior.
|
|
2591
|
+
- |-
|
|
2592
|
+
The function gets no `pathParams` or `queryParams`: read the query from `queryString`.
|
|
2593
|
+
A return without `statusCode`, or with a `null` or missing `body`, answers the caller
|
|
2594
|
+
501 ("'StatusCode' returned by the script cannot be undefined." or "'body' returned by
|
|
2595
|
+
the script cannot be undefined or null."), and an error the function throws answers
|
|
2596
|
+
422 with its message. Any other `statusCode` is sent as returned.
|
|
2586
2597
|
items:
|
|
2587
2598
|
type: object
|
|
2588
2599
|
required:
|
package/dist/asynchelper.yml
CHANGED
|
@@ -3323,7 +3323,9 @@ components:
|
|
|
3323
3323
|
Reference to a predefined script resource containing the transformation logic.
|
|
3324
3324
|
|
|
3325
3325
|
The referenced script should contain the function specified in the
|
|
3326
|
-
'function' property.
|
|
3326
|
+
'function' property. It must be a script in this account: any other id fails the save
|
|
3327
|
+
with 422 ("Only a script owned by the user or a script shared by the Integration App can
|
|
3328
|
+
be used at transform.script._scriptId.").
|
|
3327
3329
|
format: objectid
|
|
3328
3330
|
x-celigo-refModel: scripts
|
|
3329
3331
|
examples:
|
package/dist/enduser.yml
CHANGED
|
@@ -29,7 +29,11 @@ tags:
|
|
|
29
29
|
routes shared with workspace users. The account owner is never an end
|
|
30
30
|
user: owners already have MCP access without an end-user record, the
|
|
31
31
|
invite refuses the owner's address (`owner_self_invite_not_allowed`),
|
|
32
|
-
and the owner never appears in these lists.
|
|
32
|
+
and the owner never appears in these lists. Workspace administrators
|
|
33
|
+
need no record either: under Celigo OAuth they reach every MCP server in
|
|
34
|
+
the environment, and everything on it. Other workspace users need an
|
|
35
|
+
end-user record with grants. Anyone who also holds an end-user record,
|
|
36
|
+
an administrator included, is judged by that record's grants.
|
|
33
37
|
|
|
34
38
|
## End user schema
|
|
35
39
|
|
package/dist/export.yml
CHANGED
|
@@ -3223,7 +3223,9 @@ components:
|
|
|
3223
3223
|
x-celigo-refModel: scripts
|
|
3224
3224
|
description: |
|
|
3225
3225
|
Reference to the Script resource that contains the filtering logic. This must be a valid
|
|
3226
|
-
ObjectId of a Script resource
|
|
3226
|
+
ObjectId of a Script resource in this account: any other id fails the save with 422
|
|
3227
|
+
("Only a script owned by the user or a script shared by the Integration App can be used
|
|
3228
|
+
at filter.script._scriptId.").
|
|
3227
3229
|
|
|
3228
3230
|
The referenced script must contain the function specified in the `function` field
|
|
3229
3231
|
and must be written to handle filtering specifically. The script receives
|
|
@@ -15346,7 +15348,9 @@ components:
|
|
|
15346
15348
|
Reference to a predefined script resource containing the transformation logic.
|
|
15347
15349
|
|
|
15348
15350
|
The referenced script should contain the function specified in the
|
|
15349
|
-
'function' property.
|
|
15351
|
+
'function' property. It must be a script in this account: any other id fails the save
|
|
15352
|
+
with 422 ("Only a script owned by the user or a script shared by the Integration App can
|
|
15353
|
+
be used at transform.script._scriptId.").
|
|
15350
15354
|
format: objectid
|
|
15351
15355
|
x-celigo-refModel: scripts
|
|
15352
15356
|
examples:
|
|
@@ -16865,7 +16869,10 @@ components:
|
|
|
16865
16869
|
type: string
|
|
16866
16870
|
format: objectId
|
|
16867
16871
|
x-celigo-refModel: scripts
|
|
16868
|
-
description:
|
|
16872
|
+
description: |-
|
|
16873
|
+
Script containing the hook function named in `function`. Must be a script in this
|
|
16874
|
+
account: any other id fails the save with 422 ("Only a script owned by the user or
|
|
16875
|
+
a script shared by the Integration App can be used at hooks.preSavePage._scriptId.").
|
|
16869
16876
|
examples:
|
|
16870
16877
|
- 60a2c4e6f321d800129a1a3c
|
|
16871
16878
|
- 5f8e7d2c1b54e6003a9c7e12
|
|
@@ -16976,7 +16983,10 @@ components:
|
|
|
16976
16983
|
type: string
|
|
16977
16984
|
format: objectId
|
|
16978
16985
|
x-celigo-refModel: connectors
|
|
16979
|
-
description:
|
|
16986
|
+
description: |-
|
|
16987
|
+
Connector this export was created from, set when the export is part of an installed
|
|
16988
|
+
integration app. The app's install sets it: a create that sends it is refused with 403
|
|
16989
|
+
("Cannot create an Integration App resource").
|
|
16980
16990
|
unencrypted:
|
|
16981
16991
|
type: object
|
|
16982
16992
|
description: Custom configuration values stored without encryption and returned in API responses.
|
package/dist/flow.yml
CHANGED
|
@@ -440,8 +440,10 @@ paths:
|
|
|
440
440
|
PATCH is safer than PUT for toggling `disabled` or arming debug logging because it won't
|
|
441
441
|
accidentally reset other fields. To arm debug logging, `replace` `/logging/debugUntil` with
|
|
442
442
|
a future ISO timestamp (up to the plan's cap, `logging.maxDebugDuration` minutes on the license
|
|
443
|
-
from `GET /v1/licenses`)
|
|
444
|
-
|
|
443
|
+
from `GET /v1/licenses`). To disarm it, `remove` `/logging/debugUntil`. A `replace` with a
|
|
444
|
+
past timestamp is refused with 422 ("Debug logging end time must be in the future.") and
|
|
445
|
+
leaves the window open, so to end a window early with `replace` alone, set a time a few
|
|
446
|
+
seconds ahead.
|
|
445
447
|
operationId: patchFlow
|
|
446
448
|
tags:
|
|
447
449
|
- Flows
|
|
@@ -475,6 +477,11 @@ paths:
|
|
|
475
477
|
- op: replace
|
|
476
478
|
path: /logging/debugUntil
|
|
477
479
|
value: '2026-05-02T16:00:00.000Z'
|
|
480
|
+
disable_debug:
|
|
481
|
+
summary: Turn debug logging off before the window ends
|
|
482
|
+
value:
|
|
483
|
+
- op: remove
|
|
484
|
+
path: /logging/debugUntil
|
|
478
485
|
update_schedule:
|
|
479
486
|
summary: Change Celigo 6-field schedule cron
|
|
480
487
|
value:
|
|
@@ -1996,7 +2003,7 @@ paths:
|
|
|
1996
2003
|
value:
|
|
1997
2004
|
errors:
|
|
1998
2005
|
- code: inactive_flow
|
|
1999
|
-
message: The flow is
|
|
2006
|
+
message: The flow is inactive. Please enable the flow before retrying.
|
|
2000
2007
|
missing_last_error_at:
|
|
2001
2008
|
summary: selectAll without lastErrorAt
|
|
2002
2009
|
value:
|
|
@@ -3523,7 +3530,22 @@ paths:
|
|
|
3523
3530
|
'401':
|
|
3524
3531
|
$ref: '#/components/responses/401-unauthorized'
|
|
3525
3532
|
'404':
|
|
3526
|
-
|
|
3533
|
+
description: |-
|
|
3534
|
+
Flow not found ("The flow <_id> does not belong to the user <userId>."). The
|
|
3535
|
+
same answer comes back for a flow that exists and has page generators but no page
|
|
3536
|
+
processor or router yet, even when `_exportId` names one of its page generators: give it
|
|
3537
|
+
a step after the export before test-running it. (An `_exportId` that isn't one of the
|
|
3538
|
+
flow's page generators is the 400.)
|
|
3539
|
+
content:
|
|
3540
|
+
application/json:
|
|
3541
|
+
schema:
|
|
3542
|
+
$ref: '#/components/schemas/Error'
|
|
3543
|
+
examples:
|
|
3544
|
+
not_found:
|
|
3545
|
+
summary: Unknown flow id, or a flow with no page processor or router
|
|
3546
|
+
value:
|
|
3547
|
+
errors:
|
|
3548
|
+
- message: The flow 5f8d43a1b9e5a80011a35f2c does not belong to the user 60a2c4e6f321d800129a1a3c.
|
|
3527
3549
|
'422':
|
|
3528
3550
|
$ref: '#/components/responses/422-unprocessable-entity'
|
|
3529
3551
|
/v1/flows/{_id}/test/run/{runId}/{_stepId}:
|
|
@@ -4577,7 +4599,22 @@ components:
|
|
|
4577
4599
|
properties:
|
|
4578
4600
|
postResponseMap:
|
|
4579
4601
|
type: object
|
|
4580
|
-
description:
|
|
4602
|
+
description: |-
|
|
4603
|
+
Hook that runs after the step's response mapping completes. The function receives
|
|
4604
|
+
`options.postResponseMapData` (the records, with response mapping applied) and
|
|
4605
|
+
`options.responseData` (the step's per-record results, in the same order) and returns
|
|
4606
|
+
`postResponseMapData`, same length. A record an import step failed is in neither array
|
|
4607
|
+
unless `proceedOnFailure` is true. Then it is included, without the fields response
|
|
4608
|
+
mapping would have added, and its `responseData` entry has `statusCode` 422 and
|
|
4609
|
+
`errors` as an object keyed by index (`"0"`, `"1"`, ...) rather than an array. A
|
|
4610
|
+
successful entry has no `errors`.
|
|
4611
|
+
x-celigo-ai-guidance:
|
|
4612
|
+
- |-
|
|
4613
|
+
Verified live 2026-10-22 in flow runs of an HTTP import, three records with one
|
|
4614
|
+
answered 404: with `proceedOnFailure` unset, both arrays held the two written
|
|
4615
|
+
records; with `proceedOnFailure: true` they held all three, and a hook that called
|
|
4616
|
+
`.map` on each entry's `errors` threw on the failed one, failing the page. Read
|
|
4617
|
+
errors with `Object.values(entry.errors || {})`.
|
|
4581
4618
|
properties:
|
|
4582
4619
|
function:
|
|
4583
4620
|
type: string
|
|
@@ -6668,7 +6705,12 @@ components:
|
|
|
6668
6705
|
- '500'
|
|
6669
6706
|
message:
|
|
6670
6707
|
type: string
|
|
6671
|
-
description:
|
|
6708
|
+
description: |-
|
|
6709
|
+
Human-readable message. Frequently a JSON string that the adaptor received as a response body.
|
|
6710
|
+
Stored cut to 500 characters: a longer message keeps its first 497 characters followed by
|
|
6711
|
+
`...`. A template parse error (`handlebars_template_parse_error`) repeats the whole template
|
|
6712
|
+
before its parse detail, so in a long template the detail is cut off; invoking the import
|
|
6713
|
+
(`POST /v1/imports/{_id}/invoke`) with the record returns the full message.
|
|
6672
6714
|
examples:
|
|
6673
6715
|
- '{"error":"Internal Server Error"}'
|
|
6674
6716
|
oIndex:
|
package/dist/httpconnector.yml
CHANGED
|
@@ -1613,7 +1613,9 @@ components:
|
|
|
1613
1613
|
x-celigo-refModel: scripts
|
|
1614
1614
|
description: |
|
|
1615
1615
|
Reference to the Script resource that contains the filtering logic. This must be a valid
|
|
1616
|
-
ObjectId of a Script resource
|
|
1616
|
+
ObjectId of a Script resource in this account: any other id fails the save with 422
|
|
1617
|
+
("Only a script owned by the user or a script shared by the Integration App can be used
|
|
1618
|
+
at filter.script._scriptId.").
|
|
1617
1619
|
|
|
1618
1620
|
The referenced script must contain the function specified in the `function` field
|
|
1619
1621
|
and must be written to handle filtering specifically. The script receives
|
|
@@ -1059,7 +1059,9 @@ components:
|
|
|
1059
1059
|
x-celigo-refModel: scripts
|
|
1060
1060
|
description: |
|
|
1061
1061
|
Reference to the Script resource that contains the filtering logic. This must be a valid
|
|
1062
|
-
ObjectId of a Script resource
|
|
1062
|
+
ObjectId of a Script resource in this account: any other id fails the save with 422
|
|
1063
|
+
("Only a script owned by the user or a script shared by the Integration App can be used
|
|
1064
|
+
at filter.script._scriptId.").
|
|
1063
1065
|
|
|
1064
1066
|
The referenced script must contain the function specified in the `function` field
|
|
1065
1067
|
and must be written to handle filtering specifically. The script receives
|
package/dist/import.yml
CHANGED
|
@@ -12617,7 +12617,9 @@ components:
|
|
|
12617
12617
|
x-celigo-refModel: scripts
|
|
12618
12618
|
description: |
|
|
12619
12619
|
Reference to the Script resource that contains the filtering logic. This must be a valid
|
|
12620
|
-
ObjectId of a Script resource
|
|
12620
|
+
ObjectId of a Script resource in this account: any other id fails the save with 422
|
|
12621
|
+
("Only a script owned by the user or a script shared by the Integration App can be used
|
|
12622
|
+
at filter.script._scriptId.").
|
|
12621
12623
|
|
|
12622
12624
|
The referenced script must contain the function specified in the `function` field
|
|
12623
12625
|
and must be written to handle filtering specifically. The script receives
|
|
@@ -12676,7 +12678,11 @@ components:
|
|
|
12676
12678
|
type: string
|
|
12677
12679
|
format: objectId
|
|
12678
12680
|
x-celigo-refModel: scripts
|
|
12679
|
-
description:
|
|
12681
|
+
description: |-
|
|
12682
|
+
Script containing the hook function named in `function`. Send this or `_stackId`, not both.
|
|
12683
|
+
Must be a script in this account: any other id fails the save with 422, naming the hook,
|
|
12684
|
+
such as "Only a script owned by the user or a script shared by the Integration App can
|
|
12685
|
+
be used at hooks.preMap._scriptId." on an import's `preMap`.
|
|
12680
12686
|
_stackId:
|
|
12681
12687
|
type: string
|
|
12682
12688
|
format: objectId
|
|
@@ -15249,7 +15255,9 @@ components:
|
|
|
15249
15255
|
Reference to a predefined script resource containing the transformation logic.
|
|
15250
15256
|
|
|
15251
15257
|
The referenced script should contain the function specified in the
|
|
15252
|
-
'function' property.
|
|
15258
|
+
'function' property. It must be a script in this account: any other id fails the save
|
|
15259
|
+
with 422 ("Only a script owned by the user or a script shared by the Integration App can
|
|
15260
|
+
be used at transform.script._scriptId.").
|
|
15253
15261
|
format: objectid
|
|
15254
15262
|
x-celigo-refModel: scripts
|
|
15255
15263
|
examples:
|
|
@@ -16872,6 +16880,15 @@ components:
|
|
|
16872
16880
|
plus whatever this step's response mapping merges back. A value later steps need
|
|
16873
16881
|
belongs in the source export's `preSavePage`, in this step's `postResponseMap` hook on
|
|
16874
16882
|
the flow, or in the later import's own `preMap`.
|
|
16883
|
+
|
|
16884
|
+
The function returns one element per record in `options.data`, in order:
|
|
16885
|
+
`{ data: <record> }` sends the record and `{ errors: [{ code, message }] }` fails it.
|
|
16886
|
+
An element without `data` — `{}`, or the record itself returned unwrapped — skips that
|
|
16887
|
+
record with no error: nothing is sent and the record is reported `ignored: true` at
|
|
16888
|
+
stage `preMapHook`. A return with more or fewer elements fails every record on the page
|
|
16889
|
+
with `invalid_extension_response` ("Extension result doesn't contain the same number
|
|
16890
|
+
of elements as the request object. Expected 2, got 1. Extension returned statusCode
|
|
16891
|
+
200"), source `pre_map_hook`.
|
|
16875
16892
|
x-celigo-ai-guidance:
|
|
16876
16893
|
- |-
|
|
16877
16894
|
Pre-map JavaScript hook — runs once per page BEFORE the
|
|
@@ -16883,7 +16900,18 @@ components:
|
|
|
16883
16900
|
renames — mappings handle those.
|
|
16884
16901
|
|
|
16885
16902
|
Runtime contract: ``options.data[]`` (the page of upstream
|
|
16886
|
-
records) → array of the same length
|
|
16903
|
+
records) → array of the same length, each element
|
|
16904
|
+
``{data: record}`` or ``{errors: [...]}``. A bare record in
|
|
16905
|
+
the returned array is skipped without an error, so
|
|
16906
|
+
``options.data.map(r => { r.total = t; return r })`` sends
|
|
16907
|
+
nothing.
|
|
16908
|
+
- |-
|
|
16909
|
+
Verified live 2026-10-22 by invoking an HTTP import with a
|
|
16910
|
+
Mapper 2.0 number mapping: one ``{data: record}`` per record
|
|
16911
|
+
sent both records; the bare records sent nothing and both
|
|
16912
|
+
came back ``ignored: true``, ``stage: preMapHook``, with no
|
|
16913
|
+
error; one element for two records failed both with 422
|
|
16914
|
+
``invalid_extension_response``.
|
|
16887
16915
|
allOf:
|
|
16888
16916
|
- $ref: '#/components/schemas/Hook'
|
|
16889
16917
|
postMap:
|
|
@@ -329,15 +329,22 @@ components:
|
|
|
329
329
|
- https://mcp.example.com
|
|
330
330
|
scopes:
|
|
331
331
|
type: array
|
|
332
|
-
description:
|
|
332
|
+
description: |-
|
|
333
|
+
The MCP operations OAuth callers may use on every server that references this
|
|
334
|
+
provider, and the scopes those servers advertise as `scopes_supported`. Calling a
|
|
335
|
+
tool (`tools/call`) needs `mcp:write`; listing tools, prompts and resources, and
|
|
336
|
+
reading prompts and resources, accept either scope. Listing only `mcp:read` refuses
|
|
337
|
+
every tool call with 403 `insufficient_scope`, whatever the token carries; an empty
|
|
338
|
+
list allows both. Each request also needs its scope in the caller's token, so a
|
|
339
|
+
token issued with only `mcp:read` can list and read but can't call a tool.
|
|
333
340
|
items:
|
|
334
341
|
type: string
|
|
335
342
|
enum:
|
|
336
343
|
- mcp:read
|
|
337
344
|
- mcp:write
|
|
338
345
|
x-enumDescriptions:
|
|
339
|
-
mcp:read:
|
|
340
|
-
mcp:write:
|
|
346
|
+
mcp:read: Lists tools, prompts and resources and reads prompts and resources; can't call a tool.
|
|
347
|
+
mcp:write: Calls tools (`tools/call`); also lists and reads.
|
|
341
348
|
examples:
|
|
342
349
|
- - mcp:read
|
|
343
350
|
- mcp:write
|
package/dist/mcp-server.yml
CHANGED
|
@@ -3082,7 +3082,15 @@ components:
|
|
|
3082
3082
|
scopes:
|
|
3083
3083
|
type: array
|
|
3084
3084
|
description: |-
|
|
3085
|
-
|
|
3085
|
+
For an external provider or inline OAuth: the MCP operations OAuth callers may use on
|
|
3086
|
+
this server, and the scopes its OAuth metadata advertises as `scopes_supported`.
|
|
3087
|
+
Calling a tool (`tools/call`) needs `mcp:write`; listing tools, prompts and resources,
|
|
3088
|
+
and reading prompts and resources, accept either scope. A server that lists only
|
|
3089
|
+
`mcp:read` refuses every tool call with 403 `insufficient_scope`, whatever the token
|
|
3090
|
+
carries; an empty list allows both. Under Celigo OAuth (`useCeligoOauth`) this list
|
|
3091
|
+
isn't used: the server allows both scopes. Either way each request also needs its
|
|
3092
|
+
scope in the caller's token, so a token issued with only `mcp:read` can list and read
|
|
3093
|
+
but can't call a tool. API-token callers aren't scope-checked.
|
|
3086
3094
|
|
|
3087
3095
|
Rejected values return `enum` / `invalid_field_value` on
|
|
3088
3096
|
`oauth.scopes.<index>`.
|
|
@@ -3092,8 +3100,8 @@ components:
|
|
|
3092
3100
|
- mcp:read
|
|
3093
3101
|
- mcp:write
|
|
3094
3102
|
x-enumDescriptions:
|
|
3095
|
-
mcp:read:
|
|
3096
|
-
mcp:write:
|
|
3103
|
+
mcp:read: Lists tools, prompts and resources and reads prompts and resources; can't call a tool.
|
|
3104
|
+
mcp:write: Calls tools (`tools/call`); also lists and reads.
|
|
3097
3105
|
examples:
|
|
3098
3106
|
- - mcp:read
|
|
3099
3107
|
- mcp:write
|
package/dist/tool.yml
CHANGED
|
@@ -6358,7 +6358,9 @@ components:
|
|
|
6358
6358
|
Reference to a predefined script resource containing the transformation logic.
|
|
6359
6359
|
|
|
6360
6360
|
The referenced script should contain the function specified in the
|
|
6361
|
-
'function' property.
|
|
6361
|
+
'function' property. It must be a script in this account: any other id fails the save
|
|
6362
|
+
with 422 ("Only a script owned by the user or a script shared by the Integration App can
|
|
6363
|
+
be used at transform.script._scriptId.").
|
|
6362
6364
|
format: objectid
|
|
6363
6365
|
x-celigo-refModel: scripts
|
|
6364
6366
|
examples:
|
|
@@ -24176,7 +24178,9 @@ components:
|
|
|
24176
24178
|
x-celigo-refModel: scripts
|
|
24177
24179
|
description: |
|
|
24178
24180
|
Reference to the Script resource that contains the filtering logic. This must be a valid
|
|
24179
|
-
ObjectId of a Script resource
|
|
24181
|
+
ObjectId of a Script resource in this account: any other id fails the save with 422
|
|
24182
|
+
("Only a script owned by the user or a script shared by the Integration App can be used
|
|
24183
|
+
at filter.script._scriptId.").
|
|
24180
24184
|
|
|
24181
24185
|
The referenced script must contain the function specified in the `function` field
|
|
24182
24186
|
and must be written to handle filtering specifically. The script receives
|
|
@@ -24235,7 +24239,11 @@ components:
|
|
|
24235
24239
|
type: string
|
|
24236
24240
|
format: objectId
|
|
24237
24241
|
x-celigo-refModel: scripts
|
|
24238
|
-
description:
|
|
24242
|
+
description: |-
|
|
24243
|
+
Script containing the hook function named in `function`. Send this or `_stackId`, not both.
|
|
24244
|
+
Must be a script in this account: any other id fails the save with 422, naming the hook,
|
|
24245
|
+
such as "Only a script owned by the user or a script shared by the Integration App can
|
|
24246
|
+
be used at hooks.preMap._scriptId." on an import's `preMap`.
|
|
24239
24247
|
_stackId:
|
|
24240
24248
|
type: string
|
|
24241
24249
|
format: objectId
|
|
@@ -25862,6 +25870,15 @@ components:
|
|
|
25862
25870
|
plus whatever this step's response mapping merges back. A value later steps need
|
|
25863
25871
|
belongs in the source export's `preSavePage`, in this step's `postResponseMap` hook on
|
|
25864
25872
|
the flow, or in the later import's own `preMap`.
|
|
25873
|
+
|
|
25874
|
+
The function returns one element per record in `options.data`, in order:
|
|
25875
|
+
`{ data: <record> }` sends the record and `{ errors: [{ code, message }] }` fails it.
|
|
25876
|
+
An element without `data` — `{}`, or the record itself returned unwrapped — skips that
|
|
25877
|
+
record with no error: nothing is sent and the record is reported `ignored: true` at
|
|
25878
|
+
stage `preMapHook`. A return with more or fewer elements fails every record on the page
|
|
25879
|
+
with `invalid_extension_response` ("Extension result doesn't contain the same number
|
|
25880
|
+
of elements as the request object. Expected 2, got 1. Extension returned statusCode
|
|
25881
|
+
200"), source `pre_map_hook`.
|
|
25865
25882
|
x-celigo-ai-guidance:
|
|
25866
25883
|
- |-
|
|
25867
25884
|
Pre-map JavaScript hook — runs once per page BEFORE the
|
|
@@ -25873,7 +25890,18 @@ components:
|
|
|
25873
25890
|
renames — mappings handle those.
|
|
25874
25891
|
|
|
25875
25892
|
Runtime contract: ``options.data[]`` (the page of upstream
|
|
25876
|
-
records) → array of the same length
|
|
25893
|
+
records) → array of the same length, each element
|
|
25894
|
+
``{data: record}`` or ``{errors: [...]}``. A bare record in
|
|
25895
|
+
the returned array is skipped without an error, so
|
|
25896
|
+
``options.data.map(r => { r.total = t; return r })`` sends
|
|
25897
|
+
nothing.
|
|
25898
|
+
- |-
|
|
25899
|
+
Verified live 2026-10-22 by invoking an HTTP import with a
|
|
25900
|
+
Mapper 2.0 number mapping: one ``{data: record}`` per record
|
|
25901
|
+
sent both records; the bare records sent nothing and both
|
|
25902
|
+
came back ``ignored: true``, ``stage: preMapHook``, with no
|
|
25903
|
+
error; one element for two records failed both with 422
|
|
25904
|
+
``invalid_extension_response``.
|
|
25877
25905
|
allOf:
|
|
25878
25906
|
- $ref: '#/components/schemas/Hook'
|
|
25879
25907
|
postMap:
|
|
@@ -38163,7 +38191,10 @@ components:
|
|
|
38163
38191
|
type: string
|
|
38164
38192
|
format: objectId
|
|
38165
38193
|
x-celigo-refModel: scripts
|
|
38166
|
-
description:
|
|
38194
|
+
description: |-
|
|
38195
|
+
Script containing the hook function named in `function`. Must be a script in this
|
|
38196
|
+
account: any other id fails the save with 422 ("Only a script owned by the user or
|
|
38197
|
+
a script shared by the Integration App can be used at hooks.preSavePage._scriptId.").
|
|
38167
38198
|
examples:
|
|
38168
38199
|
- 60a2c4e6f321d800129a1a3c
|
|
38169
38200
|
- 5f8e7d2c1b54e6003a9c7e12
|
|
@@ -38274,7 +38305,10 @@ components:
|
|
|
38274
38305
|
type: string
|
|
38275
38306
|
format: objectId
|
|
38276
38307
|
x-celigo-refModel: connectors
|
|
38277
|
-
description:
|
|
38308
|
+
description: |-
|
|
38309
|
+
Connector this export was created from, set when the export is part of an installed
|
|
38310
|
+
integration app. The app's install sets it: a create that sends it is refused with 403
|
|
38311
|
+
("Cannot create an Integration App resource").
|
|
38278
38312
|
unencrypted:
|
|
38279
38313
|
type: object
|
|
38280
38314
|
description: Custom configuration values stored without encryption and returned in API responses.
|
|
@@ -928,7 +928,9 @@ components:
|
|
|
928
928
|
x-celigo-refModel: scripts
|
|
929
929
|
description: |
|
|
930
930
|
Reference to the Script resource that contains the filtering logic. This must be a valid
|
|
931
|
-
ObjectId of a Script resource
|
|
931
|
+
ObjectId of a Script resource in this account: any other id fails the save with 422
|
|
932
|
+
("Only a script owned by the user or a script shared by the Integration App can be used
|
|
933
|
+
at filter.script._scriptId.").
|
|
932
934
|
|
|
933
935
|
The referenced script must contain the function specified in the `function` field
|
|
934
936
|
and must be written to handle filtering specifically. The script receives
|
package/package.json
CHANGED