{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cm-com/json-schema/cm-com-cm-platform-channels-models-channels-channel-configuration-api-channel-configurations-schema.json",
  "title": "CM.Platform.Channels.Models.Channels.ChannelConfiguration.ApiChannelConfigurations",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cm-com-channelconfiguration-api-openapi.yml#/components/schemas/CM.Platform.Channels.Models.Channels.ChannelConfiguration.ApiChannelConfigurations",
  "type": "object",
  "properties": {
    "channelGroup": {
      "$ref": "#/$defs/CM.Platform.Channels.Models.Channels.ApiChannelGroupBase"
    },
    "inbound": {
      "$ref": "#/$defs/CM.Platform.Channels.Models.Channels.ChannelConfiguration.ApiChannelConfigurationsInbound"
    }
  },
  "$defs": {
    "CM.Platform.Channels.Models.Channels.ApiChannelBase": {
      "required": [
        "id",
        "channelID",
        "channelUrl",
        "isPending",
        "createdOnUtc",
        "requestState"
      ],
      "type": "object",
      "properties": {
        "id": {
          "format": "uuid",
          "type": "string"
        },
        "channelRequestId": {
          "format": "uuid",
          "type": "string"
        },
        "channelTypeId": {
          "format": "uuid",
          "type": "string"
        },
        "channelCategoryId": {
          "format": "uuid",
          "type": "string"
        },
        "channelID": {
          "type": "string"
        },
        "channelUrl": {
          "type": "string"
        },
        "customRequestFormId": {
          "format": "uuid",
          "type": "string"
        },
        "customRequestFormIsPending": {
          "type": "boolean"
        },
        "isPending": {
          "type": "boolean"
        },
        "createdOnUtc": {
          "format": "date-time",
          "type": "string"
        },
        "requestState": {
          "$ref": "#/$defs/CM.Platform.Channels.Models.Channels.ApiRequestState"
        }
      }
    },
    "CM.Platform.Channels.Models.Channels.ApiChannelGroupBase": {
      "required": [
        "id",
        "channels"
      ],
      "type": "object",
      "properties": {
        "id": {
          "format": "uuid",
          "type": "string"
        },
        "channels": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CM.Platform.Channels.Models.Channels.ApiChannelBase"
          }
        }
      }
    },
    "CM.Platform.Channels.Models.Channels.ApiRequestNextStage": {
      "type": "object",
      "properties": {
        "type": {
          "enum": [
            "UNKNOWN",
            "PROCESSING",
            "ACTION_REQUIRED"
          ],
          "type": "string"
        },
        "descriptionKey": {
          "type": "string"
        }
      }
    },
    "CM.Platform.Channels.Models.Channels.ApiRequestProgression": {
      "type": "object",
      "properties": {
        "stages": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "current": {
          "type": "string"
        }
      }
    },
    "CM.Platform.Channels.Models.Channels.ApiRequestState": {
      "type": "object",
      "properties": {
        "completeness": {
          "format": "int32",
          "type": "integer"
        },
        "nextStage": {
          "$ref": "#/$defs/CM.Platform.Channels.Models.Channels.ApiRequestNextStage"
        },
        "progression": {
          "$ref": "#/$defs/CM.Platform.Channels.Models.Channels.ApiRequestProgression"
        },
        "hasPendingOrder": {
          "type": "boolean"
        },
        "hasEligibleOrder": {
          "type": "boolean"
        },
        "hasMissingOrder": {
          "type": "boolean"
        }
      }
    },
    "CM.Platform.Channels.Models.Channels.ChannelConfiguration.ApiChannelConfigurationsInbound": {
      "type": "object",
      "properties": {
        "messagingLog": {
          "$ref": "#/$defs/CM.Platform.Channels.Models.Channels.ChannelConfiguration.ApiChannelMessagingLogConfigurationResponse"
        },
        "email": {
          "$ref": "#/$defs/CM.Platform.Channels.Models.Channels.ChannelConfiguration.ApiChannelEmailConfigurationResponse"
        },
        "webhook": {
          "$ref": "#/$defs/CM.Platform.Channels.Models.Channels.ChannelConfiguration.ApiChannelWebHookConfigurationResponse"
        },
        "eventWebhook": {
          "$ref": "#/$defs/CM.Platform.Channels.Models.Channels.ChannelConfiguration.ApiChannelEventWebHookConfigurationResponse"
        },
        "conversationalRouter": {
          "$ref": "#/$defs/CM.Platform.Channels.Models.Channels.ChannelConfiguration.ApiChannelConversationalRouterConfigurationResponse"
        }
      }
    },
    "CM.Platform.Channels.Models.Channels.ChannelConfiguration.ApiChannelConversationalRouterConfigurationResponse": {
      "required": [
        "id",
        "enabled",
        "endpoint",
        "updatedOnUtc",
        "createdOnUtc"
      ],
      "type": "object",
      "properties": {
        "id": {
          "format": "uuid",
          "type": "string"
        },
        "enabled": {
          "type": "boolean"
        },
        "endpoint": {
          "type": "string"
        },
        "updatedOnUtc": {
          "format": "date-time",
          "type": "string"
        },
        "createdOnUtc": {
          "format": "date-time",
          "type": "string"
        }
      }
    },
    "CM.Platform.Channels.Models.Channels.ChannelConfiguration.ApiChannelEmailAddressResponse": {
      "required": [
        "id",
        "address",
        "updatedOnUtc",
        "createdOnUtc"
      ],
      "type": "object",
      "properties": {
        "id": {
          "format": "uuid",
          "type": "string"
        },
        "address": {
          "type": "string"
        },
        "updatedOnUtc": {
          "format": "date-time",
          "type": "string"
        },
        "createdOnUtc": {
          "format": "date-time",
          "type": "string"
        }
      }
    },
    "CM.Platform.Channels.Models.Channels.ChannelConfiguration.ApiChannelEmailConfigurationResponse": {
      "required": [
        "id",
        "enabled",
        "addresses",
        "updatedOnUtc",
        "createdOnUtc"
      ],
      "type": "object",
      "properties": {
        "id": {
          "format": "uuid",
          "type": "string"
        },
        "enabled": {
          "type": "boolean"
        },
        "addresses": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CM.Platform.Channels.Models.Channels.ChannelConfiguration.ApiChannelEmailAddressResponse"
          }
        },
        "updatedOnUtc": {
          "format": "date-time",
          "type": "string"
        },
        "createdOnUtc": {
          "format": "date-time",
          "type": "string"
        }
      }
    },
    "CM.Platform.Channels.Models.Channels.ChannelConfiguration.ApiChannelEventWebHookConfigurationResponse": {
      "required": [
        "id",
        "enabled",
        "updatedOnUtc",
        "createdOnUtc"
      ],
      "type": "object",
      "properties": {
        "id": {
          "format": "uuid",
          "type": "string"
        },
        "enabled": {
          "type": "boolean"
        },
        "endpoint": {
          "$ref": "#/$defs/CM.Platform.Channels.Models.Channels.ChannelConfiguration.ApiChannelEventWebHookEndpointResponse"
        },
        "updatedOnUtc": {
          "format": "date-time",
          "type": "string"
        },
        "createdOnUtc": {
          "format": "date-time",
          "type": "string"
        }
      }
    },
    "CM.Platform.Channels.Models.Channels.ChannelConfiguration.ApiChannelEventWebHookEndpointResponse": {
      "required": [
        "id",
        "method",
        "url",
        "type",
        "updatedOnUtc",
        "createdOnUtc"
      ],
      "type": "object",
      "properties": {
        "id": {
          "format": "uuid",
          "type": "string"
        },
        "channelsOneId": {
          "format": "uuid",
          "type": "string"
        },
        "method": {
          "enum": [
            "POST"
          ],
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "type": {
          "enum": [
            "Json"
          ],
          "type": "string"
        },
        "updatedOnUtc": {
          "format": "date-time",
          "type": "string"
        },
        "createdOnUtc": {
          "format": "date-time",
          "type": "string"
        }
      }
    },
    "CM.Platform.Channels.Models.Channels.ChannelConfiguration.ApiChannelMessagingLogConfigurationResponse": {
      "required": [
        "id",
        "enabled",
        "updatedOnUtc",
        "createdOnUtc"
      ],
      "type": "object",
      "properties": {
        "id": {
          "format": "uuid",
          "type": "string"
        },
        "enabled": {
          "type": "boolean"
        },
        "updatedOnUtc": {
          "format": "date-time",
          "type": "string"
        },
        "createdOnUtc": {
          "format": "date-time",
          "type": "string"
        }
      }
    },
    "CM.Platform.Channels.Models.Channels.ChannelConfiguration.ApiChannelWebHookConfigurationResponse": {
      "required": [
        "id",
        "enabled",
        "endpoints",
        "updatedOnUtc",
        "createdOnUtc"
      ],
      "type": "object",
      "properties": {
        "id": {
          "format": "uuid",
          "type": "string"
        },
        "enabled": {
          "type": "boolean"
        },
        "endpoints": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CM.Platform.Channels.Models.Channels.ChannelConfiguration.ApiChannelWebHookEndpointResponse"
          }
        },
        "updatedOnUtc": {
          "format": "date-time",
          "type": "string"
        },
        "createdOnUtc": {
          "format": "date-time",
          "type": "string"
        }
      }
    },
    "CM.Platform.Channels.Models.Channels.ChannelConfiguration.ApiChannelWebHookEndpointResponse": {
      "required": [
        "id",
        "method",
        "url",
        "type",
        "updatedOnUtc",
        "createdOnUtc"
      ],
      "type": "object",
      "properties": {
        "id": {
          "format": "uuid",
          "type": "string"
        },
        "method": {
          "enum": [
            "POST",
            "GET",
            "PUT",
            "UNKNOWN"
          ],
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "type": {
          "enum": [
            "Json",
            "Xml",
            "Custom"
          ],
          "type": "string"
        },
        "updatedOnUtc": {
          "format": "date-time",
          "type": "string"
        },
        "createdOnUtc": {
          "format": "date-time",
          "type": "string"
        }
      }
    }
  }
}