naftiko: 1.0.0-alpha2 info: label: Telnyx API — OpenAI Chat description: 'Telnyx API — OpenAI Chat. 2 operations. Lead operation: Create a chat completion (OpenAI-compatible). Self-contained Naftiko capability covering one Telnyx business surface.' tags: - Telnyx - OpenAI Chat created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: TELNYX_API_KEY: TELNYX_API_KEY capability: consumes: - type: http namespace: telnyx-openai-chat baseUri: https://api.telnyx.com/v2 description: Telnyx API — OpenAI Chat business capability. Self-contained, no shared references. resources: - name: ai-openai-chat-completions path: /ai/openai/chat/completions operations: - name: createopenaichatcompletion method: POST description: Create a chat completion (OpenAI-compatible) outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: ai-openai-models path: /ai/openai/models operations: - name: listopenaimodels method: GET description: Get available models (OpenAI-compatible) outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.TELNYX_API_KEY}}' exposes: - type: rest namespace: telnyx-openai-chat-rest port: 8080 description: REST adapter for Telnyx API — OpenAI Chat. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/ai/openai/chat/completions name: ai-openai-chat-completions description: REST surface for ai-openai-chat-completions. operations: - method: POST name: createopenaichatcompletion description: Create a chat completion (OpenAI-compatible) call: telnyx-openai-chat.createopenaichatcompletion with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/ai/openai/models name: ai-openai-models description: REST surface for ai-openai-models. operations: - method: GET name: listopenaimodels description: Get available models (OpenAI-compatible) call: telnyx-openai-chat.listopenaimodels outputParameters: - type: object mapping: $. - type: mcp namespace: telnyx-openai-chat-mcp port: 9090 transport: http description: MCP adapter for Telnyx API — OpenAI Chat. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: create-chat-completion-openai-compatible description: Create a chat completion (OpenAI-compatible) hints: readOnly: false destructive: false idempotent: false call: telnyx-openai-chat.createopenaichatcompletion with: body: tools.body outputParameters: - type: object mapping: $. - name: get-available-models-openai-compatible description: Get available models (OpenAI-compatible) hints: readOnly: true destructive: false idempotent: true call: telnyx-openai-chat.listopenaimodels outputParameters: - type: object mapping: $.