@celigo/api-specs 0.2.276 → 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.
@@ -3291,6 +3291,9 @@ paths:
3291
3291
  Use this instead of the connection's `netsuite.suiteAppInstalled`, which reflects only the
3292
3292
  SuiteApp as detected the last time the connection authenticated. For a single combined
3293
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.
3294
3297
  operationId: getConnectionDistributedApps
3295
3298
  tags:
3296
3299
  - Connections
@@ -3377,6 +3380,12 @@ paths:
3377
3380
  - |-
3378
3381
  A non-NetSuite connection answers 422 with the message "invalid connection type: <type>"
3379
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.
3380
3389
  /v1/connections/{_id}/distributed:
3381
3390
  get:
3382
3391
  x-internal: false
@@ -3392,6 +3401,10 @@ paths:
3392
3401
  Use `GET /v1/connections/{_id}/distributedApps` instead when you need the NetSuite bundle
3393
3402
  and SuiteApp reported separately; this endpoint is the only one of the two that also covers
3394
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.
3395
3408
  operationId: pingConnectionDistributedAdaptor
3396
3409
  tags:
3397
3410
  - Connections
@@ -3430,7 +3443,7 @@ paths:
3430
3443
  resBody: 'Connection is taken offline: expired access/refresh token'
3431
3444
  bundleURL: https://mycompany.my.salesforce.com/packaging/installPackage.apexp?p0=04t3m000000Q89d
3432
3445
  '401':
3433
- $ref: '#/components/responses/401-unauthorized'
3446
+ $ref: '#/components/responses/401-unauthorized-or-scoped-token'
3434
3447
  '404':
3435
3448
  description: No connection found for the given `_id`.
3436
3449
  content:
@@ -3455,6 +3468,13 @@ paths:
3455
3468
  errors:
3456
3469
  - message: 'invalid connection type: http'
3457
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.
3458
3478
  - |-
3459
3479
  A non-NetSuite, non-Salesforce connection answers 422 with the message "invalid
3460
3480
  connection type: <type>" and no `code`; an unknown `_id` answers 404 `invalid_ref`.
@@ -12183,6 +12203,37 @@ components:
12183
12203
  errors:
12184
12204
  - code: dependencies_not_deleted
12185
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
12186
12237
  422-unprocessable-entity:
12187
12238
  description: |
12188
12239
  Unprocessable entity. The request was well-formed but was unable to be followed due to semantic errors.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celigo/api-specs",
3
- "version": "0.2.276",
3
+ "version": "0.2.277",
4
4
  "private": false,
5
5
  "description": "Public OpenAPI bundles (dist/) and the celigo-cli lint schema pack (schemas.json).",
6
6
  "keywords": [
package/schemas.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "provenance": {
3
3
  "repo": "celigo/integrator-api-specs",
4
- "iasCommit": "d42dd833",
5
- "generatedAt": "2026-11-09"
4
+ "iasCommit": "8ea9aa1c",
5
+ "generatedAt": "2026-11-10"
6
6
  },
7
7
  "roots": {
8
8
  "aiagent": 128,