naftiko: 1.0.0-alpha2 info: label: Endpoints — subpackage_gpHiring description: 'Endpoints — subpackage_gpHiring. 2 operations. Lead operation: Create a Global Payroll (GP) contract. Self-contained Naftiko capability covering one Deel business surface.' tags: - Deel - subpackage_gpHiring 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-gphiring baseUri: https://api.letsdeel.com/rest/v2 description: Endpoints — subpackage_gpHiring business capability. Self-contained, no shared references. resources: - name: contracts-gp path: /contracts/gp operations: - name: creategpcontract method: POST description: Create a Global Payroll (GP) contract outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string description: '## Authentication' required: true - name: body in: body type: object description: Request body (JSON). required: false - name: gp-workers-worker_id-terminations path: /gp/workers/{worker_id}/terminations operations: - name: creategpworkertermination method: POST description: Request termination outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: worker_id in: path type: string description: Unique identifier for a worker in UUID format. 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-gphiring-rest port: 8080 description: REST adapter for Endpoints — subpackage_gpHiring. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/contracts/gp name: contracts-gp description: REST surface for contracts-gp. operations: - method: POST name: creategpcontract description: Create a Global Payroll (GP) contract call: platform-endpoints-subpackage-gphiring.creategpcontract with: Authorization: rest.Authorization body: rest.body outputParameters: - type: object mapping: $. - path: /v1/gp/workers/{worker-id}/terminations name: gp-workers-worker-id-terminations description: REST surface for gp-workers-worker_id-terminations. operations: - method: POST name: creategpworkertermination description: Request termination call: platform-endpoints-subpackage-gphiring.creategpworkertermination with: worker_id: rest.worker_id Authorization: rest.Authorization body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: platform-endpoints-subpackage-gphiring-mcp port: 9090 transport: http description: MCP adapter for Endpoints — subpackage_gpHiring. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: create-global-payroll-gp-contract description: Create a Global Payroll (GP) contract hints: readOnly: false destructive: false idempotent: false call: platform-endpoints-subpackage-gphiring.creategpcontract with: Authorization: tools.Authorization body: tools.body outputParameters: - type: object mapping: $. - name: request-termination description: Request termination hints: readOnly: false destructive: false idempotent: false call: platform-endpoints-subpackage-gphiring.creategpworkertermination with: worker_id: tools.worker_id Authorization: tools.Authorization body: tools.body outputParameters: - type: object mapping: $.