Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion api/base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,23 @@ tags:
description: |
OpenID Connect (OIDC) token exchange endpoints for CI/CD integrations.

- name: Trust
x-displayName: Trust
description: |
Trust-related endpoints for managing package trust and security settings.

x-tagGroups:
- name: Introduction
tags:
- Introduction
- name: Authentication & Authorization
tags:
- Authentication
- name: registry.npmjs.org API Endpoints
- name: Sections
tags:
- Tokens
- OIDC
- Trust

components:
securitySchemes:
Expand Down Expand Up @@ -117,6 +123,15 @@ components:
Granular Access Token (GAT) with fine-grained permissions.
These tokens can be scoped to specific packages and operations.

# Alias for npmAccessToken - for backward compatibility
granularAccessToken:
type: http
scheme: bearer
description: |
Granular Access Token (GAT) with fine-grained permissions.
These tokens can be scoped to specific packages and operations.
(Alias for npmAccessToken)

# Short-lived tokens obtained from OIDC token exchange
oidcExchangeToken:
type: http
Expand Down
1 change: 1 addition & 0 deletions api/merge-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ inputs:
- inputFile: base.yaml
- inputFile: registry.npmjs.com/oidc.yaml
- inputFile: registry.npmjs.com/token.yaml
- inputFile: registry.npmjs.com/trust.yaml

output: ../openapi.yaml
2 changes: 1 addition & 1 deletion api/registry.npmjs.com/token.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ paths:
invalidOtp:
summary: "Invalid OTP provided"
value:
message: "invalid OTP"
error: "invalid OTP"
webAuthFlow:
summary: "Web authentication flow (2FA required)"
description: |
Expand Down
Loading
Loading