syntax = "proto3";

package com.wixpress.appservice.api;

import "google/protobuf/wrappers.proto";
import "wix/api/annotations.proto";
import "wix/api/validations.proto";
import "components_catalog_common.proto";


// A backoffice component for external url`s
message BackOfficeExternalUrl {
  // The platform this component is hosted on
  BackOfficeHostingPlatforms hosting_platform = 1 [(wix.api.field_exposure) = INTERNAL];
  // the external url to be opened
  google.protobuf.StringValue url = 2 [(wix.api.maxLength) = 250];
  // general component data
  ComponentMetaData meta_data = 3;
  // [Wix Design System icon](https://www.wix-pages.com/wix-design-system-employees/?path=/story/foundations-icons--icons).
  // Use the full size key. The icon will be rendered in an appropriate size.
  google.protobuf.StringValue icon_key = 4 [(wix.api.minLength) = 3, (wix.api.maxLength) = 50];
  // Required permission to view URL. if subject is missing this permission, the link will be hidden from the search
  google.protobuf.StringValue required_permission = 5 [(wix.api.field_exposure) = INTERNAL, (wix.api.maxLength) = 128]; 
}
