naftiko: 1.0.0-alpha2 info: label: Leonardo.AI User description: 'Leonardo.AI User. 1 operations. Lead operation: Get user information. Self-contained Naftiko capability covering the Leonardo.AI User business surface.' tags: - Leonardo.AI - User created: '2026-05-25' modified: '2026-05-25' binds: - namespace: env keys: LEONARDO_AI_API_KEY: LEONARDO_AI_API_KEY capability: consumes: - type: http namespace: user baseUri: https://cloud.leonardo.ai/api/rest/v1 description: Leonardo.AI User business capability. Self-contained, no shared references. resources: - name: me path: /me operations: - name: get-user-self method: GET description: 'This endpoint will return your user information such as your user id, username, token renewal date and current amounts of the following: subscription tokens, gpt (prompt generation) tokens, and model training tokens' outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: [] authentication: type: bearer value: '{{env.LEONARDO_AI_API_KEY}}' placement: header exposes: - type: rest namespace: user-rest port: 8080 description: REST adapter for Leonardo.AI User. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/me name: me description: REST surface for me. operations: - method: GET name: get-user-self description: 'This endpoint will return your user information such as your user id, username, token renewal date and current amounts of the following: subscription tokens, gpt (prompt generation) tokens, and model training tokens' call: user.get-user-self with: {} outputParameters: - type: object mapping: $. - type: mcp namespace: user-mcp port: 9090 transport: http description: MCP adapter for Leonardo.AI User. One tool per consumed operation, routed through this capability's consumes block. tools: - name: leonardo-ai-get-user-self description: 'This endpoint will return your user information such as your user id, username, token renewal date and current amounts of the following: subscription tokens, gpt (prompt generation) tokens, and model training tokens' hints: readOnly: true destructive: false idempotent: true call: user.get-user-self with: {} outputParameters: - type: object mapping: $.