naftiko: 1.0.0-alpha2 info: label: Endpoints — subpackage_terminations description: 'Endpoints — subpackage_terminations. 2 operations. Lead operation: Delete Contract Termination Request. Self-contained Naftiko capability covering one Deel business surface.' tags: - Deel - subpackage_terminations created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: DEEL_API_KEY: DEEL_API_KEY capability: consumes: - type: http namespace: platform-endpoints-subpackage-terminations baseUri: https://api.letsdeel.com/rest/v2 description: Endpoints — subpackage_terminations business capability. Self-contained, no shared references. resources: - name: contracts-contract_id-terminations path: /contracts/{contract_id}/terminations operations: - name: deletecontracttermination method: DELETE description: Delete Contract Termination Request outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: contract_id in: path type: string description: Unique identifier for the contract required: true - name: Authorization in: header type: string description: '## Authentication' required: true - name: createcontracttermination method: POST description: Terminate contract outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: contract_id in: path type: string description: The unique identifier of the contractor contract required: true - name: Authorization in: header type: string description: '## Authentication' required: true - name: body in: body type: object description: Request body (JSON). required: false authentication: type: bearer token: '{{env.DEEL_API_KEY}}' exposes: - type: rest namespace: platform-endpoints-subpackage-terminations-rest port: 8080 description: REST adapter for Endpoints — subpackage_terminations. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/contracts/{contract-id}/terminations name: contracts-contract-id-terminations description: REST surface for contracts-contract_id-terminations. operations: - method: DELETE name: deletecontracttermination description: Delete Contract Termination Request call: platform-endpoints-subpackage-terminations.deletecontracttermination with: contract_id: rest.contract_id Authorization: rest.Authorization outputParameters: - type: object mapping: $. - method: POST name: createcontracttermination description: Terminate contract call: platform-endpoints-subpackage-terminations.createcontracttermination with: contract_id: rest.contract_id Authorization: rest.Authorization body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: platform-endpoints-subpackage-terminations-mcp port: 9090 transport: http description: MCP adapter for Endpoints — subpackage_terminations. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: delete-contract-termination-request description: Delete Contract Termination Request hints: readOnly: false destructive: true idempotent: true call: platform-endpoints-subpackage-terminations.deletecontracttermination with: contract_id: tools.contract_id Authorization: tools.Authorization outputParameters: - type: object mapping: $. - name: terminate-contract description: Terminate contract hints: readOnly: false destructive: false idempotent: false call: platform-endpoints-subpackage-terminations.createcontracttermination with: contract_id: tools.contract_id Authorization: tools.Authorization body: tools.body outputParameters: - type: object mapping: $.