{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/artifactshare-com/json-schema/artifactshare-com-cli-edit-response-schema.json",
  "title": "CliEditResponse",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/artifactshare-com-openapi.json#/components/schemas/CliEditResponse",
  "type": "object",
  "properties": {
    "artifact": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "url": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "id"
      ]
    },
    "title": {
      "type": "string"
    },
    "destination": {
      "type": "object",
      "properties": {
        "type": {
          "enum": [
            "home",
            "project"
          ]
        },
        "project_id": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "type",
        "project_id"
      ]
    },
    "share": {
      "type": "object",
      "properties": {
        "visibility": {
          "type": "string",
          "enum": [
            "private",
            "workspace",
            "project",
            "link"
          ]
        },
        "link_expires_at": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "visibility"
      ]
    },
    "retain_versions": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 1
    },
    "deleted_versions": {
      "type": "integer",
      "minimum": 0
    }
  },
  "required": [
    "artifact",
    "title",
    "destination",
    "share"
  ]
}