{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/connic-co/json-schema/connic-co-compliance-transparency-application-response-schema.json",
  "title": "ComplianceTransparencyApplicationResponse",
  "description": "Immutable, attested evidence that a transparency disclosure was applied, failed, or could not be confirmed.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/connic-co-public-openapi.json#/components/schemas/ComplianceTransparencyApplicationResponse",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    },
    "project_id": {
      "type": "string",
      "format": "uuid",
      "title": "Project Id",
      "description": "Project the record belongs to."
    },
    "system_id": {
      "type": "string",
      "format": "uuid",
      "title": "System Id",
      "description": "AI system the record belongs to."
    },
    "policy_id": {
      "type": "string",
      "format": "uuid",
      "title": "Policy Id",
      "description": "Transparency policy in effect when the record was created."
    },
    "policy_version": {
      "type": "integer",
      "title": "Policy Version",
      "description": "Version of that policy."
    },
    "evidence_source": {
      "type": "string",
      "enum": [
        "customer_attestation",
        "upstream_attestation"
      ],
      "title": "Evidence Source",
      "description": "Source of the attestation, from `provenance.source`."
    },
    "provenance": {
      "additionalProperties": true,
      "type": "object",
      "title": "Provenance",
      "description": "Who attested to the record and on what basis, as submitted."
    },
    "idempotency_key": {
      "type": "string",
      "title": "Idempotency Key",
      "description": "SHA-256 digest derived from the submitted idempotency key, or a random value when none was sent."
    },
    "request_digest": {
      "type": "string",
      "title": "Request Digest",
      "description": "SHA-256 digest of the submitted content, used to detect conflicting retries."
    },
    "environment_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Environment Id",
      "description": "Environment the record documents."
    },
    "deployment_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Deployment Id",
      "description": "Deployment the record documents."
    },
    "run_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Run Id",
      "description": "Run the record documents."
    },
    "connector_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Connector Id",
      "description": "Connector the record documents."
    },
    "agent_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Agent Name",
      "description": "Agent the record documents."
    },
    "surface": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Surface",
      "description": "Where the disclosure was delivered."
    },
    "mode": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Mode",
      "description": "Free-text label for how the disclosure was delivered."
    },
    "disclosure_type": {
      "type": "string",
      "enum": [
        "direct_interaction",
        "synthetic_content",
        "deepfake",
        "public_interest_text",
        "biometric_emotion"
      ],
      "title": "Disclosure Type",
      "description": "Disclosure or marking the record covers."
    },
    "status": {
      "type": "string",
      "enum": [
        "applied",
        "failed",
        "delivery_unknown"
      ],
      "title": "Status",
      "description": "`applied` when delivery was confirmed, otherwise `failed` or `delivery_unknown`."
    },
    "output_hash": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Output Hash",
      "description": "Lowercase hex SHA-256 digest of the delivered output."
    },
    "failure_reason": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Failure Reason",
      "description": "Why delivery failed or could not be confirmed. null when applied."
    },
    "policy_snapshot": {
      "additionalProperties": true,
      "type": "object",
      "title": "Policy Snapshot",
      "description": "Copy of the transparency policy at the time of recording."
    },
    "policy_hash": {
      "type": "string",
      "title": "Policy Hash",
      "description": "SHA-256 hash of `policy_snapshot`."
    },
    "application_metadata": {
      "additionalProperties": true,
      "type": "object",
      "title": "Application Metadata",
      "description": "Additional details submitted with the record."
    },
    "applied_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Applied At",
      "description": "When the disclosure was applied. null unless `status` is `applied`."
    },
    "finalized_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Finalized At",
      "description": "When the attempt ended."
    },
    "recorded_by": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Recorded By",
      "description": "ID of the user who recorded the evidence."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    }
  },
  "type": "object",
  "required": [
    "id",
    "project_id",
    "system_id",
    "policy_id",
    "policy_version",
    "evidence_source",
    "provenance",
    "idempotency_key",
    "request_digest",
    "environment_id",
    "deployment_id",
    "run_id",
    "connector_id",
    "agent_name",
    "surface",
    "mode",
    "disclosure_type",
    "status",
    "output_hash",
    "failure_reason",
    "policy_snapshot",
    "policy_hash",
    "application_metadata",
    "applied_at",
    "finalized_at",
    "recorded_by",
    "created_at"
  ]
}