naftiko: 1.0.0-alpha2 info: label: OpenAI APIs OpenAI Assistants API — Runs description: 'OpenAI APIs OpenAI Assistants API — Runs. 6 operations. Lead operation: OpenAI APIs Create thread and run. Self-contained Naftiko capability covering one Openai Apis business surface.' tags: - Openai Apis - Runs created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: OPENAI_APIS_API_KEY: OPENAI_APIS_API_KEY capability: consumes: - type: http namespace: openai-assistants-runs baseUri: https://api.openai.com/v1 description: OpenAI APIs OpenAI Assistants API — Runs business capability. Self-contained, no shared references. resources: - name: threads-runs path: /threads/runs operations: - name: createthreadandrun method: POST description: OpenAI APIs Create thread and run outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: threads-thread_id-runs path: /threads/{thread_id}/runs operations: - name: listruns method: GET description: OpenAI APIs List runs outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createrun method: POST description: OpenAI APIs Create run outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: threads-thread_id-runs-run_id path: /threads/{thread_id}/runs/{run_id} operations: - name: getrun method: GET description: OpenAI APIs Retrieve run outputRawFormat: json outputParameters: - name: result type: object value: $. - name: threads-thread_id-runs-run_id-cancel path: /threads/{thread_id}/runs/{run_id}/cancel operations: - name: cancelrun method: POST description: OpenAI APIs Cancel run outputRawFormat: json outputParameters: - name: result type: object value: $. - name: threads-thread_id-runs-run_id-submit_tool_outputs path: /threads/{thread_id}/runs/{run_id}/submit_tool_outputs operations: - name: submittooloutputs method: POST description: OpenAI APIs Submit tool outputs 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.OPENAI_APIS_API_KEY}}' exposes: - type: rest namespace: openai-assistants-runs-rest port: 8080 description: REST adapter for OpenAI APIs OpenAI Assistants API — Runs. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/threads/runs name: threads-runs description: REST surface for threads-runs. operations: - method: POST name: createthreadandrun description: OpenAI APIs Create thread and run call: openai-assistants-runs.createthreadandrun with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/threads/{thread-id}/runs name: threads-thread-id-runs description: REST surface for threads-thread_id-runs. operations: - method: GET name: listruns description: OpenAI APIs List runs call: openai-assistants-runs.listruns outputParameters: - type: object mapping: $. - method: POST name: createrun description: OpenAI APIs Create run call: openai-assistants-runs.createrun with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/threads/{thread-id}/runs/{run-id} name: threads-thread-id-runs-run-id description: REST surface for threads-thread_id-runs-run_id. operations: - method: GET name: getrun description: OpenAI APIs Retrieve run call: openai-assistants-runs.getrun outputParameters: - type: object mapping: $. - path: /v1/threads/{thread-id}/runs/{run-id}/cancel name: threads-thread-id-runs-run-id-cancel description: REST surface for threads-thread_id-runs-run_id-cancel. operations: - method: POST name: cancelrun description: OpenAI APIs Cancel run call: openai-assistants-runs.cancelrun outputParameters: - type: object mapping: $. - path: /v1/threads/{thread-id}/runs/{run-id}/submit-tool-outputs name: threads-thread-id-runs-run-id-submit-tool-outputs description: REST surface for threads-thread_id-runs-run_id-submit_tool_outputs. operations: - method: POST name: submittooloutputs description: OpenAI APIs Submit tool outputs call: openai-assistants-runs.submittooloutputs with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: openai-assistants-runs-mcp port: 9090 transport: http description: MCP adapter for OpenAI APIs OpenAI Assistants API — Runs. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: openai-apis-create-thread-and description: OpenAI APIs Create thread and run hints: readOnly: false destructive: false idempotent: false call: openai-assistants-runs.createthreadandrun with: body: tools.body outputParameters: - type: object mapping: $. - name: openai-apis-list-runs description: OpenAI APIs List runs hints: readOnly: true destructive: false idempotent: true call: openai-assistants-runs.listruns outputParameters: - type: object mapping: $. - name: openai-apis-create-run description: OpenAI APIs Create run hints: readOnly: false destructive: false idempotent: false call: openai-assistants-runs.createrun with: body: tools.body outputParameters: - type: object mapping: $. - name: openai-apis-retrieve-run description: OpenAI APIs Retrieve run hints: readOnly: true destructive: false idempotent: true call: openai-assistants-runs.getrun outputParameters: - type: object mapping: $. - name: openai-apis-cancel-run description: OpenAI APIs Cancel run hints: readOnly: false destructive: false idempotent: false call: openai-assistants-runs.cancelrun outputParameters: - type: object mapping: $. - name: openai-apis-submit-tool-outputs description: OpenAI APIs Submit tool outputs hints: readOnly: false destructive: false idempotent: false call: openai-assistants-runs.submittooloutputs with: body: tools.body outputParameters: - type: object mapping: $.