Skip to content
Mirror
Clone

Clone over HTTPS

No sign-in. Pulls work; pushes go upstream to the monorepo.

Download .tar.gz

Protocol buffer schemas shared by KBVE services, games and sites.

Last changed in19476db91on

61 lines1.6 KB
APIRaw
syntax = "proto3";

package kbve.rows.v1;

import "google/protobuf/timestamp.proto";
import "kbve/type/v1/id.proto";

// Chat groups and player groups.
//
// RowsChatMessage rather than ChatMessage: kbve.chat.v1 already has one, and
// the two are not the same message. That one is a live envelope on a socket,
// with a platform and a sender identity; this is a row in a per-tenant table
// keyed by character. Sharing the name across packages would only read as a
// mistake at every call site that imports both.

message ChatGroup {
  kbve.type.v1.Uuid customer_id = 1;
  int32 chat_group_id = 2;
  string name = 3;
}

message ChatGroupUser {
  kbve.type.v1.Uuid customer_id = 1;
  int32 chat_group_id = 2;
  int32 character_id = 3;
  int32 chat_group_user_id = 4;
}

message RowsChatMessage {
  kbve.type.v1.Uuid customer_id = 1;
  int32 chat_message_id = 2;
  optional int32 chat_group_id = 3;
  optional string sender_char_name = 4;
  optional string message = 5;
  optional google.protobuf.Timestamp sent_at = 6;
}

message PlayerGroupType {
  int32 player_group_type_id = 1;
  string name = 2;
  kbve.type.v1.Uuid customer_id = 3;
}

message PlayerGroup {
  kbve.type.v1.Uuid customer_id = 1;
  int32 player_group_id = 2;
  int32 player_group_type_id = 3;
  int32 character_id_owner = 4;
  optional string name = 5;
  int32 ready_state = 6;
  optional google.protobuf.Timestamp created_at = 7;
}

message PlayerGroupCharacter {
  kbve.type.v1.Uuid customer_id = 1;
  int32 player_group_character_id = 2;
  int32 player_group_id = 3;
  int32 character_id = 4;
  optional google.protobuf.Timestamp added_at = 5;
  int32 team_number = 6;
}