invitation process upgrade
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
ycc
2026-04-02 18:50:04 +02:00
committed by yc
parent 9f130a80b7
commit 1906431061
21 changed files with 1185 additions and 638 deletions

View File

@@ -97,15 +97,15 @@ func (x *PackedServerMessage) GetSignature() []byte {
// structure to hold an invitation through a server
type Invitation struct {
state protoimpl.MessageState `protogen:"open.v1"`
Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` // invitation payload, encrypted after step 2
Timeout int32 `protobuf:"varint,2,opt,name=timeout,proto3" json:"timeout,omitempty"` // how long do I want the invitation to remain available on the server
ShortcodeLen int32 `protobuf:"varint,3,opt,name=shortcodeLen,proto3" json:"shortcodeLen,omitempty"` // len of the shortcode you wish for short url transmission
Shortcode string `protobuf:"bytes,4,opt,name=shortcode,proto3" json:"shortcode,omitempty"` // shortcode that the friend shall request to get the invitation
Password string `protobuf:"bytes,5,opt,name=password,proto3" json:"password,omitempty"` // password to set for accessing invitation (optional)
Uuid string `protobuf:"bytes,6,opt,name=uuid,proto3" json:"uuid,omitempty"` // id that the friend gave you, that you should include to your reply to get recognized
Expiry int64 `protobuf:"varint,7,opt,name=expiry,proto3" json:"expiry,omitempty"` // the server allowed expiry date, it may be samller than the requested timeout according to server policy
Step int32 `protobuf:"varint,8,opt,name=step,proto3" json:"step,omitempty"` // progress in the inviattion process : 1=invite friend, 2=friend requests invitation, 3=friend's answer
From string `protobuf:"bytes,9,opt,name=from,proto3" json:"from,omitempty"` // used in step 3 the answer public key to check the signature in user message
Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` // invitation payload, optionaly encrypted with payload password(transmitted OOB) on step 1
Timeout int32 `protobuf:"varint,2,opt,name=timeout,proto3" json:"timeout,omitempty"` // how long do I want the invitation to remain available on the server
ShortcodeLen int32 `protobuf:"varint,3,opt,name=shortcode_len,json=shortcodeLen,proto3" json:"shortcode_len,omitempty"` // len of the shortcode you wish for short url transmission
Shortcode string `protobuf:"bytes,4,opt,name=shortcode,proto3" json:"shortcode,omitempty"` // shortcode that the friend shall request to get the invitation
Password string `protobuf:"bytes,5,opt,name=password,proto3" json:"password,omitempty"` // optional password(transmitted OOB) to set for accessing invitation (server check)
Uuid string `protobuf:"bytes,6,opt,name=uuid,proto3" json:"uuid,omitempty"` // invitation uuid
Expiry int64 `protobuf:"varint,7,opt,name=expiry,proto3" json:"expiry,omitempty"` // the server allowed expiry date, it may be smaller than the requested timeout according to server policy
Step int32 `protobuf:"varint,8,opt,name=step,proto3" json:"step,omitempty"` // progress in the invitation process : 1=initiator pub key, 2=invited data enc with pub key, 3=initator data full encrypted, 4=invited All OK !
From string `protobuf:"bytes,9,opt,name=from,proto3" json:"from,omitempty"` // still useful ?
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
@@ -203,6 +203,75 @@ func (x *Invitation) GetFrom() string {
return ""
}
// This payload migh be used for file serialization as well as Invitation/payload in case of through server invitation
type InvitationInitPayload struct {
state protoimpl.MessageState `protogen:"open.v1"`
Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // uuid of the invitation, it is set here on init cause the payload might be encrypted
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // name of the initiator
PublicKey string `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` // public key to be used for step 2 encryption
InvitationMessage string `protobuf:"bytes,4,opt,name=invitation_message,json=invitationMessage,proto3" json:"invitation_message,omitempty"` // message for the invited peer
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *InvitationInitPayload) Reset() {
*x = InvitationInitPayload{}
mi := &file_messages_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *InvitationInitPayload) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InvitationInitPayload) ProtoMessage() {}
func (x *InvitationInitPayload) ProtoReflect() protoreflect.Message {
mi := &file_messages_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use InvitationInitPayload.ProtoReflect.Descriptor instead.
func (*InvitationInitPayload) Descriptor() ([]byte, []int) {
return file_messages_proto_rawDescGZIP(), []int{2}
}
func (x *InvitationInitPayload) GetUuid() string {
if x != nil {
return x.Uuid
}
return ""
}
func (x *InvitationInitPayload) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *InvitationInitPayload) GetPublicKey() string {
if x != nil {
return x.PublicKey
}
return ""
}
func (x *InvitationInitPayload) GetInvitationMessage() string {
if x != nil {
return x.InvitationMessage
}
return ""
}
// structure for requesting incoming messages
type ConversationRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
@@ -216,7 +285,7 @@ type ConversationRequest struct {
func (x *ConversationRequest) Reset() {
*x = ConversationRequest{}
mi := &file_messages_proto_msgTypes[2]
mi := &file_messages_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -228,7 +297,7 @@ func (x *ConversationRequest) String() string {
func (*ConversationRequest) ProtoMessage() {}
func (x *ConversationRequest) ProtoReflect() protoreflect.Message {
mi := &file_messages_proto_msgTypes[2]
mi := &file_messages_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -241,7 +310,7 @@ func (x *ConversationRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use ConversationRequest.ProtoReflect.Descriptor instead.
func (*ConversationRequest) Descriptor() ([]byte, []int) {
return file_messages_proto_rawDescGZIP(), []int{2}
return file_messages_proto_rawDescGZIP(), []int{3}
}
func (x *ConversationRequest) GetLookupKey() string {
@@ -283,7 +352,7 @@ type Meet struct {
func (x *Meet) Reset() {
*x = Meet{}
mi := &file_messages_proto_msgTypes[3]
mi := &file_messages_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -295,7 +364,7 @@ func (x *Meet) String() string {
func (*Meet) ProtoMessage() {}
func (x *Meet) ProtoReflect() protoreflect.Message {
mi := &file_messages_proto_msgTypes[3]
mi := &file_messages_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -308,7 +377,7 @@ func (x *Meet) ProtoReflect() protoreflect.Message {
// Deprecated: Use Meet.ProtoReflect.Descriptor instead.
func (*Meet) Descriptor() ([]byte, []int) {
return file_messages_proto_rawDescGZIP(), []int{3}
return file_messages_proto_rawDescGZIP(), []int{4}
}
func (x *Meet) GetPublicStatus() string {
@@ -344,7 +413,7 @@ type Credentials struct {
func (x *Credentials) Reset() {
*x = Credentials{}
mi := &file_messages_proto_msgTypes[4]
mi := &file_messages_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -356,7 +425,7 @@ func (x *Credentials) String() string {
func (*Credentials) ProtoMessage() {}
func (x *Credentials) ProtoReflect() protoreflect.Message {
mi := &file_messages_proto_msgTypes[4]
mi := &file_messages_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -369,7 +438,7 @@ func (x *Credentials) ProtoReflect() protoreflect.Message {
// Deprecated: Use Credentials.ProtoReflect.Descriptor instead.
func (*Credentials) Descriptor() ([]byte, []int) {
return file_messages_proto_rawDescGZIP(), []int{4}
return file_messages_proto_rawDescGZIP(), []int{5}
}
func (x *Credentials) GetLogin() string {
@@ -422,7 +491,7 @@ type ToServerMessage struct {
func (x *ToServerMessage) Reset() {
*x = ToServerMessage{}
mi := &file_messages_proto_msgTypes[5]
mi := &file_messages_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -434,7 +503,7 @@ func (x *ToServerMessage) String() string {
func (*ToServerMessage) ProtoMessage() {}
func (x *ToServerMessage) ProtoReflect() protoreflect.Message {
mi := &file_messages_proto_msgTypes[5]
mi := &file_messages_proto_msgTypes[6]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -447,7 +516,7 @@ func (x *ToServerMessage) ProtoReflect() protoreflect.Message {
// Deprecated: Use ToServerMessage.ProtoReflect.Descriptor instead.
func (*ToServerMessage) Descriptor() ([]byte, []int) {
return file_messages_proto_rawDescGZIP(), []int{5}
return file_messages_proto_rawDescGZIP(), []int{6}
}
func (x *ToServerMessage) GetType() string {
@@ -561,7 +630,7 @@ type FromServerMessage struct {
func (x *FromServerMessage) Reset() {
*x = FromServerMessage{}
mi := &file_messages_proto_msgTypes[6]
mi := &file_messages_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -573,7 +642,7 @@ func (x *FromServerMessage) String() string {
func (*FromServerMessage) ProtoMessage() {}
func (x *FromServerMessage) ProtoReflect() protoreflect.Message {
mi := &file_messages_proto_msgTypes[6]
mi := &file_messages_proto_msgTypes[7]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -586,7 +655,7 @@ func (x *FromServerMessage) ProtoReflect() protoreflect.Message {
// Deprecated: Use FromServerMessage.ProtoReflect.Descriptor instead.
func (*FromServerMessage) Descriptor() ([]byte, []int) {
return file_messages_proto_rawDescGZIP(), []int{6}
return file_messages_proto_rawDescGZIP(), []int{7}
}
func (x *FromServerMessage) GetType() string {
@@ -678,7 +747,7 @@ type MatriochkaServer struct {
func (x *MatriochkaServer) Reset() {
*x = MatriochkaServer{}
mi := &file_messages_proto_msgTypes[7]
mi := &file_messages_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -690,7 +759,7 @@ func (x *MatriochkaServer) String() string {
func (*MatriochkaServer) ProtoMessage() {}
func (x *MatriochkaServer) ProtoReflect() protoreflect.Message {
mi := &file_messages_proto_msgTypes[7]
mi := &file_messages_proto_msgTypes[8]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -703,7 +772,7 @@ func (x *MatriochkaServer) ProtoReflect() protoreflect.Message {
// Deprecated: Use MatriochkaServer.ProtoReflect.Descriptor instead.
func (*MatriochkaServer) Descriptor() ([]byte, []int) {
return file_messages_proto_rawDescGZIP(), []int{7}
return file_messages_proto_rawDescGZIP(), []int{8}
}
func (x *MatriochkaServer) GetUrl() string {
@@ -746,7 +815,7 @@ type Matriochka struct {
func (x *Matriochka) Reset() {
*x = Matriochka{}
mi := &file_messages_proto_msgTypes[8]
mi := &file_messages_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -758,7 +827,7 @@ func (x *Matriochka) String() string {
func (*Matriochka) ProtoMessage() {}
func (x *Matriochka) ProtoReflect() protoreflect.Message {
mi := &file_messages_proto_msgTypes[8]
mi := &file_messages_proto_msgTypes[9]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -771,7 +840,7 @@ func (x *Matriochka) ProtoReflect() protoreflect.Message {
// Deprecated: Use Matriochka.ProtoReflect.Descriptor instead.
func (*Matriochka) Descriptor() ([]byte, []int) {
return file_messages_proto_rawDescGZIP(), []int{8}
return file_messages_proto_rawDescGZIP(), []int{9}
}
func (x *Matriochka) GetLookupKey() string {
@@ -818,7 +887,7 @@ type ServerCard struct {
func (x *ServerCard) Reset() {
*x = ServerCard{}
mi := &file_messages_proto_msgTypes[9]
mi := &file_messages_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -830,7 +899,7 @@ func (x *ServerCard) String() string {
func (*ServerCard) ProtoMessage() {}
func (x *ServerCard) ProtoReflect() protoreflect.Message {
mi := &file_messages_proto_msgTypes[9]
mi := &file_messages_proto_msgTypes[10]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -843,7 +912,7 @@ func (x *ServerCard) ProtoReflect() protoreflect.Message {
// Deprecated: Use ServerCard.ProtoReflect.Descriptor instead.
func (*ServerCard) Descriptor() ([]byte, []int) {
return file_messages_proto_rawDescGZIP(), []int{9}
return file_messages_proto_rawDescGZIP(), []int{10}
}
func (x *ServerCard) GetName() string {
@@ -915,7 +984,7 @@ type ContactCard struct {
func (x *ContactCard) Reset() {
*x = ContactCard{}
mi := &file_messages_proto_msgTypes[10]
mi := &file_messages_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -927,7 +996,7 @@ func (x *ContactCard) String() string {
func (*ContactCard) ProtoMessage() {}
func (x *ContactCard) ProtoReflect() protoreflect.Message {
mi := &file_messages_proto_msgTypes[10]
mi := &file_messages_proto_msgTypes[11]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -940,7 +1009,7 @@ func (x *ContactCard) ProtoReflect() protoreflect.Message {
// Deprecated: Use ContactCard.ProtoReflect.Descriptor instead.
func (*ContactCard) Descriptor() ([]byte, []int) {
return file_messages_proto_rawDescGZIP(), []int{10}
return file_messages_proto_rawDescGZIP(), []int{11}
}
func (x *ContactCard) GetName() string {
@@ -1035,7 +1104,7 @@ type PackedUserMessage struct {
func (x *PackedUserMessage) Reset() {
*x = PackedUserMessage{}
mi := &file_messages_proto_msgTypes[11]
mi := &file_messages_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1047,7 +1116,7 @@ func (x *PackedUserMessage) String() string {
func (*PackedUserMessage) ProtoMessage() {}
func (x *PackedUserMessage) ProtoReflect() protoreflect.Message {
mi := &file_messages_proto_msgTypes[11]
mi := &file_messages_proto_msgTypes[12]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1060,7 +1129,7 @@ func (x *PackedUserMessage) ProtoReflect() protoreflect.Message {
// Deprecated: Use PackedUserMessage.ProtoReflect.Descriptor instead.
func (*PackedUserMessage) Descriptor() ([]byte, []int) {
return file_messages_proto_rawDescGZIP(), []int{11}
return file_messages_proto_rawDescGZIP(), []int{12}
}
func (x *PackedUserMessage) GetDestination() string {
@@ -1108,7 +1177,7 @@ func (x *PackedUserMessage) GetDrHeader() []byte {
type ConversationStatus struct {
state protoimpl.MessageState `protogen:"open.v1"`
Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // uuid of message, or uuid of related message if uuid_action is not empty
Reactions []*Reaction `protobuf:"bytes,2,rep,name=reactions,proto3" json:"reactions,omitempty"` // empty => normal message, 1: receivedack, 2: processedack, 3:reaction
Reactions []*Reaction `protobuf:"bytes,2,rep,name=reactions,proto3" json:"reactions,omitempty"` // reaction to the message per peer
ReplyToUuid string `protobuf:"bytes,3,opt,name=reply_to_uuid,json=replyToUuid,proto3" json:"reply_to_uuid,omitempty"` // this message replies to the specified uuid
LocalSequence uint64 `protobuf:"varint,4,opt,name=local_sequence,json=localSequence,proto3" json:"local_sequence,omitempty"` // seq number in local conversation for custom reordering
Sent uint64 `protobuf:"varint,5,opt,name=sent,proto3" json:"sent,omitempty"` // timestamp of the message sent
@@ -1122,7 +1191,7 @@ type ConversationStatus struct {
func (x *ConversationStatus) Reset() {
*x = ConversationStatus{}
mi := &file_messages_proto_msgTypes[12]
mi := &file_messages_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1134,7 +1203,7 @@ func (x *ConversationStatus) String() string {
func (*ConversationStatus) ProtoMessage() {}
func (x *ConversationStatus) ProtoReflect() protoreflect.Message {
mi := &file_messages_proto_msgTypes[12]
mi := &file_messages_proto_msgTypes[13]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1147,7 +1216,7 @@ func (x *ConversationStatus) ProtoReflect() protoreflect.Message {
// Deprecated: Use ConversationStatus.ProtoReflect.Descriptor instead.
func (*ConversationStatus) Descriptor() ([]byte, []int) {
return file_messages_proto_rawDescGZIP(), []int{12}
return file_messages_proto_rawDescGZIP(), []int{13}
}
func (x *ConversationStatus) GetUuid() string {
@@ -1223,7 +1292,7 @@ type Reaction struct {
func (x *Reaction) Reset() {
*x = Reaction{}
mi := &file_messages_proto_msgTypes[13]
mi := &file_messages_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1235,7 +1304,7 @@ func (x *Reaction) String() string {
func (*Reaction) ProtoMessage() {}
func (x *Reaction) ProtoReflect() protoreflect.Message {
mi := &file_messages_proto_msgTypes[13]
mi := &file_messages_proto_msgTypes[14]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1248,7 +1317,7 @@ func (x *Reaction) ProtoReflect() protoreflect.Message {
// Deprecated: Use Reaction.ProtoReflect.Descriptor instead.
func (*Reaction) Descriptor() ([]byte, []int) {
return file_messages_proto_rawDescGZIP(), []int{13}
return file_messages_proto_rawDescGZIP(), []int{14}
}
func (x *Reaction) GetReaction() string {
@@ -1275,7 +1344,7 @@ type Group struct {
func (x *Group) Reset() {
*x = Group{}
mi := &file_messages_proto_msgTypes[14]
mi := &file_messages_proto_msgTypes[15]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1287,7 +1356,7 @@ func (x *Group) String() string {
func (*Group) ProtoMessage() {}
func (x *Group) ProtoReflect() protoreflect.Message {
mi := &file_messages_proto_msgTypes[14]
mi := &file_messages_proto_msgTypes[15]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1300,7 +1369,7 @@ func (x *Group) ProtoReflect() protoreflect.Message {
// Deprecated: Use Group.ProtoReflect.Descriptor instead.
func (*Group) Descriptor() ([]byte, []int) {
return file_messages_proto_rawDescGZIP(), []int{14}
return file_messages_proto_rawDescGZIP(), []int{15}
}
func (x *Group) GetName() string {
@@ -1339,7 +1408,7 @@ type UserMessage struct {
func (x *UserMessage) Reset() {
*x = UserMessage{}
mi := &file_messages_proto_msgTypes[15]
mi := &file_messages_proto_msgTypes[16]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1351,7 +1420,7 @@ func (x *UserMessage) String() string {
func (*UserMessage) ProtoMessage() {}
func (x *UserMessage) ProtoReflect() protoreflect.Message {
mi := &file_messages_proto_msgTypes[15]
mi := &file_messages_proto_msgTypes[16]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1364,7 +1433,7 @@ func (x *UserMessage) ProtoReflect() protoreflect.Message {
// Deprecated: Use UserMessage.ProtoReflect.Descriptor instead.
func (*UserMessage) Descriptor() ([]byte, []int) {
return file_messages_proto_rawDescGZIP(), []int{15}
return file_messages_proto_rawDescGZIP(), []int{16}
}
func (x *UserMessage) GetDestination() string {
@@ -1470,7 +1539,7 @@ type File struct {
func (x *File) Reset() {
*x = File{}
mi := &file_messages_proto_msgTypes[16]
mi := &file_messages_proto_msgTypes[17]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1482,7 +1551,7 @@ func (x *File) String() string {
func (*File) ProtoMessage() {}
func (x *File) ProtoReflect() protoreflect.Message {
mi := &file_messages_proto_msgTypes[16]
mi := &file_messages_proto_msgTypes[17]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1495,7 +1564,7 @@ func (x *File) ProtoReflect() protoreflect.Message {
// Deprecated: Use File.ProtoReflect.Descriptor instead.
func (*File) Descriptor() ([]byte, []int) {
return file_messages_proto_rawDescGZIP(), []int{16}
return file_messages_proto_rawDescGZIP(), []int{17}
}
func (x *File) GetFilename() string {
@@ -1538,7 +1607,7 @@ type Location struct {
func (x *Location) Reset() {
*x = Location{}
mi := &file_messages_proto_msgTypes[17]
mi := &file_messages_proto_msgTypes[18]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1550,7 +1619,7 @@ func (x *Location) String() string {
func (*Location) ProtoMessage() {}
func (x *Location) ProtoReflect() protoreflect.Message {
mi := &file_messages_proto_msgTypes[17]
mi := &file_messages_proto_msgTypes[18]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1563,7 +1632,7 @@ func (x *Location) ProtoReflect() protoreflect.Message {
// Deprecated: Use Location.ProtoReflect.Descriptor instead.
func (*Location) Descriptor() ([]byte, []int) {
return file_messages_proto_rawDescGZIP(), []int{17}
return file_messages_proto_rawDescGZIP(), []int{18}
}
func (x *Location) GetTime() uint64 {
@@ -1615,7 +1684,7 @@ type DbMessage struct {
func (x *DbMessage) Reset() {
*x = DbMessage{}
mi := &file_messages_proto_msgTypes[18]
mi := &file_messages_proto_msgTypes[19]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1627,7 +1696,7 @@ func (x *DbMessage) String() string {
func (*DbMessage) ProtoMessage() {}
func (x *DbMessage) ProtoReflect() protoreflect.Message {
mi := &file_messages_proto_msgTypes[18]
mi := &file_messages_proto_msgTypes[19]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1640,7 +1709,7 @@ func (x *DbMessage) ProtoReflect() protoreflect.Message {
// Deprecated: Use DbMessage.ProtoReflect.Descriptor instead.
func (*DbMessage) Descriptor() ([]byte, []int) {
return file_messages_proto_rawDescGZIP(), []int{18}
return file_messages_proto_rawDescGZIP(), []int{19}
}
func (x *DbMessage) GetOutbound() bool {
@@ -1747,7 +1816,7 @@ type VideoData struct {
func (x *VideoData) Reset() {
*x = VideoData{}
mi := &file_messages_proto_msgTypes[19]
mi := &file_messages_proto_msgTypes[20]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1759,7 +1828,7 @@ func (x *VideoData) String() string {
func (*VideoData) ProtoMessage() {}
func (x *VideoData) ProtoReflect() protoreflect.Message {
mi := &file_messages_proto_msgTypes[19]
mi := &file_messages_proto_msgTypes[20]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1772,7 +1841,7 @@ func (x *VideoData) ProtoReflect() protoreflect.Message {
// Deprecated: Use VideoData.ProtoReflect.Descriptor instead.
func (*VideoData) Descriptor() ([]byte, []int) {
return file_messages_proto_rawDescGZIP(), []int{19}
return file_messages_proto_rawDescGZIP(), []int{20}
}
func (x *VideoData) GetUrl() string {
@@ -1821,7 +1890,7 @@ type VideoCredential struct {
func (x *VideoCredential) Reset() {
*x = VideoCredential{}
mi := &file_messages_proto_msgTypes[20]
mi := &file_messages_proto_msgTypes[21]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1833,7 +1902,7 @@ func (x *VideoCredential) String() string {
func (*VideoCredential) ProtoMessage() {}
func (x *VideoCredential) ProtoReflect() protoreflect.Message {
mi := &file_messages_proto_msgTypes[20]
mi := &file_messages_proto_msgTypes[21]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1846,7 +1915,7 @@ func (x *VideoCredential) ProtoReflect() protoreflect.Message {
// Deprecated: Use VideoCredential.ProtoReflect.Descriptor instead.
func (*VideoCredential) Descriptor() ([]byte, []int) {
return file_messages_proto_rawDescGZIP(), []int{20}
return file_messages_proto_rawDescGZIP(), []int{21}
}
func (x *VideoCredential) GetUsername() string {
@@ -1878,18 +1947,24 @@ const file_messages_proto_rawDesc = "" +
"\x13PackedServerMessage\x12\x12\n" +
"\x04from\x18\x01 \x01(\tR\x04from\x12\x18\n" +
"\apayload\x18\x02 \x01(\fR\apayload\x12\x1c\n" +
"\tsignature\x18\x03 \x01(\fR\tsignature\"\xf2\x01\n" +
"\tsignature\x18\x03 \x01(\fR\tsignature\"\xf3\x01\n" +
"\n" +
"Invitation\x12\x18\n" +
"\apayload\x18\x01 \x01(\fR\apayload\x12\x18\n" +
"\atimeout\x18\x02 \x01(\x05R\atimeout\x12\"\n" +
"\fshortcodeLen\x18\x03 \x01(\x05R\fshortcodeLen\x12\x1c\n" +
"\atimeout\x18\x02 \x01(\x05R\atimeout\x12#\n" +
"\rshortcode_len\x18\x03 \x01(\x05R\fshortcodeLen\x12\x1c\n" +
"\tshortcode\x18\x04 \x01(\tR\tshortcode\x12\x1a\n" +
"\bpassword\x18\x05 \x01(\tR\bpassword\x12\x12\n" +
"\x04uuid\x18\x06 \x01(\tR\x04uuid\x12\x16\n" +
"\x06expiry\x18\a \x01(\x03R\x06expiry\x12\x12\n" +
"\x04step\x18\b \x01(\x05R\x04step\x12\x12\n" +
"\x04from\x18\t \x01(\tR\x04from\"\xb1\x01\n" +
"\x04from\x18\t \x01(\tR\x04from\"\x8d\x01\n" +
"\x15InvitationInitPayload\x12\x12\n" +
"\x04uuid\x18\x01 \x01(\tR\x04uuid\x12\x12\n" +
"\x04name\x18\x02 \x01(\tR\x04name\x12\x1d\n" +
"\n" +
"public_key\x18\x03 \x01(\tR\tpublicKey\x12-\n" +
"\x12invitation_message\x18\x04 \x01(\tR\x11invitationMessage\"\xb1\x01\n" +
"\x13ConversationRequest\x12\x1d\n" +
"\n" +
"lookup_key\x18\x01 \x01(\tR\tlookupKey\x12)\n" +
@@ -2072,66 +2147,67 @@ func file_messages_proto_rawDescGZIP() []byte {
return file_messages_proto_rawDescData
}
var file_messages_proto_msgTypes = make([]protoimpl.MessageInfo, 21)
var file_messages_proto_msgTypes = make([]protoimpl.MessageInfo, 22)
var file_messages_proto_goTypes = []any{
(*PackedServerMessage)(nil), // 0: meowlib.PackedServerMessage
(*Invitation)(nil), // 1: meowlib.Invitation
(*ConversationRequest)(nil), // 2: meowlib.ConversationRequest
(*Meet)(nil), // 3: meowlib.Meet
(*Credentials)(nil), // 4: meowlib.Credentials
(*ToServerMessage)(nil), // 5: meowlib.ToServerMessage
(*FromServerMessage)(nil), // 6: meowlib.FromServerMessage
(*MatriochkaServer)(nil), // 7: meowlib.MatriochkaServer
(*Matriochka)(nil), // 8: meowlib.Matriochka
(*ServerCard)(nil), // 9: meowlib.ServerCard
(*ContactCard)(nil), // 10: meowlib.ContactCard
(*PackedUserMessage)(nil), // 11: meowlib.PackedUserMessage
(*ConversationStatus)(nil), // 12: meowlib.ConversationStatus
(*Reaction)(nil), // 13: meowlib.Reaction
(*Group)(nil), // 14: meowlib.Group
(*UserMessage)(nil), // 15: meowlib.UserMessage
(*File)(nil), // 16: meowlib.File
(*Location)(nil), // 17: meowlib.Location
(*DbMessage)(nil), // 18: meowlib.DbMessage
(*VideoData)(nil), // 19: meowlib.VideoData
(*VideoCredential)(nil), // 20: meowlib.VideoCredential
(*PackedServerMessage)(nil), // 0: meowlib.PackedServerMessage
(*Invitation)(nil), // 1: meowlib.Invitation
(*InvitationInitPayload)(nil), // 2: meowlib.InvitationInitPayload
(*ConversationRequest)(nil), // 3: meowlib.ConversationRequest
(*Meet)(nil), // 4: meowlib.Meet
(*Credentials)(nil), // 5: meowlib.Credentials
(*ToServerMessage)(nil), // 6: meowlib.ToServerMessage
(*FromServerMessage)(nil), // 7: meowlib.FromServerMessage
(*MatriochkaServer)(nil), // 8: meowlib.MatriochkaServer
(*Matriochka)(nil), // 9: meowlib.Matriochka
(*ServerCard)(nil), // 10: meowlib.ServerCard
(*ContactCard)(nil), // 11: meowlib.ContactCard
(*PackedUserMessage)(nil), // 12: meowlib.PackedUserMessage
(*ConversationStatus)(nil), // 13: meowlib.ConversationStatus
(*Reaction)(nil), // 14: meowlib.Reaction
(*Group)(nil), // 15: meowlib.Group
(*UserMessage)(nil), // 16: meowlib.UserMessage
(*File)(nil), // 17: meowlib.File
(*Location)(nil), // 18: meowlib.Location
(*DbMessage)(nil), // 19: meowlib.DbMessage
(*VideoData)(nil), // 20: meowlib.VideoData
(*VideoCredential)(nil), // 21: meowlib.VideoCredential
}
var file_messages_proto_depIdxs = []int32{
10, // 0: meowlib.Meet.contact_card:type_name -> meowlib.ContactCard
2, // 1: meowlib.ToServerMessage.pull_request:type_name -> meowlib.ConversationRequest
11, // 2: meowlib.ToServerMessage.messages:type_name -> meowlib.PackedUserMessage
9, // 3: meowlib.ToServerMessage.known_servers:type_name -> meowlib.ServerCard
8, // 4: meowlib.ToServerMessage.matriochka_message:type_name -> meowlib.Matriochka
11, // 0: meowlib.Meet.contact_card:type_name -> meowlib.ContactCard
3, // 1: meowlib.ToServerMessage.pull_request:type_name -> meowlib.ConversationRequest
12, // 2: meowlib.ToServerMessage.messages:type_name -> meowlib.PackedUserMessage
10, // 3: meowlib.ToServerMessage.known_servers:type_name -> meowlib.ServerCard
9, // 4: meowlib.ToServerMessage.matriochka_message:type_name -> meowlib.Matriochka
1, // 5: meowlib.ToServerMessage.invitation:type_name -> meowlib.Invitation
11, // 6: meowlib.ToServerMessage.device_messages:type_name -> meowlib.PackedUserMessage
19, // 7: meowlib.ToServerMessage.video_data:type_name -> meowlib.VideoData
4, // 8: meowlib.ToServerMessage.credentials:type_name -> meowlib.Credentials
11, // 9: meowlib.FromServerMessage.chat:type_name -> meowlib.PackedUserMessage
9, // 10: meowlib.FromServerMessage.known_servers:type_name -> meowlib.ServerCard
12, // 6: meowlib.ToServerMessage.device_messages:type_name -> meowlib.PackedUserMessage
20, // 7: meowlib.ToServerMessage.video_data:type_name -> meowlib.VideoData
5, // 8: meowlib.ToServerMessage.credentials:type_name -> meowlib.Credentials
12, // 9: meowlib.FromServerMessage.chat:type_name -> meowlib.PackedUserMessage
10, // 10: meowlib.FromServerMessage.known_servers:type_name -> meowlib.ServerCard
1, // 11: meowlib.FromServerMessage.invitation:type_name -> meowlib.Invitation
11, // 12: meowlib.FromServerMessage.device_messages:type_name -> meowlib.PackedUserMessage
19, // 13: meowlib.FromServerMessage.video_data:type_name -> meowlib.VideoData
10, // 14: meowlib.FromServerMessage.contact_card:type_name -> meowlib.ContactCard
7, // 15: meowlib.Matriochka.prev:type_name -> meowlib.MatriochkaServer
7, // 16: meowlib.Matriochka.next:type_name -> meowlib.MatriochkaServer
9, // 17: meowlib.ContactCard.pull_servers:type_name -> meowlib.ServerCard
13, // 18: meowlib.ConversationStatus.reactions:type_name -> meowlib.Reaction
10, // 19: meowlib.ConversationStatus.my_next_identity:type_name -> meowlib.ContactCard
10, // 20: meowlib.Group.members:type_name -> meowlib.ContactCard
12, // 21: meowlib.UserMessage.status:type_name -> meowlib.ConversationStatus
10, // 22: meowlib.UserMessage.contact:type_name -> meowlib.ContactCard
9, // 23: meowlib.UserMessage.known_servers:type_name -> meowlib.ServerCard
14, // 24: meowlib.UserMessage.group:type_name -> meowlib.Group
16, // 25: meowlib.UserMessage.files:type_name -> meowlib.File
17, // 26: meowlib.UserMessage.current_location:type_name -> meowlib.Location
12, // 12: meowlib.FromServerMessage.device_messages:type_name -> meowlib.PackedUserMessage
20, // 13: meowlib.FromServerMessage.video_data:type_name -> meowlib.VideoData
11, // 14: meowlib.FromServerMessage.contact_card:type_name -> meowlib.ContactCard
8, // 15: meowlib.Matriochka.prev:type_name -> meowlib.MatriochkaServer
8, // 16: meowlib.Matriochka.next:type_name -> meowlib.MatriochkaServer
10, // 17: meowlib.ContactCard.pull_servers:type_name -> meowlib.ServerCard
14, // 18: meowlib.ConversationStatus.reactions:type_name -> meowlib.Reaction
11, // 19: meowlib.ConversationStatus.my_next_identity:type_name -> meowlib.ContactCard
11, // 20: meowlib.Group.members:type_name -> meowlib.ContactCard
13, // 21: meowlib.UserMessage.status:type_name -> meowlib.ConversationStatus
11, // 22: meowlib.UserMessage.contact:type_name -> meowlib.ContactCard
10, // 23: meowlib.UserMessage.known_servers:type_name -> meowlib.ServerCard
15, // 24: meowlib.UserMessage.group:type_name -> meowlib.Group
17, // 25: meowlib.UserMessage.files:type_name -> meowlib.File
18, // 26: meowlib.UserMessage.current_location:type_name -> meowlib.Location
1, // 27: meowlib.UserMessage.invitation:type_name -> meowlib.Invitation
19, // 28: meowlib.UserMessage.video_data:type_name -> meowlib.VideoData
12, // 29: meowlib.DbMessage.status:type_name -> meowlib.ConversationStatus
10, // 30: meowlib.DbMessage.contact:type_name -> meowlib.ContactCard
14, // 31: meowlib.DbMessage.group:type_name -> meowlib.Group
17, // 32: meowlib.DbMessage.current_location:type_name -> meowlib.Location
20, // 28: meowlib.UserMessage.video_data:type_name -> meowlib.VideoData
13, // 29: meowlib.DbMessage.status:type_name -> meowlib.ConversationStatus
11, // 30: meowlib.DbMessage.contact:type_name -> meowlib.ContactCard
15, // 31: meowlib.DbMessage.group:type_name -> meowlib.Group
18, // 32: meowlib.DbMessage.current_location:type_name -> meowlib.Location
1, // 33: meowlib.DbMessage.invitation:type_name -> meowlib.Invitation
20, // 34: meowlib.VideoData.credentials:type_name -> meowlib.VideoCredential
21, // 34: meowlib.VideoData.credentials:type_name -> meowlib.VideoCredential
35, // [35:35] is the sub-list for method output_type
35, // [35:35] is the sub-list for method input_type
35, // [35:35] is the sub-list for extension type_name
@@ -2150,7 +2226,7 @@ func file_messages_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_messages_proto_rawDesc), len(file_messages_proto_rawDesc)),
NumEnums: 0,
NumMessages: 21,
NumMessages: 22,
NumExtensions: 0,
NumServices: 0,
},