@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/notification.yml
CHANGED
|
@@ -521,29 +521,34 @@ components:
|
|
|
521
521
|
message: The request body failed validation.
|
|
522
522
|
401-unauthorized:
|
|
523
523
|
description: |-
|
|
524
|
-
Unauthorized
|
|
525
|
-
failed to authenticate.
|
|
524
|
+
Unauthorized, in one of two shapes.
|
|
526
525
|
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
526
|
+
No valid bearer token: the auth middleware answers before the endpoint
|
|
527
|
+
handler runs, with a bare `{message: string}` body — no `code`, no
|
|
528
|
+
`errors` array — so key off the HTTP status and `message`.
|
|
529
|
+
|
|
530
|
+
An API token with a custom scope calling an operation its scope does not
|
|
531
|
+
grant: the token authenticated, and the body is the standard
|
|
532
|
+
`{errors: [...]}` envelope with code `access_restricted`. Observed on
|
|
533
|
+
`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token
|
|
534
|
+
passed both, a personal access token `GET /v1/exports/{_id}`.
|
|
533
535
|
content:
|
|
534
536
|
application/json:
|
|
535
537
|
schema:
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
538
|
+
oneOf:
|
|
539
|
+
- type: object
|
|
540
|
+
description: The auth middleware's bare body for a missing or invalid token.
|
|
541
|
+
properties:
|
|
542
|
+
message:
|
|
543
|
+
type: string
|
|
544
|
+
description: |-
|
|
545
|
+
Human-readable description of the auth failure. Known values:
|
|
546
|
+
- `"Unauthorized"` — no `Authorization` header on the request.
|
|
547
|
+
- `"Bearer Authentication Failed"` — header present but token
|
|
548
|
+
is invalid, revoked, or expired.
|
|
549
|
+
required:
|
|
550
|
+
- message
|
|
551
|
+
- $ref: '#/components/schemas/Error'
|
|
547
552
|
examples:
|
|
548
553
|
missing_token:
|
|
549
554
|
summary: No Authorization header sent
|
|
@@ -553,5 +558,11 @@ components:
|
|
|
553
558
|
summary: Bearer token invalid or revoked
|
|
554
559
|
value:
|
|
555
560
|
message: Bearer Authentication Failed
|
|
561
|
+
scoped_token:
|
|
562
|
+
summary: An API token with a custom scope reading a resource
|
|
563
|
+
value:
|
|
564
|
+
errors:
|
|
565
|
+
- code: access_restricted
|
|
566
|
+
message: You don't have the required permissions to perform the action.
|
|
556
567
|
x-enable-proxy: true
|
|
557
568
|
x-internal: false
|
package/dist/processor.yml
CHANGED
|
@@ -1584,6 +1584,46 @@ components:
|
|
|
1584
1584
|
processor's label, purpose, and input/output media types.
|
|
1585
1585
|
additionalProperties:
|
|
1586
1586
|
$ref: '#/components/schemas/ProcessorDescriptor'
|
|
1587
|
+
Error:
|
|
1588
|
+
type: object
|
|
1589
|
+
description: Standard error response envelope returned by integrator.io APIs.
|
|
1590
|
+
properties:
|
|
1591
|
+
errors:
|
|
1592
|
+
type: array
|
|
1593
|
+
description: List of errors that occurred while processing the request.
|
|
1594
|
+
items:
|
|
1595
|
+
type: object
|
|
1596
|
+
properties:
|
|
1597
|
+
code:
|
|
1598
|
+
oneOf:
|
|
1599
|
+
- type: string
|
|
1600
|
+
- type: integer
|
|
1601
|
+
description: |-
|
|
1602
|
+
Machine-readable error code. Usually a string like
|
|
1603
|
+
`invalid_ref`, `missing_required_field`, or `unauthorized`;
|
|
1604
|
+
may be an **integer** when the error mirrors an upstream HTTP
|
|
1605
|
+
status (e.g. `500`) — most commonly returned by connection-ping
|
|
1606
|
+
and adaptor-proxy responses.
|
|
1607
|
+
message:
|
|
1608
|
+
type: string
|
|
1609
|
+
description: Human-readable description of the error.
|
|
1610
|
+
field:
|
|
1611
|
+
type: string
|
|
1612
|
+
description: |-
|
|
1613
|
+
Optional pointer to the document field that caused the error.
|
|
1614
|
+
Used by structural validation errors (`missing_required_field`,
|
|
1615
|
+
`invalid_ref`) to indicate which field is at fault
|
|
1616
|
+
(e.g. `_id`, `type`, `http.baseURI`).
|
|
1617
|
+
source:
|
|
1618
|
+
type: string
|
|
1619
|
+
description: |-
|
|
1620
|
+
Optional origin layer for the error — e.g. `application` when
|
|
1621
|
+
the error came from the remote system the adaptor called,
|
|
1622
|
+
`connector` when the adaptor itself rejected the request.
|
|
1623
|
+
required:
|
|
1624
|
+
- message
|
|
1625
|
+
required:
|
|
1626
|
+
- errors
|
|
1587
1627
|
ParserResponse:
|
|
1588
1628
|
type: object
|
|
1589
1629
|
description: |-
|
|
@@ -1687,72 +1727,37 @@ components:
|
|
|
1687
1727
|
traceKeysDuplicate:
|
|
1688
1728
|
type: boolean
|
|
1689
1729
|
description: When true, duplicate trace keys were detected in the output records.
|
|
1690
|
-
Error:
|
|
1691
|
-
type: object
|
|
1692
|
-
description: Standard error response envelope returned by integrator.io APIs.
|
|
1693
|
-
properties:
|
|
1694
|
-
errors:
|
|
1695
|
-
type: array
|
|
1696
|
-
description: List of errors that occurred while processing the request.
|
|
1697
|
-
items:
|
|
1698
|
-
type: object
|
|
1699
|
-
properties:
|
|
1700
|
-
code:
|
|
1701
|
-
oneOf:
|
|
1702
|
-
- type: string
|
|
1703
|
-
- type: integer
|
|
1704
|
-
description: |-
|
|
1705
|
-
Machine-readable error code. Usually a string like
|
|
1706
|
-
`invalid_ref`, `missing_required_field`, or `unauthorized`;
|
|
1707
|
-
may be an **integer** when the error mirrors an upstream HTTP
|
|
1708
|
-
status (e.g. `500`) — most commonly returned by connection-ping
|
|
1709
|
-
and adaptor-proxy responses.
|
|
1710
|
-
message:
|
|
1711
|
-
type: string
|
|
1712
|
-
description: Human-readable description of the error.
|
|
1713
|
-
field:
|
|
1714
|
-
type: string
|
|
1715
|
-
description: |-
|
|
1716
|
-
Optional pointer to the document field that caused the error.
|
|
1717
|
-
Used by structural validation errors (`missing_required_field`,
|
|
1718
|
-
`invalid_ref`) to indicate which field is at fault
|
|
1719
|
-
(e.g. `_id`, `type`, `http.baseURI`).
|
|
1720
|
-
source:
|
|
1721
|
-
type: string
|
|
1722
|
-
description: |-
|
|
1723
|
-
Optional origin layer for the error — e.g. `application` when
|
|
1724
|
-
the error came from the remote system the adaptor called,
|
|
1725
|
-
`connector` when the adaptor itself rejected the request.
|
|
1726
|
-
required:
|
|
1727
|
-
- message
|
|
1728
|
-
required:
|
|
1729
|
-
- errors
|
|
1730
1730
|
responses:
|
|
1731
1731
|
401-unauthorized:
|
|
1732
1732
|
description: |-
|
|
1733
|
-
Unauthorized
|
|
1734
|
-
|
|
1733
|
+
Unauthorized, in one of two shapes.
|
|
1734
|
+
|
|
1735
|
+
No valid bearer token: the auth middleware answers before the endpoint
|
|
1736
|
+
handler runs, with a bare `{message: string}` body — no `code`, no
|
|
1737
|
+
`errors` array — so key off the HTTP status and `message`.
|
|
1735
1738
|
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
`
|
|
1740
|
-
|
|
1741
|
-
not try to destructure an `errors[]`.
|
|
1739
|
+
An API token with a custom scope calling an operation its scope does not
|
|
1740
|
+
grant: the token authenticated, and the body is the standard
|
|
1741
|
+
`{errors: [...]}` envelope with code `access_restricted`. Observed on
|
|
1742
|
+
`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token
|
|
1743
|
+
passed both, a personal access token `GET /v1/exports/{_id}`.
|
|
1742
1744
|
content:
|
|
1743
1745
|
application/json:
|
|
1744
1746
|
schema:
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1747
|
+
oneOf:
|
|
1748
|
+
- type: object
|
|
1749
|
+
description: The auth middleware's bare body for a missing or invalid token.
|
|
1750
|
+
properties:
|
|
1751
|
+
message:
|
|
1752
|
+
type: string
|
|
1753
|
+
description: |-
|
|
1754
|
+
Human-readable description of the auth failure. Known values:
|
|
1755
|
+
- `"Unauthorized"` — no `Authorization` header on the request.
|
|
1756
|
+
- `"Bearer Authentication Failed"` — header present but token
|
|
1757
|
+
is invalid, revoked, or expired.
|
|
1758
|
+
required:
|
|
1759
|
+
- message
|
|
1760
|
+
- $ref: '#/components/schemas/Error'
|
|
1756
1761
|
examples:
|
|
1757
1762
|
missing_token:
|
|
1758
1763
|
summary: No Authorization header sent
|
|
@@ -1762,5 +1767,11 @@ components:
|
|
|
1762
1767
|
summary: Bearer token invalid or revoked
|
|
1763
1768
|
value:
|
|
1764
1769
|
message: Bearer Authentication Failed
|
|
1770
|
+
scoped_token:
|
|
1771
|
+
summary: An API token with a custom scope reading a resource
|
|
1772
|
+
value:
|
|
1773
|
+
errors:
|
|
1774
|
+
- code: access_restricted
|
|
1775
|
+
message: You don't have the required permissions to perform the action.
|
|
1765
1776
|
x-enable-proxy: true
|
|
1766
1777
|
x-internal: false
|
package/dist/profile.yml
CHANGED
|
@@ -368,19 +368,6 @@ components:
|
|
|
368
368
|
type: object
|
|
369
369
|
readOnly: true
|
|
370
370
|
description: Per-account UI state keyed by account ID.
|
|
371
|
-
Request:
|
|
372
|
-
type: object
|
|
373
|
-
description: |-
|
|
374
|
-
The complete preferences object sent to `PUT /v1/preferences`. The
|
|
375
|
-
body replaces the stored preferences, so include every field you want
|
|
376
|
-
to keep. `featureFlags` in the body are ignored.
|
|
377
|
-
x-celigo-ai-guidance:
|
|
378
|
-
- |-
|
|
379
|
-
AI guidance:
|
|
380
|
-
- Send the full object from `GET /v1/preferences` with your changes applied, not a partial object.
|
|
381
|
-
- Use this endpoint (not `/api/profile`) to change `dateFormat` and `timeFormat`.
|
|
382
|
-
allOf:
|
|
383
|
-
- $ref: '#/components/schemas/PreferencesBase'
|
|
384
371
|
Error:
|
|
385
372
|
type: object
|
|
386
373
|
description: Standard error response envelope returned by integrator.io APIs.
|
|
@@ -421,32 +408,50 @@ components:
|
|
|
421
408
|
- message
|
|
422
409
|
required:
|
|
423
410
|
- errors
|
|
411
|
+
Request:
|
|
412
|
+
type: object
|
|
413
|
+
description: |-
|
|
414
|
+
The complete preferences object sent to `PUT /v1/preferences`. The
|
|
415
|
+
body replaces the stored preferences, so include every field you want
|
|
416
|
+
to keep. `featureFlags` in the body are ignored.
|
|
417
|
+
x-celigo-ai-guidance:
|
|
418
|
+
- |-
|
|
419
|
+
AI guidance:
|
|
420
|
+
- Send the full object from `GET /v1/preferences` with your changes applied, not a partial object.
|
|
421
|
+
- Use this endpoint (not `/api/profile`) to change `dateFormat` and `timeFormat`.
|
|
422
|
+
allOf:
|
|
423
|
+
- $ref: '#/components/schemas/PreferencesBase'
|
|
424
424
|
responses:
|
|
425
425
|
401-unauthorized:
|
|
426
426
|
description: |-
|
|
427
|
-
Unauthorized
|
|
428
|
-
|
|
427
|
+
Unauthorized, in one of two shapes.
|
|
428
|
+
|
|
429
|
+
No valid bearer token: the auth middleware answers before the endpoint
|
|
430
|
+
handler runs, with a bare `{message: string}` body — no `code`, no
|
|
431
|
+
`errors` array — so key off the HTTP status and `message`.
|
|
429
432
|
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
`
|
|
434
|
-
|
|
435
|
-
not try to destructure an `errors[]`.
|
|
433
|
+
An API token with a custom scope calling an operation its scope does not
|
|
434
|
+
grant: the token authenticated, and the body is the standard
|
|
435
|
+
`{errors: [...]}` envelope with code `access_restricted`. Observed on
|
|
436
|
+
`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token
|
|
437
|
+
passed both, a personal access token `GET /v1/exports/{_id}`.
|
|
436
438
|
content:
|
|
437
439
|
application/json:
|
|
438
440
|
schema:
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
441
|
+
oneOf:
|
|
442
|
+
- type: object
|
|
443
|
+
description: The auth middleware's bare body for a missing or invalid token.
|
|
444
|
+
properties:
|
|
445
|
+
message:
|
|
446
|
+
type: string
|
|
447
|
+
description: |-
|
|
448
|
+
Human-readable description of the auth failure. Known values:
|
|
449
|
+
- `"Unauthorized"` — no `Authorization` header on the request.
|
|
450
|
+
- `"Bearer Authentication Failed"` — header present but token
|
|
451
|
+
is invalid, revoked, or expired.
|
|
452
|
+
required:
|
|
453
|
+
- message
|
|
454
|
+
- $ref: '#/components/schemas/Error'
|
|
450
455
|
examples:
|
|
451
456
|
missing_token:
|
|
452
457
|
summary: No Authorization header sent
|
|
@@ -456,6 +461,12 @@ components:
|
|
|
456
461
|
summary: Bearer token invalid or revoked
|
|
457
462
|
value:
|
|
458
463
|
message: Bearer Authentication Failed
|
|
464
|
+
scoped_token:
|
|
465
|
+
summary: An API token with a custom scope reading a resource
|
|
466
|
+
value:
|
|
467
|
+
errors:
|
|
468
|
+
- code: access_restricted
|
|
469
|
+
message: You don't have the required permissions to perform the action.
|
|
459
470
|
400-bad-request:
|
|
460
471
|
description: |
|
|
461
472
|
Bad request. The server could not understand the request because of malformed syntax or invalid parameters.
|
package/dist/recyclebin.yml
CHANGED
|
@@ -657,29 +657,34 @@ components:
|
|
|
657
657
|
responses:
|
|
658
658
|
401-unauthorized:
|
|
659
659
|
description: |-
|
|
660
|
-
Unauthorized
|
|
661
|
-
failed to authenticate.
|
|
660
|
+
Unauthorized, in one of two shapes.
|
|
662
661
|
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
662
|
+
No valid bearer token: the auth middleware answers before the endpoint
|
|
663
|
+
handler runs, with a bare `{message: string}` body — no `code`, no
|
|
664
|
+
`errors` array — so key off the HTTP status and `message`.
|
|
665
|
+
|
|
666
|
+
An API token with a custom scope calling an operation its scope does not
|
|
667
|
+
grant: the token authenticated, and the body is the standard
|
|
668
|
+
`{errors: [...]}` envelope with code `access_restricted`. Observed on
|
|
669
|
+
`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token
|
|
670
|
+
passed both, a personal access token `GET /v1/exports/{_id}`.
|
|
669
671
|
content:
|
|
670
672
|
application/json:
|
|
671
673
|
schema:
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
674
|
+
oneOf:
|
|
675
|
+
- type: object
|
|
676
|
+
description: The auth middleware's bare body for a missing or invalid token.
|
|
677
|
+
properties:
|
|
678
|
+
message:
|
|
679
|
+
type: string
|
|
680
|
+
description: |-
|
|
681
|
+
Human-readable description of the auth failure. Known values:
|
|
682
|
+
- `"Unauthorized"` — no `Authorization` header on the request.
|
|
683
|
+
- `"Bearer Authentication Failed"` — header present but token
|
|
684
|
+
is invalid, revoked, or expired.
|
|
685
|
+
required:
|
|
686
|
+
- message
|
|
687
|
+
- $ref: '#/components/schemas/Error'
|
|
683
688
|
examples:
|
|
684
689
|
missing_token:
|
|
685
690
|
summary: No Authorization header sent
|
|
@@ -689,6 +694,12 @@ components:
|
|
|
689
694
|
summary: Bearer token invalid or revoked
|
|
690
695
|
value:
|
|
691
696
|
message: Bearer Authentication Failed
|
|
697
|
+
scoped_token:
|
|
698
|
+
summary: An API token with a custom scope reading a resource
|
|
699
|
+
value:
|
|
700
|
+
errors:
|
|
701
|
+
- code: access_restricted
|
|
702
|
+
message: You don't have the required permissions to perform the action.
|
|
692
703
|
400-bad-request:
|
|
693
704
|
description: |
|
|
694
705
|
Bad request. The server could not understand the request because of malformed syntax or invalid parameters.
|
package/dist/script.yml
CHANGED
|
@@ -979,6 +979,46 @@ components:
|
|
|
979
979
|
description: Timestamp when the script was last updated.
|
|
980
980
|
examples:
|
|
981
981
|
- '2026-04-18T13:52:49.729Z'
|
|
982
|
+
Error:
|
|
983
|
+
type: object
|
|
984
|
+
description: Standard error response envelope returned by integrator.io APIs.
|
|
985
|
+
properties:
|
|
986
|
+
errors:
|
|
987
|
+
type: array
|
|
988
|
+
description: List of errors that occurred while processing the request.
|
|
989
|
+
items:
|
|
990
|
+
type: object
|
|
991
|
+
properties:
|
|
992
|
+
code:
|
|
993
|
+
oneOf:
|
|
994
|
+
- type: string
|
|
995
|
+
- type: integer
|
|
996
|
+
description: |-
|
|
997
|
+
Machine-readable error code. Usually a string like
|
|
998
|
+
`invalid_ref`, `missing_required_field`, or `unauthorized`;
|
|
999
|
+
may be an **integer** when the error mirrors an upstream HTTP
|
|
1000
|
+
status (e.g. `500`) — most commonly returned by connection-ping
|
|
1001
|
+
and adaptor-proxy responses.
|
|
1002
|
+
message:
|
|
1003
|
+
type: string
|
|
1004
|
+
description: Human-readable description of the error.
|
|
1005
|
+
field:
|
|
1006
|
+
type: string
|
|
1007
|
+
description: |-
|
|
1008
|
+
Optional pointer to the document field that caused the error.
|
|
1009
|
+
Used by structural validation errors (`missing_required_field`,
|
|
1010
|
+
`invalid_ref`) to indicate which field is at fault
|
|
1011
|
+
(e.g. `_id`, `type`, `http.baseURI`).
|
|
1012
|
+
source:
|
|
1013
|
+
type: string
|
|
1014
|
+
description: |-
|
|
1015
|
+
Optional origin layer for the error — e.g. `application` when
|
|
1016
|
+
the error came from the remote system the adaptor called,
|
|
1017
|
+
`connector` when the adaptor itself rejected the request.
|
|
1018
|
+
required:
|
|
1019
|
+
- message
|
|
1020
|
+
required:
|
|
1021
|
+
- errors
|
|
982
1022
|
Request:
|
|
983
1023
|
type: object
|
|
984
1024
|
description: Fields for creating or updating a script.
|
|
@@ -1025,46 +1065,6 @@ components:
|
|
|
1025
1065
|
format: objectId
|
|
1026
1066
|
x-celigo-refModel: templates
|
|
1027
1067
|
description: Optional template identifier used to generate or structure script content.
|
|
1028
|
-
Error:
|
|
1029
|
-
type: object
|
|
1030
|
-
description: Standard error response envelope returned by integrator.io APIs.
|
|
1031
|
-
properties:
|
|
1032
|
-
errors:
|
|
1033
|
-
type: array
|
|
1034
|
-
description: List of errors that occurred while processing the request.
|
|
1035
|
-
items:
|
|
1036
|
-
type: object
|
|
1037
|
-
properties:
|
|
1038
|
-
code:
|
|
1039
|
-
oneOf:
|
|
1040
|
-
- type: string
|
|
1041
|
-
- type: integer
|
|
1042
|
-
description: |-
|
|
1043
|
-
Machine-readable error code. Usually a string like
|
|
1044
|
-
`invalid_ref`, `missing_required_field`, or `unauthorized`;
|
|
1045
|
-
may be an **integer** when the error mirrors an upstream HTTP
|
|
1046
|
-
status (e.g. `500`) — most commonly returned by connection-ping
|
|
1047
|
-
and adaptor-proxy responses.
|
|
1048
|
-
message:
|
|
1049
|
-
type: string
|
|
1050
|
-
description: Human-readable description of the error.
|
|
1051
|
-
field:
|
|
1052
|
-
type: string
|
|
1053
|
-
description: |-
|
|
1054
|
-
Optional pointer to the document field that caused the error.
|
|
1055
|
-
Used by structural validation errors (`missing_required_field`,
|
|
1056
|
-
`invalid_ref`) to indicate which field is at fault
|
|
1057
|
-
(e.g. `_id`, `type`, `http.baseURI`).
|
|
1058
|
-
source:
|
|
1059
|
-
type: string
|
|
1060
|
-
description: |-
|
|
1061
|
-
Optional origin layer for the error — e.g. `application` when
|
|
1062
|
-
the error came from the remote system the adaptor called,
|
|
1063
|
-
`connector` when the adaptor itself rejected the request.
|
|
1064
|
-
required:
|
|
1065
|
-
- message
|
|
1066
|
-
required:
|
|
1067
|
-
- errors
|
|
1068
1068
|
DependencyEntry:
|
|
1069
1069
|
type: object
|
|
1070
1070
|
description: A single resource that depends on the queried resource.
|
|
@@ -1151,29 +1151,34 @@ components:
|
|
|
1151
1151
|
responses:
|
|
1152
1152
|
401-unauthorized:
|
|
1153
1153
|
description: |-
|
|
1154
|
-
Unauthorized
|
|
1155
|
-
failed to authenticate.
|
|
1154
|
+
Unauthorized, in one of two shapes.
|
|
1156
1155
|
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1156
|
+
No valid bearer token: the auth middleware answers before the endpoint
|
|
1157
|
+
handler runs, with a bare `{message: string}` body — no `code`, no
|
|
1158
|
+
`errors` array — so key off the HTTP status and `message`.
|
|
1159
|
+
|
|
1160
|
+
An API token with a custom scope calling an operation its scope does not
|
|
1161
|
+
grant: the token authenticated, and the body is the standard
|
|
1162
|
+
`{errors: [...]}` envelope with code `access_restricted`. Observed on
|
|
1163
|
+
`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token
|
|
1164
|
+
passed both, a personal access token `GET /v1/exports/{_id}`.
|
|
1163
1165
|
content:
|
|
1164
1166
|
application/json:
|
|
1165
1167
|
schema:
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1168
|
+
oneOf:
|
|
1169
|
+
- type: object
|
|
1170
|
+
description: The auth middleware's bare body for a missing or invalid token.
|
|
1171
|
+
properties:
|
|
1172
|
+
message:
|
|
1173
|
+
type: string
|
|
1174
|
+
description: |-
|
|
1175
|
+
Human-readable description of the auth failure. Known values:
|
|
1176
|
+
- `"Unauthorized"` — no `Authorization` header on the request.
|
|
1177
|
+
- `"Bearer Authentication Failed"` — header present but token
|
|
1178
|
+
is invalid, revoked, or expired.
|
|
1179
|
+
required:
|
|
1180
|
+
- message
|
|
1181
|
+
- $ref: '#/components/schemas/Error'
|
|
1177
1182
|
examples:
|
|
1178
1183
|
missing_token:
|
|
1179
1184
|
summary: No Authorization header sent
|
|
@@ -1183,6 +1188,12 @@ components:
|
|
|
1183
1188
|
summary: Bearer token invalid or revoked
|
|
1184
1189
|
value:
|
|
1185
1190
|
message: Bearer Authentication Failed
|
|
1191
|
+
scoped_token:
|
|
1192
|
+
summary: An API token with a custom scope reading a resource
|
|
1193
|
+
value:
|
|
1194
|
+
errors:
|
|
1195
|
+
- code: access_restricted
|
|
1196
|
+
message: You don't have the required permissions to perform the action.
|
|
1186
1197
|
400-bad-request:
|
|
1187
1198
|
description: |
|
|
1188
1199
|
Bad request. The server could not understand the request because of malformed syntax or invalid parameters.
|
package/dist/stack.yml
CHANGED
|
@@ -1891,29 +1891,34 @@ components:
|
|
|
1891
1891
|
responses:
|
|
1892
1892
|
401-unauthorized:
|
|
1893
1893
|
description: |-
|
|
1894
|
-
Unauthorized
|
|
1895
|
-
failed to authenticate.
|
|
1894
|
+
Unauthorized, in one of two shapes.
|
|
1896
1895
|
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1896
|
+
No valid bearer token: the auth middleware answers before the endpoint
|
|
1897
|
+
handler runs, with a bare `{message: string}` body — no `code`, no
|
|
1898
|
+
`errors` array — so key off the HTTP status and `message`.
|
|
1899
|
+
|
|
1900
|
+
An API token with a custom scope calling an operation its scope does not
|
|
1901
|
+
grant: the token authenticated, and the body is the standard
|
|
1902
|
+
`{errors: [...]}` envelope with code `access_restricted`. Observed on
|
|
1903
|
+
`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token
|
|
1904
|
+
passed both, a personal access token `GET /v1/exports/{_id}`.
|
|
1903
1905
|
content:
|
|
1904
1906
|
application/json:
|
|
1905
1907
|
schema:
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1908
|
+
oneOf:
|
|
1909
|
+
- type: object
|
|
1910
|
+
description: The auth middleware's bare body for a missing or invalid token.
|
|
1911
|
+
properties:
|
|
1912
|
+
message:
|
|
1913
|
+
type: string
|
|
1914
|
+
description: |-
|
|
1915
|
+
Human-readable description of the auth failure. Known values:
|
|
1916
|
+
- `"Unauthorized"` — no `Authorization` header on the request.
|
|
1917
|
+
- `"Bearer Authentication Failed"` — header present but token
|
|
1918
|
+
is invalid, revoked, or expired.
|
|
1919
|
+
required:
|
|
1920
|
+
- message
|
|
1921
|
+
- $ref: '#/components/schemas/Error'
|
|
1917
1922
|
examples:
|
|
1918
1923
|
missing_token:
|
|
1919
1924
|
summary: No Authorization header sent
|
|
@@ -1923,6 +1928,12 @@ components:
|
|
|
1923
1928
|
summary: Bearer token invalid or revoked
|
|
1924
1929
|
value:
|
|
1925
1930
|
message: Bearer Authentication Failed
|
|
1931
|
+
scoped_token:
|
|
1932
|
+
summary: An API token with a custom scope reading a resource
|
|
1933
|
+
value:
|
|
1934
|
+
errors:
|
|
1935
|
+
- code: access_restricted
|
|
1936
|
+
message: You don't have the required permissions to perform the action.
|
|
1926
1937
|
422-unprocessable-entity:
|
|
1927
1938
|
description: |
|
|
1928
1939
|
Unprocessable entity. The request was well-formed but was unable to be followed due to semantic errors.
|