generated: '2026-07-15' method: generated source: openapi/npm-hooks-api-openapi.yml, openapi/npm-public-api-openapi.yml, openapi/npm-registry-api-openapi.yml description: Recommended x-agentic-access execution contracts, classified heuristically from the OpenAPI. A governance starting point for exposing this API to AI agents — review and bind audience per deployment. See research/curity/agentic-governance/. summary: operations: 17 by_action_class: connected: 9 acting: 8 by_consequence: read: 9 write: 8 human_in_the_loop_required: 0 operations: - path: /-/npm/v1/hooks method: get operationId: listHooks x-agentic-access: action-class: connected consequence: read subject: optional token: max-ttl: 3600 audit: none - path: /-/npm/v1/hooks/hook method: post operationId: createHook x-agentic-access: action-class: acting consequence: write subject: required audience: null token: max-ttl: 900 escalation: human-in-the-loop: conditional triggers: - abnormal - high-value audit: required - path: /-/npm/v1/hooks/hook/{id} method: get operationId: getHook x-agentic-access: action-class: connected consequence: read subject: optional token: max-ttl: 3600 audit: none - path: /-/npm/v1/hooks/hook/{id} method: put operationId: updateHook x-agentic-access: action-class: acting consequence: write subject: required audience: null token: max-ttl: 900 escalation: human-in-the-loop: conditional triggers: - abnormal - high-value audit: required - path: /-/npm/v1/hooks/hook/{id} method: delete operationId: deleteHook x-agentic-access: action-class: acting consequence: write subject: required audience: null token: max-ttl: 900 escalation: human-in-the-loop: conditional triggers: - abnormal - high-value audit: required - path: /-/npm/v1/tokens method: get operationId: listTokens x-agentic-access: action-class: connected consequence: read subject: optional token: max-ttl: 3600 audit: none - path: /-/npm/v1/tokens method: post operationId: createToken x-agentic-access: action-class: acting consequence: write subject: required audience: null token: max-ttl: 900 escalation: human-in-the-loop: conditional triggers: - abnormal - high-value audit: required - path: /-/npm/v1/tokens/token/{token_id} method: delete operationId: deleteToken x-agentic-access: action-class: acting consequence: write subject: required audience: null token: max-ttl: 900 escalation: human-in-the-loop: conditional triggers: - abnormal - high-value audit: required - path: /-/npm/v1/security/oidc/tokens method: post operationId: exchangeOidcToken x-agentic-access: action-class: acting consequence: write subject: required audience: null token: max-ttl: 900 escalation: human-in-the-loop: conditional triggers: - abnormal - high-value audit: required - path: /-/npm/v1/security/trusted-publishers/packages/{package} method: get operationId: listTrustedPublishers x-agentic-access: action-class: connected consequence: read subject: optional token: max-ttl: 3600 audit: none - path: /-/npm/v1/security/trusted-publishers/packages/{package} method: post operationId: addTrustedPublisher x-agentic-access: action-class: acting consequence: write subject: required audience: null token: max-ttl: 900 escalation: human-in-the-loop: conditional triggers: - abnormal - high-value audit: required - path: /-/npm/v1/security/trusted-publishers/packages/{package}/{publisher_id} method: delete operationId: removeTrustedPublisher x-agentic-access: action-class: acting consequence: write subject: required audience: null token: max-ttl: 900 escalation: human-in-the-loop: conditional triggers: - abnormal - high-value audit: required - path: / method: get operationId: getRegistryMetadata x-agentic-access: action-class: connected consequence: read subject: optional token: max-ttl: 3600 audit: none - path: /{package} method: get operationId: getPackageDocument x-agentic-access: action-class: connected consequence: read subject: optional token: max-ttl: 3600 audit: none - path: /{package}/{version} method: get operationId: getPackageVersion x-agentic-access: action-class: connected consequence: read subject: optional token: max-ttl: 3600 audit: none - path: /-/v1/search method: get operationId: searchPackages x-agentic-access: action-class: connected consequence: read subject: optional token: max-ttl: 3600 audit: none - path: /{package}/-/{tarball} method: get operationId: downloadPackageTarball x-agentic-access: action-class: connected consequence: read subject: optional token: max-ttl: 3600 audit: none