{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fleetai-com/json-schema/fleetai-com-audit-receipt-schema.json",
  "title": "AuditReceipt",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fleetai-com-provenance-audits-api-openapi.yml#/components/schemas/AuditReceipt",
  "properties": {
    "visibility": {
      "type": "string",
      "const": "reviewer_only",
      "title": "Visibility",
      "default": "reviewer_only"
    },
    "purpose": {
      "type": "string",
      "const": "retrospective_audit",
      "title": "Purpose",
      "default": "retrospective_audit"
    },
    "artifact_id": {
      "type": "string",
      "title": "Artifact Id"
    },
    "task_id": {
      "type": "string",
      "title": "Task Id"
    },
    "version_id": {
      "type": "string",
      "title": "Version Id"
    },
    "artifact_sha256": {
      "type": "string",
      "title": "Artifact Sha256"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "artifact": {
      "additionalProperties": true,
      "type": "object",
      "title": "Artifact"
    },
    "server_verification": {
      "$ref": "#/$defs/ServerVerification"
    }
  },
  "type": "object",
  "required": [
    "artifact_id",
    "task_id",
    "version_id",
    "artifact_sha256",
    "created_at",
    "artifact",
    "server_verification"
  ],
  "$defs": {
    "ServerVerification": {
      "properties": {
        "verified_published_hashes": {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object",
          "title": "Verified Published Hashes"
        },
        "unavailable_published_hashes": {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object",
          "title": "Unavailable Published Hashes"
        },
        "verified_rubric_items": {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object",
          "title": "Verified Rubric Items"
        },
        "unavailable_rubric": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Unavailable Rubric"
        },
        "verified_solution_items": {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object",
          "title": "Verified Solution Items"
        },
        "unavailable_solution": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Unavailable Solution"
        }
      },
      "type": "object",
      "required": [
        "verified_published_hashes",
        "unavailable_published_hashes"
      ],
      "title": "ServerVerification"
    }
  }
}