naftiko: 1.0.0-alpha2 info: label: Deno Subhosting API — Deployments description: 'Deno Subhosting API — Deployments. 6 operations. Lead operation: Get deployment. Self-contained Naftiko capability covering one Deno business surface.' tags: - Deno - Deployments created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: DENO_API_KEY: DENO_API_KEY capability: consumes: - type: http namespace: subhosting-deployments baseUri: https://api.deno.com/v1 description: Deno Subhosting API — Deployments business capability. Self-contained, no shared references. resources: - name: deployments-deploymentId path: /deployments/{deploymentId} operations: - name: getdeployment method: GET description: Get deployment outputRawFormat: json outputParameters: - name: result type: object value: $. - name: deletedeployment method: DELETE description: Delete deployment outputRawFormat: json outputParameters: - name: result type: object value: $. - name: deployments-deploymentId-app_logs path: /deployments/{deploymentId}/app_logs operations: - name: getapplogs method: GET description: Get application logs outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: level in: query type: string description: Filter logs by severity level - name: region in: query type: string description: Filter logs by the region that emitted them - name: since in: query type: string description: Return logs after this RFC 3339 timestamp - name: until in: query type: string description: Return logs before this RFC 3339 timestamp; omit to stream - name: limit in: query type: integer description: Maximum number of log entries to return - name: cursor in: query type: string description: Pagination cursor from a previous response - name: deployments-deploymentId-build_logs path: /deployments/{deploymentId}/build_logs operations: - name: getbuildlogs method: GET description: Get build logs outputRawFormat: json outputParameters: - name: result type: object value: $. - name: projects-projectId-deployments path: /projects/{projectId}/deployments operations: - name: listdeployments method: GET description: List deployments outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createdeployment method: POST description: Create deployment 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.DENO_API_KEY}}' exposes: - type: rest namespace: subhosting-deployments-rest port: 8080 description: REST adapter for Deno Subhosting API — Deployments. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/deployments/{deploymentid} name: deployments-deploymentid description: REST surface for deployments-deploymentId. operations: - method: GET name: getdeployment description: Get deployment call: subhosting-deployments.getdeployment outputParameters: - type: object mapping: $. - method: DELETE name: deletedeployment description: Delete deployment call: subhosting-deployments.deletedeployment outputParameters: - type: object mapping: $. - path: /v1/deployments/{deploymentid}/app-logs name: deployments-deploymentid-app-logs description: REST surface for deployments-deploymentId-app_logs. operations: - method: GET name: getapplogs description: Get application logs call: subhosting-deployments.getapplogs with: level: rest.level region: rest.region since: rest.since until: rest.until limit: rest.limit cursor: rest.cursor outputParameters: - type: object mapping: $. - path: /v1/deployments/{deploymentid}/build-logs name: deployments-deploymentid-build-logs description: REST surface for deployments-deploymentId-build_logs. operations: - method: GET name: getbuildlogs description: Get build logs call: subhosting-deployments.getbuildlogs outputParameters: - type: object mapping: $. - path: /v1/projects/{projectid}/deployments name: projects-projectid-deployments description: REST surface for projects-projectId-deployments. operations: - method: GET name: listdeployments description: List deployments call: subhosting-deployments.listdeployments outputParameters: - type: object mapping: $. - method: POST name: createdeployment description: Create deployment call: subhosting-deployments.createdeployment with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: subhosting-deployments-mcp port: 9090 transport: http description: MCP adapter for Deno Subhosting API — Deployments. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-deployment description: Get deployment hints: readOnly: true destructive: false idempotent: true call: subhosting-deployments.getdeployment outputParameters: - type: object mapping: $. - name: delete-deployment description: Delete deployment hints: readOnly: false destructive: true idempotent: true call: subhosting-deployments.deletedeployment outputParameters: - type: object mapping: $. - name: get-application-logs description: Get application logs hints: readOnly: true destructive: false idempotent: true call: subhosting-deployments.getapplogs with: level: tools.level region: tools.region since: tools.since until: tools.until limit: tools.limit cursor: tools.cursor outputParameters: - type: object mapping: $. - name: get-build-logs description: Get build logs hints: readOnly: true destructive: false idempotent: true call: subhosting-deployments.getbuildlogs outputParameters: - type: object mapping: $. - name: list-deployments description: List deployments hints: readOnly: true destructive: false idempotent: true call: subhosting-deployments.listdeployments outputParameters: - type: object mapping: $. - name: create-deployment description: Create deployment hints: readOnly: false destructive: false idempotent: false call: subhosting-deployments.createdeployment with: body: tools.body outputParameters: - type: object mapping: $.