{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cm-com/json-schema/cm-com-cm-platform-channels-models-channel-types-facebook-api-facebook-connection-schema.json",
  "title": "CM.Platform.Channels.Models.ChannelTypes.Facebook.ApiFacebookConnection",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cm-com-facebook-api-openapi.yml#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.Facebook.ApiFacebookConnection",
  "required": [
    "id",
    "accountId",
    "type",
    "facebookConnectionId",
    "name",
    "isActive",
    "isPending",
    "isExpired",
    "createdOnUtc"
  ],
  "type": "object",
  "properties": {
    "id": {
      "format": "uuid",
      "type": "string"
    },
    "channelId": {
      "format": "uuid",
      "type": "string"
    },
    "accountId": {
      "format": "uuid",
      "type": "string"
    },
    "type": {
      "enum": [
        "PAGE"
      ],
      "type": "string"
    },
    "facebookConnectionId": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "facebookUrl": {
      "type": "string"
    },
    "isActive": {
      "type": "boolean"
    },
    "isPending": {
      "type": "boolean"
    },
    "isExpired": {
      "type": "boolean"
    },
    "fulfilledOnUtc": {
      "format": "date-time",
      "type": "string"
    },
    "createdOnUtc": {
      "format": "date-time",
      "type": "string"
    },
    "rejectedOnUtc": {
      "format": "date-time",
      "type": "string"
    },
    "cancelledOnUtc": {
      "format": "date-time",
      "type": "string"
    },
    "deletedOnUtc": {
      "format": "date-time",
      "type": "string"
    },
    "entityStatus": {
      "enum": [
        "ACTIVE",
        "PENDING",
        "ELIGIBLE",
        "NOT_VALIDATED",
        "CUSTOMER_ACTION_REQUIRED",
        "EXPIRED",
        "REJECTED",
        "CANCELLED",
        "DELETED"
      ],
      "type": "string"
    },
    "rejectionReason": {
      "type": "string"
    },
    "expirationReason": {
      "type": "string"
    }
  }
}