syntax = "proto3";

package com.wix.media.site_media.v1;

import "wix/api/validations.proto";
import "google/protobuf/timestamp.proto";
import "wix/api/entity.proto";
import "wix/api/annotations.proto";
import "com/wix/media/site_media/v1/namespace.proto";


message Folder {
  enum State {
    OK = 0 ;
    DELETED = 1;
  }

  //flynt-disable missing-extensible
  option (.wix.api.entity) = {
    fqdn: "wix.media.site_media.v1.folder"
    segment: USERS
    trashbin: false
    app_def_id: "ad919edb-8ae2-403c-bef4-d5083b76d9e9"
    domain_events_read_permission: "MEDIA.SITE_MEDIA_FOLDERS_READ"
    appendix_files: {
      type: DOCS_CONF,
      path: "appendices/docs"
    }
    appendix_files: {
      type: AUTO_VELO
      path: "appendices/velo/folder"
    }
  };
  // Folder ID. Generated when a folder is created in the Media Manager.
  string id = 1 [(.wix.api.readOnly) = false, (.wix.api.maxLength) = 100];
  // Folder name as it appears in the Media Manager.
  string display_name = 2 [(.wix.api.maxLength) = 256, (.wix.api.readOnly) = false];
  // ID of the folder's parent folder. <br /> Default: `media-root` folder.
  string parent_folder_id = 3  [(.wix.api.readOnly) = false, (.wix.api.maxLength) = 100];
  // Date the folder was created.
  google.protobuf.Timestamp created_date = 4 [(.wix.api.readOnly) = true];
  // Date the folder was updated.
  google.protobuf.Timestamp updated_date = 5 [(.wix.api.readOnly) = true];
  // State of the folder.
  State state = 6 [(.wix.api.readOnly) = true];
  // Namespace of the folder.
  Namespace namespace = 7 [(.wix.api.field_exposure) = INTERNAL, (.wix.api.readOnly) = false];
}
