{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/proteiniq-io/json-schema/proteiniq-io-project-deletion-schema.json",
  "title": "ProjectDeletion",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/proteiniq-io-api-openapi.json#/components/schemas/ProjectDeletion",
  "type": "object",
  "required": [
    "id",
    "object",
    "project_id",
    "project_name",
    "mode",
    "target_project_id",
    "status",
    "error",
    "attempt_count",
    "next_attempt_at",
    "retryable",
    "created_at",
    "started_at",
    "completed_at",
    "updated_at"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "object": {
      "const": "project_deletion"
    },
    "project_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "project_name": {
      "type": "string"
    },
    "mode": {
      "type": "string",
      "enum": [
        "move",
        "unassign",
        "delete_contents"
      ]
    },
    "target_project_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "processing",
        "completed",
        "failed"
      ]
    },
    "error": {
      "type": [
        "string",
        "null"
      ]
    },
    "attempt_count": {
      "type": "integer",
      "minimum": 0
    },
    "next_attempt_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "retryable": {
      "type": "boolean"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "started_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "completed_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "additionalProperties": false
}