{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bookmyhost/json-schema/bookmyhost-apply-guardrail-request-schema.json",
  "title": "ApplyGuardrailRequest",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bookmyhost-guardrails-api-openapi.yml#/components/schemas/ApplyGuardrailRequest",
  "properties": {
    "entities": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/PiiEntityType"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Entities"
    },
    "guardrail_name": {
      "title": "Guardrail Name",
      "type": "string"
    },
    "input_type": {
      "default": "request",
      "title": "Input Type",
      "type": "string"
    },
    "language": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Language"
    },
    "messages": {
      "anyOf": [
        {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Messages"
    },
    "text": {
      "title": "Text",
      "type": "string"
    }
  },
  "required": [
    "guardrail_name",
    "text"
  ],
  "type": "object",
  "$defs": {
    "PiiEntityType": {
      "enum": [
        "CREDIT_CARD",
        "CRYPTO",
        "DATE_TIME",
        "EMAIL_ADDRESS",
        "IBAN_CODE",
        "IP_ADDRESS",
        "NRP",
        "LOCATION",
        "PERSON",
        "PHONE_NUMBER",
        "MEDICAL_LICENSE",
        "URL",
        "US_BANK_NUMBER",
        "US_DRIVER_LICENSE",
        "US_ITIN",
        "US_PASSPORT",
        "US_SSN",
        "UK_NHS",
        "UK_NINO",
        "ES_NIF",
        "ES_NIE",
        "IT_FISCAL_CODE",
        "IT_DRIVER_LICENSE",
        "IT_VAT_CODE",
        "IT_PASSPORT",
        "IT_IDENTITY_CARD",
        "PL_PESEL",
        "SG_NRIC_FIN",
        "SG_UEN",
        "AU_ABN",
        "AU_ACN",
        "AU_TFN",
        "AU_MEDICARE",
        "IN_PAN",
        "IN_AADHAAR",
        "IN_VEHICLE_REGISTRATION",
        "IN_VOTER",
        "IN_PASSPORT",
        "FI_PERSONAL_IDENTITY_CODE"
      ],
      "title": "PiiEntityType",
      "type": "string"
    }
  }
}