syntax = "proto3";

package nominal.scout.elements.v1;

import "buf/validate/validate.proto";

message Symbol {
  oneof symbol {
    option (buf.validate.oneof).required = true;
    // Icon name (e.g. castle)
    string icon = 1;
    // Emoji name (e.g. :castle:)
    string emoji = 2;
    // Image url (e.g. https://example.com/image.png)
    string image = 3;
  }
}

message Color {
  oneof color {
    option (buf.validate.oneof).required = true;
    // hex color
    string hex_code = 1 [(buf.validate.field).string = {pattern: "^#[0-9a-f]{6}$"}];
  }
}
