naftiko: 1.0.0-alpha2 info: label: github-repos-api — Delete description: 'github-repos-api — Delete. 5 operations. Lead operation: GitHub Delete Branch Protection. Self-contained Naftiko capability covering one Github business surface.' tags: - Github - Delete created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GITHUB_API_KEY: GITHUB_API_KEY capability: consumes: - type: http namespace: repo-branches-delete baseUri: '' description: github-repos-api — Delete business capability. Self-contained, no shared references. resources: - name: repos-owner-repo-branches-branch-protection path: /repos/{owner}/{repo}/branches/{branch}/protection operations: - name: deletebranchprotection method: DELETE description: GitHub Delete Branch Protection outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string - name: X-GitHub-Api-Version in: header type: string - name: Accept in: header type: string - name: repos-owner-repo-branches-branch-protection-enforce_admins path: /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins operations: - name: deleteadminbranchprotection method: DELETE description: GitHub Delete Admin Branch Protection outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string - name: X-GitHub-Api-Version in: header type: string - name: Accept in: header type: string - name: repos-owner-repo-branches-branch-protection-required_pull_request_reviews path: /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews operations: - name: deletepullrequestreviewprotection method: DELETE description: GitHub Delete Pull Request Review Protection outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string - name: X-GitHub-Api-Version in: header type: string - name: Accept in: header type: string - name: repos-owner-repo-branches-branch-protection-required_signatures path: /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures operations: - name: deletecommitsignatureprotection method: DELETE description: GitHub Delete Commit Signature Protection outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string - name: X-GitHub-Api-Version in: header type: string - name: Accept in: header type: string - name: repos-owner-repo-branches-branch-protection-restrictions path: /repos/{owner}/{repo}/branches/{branch}/protection/restrictions operations: - name: deleteaccessrestrictions method: DELETE description: GitHub Delete Access Restrictions outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string - name: X-GitHub-Api-Version in: header type: string - name: Accept in: header type: string authentication: type: bearer token: '{{env.GITHUB_API_KEY}}' exposes: - type: rest namespace: repo-branches-delete-rest port: 8080 description: REST adapter for github-repos-api — Delete. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/repos/{owner}/{repo}/branches/{branch}/protection name: repos-owner-repo-branches-branch-protection description: REST surface for repos-owner-repo-branches-branch-protection. operations: - method: DELETE name: deletebranchprotection description: GitHub Delete Branch Protection call: repo-branches-delete.deletebranchprotection with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - path: /v1/repos/{owner}/{repo}/branches/{branch}/protection/enforce-admins name: repos-owner-repo-branches-branch-protection-enforce-admins description: REST surface for repos-owner-repo-branches-branch-protection-enforce_admins. operations: - method: DELETE name: deleteadminbranchprotection description: GitHub Delete Admin Branch Protection call: repo-branches-delete.deleteadminbranchprotection with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - path: /v1/repos/{owner}/{repo}/branches/{branch}/protection/required-pull-request-reviews name: repos-owner-repo-branches-branch-protection-required-pull-request-reviews description: REST surface for repos-owner-repo-branches-branch-protection-required_pull_request_reviews. operations: - method: DELETE name: deletepullrequestreviewprotection description: GitHub Delete Pull Request Review Protection call: repo-branches-delete.deletepullrequestreviewprotection with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - path: /v1/repos/{owner}/{repo}/branches/{branch}/protection/required-signatures name: repos-owner-repo-branches-branch-protection-required-signatures description: REST surface for repos-owner-repo-branches-branch-protection-required_signatures. operations: - method: DELETE name: deletecommitsignatureprotection description: GitHub Delete Commit Signature Protection call: repo-branches-delete.deletecommitsignatureprotection with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - path: /v1/repos/{owner}/{repo}/branches/{branch}/protection/restrictions name: repos-owner-repo-branches-branch-protection-restrictions description: REST surface for repos-owner-repo-branches-branch-protection-restrictions. operations: - method: DELETE name: deleteaccessrestrictions description: GitHub Delete Access Restrictions call: repo-branches-delete.deleteaccessrestrictions with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - type: mcp namespace: repo-branches-delete-mcp port: 9090 transport: http description: MCP adapter for github-repos-api — Delete. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: github-delete-branch-protection description: GitHub Delete Branch Protection hints: readOnly: false destructive: true idempotent: true call: repo-branches-delete.deletebranchprotection with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-delete-admin-branch-protection description: GitHub Delete Admin Branch Protection hints: readOnly: false destructive: true idempotent: true call: repo-branches-delete.deleteadminbranchprotection with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-delete-pull-request-review description: GitHub Delete Pull Request Review Protection hints: readOnly: false destructive: true idempotent: true call: repo-branches-delete.deletepullrequestreviewprotection with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-delete-commit-signature-protection description: GitHub Delete Commit Signature Protection hints: readOnly: false destructive: true idempotent: true call: repo-branches-delete.deletecommitsignatureprotection with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-delete-access-restrictions description: GitHub Delete Access Restrictions hints: readOnly: false destructive: true idempotent: true call: repo-branches-delete.deleteaccessrestrictions with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $.