naftiko: 1.0.0-alpha2 info: label: Pulsoid API — OAuth2 description: 'Pulsoid API — OAuth2. 4 operations. Lead operation: OAuth2 authorize. Self-contained Naftiko capability covering one Pulsoid business surface.' tags: - Pulsoid - OAuth2 created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: PULSOID_API_KEY: PULSOID_API_KEY capability: consumes: - type: http namespace: pulsoid-oauth2 baseUri: https://dev.pulsoid.net description: Pulsoid API — OAuth2 business capability. Self-contained, no shared references. resources: - name: oauth2-authorize path: /oauth2/authorize operations: - name: oauthauthorize method: POST description: OAuth2 authorize outputRawFormat: json outputParameters: - name: result type: object value: $. - name: oauth2-device_authorization path: /oauth2/device_authorization operations: - name: oauthdeviceauthorization method: POST description: OAuth2 device authorization outputRawFormat: json outputParameters: - name: result type: object value: $. - name: oauth2-revoke path: /oauth2/revoke operations: - name: oauthrevoke method: POST description: Revoke access token outputRawFormat: json outputParameters: - name: result type: object value: $. - name: oauth2-token path: /oauth2/token operations: - name: oauthtoken method: POST description: OAuth2 token exchange/refresh outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.PULSOID_API_KEY}}' exposes: - type: rest namespace: pulsoid-oauth2-rest port: 8080 description: REST adapter for Pulsoid API — OAuth2. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/oauth2/authorize name: oauth2-authorize description: REST surface for oauth2-authorize. operations: - method: POST name: oauthauthorize description: OAuth2 authorize call: pulsoid-oauth2.oauthauthorize outputParameters: - type: object mapping: $. - path: /v1/oauth2/device-authorization name: oauth2-device-authorization description: REST surface for oauth2-device_authorization. operations: - method: POST name: oauthdeviceauthorization description: OAuth2 device authorization call: pulsoid-oauth2.oauthdeviceauthorization outputParameters: - type: object mapping: $. - path: /v1/oauth2/revoke name: oauth2-revoke description: REST surface for oauth2-revoke. operations: - method: POST name: oauthrevoke description: Revoke access token call: pulsoid-oauth2.oauthrevoke outputParameters: - type: object mapping: $. - path: /v1/oauth2/token name: oauth2-token description: REST surface for oauth2-token. operations: - method: POST name: oauthtoken description: OAuth2 token exchange/refresh call: pulsoid-oauth2.oauthtoken outputParameters: - type: object mapping: $. - type: mcp namespace: pulsoid-oauth2-mcp port: 9090 transport: http description: MCP adapter for Pulsoid API — OAuth2. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: oauth2-authorize description: OAuth2 authorize hints: readOnly: false destructive: false idempotent: false call: pulsoid-oauth2.oauthauthorize outputParameters: - type: object mapping: $. - name: oauth2-device-authorization description: OAuth2 device authorization hints: readOnly: false destructive: false idempotent: false call: pulsoid-oauth2.oauthdeviceauthorization outputParameters: - type: object mapping: $. - name: revoke-access-token description: Revoke access token hints: readOnly: false destructive: false idempotent: false call: pulsoid-oauth2.oauthrevoke outputParameters: - type: object mapping: $. - name: oauth2-token-exchange-refresh description: OAuth2 token exchange/refresh hints: readOnly: false destructive: false idempotent: false call: pulsoid-oauth2.oauthtoken outputParameters: - type: object mapping: $.