syntax = "proto3";
//flynt-disable package-matches-structure
package com.wixpress.appservice.api.upstream.wix.forms.templates.v2.validation;
option java_package = "com.wixpress.appservice.api.upstream.wix.forms.templates.v2.validation";

import "wix/api/validations.proto";
import "wix/api/annotations.proto";

message FileType {
    option (.wix.api.decomposite_of) = "wix.forms.v4.fields.validation.FileType";
  // Amount of files allowed to upload
  int32 file_limit = 5 [(.wix.api.min) = 1, (.wix.api.max) = 30];
  // Supported file formats for upload
  repeated UploadFileFormatEnum.UploadFileFormat upload_file_formats = 1 [(.wix.api.maxSize) = 5];
}

message UploadFileFormatEnum{
    option (.wix.api.decomposite_of) = "wix.forms.v4.fields.validation.UploadFileFormatEnum";
  enum UploadFileFormat{
    // Undefined upload file format.
    UNKNOWN_UPLOAD_FILE_FORMAT = 0 [(.wix.api.enum_maturity) = NOT_IMPLEMENTED];
    // Video files.
    VIDEO = 1;
    // Image files.
    IMAGE = 2;
    // Audio files.
    AUDIO = 3;
    // Document files.
    DOCUMENT = 4;
    // Archive files.
    ARCHIVE = 5;
  }
}
