diff --git a/pkg/proto/device_sync/consent_backup.pb.go b/pkg/proto/device_sync/consent_backup.pb.go new file mode 100644 index 00000000..ce226543 --- /dev/null +++ b/pkg/proto/device_sync/consent_backup.pb.go @@ -0,0 +1,303 @@ +// Definitions for backups + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.5 +// protoc (unknown) +// source: device_sync/consent_backup.proto + +package device_sync + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" + unsafe "unsafe" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Consent record type +type ConsentTypeSave int32 + +const ( + ConsentTypeSave_CONSENT_TYPE_SAVE_UNSPECIFIED ConsentTypeSave = 0 + ConsentTypeSave_CONSENT_TYPE_SAVE_CONVERSATION_ID ConsentTypeSave = 1 + ConsentTypeSave_CONSENT_TYPE_SAVE_INBOX_ID ConsentTypeSave = 2 + ConsentTypeSave_CONSENT_TYPE_SAVE_ADDRESS ConsentTypeSave = 3 +) + +// Enum value maps for ConsentTypeSave. +var ( + ConsentTypeSave_name = map[int32]string{ + 0: "CONSENT_TYPE_SAVE_UNSPECIFIED", + 1: "CONSENT_TYPE_SAVE_CONVERSATION_ID", + 2: "CONSENT_TYPE_SAVE_INBOX_ID", + 3: "CONSENT_TYPE_SAVE_ADDRESS", + } + ConsentTypeSave_value = map[string]int32{ + "CONSENT_TYPE_SAVE_UNSPECIFIED": 0, + "CONSENT_TYPE_SAVE_CONVERSATION_ID": 1, + "CONSENT_TYPE_SAVE_INBOX_ID": 2, + "CONSENT_TYPE_SAVE_ADDRESS": 3, + } +) + +func (x ConsentTypeSave) Enum() *ConsentTypeSave { + p := new(ConsentTypeSave) + *p = x + return p +} + +func (x ConsentTypeSave) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ConsentTypeSave) Descriptor() protoreflect.EnumDescriptor { + return file_device_sync_consent_backup_proto_enumTypes[0].Descriptor() +} + +func (ConsentTypeSave) Type() protoreflect.EnumType { + return &file_device_sync_consent_backup_proto_enumTypes[0] +} + +func (x ConsentTypeSave) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ConsentTypeSave.Descriptor instead. +func (ConsentTypeSave) EnumDescriptor() ([]byte, []int) { + return file_device_sync_consent_backup_proto_rawDescGZIP(), []int{0} +} + +// Consent record state +type ConsentStateSave int32 + +const ( + ConsentStateSave_CONSENT_STATE_SAVE_UNSPECIFIED ConsentStateSave = 0 + ConsentStateSave_CONSENT_STATE_SAVE_UNKNOWN ConsentStateSave = 1 + ConsentStateSave_CONSENT_STATE_SAVE_ALLOWED ConsentStateSave = 2 + ConsentStateSave_CONSENT_STATE_SAVE_DENIED ConsentStateSave = 3 +) + +// Enum value maps for ConsentStateSave. +var ( + ConsentStateSave_name = map[int32]string{ + 0: "CONSENT_STATE_SAVE_UNSPECIFIED", + 1: "CONSENT_STATE_SAVE_UNKNOWN", + 2: "CONSENT_STATE_SAVE_ALLOWED", + 3: "CONSENT_STATE_SAVE_DENIED", + } + ConsentStateSave_value = map[string]int32{ + "CONSENT_STATE_SAVE_UNSPECIFIED": 0, + "CONSENT_STATE_SAVE_UNKNOWN": 1, + "CONSENT_STATE_SAVE_ALLOWED": 2, + "CONSENT_STATE_SAVE_DENIED": 3, + } +) + +func (x ConsentStateSave) Enum() *ConsentStateSave { + p := new(ConsentStateSave) + *p = x + return p +} + +func (x ConsentStateSave) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ConsentStateSave) Descriptor() protoreflect.EnumDescriptor { + return file_device_sync_consent_backup_proto_enumTypes[1].Descriptor() +} + +func (ConsentStateSave) Type() protoreflect.EnumType { + return &file_device_sync_consent_backup_proto_enumTypes[1] +} + +func (x ConsentStateSave) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ConsentStateSave.Descriptor instead. +func (ConsentStateSave) EnumDescriptor() ([]byte, []int) { + return file_device_sync_consent_backup_proto_rawDescGZIP(), []int{1} +} + +// Proto representation of a consent record save +type ConsentSave struct { + state protoimpl.MessageState `protogen:"open.v1"` + EntityType ConsentTypeSave `protobuf:"varint,1,opt,name=entity_type,json=entityType,proto3,enum=xmtp.device_sync.consent_backup.ConsentTypeSave" json:"entity_type,omitempty"` + State ConsentStateSave `protobuf:"varint,2,opt,name=state,proto3,enum=xmtp.device_sync.consent_backup.ConsentStateSave" json:"state,omitempty"` + Entity string `protobuf:"bytes,3,opt,name=entity,proto3" json:"entity,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ConsentSave) Reset() { + *x = ConsentSave{} + mi := &file_device_sync_consent_backup_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ConsentSave) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ConsentSave) ProtoMessage() {} + +func (x *ConsentSave) ProtoReflect() protoreflect.Message { + mi := &file_device_sync_consent_backup_proto_msgTypes[0] + 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 ConsentSave.ProtoReflect.Descriptor instead. +func (*ConsentSave) Descriptor() ([]byte, []int) { + return file_device_sync_consent_backup_proto_rawDescGZIP(), []int{0} +} + +func (x *ConsentSave) GetEntityType() ConsentTypeSave { + if x != nil { + return x.EntityType + } + return ConsentTypeSave_CONSENT_TYPE_SAVE_UNSPECIFIED +} + +func (x *ConsentSave) GetState() ConsentStateSave { + if x != nil { + return x.State + } + return ConsentStateSave_CONSENT_STATE_SAVE_UNSPECIFIED +} + +func (x *ConsentSave) GetEntity() string { + if x != nil { + return x.Entity + } + return "" +} + +var File_device_sync_consent_backup_proto protoreflect.FileDescriptor + +var file_device_sync_consent_backup_proto_rawDesc = string([]byte{ + 0x0a, 0x20, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x73, 0x79, 0x6e, 0x63, 0x2f, 0x63, 0x6f, + 0x6e, 0x73, 0x65, 0x6e, 0x74, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x12, 0x1f, 0x78, 0x6d, 0x74, 0x70, 0x2e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, + 0x73, 0x79, 0x6e, 0x63, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x74, 0x5f, 0x62, 0x61, 0x63, + 0x6b, 0x75, 0x70, 0x22, 0xc1, 0x01, 0x0a, 0x0b, 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x74, 0x53, + 0x61, 0x76, 0x65, 0x12, 0x51, 0x0a, 0x0b, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x78, 0x6d, 0x74, 0x70, 0x2e, + 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x73, 0x79, 0x6e, 0x63, 0x2e, 0x63, 0x6f, 0x6e, 0x73, + 0x65, 0x6e, 0x74, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x65, + 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x53, 0x61, 0x76, 0x65, 0x52, 0x0a, 0x65, 0x6e, 0x74, 0x69, + 0x74, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x47, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x31, 0x2e, 0x78, 0x6d, 0x74, 0x70, 0x2e, 0x64, 0x65, 0x76, + 0x69, 0x63, 0x65, 0x5f, 0x73, 0x79, 0x6e, 0x63, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x74, + 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x74, 0x53, + 0x74, 0x61, 0x74, 0x65, 0x53, 0x61, 0x76, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, + 0x16, 0x0a, 0x06, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2a, 0x9a, 0x01, 0x0a, 0x0f, 0x43, 0x6f, 0x6e, 0x73, + 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x53, 0x61, 0x76, 0x65, 0x12, 0x21, 0x0a, 0x1d, 0x43, + 0x4f, 0x4e, 0x53, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x41, 0x56, 0x45, + 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x25, + 0x0a, 0x21, 0x43, 0x4f, 0x4e, 0x53, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, + 0x41, 0x56, 0x45, 0x5f, 0x43, 0x4f, 0x4e, 0x56, 0x45, 0x52, 0x53, 0x41, 0x54, 0x49, 0x4f, 0x4e, + 0x5f, 0x49, 0x44, 0x10, 0x01, 0x12, 0x1e, 0x0a, 0x1a, 0x43, 0x4f, 0x4e, 0x53, 0x45, 0x4e, 0x54, + 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x41, 0x56, 0x45, 0x5f, 0x49, 0x4e, 0x42, 0x4f, 0x58, + 0x5f, 0x49, 0x44, 0x10, 0x02, 0x12, 0x1d, 0x0a, 0x19, 0x43, 0x4f, 0x4e, 0x53, 0x45, 0x4e, 0x54, + 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x41, 0x56, 0x45, 0x5f, 0x41, 0x44, 0x44, 0x52, 0x45, + 0x53, 0x53, 0x10, 0x03, 0x2a, 0x95, 0x01, 0x0a, 0x10, 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x74, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x53, 0x61, 0x76, 0x65, 0x12, 0x22, 0x0a, 0x1e, 0x43, 0x4f, 0x4e, + 0x53, 0x45, 0x4e, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x53, 0x41, 0x56, 0x45, 0x5f, + 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1e, 0x0a, + 0x1a, 0x43, 0x4f, 0x4e, 0x53, 0x45, 0x4e, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x53, + 0x41, 0x56, 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x01, 0x12, 0x1e, 0x0a, + 0x1a, 0x43, 0x4f, 0x4e, 0x53, 0x45, 0x4e, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x53, + 0x41, 0x56, 0x45, 0x5f, 0x41, 0x4c, 0x4c, 0x4f, 0x57, 0x45, 0x44, 0x10, 0x02, 0x12, 0x1d, 0x0a, + 0x19, 0x43, 0x4f, 0x4e, 0x53, 0x45, 0x4e, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x53, + 0x41, 0x56, 0x45, 0x5f, 0x44, 0x45, 0x4e, 0x49, 0x45, 0x44, 0x10, 0x03, 0x42, 0xfc, 0x01, 0x0a, + 0x23, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x6d, 0x74, 0x70, 0x2e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, + 0x5f, 0x73, 0x79, 0x6e, 0x63, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x74, 0x5f, 0x62, 0x61, + 0x63, 0x6b, 0x75, 0x70, 0x42, 0x12, 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x74, 0x42, 0x61, 0x63, + 0x6b, 0x75, 0x70, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2b, 0x67, 0x69, 0x74, 0x68, + 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x6d, 0x74, 0x70, 0x2f, 0x78, 0x6d, 0x74, 0x70, + 0x64, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x64, 0x65, 0x76, 0x69, + 0x63, 0x65, 0x5f, 0x73, 0x79, 0x6e, 0x63, 0xa2, 0x02, 0x03, 0x58, 0x44, 0x43, 0xaa, 0x02, 0x1d, + 0x58, 0x6d, 0x74, 0x70, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x53, 0x79, 0x6e, 0x63, 0x2e, + 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0xca, 0x02, 0x1d, + 0x58, 0x6d, 0x74, 0x70, 0x5c, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x53, 0x79, 0x6e, 0x63, 0x5c, + 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0xe2, 0x02, 0x29, + 0x58, 0x6d, 0x74, 0x70, 0x5c, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x53, 0x79, 0x6e, 0x63, 0x5c, + 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x5c, 0x47, 0x50, + 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1f, 0x58, 0x6d, 0x74, 0x70, + 0x3a, 0x3a, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x53, 0x79, 0x6e, 0x63, 0x3a, 0x3a, 0x43, 0x6f, + 0x6e, 0x73, 0x65, 0x6e, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +}) + +var ( + file_device_sync_consent_backup_proto_rawDescOnce sync.Once + file_device_sync_consent_backup_proto_rawDescData []byte +) + +func file_device_sync_consent_backup_proto_rawDescGZIP() []byte { + file_device_sync_consent_backup_proto_rawDescOnce.Do(func() { + file_device_sync_consent_backup_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_device_sync_consent_backup_proto_rawDesc), len(file_device_sync_consent_backup_proto_rawDesc))) + }) + return file_device_sync_consent_backup_proto_rawDescData +} + +var file_device_sync_consent_backup_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_device_sync_consent_backup_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_device_sync_consent_backup_proto_goTypes = []any{ + (ConsentTypeSave)(0), // 0: xmtp.device_sync.consent_backup.ConsentTypeSave + (ConsentStateSave)(0), // 1: xmtp.device_sync.consent_backup.ConsentStateSave + (*ConsentSave)(nil), // 2: xmtp.device_sync.consent_backup.ConsentSave +} +var file_device_sync_consent_backup_proto_depIdxs = []int32{ + 0, // 0: xmtp.device_sync.consent_backup.ConsentSave.entity_type:type_name -> xmtp.device_sync.consent_backup.ConsentTypeSave + 1, // 1: xmtp.device_sync.consent_backup.ConsentSave.state:type_name -> xmtp.device_sync.consent_backup.ConsentStateSave + 2, // [2:2] is the sub-list for method output_type + 2, // [2:2] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_device_sync_consent_backup_proto_init() } +func file_device_sync_consent_backup_proto_init() { + if File_device_sync_consent_backup_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_device_sync_consent_backup_proto_rawDesc), len(file_device_sync_consent_backup_proto_rawDesc)), + NumEnums: 2, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_device_sync_consent_backup_proto_goTypes, + DependencyIndexes: file_device_sync_consent_backup_proto_depIdxs, + EnumInfos: file_device_sync_consent_backup_proto_enumTypes, + MessageInfos: file_device_sync_consent_backup_proto_msgTypes, + }.Build() + File_device_sync_consent_backup_proto = out.File + file_device_sync_consent_backup_proto_goTypes = nil + file_device_sync_consent_backup_proto_depIdxs = nil +} diff --git a/pkg/proto/device_sync/device_sync.pb.go b/pkg/proto/device_sync/device_sync.pb.go new file mode 100644 index 00000000..e9aad106 --- /dev/null +++ b/pkg/proto/device_sync/device_sync.pb.go @@ -0,0 +1,399 @@ +// Definitions for backups + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.5 +// protoc (unknown) +// source: device_sync/device_sync.proto + +package device_sync + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" + unsafe "unsafe" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Elements selected for backup +type BackupElementSelection int32 + +const ( + BackupElementSelection_BACKUP_ELEMENT_SELECTION_UNSPECIFIED BackupElementSelection = 0 + BackupElementSelection_BACKUP_ELEMENT_SELECTION_MESSAGES BackupElementSelection = 1 + BackupElementSelection_BACKUP_ELEMENT_SELECTION_CONSENT BackupElementSelection = 2 +) + +// Enum value maps for BackupElementSelection. +var ( + BackupElementSelection_name = map[int32]string{ + 0: "BACKUP_ELEMENT_SELECTION_UNSPECIFIED", + 1: "BACKUP_ELEMENT_SELECTION_MESSAGES", + 2: "BACKUP_ELEMENT_SELECTION_CONSENT", + } + BackupElementSelection_value = map[string]int32{ + "BACKUP_ELEMENT_SELECTION_UNSPECIFIED": 0, + "BACKUP_ELEMENT_SELECTION_MESSAGES": 1, + "BACKUP_ELEMENT_SELECTION_CONSENT": 2, + } +) + +func (x BackupElementSelection) Enum() *BackupElementSelection { + p := new(BackupElementSelection) + *p = x + return p +} + +func (x BackupElementSelection) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (BackupElementSelection) Descriptor() protoreflect.EnumDescriptor { + return file_device_sync_device_sync_proto_enumTypes[0].Descriptor() +} + +func (BackupElementSelection) Type() protoreflect.EnumType { + return &file_device_sync_device_sync_proto_enumTypes[0] +} + +func (x BackupElementSelection) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use BackupElementSelection.Descriptor instead. +func (BackupElementSelection) EnumDescriptor() ([]byte, []int) { + return file_device_sync_device_sync_proto_rawDescGZIP(), []int{0} +} + +// Union type representing everything that can be serialied and saved in a backup archive. +type BackupElement struct { + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Element: + // + // *BackupElement_Metadata + // *BackupElement_Group + // *BackupElement_GroupMessage + // *BackupElement_Consent + Element isBackupElement_Element `protobuf_oneof:"element"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *BackupElement) Reset() { + *x = BackupElement{} + mi := &file_device_sync_device_sync_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *BackupElement) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BackupElement) ProtoMessage() {} + +func (x *BackupElement) ProtoReflect() protoreflect.Message { + mi := &file_device_sync_device_sync_proto_msgTypes[0] + 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 BackupElement.ProtoReflect.Descriptor instead. +func (*BackupElement) Descriptor() ([]byte, []int) { + return file_device_sync_device_sync_proto_rawDescGZIP(), []int{0} +} + +func (x *BackupElement) GetElement() isBackupElement_Element { + if x != nil { + return x.Element + } + return nil +} + +func (x *BackupElement) GetMetadata() *BackupMetadataSave { + if x != nil { + if x, ok := x.Element.(*BackupElement_Metadata); ok { + return x.Metadata + } + } + return nil +} + +func (x *BackupElement) GetGroup() *GroupSave { + if x != nil { + if x, ok := x.Element.(*BackupElement_Group); ok { + return x.Group + } + } + return nil +} + +func (x *BackupElement) GetGroupMessage() *GroupMessageSave { + if x != nil { + if x, ok := x.Element.(*BackupElement_GroupMessage); ok { + return x.GroupMessage + } + } + return nil +} + +func (x *BackupElement) GetConsent() *ConsentSave { + if x != nil { + if x, ok := x.Element.(*BackupElement_Consent); ok { + return x.Consent + } + } + return nil +} + +type isBackupElement_Element interface { + isBackupElement_Element() +} + +type BackupElement_Metadata struct { + Metadata *BackupMetadataSave `protobuf:"bytes,1,opt,name=metadata,proto3,oneof"` +} + +type BackupElement_Group struct { + Group *GroupSave `protobuf:"bytes,2,opt,name=group,proto3,oneof"` +} + +type BackupElement_GroupMessage struct { + GroupMessage *GroupMessageSave `protobuf:"bytes,3,opt,name=group_message,json=groupMessage,proto3,oneof"` +} + +type BackupElement_Consent struct { + Consent *ConsentSave `protobuf:"bytes,4,opt,name=consent,proto3,oneof"` +} + +func (*BackupElement_Metadata) isBackupElement_Element() {} + +func (*BackupElement_Group) isBackupElement_Element() {} + +func (*BackupElement_GroupMessage) isBackupElement_Element() {} + +func (*BackupElement_Consent) isBackupElement_Element() {} + +// Proto representation of backup metadata +// (Backup version is explicitly missing - it's stored as a header.) +type BackupMetadataSave struct { + state protoimpl.MessageState `protogen:"open.v1"` + Elements []BackupElementSelection `protobuf:"varint,2,rep,packed,name=elements,proto3,enum=xmtp.device_sync.BackupElementSelection" json:"elements,omitempty"` + ExportedAtNs int64 `protobuf:"varint,3,opt,name=exported_at_ns,json=exportedAtNs,proto3" json:"exported_at_ns,omitempty"` + StartNs *int64 `protobuf:"varint,4,opt,name=start_ns,json=startNs,proto3,oneof" json:"start_ns,omitempty"` + EndNs *int64 `protobuf:"varint,5,opt,name=end_ns,json=endNs,proto3,oneof" json:"end_ns,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *BackupMetadataSave) Reset() { + *x = BackupMetadataSave{} + mi := &file_device_sync_device_sync_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *BackupMetadataSave) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BackupMetadataSave) ProtoMessage() {} + +func (x *BackupMetadataSave) ProtoReflect() protoreflect.Message { + mi := &file_device_sync_device_sync_proto_msgTypes[1] + 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 BackupMetadataSave.ProtoReflect.Descriptor instead. +func (*BackupMetadataSave) Descriptor() ([]byte, []int) { + return file_device_sync_device_sync_proto_rawDescGZIP(), []int{1} +} + +func (x *BackupMetadataSave) GetElements() []BackupElementSelection { + if x != nil { + return x.Elements + } + return nil +} + +func (x *BackupMetadataSave) GetExportedAtNs() int64 { + if x != nil { + return x.ExportedAtNs + } + return 0 +} + +func (x *BackupMetadataSave) GetStartNs() int64 { + if x != nil && x.StartNs != nil { + return *x.StartNs + } + return 0 +} + +func (x *BackupMetadataSave) GetEndNs() int64 { + if x != nil && x.EndNs != nil { + return *x.EndNs + } + return 0 +} + +var File_device_sync_device_sync_proto protoreflect.FileDescriptor + +var file_device_sync_device_sync_proto_rawDesc = string([]byte{ + 0x0a, 0x1d, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x73, 0x79, 0x6e, 0x63, 0x2f, 0x64, 0x65, + 0x76, 0x69, 0x63, 0x65, 0x5f, 0x73, 0x79, 0x6e, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x10, 0x78, 0x6d, 0x74, 0x70, 0x2e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x73, 0x79, 0x6e, + 0x63, 0x1a, 0x20, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x73, 0x79, 0x6e, 0x63, 0x2f, 0x63, + 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x74, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x73, 0x79, 0x6e, 0x63, + 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x73, 0x79, 0x6e, 0x63, + 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc4, 0x02, 0x0a, 0x0d, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, + 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x42, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x78, 0x6d, 0x74, 0x70, + 0x2e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x73, 0x79, 0x6e, 0x63, 0x2e, 0x42, 0x61, 0x63, + 0x6b, 0x75, 0x70, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x53, 0x61, 0x76, 0x65, 0x48, + 0x00, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x40, 0x0a, 0x05, 0x67, + 0x72, 0x6f, 0x75, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x78, 0x6d, 0x74, + 0x70, 0x2e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x73, 0x79, 0x6e, 0x63, 0x2e, 0x67, 0x72, + 0x6f, 0x75, 0x70, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, + 0x53, 0x61, 0x76, 0x65, 0x48, 0x00, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x58, 0x0a, + 0x0d, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x78, 0x6d, 0x74, 0x70, 0x2e, 0x64, 0x65, 0x76, 0x69, + 0x63, 0x65, 0x5f, 0x73, 0x79, 0x6e, 0x63, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, + 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x53, 0x61, 0x76, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x67, 0x72, 0x6f, 0x75, 0x70, + 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x48, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x73, 0x65, + 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x78, 0x6d, 0x74, 0x70, 0x2e, + 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x73, 0x79, 0x6e, 0x63, 0x2e, 0x63, 0x6f, 0x6e, 0x73, + 0x65, 0x6e, 0x74, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x65, + 0x6e, 0x74, 0x53, 0x61, 0x76, 0x65, 0x48, 0x00, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, + 0x74, 0x42, 0x09, 0x0a, 0x07, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0xd4, 0x01, 0x0a, + 0x12, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x53, + 0x61, 0x76, 0x65, 0x12, 0x44, 0x0a, 0x08, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x78, 0x6d, 0x74, 0x70, 0x2e, 0x64, 0x65, 0x76, + 0x69, 0x63, 0x65, 0x5f, 0x73, 0x79, 0x6e, 0x63, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x45, + 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x08, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x24, 0x0a, 0x0e, 0x65, 0x78, 0x70, + 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x5f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x0c, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x41, 0x74, 0x4e, 0x73, 0x12, + 0x1e, 0x0a, 0x08, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x03, 0x48, 0x00, 0x52, 0x07, 0x73, 0x74, 0x61, 0x72, 0x74, 0x4e, 0x73, 0x88, 0x01, 0x01, 0x12, + 0x1a, 0x0a, 0x06, 0x65, 0x6e, 0x64, 0x5f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x48, + 0x01, 0x52, 0x05, 0x65, 0x6e, 0x64, 0x4e, 0x73, 0x88, 0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, + 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x6e, 0x73, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x65, 0x6e, 0x64, + 0x5f, 0x6e, 0x73, 0x2a, 0x8f, 0x01, 0x0a, 0x16, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x45, 0x6c, + 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x28, + 0x0a, 0x24, 0x42, 0x41, 0x43, 0x4b, 0x55, 0x50, 0x5f, 0x45, 0x4c, 0x45, 0x4d, 0x45, 0x4e, 0x54, + 0x5f, 0x53, 0x45, 0x4c, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, + 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x25, 0x0a, 0x21, 0x42, 0x41, 0x43, 0x4b, + 0x55, 0x50, 0x5f, 0x45, 0x4c, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x53, 0x45, 0x4c, 0x45, 0x43, + 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x53, 0x10, 0x01, 0x12, + 0x24, 0x0a, 0x20, 0x42, 0x41, 0x43, 0x4b, 0x55, 0x50, 0x5f, 0x45, 0x4c, 0x45, 0x4d, 0x45, 0x4e, + 0x54, 0x5f, 0x53, 0x45, 0x4c, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x43, 0x4f, 0x4e, 0x53, + 0x45, 0x4e, 0x54, 0x10, 0x02, 0x42, 0xb1, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x6d, + 0x74, 0x70, 0x2e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x73, 0x79, 0x6e, 0x63, 0x42, 0x0f, + 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x53, 0x79, 0x6e, 0x63, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, + 0x01, 0x5a, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x6d, + 0x74, 0x70, 0x2f, 0x78, 0x6d, 0x74, 0x70, 0x64, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x2f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x73, 0x79, 0x6e, 0x63, 0xa2, 0x02, + 0x03, 0x58, 0x44, 0x58, 0xaa, 0x02, 0x0f, 0x58, 0x6d, 0x74, 0x70, 0x2e, 0x44, 0x65, 0x76, 0x69, + 0x63, 0x65, 0x53, 0x79, 0x6e, 0x63, 0xca, 0x02, 0x0f, 0x58, 0x6d, 0x74, 0x70, 0x5c, 0x44, 0x65, + 0x76, 0x69, 0x63, 0x65, 0x53, 0x79, 0x6e, 0x63, 0xe2, 0x02, 0x1b, 0x58, 0x6d, 0x74, 0x70, 0x5c, + 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x53, 0x79, 0x6e, 0x63, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x10, 0x58, 0x6d, 0x74, 0x70, 0x3a, 0x3a, 0x44, + 0x65, 0x76, 0x69, 0x63, 0x65, 0x53, 0x79, 0x6e, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, +}) + +var ( + file_device_sync_device_sync_proto_rawDescOnce sync.Once + file_device_sync_device_sync_proto_rawDescData []byte +) + +func file_device_sync_device_sync_proto_rawDescGZIP() []byte { + file_device_sync_device_sync_proto_rawDescOnce.Do(func() { + file_device_sync_device_sync_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_device_sync_device_sync_proto_rawDesc), len(file_device_sync_device_sync_proto_rawDesc))) + }) + return file_device_sync_device_sync_proto_rawDescData +} + +var file_device_sync_device_sync_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_device_sync_device_sync_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_device_sync_device_sync_proto_goTypes = []any{ + (BackupElementSelection)(0), // 0: xmtp.device_sync.BackupElementSelection + (*BackupElement)(nil), // 1: xmtp.device_sync.BackupElement + (*BackupMetadataSave)(nil), // 2: xmtp.device_sync.BackupMetadataSave + (*GroupSave)(nil), // 3: xmtp.device_sync.group_backup.GroupSave + (*GroupMessageSave)(nil), // 4: xmtp.device_sync.message_backup.GroupMessageSave + (*ConsentSave)(nil), // 5: xmtp.device_sync.consent_backup.ConsentSave +} +var file_device_sync_device_sync_proto_depIdxs = []int32{ + 2, // 0: xmtp.device_sync.BackupElement.metadata:type_name -> xmtp.device_sync.BackupMetadataSave + 3, // 1: xmtp.device_sync.BackupElement.group:type_name -> xmtp.device_sync.group_backup.GroupSave + 4, // 2: xmtp.device_sync.BackupElement.group_message:type_name -> xmtp.device_sync.message_backup.GroupMessageSave + 5, // 3: xmtp.device_sync.BackupElement.consent:type_name -> xmtp.device_sync.consent_backup.ConsentSave + 0, // 4: xmtp.device_sync.BackupMetadataSave.elements:type_name -> xmtp.device_sync.BackupElementSelection + 5, // [5:5] is the sub-list for method output_type + 5, // [5:5] is the sub-list for method input_type + 5, // [5:5] is the sub-list for extension type_name + 5, // [5:5] is the sub-list for extension extendee + 0, // [0:5] is the sub-list for field type_name +} + +func init() { file_device_sync_device_sync_proto_init() } +func file_device_sync_device_sync_proto_init() { + if File_device_sync_device_sync_proto != nil { + return + } + file_device_sync_consent_backup_proto_init() + file_device_sync_group_backup_proto_init() + file_device_sync_message_backup_proto_init() + file_device_sync_device_sync_proto_msgTypes[0].OneofWrappers = []any{ + (*BackupElement_Metadata)(nil), + (*BackupElement_Group)(nil), + (*BackupElement_GroupMessage)(nil), + (*BackupElement_Consent)(nil), + } + file_device_sync_device_sync_proto_msgTypes[1].OneofWrappers = []any{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_device_sync_device_sync_proto_rawDesc), len(file_device_sync_device_sync_proto_rawDesc)), + NumEnums: 1, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_device_sync_device_sync_proto_goTypes, + DependencyIndexes: file_device_sync_device_sync_proto_depIdxs, + EnumInfos: file_device_sync_device_sync_proto_enumTypes, + MessageInfos: file_device_sync_device_sync_proto_msgTypes, + }.Build() + File_device_sync_device_sync_proto = out.File + file_device_sync_device_sync_proto_goTypes = nil + file_device_sync_device_sync_proto_depIdxs = nil +} diff --git a/pkg/proto/device_sync/group_backup.pb.go b/pkg/proto/device_sync/group_backup.pb.go new file mode 100644 index 00000000..9db700fe --- /dev/null +++ b/pkg/proto/device_sync/group_backup.pb.go @@ -0,0 +1,412 @@ +// Definitions for backups + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.5 +// protoc (unknown) +// source: device_sync/group_backup.proto + +package device_sync + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" + unsafe "unsafe" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Group membership state +type GroupMembershipStateSave int32 + +const ( + GroupMembershipStateSave_GROUP_MEMBERSHIP_STATE_SAVE_UNSPECIFIED GroupMembershipStateSave = 0 + GroupMembershipStateSave_GROUP_MEMBERSHIP_STATE_SAVE_ALLOWED GroupMembershipStateSave = 1 + GroupMembershipStateSave_GROUP_MEMBERSHIP_STATE_SAVE_REJECTED GroupMembershipStateSave = 2 + GroupMembershipStateSave_GROUP_MEMBERSHIP_STATE_SAVE_PENDING GroupMembershipStateSave = 3 +) + +// Enum value maps for GroupMembershipStateSave. +var ( + GroupMembershipStateSave_name = map[int32]string{ + 0: "GROUP_MEMBERSHIP_STATE_SAVE_UNSPECIFIED", + 1: "GROUP_MEMBERSHIP_STATE_SAVE_ALLOWED", + 2: "GROUP_MEMBERSHIP_STATE_SAVE_REJECTED", + 3: "GROUP_MEMBERSHIP_STATE_SAVE_PENDING", + } + GroupMembershipStateSave_value = map[string]int32{ + "GROUP_MEMBERSHIP_STATE_SAVE_UNSPECIFIED": 0, + "GROUP_MEMBERSHIP_STATE_SAVE_ALLOWED": 1, + "GROUP_MEMBERSHIP_STATE_SAVE_REJECTED": 2, + "GROUP_MEMBERSHIP_STATE_SAVE_PENDING": 3, + } +) + +func (x GroupMembershipStateSave) Enum() *GroupMembershipStateSave { + p := new(GroupMembershipStateSave) + *p = x + return p +} + +func (x GroupMembershipStateSave) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (GroupMembershipStateSave) Descriptor() protoreflect.EnumDescriptor { + return file_device_sync_group_backup_proto_enumTypes[0].Descriptor() +} + +func (GroupMembershipStateSave) Type() protoreflect.EnumType { + return &file_device_sync_group_backup_proto_enumTypes[0] +} + +func (x GroupMembershipStateSave) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use GroupMembershipStateSave.Descriptor instead. +func (GroupMembershipStateSave) EnumDescriptor() ([]byte, []int) { + return file_device_sync_group_backup_proto_rawDescGZIP(), []int{0} +} + +// Conversation type +type ConversationTypeSave int32 + +const ( + ConversationTypeSave_CONVERSATION_TYPE_SAVE_UNSPECIFIED ConversationTypeSave = 0 + ConversationTypeSave_CONVERSATION_TYPE_SAVE_GROUP ConversationTypeSave = 1 + ConversationTypeSave_CONVERSATION_TYPE_SAVE_DM ConversationTypeSave = 2 + ConversationTypeSave_CONVERSATION_TYPE_SAVE_SYNC ConversationTypeSave = 3 +) + +// Enum value maps for ConversationTypeSave. +var ( + ConversationTypeSave_name = map[int32]string{ + 0: "CONVERSATION_TYPE_SAVE_UNSPECIFIED", + 1: "CONVERSATION_TYPE_SAVE_GROUP", + 2: "CONVERSATION_TYPE_SAVE_DM", + 3: "CONVERSATION_TYPE_SAVE_SYNC", + } + ConversationTypeSave_value = map[string]int32{ + "CONVERSATION_TYPE_SAVE_UNSPECIFIED": 0, + "CONVERSATION_TYPE_SAVE_GROUP": 1, + "CONVERSATION_TYPE_SAVE_DM": 2, + "CONVERSATION_TYPE_SAVE_SYNC": 3, + } +) + +func (x ConversationTypeSave) Enum() *ConversationTypeSave { + p := new(ConversationTypeSave) + *p = x + return p +} + +func (x ConversationTypeSave) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ConversationTypeSave) Descriptor() protoreflect.EnumDescriptor { + return file_device_sync_group_backup_proto_enumTypes[1].Descriptor() +} + +func (ConversationTypeSave) Type() protoreflect.EnumType { + return &file_device_sync_group_backup_proto_enumTypes[1] +} + +func (x ConversationTypeSave) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ConversationTypeSave.Descriptor instead. +func (ConversationTypeSave) EnumDescriptor() ([]byte, []int) { + return file_device_sync_group_backup_proto_rawDescGZIP(), []int{1} +} + +// Proto representation of a stored group +type GroupSave struct { + state protoimpl.MessageState `protogen:"open.v1"` + Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + CreatedAtNs int64 `protobuf:"varint,2,opt,name=created_at_ns,json=createdAtNs,proto3" json:"created_at_ns,omitempty"` + MembershipState GroupMembershipStateSave `protobuf:"varint,3,opt,name=membership_state,json=membershipState,proto3,enum=xmtp.device_sync.group_backup.GroupMembershipStateSave" json:"membership_state,omitempty"` + InstallationsLastChecked int64 `protobuf:"varint,4,opt,name=installations_last_checked,json=installationsLastChecked,proto3" json:"installations_last_checked,omitempty"` + AddedByInboxId string `protobuf:"bytes,5,opt,name=added_by_inbox_id,json=addedByInboxId,proto3" json:"added_by_inbox_id,omitempty"` + WelcomeId *int64 `protobuf:"varint,6,opt,name=welcome_id,json=welcomeId,proto3,oneof" json:"welcome_id,omitempty"` + RotatedAtNs int64 `protobuf:"varint,7,opt,name=rotated_at_ns,json=rotatedAtNs,proto3" json:"rotated_at_ns,omitempty"` + ConversationType ConversationTypeSave `protobuf:"varint,8,opt,name=conversation_type,json=conversationType,proto3,enum=xmtp.device_sync.group_backup.ConversationTypeSave" json:"conversation_type,omitempty"` + DmId *string `protobuf:"bytes,9,opt,name=dm_id,json=dmId,proto3,oneof" json:"dm_id,omitempty"` + LastMessageNs *int64 `protobuf:"varint,10,opt,name=last_message_ns,json=lastMessageNs,proto3,oneof" json:"last_message_ns,omitempty"` + MessageDisappearFromNs *int64 `protobuf:"varint,11,opt,name=message_disappear_from_ns,json=messageDisappearFromNs,proto3,oneof" json:"message_disappear_from_ns,omitempty"` + MessageDisappearInNs *int64 `protobuf:"varint,12,opt,name=message_disappear_in_ns,json=messageDisappearInNs,proto3,oneof" json:"message_disappear_in_ns,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GroupSave) Reset() { + *x = GroupSave{} + mi := &file_device_sync_group_backup_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GroupSave) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GroupSave) ProtoMessage() {} + +func (x *GroupSave) ProtoReflect() protoreflect.Message { + mi := &file_device_sync_group_backup_proto_msgTypes[0] + 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 GroupSave.ProtoReflect.Descriptor instead. +func (*GroupSave) Descriptor() ([]byte, []int) { + return file_device_sync_group_backup_proto_rawDescGZIP(), []int{0} +} + +func (x *GroupSave) GetId() []byte { + if x != nil { + return x.Id + } + return nil +} + +func (x *GroupSave) GetCreatedAtNs() int64 { + if x != nil { + return x.CreatedAtNs + } + return 0 +} + +func (x *GroupSave) GetMembershipState() GroupMembershipStateSave { + if x != nil { + return x.MembershipState + } + return GroupMembershipStateSave_GROUP_MEMBERSHIP_STATE_SAVE_UNSPECIFIED +} + +func (x *GroupSave) GetInstallationsLastChecked() int64 { + if x != nil { + return x.InstallationsLastChecked + } + return 0 +} + +func (x *GroupSave) GetAddedByInboxId() string { + if x != nil { + return x.AddedByInboxId + } + return "" +} + +func (x *GroupSave) GetWelcomeId() int64 { + if x != nil && x.WelcomeId != nil { + return *x.WelcomeId + } + return 0 +} + +func (x *GroupSave) GetRotatedAtNs() int64 { + if x != nil { + return x.RotatedAtNs + } + return 0 +} + +func (x *GroupSave) GetConversationType() ConversationTypeSave { + if x != nil { + return x.ConversationType + } + return ConversationTypeSave_CONVERSATION_TYPE_SAVE_UNSPECIFIED +} + +func (x *GroupSave) GetDmId() string { + if x != nil && x.DmId != nil { + return *x.DmId + } + return "" +} + +func (x *GroupSave) GetLastMessageNs() int64 { + if x != nil && x.LastMessageNs != nil { + return *x.LastMessageNs + } + return 0 +} + +func (x *GroupSave) GetMessageDisappearFromNs() int64 { + if x != nil && x.MessageDisappearFromNs != nil { + return *x.MessageDisappearFromNs + } + return 0 +} + +func (x *GroupSave) GetMessageDisappearInNs() int64 { + if x != nil && x.MessageDisappearInNs != nil { + return *x.MessageDisappearInNs + } + return 0 +} + +var File_device_sync_group_backup_proto protoreflect.FileDescriptor + +var file_device_sync_group_backup_proto_rawDesc = string([]byte{ + 0x0a, 0x1e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x73, 0x79, 0x6e, 0x63, 0x2f, 0x67, 0x72, + 0x6f, 0x75, 0x70, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x1d, 0x78, 0x6d, 0x74, 0x70, 0x2e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x73, 0x79, + 0x6e, 0x63, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x22, + 0xe0, 0x05, 0x0a, 0x09, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x61, 0x76, 0x65, 0x12, 0x0e, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x12, 0x22, 0x0a, + 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x5f, 0x6e, 0x73, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x4e, + 0x73, 0x12, 0x62, 0x0a, 0x10, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x5f, + 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x37, 0x2e, 0x78, 0x6d, + 0x74, 0x70, 0x2e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x73, 0x79, 0x6e, 0x63, 0x2e, 0x67, + 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x2e, 0x47, 0x72, 0x6f, 0x75, + 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x53, 0x74, 0x61, 0x74, 0x65, + 0x53, 0x61, 0x76, 0x65, 0x52, 0x0f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3c, 0x0a, 0x1a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x5f, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x63, 0x68, 0x65, 0x63, + 0x6b, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x18, 0x69, 0x6e, 0x73, 0x74, 0x61, + 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x4c, 0x61, 0x73, 0x74, 0x43, 0x68, 0x65, 0x63, + 0x6b, 0x65, 0x64, 0x12, 0x29, 0x0a, 0x11, 0x61, 0x64, 0x64, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x5f, + 0x69, 0x6e, 0x62, 0x6f, 0x78, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, + 0x61, 0x64, 0x64, 0x65, 0x64, 0x42, 0x79, 0x49, 0x6e, 0x62, 0x6f, 0x78, 0x49, 0x64, 0x12, 0x22, + 0x0a, 0x0a, 0x77, 0x65, 0x6c, 0x63, 0x6f, 0x6d, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x03, 0x48, 0x00, 0x52, 0x09, 0x77, 0x65, 0x6c, 0x63, 0x6f, 0x6d, 0x65, 0x49, 0x64, 0x88, + 0x01, 0x01, 0x12, 0x22, 0x0a, 0x0d, 0x72, 0x6f, 0x74, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, + 0x5f, 0x6e, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x72, 0x6f, 0x74, 0x61, 0x74, + 0x65, 0x64, 0x41, 0x74, 0x4e, 0x73, 0x12, 0x60, 0x0a, 0x11, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, + 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x33, 0x2e, 0x78, 0x6d, 0x74, 0x70, 0x2e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, + 0x73, 0x79, 0x6e, 0x63, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, + 0x70, 0x2e, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, + 0x70, 0x65, 0x53, 0x61, 0x76, 0x65, 0x52, 0x10, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x05, 0x64, 0x6d, 0x5f, 0x69, + 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x04, 0x64, 0x6d, 0x49, 0x64, 0x88, + 0x01, 0x01, 0x12, 0x2b, 0x0a, 0x0f, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x5f, 0x6e, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x48, 0x02, 0x52, 0x0d, 0x6c, + 0x61, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4e, 0x73, 0x88, 0x01, 0x01, 0x12, + 0x3e, 0x0a, 0x19, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x64, 0x69, 0x73, 0x61, 0x70, + 0x70, 0x65, 0x61, 0x72, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x6e, 0x73, 0x18, 0x0b, 0x20, 0x01, + 0x28, 0x03, 0x48, 0x03, 0x52, 0x16, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x44, 0x69, 0x73, + 0x61, 0x70, 0x70, 0x65, 0x61, 0x72, 0x46, 0x72, 0x6f, 0x6d, 0x4e, 0x73, 0x88, 0x01, 0x01, 0x12, + 0x3a, 0x0a, 0x17, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x64, 0x69, 0x73, 0x61, 0x70, + 0x70, 0x65, 0x61, 0x72, 0x5f, 0x69, 0x6e, 0x5f, 0x6e, 0x73, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x03, + 0x48, 0x04, 0x52, 0x14, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x44, 0x69, 0x73, 0x61, 0x70, + 0x70, 0x65, 0x61, 0x72, 0x49, 0x6e, 0x4e, 0x73, 0x88, 0x01, 0x01, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, + 0x77, 0x65, 0x6c, 0x63, 0x6f, 0x6d, 0x65, 0x5f, 0x69, 0x64, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x64, + 0x6d, 0x5f, 0x69, 0x64, 0x42, 0x12, 0x0a, 0x10, 0x5f, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x6d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x73, 0x42, 0x1c, 0x0a, 0x1a, 0x5f, 0x6d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x5f, 0x64, 0x69, 0x73, 0x61, 0x70, 0x70, 0x65, 0x61, 0x72, 0x5f, 0x66, + 0x72, 0x6f, 0x6d, 0x5f, 0x6e, 0x73, 0x42, 0x1a, 0x0a, 0x18, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x5f, 0x64, 0x69, 0x73, 0x61, 0x70, 0x70, 0x65, 0x61, 0x72, 0x5f, 0x69, 0x6e, 0x5f, + 0x6e, 0x73, 0x2a, 0xc3, 0x01, 0x0a, 0x18, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, + 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x53, 0x74, 0x61, 0x74, 0x65, 0x53, 0x61, 0x76, 0x65, 0x12, + 0x2b, 0x0a, 0x27, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x53, + 0x48, 0x49, 0x50, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x53, 0x41, 0x56, 0x45, 0x5f, 0x55, + 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x27, 0x0a, 0x23, + 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x53, 0x48, 0x49, 0x50, + 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x53, 0x41, 0x56, 0x45, 0x5f, 0x41, 0x4c, 0x4c, 0x4f, + 0x57, 0x45, 0x44, 0x10, 0x01, 0x12, 0x28, 0x0a, 0x24, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x4d, + 0x45, 0x4d, 0x42, 0x45, 0x52, 0x53, 0x48, 0x49, 0x50, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, + 0x53, 0x41, 0x56, 0x45, 0x5f, 0x52, 0x45, 0x4a, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x02, 0x12, + 0x27, 0x0a, 0x23, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x53, + 0x48, 0x49, 0x50, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x53, 0x41, 0x56, 0x45, 0x5f, 0x50, + 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x03, 0x2a, 0xa0, 0x01, 0x0a, 0x14, 0x43, 0x6f, 0x6e, + 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x53, 0x61, 0x76, + 0x65, 0x12, 0x26, 0x0a, 0x22, 0x43, 0x4f, 0x4e, 0x56, 0x45, 0x52, 0x53, 0x41, 0x54, 0x49, 0x4f, + 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x41, 0x56, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, + 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x20, 0x0a, 0x1c, 0x43, 0x4f, 0x4e, + 0x56, 0x45, 0x52, 0x53, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, + 0x41, 0x56, 0x45, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x10, 0x01, 0x12, 0x1d, 0x0a, 0x19, 0x43, + 0x4f, 0x4e, 0x56, 0x45, 0x52, 0x53, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, + 0x5f, 0x53, 0x41, 0x56, 0x45, 0x5f, 0x44, 0x4d, 0x10, 0x02, 0x12, 0x1f, 0x0a, 0x1b, 0x43, 0x4f, + 0x4e, 0x56, 0x45, 0x52, 0x53, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x53, 0x41, 0x56, 0x45, 0x5f, 0x53, 0x59, 0x4e, 0x43, 0x10, 0x03, 0x42, 0xf0, 0x01, 0x0a, 0x21, + 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x6d, 0x74, 0x70, 0x2e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, + 0x73, 0x79, 0x6e, 0x63, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, + 0x70, 0x42, 0x10, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x78, 0x6d, 0x74, 0x70, 0x2f, 0x78, 0x6d, 0x74, 0x70, 0x64, 0x2f, 0x70, 0x6b, 0x67, + 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x73, 0x79, + 0x6e, 0x63, 0xa2, 0x02, 0x03, 0x58, 0x44, 0x47, 0xaa, 0x02, 0x1b, 0x58, 0x6d, 0x74, 0x70, 0x2e, + 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x53, 0x79, 0x6e, 0x63, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, + 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0xca, 0x02, 0x1b, 0x58, 0x6d, 0x74, 0x70, 0x5c, 0x44, 0x65, + 0x76, 0x69, 0x63, 0x65, 0x53, 0x79, 0x6e, 0x63, 0x5c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x61, + 0x63, 0x6b, 0x75, 0x70, 0xe2, 0x02, 0x27, 0x58, 0x6d, 0x74, 0x70, 0x5c, 0x44, 0x65, 0x76, 0x69, + 0x63, 0x65, 0x53, 0x79, 0x6e, 0x63, 0x5c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x61, 0x63, 0x6b, + 0x75, 0x70, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, + 0x1d, 0x58, 0x6d, 0x74, 0x70, 0x3a, 0x3a, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x53, 0x79, 0x6e, + 0x63, 0x3a, 0x3a, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +}) + +var ( + file_device_sync_group_backup_proto_rawDescOnce sync.Once + file_device_sync_group_backup_proto_rawDescData []byte +) + +func file_device_sync_group_backup_proto_rawDescGZIP() []byte { + file_device_sync_group_backup_proto_rawDescOnce.Do(func() { + file_device_sync_group_backup_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_device_sync_group_backup_proto_rawDesc), len(file_device_sync_group_backup_proto_rawDesc))) + }) + return file_device_sync_group_backup_proto_rawDescData +} + +var file_device_sync_group_backup_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_device_sync_group_backup_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_device_sync_group_backup_proto_goTypes = []any{ + (GroupMembershipStateSave)(0), // 0: xmtp.device_sync.group_backup.GroupMembershipStateSave + (ConversationTypeSave)(0), // 1: xmtp.device_sync.group_backup.ConversationTypeSave + (*GroupSave)(nil), // 2: xmtp.device_sync.group_backup.GroupSave +} +var file_device_sync_group_backup_proto_depIdxs = []int32{ + 0, // 0: xmtp.device_sync.group_backup.GroupSave.membership_state:type_name -> xmtp.device_sync.group_backup.GroupMembershipStateSave + 1, // 1: xmtp.device_sync.group_backup.GroupSave.conversation_type:type_name -> xmtp.device_sync.group_backup.ConversationTypeSave + 2, // [2:2] is the sub-list for method output_type + 2, // [2:2] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_device_sync_group_backup_proto_init() } +func file_device_sync_group_backup_proto_init() { + if File_device_sync_group_backup_proto != nil { + return + } + file_device_sync_group_backup_proto_msgTypes[0].OneofWrappers = []any{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_device_sync_group_backup_proto_rawDesc), len(file_device_sync_group_backup_proto_rawDesc)), + NumEnums: 2, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_device_sync_group_backup_proto_goTypes, + DependencyIndexes: file_device_sync_group_backup_proto_depIdxs, + EnumInfos: file_device_sync_group_backup_proto_enumTypes, + MessageInfos: file_device_sync_group_backup_proto_msgTypes, + }.Build() + File_device_sync_group_backup_proto = out.File + file_device_sync_group_backup_proto_goTypes = nil + file_device_sync_group_backup_proto_depIdxs = nil +} diff --git a/pkg/proto/device_sync/message_backup.pb.go b/pkg/proto/device_sync/message_backup.pb.go new file mode 100644 index 00000000..780be16b --- /dev/null +++ b/pkg/proto/device_sync/message_backup.pb.go @@ -0,0 +1,513 @@ +// Definitions for backups + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.5 +// protoc (unknown) +// source: device_sync/message_backup.proto + +package device_sync + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" + unsafe "unsafe" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Group message kind +type GroupMessageKindSave int32 + +const ( + GroupMessageKindSave_GROUP_MESSAGE_KIND_SAVE_UNSPECIFIED GroupMessageKindSave = 0 + GroupMessageKindSave_GROUP_MESSAGE_KIND_SAVE_APPLICATION GroupMessageKindSave = 1 + GroupMessageKindSave_GROUP_MESSAGE_KIND_SAVE_MEMBERSHIP_CHANGE GroupMessageKindSave = 2 +) + +// Enum value maps for GroupMessageKindSave. +var ( + GroupMessageKindSave_name = map[int32]string{ + 0: "GROUP_MESSAGE_KIND_SAVE_UNSPECIFIED", + 1: "GROUP_MESSAGE_KIND_SAVE_APPLICATION", + 2: "GROUP_MESSAGE_KIND_SAVE_MEMBERSHIP_CHANGE", + } + GroupMessageKindSave_value = map[string]int32{ + "GROUP_MESSAGE_KIND_SAVE_UNSPECIFIED": 0, + "GROUP_MESSAGE_KIND_SAVE_APPLICATION": 1, + "GROUP_MESSAGE_KIND_SAVE_MEMBERSHIP_CHANGE": 2, + } +) + +func (x GroupMessageKindSave) Enum() *GroupMessageKindSave { + p := new(GroupMessageKindSave) + *p = x + return p +} + +func (x GroupMessageKindSave) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (GroupMessageKindSave) Descriptor() protoreflect.EnumDescriptor { + return file_device_sync_message_backup_proto_enumTypes[0].Descriptor() +} + +func (GroupMessageKindSave) Type() protoreflect.EnumType { + return &file_device_sync_message_backup_proto_enumTypes[0] +} + +func (x GroupMessageKindSave) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use GroupMessageKindSave.Descriptor instead. +func (GroupMessageKindSave) EnumDescriptor() ([]byte, []int) { + return file_device_sync_message_backup_proto_rawDescGZIP(), []int{0} +} + +// Group message delivery status +type DeliveryStatusSave int32 + +const ( + DeliveryStatusSave_DELIVERY_STATUS_SAVE_UNSPECIFIED DeliveryStatusSave = 0 + DeliveryStatusSave_DELIVERY_STATUS_SAVE_UNPUBLISHED DeliveryStatusSave = 1 + DeliveryStatusSave_DELIVERY_STATUS_SAVE_PUBLISHED DeliveryStatusSave = 2 + DeliveryStatusSave_DELIVERY_STATUS_SAVE_FAILED DeliveryStatusSave = 3 +) + +// Enum value maps for DeliveryStatusSave. +var ( + DeliveryStatusSave_name = map[int32]string{ + 0: "DELIVERY_STATUS_SAVE_UNSPECIFIED", + 1: "DELIVERY_STATUS_SAVE_UNPUBLISHED", + 2: "DELIVERY_STATUS_SAVE_PUBLISHED", + 3: "DELIVERY_STATUS_SAVE_FAILED", + } + DeliveryStatusSave_value = map[string]int32{ + "DELIVERY_STATUS_SAVE_UNSPECIFIED": 0, + "DELIVERY_STATUS_SAVE_UNPUBLISHED": 1, + "DELIVERY_STATUS_SAVE_PUBLISHED": 2, + "DELIVERY_STATUS_SAVE_FAILED": 3, + } +) + +func (x DeliveryStatusSave) Enum() *DeliveryStatusSave { + p := new(DeliveryStatusSave) + *p = x + return p +} + +func (x DeliveryStatusSave) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (DeliveryStatusSave) Descriptor() protoreflect.EnumDescriptor { + return file_device_sync_message_backup_proto_enumTypes[1].Descriptor() +} + +func (DeliveryStatusSave) Type() protoreflect.EnumType { + return &file_device_sync_message_backup_proto_enumTypes[1] +} + +func (x DeliveryStatusSave) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use DeliveryStatusSave.Descriptor instead. +func (DeliveryStatusSave) EnumDescriptor() ([]byte, []int) { + return file_device_sync_message_backup_proto_rawDescGZIP(), []int{1} +} + +// Group message content type +type ContentTypeSave int32 + +const ( + ContentTypeSave_CONTENT_TYPE_SAVE_UNSPECIFIED ContentTypeSave = 0 + ContentTypeSave_CONTENT_TYPE_SAVE_UNKNOWN ContentTypeSave = 1 + ContentTypeSave_CONTENT_TYPE_SAVE_TEXT ContentTypeSave = 2 + ContentTypeSave_CONTENT_TYPE_SAVE_GROUP_MEMBERSHIP_CHANGE ContentTypeSave = 3 + ContentTypeSave_CONTENT_TYPE_SAVE_GROUP_UPDATED ContentTypeSave = 4 + ContentTypeSave_CONTENT_TYPE_SAVE_REACTION ContentTypeSave = 5 + ContentTypeSave_CONTENT_TYPE_SAVE_READ_RECEIPT ContentTypeSave = 6 + ContentTypeSave_CONTENT_TYPE_SAVE_REPLY ContentTypeSave = 7 + ContentTypeSave_CONTENT_TYPE_SAVE_ATTACHMENT ContentTypeSave = 8 + ContentTypeSave_CONTENT_TYPE_SAVE_REMOTE_ATTACHMENT ContentTypeSave = 9 + ContentTypeSave_CONTENT_TYPE_SAVE_TRANSACTION_REFERENCE ContentTypeSave = 10 +) + +// Enum value maps for ContentTypeSave. +var ( + ContentTypeSave_name = map[int32]string{ + 0: "CONTENT_TYPE_SAVE_UNSPECIFIED", + 1: "CONTENT_TYPE_SAVE_UNKNOWN", + 2: "CONTENT_TYPE_SAVE_TEXT", + 3: "CONTENT_TYPE_SAVE_GROUP_MEMBERSHIP_CHANGE", + 4: "CONTENT_TYPE_SAVE_GROUP_UPDATED", + 5: "CONTENT_TYPE_SAVE_REACTION", + 6: "CONTENT_TYPE_SAVE_READ_RECEIPT", + 7: "CONTENT_TYPE_SAVE_REPLY", + 8: "CONTENT_TYPE_SAVE_ATTACHMENT", + 9: "CONTENT_TYPE_SAVE_REMOTE_ATTACHMENT", + 10: "CONTENT_TYPE_SAVE_TRANSACTION_REFERENCE", + } + ContentTypeSave_value = map[string]int32{ + "CONTENT_TYPE_SAVE_UNSPECIFIED": 0, + "CONTENT_TYPE_SAVE_UNKNOWN": 1, + "CONTENT_TYPE_SAVE_TEXT": 2, + "CONTENT_TYPE_SAVE_GROUP_MEMBERSHIP_CHANGE": 3, + "CONTENT_TYPE_SAVE_GROUP_UPDATED": 4, + "CONTENT_TYPE_SAVE_REACTION": 5, + "CONTENT_TYPE_SAVE_READ_RECEIPT": 6, + "CONTENT_TYPE_SAVE_REPLY": 7, + "CONTENT_TYPE_SAVE_ATTACHMENT": 8, + "CONTENT_TYPE_SAVE_REMOTE_ATTACHMENT": 9, + "CONTENT_TYPE_SAVE_TRANSACTION_REFERENCE": 10, + } +) + +func (x ContentTypeSave) Enum() *ContentTypeSave { + p := new(ContentTypeSave) + *p = x + return p +} + +func (x ContentTypeSave) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ContentTypeSave) Descriptor() protoreflect.EnumDescriptor { + return file_device_sync_message_backup_proto_enumTypes[2].Descriptor() +} + +func (ContentTypeSave) Type() protoreflect.EnumType { + return &file_device_sync_message_backup_proto_enumTypes[2] +} + +func (x ContentTypeSave) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ContentTypeSave.Descriptor instead. +func (ContentTypeSave) EnumDescriptor() ([]byte, []int) { + return file_device_sync_message_backup_proto_rawDescGZIP(), []int{2} +} + +// Proto representation of a stored group message +type GroupMessageSave struct { + state protoimpl.MessageState `protogen:"open.v1"` + Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + GroupId []byte `protobuf:"bytes,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` + DecryptedMessageBytes []byte `protobuf:"bytes,3,opt,name=decrypted_message_bytes,json=decryptedMessageBytes,proto3" json:"decrypted_message_bytes,omitempty"` + SentAtNs int64 `protobuf:"varint,4,opt,name=sent_at_ns,json=sentAtNs,proto3" json:"sent_at_ns,omitempty"` + Kind GroupMessageKindSave `protobuf:"varint,5,opt,name=kind,proto3,enum=xmtp.device_sync.message_backup.GroupMessageKindSave" json:"kind,omitempty"` + SenderInstallationId []byte `protobuf:"bytes,6,opt,name=sender_installation_id,json=senderInstallationId,proto3" json:"sender_installation_id,omitempty"` + SenderInboxId string `protobuf:"bytes,7,opt,name=sender_inbox_id,json=senderInboxId,proto3" json:"sender_inbox_id,omitempty"` + DeliveryStatus DeliveryStatusSave `protobuf:"varint,8,opt,name=delivery_status,json=deliveryStatus,proto3,enum=xmtp.device_sync.message_backup.DeliveryStatusSave" json:"delivery_status,omitempty"` + ContentType ContentTypeSave `protobuf:"varint,9,opt,name=content_type,json=contentType,proto3,enum=xmtp.device_sync.message_backup.ContentTypeSave" json:"content_type,omitempty"` + VersionMajor int32 `protobuf:"varint,10,opt,name=version_major,json=versionMajor,proto3" json:"version_major,omitempty"` + VersionMinor int32 `protobuf:"varint,11,opt,name=version_minor,json=versionMinor,proto3" json:"version_minor,omitempty"` + AuthorityId string `protobuf:"bytes,12,opt,name=authority_id,json=authorityId,proto3" json:"authority_id,omitempty"` + ReferenceId []byte `protobuf:"bytes,13,opt,name=reference_id,json=referenceId,proto3,oneof" json:"reference_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GroupMessageSave) Reset() { + *x = GroupMessageSave{} + mi := &file_device_sync_message_backup_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GroupMessageSave) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GroupMessageSave) ProtoMessage() {} + +func (x *GroupMessageSave) ProtoReflect() protoreflect.Message { + mi := &file_device_sync_message_backup_proto_msgTypes[0] + 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 GroupMessageSave.ProtoReflect.Descriptor instead. +func (*GroupMessageSave) Descriptor() ([]byte, []int) { + return file_device_sync_message_backup_proto_rawDescGZIP(), []int{0} +} + +func (x *GroupMessageSave) GetId() []byte { + if x != nil { + return x.Id + } + return nil +} + +func (x *GroupMessageSave) GetGroupId() []byte { + if x != nil { + return x.GroupId + } + return nil +} + +func (x *GroupMessageSave) GetDecryptedMessageBytes() []byte { + if x != nil { + return x.DecryptedMessageBytes + } + return nil +} + +func (x *GroupMessageSave) GetSentAtNs() int64 { + if x != nil { + return x.SentAtNs + } + return 0 +} + +func (x *GroupMessageSave) GetKind() GroupMessageKindSave { + if x != nil { + return x.Kind + } + return GroupMessageKindSave_GROUP_MESSAGE_KIND_SAVE_UNSPECIFIED +} + +func (x *GroupMessageSave) GetSenderInstallationId() []byte { + if x != nil { + return x.SenderInstallationId + } + return nil +} + +func (x *GroupMessageSave) GetSenderInboxId() string { + if x != nil { + return x.SenderInboxId + } + return "" +} + +func (x *GroupMessageSave) GetDeliveryStatus() DeliveryStatusSave { + if x != nil { + return x.DeliveryStatus + } + return DeliveryStatusSave_DELIVERY_STATUS_SAVE_UNSPECIFIED +} + +func (x *GroupMessageSave) GetContentType() ContentTypeSave { + if x != nil { + return x.ContentType + } + return ContentTypeSave_CONTENT_TYPE_SAVE_UNSPECIFIED +} + +func (x *GroupMessageSave) GetVersionMajor() int32 { + if x != nil { + return x.VersionMajor + } + return 0 +} + +func (x *GroupMessageSave) GetVersionMinor() int32 { + if x != nil { + return x.VersionMinor + } + return 0 +} + +func (x *GroupMessageSave) GetAuthorityId() string { + if x != nil { + return x.AuthorityId + } + return "" +} + +func (x *GroupMessageSave) GetReferenceId() []byte { + if x != nil { + return x.ReferenceId + } + return nil +} + +var File_device_sync_message_backup_proto protoreflect.FileDescriptor + +var file_device_sync_message_backup_proto_rawDesc = string([]byte{ + 0x0a, 0x20, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x73, 0x79, 0x6e, 0x63, 0x2f, 0x6d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x12, 0x1f, 0x78, 0x6d, 0x74, 0x70, 0x2e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, + 0x73, 0x79, 0x6e, 0x63, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x62, 0x61, 0x63, + 0x6b, 0x75, 0x70, 0x22, 0x95, 0x05, 0x0a, 0x10, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x53, 0x61, 0x76, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, + 0x70, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, + 0x70, 0x49, 0x64, 0x12, 0x36, 0x0a, 0x17, 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, + 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x15, 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x1c, 0x0a, 0x0a, 0x73, + 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x74, 0x5f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x08, 0x73, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x4e, 0x73, 0x12, 0x49, 0x0a, 0x04, 0x6b, 0x69, 0x6e, + 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x35, 0x2e, 0x78, 0x6d, 0x74, 0x70, 0x2e, 0x64, + 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x73, 0x79, 0x6e, 0x63, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4b, 0x69, 0x6e, 0x64, 0x53, 0x61, 0x76, 0x65, 0x52, 0x04, + 0x6b, 0x69, 0x6e, 0x64, 0x12, 0x34, 0x0a, 0x16, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x69, + 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x14, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x49, 0x6e, 0x73, 0x74, + 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0f, 0x73, 0x65, + 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x62, 0x6f, 0x78, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x49, 0x6e, 0x62, 0x6f, 0x78, + 0x49, 0x64, 0x12, 0x5c, 0x0a, 0x0f, 0x64, 0x65, 0x6c, 0x69, 0x76, 0x65, 0x72, 0x79, 0x5f, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x33, 0x2e, 0x78, 0x6d, + 0x74, 0x70, 0x2e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x73, 0x79, 0x6e, 0x63, 0x2e, 0x6d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x2e, 0x44, 0x65, + 0x6c, 0x69, 0x76, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x53, 0x61, 0x76, 0x65, + 0x52, 0x0e, 0x64, 0x65, 0x6c, 0x69, 0x76, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x12, 0x53, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x78, 0x6d, 0x74, 0x70, 0x2e, 0x64, 0x65, + 0x76, 0x69, 0x63, 0x65, 0x5f, 0x73, 0x79, 0x6e, 0x63, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, + 0x54, 0x79, 0x70, 0x65, 0x53, 0x61, 0x76, 0x65, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, + 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x5f, 0x6d, 0x61, 0x6a, 0x6f, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x76, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x4d, 0x61, 0x6a, 0x6f, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x76, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x69, 0x6e, 0x6f, 0x72, 0x18, 0x0b, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x0c, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x4d, 0x69, 0x6e, 0x6f, 0x72, 0x12, + 0x21, 0x0a, 0x0c, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, + 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, + 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0c, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x5f, + 0x69, 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x0b, 0x72, 0x65, 0x66, 0x65, + 0x72, 0x65, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x72, + 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x2a, 0x97, 0x01, 0x0a, 0x14, + 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4b, 0x69, 0x6e, 0x64, + 0x53, 0x61, 0x76, 0x65, 0x12, 0x27, 0x0a, 0x23, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x4d, 0x45, + 0x53, 0x53, 0x41, 0x47, 0x45, 0x5f, 0x4b, 0x49, 0x4e, 0x44, 0x5f, 0x53, 0x41, 0x56, 0x45, 0x5f, + 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x27, 0x0a, + 0x23, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x5f, 0x4b, + 0x49, 0x4e, 0x44, 0x5f, 0x53, 0x41, 0x56, 0x45, 0x5f, 0x41, 0x50, 0x50, 0x4c, 0x49, 0x43, 0x41, + 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x01, 0x12, 0x2d, 0x0a, 0x29, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, + 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x5f, 0x4b, 0x49, 0x4e, 0x44, 0x5f, 0x53, 0x41, 0x56, + 0x45, 0x5f, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x53, 0x48, 0x49, 0x50, 0x5f, 0x43, 0x48, 0x41, + 0x4e, 0x47, 0x45, 0x10, 0x02, 0x2a, 0xa5, 0x01, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x69, 0x76, 0x65, + 0x72, 0x79, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x53, 0x61, 0x76, 0x65, 0x12, 0x24, 0x0a, 0x20, + 0x44, 0x45, 0x4c, 0x49, 0x56, 0x45, 0x52, 0x59, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, + 0x53, 0x41, 0x56, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, + 0x10, 0x00, 0x12, 0x24, 0x0a, 0x20, 0x44, 0x45, 0x4c, 0x49, 0x56, 0x45, 0x52, 0x59, 0x5f, 0x53, + 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x53, 0x41, 0x56, 0x45, 0x5f, 0x55, 0x4e, 0x50, 0x55, 0x42, + 0x4c, 0x49, 0x53, 0x48, 0x45, 0x44, 0x10, 0x01, 0x12, 0x22, 0x0a, 0x1e, 0x44, 0x45, 0x4c, 0x49, + 0x56, 0x45, 0x52, 0x59, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x53, 0x41, 0x56, 0x45, + 0x5f, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x53, 0x48, 0x45, 0x44, 0x10, 0x02, 0x12, 0x1f, 0x0a, 0x1b, + 0x44, 0x45, 0x4c, 0x49, 0x56, 0x45, 0x52, 0x59, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, + 0x53, 0x41, 0x56, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x2a, 0x9c, 0x03, + 0x0a, 0x0f, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x53, 0x61, 0x76, + 0x65, 0x12, 0x21, 0x0a, 0x1d, 0x43, 0x4f, 0x4e, 0x54, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x53, 0x41, 0x56, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, + 0x45, 0x44, 0x10, 0x00, 0x12, 0x1d, 0x0a, 0x19, 0x43, 0x4f, 0x4e, 0x54, 0x45, 0x4e, 0x54, 0x5f, + 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x41, 0x56, 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, + 0x4e, 0x10, 0x01, 0x12, 0x1a, 0x0a, 0x16, 0x43, 0x4f, 0x4e, 0x54, 0x45, 0x4e, 0x54, 0x5f, 0x54, + 0x59, 0x50, 0x45, 0x5f, 0x53, 0x41, 0x56, 0x45, 0x5f, 0x54, 0x45, 0x58, 0x54, 0x10, 0x02, 0x12, + 0x2d, 0x0a, 0x29, 0x43, 0x4f, 0x4e, 0x54, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x53, 0x41, 0x56, 0x45, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x4d, 0x45, 0x4d, 0x42, 0x45, + 0x52, 0x53, 0x48, 0x49, 0x50, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x10, 0x03, 0x12, 0x23, + 0x0a, 0x1f, 0x43, 0x4f, 0x4e, 0x54, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, + 0x41, 0x56, 0x45, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, + 0x44, 0x10, 0x04, 0x12, 0x1e, 0x0a, 0x1a, 0x43, 0x4f, 0x4e, 0x54, 0x45, 0x4e, 0x54, 0x5f, 0x54, + 0x59, 0x50, 0x45, 0x5f, 0x53, 0x41, 0x56, 0x45, 0x5f, 0x52, 0x45, 0x41, 0x43, 0x54, 0x49, 0x4f, + 0x4e, 0x10, 0x05, 0x12, 0x22, 0x0a, 0x1e, 0x43, 0x4f, 0x4e, 0x54, 0x45, 0x4e, 0x54, 0x5f, 0x54, + 0x59, 0x50, 0x45, 0x5f, 0x53, 0x41, 0x56, 0x45, 0x5f, 0x52, 0x45, 0x41, 0x44, 0x5f, 0x52, 0x45, + 0x43, 0x45, 0x49, 0x50, 0x54, 0x10, 0x06, 0x12, 0x1b, 0x0a, 0x17, 0x43, 0x4f, 0x4e, 0x54, 0x45, + 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x41, 0x56, 0x45, 0x5f, 0x52, 0x45, 0x50, + 0x4c, 0x59, 0x10, 0x07, 0x12, 0x20, 0x0a, 0x1c, 0x43, 0x4f, 0x4e, 0x54, 0x45, 0x4e, 0x54, 0x5f, + 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x41, 0x56, 0x45, 0x5f, 0x41, 0x54, 0x54, 0x41, 0x43, 0x48, + 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x08, 0x12, 0x27, 0x0a, 0x23, 0x43, 0x4f, 0x4e, 0x54, 0x45, 0x4e, + 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x41, 0x56, 0x45, 0x5f, 0x52, 0x45, 0x4d, 0x4f, + 0x54, 0x45, 0x5f, 0x41, 0x54, 0x54, 0x41, 0x43, 0x48, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x09, 0x12, + 0x2b, 0x0a, 0x27, 0x43, 0x4f, 0x4e, 0x54, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x53, 0x41, 0x56, 0x45, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, + 0x5f, 0x52, 0x45, 0x46, 0x45, 0x52, 0x45, 0x4e, 0x43, 0x45, 0x10, 0x0a, 0x42, 0xfc, 0x01, 0x0a, + 0x23, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x6d, 0x74, 0x70, 0x2e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, + 0x5f, 0x73, 0x79, 0x6e, 0x63, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x62, 0x61, + 0x63, 0x6b, 0x75, 0x70, 0x42, 0x12, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x61, 0x63, + 0x6b, 0x75, 0x70, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2b, 0x67, 0x69, 0x74, 0x68, + 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x6d, 0x74, 0x70, 0x2f, 0x78, 0x6d, 0x74, 0x70, + 0x64, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x64, 0x65, 0x76, 0x69, + 0x63, 0x65, 0x5f, 0x73, 0x79, 0x6e, 0x63, 0xa2, 0x02, 0x03, 0x58, 0x44, 0x4d, 0xaa, 0x02, 0x1d, + 0x58, 0x6d, 0x74, 0x70, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x53, 0x79, 0x6e, 0x63, 0x2e, + 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0xca, 0x02, 0x1d, + 0x58, 0x6d, 0x74, 0x70, 0x5c, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x53, 0x79, 0x6e, 0x63, 0x5c, + 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0xe2, 0x02, 0x29, + 0x58, 0x6d, 0x74, 0x70, 0x5c, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x53, 0x79, 0x6e, 0x63, 0x5c, + 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x5c, 0x47, 0x50, + 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1f, 0x58, 0x6d, 0x74, 0x70, + 0x3a, 0x3a, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x53, 0x79, 0x6e, 0x63, 0x3a, 0x3a, 0x4d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +}) + +var ( + file_device_sync_message_backup_proto_rawDescOnce sync.Once + file_device_sync_message_backup_proto_rawDescData []byte +) + +func file_device_sync_message_backup_proto_rawDescGZIP() []byte { + file_device_sync_message_backup_proto_rawDescOnce.Do(func() { + file_device_sync_message_backup_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_device_sync_message_backup_proto_rawDesc), len(file_device_sync_message_backup_proto_rawDesc))) + }) + return file_device_sync_message_backup_proto_rawDescData +} + +var file_device_sync_message_backup_proto_enumTypes = make([]protoimpl.EnumInfo, 3) +var file_device_sync_message_backup_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_device_sync_message_backup_proto_goTypes = []any{ + (GroupMessageKindSave)(0), // 0: xmtp.device_sync.message_backup.GroupMessageKindSave + (DeliveryStatusSave)(0), // 1: xmtp.device_sync.message_backup.DeliveryStatusSave + (ContentTypeSave)(0), // 2: xmtp.device_sync.message_backup.ContentTypeSave + (*GroupMessageSave)(nil), // 3: xmtp.device_sync.message_backup.GroupMessageSave +} +var file_device_sync_message_backup_proto_depIdxs = []int32{ + 0, // 0: xmtp.device_sync.message_backup.GroupMessageSave.kind:type_name -> xmtp.device_sync.message_backup.GroupMessageKindSave + 1, // 1: xmtp.device_sync.message_backup.GroupMessageSave.delivery_status:type_name -> xmtp.device_sync.message_backup.DeliveryStatusSave + 2, // 2: xmtp.device_sync.message_backup.GroupMessageSave.content_type:type_name -> xmtp.device_sync.message_backup.ContentTypeSave + 3, // [3:3] is the sub-list for method output_type + 3, // [3:3] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_device_sync_message_backup_proto_init() } +func file_device_sync_message_backup_proto_init() { + if File_device_sync_message_backup_proto != nil { + return + } + file_device_sync_message_backup_proto_msgTypes[0].OneofWrappers = []any{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_device_sync_message_backup_proto_rawDesc), len(file_device_sync_message_backup_proto_rawDesc)), + NumEnums: 3, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_device_sync_message_backup_proto_goTypes, + DependencyIndexes: file_device_sync_message_backup_proto_depIdxs, + EnumInfos: file_device_sync_message_backup_proto_enumTypes, + MessageInfos: file_device_sync_message_backup_proto_msgTypes, + }.Build() + File_device_sync_message_backup_proto = out.File + file_device_sync_message_backup_proto_goTypes = nil + file_device_sync_message_backup_proto_depIdxs = nil +} diff --git a/pkg/proto/identity/api/v1/identity.pb.go b/pkg/proto/identity/api/v1/identity.pb.go index dcd11b36..3b287288 100644 --- a/pkg/proto/identity/api/v1/identity.pb.go +++ b/pkg/proto/identity/api/v1/identity.pb.go @@ -2,7 +2,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.5 // protoc (unknown) // source: identity/api/v1/identity.proto diff --git a/pkg/proto/identity/associations/association.pb.go b/pkg/proto/identity/associations/association.pb.go index c7ad0d38..7351dd49 100644 --- a/pkg/proto/identity/associations/association.pb.go +++ b/pkg/proto/identity/associations/association.pb.go @@ -2,7 +2,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.5 // protoc (unknown) // source: identity/associations/association.proto diff --git a/pkg/proto/identity/associations/signature.pb.go b/pkg/proto/identity/associations/signature.pb.go index 11a0244e..8941fb88 100644 --- a/pkg/proto/identity/associations/signature.pb.go +++ b/pkg/proto/identity/associations/signature.pb.go @@ -2,7 +2,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.5 // protoc (unknown) // source: identity/associations/signature.proto diff --git a/pkg/proto/identity/credential.pb.go b/pkg/proto/identity/credential.pb.go index 6a1aab9b..fcc7efdc 100644 --- a/pkg/proto/identity/credential.pb.go +++ b/pkg/proto/identity/credential.pb.go @@ -2,7 +2,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.5 // protoc (unknown) // source: identity/credential.proto diff --git a/pkg/proto/keystore_api/v1/keystore.pb.go b/pkg/proto/keystore_api/v1/keystore.pb.go index 38faf37f..3386a398 100644 --- a/pkg/proto/keystore_api/v1/keystore.pb.go +++ b/pkg/proto/keystore_api/v1/keystore.pb.go @@ -2,7 +2,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.5 // protoc (unknown) // source: keystore_api/v1/keystore.proto diff --git a/pkg/proto/message_api/v1/authn.pb.go b/pkg/proto/message_api/v1/authn.pb.go index 8af3ee69..dc4dd5a9 100644 --- a/pkg/proto/message_api/v1/authn.pb.go +++ b/pkg/proto/message_api/v1/authn.pb.go @@ -2,7 +2,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.5 // protoc (unknown) // source: message_api/v1/authn.proto diff --git a/pkg/proto/message_api/v1/message_api.pb.go b/pkg/proto/message_api/v1/message_api.pb.go index 8b4d1e5a..7a3ccee7 100644 --- a/pkg/proto/message_api/v1/message_api.pb.go +++ b/pkg/proto/message_api/v1/message_api.pb.go @@ -2,7 +2,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.5 // protoc (unknown) // source: message_api/v1/message_api.proto diff --git a/pkg/proto/message_contents/ciphertext.pb.go b/pkg/proto/message_contents/ciphertext.pb.go index 1a32d447..0572cbf5 100644 --- a/pkg/proto/message_contents/ciphertext.pb.go +++ b/pkg/proto/message_contents/ciphertext.pb.go @@ -2,7 +2,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.5 // protoc (unknown) // source: message_contents/ciphertext.proto diff --git a/pkg/proto/message_contents/composite.pb.go b/pkg/proto/message_contents/composite.pb.go index 5c389fc2..7dc0a07e 100644 --- a/pkg/proto/message_contents/composite.pb.go +++ b/pkg/proto/message_contents/composite.pb.go @@ -2,7 +2,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.5 // protoc (unknown) // source: message_contents/composite.proto diff --git a/pkg/proto/message_contents/contact.pb.go b/pkg/proto/message_contents/contact.pb.go index 70806565..27f13ac4 100644 --- a/pkg/proto/message_contents/contact.pb.go +++ b/pkg/proto/message_contents/contact.pb.go @@ -6,7 +6,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.5 // protoc (unknown) // source: message_contents/contact.proto diff --git a/pkg/proto/message_contents/content.pb.go b/pkg/proto/message_contents/content.pb.go index 1782b816..1218ce45 100644 --- a/pkg/proto/message_contents/content.pb.go +++ b/pkg/proto/message_contents/content.pb.go @@ -2,7 +2,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.5 // protoc (unknown) // source: message_contents/content.proto diff --git a/pkg/proto/message_contents/conversation_reference.pb.go b/pkg/proto/message_contents/conversation_reference.pb.go index b6a2599a..d741c034 100644 --- a/pkg/proto/message_contents/conversation_reference.pb.go +++ b/pkg/proto/message_contents/conversation_reference.pb.go @@ -2,7 +2,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.5 // protoc (unknown) // source: message_contents/conversation_reference.proto diff --git a/pkg/proto/message_contents/ecies.pb.go b/pkg/proto/message_contents/ecies.pb.go index 766e056c..6c686e8c 100644 --- a/pkg/proto/message_contents/ecies.pb.go +++ b/pkg/proto/message_contents/ecies.pb.go @@ -2,7 +2,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.5 // protoc (unknown) // source: message_contents/ecies.proto diff --git a/pkg/proto/message_contents/frames.pb.go b/pkg/proto/message_contents/frames.pb.go index 5901ab2f..d9f9b7f2 100644 --- a/pkg/proto/message_contents/frames.pb.go +++ b/pkg/proto/message_contents/frames.pb.go @@ -2,7 +2,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.5 // protoc (unknown) // source: message_contents/frames.proto diff --git a/pkg/proto/message_contents/invitation.pb.go b/pkg/proto/message_contents/invitation.pb.go index fa8feade..72adfd1f 100644 --- a/pkg/proto/message_contents/invitation.pb.go +++ b/pkg/proto/message_contents/invitation.pb.go @@ -4,7 +4,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.5 // protoc (unknown) // source: message_contents/invitation.proto diff --git a/pkg/proto/message_contents/message.pb.go b/pkg/proto/message_contents/message.pb.go index 2d1888ae..1ad49da1 100644 --- a/pkg/proto/message_contents/message.pb.go +++ b/pkg/proto/message_contents/message.pb.go @@ -2,7 +2,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.5 // protoc (unknown) // source: message_contents/message.proto diff --git a/pkg/proto/message_contents/private_key.pb.go b/pkg/proto/message_contents/private_key.pb.go index c905a71a..c235e770 100644 --- a/pkg/proto/message_contents/private_key.pb.go +++ b/pkg/proto/message_contents/private_key.pb.go @@ -5,7 +5,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.5 // protoc (unknown) // source: message_contents/private_key.proto diff --git a/pkg/proto/message_contents/private_preferences.pb.go b/pkg/proto/message_contents/private_preferences.pb.go index a8a30904..2e8da4a2 100644 --- a/pkg/proto/message_contents/private_preferences.pb.go +++ b/pkg/proto/message_contents/private_preferences.pb.go @@ -5,7 +5,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.5 // protoc (unknown) // source: message_contents/private_preferences.proto diff --git a/pkg/proto/message_contents/public_key.pb.go b/pkg/proto/message_contents/public_key.pb.go index 04d2c6e8..2a38bc82 100644 --- a/pkg/proto/message_contents/public_key.pb.go +++ b/pkg/proto/message_contents/public_key.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.5 // protoc (unknown) // source: message_contents/public_key.proto diff --git a/pkg/proto/message_contents/signature.pb.go b/pkg/proto/message_contents/signature.pb.go index dbfda474..293eb51d 100644 --- a/pkg/proto/message_contents/signature.pb.go +++ b/pkg/proto/message_contents/signature.pb.go @@ -2,7 +2,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.5 // protoc (unknown) // source: message_contents/signature.proto diff --git a/pkg/proto/message_contents/signed_payload.pb.go b/pkg/proto/message_contents/signed_payload.pb.go index 0351d8b5..61bdec76 100644 --- a/pkg/proto/message_contents/signed_payload.pb.go +++ b/pkg/proto/message_contents/signed_payload.pb.go @@ -2,7 +2,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.5 // protoc (unknown) // source: message_contents/signed_payload.proto diff --git a/pkg/proto/mls/api/v1/mls.pb.go b/pkg/proto/mls/api/v1/mls.pb.go index b5f6edce..7477bb40 100644 --- a/pkg/proto/mls/api/v1/mls.pb.go +++ b/pkg/proto/mls/api/v1/mls.pb.go @@ -2,7 +2,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.5 // protoc (unknown) // source: mls/api/v1/mls.proto diff --git a/pkg/proto/mls/database/intents.pb.go b/pkg/proto/mls/database/intents.pb.go index b5724cb7..d6e8369f 100644 --- a/pkg/proto/mls/database/intents.pb.go +++ b/pkg/proto/mls/database/intents.pb.go @@ -2,7 +2,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.5 // protoc (unknown) // source: mls/database/intents.proto diff --git a/pkg/proto/mls/message_contents/content.pb.go b/pkg/proto/mls/message_contents/content.pb.go index 45954cd4..6eacb962 100644 --- a/pkg/proto/mls/message_contents/content.pb.go +++ b/pkg/proto/mls/message_contents/content.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.5 // protoc (unknown) // source: mls/message_contents/content.proto diff --git a/pkg/proto/mls/message_contents/content_types/reaction.pb.go b/pkg/proto/mls/message_contents/content_types/reaction.pb.go index 71900f0c..413a6ea7 100644 --- a/pkg/proto/mls/message_contents/content_types/reaction.pb.go +++ b/pkg/proto/mls/message_contents/content_types/reaction.pb.go @@ -11,7 +11,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.5 // protoc (unknown) // source: mls/message_contents/content_types/reaction.proto diff --git a/pkg/proto/mls/message_contents/group_membership.pb.go b/pkg/proto/mls/message_contents/group_membership.pb.go index 3218912e..211c8df4 100644 --- a/pkg/proto/mls/message_contents/group_membership.pb.go +++ b/pkg/proto/mls/message_contents/group_membership.pb.go @@ -2,7 +2,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.5 // protoc (unknown) // source: mls/message_contents/group_membership.proto diff --git a/pkg/proto/mls/message_contents/group_metadata.pb.go b/pkg/proto/mls/message_contents/group_metadata.pb.go index 5fb338ea..2c3ddcbd 100644 --- a/pkg/proto/mls/message_contents/group_metadata.pb.go +++ b/pkg/proto/mls/message_contents/group_metadata.pb.go @@ -2,7 +2,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.5 // protoc (unknown) // source: mls/message_contents/group_metadata.proto diff --git a/pkg/proto/mls/message_contents/group_mutable_metadata.pb.go b/pkg/proto/mls/message_contents/group_mutable_metadata.pb.go index 1af2db3e..9217f43c 100644 --- a/pkg/proto/mls/message_contents/group_mutable_metadata.pb.go +++ b/pkg/proto/mls/message_contents/group_mutable_metadata.pb.go @@ -2,7 +2,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.5 // protoc (unknown) // source: mls/message_contents/group_mutable_metadata.proto diff --git a/pkg/proto/mls/message_contents/group_permissions.pb.go b/pkg/proto/mls/message_contents/group_permissions.pb.go index d704d70a..091ae7d9 100644 --- a/pkg/proto/mls/message_contents/group_permissions.pb.go +++ b/pkg/proto/mls/message_contents/group_permissions.pb.go @@ -2,7 +2,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.5 // protoc (unknown) // source: mls/message_contents/group_permissions.proto diff --git a/pkg/proto/mls/message_contents/transcript_messages.pb.go b/pkg/proto/mls/message_contents/transcript_messages.pb.go index daf4126b..d56fcac9 100644 --- a/pkg/proto/mls/message_contents/transcript_messages.pb.go +++ b/pkg/proto/mls/message_contents/transcript_messages.pb.go @@ -2,7 +2,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.5 // protoc (unknown) // source: mls/message_contents/transcript_messages.proto diff --git a/pkg/proto/mls_validation/v1/service.pb.go b/pkg/proto/mls_validation/v1/service.pb.go index 1c73abdf..e10bc301 100644 --- a/pkg/proto/mls_validation/v1/service.pb.go +++ b/pkg/proto/mls_validation/v1/service.pb.go @@ -2,7 +2,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.5 // protoc (unknown) // source: mls_validation/v1/service.proto diff --git a/pkg/proto/openapi/device_sync/consent_backup.swagger.json b/pkg/proto/openapi/device_sync/consent_backup.swagger.json new file mode 100644 index 00000000..7644453f --- /dev/null +++ b/pkg/proto/openapi/device_sync/consent_backup.swagger.json @@ -0,0 +1,44 @@ +{ + "swagger": "2.0", + "info": { + "title": "device_sync/consent_backup.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string" + } + }, + "additionalProperties": {} + }, + "rpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + } + } +} diff --git a/pkg/proto/openapi/device_sync/device_sync.swagger.json b/pkg/proto/openapi/device_sync/device_sync.swagger.json new file mode 100644 index 00000000..60a5b470 --- /dev/null +++ b/pkg/proto/openapi/device_sync/device_sync.swagger.json @@ -0,0 +1,44 @@ +{ + "swagger": "2.0", + "info": { + "title": "device_sync/device_sync.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string" + } + }, + "additionalProperties": {} + }, + "rpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + } + } +} diff --git a/pkg/proto/openapi/device_sync/group_backup.swagger.json b/pkg/proto/openapi/device_sync/group_backup.swagger.json new file mode 100644 index 00000000..16a579a3 --- /dev/null +++ b/pkg/proto/openapi/device_sync/group_backup.swagger.json @@ -0,0 +1,44 @@ +{ + "swagger": "2.0", + "info": { + "title": "device_sync/group_backup.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string" + } + }, + "additionalProperties": {} + }, + "rpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + } + } +} diff --git a/pkg/proto/openapi/device_sync/message_backup.swagger.json b/pkg/proto/openapi/device_sync/message_backup.swagger.json new file mode 100644 index 00000000..30baf1e7 --- /dev/null +++ b/pkg/proto/openapi/device_sync/message_backup.swagger.json @@ -0,0 +1,44 @@ +{ + "swagger": "2.0", + "info": { + "title": "device_sync/message_backup.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string" + } + }, + "additionalProperties": {} + }, + "rpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + } + } +} diff --git a/pkg/proto/xmtpv4/envelopes/envelopes.pb.go b/pkg/proto/xmtpv4/envelopes/envelopes.pb.go index 27e9832e..9b9e24ad 100644 --- a/pkg/proto/xmtpv4/envelopes/envelopes.pb.go +++ b/pkg/proto/xmtpv4/envelopes/envelopes.pb.go @@ -2,7 +2,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.5 // protoc (unknown) // source: xmtpv4/envelopes/envelopes.proto diff --git a/pkg/proto/xmtpv4/message_api/message_api.pb.go b/pkg/proto/xmtpv4/message_api/message_api.pb.go index f92663e6..76c141ba 100644 --- a/pkg/proto/xmtpv4/message_api/message_api.pb.go +++ b/pkg/proto/xmtpv4/message_api/message_api.pb.go @@ -2,7 +2,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.5 // protoc (unknown) // source: xmtpv4/message_api/message_api.proto diff --git a/pkg/proto/xmtpv4/message_api/misbehavior_api.pb.go b/pkg/proto/xmtpv4/message_api/misbehavior_api.pb.go index dd724554..a782a70d 100644 --- a/pkg/proto/xmtpv4/message_api/misbehavior_api.pb.go +++ b/pkg/proto/xmtpv4/message_api/misbehavior_api.pb.go @@ -2,7 +2,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.5 // protoc (unknown) // source: xmtpv4/message_api/misbehavior_api.proto diff --git a/pkg/proto/xmtpv4/metadata_api/metadata_api.pb.go b/pkg/proto/xmtpv4/metadata_api/metadata_api.pb.go index d6768fc3..65ba0cea 100644 --- a/pkg/proto/xmtpv4/metadata_api/metadata_api.pb.go +++ b/pkg/proto/xmtpv4/metadata_api/metadata_api.pb.go @@ -2,7 +2,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.5 // protoc (unknown) // source: xmtpv4/metadata_api/metadata_api.proto diff --git a/pkg/proto/xmtpv4/payer_api/payer_api.pb.go b/pkg/proto/xmtpv4/payer_api/payer_api.pb.go index b72f969e..011f80da 100644 --- a/pkg/proto/xmtpv4/payer_api/payer_api.pb.go +++ b/pkg/proto/xmtpv4/payer_api/payer_api.pb.go @@ -2,7 +2,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.5 // protoc (unknown) // source: xmtpv4/payer_api/payer_api.proto