syntax = "proto3";

package com.wixpress.appservice.api.upstream.com.wixpress.comm.channels.entities.v1.channel.dm;

import "components_catalog_data/communication_channel/com/wixpress/appservice/api/upstream/com/wixpress/comm/channels/entities/v1/channel/media_capabilities.proto";
import "components_catalog_data/communication_channel/com/wixpress/appservice/api/upstream/com/wixpress/comm/channels/entities/v1/channel/accepted_message_types.proto";
import "google/protobuf/wrappers.proto";
import "wix/api/annotations.proto";

message DirectMessageConfig {
    option (.wix.api.decomposite_of) = "com.wixpress.comm.channels.entities.v1.channel.dm.DirectMessageConfig";
  // When marked as true, there's no need to list the supported types explicitly
  bool accept_all_message_types = 1;

  // Direct message types accepted by the provider. only those types will be sent from Wix
  // If all are excepted this field can be left empty and there's no need to explicitly state types
  repeated AcceptedMessageTypes.AcceptedDirectMessageType accepted_message_types = 2;

  // Elaborates what media types (mime types) and sizes are supported
  com.wixpress.comm.channels.entities.v1.channel.MediaCapabilities media_capabilities = 3;
}
