{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agendaforge-app/json-schema/agendaforge-app-sponsor-schema.json",
  "title": "Sponsor",
  "description": "Emitted identically by webhook deliveries, trigger samples, and the create response.",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agendaforge-app-openapi.json#/components/schemas/Sponsor",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "eventId": {
      "type": "string"
    },
    "orgId": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "tierId": {
      "type": [
        "string",
        "null"
      ]
    },
    "tierName": {
      "type": [
        "string",
        "null"
      ]
    },
    "website": {
      "type": [
        "string",
        "null"
      ]
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "logoUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "logoLightUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "hasBooth": {
      "type": "boolean"
    },
    "assignedPortal": {
      "type": [
        "string",
        "null"
      ]
    },
    "primaryContactId": {
      "type": [
        "string",
        "null"
      ]
    },
    "primaryContact": {
      "oneOf": [
        {
          "$ref": "#/$defs/ContactSummary"
        },
        {
          "type": "null"
        }
      ]
    },
    "customFields": {
      "type": [
        "object",
        "null"
      ]
    },
    "submissionId": {
      "type": [
        "string",
        "null"
      ]
    },
    "createdAt": {
      "type": "string",
      "description": "ISO-8601 UTC timestamp."
    }
  },
  "$defs": {
    "ContactSummary": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "firstName": {
          "type": "string"
        },
        "lastName": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "phone": {
          "type": [
            "string",
            "null"
          ]
        },
        "company": {
          "type": [
            "string",
            "null"
          ]
        },
        "jobTitle": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    }
  }
}