@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/tag.yml
CHANGED
|
@@ -392,22 +392,6 @@ components:
|
|
|
392
392
|
in `PUT /v1/flows/{_id}/{_stepId}/tags` `tagIds[]`.
|
|
393
393
|
Server-generated and immutable: `tagId` values supplied on
|
|
394
394
|
create/update are ignored and a fresh code is generated.
|
|
395
|
-
Request:
|
|
396
|
-
type: object
|
|
397
|
-
description: Fields for creating or updating a tag.
|
|
398
|
-
required:
|
|
399
|
-
- tag
|
|
400
|
-
properties:
|
|
401
|
-
tag:
|
|
402
|
-
type: string
|
|
403
|
-
minLength: 1
|
|
404
|
-
maxLength: 100
|
|
405
|
-
examples:
|
|
406
|
-
- Urgent
|
|
407
|
-
description: |-
|
|
408
|
-
The human-readable tag name. Case-insensitively unique within the
|
|
409
|
-
account. Whitespace is trimmed on save; names that are empty after
|
|
410
|
-
trimming are rejected.
|
|
411
395
|
Error:
|
|
412
396
|
type: object
|
|
413
397
|
description: Standard error response envelope returned by integrator.io APIs.
|
|
@@ -448,6 +432,22 @@ components:
|
|
|
448
432
|
- message
|
|
449
433
|
required:
|
|
450
434
|
- errors
|
|
435
|
+
Request:
|
|
436
|
+
type: object
|
|
437
|
+
description: Fields for creating or updating a tag.
|
|
438
|
+
required:
|
|
439
|
+
- tag
|
|
440
|
+
properties:
|
|
441
|
+
tag:
|
|
442
|
+
type: string
|
|
443
|
+
minLength: 1
|
|
444
|
+
maxLength: 100
|
|
445
|
+
examples:
|
|
446
|
+
- Urgent
|
|
447
|
+
description: |-
|
|
448
|
+
The human-readable tag name. Case-insensitively unique within the
|
|
449
|
+
account. Whitespace is trimmed on save; names that are empty after
|
|
450
|
+
trimming are rejected.
|
|
451
451
|
JsonPatchOperation:
|
|
452
452
|
type: object
|
|
453
453
|
description: A single JSON Patch operation (RFC 6902).
|
|
@@ -486,29 +486,34 @@ components:
|
|
|
486
486
|
responses:
|
|
487
487
|
401-unauthorized:
|
|
488
488
|
description: |-
|
|
489
|
-
Unauthorized
|
|
490
|
-
failed to authenticate.
|
|
489
|
+
Unauthorized, in one of two shapes.
|
|
491
490
|
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
491
|
+
No valid bearer token: the auth middleware answers before the endpoint
|
|
492
|
+
handler runs, with a bare `{message: string}` body — no `code`, no
|
|
493
|
+
`errors` array — so key off the HTTP status and `message`.
|
|
494
|
+
|
|
495
|
+
An API token with a custom scope calling an operation its scope does not
|
|
496
|
+
grant: the token authenticated, and the body is the standard
|
|
497
|
+
`{errors: [...]}` envelope with code `access_restricted`. Observed on
|
|
498
|
+
`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token
|
|
499
|
+
passed both, a personal access token `GET /v1/exports/{_id}`.
|
|
498
500
|
content:
|
|
499
501
|
application/json:
|
|
500
502
|
schema:
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
503
|
+
oneOf:
|
|
504
|
+
- type: object
|
|
505
|
+
description: The auth middleware's bare body for a missing or invalid token.
|
|
506
|
+
properties:
|
|
507
|
+
message:
|
|
508
|
+
type: string
|
|
509
|
+
description: |-
|
|
510
|
+
Human-readable description of the auth failure. Known values:
|
|
511
|
+
- `"Unauthorized"` — no `Authorization` header on the request.
|
|
512
|
+
- `"Bearer Authentication Failed"` — header present but token
|
|
513
|
+
is invalid, revoked, or expired.
|
|
514
|
+
required:
|
|
515
|
+
- message
|
|
516
|
+
- $ref: '#/components/schemas/Error'
|
|
512
517
|
examples:
|
|
513
518
|
missing_token:
|
|
514
519
|
summary: No Authorization header sent
|
|
@@ -518,6 +523,12 @@ components:
|
|
|
518
523
|
summary: Bearer token invalid or revoked
|
|
519
524
|
value:
|
|
520
525
|
message: Bearer Authentication Failed
|
|
526
|
+
scoped_token:
|
|
527
|
+
summary: An API token with a custom scope reading a resource
|
|
528
|
+
value:
|
|
529
|
+
errors:
|
|
530
|
+
- code: access_restricted
|
|
531
|
+
message: You don't have the required permissions to perform the action.
|
|
521
532
|
400-bad-request:
|
|
522
533
|
description: |
|
|
523
534
|
Bad request. The server could not understand the request because of malformed syntax or invalid parameters.
|
package/dist/template.yml
CHANGED
|
@@ -1052,29 +1052,34 @@ components:
|
|
|
1052
1052
|
responses:
|
|
1053
1053
|
401-unauthorized:
|
|
1054
1054
|
description: |-
|
|
1055
|
-
Unauthorized
|
|
1056
|
-
failed to authenticate.
|
|
1055
|
+
Unauthorized, in one of two shapes.
|
|
1057
1056
|
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1057
|
+
No valid bearer token: the auth middleware answers before the endpoint
|
|
1058
|
+
handler runs, with a bare `{message: string}` body — no `code`, no
|
|
1059
|
+
`errors` array — so key off the HTTP status and `message`.
|
|
1060
|
+
|
|
1061
|
+
An API token with a custom scope calling an operation its scope does not
|
|
1062
|
+
grant: the token authenticated, and the body is the standard
|
|
1063
|
+
`{errors: [...]}` envelope with code `access_restricted`. Observed on
|
|
1064
|
+
`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token
|
|
1065
|
+
passed both, a personal access token `GET /v1/exports/{_id}`.
|
|
1064
1066
|
content:
|
|
1065
1067
|
application/json:
|
|
1066
1068
|
schema:
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1069
|
+
oneOf:
|
|
1070
|
+
- type: object
|
|
1071
|
+
description: The auth middleware's bare body for a missing or invalid token.
|
|
1072
|
+
properties:
|
|
1073
|
+
message:
|
|
1074
|
+
type: string
|
|
1075
|
+
description: |-
|
|
1076
|
+
Human-readable description of the auth failure. Known values:
|
|
1077
|
+
- `"Unauthorized"` — no `Authorization` header on the request.
|
|
1078
|
+
- `"Bearer Authentication Failed"` — header present but token
|
|
1079
|
+
is invalid, revoked, or expired.
|
|
1080
|
+
required:
|
|
1081
|
+
- message
|
|
1082
|
+
- $ref: '#/components/schemas/Error'
|
|
1078
1083
|
examples:
|
|
1079
1084
|
missing_token:
|
|
1080
1085
|
summary: No Authorization header sent
|
|
@@ -1084,6 +1089,12 @@ components:
|
|
|
1084
1089
|
summary: Bearer token invalid or revoked
|
|
1085
1090
|
value:
|
|
1086
1091
|
message: Bearer Authentication Failed
|
|
1092
|
+
scoped_token:
|
|
1093
|
+
summary: An API token with a custom scope reading a resource
|
|
1094
|
+
value:
|
|
1095
|
+
errors:
|
|
1096
|
+
- code: access_restricted
|
|
1097
|
+
message: You don't have the required permissions to perform the action.
|
|
1087
1098
|
403-partner-only:
|
|
1088
1099
|
description: |-
|
|
1089
1100
|
The account isn't a Celigo Partner account. Every caller on such an account is refused with
|
package/dist/tool.yml
CHANGED
|
@@ -7484,17 +7484,6 @@ components:
|
|
|
7484
7484
|
- |-
|
|
7485
7485
|
Contains the complete tool configuration including metadata, input/output
|
|
7486
7486
|
settings, routing logic, and AI-generated descriptions.
|
|
7487
|
-
Request:
|
|
7488
|
-
type: object
|
|
7489
|
-
description: |-
|
|
7490
|
-
Request schema for creating or updating a tool. Tools are reusable processing
|
|
7491
|
-
units that encapsulate input transformation, conditional routing, and output
|
|
7492
|
-
mapping logic within an integration.
|
|
7493
|
-
required:
|
|
7494
|
-
- name
|
|
7495
|
-
- _integrationId
|
|
7496
|
-
allOf:
|
|
7497
|
-
- $ref: '#/components/schemas/ToolBase'
|
|
7498
7487
|
Error:
|
|
7499
7488
|
type: object
|
|
7500
7489
|
description: Standard error response envelope returned by integrator.io APIs.
|
|
@@ -7535,6 +7524,17 @@ components:
|
|
|
7535
7524
|
- message
|
|
7536
7525
|
required:
|
|
7537
7526
|
- errors
|
|
7527
|
+
Request:
|
|
7528
|
+
type: object
|
|
7529
|
+
description: |-
|
|
7530
|
+
Request schema for creating or updating a tool. Tools are reusable processing
|
|
7531
|
+
units that encapsulate input transformation, conditional routing, and output
|
|
7532
|
+
mapping logic within an integration.
|
|
7533
|
+
required:
|
|
7534
|
+
- name
|
|
7535
|
+
- _integrationId
|
|
7536
|
+
allOf:
|
|
7537
|
+
- $ref: '#/components/schemas/ToolBase'
|
|
7538
7538
|
JsonPatchOperation:
|
|
7539
7539
|
type: object
|
|
7540
7540
|
description: A single JSON Patch operation (RFC 6902).
|
|
@@ -22726,13 +22726,12 @@ components:
|
|
|
22726
22726
|
uniqueItems: true
|
|
22727
22727
|
default: []
|
|
22728
22728
|
description: |-
|
|
22729
|
-
Knowledge bases the agent retrieves from, for every provider.
|
|
22730
|
-
|
|
22731
|
-
`
|
|
22732
|
-
|
|
22733
|
-
|
|
22734
|
-
|
|
22735
|
-
`/aiAgent/attachedKnowledgeBaseIds`.
|
|
22729
|
+
Knowledge bases the agent retrieves from, for every provider. A PUT stores exactly the list
|
|
22730
|
+
its body carries: an array becomes the stored list (duplicate ids collapse to their first
|
|
22731
|
+
occurrence, `[]` detaches every knowledge base), and a body without the field, or with
|
|
22732
|
+
`null`, removes it. A stored empty list reads back as `[]` — what an agent created without
|
|
22733
|
+
the field gets — and the key is omitted where the list was never written (an agent created
|
|
22734
|
+
before this field existed) or was removed, by such a PUT or by a PATCH `remove`.
|
|
22736
22735
|
items:
|
|
22737
22736
|
type: string
|
|
22738
22737
|
format: objectId
|
|
@@ -22744,9 +22743,15 @@ components:
|
|
|
22744
22743
|
with 422 `attached_knowledge_base_invalid` naming the ids, and more than 50 distinct
|
|
22745
22744
|
ids fails with 422 `invalid_field` on `aiAgent.attachedKnowledgeBaseIds`.
|
|
22746
22745
|
- |-
|
|
22747
|
-
|
|
22748
|
-
`
|
|
22749
|
-
|
|
22746
|
+
A PUT that leaves the field out detaches every knowledge base, exactly like `[]` or
|
|
22747
|
+
`null`: when a PUT changes anything else on the agent, send the list back as it was
|
|
22748
|
+
read.
|
|
22749
|
+
- |-
|
|
22750
|
+
To change the list alone use `PATCH /v1/imports/{_id}`: `replace` on
|
|
22751
|
+
`/aiAgent/attachedKnowledgeBaseIds` with the complete list (`[]` detaches all), or `add`
|
|
22752
|
+
at `/aiAgent/attachedKnowledgeBaseIds/-` to append one id — an id already attached
|
|
22753
|
+
changes nothing. `remove` at an array index fails with 422 ("Remove at array index is
|
|
22754
|
+
not supported"), so detach one id by replacing the list without it.
|
|
22750
22755
|
openai:
|
|
22751
22756
|
type: object
|
|
22752
22757
|
description: |
|
|
@@ -24271,11 +24276,10 @@ components:
|
|
|
24271
24276
|
uniqueItems: true
|
|
24272
24277
|
description: |-
|
|
24273
24278
|
Knowledge bases the guardrail's model retrieves from, for every provider. Present only once
|
|
24274
|
-
set: a guardrail created without the list has no field, and a PATCH `remove
|
|
24275
|
-
|
|
24276
|
-
|
|
24277
|
-
|
|
24278
|
-
`/guardrail/aiAgent/attachedKnowledgeBaseIds`.
|
|
24279
|
+
set: a guardrail created without the list has no field, and a PATCH `remove`, or a PUT
|
|
24280
|
+
that omits the list or sends `null`, drops it again. A PUT stores exactly the list its body
|
|
24281
|
+
carries — duplicate ids collapse to their first occurrence, and `[]` detaches every
|
|
24282
|
+
knowledge base.
|
|
24279
24283
|
items:
|
|
24280
24284
|
type: string
|
|
24281
24285
|
format: objectId
|
|
@@ -24288,10 +24292,17 @@ components:
|
|
|
24288
24292
|
ids fails with 422 `invalid_field` on `guardrail.aiAgent.attachedKnowledgeBaseIds`
|
|
24289
24293
|
(the message names `aiAgent.attachedKnowledgeBaseIds`).
|
|
24290
24294
|
- |-
|
|
24291
|
-
|
|
24292
|
-
`
|
|
24293
|
-
|
|
24294
|
-
|
|
24295
|
+
A PUT that leaves the field out detaches every knowledge base, exactly like `[]` or
|
|
24296
|
+
`null`: when a PUT changes anything else on the guardrail, send the list back as it was
|
|
24297
|
+
read.
|
|
24298
|
+
- |-
|
|
24299
|
+
To change the list alone use `PATCH /v1/imports/{_id}`: `replace` on
|
|
24300
|
+
`/guardrail/aiAgent/attachedKnowledgeBaseIds` with the complete list (`[]` detaches
|
|
24301
|
+
all) works whether or not the field exists. `add` at
|
|
24302
|
+
`/guardrail/aiAgent/attachedKnowledgeBaseIds/-` appends one id only where the field
|
|
24303
|
+
exists — on a guardrail without it the request fails with 422
|
|
24304
|
+
("guardrail.aiAgent.attachedKnowledgeBaseIds is not an array") — and `remove` at an
|
|
24305
|
+
array index fails with 422.
|
|
24295
24306
|
openai:
|
|
24296
24307
|
type: object
|
|
24297
24308
|
description: |
|
|
@@ -41666,29 +41677,34 @@ components:
|
|
|
41666
41677
|
responses:
|
|
41667
41678
|
401-unauthorized:
|
|
41668
41679
|
description: |-
|
|
41669
|
-
Unauthorized
|
|
41670
|
-
|
|
41671
|
-
|
|
41672
|
-
|
|
41673
|
-
|
|
41674
|
-
|
|
41675
|
-
|
|
41676
|
-
|
|
41677
|
-
|
|
41680
|
+
Unauthorized, in one of two shapes.
|
|
41681
|
+
|
|
41682
|
+
No valid bearer token: the auth middleware answers before the endpoint
|
|
41683
|
+
handler runs, with a bare `{message: string}` body — no `code`, no
|
|
41684
|
+
`errors` array — so key off the HTTP status and `message`.
|
|
41685
|
+
|
|
41686
|
+
An API token with a custom scope calling an operation its scope does not
|
|
41687
|
+
grant: the token authenticated, and the body is the standard
|
|
41688
|
+
`{errors: [...]}` envelope with code `access_restricted`. Observed on
|
|
41689
|
+
`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token
|
|
41690
|
+
passed both, a personal access token `GET /v1/exports/{_id}`.
|
|
41678
41691
|
content:
|
|
41679
41692
|
application/json:
|
|
41680
41693
|
schema:
|
|
41681
|
-
|
|
41682
|
-
|
|
41683
|
-
|
|
41684
|
-
|
|
41685
|
-
|
|
41686
|
-
|
|
41687
|
-
|
|
41688
|
-
|
|
41689
|
-
|
|
41690
|
-
|
|
41691
|
-
|
|
41694
|
+
oneOf:
|
|
41695
|
+
- type: object
|
|
41696
|
+
description: The auth middleware's bare body for a missing or invalid token.
|
|
41697
|
+
properties:
|
|
41698
|
+
message:
|
|
41699
|
+
type: string
|
|
41700
|
+
description: |-
|
|
41701
|
+
Human-readable description of the auth failure. Known values:
|
|
41702
|
+
- `"Unauthorized"` — no `Authorization` header on the request.
|
|
41703
|
+
- `"Bearer Authentication Failed"` — header present but token
|
|
41704
|
+
is invalid, revoked, or expired.
|
|
41705
|
+
required:
|
|
41706
|
+
- message
|
|
41707
|
+
- $ref: '#/components/schemas/Error'
|
|
41692
41708
|
examples:
|
|
41693
41709
|
missing_token:
|
|
41694
41710
|
summary: No Authorization header sent
|
|
@@ -41698,6 +41714,12 @@ components:
|
|
|
41698
41714
|
summary: Bearer token invalid or revoked
|
|
41699
41715
|
value:
|
|
41700
41716
|
message: Bearer Authentication Failed
|
|
41717
|
+
scoped_token:
|
|
41718
|
+
summary: An API token with a custom scope reading a resource
|
|
41719
|
+
value:
|
|
41720
|
+
errors:
|
|
41721
|
+
- code: access_restricted
|
|
41722
|
+
message: You don't have the required permissions to perform the action.
|
|
41701
41723
|
400-bad-request:
|
|
41702
41724
|
description: |
|
|
41703
41725
|
Bad request. The server could not understand the request because of malformed syntax or invalid parameters.
|
package/dist/topic.yml
CHANGED
|
@@ -1866,29 +1866,34 @@ components:
|
|
|
1866
1866
|
responses:
|
|
1867
1867
|
401-unauthorized:
|
|
1868
1868
|
description: |-
|
|
1869
|
-
Unauthorized
|
|
1870
|
-
failed to authenticate.
|
|
1869
|
+
Unauthorized, in one of two shapes.
|
|
1871
1870
|
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1871
|
+
No valid bearer token: the auth middleware answers before the endpoint
|
|
1872
|
+
handler runs, with a bare `{message: string}` body — no `code`, no
|
|
1873
|
+
`errors` array — so key off the HTTP status and `message`.
|
|
1874
|
+
|
|
1875
|
+
An API token with a custom scope calling an operation its scope does not
|
|
1876
|
+
grant: the token authenticated, and the body is the standard
|
|
1877
|
+
`{errors: [...]}` envelope with code `access_restricted`. Observed on
|
|
1878
|
+
`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token
|
|
1879
|
+
passed both, a personal access token `GET /v1/exports/{_id}`.
|
|
1878
1880
|
content:
|
|
1879
1881
|
application/json:
|
|
1880
1882
|
schema:
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1883
|
+
oneOf:
|
|
1884
|
+
- type: object
|
|
1885
|
+
description: The auth middleware's bare body for a missing or invalid token.
|
|
1886
|
+
properties:
|
|
1887
|
+
message:
|
|
1888
|
+
type: string
|
|
1889
|
+
description: |-
|
|
1890
|
+
Human-readable description of the auth failure. Known values:
|
|
1891
|
+
- `"Unauthorized"` — no `Authorization` header on the request.
|
|
1892
|
+
- `"Bearer Authentication Failed"` — header present but token
|
|
1893
|
+
is invalid, revoked, or expired.
|
|
1894
|
+
required:
|
|
1895
|
+
- message
|
|
1896
|
+
- $ref: '#/components/schemas/Error'
|
|
1892
1897
|
examples:
|
|
1893
1898
|
missing_token:
|
|
1894
1899
|
summary: No Authorization header sent
|
|
@@ -1898,6 +1903,12 @@ components:
|
|
|
1898
1903
|
summary: Bearer token invalid or revoked
|
|
1899
1904
|
value:
|
|
1900
1905
|
message: Bearer Authentication Failed
|
|
1906
|
+
scoped_token:
|
|
1907
|
+
summary: An API token with a custom scope reading a resource
|
|
1908
|
+
value:
|
|
1909
|
+
errors:
|
|
1910
|
+
- code: access_restricted
|
|
1911
|
+
message: You don't have the required permissions to perform the action.
|
|
1901
1912
|
404-not-found:
|
|
1902
1913
|
description: |
|
|
1903
1914
|
Not found. The requested resource does not exist or is not visible to the caller.
|
|
@@ -1556,29 +1556,34 @@ components:
|
|
|
1556
1556
|
responses:
|
|
1557
1557
|
401-unauthorized:
|
|
1558
1558
|
description: |-
|
|
1559
|
-
Unauthorized
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1559
|
+
Unauthorized, in one of two shapes.
|
|
1560
|
+
|
|
1561
|
+
No valid bearer token: the auth middleware answers before the endpoint
|
|
1562
|
+
handler runs, with a bare `{message: string}` body — no `code`, no
|
|
1563
|
+
`errors` array — so key off the HTTP status and `message`.
|
|
1564
|
+
|
|
1565
|
+
An API token with a custom scope calling an operation its scope does not
|
|
1566
|
+
grant: the token authenticated, and the body is the standard
|
|
1567
|
+
`{errors: [...]}` envelope with code `access_restricted`. Observed on
|
|
1568
|
+
`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token
|
|
1569
|
+
passed both, a personal access token `GET /v1/exports/{_id}`.
|
|
1568
1570
|
content:
|
|
1569
1571
|
application/json:
|
|
1570
1572
|
schema:
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1573
|
+
oneOf:
|
|
1574
|
+
- type: object
|
|
1575
|
+
description: The auth middleware's bare body for a missing or invalid token.
|
|
1576
|
+
properties:
|
|
1577
|
+
message:
|
|
1578
|
+
type: string
|
|
1579
|
+
description: |-
|
|
1580
|
+
Human-readable description of the auth failure. Known values:
|
|
1581
|
+
- `"Unauthorized"` — no `Authorization` header on the request.
|
|
1582
|
+
- `"Bearer Authentication Failed"` — header present but token
|
|
1583
|
+
is invalid, revoked, or expired.
|
|
1584
|
+
required:
|
|
1585
|
+
- message
|
|
1586
|
+
- $ref: '#/components/schemas/Error'
|
|
1582
1587
|
examples:
|
|
1583
1588
|
missing_token:
|
|
1584
1589
|
summary: No Authorization header sent
|
|
@@ -1588,6 +1593,12 @@ components:
|
|
|
1588
1593
|
summary: Bearer token invalid or revoked
|
|
1589
1594
|
value:
|
|
1590
1595
|
message: Bearer Authentication Failed
|
|
1596
|
+
scoped_token:
|
|
1597
|
+
summary: An API token with a custom scope reading a resource
|
|
1598
|
+
value:
|
|
1599
|
+
errors:
|
|
1600
|
+
- code: access_restricted
|
|
1601
|
+
message: You don't have the required permissions to perform the action.
|
|
1591
1602
|
400-bad-request:
|
|
1592
1603
|
description: |
|
|
1593
1604
|
Bad request. The server could not understand the request because of malformed syntax or invalid parameters.
|
package/dist/user.yml
CHANGED
|
@@ -1339,29 +1339,34 @@ components:
|
|
|
1339
1339
|
responses:
|
|
1340
1340
|
401-unauthorized:
|
|
1341
1341
|
description: |-
|
|
1342
|
-
Unauthorized
|
|
1343
|
-
failed to authenticate.
|
|
1342
|
+
Unauthorized, in one of two shapes.
|
|
1344
1343
|
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1344
|
+
No valid bearer token: the auth middleware answers before the endpoint
|
|
1345
|
+
handler runs, with a bare `{message: string}` body — no `code`, no
|
|
1346
|
+
`errors` array — so key off the HTTP status and `message`.
|
|
1347
|
+
|
|
1348
|
+
An API token with a custom scope calling an operation its scope does not
|
|
1349
|
+
grant: the token authenticated, and the body is the standard
|
|
1350
|
+
`{errors: [...]}` envelope with code `access_restricted`. Observed on
|
|
1351
|
+
`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token
|
|
1352
|
+
passed both, a personal access token `GET /v1/exports/{_id}`.
|
|
1351
1353
|
content:
|
|
1352
1354
|
application/json:
|
|
1353
1355
|
schema:
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1356
|
+
oneOf:
|
|
1357
|
+
- type: object
|
|
1358
|
+
description: The auth middleware's bare body for a missing or invalid token.
|
|
1359
|
+
properties:
|
|
1360
|
+
message:
|
|
1361
|
+
type: string
|
|
1362
|
+
description: |-
|
|
1363
|
+
Human-readable description of the auth failure. Known values:
|
|
1364
|
+
- `"Unauthorized"` — no `Authorization` header on the request.
|
|
1365
|
+
- `"Bearer Authentication Failed"` — header present but token
|
|
1366
|
+
is invalid, revoked, or expired.
|
|
1367
|
+
required:
|
|
1368
|
+
- message
|
|
1369
|
+
- $ref: '#/components/schemas/Error'
|
|
1365
1370
|
examples:
|
|
1366
1371
|
missing_token:
|
|
1367
1372
|
summary: No Authorization header sent
|
|
@@ -1371,6 +1376,12 @@ components:
|
|
|
1371
1376
|
summary: Bearer token invalid or revoked
|
|
1372
1377
|
value:
|
|
1373
1378
|
message: Bearer Authentication Failed
|
|
1379
|
+
scoped_token:
|
|
1380
|
+
summary: An API token with a custom scope reading a resource
|
|
1381
|
+
value:
|
|
1382
|
+
errors:
|
|
1383
|
+
- code: access_restricted
|
|
1384
|
+
message: You don't have the required permissions to perform the action.
|
|
1374
1385
|
404-not-found:
|
|
1375
1386
|
description: |
|
|
1376
1387
|
Not found. The requested resource does not exist or is not visible to the caller.
|
package/package.json
CHANGED