@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.
Files changed (53) hide show
  1. package/dist/account.yml +70 -59
  2. package/dist/agent.yml +30 -19
  3. package/dist/agentgroup.yml +30 -19
  4. package/dist/ai-agent.yml +46 -30
  5. package/dist/alert.yml +30 -19
  6. package/dist/api.yml +31 -20
  7. package/dist/apim.yml +30 -19
  8. package/dist/asynchelper.yml +48 -37
  9. package/dist/audit.yml +30 -19
  10. package/dist/bartendertemplate.yml +30 -19
  11. package/dist/connection.yml +92 -64
  12. package/dist/connector.yml +30 -19
  13. package/dist/ediprofile.yml +43 -32
  14. package/dist/editransaction.yml +30 -19
  15. package/dist/enduser.yml +30 -19
  16. package/dist/environment.yml +30 -19
  17. package/dist/eventreport.yml +70 -59
  18. package/dist/export.yml +71 -60
  19. package/dist/filedefinition.yml +65 -54
  20. package/dist/fileserver.yml +30 -19
  21. package/dist/filestorage.yml +30 -19
  22. package/dist/flow.yml +31 -20
  23. package/dist/guardrail.yml +85 -68
  24. package/dist/httpconnector.yml +71 -60
  25. package/dist/httpconnectorendpoint.yml +30 -19
  26. package/dist/httpconnectorresource.yml +31 -20
  27. package/dist/iclient.yml +51 -40
  28. package/dist/import.yml +103 -81
  29. package/dist/integration.yml +37 -26
  30. package/dist/job.yml +30 -19
  31. package/dist/lookupcache.yml +35 -24
  32. package/dist/marketplace.yml +30 -19
  33. package/dist/mcp-oauth-provider.yml +42 -31
  34. package/dist/mcp-server.yml +52 -41
  35. package/dist/networkpolicy.yml +30 -19
  36. package/dist/notification.yml +30 -19
  37. package/dist/processor.yml +70 -59
  38. package/dist/profile.yml +43 -32
  39. package/dist/recyclebin.yml +30 -19
  40. package/dist/script.yml +70 -59
  41. package/dist/stack.yml +30 -19
  42. package/dist/state.yml +30 -19
  43. package/dist/storagequery.yml +30 -19
  44. package/dist/subscription.yml +70 -19
  45. package/dist/sync.yml +30 -19
  46. package/dist/tag.yml +46 -35
  47. package/dist/template.yml +30 -19
  48. package/dist/tool.yml +72 -50
  49. package/dist/topic.yml +30 -19
  50. package/dist/tradingpartnerconnector.yml +31 -20
  51. package/dist/user.yml +30 -19
  52. package/package.json +1 -1
  53. 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. The request lacks a valid bearer token, or the provided token
490
- failed to authenticate.
489
+ Unauthorized, in one of two shapes.
491
490
 
492
- Note: the 401 response is produced by the auth middleware **before** the
493
- request reaches the endpoint handler, so it does **not** follow the
494
- standard `{errors: [...]}` envelope. Instead the body is a bare
495
- `{message: string}` object with no `code`, no `errors` array. Callers
496
- handling 401s should key off the HTTP status and the `message` string,
497
- not try to destructure an `errors[]`.
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
- type: object
502
- properties:
503
- message:
504
- type: string
505
- description: |-
506
- Human-readable description of the auth failure. Known values:
507
- - `"Unauthorized"` — no `Authorization` header on the request.
508
- - `"Bearer Authentication Failed"` — header present but token
509
- is invalid, revoked, or expired.
510
- required:
511
- - message
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. The request lacks a valid bearer token, or the provided token
1056
- failed to authenticate.
1055
+ Unauthorized, in one of two shapes.
1057
1056
 
1058
- Note: the 401 response is produced by the auth middleware **before** the
1059
- request reaches the endpoint handler, so it does **not** follow the
1060
- standard `{errors: [...]}` envelope. Instead the body is a bare
1061
- `{message: string}` object with no `code`, no `errors` array. Callers
1062
- handling 401s should key off the HTTP status and the `message` string,
1063
- not try to destructure an `errors[]`.
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
- type: object
1068
- properties:
1069
- message:
1070
- type: string
1071
- description: |-
1072
- Human-readable description of the auth failure. Known values:
1073
- - `"Unauthorized"` — no `Authorization` header on the request.
1074
- - `"Bearer Authentication Failed"` — header present but token
1075
- is invalid, revoked, or expired.
1076
- required:
1077
- - message
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. An agent with none attached
22730
- returns `[]`, except one whose last POST or PUT predates this field and one after a PATCH
22731
- `remove`: both omit the key. On PUT a non-empty array becomes the stored list (duplicate
22732
- ids collapse to their first occurrence), while omitting the list, `null`, and `[]` keep a
22733
- stored list and write `[]` where the key is absent; clear a stored list with
22734
- `PATCH /v1/imports/{_id}` — `replace` with `[]` or `remove` on
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
- Sending `[]` on PUT does not detach anything; use PATCH `replace` with `[]` or
22748
- `remove` on the whole path. PATCH `add` at `/aiAgent/attachedKnowledgeBaseIds/-`
22749
- does not append — it fails with 422 — so send the complete list with `replace`.
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` drops it
24275
- again. On PUT a non-empty array replaces the stored list (duplicate ids collapse to their
24276
- first occurrence), while omitting the list, `null`, and `[]` all keep it; clear it with
24277
- `PATCH /v1/imports/{_id}` — `replace` with `[]` or `remove` on
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
- Sending `[]` on PUT does not detach anything; use PATCH `replace` with `[]` or
24292
- `remove` on the whole path. PATCH `add` at
24293
- `/guardrail/aiAgent/attachedKnowledgeBaseIds/-` does not append — it fails with
24294
- 422 — so send the complete list with `replace`.
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. The request lacks a valid bearer token, or the provided token
41670
- failed to authenticate.
41671
-
41672
- Note: the 401 response is produced by the auth middleware **before** the
41673
- request reaches the endpoint handler, so it does **not** follow the
41674
- standard `{errors: [...]}` envelope. Instead the body is a bare
41675
- `{message: string}` object with no `code`, no `errors` array. Callers
41676
- handling 401s should key off the HTTP status and the `message` string,
41677
- not try to destructure an `errors[]`.
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
- type: object
41682
- properties:
41683
- message:
41684
- type: string
41685
- description: |-
41686
- Human-readable description of the auth failure. Known values:
41687
- - `"Unauthorized"` — no `Authorization` header on the request.
41688
- - `"Bearer Authentication Failed"` — header present but token
41689
- is invalid, revoked, or expired.
41690
- required:
41691
- - message
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. The request lacks a valid bearer token, or the provided token
1870
- failed to authenticate.
1869
+ Unauthorized, in one of two shapes.
1871
1870
 
1872
- Note: the 401 response is produced by the auth middleware **before** the
1873
- request reaches the endpoint handler, so it does **not** follow the
1874
- standard `{errors: [...]}` envelope. Instead the body is a bare
1875
- `{message: string}` object with no `code`, no `errors` array. Callers
1876
- handling 401s should key off the HTTP status and the `message` string,
1877
- not try to destructure an `errors[]`.
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
- type: object
1882
- properties:
1883
- message:
1884
- type: string
1885
- description: |-
1886
- Human-readable description of the auth failure. Known values:
1887
- - `"Unauthorized"` — no `Authorization` header on the request.
1888
- - `"Bearer Authentication Failed"` — header present but token
1889
- is invalid, revoked, or expired.
1890
- required:
1891
- - message
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. The request lacks a valid bearer token, or the provided token
1560
- failed to authenticate.
1561
-
1562
- Note: the 401 response is produced by the auth middleware **before** the
1563
- request reaches the endpoint handler, so it does **not** follow the
1564
- standard `{errors: [...]}` envelope. Instead the body is a bare
1565
- `{message: string}` object with no `code`, no `errors` array. Callers
1566
- handling 401s should key off the HTTP status and the `message` string,
1567
- not try to destructure an `errors[]`.
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
- type: object
1572
- properties:
1573
- message:
1574
- type: string
1575
- description: |-
1576
- Human-readable description of the auth failure. Known values:
1577
- - `"Unauthorized"` — no `Authorization` header on the request.
1578
- - `"Bearer Authentication Failed"` — header present but token
1579
- is invalid, revoked, or expired.
1580
- required:
1581
- - message
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. The request lacks a valid bearer token, or the provided token
1343
- failed to authenticate.
1342
+ Unauthorized, in one of two shapes.
1344
1343
 
1345
- Note: the 401 response is produced by the auth middleware **before** the
1346
- request reaches the endpoint handler, so it does **not** follow the
1347
- standard `{errors: [...]}` envelope. Instead the body is a bare
1348
- `{message: string}` object with no `code`, no `errors` array. Callers
1349
- handling 401s should key off the HTTP status and the `message` string,
1350
- not try to destructure an `errors[]`.
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
- type: object
1355
- properties:
1356
- message:
1357
- type: string
1358
- description: |-
1359
- Human-readable description of the auth failure. Known values:
1360
- - `"Unauthorized"` — no `Authorization` header on the request.
1361
- - `"Bearer Authentication Failed"` — header present but token
1362
- is invalid, revoked, or expired.
1363
- required:
1364
- - message
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celigo/api-specs",
3
- "version": "0.2.289",
3
+ "version": "0.2.291",
4
4
  "private": false,
5
5
  "description": "Public OpenAPI bundles (dist/) and the celigo-cli lint schema pack (schemas.json).",
6
6
  "keywords": [
package/schemas.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "provenance": {
3
3
  "repo": "celigo/integrator-api-specs",
4
- "iasCommit": "028b6773",
4
+ "iasCommit": "167b4cfb",
5
5
  "generatedAt": "2026-11-12"
6
6
  },
7
7
  "roots": {