{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nothumansearch-ai/json-schema/nothumansearch-ai-public-provider-offer-schema.json",
  "title": "PublicProviderOffer",
  "description": "Separate disclosed action attached to an exact returned organic site; the provider action URL is withheld until the exact ticket bearer creates an NHS-observed handoff receipt",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nothumansearch-ai-openapi.yaml#/components/schemas/PublicProviderOffer",
  "type": "object",
  "required": [
    "id",
    "offer_version",
    "provider_domain",
    "organic_position",
    "name",
    "summary",
    "action_type",
    "disclosure",
    "organic_rank_paid",
    "principal_price",
    "nhs_compensation",
    "commercial_terms_contract_version",
    "commercial_terms_sha256",
    "credit_rule",
    "response_expectation",
    "terms_period_anchor_rule",
    "provider_acknowledges_merchant_of_record",
    "prepare_action_endpoint"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "offer_version": {
      "type": "integer",
      "minimum": 1
    },
    "provider_domain": {
      "type": "string"
    },
    "organic_position": {
      "type": "integer",
      "minimum": 1
    },
    "name": {
      "type": "string"
    },
    "summary": {
      "type": "string"
    },
    "action_type": {
      "type": "string"
    },
    "disclosure": {
      "type": "string",
      "enum": [
        "Provider-funded action"
      ]
    },
    "organic_rank_paid": {
      "type": "boolean",
      "enum": [
        false
      ]
    },
    "principal_price": {
      "type": "object",
      "properties": {
        "mode": {
          "type": "string",
          "enum": [
            "free",
            "fixed",
            "quote",
            "provider_pricing"
          ]
        },
        "amount_minor": {
          "type": "integer",
          "minimum": 0
        },
        "currency": {
          "type": "string",
          "enum": [
            "usd"
          ]
        }
      }
    },
    "nhs_compensation": {
      "type": "object",
      "required": [
        "event",
        "amount_minor",
        "currency"
      ],
      "properties": {
        "event": {
          "type": "string",
          "enum": [
            "accepted",
            "activated",
            "converted"
          ]
        },
        "amount_minor": {
          "type": "integer",
          "minimum": 1
        },
        "currency": {
          "type": "string",
          "enum": [
            "usd"
          ]
        }
      }
    },
    "commercial_terms_contract_version": {
      "type": "string",
      "enum": [
        "nhs-provider-commercial-terms-v1"
      ]
    },
    "commercial_terms_sha256": {
      "type": "string",
      "pattern": "^[0-9a-f]{64}$"
    },
    "credit_rule": {
      "type": "string",
      "enum": [
        "full_credit_on_provider_reported_invalid_or_duplicate"
      ]
    },
    "response_expectation": {
      "type": "string",
      "enum": [
        "provider_callback_before_attribution_expiry"
      ]
    },
    "terms_period_anchor_rule": {
      "type": "string",
      "enum": [
        "billing_period_begins_at_first_activation"
      ]
    },
    "provider_acknowledges_merchant_of_record": {
      "type": "boolean",
      "enum": [
        true
      ],
      "description": "Provider contractual acknowledgement; NHS does not independently verify Merchant-of-Record status"
    },
    "prepare_action_endpoint": {
      "type": "string",
      "format": "uri"
    }
  }
}