{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/backworkhealth-com/json-schema/backworkhealth-com-certified-decision-response-meta-schema.json",
  "title": "CertifiedDecisionResponseMeta",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/backworkhealth-com-certified-releases-api-openapi.yml#/components/schemas/CertifiedDecisionResponseMeta",
  "type": "object",
  "properties": {
    "request_id": {
      "type": "string",
      "description": "Unique request identifier for tracing"
    },
    "timestamp": {
      "type": "string",
      "format": "date-time",
      "description": "Response timestamp"
    },
    "pagination": {
      "$ref": "#/$defs/CertifiedDecisionPaginationMeta"
    },
    "release_id": {
      "type": "string",
      "pattern": "^bwr_[0-9a-f]{64}$",
      "description": "Content-addressed release ID"
    },
    "release_manifest_sha256": {
      "$ref": "#/$defs/Sha256Digest"
    },
    "dataset_sha256": {
      "$ref": "#/$defs/Sha256Digest"
    },
    "source_set_sha256": {
      "$ref": "#/$defs/Sha256Digest"
    },
    "qa_certification_sha256": {
      "description": "Digest of the external QA certification evidence bound to the release",
      "$ref": "#/$defs/Sha256Digest"
    },
    "rights_evidence_sha256": {
      "description": "Digest of the external commercial-rights evidence bound to the release",
      "$ref": "#/$defs/Sha256Digest"
    },
    "qa_status": {
      "type": "string",
      "const": "certified"
    },
    "rights_status": {
      "type": "string",
      "const": "approved"
    },
    "field_profile": {
      "type": "string",
      "const": "derived_decision_v1"
    },
    "release_schema_version": {
      "type": "string",
      "const": "certified_release.v1",
      "description": "Exact wire contract for this release surface"
    },
    "source_as_of": {
      "type": "string",
      "format": "date-time",
      "description": "Latest source-data instant represented by the snapshot"
    },
    "expires_at": {
      "type": "string",
      "format": "date-time",
      "description": "Release availability expires before this instant"
    },
    "certified_at": {
      "type": "string",
      "format": "date-time"
    },
    "rights_approved_at": {
      "type": "string",
      "format": "date-time"
    },
    "release_created_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "request_id",
    "timestamp",
    "pagination",
    "release_id",
    "release_manifest_sha256",
    "dataset_sha256",
    "source_set_sha256",
    "qa_certification_sha256",
    "rights_evidence_sha256",
    "qa_status",
    "rights_status",
    "field_profile",
    "release_schema_version",
    "source_as_of",
    "expires_at",
    "certified_at",
    "rights_approved_at",
    "release_created_at"
  ],
  "$defs": {
    "CertifiedDecisionPaginationMeta": {
      "type": "object",
      "properties": {
        "cursor": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^bwd_[0-9a-f]{64}$"
            },
            {
              "type": "null"
            }
          ],
          "description": "Decision ID to pass as `cursor`; null when no next page exists"
        },
        "has_more": {
          "type": "boolean"
        },
        "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100
        }
      },
      "required": [
        "cursor",
        "has_more",
        "limit"
      ]
    },
    "Sha256Digest": {
      "type": "string",
      "minLength": 64,
      "maxLength": 64,
      "pattern": "^[0-9a-f]{64}$",
      "description": "Lowercase hexadecimal SHA-256 digest"
    }
  }
}