naftiko: 1.0.0-alpha2 info: label: Deno Deploy REST API — KV Databases description: 'Deno Deploy REST API — KV Databases. 7 operations. Lead operation: Get KV database backup. Self-contained Naftiko capability covering one Deno business surface.' tags: - Deno - KV Databases created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: DENO_API_KEY: DENO_API_KEY capability: consumes: - type: http namespace: deploy-rest-kv-databases baseUri: https://api.deno.com/v1 description: Deno Deploy REST API — KV Databases business capability. Self-contained, no shared references. resources: - name: database_backups-databaseBackupId path: /database_backups/{databaseBackupId} operations: - name: getkvbackup method: GET description: Get KV database backup outputRawFormat: json outputParameters: - name: result type: object value: $. - name: disablekvbackup method: DELETE description: Disable KV database backup outputRawFormat: json outputParameters: - name: result type: object value: $. - name: databases-databaseId path: /databases/{databaseId} operations: - name: updatekvdatabase method: PATCH description: Update KV database outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: databases-databaseId-database_backups path: /databases/{databaseId}/database_backups operations: - name: listkvbackups method: GET description: List KV database backups outputRawFormat: json outputParameters: - name: result type: object value: $. - name: enablekvbackup method: POST description: Enable KV database backup outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: organizations-organizationId-databases path: /organizations/{organizationId}/databases operations: - name: listkvdatabases method: GET description: List KV databases outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createkvdatabase method: POST description: Create KV database 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: deploy-rest-kv-databases-rest port: 8080 description: REST adapter for Deno Deploy REST API — KV Databases. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/database-backups/{databasebackupid} name: database-backups-databasebackupid description: REST surface for database_backups-databaseBackupId. operations: - method: GET name: getkvbackup description: Get KV database backup call: deploy-rest-kv-databases.getkvbackup outputParameters: - type: object mapping: $. - method: DELETE name: disablekvbackup description: Disable KV database backup call: deploy-rest-kv-databases.disablekvbackup outputParameters: - type: object mapping: $. - path: /v1/databases/{databaseid} name: databases-databaseid description: REST surface for databases-databaseId. operations: - method: PATCH name: updatekvdatabase description: Update KV database call: deploy-rest-kv-databases.updatekvdatabase with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/databases/{databaseid}/database-backups name: databases-databaseid-database-backups description: REST surface for databases-databaseId-database_backups. operations: - method: GET name: listkvbackups description: List KV database backups call: deploy-rest-kv-databases.listkvbackups outputParameters: - type: object mapping: $. - method: POST name: enablekvbackup description: Enable KV database backup call: deploy-rest-kv-databases.enablekvbackup with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/organizations/{organizationid}/databases name: organizations-organizationid-databases description: REST surface for organizations-organizationId-databases. operations: - method: GET name: listkvdatabases description: List KV databases call: deploy-rest-kv-databases.listkvdatabases outputParameters: - type: object mapping: $. - method: POST name: createkvdatabase description: Create KV database call: deploy-rest-kv-databases.createkvdatabase with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: deploy-rest-kv-databases-mcp port: 9090 transport: http description: MCP adapter for Deno Deploy REST API — KV Databases. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-kv-database-backup description: Get KV database backup hints: readOnly: true destructive: false idempotent: true call: deploy-rest-kv-databases.getkvbackup outputParameters: - type: object mapping: $. - name: disable-kv-database-backup description: Disable KV database backup hints: readOnly: false destructive: true idempotent: true call: deploy-rest-kv-databases.disablekvbackup outputParameters: - type: object mapping: $. - name: update-kv-database description: Update KV database hints: readOnly: false destructive: false idempotent: true call: deploy-rest-kv-databases.updatekvdatabase with: body: tools.body outputParameters: - type: object mapping: $. - name: list-kv-database-backups description: List KV database backups hints: readOnly: true destructive: false idempotent: true call: deploy-rest-kv-databases.listkvbackups outputParameters: - type: object mapping: $. - name: enable-kv-database-backup description: Enable KV database backup hints: readOnly: false destructive: false idempotent: false call: deploy-rest-kv-databases.enablekvbackup with: body: tools.body outputParameters: - type: object mapping: $. - name: list-kv-databases description: List KV databases hints: readOnly: true destructive: false idempotent: true call: deploy-rest-kv-databases.listkvdatabases outputParameters: - type: object mapping: $. - name: create-kv-database description: Create KV database hints: readOnly: false destructive: false idempotent: false call: deploy-rest-kv-databases.createkvdatabase with: body: tools.body outputParameters: - type: object mapping: $.