Cloudsmith · Capability

Cloudsmith API (v1) — recycle-bin

Cloudsmith API (v1) — recycle-bin. 2 operations. Lead operation: List soft-deleted packages in recycle bin. Self-contained Naftiko capability covering one Cloudsmith business surface.

Run with Naftiko Cloudsmithrecycle-bin

What You Can Do

GET
Recyclebinlist — List soft-deleted packages in recycle bin
/v1/recycle-bin/{owner}
POST
Recyclebinaction — Perform actions on soft-deleted packages in the recycle bin. Supported actions: permanently delete (hard delete), restore. Returns a list of successfully actioned packages and any packages that failed with error details.
/v1/recycle-bin/{owner}/action

MCP Tools

list-soft-deleted-packages-recycle

List soft-deleted packages in recycle bin

read-only idempotent
perform-actions-soft-deleted-packages

Perform actions on soft-deleted packages in the recycle bin. Supported actions: permanently delete (hard delete), restore. Returns a list of successfully actioned packages and any packages that failed with error details.

read-only

Capability Spec

cloudsmith-recycle-bin.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Cloudsmith API (v1) — recycle-bin
  description: 'Cloudsmith API (v1) — recycle-bin. 2 operations. Lead operation: List soft-deleted packages in recycle bin.
    Self-contained Naftiko capability covering one Cloudsmith business surface.'
  tags:
  - Cloudsmith
  - recycle-bin
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    CLOUDSMITH_API_KEY: CLOUDSMITH_API_KEY
capability:
  consumes:
  - type: http
    namespace: cloudsmith-recycle-bin
    baseUri: https://api.cloudsmith.io
    description: Cloudsmith API (v1) — recycle-bin business capability. Self-contained, no shared references.
    resources:
    - name: recycle-bin-owner
      path: /recycle-bin/{owner}/
      operations:
      - name: recyclebinlist
        method: GET
        description: List soft-deleted packages in recycle bin
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: page
          in: query
          type: integer
          description: A page number within the paginated result set.
        - name: page_size
          in: query
          type: integer
          description: Number of results to return per page.
        - name: repository
          in: query
          type: string
          description: Filter packages by repository slug
    - name: recycle-bin-owner-action
      path: /recycle-bin/{owner}/action/
      operations:
      - name: recyclebinaction
        method: POST
        description: 'Perform actions on soft-deleted packages in the recycle bin. Supported actions: permanently delete (hard
          delete), restore. Returns a list of successfully actioned packages and any packages that failed with error details.'
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: data
          in: body
          type: string
  exposes:
  - type: rest
    namespace: cloudsmith-recycle-bin-rest
    port: 8080
    description: REST adapter for Cloudsmith API (v1) — recycle-bin. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/recycle-bin/{owner}
      name: recycle-bin-owner
      description: REST surface for recycle-bin-owner.
      operations:
      - method: GET
        name: recyclebinlist
        description: List soft-deleted packages in recycle bin
        call: cloudsmith-recycle-bin.recyclebinlist
        with:
          page: rest.page
          page_size: rest.page_size
          repository: rest.repository
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/recycle-bin/{owner}/action
      name: recycle-bin-owner-action
      description: REST surface for recycle-bin-owner-action.
      operations:
      - method: POST
        name: recyclebinaction
        description: 'Perform actions on soft-deleted packages in the recycle bin. Supported actions: permanently delete (hard
          delete), restore. Returns a list of successfully actioned packages and any packages that failed with error details.'
        call: cloudsmith-recycle-bin.recyclebinaction
        with:
          data: rest.data
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: cloudsmith-recycle-bin-mcp
    port: 9090
    transport: http
    description: MCP adapter for Cloudsmith API (v1) — recycle-bin. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-soft-deleted-packages-recycle
      description: List soft-deleted packages in recycle bin
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: cloudsmith-recycle-bin.recyclebinlist
      with:
        page: tools.page
        page_size: tools.page_size
        repository: tools.repository
      outputParameters:
      - type: object
        mapping: $.
    - name: perform-actions-soft-deleted-packages
      description: 'Perform actions on soft-deleted packages in the recycle bin. Supported actions: permanently delete (hard
        delete), restore. Returns a list of successfully actioned packages and any packages that failed with error details.'
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: cloudsmith-recycle-bin.recyclebinaction
      with:
        data: tools.data
      outputParameters:
      - type: object
        mapping: $.