naftiko: 1.0.0-alpha2 info: label: Twitch Extensions API — Transactions description: 'Twitch Extensions API — Transactions. 3 operations. Lead operation: Twitch Get Extension Bits Products. Self-contained Naftiko capability covering one Twitch business surface.' tags: - Twitch - Transactions created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: TWITCH_API_KEY: TWITCH_API_KEY capability: consumes: - type: http namespace: extensions-transactions baseUri: https://api.twitch.tv/helix description: Twitch Extensions API — Transactions business capability. Self-contained, no shared references. resources: - name: extensions-bits-products path: /extensions/bits/products operations: - name: getextensionbitsproducts method: GET description: Twitch Get Extension Bits Products outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: should_include_all in: query type: boolean - name: updateextensionbitsproduct method: PUT description: Twitch Update Extension Bits Product outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: extensions-transactions path: /extensions/transactions operations: - name: getextensiontransactions method: GET description: Twitch Get Extension Transactions outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: extension_id in: query type: string required: true - name: id in: query type: string - name: first in: query type: integer - name: after in: query type: string authentication: type: bearer token: '{{env.TWITCH_API_KEY}}' exposes: - type: rest namespace: extensions-transactions-rest port: 8080 description: REST adapter for Twitch Extensions API — Transactions. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/extensions/bits/products name: extensions-bits-products description: REST surface for extensions-bits-products. operations: - method: GET name: getextensionbitsproducts description: Twitch Get Extension Bits Products call: extensions-transactions.getextensionbitsproducts with: should_include_all: rest.should_include_all outputParameters: - type: object mapping: $. - method: PUT name: updateextensionbitsproduct description: Twitch Update Extension Bits Product call: extensions-transactions.updateextensionbitsproduct with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/extensions/transactions name: extensions-transactions description: REST surface for extensions-transactions. operations: - method: GET name: getextensiontransactions description: Twitch Get Extension Transactions call: extensions-transactions.getextensiontransactions with: extension_id: rest.extension_id id: rest.id first: rest.first after: rest.after outputParameters: - type: object mapping: $. - type: mcp namespace: extensions-transactions-mcp port: 9090 transport: http description: MCP adapter for Twitch Extensions API — Transactions. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: twitch-get-extension-bits-products description: Twitch Get Extension Bits Products hints: readOnly: true destructive: false idempotent: true call: extensions-transactions.getextensionbitsproducts with: should_include_all: tools.should_include_all outputParameters: - type: object mapping: $. - name: twitch-update-extension-bits-product description: Twitch Update Extension Bits Product hints: readOnly: false destructive: false idempotent: true call: extensions-transactions.updateextensionbitsproduct with: body: tools.body outputParameters: - type: object mapping: $. - name: twitch-get-extension-transactions description: Twitch Get Extension Transactions hints: readOnly: true destructive: false idempotent: true call: extensions-transactions.getextensiontransactions with: extension_id: tools.extension_id id: tools.id first: tools.first after: tools.after outputParameters: - type: object mapping: $.