{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tokencanopy-com/json-schema/tokencanopy-com-version-created-out-schema.json",
  "title": "VersionCreatedOut",
  "description": "The append/restore response — a version plus the artifact's new\nrevision, which the version-creating 201 rotates.",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tokencanopy-com-openapi.json#/components/schemas/VersionCreatedOut",
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^ver_[a-f0-9]{16}$",
      "title": "Id"
    },
    "artifact_id": {
      "type": "string",
      "pattern": "^art_[a-f0-9]{16}$",
      "title": "Artifact Id"
    },
    "version_number": {
      "type": "integer",
      "minimum": 1.0,
      "title": "Version Number"
    },
    "parent_version_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Parent Version Id"
    },
    "content_type": {
      "type": "string",
      "title": "Content Type"
    },
    "size_bytes": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Size Bytes"
    },
    "hash": {
      "type": "string",
      "title": "Hash"
    },
    "created_by": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Created By"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "origin_session_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Origin Session Id"
    },
    "origin_message": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Origin Message"
    },
    "artifact_revision": {
      "type": "string",
      "pattern": "^rev_[a-f0-9]{16}$",
      "title": "Artifact Revision",
      "description": "The artifact's revision after this version became head — the If-Match value for the next mutation."
    }
  },
  "type": "object",
  "required": [
    "id",
    "artifact_id",
    "version_number",
    "parent_version_id",
    "content_type",
    "size_bytes",
    "hash",
    "created_by",
    "created_at",
    "artifact_revision"
  ]
}