@celigo/api-specs 0.2.275 → 0.2.277
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 +9 -4
- package/dist/connection.yml +125 -13
- package/dist/enduser.yml +9 -4
- package/dist/mcp-server.yml +9 -4
- package/dist/tool.yml +9 -4
- package/package.json +1 -1
- package/schemas.json +2 -2
package/dist/api.yml
CHANGED
|
@@ -8707,10 +8707,15 @@ components:
|
|
|
8707
8707
|
description: |-
|
|
8708
8708
|
When true, the connection has been taken offline: a flow run requested while its
|
|
8709
8709
|
export's connection is offline is accepted, but its job waits `queued` and starts by
|
|
8710
|
-
itself once the connection is back online.
|
|
8711
|
-
|
|
8712
|
-
|
|
8713
|
-
|
|
8710
|
+
itself once the connection is back online. Every connection test writes the flag from
|
|
8711
|
+
its outcome — the test a create or `PUT` runs, the UI's Test connection and
|
|
8712
|
+
`GET`/`POST /v1/connections/{_id}/ping` alike: a failed test sets it, a passing test
|
|
8713
|
+
clears it (a ping of an `http` connection with no `http.ping` runs no test and leaves
|
|
8714
|
+
it unchanged); the platform re-tests an offline connection on its own (about once an hour,
|
|
8715
|
+
and after six failed attempts leaves it offline until someone fixes it) and tests an
|
|
8716
|
+
online one when a client asks. After a write the result arrives in the response or, when the
|
|
8717
|
+
target is slow to answer, shortly afterwards (the audit log records a `system` change;
|
|
8718
|
+
`lastModified` doesn't move), so read it again a few seconds after the write. On an `http` connection
|
|
8714
8719
|
the write runs the test only when `http.ping` is configured, and an `http` connection
|
|
8715
8720
|
that was never tested has no `offline` key. A run also takes an `http` connection
|
|
8716
8721
|
offline when a request gets its authentication-failure status (see
|
package/dist/connection.yml
CHANGED
|
@@ -1217,9 +1217,13 @@ paths:
|
|
|
1217
1217
|
GET variant of the saved-connection ping — identical behavior to
|
|
1218
1218
|
`POST /v1/connections/{_id}/ping`, with no request body to send. Runs the adaptor's ping
|
|
1219
1219
|
routine against the connection identified by `_id` to verify its credentials and network
|
|
1220
|
-
configuration still work; no data is read
|
|
1221
|
-
|
|
1222
|
-
|
|
1220
|
+
configuration still work; no application data is read or written. It is the same test as
|
|
1221
|
+
the UI's Test connection, and the platform writes the connection's `offline` flag from its
|
|
1222
|
+
outcome: a failing ping sets `offline: true` (the connection's flows wait queued and the
|
|
1223
|
+
offline notification is sent), a passing one sets `offline: false`. An `http` connection with
|
|
1224
|
+
no `http.ping` answers `{code: 200}` without sending any request — no test ran, so `offline` is
|
|
1225
|
+
left unchanged — unless it authorizes with an authorization code and holds no token yet: that one
|
|
1226
|
+
answers `missing_token`.
|
|
1223
1227
|
|
|
1224
1228
|
Inspect the response body, not the HTTP status, to determine the outcome: success and
|
|
1225
1229
|
adaptor-level failures both return HTTP 200 — success is `{code: 200}`, failures are
|
|
@@ -1297,16 +1301,40 @@ paths:
|
|
|
1297
1301
|
{code: 200}, or `missing_token` for an authorization-code OAuth connection that holds no
|
|
1298
1302
|
token yet. An OAuth connection requests a token only when the target answers 401, so a
|
|
1299
1303
|
ping of an endpoint that needs no authentication passes without testing the OAuth setup.
|
|
1304
|
+
- |-
|
|
1305
|
+
A failed ping has a side effect: the platform marks the connection offline, and the jobs
|
|
1306
|
+
of the flows that use it wait `queued` until a test passes. The platform re-tests offline
|
|
1307
|
+
connections on its own (about once an hour, and after six failed attempts leaves the
|
|
1308
|
+
connection offline until someone fixes it); an online connection is tested when a client
|
|
1309
|
+
asks for it (this endpoint, the UI's Test connection, a save). A monitor that polls this
|
|
1310
|
+
endpoint on an online connection therefore turns every slow or refused answer into an
|
|
1311
|
+
outage — read the `offline` field from `GET /v1/connections/{_id}` instead, which has no
|
|
1312
|
+
side effect.
|
|
1313
|
+
- |-
|
|
1314
|
+
When the application does not answer within the platform's own limit on the test
|
|
1315
|
+
(observed at about six minutes), the platform records the test as failed with
|
|
1316
|
+
`{code: "unexpected_error:request_aborted", source: "internal"}` — the error the offline
|
|
1317
|
+
notification carries — and marks the connection offline all the same. The error names
|
|
1318
|
+
the platform's limit, not a credential problem; re-authorizing does not address it.
|
|
1319
|
+
- |-
|
|
1320
|
+
A NetSuite `token-auto` connection that holds no token — created with the account id
|
|
1321
|
+
only, or between a Revoke and a completed Authorize — saves `offline: true` and answers
|
|
1322
|
+
this ping with `netsuite_wsdl_tba_mandatory` (`source: connection`); completing the
|
|
1323
|
+
authorization supplies the token.
|
|
1300
1324
|
post:
|
|
1301
1325
|
x-internal: false
|
|
1302
1326
|
summary: Ping an existing connection
|
|
1303
1327
|
description: |-
|
|
1304
1328
|
Runs the adaptor's ping routine against a saved connection to verify its credentials and
|
|
1305
|
-
network configuration still work; no data is read
|
|
1329
|
+
network configuration still work; no application data is read or written. It is the same
|
|
1330
|
+
test as the UI's Test connection, and the platform writes the connection's `offline` flag
|
|
1331
|
+
from its outcome: a failing ping sets `offline: true` (the connection's flows wait queued
|
|
1332
|
+
and the offline notification is sent), a passing one sets `offline: false`. The check is
|
|
1306
1333
|
adaptor-specific (HTTP sends the `http.ping` request, RDBMS/JDBC open a driver session,
|
|
1307
1334
|
MCP issues a tools/list, NetSuite/Salesforce do a token or session validation). An `http`
|
|
1308
|
-
connection with no `http.ping` passes with `{code: 200}` without sending any request
|
|
1309
|
-
the ping proves nothing about it until a ping is
|
|
1335
|
+
connection with no `http.ping` passes with `{code: 200}` without sending any request — no
|
|
1336
|
+
test ran, so `offline` is left unchanged — and the ping proves nothing about it until a ping is
|
|
1337
|
+
configured; one that authorizes with an
|
|
1310
1338
|
authorization code and holds no token yet answers `missing_token` instead. An OAuth
|
|
1311
1339
|
connection requests a token only when the target answers 401, so a ping of an endpoint
|
|
1312
1340
|
that needs no authentication passes without testing the OAuth setup. The request body
|
|
@@ -1387,6 +1415,13 @@ paths:
|
|
|
1387
1415
|
- code: missing_token
|
|
1388
1416
|
message: connection is not authorized completely, please authorize the connection once again.
|
|
1389
1417
|
source: connection
|
|
1418
|
+
netsuite_wsdl_tba_mandatory:
|
|
1419
|
+
summary: NetSuite token connection holds no token to present
|
|
1420
|
+
value:
|
|
1421
|
+
errors:
|
|
1422
|
+
- code: netsuite_wsdl_tba_mandatory
|
|
1423
|
+
message: The WSDL version being used requires Token Based Authentication(TBA). Please use TBA or choose a different WSDL version.
|
|
1424
|
+
source: connection
|
|
1390
1425
|
mcp_tools_list_failed:
|
|
1391
1426
|
summary: MCP server handshake failed
|
|
1392
1427
|
value:
|
|
@@ -1412,8 +1447,9 @@ paths:
|
|
|
1412
1447
|
message: unable to find connection for the given id.
|
|
1413
1448
|
x-celigo-ai-guidance:
|
|
1414
1449
|
- |-
|
|
1415
|
-
Tests the connectivity and authentication of a connection
|
|
1416
|
-
|
|
1450
|
+
Tests the connectivity and authentication of a connection; no application data is read or
|
|
1451
|
+
written, and a failed test sets the connection's `offline` flag. This endpoint verifies that
|
|
1452
|
+
the connection credentials are valid and the target system is reachable.
|
|
1417
1453
|
|
|
1418
1454
|
The ping operation will:
|
|
1419
1455
|
- Validate authentication credentials
|
|
@@ -1426,6 +1462,26 @@ paths:
|
|
|
1426
1462
|
token yet), so it proves nothing until a ping is configured — one that needs the
|
|
1427
1463
|
connection's credentials, since an OAuth connection requests a token only when the target
|
|
1428
1464
|
answers 401.
|
|
1465
|
+
- |-
|
|
1466
|
+
A failed ping has a side effect: the platform marks the connection offline, and the jobs
|
|
1467
|
+
of the flows that use it wait `queued` until a test passes. The platform re-tests offline
|
|
1468
|
+
connections on its own (about once an hour, and after six failed attempts leaves the
|
|
1469
|
+
connection offline until someone fixes it); an online connection is tested when a client
|
|
1470
|
+
asks for it (this endpoint, the UI's Test connection, a save). A monitor that polls this
|
|
1471
|
+
endpoint on an online connection therefore turns every slow or refused answer into an
|
|
1472
|
+
outage — read the `offline` field from `GET /v1/connections/{_id}` instead, which has no
|
|
1473
|
+
side effect.
|
|
1474
|
+
- |-
|
|
1475
|
+
When the application does not answer within the platform's own limit on the test
|
|
1476
|
+
(observed at about six minutes), the platform records the test as failed with
|
|
1477
|
+
`{code: "unexpected_error:request_aborted", source: "internal"}` — the error the offline
|
|
1478
|
+
notification carries — and marks the connection offline all the same. The error names
|
|
1479
|
+
the platform's limit, not a credential problem; re-authorizing does not address it.
|
|
1480
|
+
- |-
|
|
1481
|
+
A NetSuite `token-auto` connection that holds no token — created with the account id
|
|
1482
|
+
only, or between a Revoke and a completed Authorize — saves `offline: true` and answers
|
|
1483
|
+
this ping with `netsuite_wsdl_tba_mandatory` (`source: connection`); completing the
|
|
1484
|
+
authorization supplies the token.
|
|
1429
1485
|
/v1/connections/{_id}/proxy:
|
|
1430
1486
|
post:
|
|
1431
1487
|
x-internal: false
|
|
@@ -3235,6 +3291,9 @@ paths:
|
|
|
3235
3291
|
Use this instead of the connection's `netsuite.suiteAppInstalled`, which reflects only the
|
|
3236
3292
|
SuiteApp as detected the last time the connection authenticated. For a single combined
|
|
3237
3293
|
reachability result, or for a Salesforce connection, use `GET /v1/connections/{_id}/distributed`.
|
|
3294
|
+
|
|
3295
|
+
A service token scoped to the connection is accepted here while `distributed` refuses it
|
|
3296
|
+
today; IO-239269 and IO-239271 align the two routes on the connection scope.
|
|
3238
3297
|
operationId: getConnectionDistributedApps
|
|
3239
3298
|
tags:
|
|
3240
3299
|
- Connections
|
|
@@ -3321,6 +3380,12 @@ paths:
|
|
|
3321
3380
|
- |-
|
|
3322
3381
|
A non-NetSuite connection answers 422 with the message "invalid connection type: <type>"
|
|
3323
3382
|
and no `code`; an unknown `_id` answers 404 `invalid_ref`.
|
|
3383
|
+
- |-
|
|
3384
|
+
A service token scoped to the connection is accepted here while
|
|
3385
|
+
`GET /v1/connections/{_id}/distributed` refuses it with 401 `access_restricted` today
|
|
3386
|
+
(IO-239269 and IO-239271 align the two routes on the connection scope): read a 200 as the
|
|
3387
|
+
saved NetSuite credentials and the components answering, and a 401 from `distributed`
|
|
3388
|
+
beside it as the token's scope, not the connection.
|
|
3324
3389
|
/v1/connections/{_id}/distributed:
|
|
3325
3390
|
get:
|
|
3326
3391
|
x-internal: false
|
|
@@ -3336,6 +3401,10 @@ paths:
|
|
|
3336
3401
|
Use `GET /v1/connections/{_id}/distributedApps` instead when you need the NetSuite bundle
|
|
3337
3402
|
and SuiteApp reported separately; this endpoint is the only one of the two that also covers
|
|
3338
3403
|
Salesforce. Any other connection type is rejected with 422.
|
|
3404
|
+
|
|
3405
|
+
Today the call needs a full-access API token: a service token scoped to the connection is
|
|
3406
|
+
refused with 401 `access_restricted` even for its own connection, while `distributedApps`
|
|
3407
|
+
accepts the same token. IO-239269 adds the connection scope to this route's check.
|
|
3339
3408
|
operationId: pingConnectionDistributedAdaptor
|
|
3340
3409
|
tags:
|
|
3341
3410
|
- Connections
|
|
@@ -3374,7 +3443,7 @@ paths:
|
|
|
3374
3443
|
resBody: 'Connection is taken offline: expired access/refresh token'
|
|
3375
3444
|
bundleURL: https://mycompany.my.salesforce.com/packaging/installPackage.apexp?p0=04t3m000000Q89d
|
|
3376
3445
|
'401':
|
|
3377
|
-
$ref: '#/components/responses/401-unauthorized'
|
|
3446
|
+
$ref: '#/components/responses/401-unauthorized-or-scoped-token'
|
|
3378
3447
|
'404':
|
|
3379
3448
|
description: No connection found for the given `_id`.
|
|
3380
3449
|
content:
|
|
@@ -3399,6 +3468,13 @@ paths:
|
|
|
3399
3468
|
errors:
|
|
3400
3469
|
- message: 'invalid connection type: http'
|
|
3401
3470
|
x-celigo-ai-guidance:
|
|
3471
|
+
- |-
|
|
3472
|
+
Advise a full-access API token for this call: a service token scoped to the connection is
|
|
3473
|
+
refused with 401 `access_restricted` ("You don't have the required permissions to perform
|
|
3474
|
+
the action.") even for its own connection (IO-239269 adds the connection scope to the
|
|
3475
|
+
route's check). The same scoped token is accepted by
|
|
3476
|
+
`GET /v1/connections/{_id}/distributedApps`, so a 401 here beside a 200 there is the
|
|
3477
|
+
token's scope, not the connection or NetSuite.
|
|
3402
3478
|
- |-
|
|
3403
3479
|
A non-NetSuite, non-Salesforce connection answers 422 with the message "invalid
|
|
3404
3480
|
connection type: <type>" and no `code`; an unknown `_id` answers 404 `invalid_ref`.
|
|
@@ -4379,10 +4455,15 @@ components:
|
|
|
4379
4455
|
description: |-
|
|
4380
4456
|
When true, the connection has been taken offline: a flow run requested while its
|
|
4381
4457
|
export's connection is offline is accepted, but its job waits `queued` and starts by
|
|
4382
|
-
itself once the connection is back online.
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4458
|
+
itself once the connection is back online. Every connection test writes the flag from
|
|
4459
|
+
its outcome — the test a create or `PUT` runs, the UI's Test connection and
|
|
4460
|
+
`GET`/`POST /v1/connections/{_id}/ping` alike: a failed test sets it, a passing test
|
|
4461
|
+
clears it (a ping of an `http` connection with no `http.ping` runs no test and leaves
|
|
4462
|
+
it unchanged); the platform re-tests an offline connection on its own (about once an hour,
|
|
4463
|
+
and after six failed attempts leaves it offline until someone fixes it) and tests an
|
|
4464
|
+
online one when a client asks. After a write the result arrives in the response or, when the
|
|
4465
|
+
target is slow to answer, shortly afterwards (the audit log records a `system` change;
|
|
4466
|
+
`lastModified` doesn't move), so read it again a few seconds after the write. On an `http` connection
|
|
4386
4467
|
the write runs the test only when `http.ping` is configured, and an `http` connection
|
|
4387
4468
|
that was never tested has no `offline` key. A run also takes an `http` connection
|
|
4388
4469
|
offline when a request gets its authentication-failure status (see
|
|
@@ -12122,6 +12203,37 @@ components:
|
|
|
12122
12203
|
errors:
|
|
12123
12204
|
- code: dependencies_not_deleted
|
|
12124
12205
|
message: export 6902d88c10b42b2eaac9b2a1 must be deleted before you can delete connection 6398ddf316be761fb16a6523
|
|
12206
|
+
401-unauthorized-or-scoped-token:
|
|
12207
|
+
description: |-
|
|
12208
|
+
Unauthorized: the request has no valid bearer token (the auth middleware's bare `{message}`
|
|
12209
|
+
body, as on every route), or the token is a service token scoped to the connection — the
|
|
12210
|
+
route refuses it today with `access_restricted` in the standard `{errors: [...]}` envelope,
|
|
12211
|
+
even for the connection it is scoped to (IO-239269 adds the connection scope to the route's
|
|
12212
|
+
check). Call it with a full-access API token.
|
|
12213
|
+
content:
|
|
12214
|
+
application/json:
|
|
12215
|
+
schema:
|
|
12216
|
+
oneOf:
|
|
12217
|
+
- $ref: '#/components/schemas/Error'
|
|
12218
|
+
- type: object
|
|
12219
|
+
description: The auth middleware's bare body for a missing or invalid token.
|
|
12220
|
+
properties:
|
|
12221
|
+
message:
|
|
12222
|
+
type: string
|
|
12223
|
+
description: '`Unauthorized` (no Authorization header) or `Bearer Authentication Failed`.'
|
|
12224
|
+
required:
|
|
12225
|
+
- message
|
|
12226
|
+
examples:
|
|
12227
|
+
scopedToken:
|
|
12228
|
+
summary: A service token scoped to the connection
|
|
12229
|
+
value:
|
|
12230
|
+
errors:
|
|
12231
|
+
- code: access_restricted
|
|
12232
|
+
message: You don't have the required permissions to perform the action.
|
|
12233
|
+
invalidToken:
|
|
12234
|
+
summary: Bearer token invalid or revoked
|
|
12235
|
+
value:
|
|
12236
|
+
message: Bearer Authentication Failed
|
|
12125
12237
|
422-unprocessable-entity:
|
|
12126
12238
|
description: |
|
|
12127
12239
|
Unprocessable entity. The request was well-formed but was unable to be followed due to semantic errors.
|
package/dist/enduser.yml
CHANGED
|
@@ -2393,10 +2393,15 @@ components:
|
|
|
2393
2393
|
description: |-
|
|
2394
2394
|
When true, the connection has been taken offline: a flow run requested while its
|
|
2395
2395
|
export's connection is offline is accepted, but its job waits `queued` and starts by
|
|
2396
|
-
itself once the connection is back online.
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2396
|
+
itself once the connection is back online. Every connection test writes the flag from
|
|
2397
|
+
its outcome — the test a create or `PUT` runs, the UI's Test connection and
|
|
2398
|
+
`GET`/`POST /v1/connections/{_id}/ping` alike: a failed test sets it, a passing test
|
|
2399
|
+
clears it (a ping of an `http` connection with no `http.ping` runs no test and leaves
|
|
2400
|
+
it unchanged); the platform re-tests an offline connection on its own (about once an hour,
|
|
2401
|
+
and after six failed attempts leaves it offline until someone fixes it) and tests an
|
|
2402
|
+
online one when a client asks. After a write the result arrives in the response or, when the
|
|
2403
|
+
target is slow to answer, shortly afterwards (the audit log records a `system` change;
|
|
2404
|
+
`lastModified` doesn't move), so read it again a few seconds after the write. On an `http` connection
|
|
2400
2405
|
the write runs the test only when `http.ping` is configured, and an `http` connection
|
|
2401
2406
|
that was never tested has no `offline` key. A run also takes an `http` connection
|
|
2402
2407
|
offline when a request gets its authentication-failure status (see
|
package/dist/mcp-server.yml
CHANGED
|
@@ -5531,10 +5531,15 @@ components:
|
|
|
5531
5531
|
description: |-
|
|
5532
5532
|
When true, the connection has been taken offline: a flow run requested while its
|
|
5533
5533
|
export's connection is offline is accepted, but its job waits `queued` and starts by
|
|
5534
|
-
itself once the connection is back online.
|
|
5535
|
-
|
|
5536
|
-
|
|
5537
|
-
|
|
5534
|
+
itself once the connection is back online. Every connection test writes the flag from
|
|
5535
|
+
its outcome — the test a create or `PUT` runs, the UI's Test connection and
|
|
5536
|
+
`GET`/`POST /v1/connections/{_id}/ping` alike: a failed test sets it, a passing test
|
|
5537
|
+
clears it (a ping of an `http` connection with no `http.ping` runs no test and leaves
|
|
5538
|
+
it unchanged); the platform re-tests an offline connection on its own (about once an hour,
|
|
5539
|
+
and after six failed attempts leaves it offline until someone fixes it) and tests an
|
|
5540
|
+
online one when a client asks. After a write the result arrives in the response or, when the
|
|
5541
|
+
target is slow to answer, shortly afterwards (the audit log records a `system` change;
|
|
5542
|
+
`lastModified` doesn't move), so read it again a few seconds after the write. On an `http` connection
|
|
5538
5543
|
the write runs the test only when `http.ping` is configured, and an `http` connection
|
|
5539
5544
|
that was never tested has no `offline` key. A run also takes an `http` connection
|
|
5540
5545
|
offline when a request gets its authentication-failure status (see
|
package/dist/tool.yml
CHANGED
|
@@ -7875,10 +7875,15 @@ components:
|
|
|
7875
7875
|
description: |-
|
|
7876
7876
|
When true, the connection has been taken offline: a flow run requested while its
|
|
7877
7877
|
export's connection is offline is accepted, but its job waits `queued` and starts by
|
|
7878
|
-
itself once the connection is back online.
|
|
7879
|
-
|
|
7880
|
-
|
|
7881
|
-
|
|
7878
|
+
itself once the connection is back online. Every connection test writes the flag from
|
|
7879
|
+
its outcome — the test a create or `PUT` runs, the UI's Test connection and
|
|
7880
|
+
`GET`/`POST /v1/connections/{_id}/ping` alike: a failed test sets it, a passing test
|
|
7881
|
+
clears it (a ping of an `http` connection with no `http.ping` runs no test and leaves
|
|
7882
|
+
it unchanged); the platform re-tests an offline connection on its own (about once an hour,
|
|
7883
|
+
and after six failed attempts leaves it offline until someone fixes it) and tests an
|
|
7884
|
+
online one when a client asks. After a write the result arrives in the response or, when the
|
|
7885
|
+
target is slow to answer, shortly afterwards (the audit log records a `system` change;
|
|
7886
|
+
`lastModified` doesn't move), so read it again a few seconds after the write. On an `http` connection
|
|
7882
7887
|
the write runs the test only when `http.ping` is configured, and an `http` connection
|
|
7883
7888
|
that was never tested has no `offline` key. A run also takes an `http` connection
|
|
7884
7889
|
offline when a request gets its authentication-failure status (see
|
package/package.json
CHANGED