{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.acquiry.com/api/hidden-acquisitions/v1/schema.json",
  "title": "Hidden Acquisitions Index: deals.json",
  "type": "object",
  "required": [
    "deals"
  ],
  "properties": {
    "deals": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "deal_id",
          "acquirer",
          "target",
          "announce_date",
          "deal_type",
          "index_tier",
          "sources"
        ],
        "properties": {
          "deal_id": {
            "type": "string",
            "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$"
          },
          "acquirer": {
            "type": "string"
          },
          "target": {
            "type": "string"
          },
          "announce_date": {
            "type": "string",
            "pattern": "^\\d{4}(-\\d{2}(-\\d{2})?)?$"
          },
          "date_precision": {
            "enum": [
              "day",
              "month",
              "year"
            ]
          },
          "date_basis": {
            "type": "string"
          },
          "deal_type": {
            "enum": [
              "LICENCE_AND_HIRE",
              "TEAM_ONLY_HIRE",
              "MINORITY_STAKE_CONTROL",
              "COMPUTE_FOR_EQUITY",
              "OTHER_HYBRID"
            ]
          },
          "deal_type_previous": {
            "enum": [
              "LICENCE_AND_HIRE",
              "TEAM_ONLY_HIRE",
              "MINORITY_STAKE_CONTROL",
              "COMPUTE_FOR_EQUITY",
              "OTHER_HYBRID"
            ]
          },
          "index_tier": {
            "enum": [
              "core",
              "extended",
              "hold"
            ]
          },
          "tier_previous": {
            "enum": [
              "core",
              "extended",
              "hold"
            ]
          },
          "tier_reason": {
            "type": "string"
          },
          "licence_included": {
            "enum": [
              "yes",
              "no",
              "no (stated)",
              "non-exclusive",
              "not disclosed",
              "not applicable"
            ]
          },
          "licence_exclusive": {
            "enum": [
              "yes",
              "no",
              "no (stated)",
              "non-exclusive",
              "not disclosed",
              "not applicable"
            ]
          },
          "licence_exclusive_confirmed": {
            "enum": [
              "yes",
              "no",
              "no (stated)",
              "non-exclusive",
              "not disclosed",
              "not applicable"
            ]
          },
          "equity_stake_pct": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0
              },
              {
                "type": "string"
              }
            ]
          },
          "disclosed_value_usd": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0
              },
              {
                "const": "not disclosed"
              }
            ]
          },
          "target_last_valuation_usd": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0
              },
              {
                "type": "string"
              }
            ]
          },
          "remainder_valuation_after_usd": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0
              },
              {
                "type": "string"
              }
            ]
          },
          "remainder_valuation_after_date": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^\\d{4}(-\\d{2}(-\\d{2})?)?$"
              },
              {
                "enum": [
                  "not disclosed",
                  "n/a",
                  ""
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "value_basis": {
            "type": "string"
          },
          "value_source_grade": {
            "enum": [
              "A",
              "B",
              "not disclosed",
              ""
            ]
          },
          "founders_moved": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "name"
              ],
              "properties": {
                "name": {
                  "type": "string"
                },
                "role_at_acquirer": {
                  "type": "string"
                },
                "person_type": {
                  "type": "string"
                }
              }
            }
          },
          "voting_board_seat": {
            "enum": [
              "yes",
              "no",
              "no (stated)",
              "non-exclusive",
              "not disclosed",
              "not applicable"
            ]
          },
          "board_observer_or_committee": {
            "enum": [
              "yes",
              "no",
              "no (stated)",
              "non-exclusive",
              "not disclosed",
              "not applicable"
            ]
          },
          "veto_or_reserved_matters": {
            "enum": [
              "yes",
              "no",
              "no (stated)",
              "non-exclusive",
              "not disclosed",
              "not applicable"
            ]
          },
          "exclusivity": {
            "enum": [
              "yes",
              "no",
              "no (stated)",
              "non-exclusive",
              "not disclosed",
              "not applicable"
            ]
          },
          "right_of_first_refusal": {
            "enum": [
              "yes",
              "no",
              "no (stated)",
              "non-exclusive",
              "not disclosed",
              "not applicable"
            ]
          },
          "contractual_consultation_rights": {
            "enum": [
              "yes",
              "no",
              "no (stated)",
              "non-exclusive",
              "not disclosed",
              "not applicable"
            ]
          },
          "cloud_compute_spending_commitment": {
            "type": "string"
          },
          "target_status_after": {
            "type": "string"
          },
          "status_date": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^\\d{4}(-\\d{2}(-\\d{2})?)?$"
              },
              {
                "enum": [
                  "not disclosed",
                  "n/a",
                  ""
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "remainder_6m_observed_date": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^\\d{4}(-\\d{2}(-\\d{2})?)?$"
              },
              {
                "enum": [
                  "not disclosed",
                  "n/a",
                  ""
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "remainder_12m_observed_date": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^\\d{4}(-\\d{2}(-\\d{2})?)?$"
              },
              {
                "enum": [
                  "not disclosed",
                  "n/a",
                  ""
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "remainder_24m_observed_date": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^\\d{4}(-\\d{2}(-\\d{2})?)?$"
              },
              {
                "enum": [
                  "not disclosed",
                  "n/a",
                  ""
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "regulatory_events": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "event"
              ],
              "properties": {
                "date": {
                  "anyOf": [
                    {
                      "type": "string",
                      "pattern": "^\\d{4}(-\\d{2}(-\\d{2})?)?$"
                    },
                    {
                      "enum": [
                        "not disclosed",
                        "n/a",
                        ""
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "body": {
                  "type": "string"
                },
                "event": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                }
              }
            }
          },
          "threshold_year": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "money_components": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "original_amount",
                "currency",
                "money_type",
                "url",
                "quote_exact"
              ],
              "properties": {
                "original_amount": {
                  "type": "string"
                },
                "currency": {
                  "type": "string"
                },
                "money_type": {
                  "type": "string"
                },
                "tranche_or_cumulative": {
                  "type": "string"
                },
                "url": {
                  "type": "string",
                  "pattern": "^https?://"
                },
                "quote_exact": {
                  "type": "string"
                }
              }
            }
          },
          "observations": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "field",
                "value",
                "url"
              ],
              "properties": {
                "field": {
                  "type": "string"
                },
                "value": {
                  "type": "string"
                },
                "value_type": {
                  "type": "string"
                },
                "as_of": {
                  "anyOf": [
                    {
                      "type": "string",
                      "pattern": "^\\d{4}(-\\d{2}(-\\d{2})?)?$"
                    },
                    {
                      "enum": [
                        "not disclosed",
                        "n/a",
                        ""
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "url": {
                  "type": "string",
                  "pattern": "^https?://"
                }
              }
            }
          },
          "field_notes": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              },
              {
                "type": "array",
                "maxItems": 0
              }
            ]
          },
          "conflicts": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "object",
                  "required": [
                    "field",
                    "versions",
                    "resolution"
                  ],
                  "properties": {
                    "versions": {
                      "type": "array",
                      "minItems": 1,
                      "items": {
                        "type": "object",
                        "required": [
                          "version_label",
                          "value"
                        ]
                      }
                    }
                  }
                },
                {
                  "type": "object",
                  "required": [
                    "field",
                    "value_a",
                    "source_a",
                    "value_b",
                    "source_b",
                    "resolution"
                  ]
                }
              ]
            }
          },
          "headline_check": {
            "type": "object",
            "additionalProperties": {
              "enum": [
                "primary",
                "two_source",
                "self_dating_report",
                "single",
                "none"
              ]
            }
          },
          "advisers": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "firm"
              ],
              "properties": {
                "firm": {
                  "type": "string"
                },
                "role": {
                  "type": "string"
                },
                "side": {
                  "type": "string"
                },
                "source_url": {
                  "type": "string"
                }
              }
            }
          },
          "sources": {
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "object",
              "required": [
                "n",
                "publisher",
                "grade",
                "url",
                "quote",
                "supports"
              ],
              "properties": {
                "n": {
                  "type": "integer",
                  "minimum": 1
                },
                "publisher": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "date": {
                  "anyOf": [
                    {
                      "type": "string",
                      "pattern": "^\\d{4}(-\\d{2}(-\\d{2})?)?$"
                    },
                    {
                      "enum": [
                        "not disclosed",
                        "n/a",
                        ""
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "grade": {
                  "enum": [
                    "A",
                    "B"
                  ]
                },
                "url": {
                  "type": "string",
                  "pattern": "^https?://"
                },
                "quote": {
                  "type": "string",
                  "minLength": 1
                },
                "supports": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "archive_url": {
                  "anyOf": [
                    {
                      "type": "string",
                      "pattern": "^https?://"
                    },
                    {
                      "enum": [
                        "",
                        "none"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              }
            }
          }
        }
      }
    }
  }
}
