{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/xverum-com/json-schema/xverum-com-partner-search-response-schema.json",
  "title": "PartnerSearchResponse",
  "description": "A page of people search results.",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/xverum-com-openapi.json#/components/schemas/PartnerSearchResponse",
  "properties": {
    "total_count": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Total Count",
      "description": "Estimated total matches"
    },
    "page": {
      "type": "integer",
      "minimum": 1.0,
      "title": "Page",
      "description": "1-based page number"
    },
    "page_size": {
      "type": "integer",
      "maximum": 100.0,
      "minimum": 1.0,
      "title": "Page Size",
      "description": "The requested page size, echoed; anchors the result offset and is not reduced by the balance (only the number of results returned is)."
    },
    "credits_used": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Credits Used",
      "description": "Billable credits reported for this call (1 per result)"
    },
    "credits_remaining": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Credits Remaining",
      "description": "Credits remaining on the account after this call"
    },
    "request_id": {
      "type": "string",
      "title": "Request Id",
      "description": "Correlation id (also in X-Request-Id)"
    },
    "usage_notice": {
      "anyOf": [
        {
          "$ref": "#/$defs/PartnerUsageNotice"
        },
        {
          "type": "null"
        }
      ],
      "description": "Credit-usage lifecycle notice for the account (approaching or at the plan limit); `null` when no notice is due. Account-scoped, shown at most once per billing cycle."
    },
    "result_type": {
      "type": "string",
      "const": "people",
      "title": "Result Type",
      "description": "Discriminator: this page contains people",
      "default": "people"
    },
    "results": {
      "items": {
        "$ref": "#/$defs/PartnerProfileCard"
      },
      "type": "array",
      "title": "Results",
      "description": "Matched profiles for this page"
    },
    "message": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Message",
      "description": "Human-readable guidance when no profiles match; `null` when the page has results. Display it to the user, but do not parse it."
    }
  },
  "type": "object",
  "required": [
    "total_count",
    "page",
    "page_size",
    "credits_used",
    "credits_remaining",
    "request_id"
  ],
  "$defs": {
    "PartnerProfileCard": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id",
          "description": "Opaque profile id; pass to `GET /v1/profiles/{id}`"
        },
        "social_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Social Url",
          "description": "Person social URL; `null` when no public profile URL is on record for the person"
        },
        "full_name": {
          "type": "string",
          "title": "Full Name",
          "description": "Full name"
        },
        "headline": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Headline",
          "description": "Person social headline or summary; `null` when the person has not written one"
        },
        "location": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Location",
          "description": "Location string; `null` when no location is on record for the person"
        },
        "company_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Company Name",
          "description": "Most recent employer; `null` when no current employer is held for the person"
        },
        "position": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Position",
          "description": "Most recent job title; `null` when no current role is held for the person"
        },
        "industry": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Industry",
          "description": "Industry vertical, taken from the person's current employer; `null` when that employer, or its industry, is not known"
        },
        "evidence_summary": {
          "type": "string",
          "title": "Evidence Summary",
          "description": "How recently this profile was verified, from its refresh date: 'Verified last X days' (X = 30, 60, 90, 120, or over 120).",
          "default": "Verified over 120 days ago"
        }
      },
      "type": "object",
      "required": [
        "id",
        "full_name"
      ],
      "title": "PartnerProfileCard",
      "description": "A single person returned in search results."
    },
    "PartnerUsageNotice": {
      "properties": {
        "message": {
          "type": "string",
          "title": "Message",
          "description": "Rendered notice text to show the user"
        },
        "approve_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Approve Url",
          "description": "Approve extra-usage link; null if none"
        },
        "upgrade_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Upgrade Url",
          "description": "Upgrade-plan link; null if none"
        }
      },
      "type": "object",
      "required": [
        "message"
      ],
      "title": "PartnerUsageNotice",
      "description": "A credit-usage lifecycle notice for the account (80% / limit reached).\n\nBest-effort and account-scoped, not result-scoped: it rides on the top level\nof a successful response and is shown at most once per billing cycle. The\ntext is rendered upstream by billing (every placeholder already filled);\n`approve_url` / `upgrade_url` are the per-user action links, `null` when the\nnotice has no call to action."
    }
  }
}