{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/copyright01-com/json-schema/copyright01-com-deposit-schema.json",
  "title": "Deposit",
  "description": "A copyright deposit with timestamped proof of authorship",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/copyright01-com-openapi.yml#/components/schemas/Deposit",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer"
    },
    "reference": {
      "type": "string",
      "description": "Unique deposit reference number"
    },
    "title": {
      "type": "string"
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "type": {
      "type": "string",
      "enum": [
        "text",
        "website",
        "youtube_video",
        "youtube_channel",
        "instagram_post",
        "instagram_reel",
        "instagram_profile",
        "facebook_page",
        "facebook_post",
        "facebook_video",
        "x_post",
        "x_profile",
        "tiktok_video",
        "tiktok_profile",
        "pinterest_pin",
        "pinterest_board",
        "pinterest_profile",
        "threads_post",
        "threads_profile",
        "github_repo",
        "image",
        "audio",
        "video",
        "document",
        "code",
        "design",
        "other"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "draft",
        "pending",
        "certified",
        "expired"
      ],
      "description": "'certified' means the deposit is legally valid"
    },
    "hash_sha256": {
      "type": [
        "string",
        "null"
      ],
      "description": "SHA-256 hash of the deposited content"
    },
    "hash_sha512": {
      "type": [
        "string",
        "null"
      ]
    },
    "is_public": {
      "type": "boolean",
      "description": "Whether the deposit is publicly verifiable"
    },
    "website_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "certified_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Timestamp when the copyright was officially certified"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "certificate": {
      "$ref": "#/$defs/Certificate"
    }
  },
  "$defs": {
    "Certificate": {
      "type": "object",
      "description": "The copyright certificate with verification details",
      "properties": {
        "verification_code": {
          "type": "string",
          "description": "Unique code to verify this certificate (format: XXXX-XXXX-XXXX)"
        },
        "verification_url": {
          "type": "string",
          "format": "uri",
          "description": "Public URL to verify this certificate"
        },
        "issued_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    }
  }
}