naftiko: 1.0.0-alpha2 info: label: OurPeople API — Authentication description: 'OurPeople API — Authentication. 2 operations. Lead operation: Exchange client credentials for a token. Self-contained Naftiko capability covering one Ourpeople business surface.' tags: - Ourpeople - Authentication created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: OURPEOPLE_API_KEY: OURPEOPLE_API_KEY capability: consumes: - type: http namespace: ourpeople-authentication baseUri: https://{account}-api.ourpeople.co description: OurPeople API — Authentication business capability. Self-contained, no shared references. resources: - name: v1-auth path: /v1/auth operations: - name: createtoken method: POST description: Exchange client credentials for a token outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: v1-auth-refresh path: /v1/auth/refresh operations: - name: refreshtoken method: POST description: Refresh an access token outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.OURPEOPLE_API_KEY}}' exposes: - type: rest namespace: ourpeople-authentication-rest port: 8080 description: REST adapter for OurPeople API — Authentication. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v1/auth name: v1-auth description: REST surface for v1-auth. operations: - method: POST name: createtoken description: Exchange client credentials for a token call: ourpeople-authentication.createtoken with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v1/auth/refresh name: v1-auth-refresh description: REST surface for v1-auth-refresh. operations: - method: POST name: refreshtoken description: Refresh an access token call: ourpeople-authentication.refreshtoken with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: ourpeople-authentication-mcp port: 9090 transport: http description: MCP adapter for OurPeople API — Authentication. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: exchange-client-credentials-token description: Exchange client credentials for a token hints: readOnly: false destructive: false idempotent: false call: ourpeople-authentication.createtoken with: body: tools.body outputParameters: - type: object mapping: $. - name: refresh-access-token description: Refresh an access token hints: readOnly: false destructive: false idempotent: false call: ourpeople-authentication.refreshtoken with: body: tools.body outputParameters: - type: object mapping: $.