{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pitchbook/json-schema/pitchbook-bulk-result-dto-service-provider-bio-dto-schema.json",
  "title": "BulkResultDtoServiceProviderBioDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pitchbook-service-providers-api-openapi.yml#/components/schemas/BulkResultDtoServiceProviderBioDto",
  "type": "object",
  "properties": {
    "stats": {
      "$ref": "#/$defs/BulkStatsDto"
    },
    "matched": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ServiceProviderBioDto"
      }
    },
    "noData": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/NoDataItemDto"
      }
    },
    "unmatched": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FailedItemDto"
      }
    },
    "duplicates": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DuplicatedItemDto"
      }
    }
  },
  "$defs": {
    "BulkStatsDto": {
      "type": "object",
      "properties": {
        "total": {
          "type": "integer",
          "format": "int32"
        },
        "matched": {
          "type": "integer",
          "format": "int32"
        },
        "noData": {
          "type": "integer",
          "format": "int32"
        },
        "unmatched": {
          "type": "integer",
          "format": "int32"
        },
        "duplicates": {
          "type": "integer",
          "format": "int32"
        }
      }
    },
    "DictionaryDto": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "description": {
          "type": "string"
        }
      }
    },
    "DuplicatedItemDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "occurrence": {
          "type": "integer",
          "format": "int32"
        }
      }
    },
    "EntityNameDto": {
      "type": "object",
      "properties": {
        "formalName": {
          "type": "string"
        },
        "alsoKnownAs": {
          "type": "string"
        },
        "legalName": {
          "type": "string"
        },
        "formerlyKnownAs": {
          "type": "string"
        }
      }
    },
    "EntityTypeDto": {
      "type": "object",
      "properties": {
        "type": {
          "$ref": "#/$defs/DictionaryDto"
        },
        "primary": {
          "type": "boolean"
        }
      }
    },
    "FailedItemDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "reason": {
          "type": "string",
          "enum": [
            "400 BAD_REQUEST",
            "401 UNAUTHORIZED",
            "402 PAYMENT_REQUIRED",
            "403 FORBIDDEN",
            "404 NOT_FOUND",
            "405 METHOD_NOT_ALLOWED",
            "415 UNSUPPORTED_MEDIA_TYPE",
            "429 TOO_MANY_REQUESTS",
            "500 INTERNAL_SERVER_ERROR",
            "503 SERVICE_UNAVAILABLE"
          ]
        },
        "message": {
          "type": "string"
        }
      }
    },
    "HqLocationDto": {
      "type": "object",
      "properties": {
        "city": {
          "type": "string"
        },
        "stateProvince": {
          "type": "string"
        },
        "postCode": {
          "type": "string"
        },
        "country": {
          "type": "string"
        }
      }
    },
    "NoDataItemDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        }
      }
    },
    "ServiceProviderBioDto": {
      "type": "object",
      "properties": {
        "serviceProviderId": {
          "type": "string"
        },
        "serviceProviderName": {
          "$ref": "#/$defs/EntityNameDto"
        },
        "serviceProviderTypes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EntityTypeDto"
          }
        },
        "hqLocation": {
          "$ref": "#/$defs/HqLocationDto"
        },
        "description": {
          "type": "string"
        },
        "website": {
          "type": "string"
        },
        "employees": {
          "type": "integer",
          "format": "int32"
        },
        "servicedCompanies": {
          "type": "integer",
          "format": "int32"
        },
        "servicedDeals": {
          "type": "integer",
          "format": "int32"
        },
        "servicedInvestors": {
          "type": "integer",
          "format": "int32"
        },
        "servicedFunds": {
          "type": "integer",
          "format": "int32"
        },
        "servicedLimitedPartners": {
          "type": "integer",
          "format": "int32"
        }
      }
    }
  }
}