{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dealroom/json-schema/dealroom-entity-transactions-response-schema.json",
  "title": "EntityTransactionsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dealroom-companies-api-openapi.yml#/components/schemas/EntityTransactionsResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EntityTransactionItem"
      }
    },
    "page": {
      "type": "object",
      "properties": {
        "total": {
          "type": [
            "number",
            "null"
          ]
        },
        "limit": {
          "type": "number"
        },
        "offset": {
          "type": "number"
        },
        "next_cursor": {
          "type": [
            "string",
            "null"
          ],
          "description": "Opaque cursor for the next page. Null when no further pages exist."
        },
        "prev_cursor": {
          "type": [
            "string",
            "null"
          ],
          "description": "Opaque cursor for the previous page. Null when on the first page."
        }
      },
      "required": [
        "total",
        "limit",
        "offset",
        "next_cursor",
        "prev_cursor"
      ]
    },
    "currency": {
      "type": "string"
    }
  },
  "required": [
    "data",
    "page",
    "currency"
  ],
  "$defs": {
    "EntityRef": {
      "type": "object",
      "properties": {
        "uuid": {
          "type": "string",
          "description": "Stable UUID of the entity."
        },
        "type": {
          "$ref": "#/$defs/EntityType"
        },
        "subtype": {
          "anyOf": [
            {
              "$ref": "#/$defs/OrganizationSubtype"
            },
            {
              "type": "null"
            }
          ],
          "description": "Organization subtype; always null for a person."
        },
        "name": {
          "type": "string",
          "description": "Display name."
        },
        "image": {
          "type": [
            "string",
            "null"
          ],
          "description": "Absolute image URL; null when none."
        },
        "dealroom_url": {
          "type": [
            "string",
            "null"
          ],
          "description": "Canonical profile URL on app.dealroom.co."
        }
      },
      "required": [
        "uuid",
        "type",
        "subtype",
        "name",
        "image",
        "dealroom_url"
      ],
      "description": "The identity of an entity embedded in another entity's response. Closed: richer detail lives on the sub-resource, where tier redaction can reach it."
    },
    "EntityTransactionItem": {
      "type": "object",
      "properties": {
        "id": {
          "type": "number"
        },
        "amount": {
          "type": [
            "number",
            "null"
          ]
        },
        "announced_date": {
          "anyOf": [
            {
              "$ref": "#/$defs/PartialDate"
            },
            {
              "type": "null"
            }
          ]
        },
        "round_type": {
          "type": [
            "string",
            "null"
          ]
        },
        "standardized_round": {
          "anyOf": [
            {
              "$ref": "#/$defs/StandardizedRound"
            },
            {
              "type": "null"
            }
          ]
        },
        "valuation": {
          "type": [
            "number",
            "null"
          ]
        },
        "is_verified": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "is_vc_round": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "is_exit": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "investors": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "object",
            "properties": {
              "is_lead": {
                "type": [
                  "boolean",
                  "null"
                ],
                "description": "Whether this investor led the round, when known."
              },
              "investor": {
                "$ref": "#/$defs/EntityRef"
              }
            },
            "required": [
              "is_lead",
              "investor"
            ]
          }
        },
        "source_url": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "id",
        "amount",
        "announced_date",
        "round_type",
        "standardized_round",
        "valuation",
        "is_verified",
        "is_vc_round",
        "is_exit",
        "investors",
        "source_url"
      ]
    },
    "EntityType": {
      "type": "string",
      "enum": [
        "organization",
        "person"
      ],
      "description": "Top-level entity type: `organization` or `person`."
    },
    "OrganizationSubtype": {
      "type": "string",
      "enum": [
        "company",
        "university",
        "gov_ngo",
        "investor"
      ],
      "description": "The kind of organization: company, university, gov_ngo or investor."
    },
    "PartialDate": {
      "type": "string",
      "pattern": "^\\d{4}(-\\d{2}(-\\d{2})?)?$",
      "description": "A date at the precision the source knows it. The value's length is its precision: `YYYY` when only the year is known, `YYYY-MM` for the month, `YYYY-MM-DD` for the day. Never padded: an unknown month or day shortens the value rather than defaulting to `01`. Deliberately not `format: date`, which requires a full day."
    },
    "StandardizedRound": {
      "type": "string",
      "enum": [
        "Pre-Seed",
        "Seed",
        "Series A",
        "Series B",
        "Series C",
        "Series D",
        "Series E",
        "Series F+",
        "Growth",
        "Bridge",
        "Debt",
        "Grant",
        "IPO",
        "Secondary",
        "Other"
      ],
      "description": "Normalised round stage, the value the `standardized_round` filter matches."
    }
  }
}