@celigo/api-specs 0.2.290 → 0.2.291
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/account.yml +70 -59
- package/dist/agent.yml +30 -19
- package/dist/agentgroup.yml +30 -19
- package/dist/ai-agent.yml +31 -20
- package/dist/alert.yml +30 -19
- package/dist/api.yml +31 -20
- package/dist/apim.yml +30 -19
- package/dist/asynchelper.yml +48 -37
- package/dist/audit.yml +30 -19
- package/dist/bartendertemplate.yml +30 -19
- package/dist/connection.yml +92 -64
- package/dist/connector.yml +30 -19
- package/dist/ediprofile.yml +43 -32
- package/dist/editransaction.yml +30 -19
- package/dist/enduser.yml +30 -19
- package/dist/environment.yml +30 -19
- package/dist/eventreport.yml +70 -59
- package/dist/export.yml +71 -60
- package/dist/filedefinition.yml +65 -54
- package/dist/fileserver.yml +30 -19
- package/dist/filestorage.yml +30 -19
- package/dist/flow.yml +31 -20
- package/dist/guardrail.yml +70 -59
- package/dist/httpconnector.yml +71 -60
- package/dist/httpconnectorendpoint.yml +30 -19
- package/dist/httpconnectorresource.yml +31 -20
- package/dist/iclient.yml +51 -40
- package/dist/import.yml +71 -60
- package/dist/integration.yml +37 -26
- package/dist/job.yml +30 -19
- package/dist/lookupcache.yml +35 -24
- package/dist/marketplace.yml +30 -19
- package/dist/mcp-oauth-provider.yml +42 -31
- package/dist/mcp-server.yml +52 -41
- package/dist/networkpolicy.yml +30 -19
- package/dist/notification.yml +30 -19
- package/dist/processor.yml +70 -59
- package/dist/profile.yml +43 -32
- package/dist/recyclebin.yml +30 -19
- package/dist/script.yml +70 -59
- package/dist/stack.yml +30 -19
- package/dist/state.yml +30 -19
- package/dist/storagequery.yml +30 -19
- package/dist/subscription.yml +70 -19
- package/dist/sync.yml +30 -19
- package/dist/tag.yml +46 -35
- package/dist/template.yml +30 -19
- package/dist/tool.yml +42 -31
- package/dist/topic.yml +30 -19
- package/dist/tradingpartnerconnector.yml +31 -20
- package/dist/user.yml +30 -19
- package/package.json +1 -1
- package/schemas.json +1 -1
package/dist/filedefinition.yml
CHANGED
|
@@ -1353,41 +1353,6 @@ components:
|
|
|
1353
1353
|
description: Source identifier for tracking the definition's origin.
|
|
1354
1354
|
examples:
|
|
1355
1355
|
- 5f8d43a1b9e5a80011a35f2c
|
|
1356
|
-
Request:
|
|
1357
|
-
type: object
|
|
1358
|
-
description: |
|
|
1359
|
-
Request schema for creating or updating a file definition.
|
|
1360
|
-
|
|
1361
|
-
A fixed-width definition (`format: fixed`) also needs `fixed.rowDelimiter` and
|
|
1362
|
-
`fixed.paddingChar`: a create or full update without either fails with 422
|
|
1363
|
-
("rowDelimiter is a required field for fixed file definitions.", "paddingChar is a
|
|
1364
|
-
required field for fixed width file definitions.") and saves nothing.
|
|
1365
|
-
required:
|
|
1366
|
-
- name
|
|
1367
|
-
- version
|
|
1368
|
-
- format
|
|
1369
|
-
- rules
|
|
1370
|
-
allOf:
|
|
1371
|
-
- $ref: '#/components/schemas/FileDefinitionBase'
|
|
1372
|
-
if:
|
|
1373
|
-
properties:
|
|
1374
|
-
format:
|
|
1375
|
-
const: fixed
|
|
1376
|
-
required:
|
|
1377
|
-
- format
|
|
1378
|
-
then:
|
|
1379
|
-
required:
|
|
1380
|
-
- fixed
|
|
1381
|
-
properties:
|
|
1382
|
-
fixed:
|
|
1383
|
-
required:
|
|
1384
|
-
- rowDelimiter
|
|
1385
|
-
- paddingChar
|
|
1386
|
-
x-celigo-ai-guidance:
|
|
1387
|
-
- |-
|
|
1388
|
-
File definitions describe the structure and parsing/generation rules for
|
|
1389
|
-
structured file formats including delimited (CSV), fixed-width, EDI X12,
|
|
1390
|
-
and EDI EDIFACT.
|
|
1391
1356
|
Error:
|
|
1392
1357
|
type: object
|
|
1393
1358
|
description: Standard error response envelope returned by integrator.io APIs.
|
|
@@ -1428,6 +1393,41 @@ components:
|
|
|
1428
1393
|
- message
|
|
1429
1394
|
required:
|
|
1430
1395
|
- errors
|
|
1396
|
+
Request:
|
|
1397
|
+
type: object
|
|
1398
|
+
description: |
|
|
1399
|
+
Request schema for creating or updating a file definition.
|
|
1400
|
+
|
|
1401
|
+
A fixed-width definition (`format: fixed`) also needs `fixed.rowDelimiter` and
|
|
1402
|
+
`fixed.paddingChar`: a create or full update without either fails with 422
|
|
1403
|
+
("rowDelimiter is a required field for fixed file definitions.", "paddingChar is a
|
|
1404
|
+
required field for fixed width file definitions.") and saves nothing.
|
|
1405
|
+
required:
|
|
1406
|
+
- name
|
|
1407
|
+
- version
|
|
1408
|
+
- format
|
|
1409
|
+
- rules
|
|
1410
|
+
allOf:
|
|
1411
|
+
- $ref: '#/components/schemas/FileDefinitionBase'
|
|
1412
|
+
if:
|
|
1413
|
+
properties:
|
|
1414
|
+
format:
|
|
1415
|
+
const: fixed
|
|
1416
|
+
required:
|
|
1417
|
+
- format
|
|
1418
|
+
then:
|
|
1419
|
+
required:
|
|
1420
|
+
- fixed
|
|
1421
|
+
properties:
|
|
1422
|
+
fixed:
|
|
1423
|
+
required:
|
|
1424
|
+
- rowDelimiter
|
|
1425
|
+
- paddingChar
|
|
1426
|
+
x-celigo-ai-guidance:
|
|
1427
|
+
- |-
|
|
1428
|
+
File definitions describe the structure and parsing/generation rules for
|
|
1429
|
+
structured file formats including delimited (CSV), fixed-width, EDI X12,
|
|
1430
|
+
and EDI EDIFACT.
|
|
1431
1431
|
DependencyEntry:
|
|
1432
1432
|
type: object
|
|
1433
1433
|
description: A single resource that depends on the queried resource.
|
|
@@ -1514,29 +1514,34 @@ components:
|
|
|
1514
1514
|
responses:
|
|
1515
1515
|
401-unauthorized:
|
|
1516
1516
|
description: |-
|
|
1517
|
-
Unauthorized
|
|
1518
|
-
failed to authenticate.
|
|
1517
|
+
Unauthorized, in one of two shapes.
|
|
1519
1518
|
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1519
|
+
No valid bearer token: the auth middleware answers before the endpoint
|
|
1520
|
+
handler runs, with a bare `{message: string}` body — no `code`, no
|
|
1521
|
+
`errors` array — so key off the HTTP status and `message`.
|
|
1522
|
+
|
|
1523
|
+
An API token with a custom scope calling an operation its scope does not
|
|
1524
|
+
grant: the token authenticated, and the body is the standard
|
|
1525
|
+
`{errors: [...]}` envelope with code `access_restricted`. Observed on
|
|
1526
|
+
`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token
|
|
1527
|
+
passed both, a personal access token `GET /v1/exports/{_id}`.
|
|
1526
1528
|
content:
|
|
1527
1529
|
application/json:
|
|
1528
1530
|
schema:
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1531
|
+
oneOf:
|
|
1532
|
+
- type: object
|
|
1533
|
+
description: The auth middleware's bare body for a missing or invalid token.
|
|
1534
|
+
properties:
|
|
1535
|
+
message:
|
|
1536
|
+
type: string
|
|
1537
|
+
description: |-
|
|
1538
|
+
Human-readable description of the auth failure. Known values:
|
|
1539
|
+
- `"Unauthorized"` — no `Authorization` header on the request.
|
|
1540
|
+
- `"Bearer Authentication Failed"` — header present but token
|
|
1541
|
+
is invalid, revoked, or expired.
|
|
1542
|
+
required:
|
|
1543
|
+
- message
|
|
1544
|
+
- $ref: '#/components/schemas/Error'
|
|
1540
1545
|
examples:
|
|
1541
1546
|
missing_token:
|
|
1542
1547
|
summary: No Authorization header sent
|
|
@@ -1546,6 +1551,12 @@ components:
|
|
|
1546
1551
|
summary: Bearer token invalid or revoked
|
|
1547
1552
|
value:
|
|
1548
1553
|
message: Bearer Authentication Failed
|
|
1554
|
+
scoped_token:
|
|
1555
|
+
summary: An API token with a custom scope reading a resource
|
|
1556
|
+
value:
|
|
1557
|
+
errors:
|
|
1558
|
+
- code: access_restricted
|
|
1559
|
+
message: You don't have the required permissions to perform the action.
|
|
1549
1560
|
400-bad-request:
|
|
1550
1561
|
description: |
|
|
1551
1562
|
Bad request. The server could not understand the request because of malformed syntax or invalid parameters.
|
package/dist/fileserver.yml
CHANGED
|
@@ -1850,29 +1850,34 @@ components:
|
|
|
1850
1850
|
responses:
|
|
1851
1851
|
401-unauthorized:
|
|
1852
1852
|
description: |-
|
|
1853
|
-
Unauthorized
|
|
1854
|
-
failed to authenticate.
|
|
1853
|
+
Unauthorized, in one of two shapes.
|
|
1855
1854
|
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1855
|
+
No valid bearer token: the auth middleware answers before the endpoint
|
|
1856
|
+
handler runs, with a bare `{message: string}` body — no `code`, no
|
|
1857
|
+
`errors` array — so key off the HTTP status and `message`.
|
|
1858
|
+
|
|
1859
|
+
An API token with a custom scope calling an operation its scope does not
|
|
1860
|
+
grant: the token authenticated, and the body is the standard
|
|
1861
|
+
`{errors: [...]}` envelope with code `access_restricted`. Observed on
|
|
1862
|
+
`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token
|
|
1863
|
+
passed both, a personal access token `GET /v1/exports/{_id}`.
|
|
1862
1864
|
content:
|
|
1863
1865
|
application/json:
|
|
1864
1866
|
schema:
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1867
|
+
oneOf:
|
|
1868
|
+
- type: object
|
|
1869
|
+
description: The auth middleware's bare body for a missing or invalid token.
|
|
1870
|
+
properties:
|
|
1871
|
+
message:
|
|
1872
|
+
type: string
|
|
1873
|
+
description: |-
|
|
1874
|
+
Human-readable description of the auth failure. Known values:
|
|
1875
|
+
- `"Unauthorized"` — no `Authorization` header on the request.
|
|
1876
|
+
- `"Bearer Authentication Failed"` — header present but token
|
|
1877
|
+
is invalid, revoked, or expired.
|
|
1878
|
+
required:
|
|
1879
|
+
- message
|
|
1880
|
+
- $ref: '#/components/schemas/Error'
|
|
1876
1881
|
examples:
|
|
1877
1882
|
missing_token:
|
|
1878
1883
|
summary: No Authorization header sent
|
|
@@ -1882,6 +1887,12 @@ components:
|
|
|
1882
1887
|
summary: Bearer token invalid or revoked
|
|
1883
1888
|
value:
|
|
1884
1889
|
message: Bearer Authentication Failed
|
|
1890
|
+
scoped_token:
|
|
1891
|
+
summary: An API token with a custom scope reading a resource
|
|
1892
|
+
value:
|
|
1893
|
+
errors:
|
|
1894
|
+
- code: access_restricted
|
|
1895
|
+
message: You don't have the required permissions to perform the action.
|
|
1885
1896
|
403-full-access-required:
|
|
1886
1897
|
description: |-
|
|
1887
1898
|
The token is not a full-access API token (`FILESERVER_FULL_ACCESS_TOKEN_REQUIRED`) --
|
package/dist/filestorage.yml
CHANGED
|
@@ -4281,29 +4281,34 @@ components:
|
|
|
4281
4281
|
message: The request body failed validation.
|
|
4282
4282
|
401-unauthorized:
|
|
4283
4283
|
description: |-
|
|
4284
|
-
Unauthorized
|
|
4285
|
-
failed to authenticate.
|
|
4284
|
+
Unauthorized, in one of two shapes.
|
|
4286
4285
|
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4286
|
+
No valid bearer token: the auth middleware answers before the endpoint
|
|
4287
|
+
handler runs, with a bare `{message: string}` body — no `code`, no
|
|
4288
|
+
`errors` array — so key off the HTTP status and `message`.
|
|
4289
|
+
|
|
4290
|
+
An API token with a custom scope calling an operation its scope does not
|
|
4291
|
+
grant: the token authenticated, and the body is the standard
|
|
4292
|
+
`{errors: [...]}` envelope with code `access_restricted`. Observed on
|
|
4293
|
+
`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token
|
|
4294
|
+
passed both, a personal access token `GET /v1/exports/{_id}`.
|
|
4293
4295
|
content:
|
|
4294
4296
|
application/json:
|
|
4295
4297
|
schema:
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4298
|
+
oneOf:
|
|
4299
|
+
- type: object
|
|
4300
|
+
description: The auth middleware's bare body for a missing or invalid token.
|
|
4301
|
+
properties:
|
|
4302
|
+
message:
|
|
4303
|
+
type: string
|
|
4304
|
+
description: |-
|
|
4305
|
+
Human-readable description of the auth failure. Known values:
|
|
4306
|
+
- `"Unauthorized"` — no `Authorization` header on the request.
|
|
4307
|
+
- `"Bearer Authentication Failed"` — header present but token
|
|
4308
|
+
is invalid, revoked, or expired.
|
|
4309
|
+
required:
|
|
4310
|
+
- message
|
|
4311
|
+
- $ref: '#/components/schemas/Error'
|
|
4307
4312
|
examples:
|
|
4308
4313
|
missing_token:
|
|
4309
4314
|
summary: No Authorization header sent
|
|
@@ -4313,6 +4318,12 @@ components:
|
|
|
4313
4318
|
summary: Bearer token invalid or revoked
|
|
4314
4319
|
value:
|
|
4315
4320
|
message: Bearer Authentication Failed
|
|
4321
|
+
scoped_token:
|
|
4322
|
+
summary: An API token with a custom scope reading a resource
|
|
4323
|
+
value:
|
|
4324
|
+
errors:
|
|
4325
|
+
- code: access_restricted
|
|
4326
|
+
message: You don't have the required permissions to perform the action.
|
|
4316
4327
|
403-forbidden:
|
|
4317
4328
|
description: |
|
|
4318
4329
|
Forbidden. The authenticated caller does not have permission to perform this operation.
|
package/dist/flow.yml
CHANGED
|
@@ -9647,29 +9647,34 @@ components:
|
|
|
9647
9647
|
message: The request body failed validation.
|
|
9648
9648
|
401-unauthorized:
|
|
9649
9649
|
description: |-
|
|
9650
|
-
Unauthorized
|
|
9651
|
-
|
|
9652
|
-
|
|
9653
|
-
|
|
9654
|
-
|
|
9655
|
-
|
|
9656
|
-
|
|
9657
|
-
|
|
9658
|
-
|
|
9650
|
+
Unauthorized, in one of two shapes.
|
|
9651
|
+
|
|
9652
|
+
No valid bearer token: the auth middleware answers before the endpoint
|
|
9653
|
+
handler runs, with a bare `{message: string}` body — no `code`, no
|
|
9654
|
+
`errors` array — so key off the HTTP status and `message`.
|
|
9655
|
+
|
|
9656
|
+
An API token with a custom scope calling an operation its scope does not
|
|
9657
|
+
grant: the token authenticated, and the body is the standard
|
|
9658
|
+
`{errors: [...]}` envelope with code `access_restricted`. Observed on
|
|
9659
|
+
`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token
|
|
9660
|
+
passed both, a personal access token `GET /v1/exports/{_id}`.
|
|
9659
9661
|
content:
|
|
9660
9662
|
application/json:
|
|
9661
9663
|
schema:
|
|
9662
|
-
|
|
9663
|
-
|
|
9664
|
-
|
|
9665
|
-
|
|
9666
|
-
|
|
9667
|
-
|
|
9668
|
-
|
|
9669
|
-
|
|
9670
|
-
|
|
9671
|
-
|
|
9672
|
-
|
|
9664
|
+
oneOf:
|
|
9665
|
+
- type: object
|
|
9666
|
+
description: The auth middleware's bare body for a missing or invalid token.
|
|
9667
|
+
properties:
|
|
9668
|
+
message:
|
|
9669
|
+
type: string
|
|
9670
|
+
description: |-
|
|
9671
|
+
Human-readable description of the auth failure. Known values:
|
|
9672
|
+
- `"Unauthorized"` — no `Authorization` header on the request.
|
|
9673
|
+
- `"Bearer Authentication Failed"` — header present but token
|
|
9674
|
+
is invalid, revoked, or expired.
|
|
9675
|
+
required:
|
|
9676
|
+
- message
|
|
9677
|
+
- $ref: '#/components/schemas/Error'
|
|
9673
9678
|
examples:
|
|
9674
9679
|
missing_token:
|
|
9675
9680
|
summary: No Authorization header sent
|
|
@@ -9679,6 +9684,12 @@ components:
|
|
|
9679
9684
|
summary: Bearer token invalid or revoked
|
|
9680
9685
|
value:
|
|
9681
9686
|
message: Bearer Authentication Failed
|
|
9687
|
+
scoped_token:
|
|
9688
|
+
summary: An API token with a custom scope reading a resource
|
|
9689
|
+
value:
|
|
9690
|
+
errors:
|
|
9691
|
+
- code: access_restricted
|
|
9692
|
+
message: You don't have the required permissions to perform the action.
|
|
9682
9693
|
422-unprocessable-entity:
|
|
9683
9694
|
description: |
|
|
9684
9695
|
Unprocessable entity. The request was well-formed but was unable to be followed due to semantic errors.
|
package/dist/guardrail.yml
CHANGED
|
@@ -2461,6 +2461,46 @@ components:
|
|
|
2461
2461
|
- []
|
|
2462
2462
|
aiDescription:
|
|
2463
2463
|
$ref: '#/components/schemas/AIDescription'
|
|
2464
|
+
Error:
|
|
2465
|
+
type: object
|
|
2466
|
+
description: Standard error response envelope returned by integrator.io APIs.
|
|
2467
|
+
properties:
|
|
2468
|
+
errors:
|
|
2469
|
+
type: array
|
|
2470
|
+
description: List of errors that occurred while processing the request.
|
|
2471
|
+
items:
|
|
2472
|
+
type: object
|
|
2473
|
+
properties:
|
|
2474
|
+
code:
|
|
2475
|
+
oneOf:
|
|
2476
|
+
- type: string
|
|
2477
|
+
- type: integer
|
|
2478
|
+
description: |-
|
|
2479
|
+
Machine-readable error code. Usually a string like
|
|
2480
|
+
`invalid_ref`, `missing_required_field`, or `unauthorized`;
|
|
2481
|
+
may be an **integer** when the error mirrors an upstream HTTP
|
|
2482
|
+
status (e.g. `500`) — most commonly returned by connection-ping
|
|
2483
|
+
and adaptor-proxy responses.
|
|
2484
|
+
message:
|
|
2485
|
+
type: string
|
|
2486
|
+
description: Human-readable description of the error.
|
|
2487
|
+
field:
|
|
2488
|
+
type: string
|
|
2489
|
+
description: |-
|
|
2490
|
+
Optional pointer to the document field that caused the error.
|
|
2491
|
+
Used by structural validation errors (`missing_required_field`,
|
|
2492
|
+
`invalid_ref`) to indicate which field is at fault
|
|
2493
|
+
(e.g. `_id`, `type`, `http.baseURI`).
|
|
2494
|
+
source:
|
|
2495
|
+
type: string
|
|
2496
|
+
description: |-
|
|
2497
|
+
Optional origin layer for the error — e.g. `application` when
|
|
2498
|
+
the error came from the remote system the adaptor called,
|
|
2499
|
+
`connector` when the adaptor itself rejected the request.
|
|
2500
|
+
required:
|
|
2501
|
+
- message
|
|
2502
|
+
required:
|
|
2503
|
+
- errors
|
|
2464
2504
|
Request:
|
|
2465
2505
|
type: object
|
|
2466
2506
|
description: |-
|
|
@@ -2575,46 +2615,6 @@ components:
|
|
|
2575
2615
|
- name
|
|
2576
2616
|
- adaptorType
|
|
2577
2617
|
- guardrail
|
|
2578
|
-
Error:
|
|
2579
|
-
type: object
|
|
2580
|
-
description: Standard error response envelope returned by integrator.io APIs.
|
|
2581
|
-
properties:
|
|
2582
|
-
errors:
|
|
2583
|
-
type: array
|
|
2584
|
-
description: List of errors that occurred while processing the request.
|
|
2585
|
-
items:
|
|
2586
|
-
type: object
|
|
2587
|
-
properties:
|
|
2588
|
-
code:
|
|
2589
|
-
oneOf:
|
|
2590
|
-
- type: string
|
|
2591
|
-
- type: integer
|
|
2592
|
-
description: |-
|
|
2593
|
-
Machine-readable error code. Usually a string like
|
|
2594
|
-
`invalid_ref`, `missing_required_field`, or `unauthorized`;
|
|
2595
|
-
may be an **integer** when the error mirrors an upstream HTTP
|
|
2596
|
-
status (e.g. `500`) — most commonly returned by connection-ping
|
|
2597
|
-
and adaptor-proxy responses.
|
|
2598
|
-
message:
|
|
2599
|
-
type: string
|
|
2600
|
-
description: Human-readable description of the error.
|
|
2601
|
-
field:
|
|
2602
|
-
type: string
|
|
2603
|
-
description: |-
|
|
2604
|
-
Optional pointer to the document field that caused the error.
|
|
2605
|
-
Used by structural validation errors (`missing_required_field`,
|
|
2606
|
-
`invalid_ref`) to indicate which field is at fault
|
|
2607
|
-
(e.g. `_id`, `type`, `http.baseURI`).
|
|
2608
|
-
source:
|
|
2609
|
-
type: string
|
|
2610
|
-
description: |-
|
|
2611
|
-
Optional origin layer for the error — e.g. `application` when
|
|
2612
|
-
the error came from the remote system the adaptor called,
|
|
2613
|
-
`connector` when the adaptor itself rejected the request.
|
|
2614
|
-
required:
|
|
2615
|
-
- message
|
|
2616
|
-
required:
|
|
2617
|
-
- errors
|
|
2618
2618
|
DependencyEntry:
|
|
2619
2619
|
type: object
|
|
2620
2620
|
description: A single resource that depends on the queried resource.
|
|
@@ -2701,29 +2701,34 @@ components:
|
|
|
2701
2701
|
responses:
|
|
2702
2702
|
401-unauthorized:
|
|
2703
2703
|
description: |-
|
|
2704
|
-
Unauthorized
|
|
2705
|
-
failed to authenticate.
|
|
2704
|
+
Unauthorized, in one of two shapes.
|
|
2706
2705
|
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2706
|
+
No valid bearer token: the auth middleware answers before the endpoint
|
|
2707
|
+
handler runs, with a bare `{message: string}` body — no `code`, no
|
|
2708
|
+
`errors` array — so key off the HTTP status and `message`.
|
|
2709
|
+
|
|
2710
|
+
An API token with a custom scope calling an operation its scope does not
|
|
2711
|
+
grant: the token authenticated, and the body is the standard
|
|
2712
|
+
`{errors: [...]}` envelope with code `access_restricted`. Observed on
|
|
2713
|
+
`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token
|
|
2714
|
+
passed both, a personal access token `GET /v1/exports/{_id}`.
|
|
2713
2715
|
content:
|
|
2714
2716
|
application/json:
|
|
2715
2717
|
schema:
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2718
|
+
oneOf:
|
|
2719
|
+
- type: object
|
|
2720
|
+
description: The auth middleware's bare body for a missing or invalid token.
|
|
2721
|
+
properties:
|
|
2722
|
+
message:
|
|
2723
|
+
type: string
|
|
2724
|
+
description: |-
|
|
2725
|
+
Human-readable description of the auth failure. Known values:
|
|
2726
|
+
- `"Unauthorized"` — no `Authorization` header on the request.
|
|
2727
|
+
- `"Bearer Authentication Failed"` — header present but token
|
|
2728
|
+
is invalid, revoked, or expired.
|
|
2729
|
+
required:
|
|
2730
|
+
- message
|
|
2731
|
+
- $ref: '#/components/schemas/Error'
|
|
2727
2732
|
examples:
|
|
2728
2733
|
missing_token:
|
|
2729
2734
|
summary: No Authorization header sent
|
|
@@ -2733,6 +2738,12 @@ components:
|
|
|
2733
2738
|
summary: Bearer token invalid or revoked
|
|
2734
2739
|
value:
|
|
2735
2740
|
message: Bearer Authentication Failed
|
|
2741
|
+
scoped_token:
|
|
2742
|
+
summary: An API token with a custom scope reading a resource
|
|
2743
|
+
value:
|
|
2744
|
+
errors:
|
|
2745
|
+
- code: access_restricted
|
|
2746
|
+
message: You don't have the required permissions to perform the action.
|
|
2736
2747
|
400-bad-request:
|
|
2737
2748
|
description: |
|
|
2738
2749
|
Bad request. The server could not understand the request because of malformed syntax or invalid parameters.
|