{
  "@context": {
    "@version": 1.1,
    "hubspot": "https://developers.hubspot.com/docs/api/schemas/",
    "schema": "https://schema.org/",
    "dcterms": "http://purl.org/dc/terms/",
    "xsd": "http://www.w3.org/2001/XMLSchema#",
    "rdfs": "http://www.w3.org/2000/01/rdf-schema#",

    "Contact": {
      "@id": "hubspot:Contact",
      "@type": "rdfs:Class",
      "rdfs:subClassOf": { "@id": "schema:Person" },
      "rdfs:label": "HubSpot Contact",
      "rdfs:comment": "A contact record in HubSpot CRM representing an individual person."
    },
    "Company": {
      "@id": "hubspot:Company",
      "@type": "rdfs:Class",
      "rdfs:subClassOf": { "@id": "schema:Organization" },
      "rdfs:label": "HubSpot Company",
      "rdfs:comment": "A company record in HubSpot CRM representing a business or organization."
    },
    "Deal": {
      "@id": "hubspot:Deal",
      "@type": "rdfs:Class",
      "rdfs:label": "HubSpot Deal",
      "rdfs:comment": "A deal record in HubSpot CRM representing a sales opportunity."
    },
    "Ticket": {
      "@id": "hubspot:Ticket",
      "@type": "rdfs:Class",
      "rdfs:label": "HubSpot Ticket",
      "rdfs:comment": "A ticket record in HubSpot CRM representing a customer support request."
    },
    "Engagement": {
      "@id": "hubspot:Engagement",
      "@type": "rdfs:Class",
      "rdfs:label": "HubSpot Engagement",
      "rdfs:comment": "An engagement record in HubSpot CRM representing an activity such as a call, meeting, email, note, or task."
    },
    "WebhookEvent": {
      "@id": "hubspot:WebhookEvent",
      "@type": "rdfs:Class",
      "rdfs:label": "HubSpot Webhook Event",
      "rdfs:comment": "An event notification delivered via HubSpot webhooks when a CRM object or conversation changes."
    },

    "id": "@id",

    "email": {
      "@id": "schema:email",
      "@type": "xsd:string"
    },
    "firstName": {
      "@id": "schema:givenName",
      "@type": "xsd:string"
    },
    "lastname": {
      "@id": "schema:familyName",
      "@type": "xsd:string"
    },
    "phone": {
      "@id": "schema:telephone",
      "@type": "xsd:string"
    },
    "mobilephone": {
      "@id": "schema:telephone",
      "@type": "xsd:string"
    },
    "company": {
      "@id": "schema:worksFor",
      "@type": "xsd:string"
    },
    "website": {
      "@id": "schema:url",
      "@type": "xsd:anyURI"
    },
    "jobtitle": {
      "@id": "schema:jobTitle",
      "@type": "xsd:string"
    },
    "address": {
      "@id": "schema:streetAddress",
      "@type": "xsd:string"
    },
    "city": {
      "@id": "schema:addressLocality",
      "@type": "xsd:string"
    },
    "state": {
      "@id": "schema:addressRegion",
      "@type": "xsd:string"
    },
    "country": {
      "@id": "schema:addressCountry",
      "@type": "xsd:string"
    },
    "zip": {
      "@id": "schema:postalCode",
      "@type": "xsd:string"
    },

    "name": {
      "@id": "schema:name",
      "@type": "xsd:string"
    },
    "domain": {
      "@id": "schema:url",
      "@type": "xsd:anyURI"
    },
    "description": {
      "@id": "schema:description",
      "@type": "xsd:string"
    },
    "numberofemployees": {
      "@id": "schema:numberOfEmployees",
      "@type": "xsd:integer"
    },
    "annualrevenue": {
      "@id": "schema:revenue",
      "@type": "xsd:decimal"
    },

    "dealname": {
      "@id": "schema:name",
      "@type": "xsd:string"
    },
    "amount": {
      "@id": "hubspot:amount",
      "@type": "xsd:decimal"
    },
    "dealstage": {
      "@id": "hubspot:dealStage",
      "@type": "xsd:string"
    },
    "closedate": {
      "@id": "hubspot:closeDate",
      "@type": "xsd:date"
    },
    "pipeline": {
      "@id": "hubspot:pipeline",
      "@type": "xsd:string"
    },

    "subject": {
      "@id": "schema:name",
      "@type": "xsd:string"
    },
    "content": {
      "@id": "schema:description",
      "@type": "xsd:string"
    },
    "hs_ticket_priority": {
      "@id": "hubspot:ticketPriority",
      "@type": "xsd:string"
    },
    "hs_pipeline_stage": {
      "@id": "hubspot:pipelineStage",
      "@type": "xsd:string"
    },

    "type": {
      "@id": "hubspot:engagementType",
      "@type": "xsd:string"
    },
    "associations": {
      "@id": "hubspot:associations"
    },

    "createdAt": {
      "@id": "dcterms:created",
      "@type": "xsd:dateTime"
    },
    "updatedAt": {
      "@id": "dcterms:modified",
      "@type": "xsd:dateTime"
    },
    "archived": {
      "@id": "hubspot:archived",
      "@type": "xsd:boolean"
    },

    "eventId": {
      "@id": "@id"
    },
    "objectId": {
      "@id": "hubspot:objectId",
      "@type": "xsd:integer"
    },
    "portalId": {
      "@id": "hubspot:portalId",
      "@type": "xsd:integer"
    },
    "occurredAt": {
      "@id": "dcterms:date",
      "@type": "xsd:long"
    },
    "subscriptionType": {
      "@id": "hubspot:subscriptionType",
      "@type": "xsd:string"
    },
    "changeSource": {
      "@id": "hubspot:changeSource",
      "@type": "xsd:string"
    },
    "changeFlag": {
      "@id": "hubspot:changeFlag",
      "@type": "xsd:string"
    },
    "propertyName": {
      "@id": "hubspot:propertyName",
      "@type": "xsd:string"
    },
    "propertyValue": {
      "@id": "hubspot:propertyValue",
      "@type": "xsd:string"
    },
    "subscriptionId": {
      "@id": "hubspot:subscriptionId",
      "@type": "xsd:integer"
    },
    "appId": {
      "@id": "hubspot:appId",
      "@type": "xsd:integer"
    }
  }
}
