@celigo/api-specs 0.2.289 → 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 +46 -30
- 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 +85 -68
- 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 +103 -81
- 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 +72 -50
- 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
|
@@ -871,11 +871,10 @@ components:
|
|
|
871
871
|
uniqueItems: true
|
|
872
872
|
description: |-
|
|
873
873
|
Knowledge bases the guardrail's model retrieves from, for every provider. Present only once
|
|
874
|
-
set: a guardrail created without the list has no field, and a PATCH `remove
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
`/guardrail/aiAgent/attachedKnowledgeBaseIds`.
|
|
874
|
+
set: a guardrail created without the list has no field, and a PATCH `remove`, or a PUT
|
|
875
|
+
that omits the list or sends `null`, drops it again. A PUT stores exactly the list its body
|
|
876
|
+
carries — duplicate ids collapse to their first occurrence, and `[]` detaches every
|
|
877
|
+
knowledge base.
|
|
879
878
|
items:
|
|
880
879
|
type: string
|
|
881
880
|
format: objectId
|
|
@@ -888,10 +887,17 @@ components:
|
|
|
888
887
|
ids fails with 422 `invalid_field` on `guardrail.aiAgent.attachedKnowledgeBaseIds`
|
|
889
888
|
(the message names `aiAgent.attachedKnowledgeBaseIds`).
|
|
890
889
|
- |-
|
|
891
|
-
|
|
892
|
-
`
|
|
893
|
-
|
|
894
|
-
|
|
890
|
+
A PUT that leaves the field out detaches every knowledge base, exactly like `[]` or
|
|
891
|
+
`null`: when a PUT changes anything else on the guardrail, send the list back as it was
|
|
892
|
+
read.
|
|
893
|
+
- |-
|
|
894
|
+
To change the list alone use `PATCH /v1/imports/{_id}`: `replace` on
|
|
895
|
+
`/guardrail/aiAgent/attachedKnowledgeBaseIds` with the complete list (`[]` detaches
|
|
896
|
+
all) works whether or not the field exists. `add` at
|
|
897
|
+
`/guardrail/aiAgent/attachedKnowledgeBaseIds/-` appends one id only where the field
|
|
898
|
+
exists — on a guardrail without it the request fails with 422
|
|
899
|
+
("guardrail.aiAgent.attachedKnowledgeBaseIds is not an array") — and `remove` at an
|
|
900
|
+
array index fails with 422.
|
|
895
901
|
openai:
|
|
896
902
|
type: object
|
|
897
903
|
description: |
|
|
@@ -2455,6 +2461,46 @@ components:
|
|
|
2455
2461
|
- []
|
|
2456
2462
|
aiDescription:
|
|
2457
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
|
|
2458
2504
|
Request:
|
|
2459
2505
|
type: object
|
|
2460
2506
|
description: |-
|
|
@@ -2569,46 +2615,6 @@ components:
|
|
|
2569
2615
|
- name
|
|
2570
2616
|
- adaptorType
|
|
2571
2617
|
- guardrail
|
|
2572
|
-
Error:
|
|
2573
|
-
type: object
|
|
2574
|
-
description: Standard error response envelope returned by integrator.io APIs.
|
|
2575
|
-
properties:
|
|
2576
|
-
errors:
|
|
2577
|
-
type: array
|
|
2578
|
-
description: List of errors that occurred while processing the request.
|
|
2579
|
-
items:
|
|
2580
|
-
type: object
|
|
2581
|
-
properties:
|
|
2582
|
-
code:
|
|
2583
|
-
oneOf:
|
|
2584
|
-
- type: string
|
|
2585
|
-
- type: integer
|
|
2586
|
-
description: |-
|
|
2587
|
-
Machine-readable error code. Usually a string like
|
|
2588
|
-
`invalid_ref`, `missing_required_field`, or `unauthorized`;
|
|
2589
|
-
may be an **integer** when the error mirrors an upstream HTTP
|
|
2590
|
-
status (e.g. `500`) — most commonly returned by connection-ping
|
|
2591
|
-
and adaptor-proxy responses.
|
|
2592
|
-
message:
|
|
2593
|
-
type: string
|
|
2594
|
-
description: Human-readable description of the error.
|
|
2595
|
-
field:
|
|
2596
|
-
type: string
|
|
2597
|
-
description: |-
|
|
2598
|
-
Optional pointer to the document field that caused the error.
|
|
2599
|
-
Used by structural validation errors (`missing_required_field`,
|
|
2600
|
-
`invalid_ref`) to indicate which field is at fault
|
|
2601
|
-
(e.g. `_id`, `type`, `http.baseURI`).
|
|
2602
|
-
source:
|
|
2603
|
-
type: string
|
|
2604
|
-
description: |-
|
|
2605
|
-
Optional origin layer for the error — e.g. `application` when
|
|
2606
|
-
the error came from the remote system the adaptor called,
|
|
2607
|
-
`connector` when the adaptor itself rejected the request.
|
|
2608
|
-
required:
|
|
2609
|
-
- message
|
|
2610
|
-
required:
|
|
2611
|
-
- errors
|
|
2612
2618
|
DependencyEntry:
|
|
2613
2619
|
type: object
|
|
2614
2620
|
description: A single resource that depends on the queried resource.
|
|
@@ -2695,29 +2701,34 @@ components:
|
|
|
2695
2701
|
responses:
|
|
2696
2702
|
401-unauthorized:
|
|
2697
2703
|
description: |-
|
|
2698
|
-
Unauthorized
|
|
2699
|
-
failed to authenticate.
|
|
2704
|
+
Unauthorized, in one of two shapes.
|
|
2700
2705
|
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
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}`.
|
|
2707
2715
|
content:
|
|
2708
2716
|
application/json:
|
|
2709
2717
|
schema:
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
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'
|
|
2721
2732
|
examples:
|
|
2722
2733
|
missing_token:
|
|
2723
2734
|
summary: No Authorization header sent
|
|
@@ -2727,6 +2738,12 @@ components:
|
|
|
2727
2738
|
summary: Bearer token invalid or revoked
|
|
2728
2739
|
value:
|
|
2729
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.
|
|
2730
2747
|
400-bad-request:
|
|
2731
2748
|
description: |
|
|
2732
2749
|
Bad request. The server could not understand the request because of malformed syntax or invalid parameters.
|