syntax = "proto3";

package com.wix.media.site_media.v1;

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


message FontAsset {
  // Keys for downloading different assets of a file.
  // Default: `src`, key representing the original file's format and quality.
  google.protobuf.StringValue asset_key = 1 [(.wix.api.maxLength) = 100];
  // The URL of the font asset.
  google.protobuf.StringValue url = 2 [(.wix.api.maxLength) = 200];
  // The format of the font asset. ttf, woff, woff2
  google.protobuf.StringValue format = 3 [(.wix.api.maxLength) = 200];
}

message FontMedia {
  option (.wix.api.decomposition_minimum_fields) = {
    field: "id"
  };
  // WixMedia ID. for use with Site Media APIs only
  google.protobuf.StringValue id = 1 [(.wix.api.maxLength) = 200];
  // size in bytes. Optional.
  google.protobuf.StringValue size_in_bytes = 2 [(.wix.api.readOnly) = true, (.wix.api.format) = DECIMAL_VALUE, (.wix.api.decimalValue) = { gte: "0", maxScale: 0 }];
  // The format of the font asset. ttf, woff, woff2
  google.protobuf.StringValue format = 3 [(.wix.api.maxLength) = 200];
  // The font family name.
  google.protobuf.StringValue family = 4 [(.wix.api.maxLength) = 100];
  // The font name
  google.protobuf.StringValue font_name = 5 [(.wix.api.maxLength) = 100];
  // Font formats available for this file.
  repeated FontAsset assets = 6 [(.wix.api.maxSize) = 5];
}