{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/idenfy/main/json-schema/idenfy-company-detail-schema.json",
  "title": "CompanyDetail",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/idenfy-companies-api-openapi.yml#/components/schemas/CompanyDetail",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "readOnly": true
    },
    "company": {
      "$ref": "#/$defs/CompanyDetailInfo"
    },
    "meta": {
      "$ref": "#/$defs/CompanyMeta"
    },
    "documents": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/KybDocument"
      }
    },
    "beneficiaries": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/BeneficiaryDetail"
      }
    },
    "questionnaires": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/KybAnswersDisplay"
      }
    },
    "comments": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/KybComments"
      }
    },
    "auditLogs": {
      "allOf": [
        {
          "$ref": "#/$defs/CompanyLogs"
        }
      ],
      "readOnly": true
    },
    "addressAudit": {
      "$ref": "#/$defs/AddressAuditRetrieve"
    },
    "websiteAudit": {
      "$ref": "#/$defs/WebsiteAudit"
    },
    "companyNameAudit": {
      "$ref": "#/$defs/CompanyNameAudit"
    },
    "dataMatchings": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/KybDataMatchingList"
      }
    },
    "einVerification": {
      "$ref": "#/$defs/EinVerification"
    },
    "govChecks": {
      "$ref": "#/$defs/CompanyGovChecks"
    },
    "amlCheck": {
      "allOf": [
        {
          "$ref": "#/$defs/CompanyAmlCheck"
        }
      ],
      "nullable": true
    },
    "amlChecks": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AmlCheck"
      },
      "description": "Other AML checks that were performed for this company."
    },
    "amlMonitoringUsers": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/AmlMonitoringUser"
      }
    },
    "riskAssessment": {
      "allOf": [
        {
          "$ref": "#/$defs/RiskAssessmentSummary"
        }
      ],
      "nullable": true
    }
  },
  "required": [
    "addressAudit",
    "amlCheck",
    "amlChecks",
    "amlMonitoringUsers",
    "auditLogs",
    "beneficiaries",
    "comments",
    "company",
    "companyNameAudit",
    "dataMatchings",
    "documents",
    "einVerification",
    "govChecks",
    "id",
    "meta",
    "questionnaires",
    "riskAssessment",
    "websiteAudit"
  ],
  "$defs": {
    "AddressAuditImage": {
      "type": "object",
      "properties": {
        "image": {
          "type": "string",
          "format": "uri",
          "description": "Address audit image"
        },
        "type": {
          "$ref": "#/$defs/AddressAuditImageTypeEnum"
        }
      },
      "required": [
        "image"
      ]
    },
    "AddressAuditImageTypeEnum": {
      "enum": [
        "STREET_VIEW",
        "ADDITIONAL"
      ],
      "type": "string"
    },
    "AddressAuditRetrieve": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "readOnly": true
        },
        "created": {
          "type": "string",
          "format": "date-time",
          "readOnly": true
        },
        "googleMapsUrl": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri",
          "readOnly": true,
          "description": "Link to google maps result for address"
        },
        "dataId": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "SerpAPI result data ID"
        },
        "type": {
          "type": "object",
          "additionalProperties": {},
          "readOnly": true
        },
        "address": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true
        },
        "associatedBodies": {
          "type": "object",
          "additionalProperties": {},
          "readOnly": true,
          "description": "Associated bodies at this address"
        },
        "latitude": {
          "type": [
            "number",
            "null"
          ],
          "format": "double",
          "readOnly": true,
          "description": "Address latitude"
        },
        "longitude": {
          "type": [
            "number",
            "null"
          ],
          "format": "double",
          "readOnly": true,
          "description": "Address longitude"
        },
        "riskLevel": {
          "allOf": [
            {
              "$ref": "#/$defs/RiskLevelEnum"
            }
          ],
          "readOnly": true
        },
        "addressAuditImages": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AddressAuditImage"
          },
          "readOnly": true
        }
      },
      "required": [
        "address",
        "addressAuditImages",
        "associatedBodies",
        "created",
        "dataId",
        "googleMapsUrl",
        "id",
        "latitude",
        "longitude",
        "riskLevel",
        "type"
      ]
    },
    "AdverseMediaSearchResult": {
      "type": "object",
      "properties": {
        "title": {
          "type": [
            "string",
            "null"
          ]
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "text": {
          "type": [
            "string",
            "null"
          ]
        },
        "score": {
          "type": [
            "integer",
            "null"
          ]
        },
        "type": {
          "allOf": [
            {
              "$ref": "#/$defs/AmlArticleTypeEnum"
            }
          ],
          "nullable": true
        },
        "publishDate": {
          "type": [
            "string",
            "null"
          ],
          "format": "date"
        }
      },
      "required": [
        "publishDate",
        "score",
        "text",
        "title",
        "type",
        "url"
      ]
    },
    "AmlArticleTypeEnum": {
      "enum": [
        "NEGATIVE"
      ],
      "type": "string"
    },
    "AmlCheck": {
      "oneOf": [
        {
          "$ref": "#/$defs/PersonAmlCheck"
        },
        {
          "$ref": "#/$defs/CompanyAmlCheck"
        }
      ]
    },
    "AmlCheckMonitoring": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "readOnly": true
        },
        "status": {
          "$ref": "#/$defs/MonitoringStatusEnum"
        },
        "isSubscribed": {
          "type": "boolean"
        },
        "expiration": {
          "type": "string",
          "format": "date-time"
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 32,
            "pattern": "^[^,]+$"
          },
          "default": [],
          "description": "List of case-sensitive strings. Each tag can not be longer than 32 characters.",
          "maxItems": 5
        },
        "created": {
          "type": "string",
          "format": "date-time",
          "readOnly": true
        }
      },
      "required": [
        "created",
        "id"
      ]
    },
    "AmlCheckStatusEnum": {
      "enum": [
        "NOT_CHECKED",
        "NO_FLAGS",
        "FALSE_POSITIVE",
        "TRUE_POSITIVE",
        "FLAGS_FOUND"
      ],
      "type": "string"
    },
    "AmlMonitoringUser": {
      "type": "object",
      "properties": {
        "monitoringId": {
          "type": "string",
          "maxLength": 100
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 200
        },
        "surname": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 100
        },
        "lastCheckDate": {
          "type": [
            "string",
            "null"
          ],
          "format": "date"
        },
        "alertStatus": {
          "$ref": "#/$defs/MonitoringAlertTypeEnum"
        }
      },
      "required": [
        "monitoringId"
      ]
    },
    "Applicant": {
      "oneOf": [
        {
          "$ref": "#/$defs/IndividualApplicant"
        },
        {
          "$ref": "#/$defs/CompanyApplicant"
        }
      ]
    },
    "ApplicantTypeEnum": {
      "enum": [
        "INDIVIDUAL",
        "COMPANY"
      ],
      "type": "string"
    },
    "ApprovalStatusEnum": {
      "enum": [
        "APPROVED",
        "DENIED"
      ],
      "type": "string"
    },
    "AuditLogManager": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "displayName": {
          "type": "string"
        }
      }
    },
    "BeneficiaryDetail": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "readOnly": true
        },
        "beneficiaryType": {
          "$ref": "#/$defs/BeneficiaryTypeEnum"
        },
        "beneficiaryTypes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/BeneficiaryTypeEnum"
          },
          "minItems": 1
        },
        "info": {
          "$ref": "#/$defs/Applicant"
        },
        "positions": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^[^,]+$",
            "maxLength": 50
          },
          "default": [],
          "description": "Positions of the beneficiary. Can be `shareholder`, `director`, or any other position.",
          "maxItems": 3
        },
        "formFiller": {
          "type": "boolean",
          "description": "Indicates whether this beneficiary is the filler of the KYB form."
        },
        "ownershipPercentage": {
          "type": [
            "number",
            "null"
          ],
          "format": "double",
          "maximum": 100.0,
          "minimum": 0.0
        },
        "parent": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true
        },
        "meta": {
          "allOf": [
            {
              "$ref": "#/$defs/BeneficiaryDetailMeta"
            }
          ],
          "readOnly": true
        },
        "documents": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/KybDocument"
          },
          "default": []
        },
        "amlCheck": {
          "allOf": [
            {
              "$ref": "#/$defs/AmlCheck"
            }
          ],
          "nullable": true
        },
        "amlMonitoringUser": {
          "allOf": [
            {
              "$ref": "#/$defs/BeneficiaryMonitoringUser"
            }
          ],
          "readOnly": true
        }
      },
      "required": [
        "amlCheck",
        "amlMonitoringUser",
        "id",
        "info",
        "meta",
        "parent"
      ]
    },
    "BeneficiaryDetailMeta": {
      "type": "object",
      "properties": {
        "identifier": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true
        },
        "clientId": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true
        },
        "finalStatus": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true
        },
        "sessionExpiration": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "readOnly": true
        },
        "identificationHistory": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/IdentificationHistory"
          },
          "readOnly": true
        },
        "pepsCheckStatus": {
          "allOf": [
            {
              "$ref": "#/$defs/AmlCheckStatusEnum"
            }
          ],
          "description": "Always `NOT_CHECKED` for `COMPANY` beneficiaries because company AML can't have PEPs flags."
        },
        "pepsStatusSetAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "pepsStatusSetBy": {
          "allOf": [
            {
              "$ref": "#/$defs/ManagerAccount"
            }
          ],
          "readOnly": true,
          "nullable": true
        },
        "sanctionsCheckStatus": {
          "$ref": "#/$defs/AmlCheckStatusEnum"
        },
        "sanctionsStatusSetAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "sanctionsStatusSetBy": {
          "allOf": [
            {
              "$ref": "#/$defs/ManagerAccount"
            }
          ],
          "readOnly": true,
          "nullable": true
        },
        "amlComment": {
          "type": [
            "string",
            "null"
          ]
        },
        "negativeNewsStatus": {
          "$ref": "#/$defs/AmlCheckStatusEnum"
        },
        "negativeNewsComment": {
          "type": [
            "string",
            "null"
          ]
        },
        "newsStatusSetBy": {
          "allOf": [
            {
              "$ref": "#/$defs/ManagerAccount"
            }
          ],
          "readOnly": true,
          "nullable": true
        },
        "newsStatusSetAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      },
      "required": [
        "clientId",
        "finalStatus",
        "identificationHistory",
        "identifier",
        "newsStatusSetBy",
        "pepsStatusSetBy",
        "sanctionsStatusSetBy",
        "sessionExpiration"
      ]
    },
    "BeneficiaryMonitoringUser": {
      "type": "object",
      "properties": {
        "monitoringId": {
          "type": "string",
          "readOnly": true
        },
        "alertStatus": {
          "allOf": [
            {
              "$ref": "#/$defs/MonitoringAlertTypeEnum"
            }
          ],
          "readOnly": true
        }
      },
      "required": [
        "alertStatus",
        "monitoringId"
      ]
    },
    "BeneficiaryTypeEnum": {
      "enum": [
        "CEO",
        "REPRESENTATIVE",
        "SHAREHOLDER",
        "UBO",
        "ABO"
      ],
      "type": "string"
    },
    "BlacklistStatus": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "status": {
          "$ref": "#/$defs/BlacklistStatusEnum"
        }
      },
      "required": [
        "id",
        "status"
      ]
    },
    "BlacklistStatusEnum": {
      "enum": [
        "CHECKED",
        "SKIPPED"
      ],
      "type": "string"
    },
    "BusinessSearchDatasetEnum": {
      "enum": [
        "PEP",
        "PEP_LINKED",
        "SAN",
        "SAN_CURRENT",
        "SAN_FORMER",
        "INS",
        "RRE",
        "POI",
        "REL",
        "SOE",
        "SOE_CURRENT",
        "SOE_FORMER"
      ],
      "type": "string"
    },
    "BusinessSearchResult": {
      "type": "object",
      "properties": {
        "version": {
          "type": "integer",
          "description": "The version number can be used by clients to detect when a profile has been changed by our research team."
        },
        "resourceId": {
          "type": "string",
          "description": "The resource ID can be used to retrieve the full profile or the PDF of the business."
        },
        "score": {
          "type": "integer",
          "description": "The match score of the profile."
        },
        "match": {
          "type": "string",
          "description": "The name of the profile that has been matched in the search."
        },
        "name": {
          "type": "string",
          "description": "The primary name of the profile."
        },
        "addresses": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/SearchAddress"
          },
          "description": "The list of profile addresses."
        },
        "datasets": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/BusinessSearchDatasetEnum"
          },
          "description": "The profile datasets\n * PEP - (Deprecated - ignore)\n * PEP_LINKED - Only linked PEPs (PEP by Association)\n * SAN - (Deprecated - ignore)\n * SAN_CURRENT - Only current Sanctions\n * SAN_FORMER - Only former Sanctions\n * INS - Insolvency\n * RRE - Reputational Risk Exposure\n * POI - Profile Of Interest\n * REL - Regulatory Enforcement List\n * SOE - (Deprecated - ignore)\n * SOE_CURRENT - Only current SOE\n * SOE_FORMER - Only former SOE.\n"
        },
        "currentSanBodyIds": {
          "type": "array",
          "items": {
            "type": "integer"
          },
          "description": "The list of IDs of all sanctioning bodies, that are currently sanctioning the given profile. The full list of supported sanction bodies and their IDs is provided by /dictionaries/sanction-bodies endpoint."
        },
        "formerSanBodyIds": {
          "type": "array",
          "items": {
            "type": "integer"
          },
          "description": "The list of IDs of all sanctioning bodies, that were sanctioning the given profile in the past, but do not currently sanction them. The full list of supported sanction bodies and their IDs is provided by /dictionaries/sanction-bodies endpoint."
        }
      },
      "required": [
        "addresses",
        "currentSanBodyIds",
        "datasets",
        "formerSanBodyIds",
        "match",
        "name",
        "resourceId",
        "score"
      ]
    },
    "CheckboxFieldValue": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string"
        },
        "type": {
          "$ref": "#/$defs/CustomFieldTypeEnum"
        },
        "value": {
          "type": [
            "boolean",
            "null"
          ]
        }
      },
      "required": [
        "title",
        "type"
      ]
    },
    "CompanyAmlCheck": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "readOnly": true
        },
        "clientId": {
          "type": "string",
          "description": "A unique string identifying a client on your side.",
          "maxLength": 100
        },
        "checkedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "readOnly": true
        },
        "created": {
          "type": "string",
          "format": "date-time",
          "readOnly": true
        },
        "userType": {
          "$ref": "#/$defs/UserMonitoringTypeEnum"
        },
        "input": {
          "$ref": "#/$defs/CompanyAmlCheckInput"
        },
        "filter": {
          "$ref": "#/$defs/CompanyAmlCheckFilter"
        },
        "amlCheck": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/BusinessSearchResult"
          },
          "readOnly": true,
          "description": "AML database search result."
        },
        "adverseMedia": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/AdverseMediaSearchResult"
          },
          "readOnly": true,
          "description": "Adverse media database search result."
        },
        "overallStatus": {
          "allOf": [
            {
              "$ref": "#/$defs/AmlCheckStatusEnum"
            }
          ],
          "readOnly": true
        },
        "monitoring": {
          "allOf": [
            {
              "$ref": "#/$defs/AmlCheckMonitoring"
            }
          ],
          "readOnly": true,
          "nullable": true
        }
      },
      "required": [
        "adverseMedia",
        "amlCheck",
        "checkedAt",
        "clientId",
        "created",
        "filter",
        "id",
        "input",
        "monitoring",
        "overallStatus",
        "userType"
      ]
    },
    "CompanyAmlCheckFilter": {
      "type": "object",
      "properties": {
        "threshold": {
          "type": [
            "integer",
            "null"
          ],
          "maximum": 100,
          "minimum": 75,
          "default": 85
        },
        "datasets": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/CompanyAmlCheckFilterDatasetsEnum"
          },
          "description": "Required when checking `AML_CHECK` service."
        },
        "sanctionBodies": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "integer",
            "maximum": 80,
            "minimum": 1
          },
          "description": "When searching `SAN` dataset, specify the values of sanctioning bodies that should be included when screening `SAN` dataset. The full list of supported sanction bodies and their values are provided by the API info endpoint. If none sanction bodies are provided the system will search sanctions issued by any sanctioning body."
        }
      }
    },
    "CompanyAmlCheckFilterDatasetsEnum": {
      "enum": [
        "PEP_LINKED",
        "SAN_CURRENT",
        "SAN_FORMER",
        "INS",
        "RRE",
        "POI",
        "REL",
        "SOE_CURRENT",
        "SOE_FORMER"
      ],
      "type": "string"
    },
    "CompanyAmlCheckInput": {
      "type": "object",
      "properties": {
        "companyName": {
          "type": "string",
          "maxLength": 200
        },
        "country": {
          "allOf": [
            {
              "$ref": "#/$defs/CountryEnum"
            }
          ],
          "nullable": true
        }
      },
      "required": [
        "companyName"
      ]
    },
    "CompanyApplicant": {
      "type": "object",
      "properties": {
        "infoType": {
          "$ref": "#/$defs/ApplicantTypeEnum"
        },
        "companyName": {
          "type": "string",
          "maxLength": 200
        },
        "registrationNumber": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 100
        },
        "country": {
          "$ref": "#/$defs/CountryEnum"
        },
        "region": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 2
        },
        "type": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 100
        },
        "phone": {
          "type": [
            "string",
            "null"
          ],
          "description": "Phone number in [E.164](https://wikipedia.org/wiki/E.164) format.",
          "maxLength": 128
        },
        "website": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri",
          "maxLength": 200
        },
        "email": {
          "type": [
            "string",
            "null"
          ],
          "format": "email",
          "description": "Email address.",
          "maxLength": 254
        },
        "brandNames": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 100
          },
          "default": [],
          "maxItems": 10
        },
        "activityCode": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 8
        },
        "tin": {
          "type": [
            "string",
            "null"
          ],
          "description": "Taxpayer identification number.",
          "maxLength": 32
        },
        "operatingAddress": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 255
        },
        "postalAddress": {
          "type": [
            "string",
            "null"
          ],
          "description": "Registration address.",
          "maxLength": 255
        },
        "postcode": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 20
        },
        "street": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 100
        },
        "city": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 100
        },
        "additionalInfo": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/CustomFieldValue"
          }
        }
      },
      "required": [
        "companyName",
        "country",
        "infoType"
      ]
    },
    "CompanyComparisonDataMatching": {
      "type": "object",
      "properties": {
        "field": {
          "$ref": "#/$defs/CompanyFieldEnum"
        },
        "systemValue": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 255
        },
        "reportValue": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 255
        },
        "match": {
          "allOf": [
            {
              "$ref": "#/$defs/KybDataMatchEnum"
            }
          ],
          "nullable": true
        }
      },
      "required": [
        "field",
        "match",
        "reportValue",
        "systemValue"
      ]
    },
    "CompanyCreditBureauDocument": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "readOnly": true
        },
        "externalCompanyId": {
          "type": "string",
          "maxLength": 255
        },
        "checkedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "status": {
          "$ref": "#/$defs/CreditBureauStatusEnum"
        },
        "dataFile": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri",
          "pattern": "(?:json)$"
        },
        "reportFile": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri",
          "pattern": "(?:pdf)$"
        },
        "beneficiaryDocument": {
          "type": "boolean"
        }
      },
      "required": [
        "externalCompanyId",
        "id",
        "status"
      ]
    },
    "CompanyDetailInfo": {
      "type": "object",
      "properties": {
        "companyName": {
          "type": "string",
          "maxLength": 200
        },
        "registrationNumber": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 100
        },
        "country": {
          "$ref": "#/$defs/CountryEnum"
        },
        "region": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 2
        },
        "type": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 100
        },
        "phone": {
          "type": [
            "string",
            "null"
          ],
          "description": "Phone number in [E.164](https://wikipedia.org/wiki/E.164) format.",
          "maxLength": 128
        },
        "website": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri",
          "maxLength": 200
        },
        "email": {
          "type": [
            "string",
            "null"
          ],
          "format": "email",
          "description": "Email address.",
          "maxLength": 254
        },
        "brandNames": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 100
          },
          "default": [],
          "maxItems": 10
        },
        "activityCode": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 8
        },
        "tin": {
          "type": [
            "string",
            "null"
          ],
          "description": "Taxpayer identification number.",
          "maxLength": 32
        },
        "operatingAddress": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 255
        },
        "postalAddress": {
          "type": [
            "string",
            "null"
          ],
          "description": "Registration address.",
          "maxLength": 255
        },
        "postcode": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 20
        },
        "street": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 100
        },
        "city": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 100
        },
        "additionalInfo": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/CustomFieldValue"
          }
        }
      },
      "required": [
        "additionalInfo",
        "companyName",
        "country"
      ]
    },
    "CompanyExpirationStatusEnum": {
      "enum": [
        "PENDING",
        "EXPIRED"
      ],
      "type": "string"
    },
    "CompanyFieldEnum": {
      "enum": [
        "COMPANY_NAME",
        "REGISTRATION_NUMBER",
        "COUNTRY",
        "REGION",
        "TYPE",
        "PHONE",
        "WEBSITE",
        "EMAIL",
        "BRAND_NAMES",
        "ACTIVITY_CODE",
        "TIN",
        "OPERATING_ADDRESS",
        "POSTAL_ADDRESS",
        "POSTCODE",
        "STREET",
        "CITY"
      ],
      "type": "string"
    },
    "CompanyGovChecks": {
      "type": "object",
      "properties": {
        "creditBureauDocuments": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CompanyCreditBureauDocument"
          }
        },
        "govRegistersDocuments": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CompanyGovRegistersDocument"
          }
        },
        "govOrderedDocuments": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CompanyGovOrderedDocument"
          }
        },
        "sosFilingDocuments": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CompanySosReportDocument"
          }
        }
      },
      "required": [
        "creditBureauDocuments",
        "govOrderedDocuments",
        "govRegistersDocuments",
        "sosFilingDocuments"
      ]
    },
    "CompanyGovOrderedDocument": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "readOnly": true
        },
        "title": {
          "type": [
            "string",
            "null"
          ]
        },
        "documentFormat": {
          "type": "string",
          "maxLength": 5
        },
        "expectedDeliveryTime": {
          "type": "string",
          "format": "date-time"
        },
        "deliveredAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "status": {
          "$ref": "#/$defs/GovDocumentOrderStatusEnum"
        },
        "file": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "beneficiaryDocument": {
          "type": "boolean"
        }
      },
      "required": [
        "expectedDeliveryTime",
        "id"
      ]
    },
    "CompanyGovRegistersDocument": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "readOnly": true
        },
        "lite": {
          "type": "boolean"
        },
        "checkedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "dataFile": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri",
          "pattern": "(?:json)$"
        },
        "reportFile": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri",
          "pattern": "(?:pdf)$"
        },
        "checkedCompanyName": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 200
        },
        "checkedRegistrationNumber": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 100
        },
        "companyName": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 200
        },
        "externalCompanyId": {
          "type": "string",
          "maxLength": 512
        },
        "postcode": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 20
        },
        "city": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 100
        },
        "activityCode": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 32
        },
        "activity": {
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": {}
        },
        "addresses": {
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": {}
        },
        "aliases": {
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": {}
        },
        "email": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 128
        },
        "faxNumber": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 32
        },
        "telephoneNumber": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 32
        },
        "fiscalCode": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 128
        },
        "websiteUrl": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 128
        },
        "foundationDate": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 128
        },
        "legalForm": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 128
        },
        "legalStatus": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 128
        },
        "registrationAuthority": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 128
        },
        "registrationAuthorityCode": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 128
        },
        "registrationDate": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 128
        },
        "registrationNumber": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 128
        },
        "vatNumber": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 128
        },
        "stateOfIncorporation": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 128
        },
        "associatedPersons": {
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": {}
        },
        "beneficiaryDocument": {
          "type": "boolean"
        }
      },
      "required": [
        "externalCompanyId",
        "id"
      ]
    },
    "CompanyLogs": {
      "type": "object",
      "properties": {
        "logs": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/KybAuditLog"
          },
          "readOnly": true
        },
        "logsCount": {
          "type": "integer",
          "readOnly": true
        }
      },
      "required": [
        "logs",
        "logsCount"
      ]
    },
    "CompanyMeta": {
      "type": "object",
      "properties": {
        "created": {
          "type": "string",
          "format": "date-time",
          "readOnly": true
        },
        "status": {
          "$ref": "#/$defs/KybStatusEnum"
        },
        "statusChangedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "readOnly": true
        },
        "statusChangedBy": {
          "allOf": [
            {
              "$ref": "#/$defs/ManagerAccount"
            }
          ],
          "readOnly": true,
          "nullable": true
        },
        "expirationStatus": {
          "allOf": [
            {
              "$ref": "#/$defs/CompanyExpirationStatusEnum"
            }
          ],
          "nullable": true
        },
        "assignedTo": {
          "allOf": [
            {
              "$ref": "#/$defs/ManagerAccount"
            }
          ],
          "readOnly": true,
          "nullable": true
        },
        "initialSubmissionTime": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "Date and time when KYB form submit endpoint was called for the first time."
        },
        "submissionTime": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "Date and time when KYB form submit endpoint was called."
        },
        "matchedBlacklists": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string",
            "pattern": "^[^,]+$",
            "maxLength": 32
          }
        },
        "blacklistStatuses": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/BlacklistStatus"
          },
          "readOnly": true
        },
        "automationFlags": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string",
            "pattern": "^[^,]+$",
            "maxLength": 32
          }
        },
        "automationStatuses": {
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": {}
        },
        "automationRanAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "ipProxyRiskLevel": {
          "allOf": [
            {
              "$ref": "#/$defs/RiskLevelEnum"
            }
          ],
          "nullable": true
        },
        "fraudProbLevel": {
          "allOf": [
            {
              "$ref": "#/$defs/RiskLevelEnum"
            }
          ],
          "nullable": true
        },
        "sanctionsCheckStatus": {
          "allOf": [
            {
              "$ref": "#/$defs/AmlCheckStatusEnum"
            }
          ],
          "description": "DEPRECATED"
        },
        "sanctionsStatusSetAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "DEPRECATED"
        },
        "sanctionsStatusSetBy": {
          "allOf": [
            {
              "$ref": "#/$defs/ManagerAccount"
            }
          ],
          "readOnly": true,
          "nullable": true
        },
        "amlComment": {
          "type": [
            "string",
            "null"
          ],
          "description": "DEPRECATED"
        },
        "negativeNewsStatus": {
          "allOf": [
            {
              "$ref": "#/$defs/AmlCheckStatusEnum"
            }
          ],
          "description": "DEPRECATED"
        },
        "newsStatusSetAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "DEPRECATED"
        },
        "newsStatusSetBy": {
          "allOf": [
            {
              "$ref": "#/$defs/ManagerAccount"
            }
          ],
          "readOnly": true,
          "nullable": true
        },
        "negativeNewsComment": {
          "type": [
            "string",
            "null"
          ],
          "description": "DEPRECATED"
        },
        "approvalStatus": {
          "allOf": [
            {
              "$ref": "#/$defs/ApprovalStatusEnum"
            }
          ],
          "nullable": true,
          "description": "Review approval status."
        },
        "approvalStatusChangedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "denyReason": {
          "type": [
            "string",
            "null"
          ],
          "description": "The reason why this KYB form was denied.",
          "maxLength": 64
        },
        "informationRequested": {
          "type": "boolean"
        },
        "reviewLevel": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 32
        },
        "soleProprietor": {
          "type": "boolean"
        }
      },
      "required": [
        "assignedTo",
        "blacklistStatuses",
        "created",
        "newsStatusSetBy",
        "sanctionsStatusSetBy",
        "statusChangedAt",
        "statusChangedBy"
      ]
    },
    "CompanyNameAudit": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "readOnly": true
        },
        "created": {
          "type": "string",
          "format": "date-time",
          "readOnly": true
        },
        "descriptionByCompany": {
          "type": [
            "string",
            "null"
          ]
        },
        "address": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 255
        },
        "phoneNumber": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 128
        },
        "industry": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 100
        },
        "rating": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "socialMediaProfiles": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/SocialMediaProfiles"
          }
        }
      },
      "required": [
        "created",
        "id",
        "socialMediaProfiles"
      ]
    },
    "CompanySosReportDocument": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "readOnly": true
        },
        "checkedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "status": {
          "$ref": "#/$defs/GovDocumentOrderStatusEnum"
        },
        "dataFile": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri",
          "pattern": "(?:json)$"
        },
        "reportFile": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri",
          "pattern": "(?:pdf)$"
        },
        "companyName": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 200
        },
        "formationDate": {
          "type": [
            "string",
            "null"
          ],
          "format": "date"
        },
        "entityType": {
          "allOf": [
            {
              "$ref": "#/$defs/SosEntityTypeEnum"
            }
          ],
          "nullable": true
        },
        "watchlistHitsCount": {
          "type": [
            "integer",
            "null"
          ],
          "maximum": 2147483647,
          "minimum": -2147483648
        },
        "beneficiaryDocument": {
          "type": "boolean"
        }
      },
      "required": [
        "id"
      ]
    },
    "CountryEnum": {
      "enum": [
        "AF",
        "AX",
        "AL",
        "DZ",
        "AS",
        "AD",
        "AO",
        "AI",
        "AQ",
        "AG",
        "AR",
        "AM",
        "AW",
        "AU",
        "AT",
        "AZ",
        "BS",
        "BH",
        "BD",
        "BB",
        "BY",
        "BE",
        "BZ",
        "BJ",
        "BM",
        "BT",
        "BO",
        "BQ",
        "BA",
        "BW",
        "BV",
        "BR",
        "IO",
        "BN",
        "BG",
        "BF",
        "BI",
        "CV",
        "KH",
        "CM",
        "CA",
        "KY",
        "CF",
        "TD",
        "CL",
        "CN",
        "CX",
        "CC",
        "CO",
        "KM",
        "CG",
        "CK",
        "CR",
        "CI",
        "HR",
        "CU",
        "CW",
        "CY",
        "CZ",
        "CD",
        "DK",
        "DJ",
        "DM",
        "DO",
        "EC",
        "EG",
        "SV",
        "GQ",
        "ER",
        "EE",
        "SZ",
        "ET",
        "FK",
        "FO",
        "FJ",
        "FI",
        "FR",
        "GF",
        "PF",
        "TF",
        "GA",
        "GM",
        "GE",
        "DE",
        "GH",
        "GI",
        "GR",
        "GL",
        "GD",
        "GP",
        "GU",
        "GT",
        "GG",
        "GN",
        "GW",
        "GY",
        "HT",
        "HM",
        "HN",
        "HK",
        "HU",
        "IS",
        "IN",
        "ID",
        "IR",
        "IQ",
        "IE",
        "IM",
        "IL",
        "IT",
        "JM",
        "JP",
        "JE",
        "JO",
        "KZ",
        "KE",
        "KI",
        "XK",
        "KW",
        "KG",
        "LA",
        "LV",
        "LB",
        "LS",
        "LR",
        "LY",
        "LI",
        "LT",
        "LU",
        "MO",
        "MG",
        "MW",
        "MY",
        "MV",
        "ML",
        "MT",
        "MH",
        "MQ",
        "MR",
        "MU",
        "YT",
        "MX",
        "FM",
        "MD",
        "MC",
        "MN",
        "ME",
        "MS",
        "MA",
        "MZ",
        "MM",
        "NA",
        "NR",
        "NP",
        "NL",
        "NC",
        "NZ",
        "NI",
        "NE",
        "NG",
        "NU",
        "NF",
        "KP",
        "MK",
        "MP",
        "NO",
        "OM",
        "PK",
        "PW",
        "PS",
        "PA",
        "PG",
        "PY",
        "PE",
        "PH",
        "PN",
        "PL",
        "PT",
        "PR",
        "QA",
        "RE",
        "RO",
        "RU",
        "RW",
        "BL",
        "SH",
        "KN",
        "LC",
        "MF",
        "PM",
        "VC",
        "WS",
        "SM",
        "ST",
        "SA",
        "SN",
        "RS",
        "SC",
        "SL",
        "SG",
        "SX",
        "SK",
        "SI",
        "SB",
        "SO",
        "ZA",
        "GS",
        "KR",
        "SS",
        "ES",
        "LK",
        "SD",
        "SR",
        "SJ",
        "SE",
        "CH",
        "SY",
        "TW",
        "TJ",
        "TZ",
        "TH",
        "TL",
        "TG",
        "TK",
        "TO",
        "TT",
        "TN",
        "TR",
        "TM",
        "TC",
        "TV",
        "UG",
        "UA",
        "AE",
        "GB",
        "UM",
        "US",
        "UY",
        "UZ",
        "VU",
        "VA",
        "VE",
        "VN",
        "VG",
        "VI",
        "WF",
        "EH",
        "YE",
        "ZM",
        "ZW"
      ],
      "type": "string"
    },
    "CountryFieldValue": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string"
        },
        "type": {
          "$ref": "#/$defs/CustomFieldTypeEnum"
        },
        "value": {
          "allOf": [
            {
              "$ref": "#/$defs/CountryEnum"
            }
          ],
          "nullable": true
        }
      },
      "required": [
        "title",
        "type"
      ]
    },
    "CountryMultiFieldValue": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string"
        },
        "type": {
          "$ref": "#/$defs/CustomFieldTypeEnum"
        },
        "value": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/CountryEnum"
          }
        }
      },
      "required": [
        "title",
        "type"
      ]
    },
    "CreditBureauStatusEnum": {
      "enum": [
        "ACTIVE",
        "NON_ACTIVE",
        "PENDING",
        "OTHER",
        "NOT_FOUND"
      ],
      "type": "string"
    },
    "CustomFieldTypeEnum": {
      "enum": [
        "CHECKBOX",
        "COUNTRY",
        "COUNTRY_MULTI",
        "DATE",
        "INTEGER",
        "SELECT",
        "SELECT_MULTI",
        "TEXT"
      ],
      "type": "string"
    },
    "CustomFieldValue": {
      "oneOf": [
        {
          "$ref": "#/$defs/CheckboxFieldValue"
        },
        {
          "$ref": "#/$defs/CountryFieldValue"
        },
        {
          "$ref": "#/$defs/CountryMultiFieldValue"
        },
        {
          "$ref": "#/$defs/DateFieldValue"
        },
        {
          "$ref": "#/$defs/IntegerFieldValue"
        },
        {
          "$ref": "#/$defs/SelectFieldValue"
        },
        {
          "$ref": "#/$defs/SelectMultiFieldValue"
        },
        {
          "$ref": "#/$defs/TextFieldValue"
        }
      ]
    },
    "DateFieldValue": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string"
        },
        "type": {
          "$ref": "#/$defs/CustomFieldTypeEnum"
        },
        "value": {
          "type": [
            "string",
            "null"
          ],
          "format": "date"
        }
      },
      "required": [
        "title",
        "type"
      ]
    },
    "DateOfBirthMatchingEnum": {
      "enum": [
        "EXACT",
        "SAME_YEAR",
        "WITHIN_ONE_YEAR",
        "WITHIN_TWO_YEARS",
        "WITHIN_THREE_YEARS",
        "WITHIN_FOUR_YEARS",
        "WITHIN_FIVE_YEARS"
      ],
      "type": "string"
    },
    "EinVerification": {
      "type": "object",
      "properties": {
        "result": {
          "allOf": [
            {
              "$ref": "#/$defs/EinVerificationEnum"
            }
          ],
          "readOnly": true,
          "nullable": true
        },
        "checkedEin": {
          "type": "string",
          "readOnly": true
        },
        "checkedCompanyName": {
          "type": "string",
          "readOnly": true
        },
        "created": {
          "type": "string",
          "format": "date-time",
          "readOnly": true
        }
      },
      "required": [
        "checkedCompanyName",
        "checkedEin",
        "created",
        "result"
      ]
    },
    "EinVerificationEnum": {
      "enum": [
        "MISMATCH",
        "UNKNOWN",
        "VERIFIED"
      ],
      "type": "string"
    },
    "GovDocumentOrderStatusEnum": {
      "enum": [
        "NOT_ORDERED",
        "IN_PROGRESS",
        "FINISHED",
        "FAILED",
        "TIMED_OUT"
      ],
      "type": "string"
    },
    "IdentificationHistory": {
      "type": "object",
      "properties": {
        "scanRef": {
          "type": "string",
          "maxLength": 40
        },
        "finalStatus": {
          "type": "string",
          "readOnly": true
        }
      },
      "required": [
        "finalStatus",
        "scanRef"
      ]
    },
    "IndividualApplicant": {
      "type": "object",
      "properties": {
        "infoType": {
          "$ref": "#/$defs/ApplicantTypeEnum"
        },
        "name": {
          "type": "string",
          "maxLength": 100
        },
        "surname": {
          "type": "string",
          "maxLength": 100
        },
        "email": {
          "type": [
            "string",
            "null"
          ],
          "format": "email",
          "description": "Email address.",
          "maxLength": 254
        },
        "phone": {
          "type": [
            "string",
            "null"
          ],
          "description": "Phone number in [E.164](https://wikipedia.org/wiki/E.164) format.",
          "maxLength": 128
        },
        "dateOfBirth": {
          "type": [
            "string",
            "null"
          ],
          "format": "date"
        },
        "country": {
          "allOf": [
            {
              "$ref": "#/$defs/CountryEnum"
            }
          ],
          "nullable": true,
          "description": "ID issuing country."
        },
        "nationality": {
          "allOf": [
            {
              "$ref": "#/$defs/CountryEnum"
            }
          ],
          "nullable": true
        },
        "documentNumber": {
          "type": [
            "string",
            "null"
          ],
          "pattern": "^[\\u0000-\\u007F]+$",
          "maxLength": 50
        },
        "personalNumber": {
          "type": [
            "string",
            "null"
          ],
          "pattern": "^[\\u0000-\\u007F]+$",
          "maxLength": 50
        },
        "citizenship": {
          "allOf": [
            {
              "$ref": "#/$defs/CountryEnum"
            }
          ],
          "nullable": true
        },
        "countryOfBirth": {
          "allOf": [
            {
              "$ref": "#/$defs/CountryEnum"
            }
          ],
          "nullable": true
        },
        "residentialAddress": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 255
        },
        "countryOfResidence": {
          "allOf": [
            {
              "$ref": "#/$defs/CountryEnum"
            }
          ],
          "nullable": true
        },
        "postcode": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 20
        },
        "address": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 255
        },
        "street": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 100
        },
        "city": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 100
        },
        "tin": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 20
        },
        "taxResidence": {
          "allOf": [
            {
              "$ref": "#/$defs/CountryEnum"
            }
          ],
          "nullable": true
        },
        "selfDeclaredPep": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "additionalInfo": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/CustomFieldValue"
          }
        }
      },
      "required": [
        "infoType",
        "name",
        "surname"
      ]
    },
    "IndividualDatasetEnum": {
      "enum": [
        "PEP_CURRENT",
        "PEP_FORMER",
        "PEP_LINKED",
        "SAN_CURRENT",
        "SAN_FORMER",
        "INS",
        "RRE",
        "DD",
        "POI",
        "REL",
        "GRI"
      ],
      "type": "string"
    },
    "IndividualSearchResult": {
      "type": "object",
      "properties": {
        "version": {
          "type": "integer",
          "description": "The version number can be used by clients to detect when a profile has changed."
        },
        "resourceId": {
          "type": "string",
          "description": "The resource ID can be used to retrieve the full profile or the PDF of the Individual."
        },
        "score": {
          "type": "integer",
          "description": "The match score of the profile."
        },
        "match": {
          "type": "string",
          "description": "The name of the profile that has been matched in the search."
        },
        "name": {
          "type": "string",
          "description": "The primary name of the profile."
        },
        "addresses": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/SearchAddress"
          },
          "description": "The list of profile addresses and nationalities."
        },
        "nationalities": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CountryEnum"
          },
          "description": "List of the individual's nationalities."
        },
        "datesOfBirth": {
          "type": "array",
          "items": {
            "type": "string",
            "description": "Date in either YYYY-MM-DD or YYYY-MM or YYYY ISO format."
          }
        },
        "gender": {
          "allOf": [
            {
              "$ref": "#/$defs/MainSexEnum"
            }
          ],
          "description": "Gender (for individuals), if known."
        },
        "profileImage": {
          "type": "string",
          "description": "The primary profile image."
        },
        "datasets": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/IndividualDatasetEnum"
          },
          "description": "The profile datasets\n * PEP_CURRENT - Only current PEPs\n * PEP_FORMER - Only former PEPs\n * PEP_LINKED - Only linked PEPs (PEP by Association)\n * SAN_CURRENT - Only current Sanctions\n * SAN_FORMER - Only former Sanctions\n * INS - Insolvency\n * RRE - Reputational Risk Exposure\n * DD - Disqualified Director\n * POI - Profile Of Interest\n * REL - Regulatory Enforcement List\n * GRI - Gambling Risk Intelligence.\n"
        },
        "currentSanBodyIds": {
          "type": "array",
          "items": {
            "type": "integer"
          },
          "description": "The list of IDs of all sanctioning bodies, that are currently sanctioning the given profile. The full list of supported sanction bodies and their IDs is provided by /dictionaries/sanction-bodies endpoint."
        },
        "formerSanBodyIds": {
          "type": "array",
          "items": {
            "type": "integer"
          },
          "description": "The list of IDs of all sanctioning bodies, that were sanctioning the given profile in the past, but do not currently sanction them. The full list of supported sanction bodies and their IDs is provided by /dictionaries/sanction-bodies endpoint."
        },
        "pepTier": {
          "allOf": [
            {
              "$ref": "#/$defs/PepTierEnum"
            }
          ],
          "description": "Defines the PEP tier of the individual. Where PEP Tier 1 indicates senior roles, PEP Tier 2 - middle-ranking, and PEP Tier 3 - junior officials."
        }
      },
      "required": [
        "addresses",
        "currentSanBodyIds",
        "datasets",
        "datesOfBirth",
        "formerSanBodyIds",
        "match",
        "name",
        "nationalities",
        "resourceId",
        "score"
      ]
    },
    "IntegerFieldValue": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string"
        },
        "type": {
          "$ref": "#/$defs/CustomFieldTypeEnum"
        },
        "value": {
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "required": [
        "title",
        "type"
      ]
    },
    "KybAnswersDisplay": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string"
        },
        "sections": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/QuestionnaireAnswersDisplaySections"
          }
        },
        "id": {
          "type": "string",
          "description": "A unique identifier for the questionnaire."
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "name",
        "sections",
        "title"
      ]
    },
    "KybAuditLog": {
      "type": "object",
      "properties": {
        "identifier": {
          "type": "string"
        },
        "text": {
          "type": "string"
        },
        "additionalText": {
          "type": "string"
        },
        "logType": {
          "$ref": "#/$defs/KybLogTypeEnum"
        },
        "logLevel": {
          "$ref": "#/$defs/LogLevelEnum"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "manager": {
          "$ref": "#/$defs/AuditLogManager"
        },
        "logId": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "identifier",
        "logId",
        "logLevel",
        "logType",
        "text",
        "timestamp"
      ]
    },
    "KybComments": {
      "type": "object",
      "properties": {
        "created": {
          "type": "string",
          "format": "date-time",
          "readOnly": true
        },
        "content": {
          "type": "string",
          "maxLength": 10000
        },
        "manager": {
          "allOf": [
            {
              "$ref": "#/$defs/ManagerAccount"
            }
          ],
          "readOnly": true,
          "nullable": true
        }
      },
      "required": [
        "content",
        "created",
        "manager"
      ]
    },
    "KybDataMatchEnum": {
      "enum": [
        "MATCH",
        "NO_MATCH",
        "PARTIAL_MATCH"
      ],
      "type": "string"
    },
    "KybDataMatchingList": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "readOnly": true
        },
        "companyComparison": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CompanyComparisonDataMatching"
          }
        },
        "created": {
          "type": "string",
          "format": "date-time",
          "readOnly": true
        },
        "reportId": {
          "type": "string",
          "maxLength": 36
        },
        "reportType": {
          "$ref": "#/$defs/ReportTypeEnum"
        }
      },
      "required": [
        "companyComparison",
        "created",
        "id",
        "reportId",
        "reportType"
      ]
    },
    "KybDocument": {
      "type": "object",
      "properties": {
        "created": {
          "type": "string",
          "format": "date-time",
          "readOnly": true
        },
        "type": {
          "$ref": "#/$defs/KybDocumentTypeEnum"
        },
        "file": {
          "type": "string",
          "format": "uri",
          "readOnly": true,
          "description": "Base64 encoded document file. Can be: `jpeg`, `jpg`, `png`, `gif`, `webp`, `heic`, `heif`, `pdf` files."
        }
      },
      "required": [
        "created",
        "file",
        "type"
      ]
    },
    "KybDocumentTypeEnum": {
      "enum": [
        "INCORPORATION_CERT",
        "DIRECTOR_CERT",
        "SHAREHOLDER_CERT",
        "UBO_CERT",
        "INCORPORATION_ARTICLES",
        "SHAREHOLDER_REGISTRY",
        "DIRECTORS_REGISTRY",
        "STATE_REGISTRY",
        "UBO_REGISTRY",
        "OWNERSHIP_STRUCTURE",
        "INCUMBENCY_CERT",
        "TRUST_AGREEMENT",
        "INFORMATION_STATEMENT",
        "GOOD_STANDING_CERT",
        "PROOF_OF_DOMAIN",
        "PROOF_OF_ADDRESS",
        "SOURCE_OF_FUNDS",
        "BANK_STATEMENT",
        "INVOICE",
        "ONLINE_PRESENCE",
        "DIRECTOR_ONLINE_PRESENCE",
        "SHAREHOLDER_ONLINE_PRESENCE",
        "WEBSITE_OVERVIEW",
        "E_SIGNATURE_CERT",
        "ANNUAL_REPORT",
        "NAME_CHANGE_PROOF",
        "TRADING_STATUS_PROOF",
        "ORG_CHART",
        "COMPANY_ADVERSE_MEDIA",
        "INDIVIDUAL_ADVERSE_MEDIA",
        "EMAIL_CHECK",
        "SOURCE_OF_WEALTH",
        "OTHER"
      ],
      "type": "string"
    },
    "KybLogTypeEnum": {
      "enum": [
        "AUTOMATION",
        "CLIENT",
        "DEFAULT",
        "PARTNER",
        "SYSTEM"
      ],
      "type": "string"
    },
    "KybStatusEnum": {
      "enum": [
        "PENDING",
        "PROCESSING",
        "NEED_TO_PROCESS",
        "NEED_TO_REVIEW",
        "COMPLETED"
      ],
      "type": "string"
    },
    "LogLevelEnum": {
      "enum": [
        "DEBUG",
        "INFO",
        "STEP",
        "ACTION",
        "WARNING",
        "FE_ERROR",
        "ERROR",
        "CRITICAL",
        "NOT_SET"
      ],
      "type": "string"
    },
    "MainSexEnum": {
      "enum": [
        "MALE",
        "FEMALE"
      ],
      "type": "string"
    },
    "ManagerAccount": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "maxLength": 100
        },
        "surname": {
          "type": "string",
          "maxLength": 100
        },
        "email": {
          "type": "string",
          "format": "email",
          "maxLength": 254
        }
      },
      "required": [
        "email",
        "id",
        "name",
        "surname"
      ]
    },
    "MonitoringAlertTypeEnum": {
      "enum": [
        "ALERT",
        "DECLINED",
        "ACCEPTED",
        "PENDING",
        "STATUS"
      ],
      "type": "string"
    },
    "MonitoringStatusEnum": {
      "enum": [
        "ACTIVE",
        "STOPPED",
        "PENDING",
        "ALERT"
      ],
      "type": "string"
    },
    "PepTierEnum": {
      "enum": [
        "PEP_TIER_1",
        "PEP_TIER_2",
        "PEP_TIER_3"
      ],
      "type": "string"
    },
    "PersonAmlCheck": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "readOnly": true
        },
        "clientId": {
          "type": "string",
          "description": "A unique string identifying a client on your side.",
          "maxLength": 100
        },
        "checkedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "readOnly": true
        },
        "created": {
          "type": "string",
          "format": "date-time",
          "readOnly": true
        },
        "userType": {
          "$ref": "#/$defs/UserMonitoringTypeEnum"
        },
        "input": {
          "$ref": "#/$defs/PersonAmlCheckInput"
        },
        "filter": {
          "$ref": "#/$defs/PersonAmlCheckFilter"
        },
        "amlCheck": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/IndividualSearchResult"
          },
          "readOnly": true,
          "description": "AML database search result."
        },
        "adverseMedia": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/AdverseMediaSearchResult"
          },
          "readOnly": true,
          "description": "Adverse media database search result."
        },
        "overallStatus": {
          "allOf": [
            {
              "$ref": "#/$defs/AmlCheckStatusEnum"
            }
          ],
          "readOnly": true
        },
        "monitoring": {
          "allOf": [
            {
              "$ref": "#/$defs/AmlCheckMonitoring"
            }
          ],
          "readOnly": true,
          "nullable": true
        }
      },
      "required": [
        "adverseMedia",
        "amlCheck",
        "checkedAt",
        "clientId",
        "created",
        "filter",
        "id",
        "input",
        "monitoring",
        "overallStatus",
        "userType"
      ]
    },
    "PersonAmlCheckFilter": {
      "type": "object",
      "properties": {
        "threshold": {
          "type": [
            "integer",
            "null"
          ],
          "maximum": 100,
          "minimum": 75,
          "default": 85
        },
        "datasets": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/PersonAmlCheckFilterDatasetsEnum"
          },
          "description": "Required when checking `AML_CHECK` service."
        },
        "sanctionBodies": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "integer",
            "maximum": 80,
            "minimum": 1
          },
          "description": "When searching `SAN` dataset, specify the values of sanctioning bodies that should be included when screening `SAN` dataset. The full list of supported sanction bodies and their values are provided by the API info endpoint. If none sanction bodies are provided the system will search sanctions issued by any sanctioning body."
        },
        "dateOfBirthMatching": {
          "allOf": [
            {
              "$ref": "#/$defs/DateOfBirthMatchingEnum"
            }
          ],
          "nullable": true,
          "default": "EXACT"
        },
        "pepTiers": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/PepTierEnum"
          }
        }
      }
    },
    "PersonAmlCheckFilterDatasetsEnum": {
      "enum": [
        "PEP_CURRENT",
        "PEP_FORMER",
        "PEP_LINKED",
        "SAN_CURRENT",
        "SAN_FORMER",
        "INS",
        "RRE",
        "DD",
        "POI",
        "REL"
      ],
      "type": "string"
    },
    "PersonAmlCheckInput": {
      "type": "object",
      "properties": {
        "fullName": {
          "type": "string",
          "maxLength": 200
        },
        "nationality": {
          "allOf": [
            {
              "$ref": "#/$defs/CountryEnum"
            }
          ],
          "nullable": true
        },
        "dateOfBirth": {
          "type": [
            "string",
            "null"
          ],
          "format": "date"
        },
        "sex": {
          "allOf": [
            {
              "$ref": "#/$defs/MainSexEnum"
            }
          ],
          "nullable": true
        }
      },
      "required": [
        "fullName"
      ]
    },
    "QuestionnaireAnswersDisplayQuestions": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "type": {
          "$ref": "#/$defs/TypeB9cEnum"
        },
        "value": {
          "oneOf": [
            {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            {
              "type": "string"
            },
            {
              "type": "boolean"
            }
          ],
          "nullable": true,
          "readOnly": true
        }
      },
      "required": [
        "key",
        "title",
        "type",
        "value"
      ]
    },
    "QuestionnaireAnswersDisplaySections": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string"
        },
        "questions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/QuestionnaireAnswersDisplayQuestions"
          }
        }
      },
      "required": [
        "questions",
        "title"
      ]
    },
    "ReportTypeEnum": {
      "enum": [
        "KYB_DOCUMENT",
        "CREDIT_BUREAU",
        "GOV_REGISTERS",
        "GOV_REGISTERS_FILINGS",
        "SOS_REPORT",
        "SOLE_PROPRIETOR_REPORT",
        "COMPANY_AI_REPORT"
      ],
      "type": "string"
    },
    "RiskAssessmentSummary": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "readOnly": true
        },
        "riskScore": {
          "type": [
            "integer",
            "null"
          ],
          "maximum": 100,
          "minimum": 0
        },
        "riskLevel": {
          "allOf": [
            {
              "$ref": "#/$defs/RiskLevelEnum"
            }
          ],
          "nullable": true
        },
        "comment": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "id"
      ]
    },
    "RiskLevelEnum": {
      "enum": [
        "VERY_LOW",
        "LOW",
        "MEDIUM",
        "HIGH",
        "VERY_HIGH",
        "NOT_CHECKED"
      ],
      "type": "string"
    },
    "SearchAddress": {
      "type": "object",
      "properties": {
        "geography": {
          "type": "string",
          "description": "An upper-case two-letter ISO-3166-2 code of a country or dependent territory of the profile address or profile nationality."
        },
        "city": {
          "type": "string",
          "description": "The city name of the profile address."
        }
      },
      "required": [
        "geography"
      ]
    },
    "SelectFieldValue": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string"
        },
        "type": {
          "$ref": "#/$defs/CustomFieldTypeEnum"
        },
        "value": {
          "type": [
            "string",
            "null"
          ],
          "pattern": "^[\\w_*-]+$",
          "maxLength": 32
        }
      },
      "required": [
        "title",
        "type"
      ]
    },
    "SelectMultiFieldValue": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string"
        },
        "type": {
          "$ref": "#/$defs/CustomFieldTypeEnum"
        },
        "value": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string",
            "pattern": "^[\\w_*-]+$",
            "maxLength": 32
          }
        }
      },
      "required": [
        "title",
        "type"
      ]
    },
    "SocialMediaProfiles": {
      "type": "object",
      "properties": {
        "link": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "link",
        "name"
      ]
    },
    "SosEntityTypeEnum": {
      "enum": [
        "CORPORATION",
        "LLC",
        "PARTNERSHIP",
        "NON_PROFIT",
        "TRUST",
        "SOLE_PROPRIETORSHIP"
      ],
      "type": "string"
    },
    "TextFieldValue": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string"
        },
        "type": {
          "$ref": "#/$defs/CustomFieldTypeEnum"
        },
        "value": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 100
        }
      },
      "required": [
        "title",
        "type"
      ]
    },
    "TypeB9cEnum": {
      "enum": [
        "CHECKBOX",
        "COLOR",
        "COUNTRY",
        "COUNTRY_MULTI",
        "DATE",
        "DATETIME",
        "EMAIL",
        "FILE",
        "FILE_MULTI",
        "FLOAT",
        "LIST",
        "INTEGER",
        "PASSWORD",
        "RADIO",
        "SELECT",
        "SELECT_MULTI",
        "TEL",
        "TEXT",
        "TEXT_AREA",
        "TIME",
        "URL"
      ],
      "type": "string"
    },
    "UserMonitoringTypeEnum": {
      "enum": [
        "COMPANY",
        "PERSON"
      ],
      "type": "string"
    },
    "WebsiteAudit": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "readOnly": true
        },
        "created": {
          "type": "string",
          "format": "date-time",
          "readOnly": true
        },
        "url": {
          "type": "string",
          "format": "uri",
          "maxLength": 200
        },
        "riskLevel": {
          "$ref": "#/$defs/RiskLevelEnum"
        },
        "trustScore": {
          "type": "integer",
          "maximum": 100,
          "minimum": 0
        },
        "blacklistScore": {
          "type": "integer",
          "maximum": 100,
          "minimum": -100
        },
        "internalAuditScore": {
          "type": "integer",
          "maximum": 100,
          "minimum": 0
        },
        "popularityScore": {
          "type": "integer",
          "maximum": 100,
          "minimum": 0
        },
        "domainCreatedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "websiteTitle": {
          "type": [
            "string",
            "null"
          ]
        },
        "websiteDescription": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "created",
        "id",
        "riskLevel",
        "url"
      ]
    }
  }
}