[
  {
    "apiName": "HubSpotOwnerBindingException__c",
    "label": "HubSpot Owner Binding Exception",
    "pluralLabel": "HubSpot Owner Binding Exceptions",
    "tableType": "custom_object",
    "category": "crm",
    "sharingModel": "ReadWrite",
    "enableHierarchySharing": false,
    "description": "Operational exceptions raised while reconciling HubSpot owner bindings.",
    "fields": [
      {
        "apiName": "Binding__c",
        "label": "Binding",
        "type": "reference",
        "referenceTo": [
          "HubSpotOwnerBinding__c"
        ],
        "relationshipName": "Binding__r",
        "childRelationshipName": "HubSpotOwnerBindingExceptions",
        "deleteConstraint": "SetNull"
      },
      {
        "apiName": "SourceObject__c",
        "label": "Source Object",
        "type": "string"
      },
      {
        "apiName": "SourceRecordId__c",
        "label": "Source Record Id",
        "type": "string"
      },
      {
        "apiName": "HubSpotOwnerId__c",
        "label": "HubSpot Owner Id",
        "type": "string"
      },
      {
        "apiName": "CRMPrincipalId__c",
        "label": "CRM Principal Id",
        "type": "string"
      },
      {
        "apiName": "ExceptionType__c",
        "label": "Exception Type",
        "type": "picklist",
        "options": [
          {
            "value": "MissingBinding",
            "label": "MissingBinding"
          },
          {
            "value": "AmbiguousBinding",
            "label": "AmbiguousBinding"
          },
          {
            "value": "UnsupportedOwnerType",
            "label": "UnsupportedOwnerType"
          },
          {
            "value": "InactivePrincipal",
            "label": "InactivePrincipal"
          },
          {
            "value": "LookupFailed",
            "label": "LookupFailed"
          }
        ]
      },
      {
        "apiName": "Status__c",
        "label": "Status",
        "type": "picklist",
        "options": [
          {
            "value": "open",
            "label": "open"
          },
          {
            "value": "ignored",
            "label": "ignored"
          },
          {
            "value": "resolved",
            "label": "resolved"
          }
        ]
      },
      {
        "apiName": "Message__c",
        "label": "Message",
        "type": "textarea"
      },
      {
        "apiName": "FirstSeenAt__c",
        "label": "First Seen At",
        "type": "datetime"
      },
      {
        "apiName": "LastSeenAt__c",
        "label": "Last Seen At",
        "type": "datetime"
      },
      {
        "apiName": "RetryCount__c",
        "label": "Retry Count",
        "type": "double"
      }
    ]
  }
]
