From 12a6e6cd5ff5e2e924b604ffe771fc28e99116e0 Mon Sep 17 00:00:00 2001 From: Nicholas Molnar <65710+neekolas@users.noreply.github.com> Date: Wed, 24 Jul 2024 10:39:11 -0700 Subject: [PATCH 1/6] Commit protos --- dev/generate | 2 +- pkg/proto/identity/api/v1/identity.pb.go | 28 +- .../identity/associations/association.pb.go | 32 +- .../identity/associations/signature.pb.go | 16 +- pkg/proto/identity/credential.pb.go | 6 +- pkg/proto/keystore_api/v1/keystore.pb.go | 116 +- pkg/proto/message_api/v1/authn.pb.go | 8 +- pkg/proto/message_api/v1/message_api.pb.go | 30 +- pkg/proto/message_contents/ciphertext.pb.go | 14 +- pkg/proto/message_contents/composite.pb.go | 10 +- pkg/proto/message_contents/contact.pb.go | 12 +- pkg/proto/message_contents/content.pb.go | 12 +- .../conversation_reference.pb.go | 6 +- pkg/proto/message_contents/ecies.pb.go | 8 +- pkg/proto/message_contents/frames.pb.go | 8 +- pkg/proto/message_contents/invitation.pb.go | 22 +- pkg/proto/message_contents/message.pb.go | 22 +- pkg/proto/message_contents/private_key.pb.go | 30 +- .../private_preferences.pb.go | 24 +- pkg/proto/message_contents/public_key.pb.go | 22 +- pkg/proto/message_contents/signature.pb.go | 12 +- .../message_contents/signed_payload.pb.go | 6 +- pkg/proto/mls/api/v1/mls.pb.go | 82 +- pkg/proto/mls/database/intents.pb.go | 56 +- .../mls/message_contents/association.pb.go | 14 +- pkg/proto/mls/message_contents/content.pb.go | 28 +- .../mls/message_contents/credential.pb.go | 12 +- .../message_contents/group_membership.pb.go | 6 +- .../mls/message_contents/group_metadata.pb.go | 6 +- .../group_mutable_metadata.pb.go | 8 +- .../message_contents/group_permissions.pb.go | 32 +- .../transcript_messages.pb.go | 16 +- pkg/proto/mls_validation/v1/service.pb.go | 36 +- pkg/proto/openapi/mls/api/v1/mls.swagger.json | 3 +- .../message_api/message_api.swagger.json | 249 +++ .../xmtpv4/message_api/message_api.pb.go | 1352 +++++++++++++++++ .../xmtpv4/message_api/message_api.pb.gw.go | 217 +++ .../xmtpv4/message_api/message_api_grpc.pb.go | 174 +++ 38 files changed, 2365 insertions(+), 372 deletions(-) create mode 100644 pkg/proto/openapi/xmtpv4/message_api/message_api.swagger.json create mode 100644 pkg/proto/xmtpv4/message_api/message_api.pb.go create mode 100644 pkg/proto/xmtpv4/message_api/message_api.pb.gw.go create mode 100644 pkg/proto/xmtpv4/message_api/message_api_grpc.pb.go diff --git a/dev/generate b/dev/generate index e82af341..6049e3cd 100755 --- a/dev/generate +++ b/dev/generate @@ -6,7 +6,7 @@ go generate ./... # Generate mocks mockery rm -rf pkg/proto/**/*.pb.go pkg/proto/**/*.pb.gw.go pkg/proto/**/*.swagger.json -if ! buf generate https://github.com/xmtp/proto.git#branch=main,subdir=proto; then +if ! buf generate https://github.com/xmtp/proto.git#branch=rich/xmtpv4,subdir=proto; then echo "Failed to generate protobuf definitions" exit 1 fi \ No newline at end of file diff --git a/pkg/proto/identity/api/v1/identity.pb.go b/pkg/proto/identity/api/v1/identity.pb.go index 60d072f3..5981fb90 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.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: identity/api/v1/identity.proto @@ -730,7 +730,7 @@ func file_identity_api_v1_identity_proto_rawDescGZIP() []byte { } var file_identity_api_v1_identity_proto_msgTypes = make([]protoimpl.MessageInfo, 11) -var file_identity_api_v1_identity_proto_goTypes = []interface{}{ +var file_identity_api_v1_identity_proto_goTypes = []any{ (*PublishIdentityUpdateRequest)(nil), // 0: xmtp.identity.api.v1.PublishIdentityUpdateRequest (*PublishIdentityUpdateResponse)(nil), // 1: xmtp.identity.api.v1.PublishIdentityUpdateResponse (*GetIdentityUpdatesRequest)(nil), // 2: xmtp.identity.api.v1.GetIdentityUpdatesRequest @@ -771,7 +771,7 @@ func file_identity_api_v1_identity_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_identity_api_v1_identity_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_identity_api_v1_identity_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*PublishIdentityUpdateRequest); i { case 0: return &v.state @@ -783,7 +783,7 @@ func file_identity_api_v1_identity_proto_init() { return nil } } - file_identity_api_v1_identity_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_identity_api_v1_identity_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*PublishIdentityUpdateResponse); i { case 0: return &v.state @@ -795,7 +795,7 @@ func file_identity_api_v1_identity_proto_init() { return nil } } - file_identity_api_v1_identity_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_identity_api_v1_identity_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*GetIdentityUpdatesRequest); i { case 0: return &v.state @@ -807,7 +807,7 @@ func file_identity_api_v1_identity_proto_init() { return nil } } - file_identity_api_v1_identity_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_identity_api_v1_identity_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*GetIdentityUpdatesResponse); i { case 0: return &v.state @@ -819,7 +819,7 @@ func file_identity_api_v1_identity_proto_init() { return nil } } - file_identity_api_v1_identity_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_identity_api_v1_identity_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*GetInboxIdsRequest); i { case 0: return &v.state @@ -831,7 +831,7 @@ func file_identity_api_v1_identity_proto_init() { return nil } } - file_identity_api_v1_identity_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_identity_api_v1_identity_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*GetInboxIdsResponse); i { case 0: return &v.state @@ -843,7 +843,7 @@ func file_identity_api_v1_identity_proto_init() { return nil } } - file_identity_api_v1_identity_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_identity_api_v1_identity_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*GetIdentityUpdatesRequest_Request); i { case 0: return &v.state @@ -855,7 +855,7 @@ func file_identity_api_v1_identity_proto_init() { return nil } } - file_identity_api_v1_identity_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_identity_api_v1_identity_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*GetIdentityUpdatesResponse_IdentityUpdateLog); i { case 0: return &v.state @@ -867,7 +867,7 @@ func file_identity_api_v1_identity_proto_init() { return nil } } - file_identity_api_v1_identity_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_identity_api_v1_identity_proto_msgTypes[8].Exporter = func(v any, i int) any { switch v := v.(*GetIdentityUpdatesResponse_Response); i { case 0: return &v.state @@ -879,7 +879,7 @@ func file_identity_api_v1_identity_proto_init() { return nil } } - file_identity_api_v1_identity_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_identity_api_v1_identity_proto_msgTypes[9].Exporter = func(v any, i int) any { switch v := v.(*GetInboxIdsRequest_Request); i { case 0: return &v.state @@ -891,7 +891,7 @@ func file_identity_api_v1_identity_proto_init() { return nil } } - file_identity_api_v1_identity_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_identity_api_v1_identity_proto_msgTypes[10].Exporter = func(v any, i int) any { switch v := v.(*GetInboxIdsResponse_Response); i { case 0: return &v.state @@ -904,7 +904,7 @@ func file_identity_api_v1_identity_proto_init() { } } } - file_identity_api_v1_identity_proto_msgTypes[10].OneofWrappers = []interface{}{} + file_identity_api_v1_identity_proto_msgTypes[10].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/pkg/proto/identity/associations/association.pb.go b/pkg/proto/identity/associations/association.pb.go index 3ce82294..6fc708a9 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.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: identity/associations/association.proto @@ -954,7 +954,7 @@ func file_identity_associations_association_proto_rawDescGZIP() []byte { } var file_identity_associations_association_proto_msgTypes = make([]protoimpl.MessageInfo, 11) -var file_identity_associations_association_proto_goTypes = []interface{}{ +var file_identity_associations_association_proto_goTypes = []any{ (*MemberIdentifier)(nil), // 0: xmtp.identity.associations.MemberIdentifier (*Member)(nil), // 1: xmtp.identity.associations.Member (*CreateInbox)(nil), // 2: xmtp.identity.associations.CreateInbox @@ -1002,7 +1002,7 @@ func file_identity_associations_association_proto_init() { } file_identity_associations_signature_proto_init() if !protoimpl.UnsafeEnabled { - file_identity_associations_association_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_identity_associations_association_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*MemberIdentifier); i { case 0: return &v.state @@ -1014,7 +1014,7 @@ func file_identity_associations_association_proto_init() { return nil } } - file_identity_associations_association_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_identity_associations_association_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*Member); i { case 0: return &v.state @@ -1026,7 +1026,7 @@ func file_identity_associations_association_proto_init() { return nil } } - file_identity_associations_association_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_identity_associations_association_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*CreateInbox); i { case 0: return &v.state @@ -1038,7 +1038,7 @@ func file_identity_associations_association_proto_init() { return nil } } - file_identity_associations_association_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_identity_associations_association_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*AddAssociation); i { case 0: return &v.state @@ -1050,7 +1050,7 @@ func file_identity_associations_association_proto_init() { return nil } } - file_identity_associations_association_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_identity_associations_association_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*RevokeAssociation); i { case 0: return &v.state @@ -1062,7 +1062,7 @@ func file_identity_associations_association_proto_init() { return nil } } - file_identity_associations_association_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_identity_associations_association_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*ChangeRecoveryAddress); i { case 0: return &v.state @@ -1074,7 +1074,7 @@ func file_identity_associations_association_proto_init() { return nil } } - file_identity_associations_association_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_identity_associations_association_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*IdentityAction); i { case 0: return &v.state @@ -1086,7 +1086,7 @@ func file_identity_associations_association_proto_init() { return nil } } - file_identity_associations_association_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_identity_associations_association_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*IdentityUpdate); i { case 0: return &v.state @@ -1098,7 +1098,7 @@ func file_identity_associations_association_proto_init() { return nil } } - file_identity_associations_association_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_identity_associations_association_proto_msgTypes[8].Exporter = func(v any, i int) any { switch v := v.(*MemberMap); i { case 0: return &v.state @@ -1110,7 +1110,7 @@ func file_identity_associations_association_proto_init() { return nil } } - file_identity_associations_association_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_identity_associations_association_proto_msgTypes[9].Exporter = func(v any, i int) any { switch v := v.(*AssociationState); i { case 0: return &v.state @@ -1122,7 +1122,7 @@ func file_identity_associations_association_proto_init() { return nil } } - file_identity_associations_association_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_identity_associations_association_proto_msgTypes[10].Exporter = func(v any, i int) any { switch v := v.(*AssociationStateDiff); i { case 0: return &v.state @@ -1135,12 +1135,12 @@ func file_identity_associations_association_proto_init() { } } } - file_identity_associations_association_proto_msgTypes[0].OneofWrappers = []interface{}{ + file_identity_associations_association_proto_msgTypes[0].OneofWrappers = []any{ (*MemberIdentifier_Address)(nil), (*MemberIdentifier_InstallationPublicKey)(nil), } - file_identity_associations_association_proto_msgTypes[1].OneofWrappers = []interface{}{} - file_identity_associations_association_proto_msgTypes[6].OneofWrappers = []interface{}{ + file_identity_associations_association_proto_msgTypes[1].OneofWrappers = []any{} + file_identity_associations_association_proto_msgTypes[6].OneofWrappers = []any{ (*IdentityAction_CreateInbox)(nil), (*IdentityAction_Add)(nil), (*IdentityAction_Revoke)(nil), diff --git a/pkg/proto/identity/associations/signature.pb.go b/pkg/proto/identity/associations/signature.pb.go index 2a9f267f..ec80c5a0 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.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: identity/associations/signature.proto @@ -468,7 +468,7 @@ func file_identity_associations_signature_proto_rawDescGZIP() []byte { } var file_identity_associations_signature_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_identity_associations_signature_proto_goTypes = []interface{}{ +var file_identity_associations_signature_proto_goTypes = []any{ (*RecoverableEcdsaSignature)(nil), // 0: xmtp.identity.associations.RecoverableEcdsaSignature (*RecoverableEd25519Signature)(nil), // 1: xmtp.identity.associations.RecoverableEd25519Signature (*Erc1271Signature)(nil), // 2: xmtp.identity.associations.Erc1271Signature @@ -496,7 +496,7 @@ func file_identity_associations_signature_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_identity_associations_signature_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_identity_associations_signature_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*RecoverableEcdsaSignature); i { case 0: return &v.state @@ -508,7 +508,7 @@ func file_identity_associations_signature_proto_init() { return nil } } - file_identity_associations_signature_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_identity_associations_signature_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*RecoverableEd25519Signature); i { case 0: return &v.state @@ -520,7 +520,7 @@ func file_identity_associations_signature_proto_init() { return nil } } - file_identity_associations_signature_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_identity_associations_signature_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*Erc1271Signature); i { case 0: return &v.state @@ -532,7 +532,7 @@ func file_identity_associations_signature_proto_init() { return nil } } - file_identity_associations_signature_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_identity_associations_signature_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*LegacyDelegatedSignature); i { case 0: return &v.state @@ -544,7 +544,7 @@ func file_identity_associations_signature_proto_init() { return nil } } - file_identity_associations_signature_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_identity_associations_signature_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*Signature); i { case 0: return &v.state @@ -557,7 +557,7 @@ func file_identity_associations_signature_proto_init() { } } } - file_identity_associations_signature_proto_msgTypes[4].OneofWrappers = []interface{}{ + file_identity_associations_signature_proto_msgTypes[4].OneofWrappers = []any{ (*Signature_Erc_191)(nil), (*Signature_Erc_1271)(nil), (*Signature_InstallationKey)(nil), diff --git a/pkg/proto/identity/credential.pb.go b/pkg/proto/identity/credential.pb.go index 10a7fb12..e08838c1 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.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: identity/credential.proto @@ -105,7 +105,7 @@ func file_identity_credential_proto_rawDescGZIP() []byte { } var file_identity_credential_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_identity_credential_proto_goTypes = []interface{}{ +var file_identity_credential_proto_goTypes = []any{ (*MlsCredential)(nil), // 0: xmtp.identity.MlsCredential } var file_identity_credential_proto_depIdxs = []int32{ @@ -122,7 +122,7 @@ func file_identity_credential_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_identity_credential_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_identity_credential_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*MlsCredential); i { case 0: return &v.state diff --git a/pkg/proto/keystore_api/v1/keystore.pb.go b/pkg/proto/keystore_api/v1/keystore.pb.go index 60254343..a3fc4407 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.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: keystore_api/v1/keystore.proto @@ -3288,7 +3288,7 @@ func file_keystore_api_v1_keystore_proto_rawDescGZIP() []byte { var file_keystore_api_v1_keystore_proto_enumTypes = make([]protoimpl.EnumInfo, 3) var file_keystore_api_v1_keystore_proto_msgTypes = make([]protoimpl.MessageInfo, 51) -var file_keystore_api_v1_keystore_proto_goTypes = []interface{}{ +var file_keystore_api_v1_keystore_proto_goTypes = []any{ (ErrorCode)(0), // 0: xmtp.keystore_api.v1.ErrorCode (JobType)(0), // 1: xmtp.keystore_api.v1.JobType (GetKeystoreStatusResponse_KeystoreStatus)(0), // 2: xmtp.keystore_api.v1.GetKeystoreStatusResponse.KeystoreStatus @@ -3409,7 +3409,7 @@ func file_keystore_api_v1_keystore_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_keystore_api_v1_keystore_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_keystore_api_v1_keystore_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*KeystoreError); i { case 0: return &v.state @@ -3421,7 +3421,7 @@ func file_keystore_api_v1_keystore_proto_init() { return nil } } - file_keystore_api_v1_keystore_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_keystore_api_v1_keystore_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*DecryptV1Request); i { case 0: return &v.state @@ -3433,7 +3433,7 @@ func file_keystore_api_v1_keystore_proto_init() { return nil } } - file_keystore_api_v1_keystore_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_keystore_api_v1_keystore_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*DecryptResponse); i { case 0: return &v.state @@ -3445,7 +3445,7 @@ func file_keystore_api_v1_keystore_proto_init() { return nil } } - file_keystore_api_v1_keystore_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_keystore_api_v1_keystore_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*DecryptV2Request); i { case 0: return &v.state @@ -3457,7 +3457,7 @@ func file_keystore_api_v1_keystore_proto_init() { return nil } } - file_keystore_api_v1_keystore_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_keystore_api_v1_keystore_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*EncryptV1Request); i { case 0: return &v.state @@ -3469,7 +3469,7 @@ func file_keystore_api_v1_keystore_proto_init() { return nil } } - file_keystore_api_v1_keystore_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_keystore_api_v1_keystore_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*EncryptResponse); i { case 0: return &v.state @@ -3481,7 +3481,7 @@ func file_keystore_api_v1_keystore_proto_init() { return nil } } - file_keystore_api_v1_keystore_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_keystore_api_v1_keystore_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*EncryptV2Request); i { case 0: return &v.state @@ -3493,7 +3493,7 @@ func file_keystore_api_v1_keystore_proto_init() { return nil } } - file_keystore_api_v1_keystore_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_keystore_api_v1_keystore_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*SelfEncryptRequest); i { case 0: return &v.state @@ -3505,7 +3505,7 @@ func file_keystore_api_v1_keystore_proto_init() { return nil } } - file_keystore_api_v1_keystore_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_keystore_api_v1_keystore_proto_msgTypes[8].Exporter = func(v any, i int) any { switch v := v.(*SelfEncryptResponse); i { case 0: return &v.state @@ -3517,7 +3517,7 @@ func file_keystore_api_v1_keystore_proto_init() { return nil } } - file_keystore_api_v1_keystore_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_keystore_api_v1_keystore_proto_msgTypes[9].Exporter = func(v any, i int) any { switch v := v.(*SelfDecryptRequest); i { case 0: return &v.state @@ -3529,7 +3529,7 @@ func file_keystore_api_v1_keystore_proto_init() { return nil } } - file_keystore_api_v1_keystore_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_keystore_api_v1_keystore_proto_msgTypes[10].Exporter = func(v any, i int) any { switch v := v.(*GetPrivatePreferencesTopicIdentifierResponse); i { case 0: return &v.state @@ -3541,7 +3541,7 @@ func file_keystore_api_v1_keystore_proto_init() { return nil } } - file_keystore_api_v1_keystore_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_keystore_api_v1_keystore_proto_msgTypes[11].Exporter = func(v any, i int) any { switch v := v.(*CreateInviteRequest); i { case 0: return &v.state @@ -3553,7 +3553,7 @@ func file_keystore_api_v1_keystore_proto_init() { return nil } } - file_keystore_api_v1_keystore_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + file_keystore_api_v1_keystore_proto_msgTypes[12].Exporter = func(v any, i int) any { switch v := v.(*CreateInviteResponse); i { case 0: return &v.state @@ -3565,7 +3565,7 @@ func file_keystore_api_v1_keystore_proto_init() { return nil } } - file_keystore_api_v1_keystore_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + file_keystore_api_v1_keystore_proto_msgTypes[13].Exporter = func(v any, i int) any { switch v := v.(*SaveInvitesRequest); i { case 0: return &v.state @@ -3577,7 +3577,7 @@ func file_keystore_api_v1_keystore_proto_init() { return nil } } - file_keystore_api_v1_keystore_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + file_keystore_api_v1_keystore_proto_msgTypes[14].Exporter = func(v any, i int) any { switch v := v.(*SaveInvitesResponse); i { case 0: return &v.state @@ -3589,7 +3589,7 @@ func file_keystore_api_v1_keystore_proto_init() { return nil } } - file_keystore_api_v1_keystore_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + file_keystore_api_v1_keystore_proto_msgTypes[15].Exporter = func(v any, i int) any { switch v := v.(*CreateAuthTokenRequest); i { case 0: return &v.state @@ -3601,7 +3601,7 @@ func file_keystore_api_v1_keystore_proto_init() { return nil } } - file_keystore_api_v1_keystore_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + file_keystore_api_v1_keystore_proto_msgTypes[16].Exporter = func(v any, i int) any { switch v := v.(*SaveV1ConversationsRequest); i { case 0: return &v.state @@ -3613,7 +3613,7 @@ func file_keystore_api_v1_keystore_proto_init() { return nil } } - file_keystore_api_v1_keystore_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + file_keystore_api_v1_keystore_proto_msgTypes[17].Exporter = func(v any, i int) any { switch v := v.(*SaveV1ConversationsResponse); i { case 0: return &v.state @@ -3625,7 +3625,7 @@ func file_keystore_api_v1_keystore_proto_init() { return nil } } - file_keystore_api_v1_keystore_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + file_keystore_api_v1_keystore_proto_msgTypes[18].Exporter = func(v any, i int) any { switch v := v.(*GetConversationsResponse); i { case 0: return &v.state @@ -3637,7 +3637,7 @@ func file_keystore_api_v1_keystore_proto_init() { return nil } } - file_keystore_api_v1_keystore_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + file_keystore_api_v1_keystore_proto_msgTypes[19].Exporter = func(v any, i int) any { switch v := v.(*GetKeystoreStatusRequest); i { case 0: return &v.state @@ -3649,7 +3649,7 @@ func file_keystore_api_v1_keystore_proto_init() { return nil } } - file_keystore_api_v1_keystore_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + file_keystore_api_v1_keystore_proto_msgTypes[20].Exporter = func(v any, i int) any { switch v := v.(*GetKeystoreStatusResponse); i { case 0: return &v.state @@ -3661,7 +3661,7 @@ func file_keystore_api_v1_keystore_proto_init() { return nil } } - file_keystore_api_v1_keystore_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + file_keystore_api_v1_keystore_proto_msgTypes[21].Exporter = func(v any, i int) any { switch v := v.(*InitKeystoreRequest); i { case 0: return &v.state @@ -3673,7 +3673,7 @@ func file_keystore_api_v1_keystore_proto_init() { return nil } } - file_keystore_api_v1_keystore_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + file_keystore_api_v1_keystore_proto_msgTypes[22].Exporter = func(v any, i int) any { switch v := v.(*InitKeystoreResponse); i { case 0: return &v.state @@ -3685,7 +3685,7 @@ func file_keystore_api_v1_keystore_proto_init() { return nil } } - file_keystore_api_v1_keystore_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + file_keystore_api_v1_keystore_proto_msgTypes[23].Exporter = func(v any, i int) any { switch v := v.(*SignDigestRequest); i { case 0: return &v.state @@ -3697,7 +3697,7 @@ func file_keystore_api_v1_keystore_proto_init() { return nil } } - file_keystore_api_v1_keystore_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + file_keystore_api_v1_keystore_proto_msgTypes[24].Exporter = func(v any, i int) any { switch v := v.(*GetRefreshJobRequest); i { case 0: return &v.state @@ -3709,7 +3709,7 @@ func file_keystore_api_v1_keystore_proto_init() { return nil } } - file_keystore_api_v1_keystore_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + file_keystore_api_v1_keystore_proto_msgTypes[25].Exporter = func(v any, i int) any { switch v := v.(*GetRefreshJobResponse); i { case 0: return &v.state @@ -3721,7 +3721,7 @@ func file_keystore_api_v1_keystore_proto_init() { return nil } } - file_keystore_api_v1_keystore_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + file_keystore_api_v1_keystore_proto_msgTypes[26].Exporter = func(v any, i int) any { switch v := v.(*SetRefeshJobRequest); i { case 0: return &v.state @@ -3733,7 +3733,7 @@ func file_keystore_api_v1_keystore_proto_init() { return nil } } - file_keystore_api_v1_keystore_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + file_keystore_api_v1_keystore_proto_msgTypes[27].Exporter = func(v any, i int) any { switch v := v.(*SetRefreshJobResponse); i { case 0: return &v.state @@ -3745,7 +3745,7 @@ func file_keystore_api_v1_keystore_proto_init() { return nil } } - file_keystore_api_v1_keystore_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + file_keystore_api_v1_keystore_proto_msgTypes[28].Exporter = func(v any, i int) any { switch v := v.(*TopicMap); i { case 0: return &v.state @@ -3757,7 +3757,7 @@ func file_keystore_api_v1_keystore_proto_init() { return nil } } - file_keystore_api_v1_keystore_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + file_keystore_api_v1_keystore_proto_msgTypes[29].Exporter = func(v any, i int) any { switch v := v.(*GetConversationHmacKeysRequest); i { case 0: return &v.state @@ -3769,7 +3769,7 @@ func file_keystore_api_v1_keystore_proto_init() { return nil } } - file_keystore_api_v1_keystore_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + file_keystore_api_v1_keystore_proto_msgTypes[30].Exporter = func(v any, i int) any { switch v := v.(*GetConversationHmacKeysResponse); i { case 0: return &v.state @@ -3781,7 +3781,7 @@ func file_keystore_api_v1_keystore_proto_init() { return nil } } - file_keystore_api_v1_keystore_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + file_keystore_api_v1_keystore_proto_msgTypes[31].Exporter = func(v any, i int) any { switch v := v.(*DecryptV1Request_Request); i { case 0: return &v.state @@ -3793,7 +3793,7 @@ func file_keystore_api_v1_keystore_proto_init() { return nil } } - file_keystore_api_v1_keystore_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + file_keystore_api_v1_keystore_proto_msgTypes[32].Exporter = func(v any, i int) any { switch v := v.(*DecryptResponse_Response); i { case 0: return &v.state @@ -3805,7 +3805,7 @@ func file_keystore_api_v1_keystore_proto_init() { return nil } } - file_keystore_api_v1_keystore_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + file_keystore_api_v1_keystore_proto_msgTypes[33].Exporter = func(v any, i int) any { switch v := v.(*DecryptResponse_Response_Success); i { case 0: return &v.state @@ -3817,7 +3817,7 @@ func file_keystore_api_v1_keystore_proto_init() { return nil } } - file_keystore_api_v1_keystore_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + file_keystore_api_v1_keystore_proto_msgTypes[34].Exporter = func(v any, i int) any { switch v := v.(*DecryptV2Request_Request); i { case 0: return &v.state @@ -3829,7 +3829,7 @@ func file_keystore_api_v1_keystore_proto_init() { return nil } } - file_keystore_api_v1_keystore_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + file_keystore_api_v1_keystore_proto_msgTypes[35].Exporter = func(v any, i int) any { switch v := v.(*EncryptV1Request_Request); i { case 0: return &v.state @@ -3841,7 +3841,7 @@ func file_keystore_api_v1_keystore_proto_init() { return nil } } - file_keystore_api_v1_keystore_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + file_keystore_api_v1_keystore_proto_msgTypes[36].Exporter = func(v any, i int) any { switch v := v.(*EncryptResponse_Response); i { case 0: return &v.state @@ -3853,7 +3853,7 @@ func file_keystore_api_v1_keystore_proto_init() { return nil } } - file_keystore_api_v1_keystore_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + file_keystore_api_v1_keystore_proto_msgTypes[37].Exporter = func(v any, i int) any { switch v := v.(*EncryptResponse_Response_Success); i { case 0: return &v.state @@ -3865,7 +3865,7 @@ func file_keystore_api_v1_keystore_proto_init() { return nil } } - file_keystore_api_v1_keystore_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + file_keystore_api_v1_keystore_proto_msgTypes[38].Exporter = func(v any, i int) any { switch v := v.(*EncryptV2Request_Request); i { case 0: return &v.state @@ -3877,7 +3877,7 @@ func file_keystore_api_v1_keystore_proto_init() { return nil } } - file_keystore_api_v1_keystore_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + file_keystore_api_v1_keystore_proto_msgTypes[39].Exporter = func(v any, i int) any { switch v := v.(*SelfEncryptRequest_Request); i { case 0: return &v.state @@ -3889,7 +3889,7 @@ func file_keystore_api_v1_keystore_proto_init() { return nil } } - file_keystore_api_v1_keystore_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { + file_keystore_api_v1_keystore_proto_msgTypes[40].Exporter = func(v any, i int) any { switch v := v.(*SelfEncryptResponse_Response); i { case 0: return &v.state @@ -3901,7 +3901,7 @@ func file_keystore_api_v1_keystore_proto_init() { return nil } } - file_keystore_api_v1_keystore_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { + file_keystore_api_v1_keystore_proto_msgTypes[41].Exporter = func(v any, i int) any { switch v := v.(*SelfEncryptResponse_Response_Success); i { case 0: return &v.state @@ -3913,7 +3913,7 @@ func file_keystore_api_v1_keystore_proto_init() { return nil } } - file_keystore_api_v1_keystore_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { + file_keystore_api_v1_keystore_proto_msgTypes[42].Exporter = func(v any, i int) any { switch v := v.(*SelfDecryptRequest_Request); i { case 0: return &v.state @@ -3925,7 +3925,7 @@ func file_keystore_api_v1_keystore_proto_init() { return nil } } - file_keystore_api_v1_keystore_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { + file_keystore_api_v1_keystore_proto_msgTypes[43].Exporter = func(v any, i int) any { switch v := v.(*SaveInvitesRequest_Request); i { case 0: return &v.state @@ -3937,7 +3937,7 @@ func file_keystore_api_v1_keystore_proto_init() { return nil } } - file_keystore_api_v1_keystore_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { + file_keystore_api_v1_keystore_proto_msgTypes[44].Exporter = func(v any, i int) any { switch v := v.(*SaveInvitesResponse_Response); i { case 0: return &v.state @@ -3949,7 +3949,7 @@ func file_keystore_api_v1_keystore_proto_init() { return nil } } - file_keystore_api_v1_keystore_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { + file_keystore_api_v1_keystore_proto_msgTypes[45].Exporter = func(v any, i int) any { switch v := v.(*SaveInvitesResponse_Response_Success); i { case 0: return &v.state @@ -3961,7 +3961,7 @@ func file_keystore_api_v1_keystore_proto_init() { return nil } } - file_keystore_api_v1_keystore_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { + file_keystore_api_v1_keystore_proto_msgTypes[46].Exporter = func(v any, i int) any { switch v := v.(*TopicMap_TopicData); i { case 0: return &v.state @@ -3973,7 +3973,7 @@ func file_keystore_api_v1_keystore_proto_init() { return nil } } - file_keystore_api_v1_keystore_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { + file_keystore_api_v1_keystore_proto_msgTypes[48].Exporter = func(v any, i int) any { switch v := v.(*GetConversationHmacKeysResponse_HmacKeyData); i { case 0: return &v.state @@ -3985,7 +3985,7 @@ func file_keystore_api_v1_keystore_proto_init() { return nil } } - file_keystore_api_v1_keystore_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { + file_keystore_api_v1_keystore_proto_msgTypes[49].Exporter = func(v any, i int) any { switch v := v.(*GetConversationHmacKeysResponse_HmacKeys); i { case 0: return &v.state @@ -3998,27 +3998,27 @@ func file_keystore_api_v1_keystore_proto_init() { } } } - file_keystore_api_v1_keystore_proto_msgTypes[15].OneofWrappers = []interface{}{} - file_keystore_api_v1_keystore_proto_msgTypes[21].OneofWrappers = []interface{}{ + file_keystore_api_v1_keystore_proto_msgTypes[15].OneofWrappers = []any{} + file_keystore_api_v1_keystore_proto_msgTypes[21].OneofWrappers = []any{ (*InitKeystoreRequest_V1)(nil), } - file_keystore_api_v1_keystore_proto_msgTypes[23].OneofWrappers = []interface{}{ + file_keystore_api_v1_keystore_proto_msgTypes[23].OneofWrappers = []any{ (*SignDigestRequest_IdentityKey)(nil), (*SignDigestRequest_PrekeyIndex)(nil), } - file_keystore_api_v1_keystore_proto_msgTypes[32].OneofWrappers = []interface{}{ + file_keystore_api_v1_keystore_proto_msgTypes[32].OneofWrappers = []any{ (*DecryptResponse_Response_Result)(nil), (*DecryptResponse_Response_Error)(nil), } - file_keystore_api_v1_keystore_proto_msgTypes[36].OneofWrappers = []interface{}{ + file_keystore_api_v1_keystore_proto_msgTypes[36].OneofWrappers = []any{ (*EncryptResponse_Response_Result)(nil), (*EncryptResponse_Response_Error)(nil), } - file_keystore_api_v1_keystore_proto_msgTypes[40].OneofWrappers = []interface{}{ + file_keystore_api_v1_keystore_proto_msgTypes[40].OneofWrappers = []any{ (*SelfEncryptResponse_Response_Result)(nil), (*SelfEncryptResponse_Response_Error)(nil), } - file_keystore_api_v1_keystore_proto_msgTypes[44].OneofWrappers = []interface{}{ + file_keystore_api_v1_keystore_proto_msgTypes[44].OneofWrappers = []any{ (*SaveInvitesResponse_Response_Result)(nil), (*SaveInvitesResponse_Response_Error)(nil), } diff --git a/pkg/proto/message_api/v1/authn.pb.go b/pkg/proto/message_api/v1/authn.pb.go index de971e80..c3584167 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.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: message_api/v1/authn.proto @@ -210,7 +210,7 @@ func file_message_api_v1_authn_proto_rawDescGZIP() []byte { } var file_message_api_v1_authn_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_message_api_v1_authn_proto_goTypes = []interface{}{ +var file_message_api_v1_authn_proto_goTypes = []any{ (*Token)(nil), // 0: xmtp.message_api.v1.Token (*AuthData)(nil), // 1: xmtp.message_api.v1.AuthData (*message_contents.PublicKey)(nil), // 2: xmtp.message_contents.PublicKey @@ -232,7 +232,7 @@ func file_message_api_v1_authn_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_message_api_v1_authn_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_message_api_v1_authn_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*Token); i { case 0: return &v.state @@ -244,7 +244,7 @@ func file_message_api_v1_authn_proto_init() { return nil } } - file_message_api_v1_authn_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_message_api_v1_authn_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*AuthData); i { case 0: return &v.state diff --git a/pkg/proto/message_api/v1/message_api.pb.go b/pkg/proto/message_api/v1/message_api.pb.go index 8d64190e..11a0a628 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.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: message_api/v1/message_api.proto @@ -902,7 +902,7 @@ func file_message_api_v1_message_api_proto_rawDescGZIP() []byte { var file_message_api_v1_message_api_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_message_api_v1_message_api_proto_msgTypes = make([]protoimpl.MessageInfo, 12) -var file_message_api_v1_message_api_proto_goTypes = []interface{}{ +var file_message_api_v1_message_api_proto_goTypes = []any{ (SortDirection)(0), // 0: xmtp.message_api.v1.SortDirection (*IndexCursor)(nil), // 1: xmtp.message_api.v1.IndexCursor (*Cursor)(nil), // 2: xmtp.message_api.v1.Cursor @@ -952,7 +952,7 @@ func file_message_api_v1_message_api_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_message_api_v1_message_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_message_api_v1_message_api_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*IndexCursor); i { case 0: return &v.state @@ -964,7 +964,7 @@ func file_message_api_v1_message_api_proto_init() { return nil } } - file_message_api_v1_message_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_message_api_v1_message_api_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*Cursor); i { case 0: return &v.state @@ -976,7 +976,7 @@ func file_message_api_v1_message_api_proto_init() { return nil } } - file_message_api_v1_message_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_message_api_v1_message_api_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*PagingInfo); i { case 0: return &v.state @@ -988,7 +988,7 @@ func file_message_api_v1_message_api_proto_init() { return nil } } - file_message_api_v1_message_api_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_message_api_v1_message_api_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*Envelope); i { case 0: return &v.state @@ -1000,7 +1000,7 @@ func file_message_api_v1_message_api_proto_init() { return nil } } - file_message_api_v1_message_api_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_message_api_v1_message_api_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*PublishRequest); i { case 0: return &v.state @@ -1012,7 +1012,7 @@ func file_message_api_v1_message_api_proto_init() { return nil } } - file_message_api_v1_message_api_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_message_api_v1_message_api_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*PublishResponse); i { case 0: return &v.state @@ -1024,7 +1024,7 @@ func file_message_api_v1_message_api_proto_init() { return nil } } - file_message_api_v1_message_api_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_message_api_v1_message_api_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*SubscribeRequest); i { case 0: return &v.state @@ -1036,7 +1036,7 @@ func file_message_api_v1_message_api_proto_init() { return nil } } - file_message_api_v1_message_api_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_message_api_v1_message_api_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*SubscribeAllRequest); i { case 0: return &v.state @@ -1048,7 +1048,7 @@ func file_message_api_v1_message_api_proto_init() { return nil } } - file_message_api_v1_message_api_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_message_api_v1_message_api_proto_msgTypes[8].Exporter = func(v any, i int) any { switch v := v.(*QueryRequest); i { case 0: return &v.state @@ -1060,7 +1060,7 @@ func file_message_api_v1_message_api_proto_init() { return nil } } - file_message_api_v1_message_api_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_message_api_v1_message_api_proto_msgTypes[9].Exporter = func(v any, i int) any { switch v := v.(*QueryResponse); i { case 0: return &v.state @@ -1072,7 +1072,7 @@ func file_message_api_v1_message_api_proto_init() { return nil } } - file_message_api_v1_message_api_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_message_api_v1_message_api_proto_msgTypes[10].Exporter = func(v any, i int) any { switch v := v.(*BatchQueryRequest); i { case 0: return &v.state @@ -1084,7 +1084,7 @@ func file_message_api_v1_message_api_proto_init() { return nil } } - file_message_api_v1_message_api_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_message_api_v1_message_api_proto_msgTypes[11].Exporter = func(v any, i int) any { switch v := v.(*BatchQueryResponse); i { case 0: return &v.state @@ -1097,7 +1097,7 @@ func file_message_api_v1_message_api_proto_init() { } } } - file_message_api_v1_message_api_proto_msgTypes[1].OneofWrappers = []interface{}{ + file_message_api_v1_message_api_proto_msgTypes[1].OneofWrappers = []any{ (*Cursor_Index)(nil), } type x struct{} diff --git a/pkg/proto/message_contents/ciphertext.pb.go b/pkg/proto/message_contents/ciphertext.pb.go index d3f7401f..b8fa21a6 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.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: message_contents/ciphertext.proto @@ -357,7 +357,7 @@ func file_message_contents_ciphertext_proto_rawDescGZIP() []byte { } var file_message_contents_ciphertext_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_message_contents_ciphertext_proto_goTypes = []interface{}{ +var file_message_contents_ciphertext_proto_goTypes = []any{ (*Ciphertext)(nil), // 0: xmtp.message_contents.Ciphertext (*SignedEciesCiphertext)(nil), // 1: xmtp.message_contents.SignedEciesCiphertext (*Ciphertext_Aes256GcmHkdfsha256)(nil), // 2: xmtp.message_contents.Ciphertext.Aes256gcmHkdfsha256 @@ -381,7 +381,7 @@ func file_message_contents_ciphertext_proto_init() { } file_message_contents_signature_proto_init() if !protoimpl.UnsafeEnabled { - file_message_contents_ciphertext_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_ciphertext_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*Ciphertext); i { case 0: return &v.state @@ -393,7 +393,7 @@ func file_message_contents_ciphertext_proto_init() { return nil } } - file_message_contents_ciphertext_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_ciphertext_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*SignedEciesCiphertext); i { case 0: return &v.state @@ -405,7 +405,7 @@ func file_message_contents_ciphertext_proto_init() { return nil } } - file_message_contents_ciphertext_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_ciphertext_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*Ciphertext_Aes256GcmHkdfsha256); i { case 0: return &v.state @@ -417,7 +417,7 @@ func file_message_contents_ciphertext_proto_init() { return nil } } - file_message_contents_ciphertext_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_ciphertext_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*SignedEciesCiphertext_Ecies); i { case 0: return &v.state @@ -430,7 +430,7 @@ func file_message_contents_ciphertext_proto_init() { } } } - file_message_contents_ciphertext_proto_msgTypes[0].OneofWrappers = []interface{}{ + file_message_contents_ciphertext_proto_msgTypes[0].OneofWrappers = []any{ (*Ciphertext_Aes256GcmHkdfSha256)(nil), } type x struct{} diff --git a/pkg/proto/message_contents/composite.pb.go b/pkg/proto/message_contents/composite.pb.go index 0cdfdd12..25c74d6a 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.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: message_contents/composite.proto @@ -204,7 +204,7 @@ func file_message_contents_composite_proto_rawDescGZIP() []byte { } var file_message_contents_composite_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_message_contents_composite_proto_goTypes = []interface{}{ +var file_message_contents_composite_proto_goTypes = []any{ (*Composite)(nil), // 0: xmtp.message_contents.Composite (*Composite_Part)(nil), // 1: xmtp.message_contents.Composite.Part (*EncodedContent)(nil), // 2: xmtp.message_contents.EncodedContent @@ -227,7 +227,7 @@ func file_message_contents_composite_proto_init() { } file_message_contents_content_proto_init() if !protoimpl.UnsafeEnabled { - file_message_contents_composite_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_composite_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*Composite); i { case 0: return &v.state @@ -239,7 +239,7 @@ func file_message_contents_composite_proto_init() { return nil } } - file_message_contents_composite_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_composite_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*Composite_Part); i { case 0: return &v.state @@ -252,7 +252,7 @@ func file_message_contents_composite_proto_init() { } } } - file_message_contents_composite_proto_msgTypes[1].OneofWrappers = []interface{}{ + file_message_contents_composite_proto_msgTypes[1].OneofWrappers = []any{ (*Composite_Part_Part)(nil), (*Composite_Part_Composite)(nil), } diff --git a/pkg/proto/message_contents/contact.pb.go b/pkg/proto/message_contents/contact.pb.go index 628335da..f7097872 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.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: message_contents/contact.proto @@ -264,7 +264,7 @@ func file_message_contents_contact_proto_rawDescGZIP() []byte { } var file_message_contents_contact_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_message_contents_contact_proto_goTypes = []interface{}{ +var file_message_contents_contact_proto_goTypes = []any{ (*ContactBundleV1)(nil), // 0: xmtp.message_contents.ContactBundleV1 (*ContactBundleV2)(nil), // 1: xmtp.message_contents.ContactBundleV2 (*ContactBundle)(nil), // 2: xmtp.message_contents.ContactBundle @@ -290,7 +290,7 @@ func file_message_contents_contact_proto_init() { } file_message_contents_public_key_proto_init() if !protoimpl.UnsafeEnabled { - file_message_contents_contact_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_contact_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*ContactBundleV1); i { case 0: return &v.state @@ -302,7 +302,7 @@ func file_message_contents_contact_proto_init() { return nil } } - file_message_contents_contact_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_contact_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*ContactBundleV2); i { case 0: return &v.state @@ -314,7 +314,7 @@ func file_message_contents_contact_proto_init() { return nil } } - file_message_contents_contact_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_contact_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*ContactBundle); i { case 0: return &v.state @@ -327,7 +327,7 @@ func file_message_contents_contact_proto_init() { } } } - file_message_contents_contact_proto_msgTypes[2].OneofWrappers = []interface{}{ + file_message_contents_contact_proto_msgTypes[2].OneofWrappers = []any{ (*ContactBundle_V1)(nil), (*ContactBundle_V2)(nil), } diff --git a/pkg/proto/message_contents/content.pb.go b/pkg/proto/message_contents/content.pb.go index ce4f94ee..2bd5effc 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.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: message_contents/content.proto @@ -389,7 +389,7 @@ func file_message_contents_content_proto_rawDescGZIP() []byte { var file_message_contents_content_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_message_contents_content_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_message_contents_content_proto_goTypes = []interface{}{ +var file_message_contents_content_proto_goTypes = []any{ (Compression)(0), // 0: xmtp.message_contents.Compression (*ContentTypeId)(nil), // 1: xmtp.message_contents.ContentTypeId (*EncodedContent)(nil), // 2: xmtp.message_contents.EncodedContent @@ -419,7 +419,7 @@ func file_message_contents_content_proto_init() { file_message_contents_public_key_proto_init() file_message_contents_signature_proto_init() if !protoimpl.UnsafeEnabled { - file_message_contents_content_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_content_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*ContentTypeId); i { case 0: return &v.state @@ -431,7 +431,7 @@ func file_message_contents_content_proto_init() { return nil } } - file_message_contents_content_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_content_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*EncodedContent); i { case 0: return &v.state @@ -443,7 +443,7 @@ func file_message_contents_content_proto_init() { return nil } } - file_message_contents_content_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_content_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*SignedContent); i { case 0: return &v.state @@ -456,7 +456,7 @@ func file_message_contents_content_proto_init() { } } } - file_message_contents_content_proto_msgTypes[1].OneofWrappers = []interface{}{} + file_message_contents_content_proto_msgTypes[1].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/pkg/proto/message_contents/conversation_reference.pb.go b/pkg/proto/message_contents/conversation_reference.pb.go index a1a461de..020d4203 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.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: message_contents/conversation_reference.proto @@ -159,7 +159,7 @@ func file_message_contents_conversation_reference_proto_rawDescGZIP() []byte { } var file_message_contents_conversation_reference_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_message_contents_conversation_reference_proto_goTypes = []interface{}{ +var file_message_contents_conversation_reference_proto_goTypes = []any{ (*ConversationReference)(nil), // 0: xmtp.message_contents.ConversationReference (*InvitationV1_Context)(nil), // 1: xmtp.message_contents.InvitationV1.Context (*ConsentProofPayload)(nil), // 2: xmtp.message_contents.ConsentProofPayload @@ -181,7 +181,7 @@ func file_message_contents_conversation_reference_proto_init() { } file_message_contents_invitation_proto_init() if !protoimpl.UnsafeEnabled { - file_message_contents_conversation_reference_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_conversation_reference_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*ConversationReference); i { case 0: return &v.state diff --git a/pkg/proto/message_contents/ecies.pb.go b/pkg/proto/message_contents/ecies.pb.go index 1e44bf0a..ce692960 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.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: message_contents/ecies.proto @@ -129,7 +129,7 @@ func file_message_contents_ecies_proto_rawDescGZIP() []byte { } var file_message_contents_ecies_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_message_contents_ecies_proto_goTypes = []interface{}{ +var file_message_contents_ecies_proto_goTypes = []any{ (*EciesMessage)(nil), // 0: xmtp.message_contents.EciesMessage } var file_message_contents_ecies_proto_depIdxs = []int32{ @@ -146,7 +146,7 @@ func file_message_contents_ecies_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_message_contents_ecies_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_ecies_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*EciesMessage); i { case 0: return &v.state @@ -159,7 +159,7 @@ func file_message_contents_ecies_proto_init() { } } } - file_message_contents_ecies_proto_msgTypes[0].OneofWrappers = []interface{}{ + file_message_contents_ecies_proto_msgTypes[0].OneofWrappers = []any{ (*EciesMessage_V1)(nil), } type x struct{} diff --git a/pkg/proto/message_contents/frames.pb.go b/pkg/proto/message_contents/frames.pb.go index c9f1e7b0..4e2e6bed 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.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: message_contents/frames.proto @@ -293,7 +293,7 @@ func file_message_contents_frames_proto_rawDescGZIP() []byte { } var file_message_contents_frames_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_message_contents_frames_proto_goTypes = []interface{}{ +var file_message_contents_frames_proto_goTypes = []any{ (*FrameActionBody)(nil), // 0: xmtp.message_contents.FrameActionBody (*FrameAction)(nil), // 1: xmtp.message_contents.FrameAction (*Signature)(nil), // 2: xmtp.message_contents.Signature @@ -317,7 +317,7 @@ func file_message_contents_frames_proto_init() { file_message_contents_public_key_proto_init() file_message_contents_signature_proto_init() if !protoimpl.UnsafeEnabled { - file_message_contents_frames_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_frames_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*FrameActionBody); i { case 0: return &v.state @@ -329,7 +329,7 @@ func file_message_contents_frames_proto_init() { return nil } } - file_message_contents_frames_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_frames_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*FrameAction); i { case 0: return &v.state diff --git a/pkg/proto/message_contents/invitation.pb.go b/pkg/proto/message_contents/invitation.pb.go index c5fcc331..979a3371 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.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: message_contents/invitation.proto @@ -665,7 +665,7 @@ func file_message_contents_invitation_proto_rawDescGZIP() []byte { var file_message_contents_invitation_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_message_contents_invitation_proto_msgTypes = make([]protoimpl.MessageInfo, 8) -var file_message_contents_invitation_proto_goTypes = []interface{}{ +var file_message_contents_invitation_proto_goTypes = []any{ (ConsentProofPayloadVersion)(0), // 0: xmtp.message_contents.ConsentProofPayloadVersion (*InvitationV1)(nil), // 1: xmtp.message_contents.InvitationV1 (*SealedInvitationHeaderV1)(nil), // 2: xmtp.message_contents.SealedInvitationHeaderV1 @@ -703,7 +703,7 @@ func file_message_contents_invitation_proto_init() { file_message_contents_ciphertext_proto_init() file_message_contents_public_key_proto_init() if !protoimpl.UnsafeEnabled { - file_message_contents_invitation_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_invitation_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*InvitationV1); i { case 0: return &v.state @@ -715,7 +715,7 @@ func file_message_contents_invitation_proto_init() { return nil } } - file_message_contents_invitation_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_invitation_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*SealedInvitationHeaderV1); i { case 0: return &v.state @@ -727,7 +727,7 @@ func file_message_contents_invitation_proto_init() { return nil } } - file_message_contents_invitation_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_invitation_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*SealedInvitationV1); i { case 0: return &v.state @@ -739,7 +739,7 @@ func file_message_contents_invitation_proto_init() { return nil } } - file_message_contents_invitation_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_invitation_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*SealedInvitation); i { case 0: return &v.state @@ -751,7 +751,7 @@ func file_message_contents_invitation_proto_init() { return nil } } - file_message_contents_invitation_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_invitation_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*ConsentProofPayload); i { case 0: return &v.state @@ -763,7 +763,7 @@ func file_message_contents_invitation_proto_init() { return nil } } - file_message_contents_invitation_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_invitation_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*InvitationV1_Aes256GcmHkdfsha256); i { case 0: return &v.state @@ -775,7 +775,7 @@ func file_message_contents_invitation_proto_init() { return nil } } - file_message_contents_invitation_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_invitation_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*InvitationV1_Context); i { case 0: return &v.state @@ -788,10 +788,10 @@ func file_message_contents_invitation_proto_init() { } } } - file_message_contents_invitation_proto_msgTypes[0].OneofWrappers = []interface{}{ + file_message_contents_invitation_proto_msgTypes[0].OneofWrappers = []any{ (*InvitationV1_Aes256GcmHkdfSha256)(nil), } - file_message_contents_invitation_proto_msgTypes[3].OneofWrappers = []interface{}{ + file_message_contents_invitation_proto_msgTypes[3].OneofWrappers = []any{ (*SealedInvitation_V1)(nil), } type x struct{} diff --git a/pkg/proto/message_contents/message.pb.go b/pkg/proto/message_contents/message.pb.go index 0735e9fc..b0ac159a 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.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: message_contents/message.proto @@ -583,7 +583,7 @@ func file_message_contents_message_proto_rawDescGZIP() []byte { } var file_message_contents_message_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_message_contents_message_proto_goTypes = []interface{}{ +var file_message_contents_message_proto_goTypes = []any{ (*MessageHeaderV1)(nil), // 0: xmtp.message_contents.MessageHeaderV1 (*MessageV1)(nil), // 1: xmtp.message_contents.MessageV1 (*MessageHeaderV2)(nil), // 2: xmtp.message_contents.MessageHeaderV2 @@ -618,7 +618,7 @@ func file_message_contents_message_proto_init() { file_message_contents_conversation_reference_proto_init() file_message_contents_public_key_proto_init() if !protoimpl.UnsafeEnabled { - file_message_contents_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_message_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*MessageHeaderV1); i { case 0: return &v.state @@ -630,7 +630,7 @@ func file_message_contents_message_proto_init() { return nil } } - file_message_contents_message_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_message_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*MessageV1); i { case 0: return &v.state @@ -642,7 +642,7 @@ func file_message_contents_message_proto_init() { return nil } } - file_message_contents_message_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_message_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*MessageHeaderV2); i { case 0: return &v.state @@ -654,7 +654,7 @@ func file_message_contents_message_proto_init() { return nil } } - file_message_contents_message_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_message_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*MessageV2); i { case 0: return &v.state @@ -666,7 +666,7 @@ func file_message_contents_message_proto_init() { return nil } } - file_message_contents_message_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_message_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*Message); i { case 0: return &v.state @@ -678,7 +678,7 @@ func file_message_contents_message_proto_init() { return nil } } - file_message_contents_message_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_message_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*DecodedMessage); i { case 0: return &v.state @@ -691,12 +691,12 @@ func file_message_contents_message_proto_init() { } } } - file_message_contents_message_proto_msgTypes[3].OneofWrappers = []interface{}{} - file_message_contents_message_proto_msgTypes[4].OneofWrappers = []interface{}{ + file_message_contents_message_proto_msgTypes[3].OneofWrappers = []any{} + file_message_contents_message_proto_msgTypes[4].OneofWrappers = []any{ (*Message_V1)(nil), (*Message_V2)(nil), } - file_message_contents_message_proto_msgTypes[5].OneofWrappers = []interface{}{} + file_message_contents_message_proto_msgTypes[5].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/pkg/proto/message_contents/private_key.pb.go b/pkg/proto/message_contents/private_key.pb.go index 72540fe6..0607e9ae 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.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: message_contents/private_key.proto @@ -740,7 +740,7 @@ func file_message_contents_private_key_proto_rawDescGZIP() []byte { } var file_message_contents_private_key_proto_msgTypes = make([]protoimpl.MessageInfo, 9) -var file_message_contents_private_key_proto_goTypes = []interface{}{ +var file_message_contents_private_key_proto_goTypes = []any{ (*SignedPrivateKey)(nil), // 0: xmtp.message_contents.SignedPrivateKey (*PrivateKeyBundleV2)(nil), // 1: xmtp.message_contents.PrivateKeyBundleV2 (*PrivateKey)(nil), // 2: xmtp.message_contents.PrivateKey @@ -782,7 +782,7 @@ func file_message_contents_private_key_proto_init() { file_message_contents_ciphertext_proto_init() file_message_contents_public_key_proto_init() if !protoimpl.UnsafeEnabled { - file_message_contents_private_key_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_private_key_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*SignedPrivateKey); i { case 0: return &v.state @@ -794,7 +794,7 @@ func file_message_contents_private_key_proto_init() { return nil } } - file_message_contents_private_key_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_private_key_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*PrivateKeyBundleV2); i { case 0: return &v.state @@ -806,7 +806,7 @@ func file_message_contents_private_key_proto_init() { return nil } } - file_message_contents_private_key_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_private_key_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*PrivateKey); i { case 0: return &v.state @@ -818,7 +818,7 @@ func file_message_contents_private_key_proto_init() { return nil } } - file_message_contents_private_key_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_private_key_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*PrivateKeyBundleV1); i { case 0: return &v.state @@ -830,7 +830,7 @@ func file_message_contents_private_key_proto_init() { return nil } } - file_message_contents_private_key_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_private_key_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*PrivateKeyBundle); i { case 0: return &v.state @@ -842,7 +842,7 @@ func file_message_contents_private_key_proto_init() { return nil } } - file_message_contents_private_key_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_private_key_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*EncryptedPrivateKeyBundleV1); i { case 0: return &v.state @@ -854,7 +854,7 @@ func file_message_contents_private_key_proto_init() { return nil } } - file_message_contents_private_key_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_private_key_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*EncryptedPrivateKeyBundle); i { case 0: return &v.state @@ -866,7 +866,7 @@ func file_message_contents_private_key_proto_init() { return nil } } - file_message_contents_private_key_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_private_key_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*SignedPrivateKey_Secp256K1); i { case 0: return &v.state @@ -878,7 +878,7 @@ func file_message_contents_private_key_proto_init() { return nil } } - file_message_contents_private_key_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_private_key_proto_msgTypes[8].Exporter = func(v any, i int) any { switch v := v.(*PrivateKey_Secp256K1); i { case 0: return &v.state @@ -891,17 +891,17 @@ func file_message_contents_private_key_proto_init() { } } } - file_message_contents_private_key_proto_msgTypes[0].OneofWrappers = []interface{}{ + file_message_contents_private_key_proto_msgTypes[0].OneofWrappers = []any{ (*SignedPrivateKey_Secp256K1_)(nil), } - file_message_contents_private_key_proto_msgTypes[2].OneofWrappers = []interface{}{ + file_message_contents_private_key_proto_msgTypes[2].OneofWrappers = []any{ (*PrivateKey_Secp256K1_)(nil), } - file_message_contents_private_key_proto_msgTypes[4].OneofWrappers = []interface{}{ + file_message_contents_private_key_proto_msgTypes[4].OneofWrappers = []any{ (*PrivateKeyBundle_V1)(nil), (*PrivateKeyBundle_V2)(nil), } - file_message_contents_private_key_proto_msgTypes[6].OneofWrappers = []interface{}{ + file_message_contents_private_key_proto_msgTypes[6].OneofWrappers = []any{ (*EncryptedPrivateKeyBundle_V1)(nil), } type x struct{} diff --git a/pkg/proto/message_contents/private_preferences.pb.go b/pkg/proto/message_contents/private_preferences.pb.go index 34aab2b3..3f17535a 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.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: message_contents/private_preferences.proto @@ -629,7 +629,7 @@ func file_message_contents_private_preferences_proto_rawDescGZIP() []byte { } var file_message_contents_private_preferences_proto_msgTypes = make([]protoimpl.MessageInfo, 8) -var file_message_contents_private_preferences_proto_goTypes = []interface{}{ +var file_message_contents_private_preferences_proto_goTypes = []any{ (*PrivatePreferencesAction)(nil), // 0: xmtp.message_contents.PrivatePreferencesAction (*PrivatePreferencesPayload)(nil), // 1: xmtp.message_contents.PrivatePreferencesPayload (*PrivatePreferencesAction_AllowAddress)(nil), // 2: xmtp.message_contents.PrivatePreferencesAction.AllowAddress @@ -662,7 +662,7 @@ func file_message_contents_private_preferences_proto_init() { } file_message_contents_ciphertext_proto_init() if !protoimpl.UnsafeEnabled { - file_message_contents_private_preferences_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_private_preferences_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*PrivatePreferencesAction); i { case 0: return &v.state @@ -674,7 +674,7 @@ func file_message_contents_private_preferences_proto_init() { return nil } } - file_message_contents_private_preferences_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_private_preferences_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*PrivatePreferencesPayload); i { case 0: return &v.state @@ -686,7 +686,7 @@ func file_message_contents_private_preferences_proto_init() { return nil } } - file_message_contents_private_preferences_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_private_preferences_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*PrivatePreferencesAction_AllowAddress); i { case 0: return &v.state @@ -698,7 +698,7 @@ func file_message_contents_private_preferences_proto_init() { return nil } } - file_message_contents_private_preferences_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_private_preferences_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*PrivatePreferencesAction_DenyAddress); i { case 0: return &v.state @@ -710,7 +710,7 @@ func file_message_contents_private_preferences_proto_init() { return nil } } - file_message_contents_private_preferences_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_private_preferences_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*PrivatePreferencesAction_AllowInboxId); i { case 0: return &v.state @@ -722,7 +722,7 @@ func file_message_contents_private_preferences_proto_init() { return nil } } - file_message_contents_private_preferences_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_private_preferences_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*PrivatePreferencesAction_DenyInboxId); i { case 0: return &v.state @@ -734,7 +734,7 @@ func file_message_contents_private_preferences_proto_init() { return nil } } - file_message_contents_private_preferences_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_private_preferences_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*PrivatePreferencesAction_AllowGroup); i { case 0: return &v.state @@ -746,7 +746,7 @@ func file_message_contents_private_preferences_proto_init() { return nil } } - file_message_contents_private_preferences_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_private_preferences_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*PrivatePreferencesAction_DenyGroup); i { case 0: return &v.state @@ -759,7 +759,7 @@ func file_message_contents_private_preferences_proto_init() { } } } - file_message_contents_private_preferences_proto_msgTypes[0].OneofWrappers = []interface{}{ + file_message_contents_private_preferences_proto_msgTypes[0].OneofWrappers = []any{ (*PrivatePreferencesAction_AllowAddress_)(nil), (*PrivatePreferencesAction_DenyAddress_)(nil), (*PrivatePreferencesAction_AllowGroup_)(nil), @@ -767,7 +767,7 @@ func file_message_contents_private_preferences_proto_init() { (*PrivatePreferencesAction_AllowInboxId_)(nil), (*PrivatePreferencesAction_DenyInboxId_)(nil), } - file_message_contents_private_preferences_proto_msgTypes[1].OneofWrappers = []interface{}{ + file_message_contents_private_preferences_proto_msgTypes[1].OneofWrappers = []any{ (*PrivatePreferencesPayload_V1)(nil), } type x struct{} diff --git a/pkg/proto/message_contents/public_key.pb.go b/pkg/proto/message_contents/public_key.pb.go index 2062f960..644eafdf 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.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: message_contents/public_key.proto @@ -554,7 +554,7 @@ func file_message_contents_public_key_proto_rawDescGZIP() []byte { } var file_message_contents_public_key_proto_msgTypes = make([]protoimpl.MessageInfo, 7) -var file_message_contents_public_key_proto_goTypes = []interface{}{ +var file_message_contents_public_key_proto_goTypes = []any{ (*UnsignedPublicKey)(nil), // 0: xmtp.message_contents.UnsignedPublicKey (*SignedPublicKey)(nil), // 1: xmtp.message_contents.SignedPublicKey (*SignedPublicKeyBundle)(nil), // 2: xmtp.message_contents.SignedPublicKeyBundle @@ -587,7 +587,7 @@ func file_message_contents_public_key_proto_init() { } file_message_contents_signature_proto_init() if !protoimpl.UnsafeEnabled { - file_message_contents_public_key_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_public_key_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*UnsignedPublicKey); i { case 0: return &v.state @@ -599,7 +599,7 @@ func file_message_contents_public_key_proto_init() { return nil } } - file_message_contents_public_key_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_public_key_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*SignedPublicKey); i { case 0: return &v.state @@ -611,7 +611,7 @@ func file_message_contents_public_key_proto_init() { return nil } } - file_message_contents_public_key_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_public_key_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*SignedPublicKeyBundle); i { case 0: return &v.state @@ -623,7 +623,7 @@ func file_message_contents_public_key_proto_init() { return nil } } - file_message_contents_public_key_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_public_key_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*PublicKey); i { case 0: return &v.state @@ -635,7 +635,7 @@ func file_message_contents_public_key_proto_init() { return nil } } - file_message_contents_public_key_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_public_key_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*PublicKeyBundle); i { case 0: return &v.state @@ -647,7 +647,7 @@ func file_message_contents_public_key_proto_init() { return nil } } - file_message_contents_public_key_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_public_key_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*UnsignedPublicKey_Secp256K1Uncompressed); i { case 0: return &v.state @@ -659,7 +659,7 @@ func file_message_contents_public_key_proto_init() { return nil } } - file_message_contents_public_key_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_public_key_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*PublicKey_Secp256K1Uncompressed); i { case 0: return &v.state @@ -672,10 +672,10 @@ func file_message_contents_public_key_proto_init() { } } } - file_message_contents_public_key_proto_msgTypes[0].OneofWrappers = []interface{}{ + file_message_contents_public_key_proto_msgTypes[0].OneofWrappers = []any{ (*UnsignedPublicKey_Secp256K1Uncompressed_)(nil), } - file_message_contents_public_key_proto_msgTypes[3].OneofWrappers = []interface{}{ + file_message_contents_public_key_proto_msgTypes[3].OneofWrappers = []any{ (*PublicKey_Secp256K1Uncompressed_)(nil), } type x struct{} diff --git a/pkg/proto/message_contents/signature.pb.go b/pkg/proto/message_contents/signature.pb.go index 75c472a1..331a86ed 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.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: message_contents/signature.proto @@ -278,7 +278,7 @@ func file_message_contents_signature_proto_rawDescGZIP() []byte { } var file_message_contents_signature_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_message_contents_signature_proto_goTypes = []interface{}{ +var file_message_contents_signature_proto_goTypes = []any{ (*Signature)(nil), // 0: xmtp.message_contents.Signature (*Signature_ECDSACompact)(nil), // 1: xmtp.message_contents.Signature.ECDSACompact (*Signature_WalletECDSACompact)(nil), // 2: xmtp.message_contents.Signature.WalletECDSACompact @@ -299,7 +299,7 @@ func file_message_contents_signature_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_message_contents_signature_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_signature_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*Signature); i { case 0: return &v.state @@ -311,7 +311,7 @@ func file_message_contents_signature_proto_init() { return nil } } - file_message_contents_signature_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_signature_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*Signature_ECDSACompact); i { case 0: return &v.state @@ -323,7 +323,7 @@ func file_message_contents_signature_proto_init() { return nil } } - file_message_contents_signature_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_signature_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*Signature_WalletECDSACompact); i { case 0: return &v.state @@ -336,7 +336,7 @@ func file_message_contents_signature_proto_init() { } } } - file_message_contents_signature_proto_msgTypes[0].OneofWrappers = []interface{}{ + file_message_contents_signature_proto_msgTypes[0].OneofWrappers = []any{ (*Signature_EcdsaCompact)(nil), (*Signature_WalletEcdsaCompact)(nil), } diff --git a/pkg/proto/message_contents/signed_payload.pb.go b/pkg/proto/message_contents/signed_payload.pb.go index d0b709ba..6b6bc702 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.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: message_contents/signed_payload.proto @@ -123,7 +123,7 @@ func file_message_contents_signed_payload_proto_rawDescGZIP() []byte { } var file_message_contents_signed_payload_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_message_contents_signed_payload_proto_goTypes = []interface{}{ +var file_message_contents_signed_payload_proto_goTypes = []any{ (*SignedPayload)(nil), // 0: xmtp.message_contents.SignedPayload (*Signature)(nil), // 1: xmtp.message_contents.Signature } @@ -143,7 +143,7 @@ func file_message_contents_signed_payload_proto_init() { } file_message_contents_signature_proto_init() if !protoimpl.UnsafeEnabled { - file_message_contents_signed_payload_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_message_contents_signed_payload_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*SignedPayload); i { case 0: return &v.state diff --git a/pkg/proto/mls/api/v1/mls.pb.go b/pkg/proto/mls/api/v1/mls.pb.go index 8be36b51..92cb491b 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.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: mls/api/v1/mls.proto @@ -1536,7 +1536,7 @@ type GroupMessageInput_V1 struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // Serialized MlsProtocolMessage SenderHmac []byte `protobuf:"bytes,2,opt,name=sender_hmac,json=senderHmac,proto3" json:"sender_hmac,omitempty"` } @@ -2376,7 +2376,7 @@ func file_mls_api_v1_mls_proto_rawDescGZIP() []byte { var file_mls_api_v1_mls_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_mls_api_v1_mls_proto_msgTypes = make([]protoimpl.MessageInfo, 33) -var file_mls_api_v1_mls_proto_goTypes = []interface{}{ +var file_mls_api_v1_mls_proto_goTypes = []any{ (SortDirection)(0), // 0: xmtp.mls.api.v1.SortDirection (*WelcomeMessage)(nil), // 1: xmtp.mls.api.v1.WelcomeMessage (*WelcomeMessageInput)(nil), // 2: xmtp.mls.api.v1.WelcomeMessageInput @@ -2473,7 +2473,7 @@ func file_mls_api_v1_mls_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_mls_api_v1_mls_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_mls_api_v1_mls_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*WelcomeMessage); i { case 0: return &v.state @@ -2485,7 +2485,7 @@ func file_mls_api_v1_mls_proto_init() { return nil } } - file_mls_api_v1_mls_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_mls_api_v1_mls_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*WelcomeMessageInput); i { case 0: return &v.state @@ -2497,7 +2497,7 @@ func file_mls_api_v1_mls_proto_init() { return nil } } - file_mls_api_v1_mls_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_mls_api_v1_mls_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*GroupMessage); i { case 0: return &v.state @@ -2509,7 +2509,7 @@ func file_mls_api_v1_mls_proto_init() { return nil } } - file_mls_api_v1_mls_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_mls_api_v1_mls_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*GroupMessageInput); i { case 0: return &v.state @@ -2521,7 +2521,7 @@ func file_mls_api_v1_mls_proto_init() { return nil } } - file_mls_api_v1_mls_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_mls_api_v1_mls_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*SendGroupMessagesRequest); i { case 0: return &v.state @@ -2533,7 +2533,7 @@ func file_mls_api_v1_mls_proto_init() { return nil } } - file_mls_api_v1_mls_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_mls_api_v1_mls_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*SendWelcomeMessagesRequest); i { case 0: return &v.state @@ -2545,7 +2545,7 @@ func file_mls_api_v1_mls_proto_init() { return nil } } - file_mls_api_v1_mls_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_mls_api_v1_mls_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*KeyPackageUpload); i { case 0: return &v.state @@ -2557,7 +2557,7 @@ func file_mls_api_v1_mls_proto_init() { return nil } } - file_mls_api_v1_mls_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_mls_api_v1_mls_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*RegisterInstallationRequest); i { case 0: return &v.state @@ -2569,7 +2569,7 @@ func file_mls_api_v1_mls_proto_init() { return nil } } - file_mls_api_v1_mls_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_mls_api_v1_mls_proto_msgTypes[8].Exporter = func(v any, i int) any { switch v := v.(*RegisterInstallationResponse); i { case 0: return &v.state @@ -2581,7 +2581,7 @@ func file_mls_api_v1_mls_proto_init() { return nil } } - file_mls_api_v1_mls_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_mls_api_v1_mls_proto_msgTypes[9].Exporter = func(v any, i int) any { switch v := v.(*UploadKeyPackageRequest); i { case 0: return &v.state @@ -2593,7 +2593,7 @@ func file_mls_api_v1_mls_proto_init() { return nil } } - file_mls_api_v1_mls_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_mls_api_v1_mls_proto_msgTypes[10].Exporter = func(v any, i int) any { switch v := v.(*FetchKeyPackagesRequest); i { case 0: return &v.state @@ -2605,7 +2605,7 @@ func file_mls_api_v1_mls_proto_init() { return nil } } - file_mls_api_v1_mls_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_mls_api_v1_mls_proto_msgTypes[11].Exporter = func(v any, i int) any { switch v := v.(*FetchKeyPackagesResponse); i { case 0: return &v.state @@ -2617,7 +2617,7 @@ func file_mls_api_v1_mls_proto_init() { return nil } } - file_mls_api_v1_mls_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + file_mls_api_v1_mls_proto_msgTypes[12].Exporter = func(v any, i int) any { switch v := v.(*RevokeInstallationRequest); i { case 0: return &v.state @@ -2629,7 +2629,7 @@ func file_mls_api_v1_mls_proto_init() { return nil } } - file_mls_api_v1_mls_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + file_mls_api_v1_mls_proto_msgTypes[13].Exporter = func(v any, i int) any { switch v := v.(*GetIdentityUpdatesRequest); i { case 0: return &v.state @@ -2641,7 +2641,7 @@ func file_mls_api_v1_mls_proto_init() { return nil } } - file_mls_api_v1_mls_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + file_mls_api_v1_mls_proto_msgTypes[14].Exporter = func(v any, i int) any { switch v := v.(*GetIdentityUpdatesResponse); i { case 0: return &v.state @@ -2653,7 +2653,7 @@ func file_mls_api_v1_mls_proto_init() { return nil } } - file_mls_api_v1_mls_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + file_mls_api_v1_mls_proto_msgTypes[15].Exporter = func(v any, i int) any { switch v := v.(*PagingInfo); i { case 0: return &v.state @@ -2665,7 +2665,7 @@ func file_mls_api_v1_mls_proto_init() { return nil } } - file_mls_api_v1_mls_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + file_mls_api_v1_mls_proto_msgTypes[16].Exporter = func(v any, i int) any { switch v := v.(*QueryGroupMessagesRequest); i { case 0: return &v.state @@ -2677,7 +2677,7 @@ func file_mls_api_v1_mls_proto_init() { return nil } } - file_mls_api_v1_mls_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + file_mls_api_v1_mls_proto_msgTypes[17].Exporter = func(v any, i int) any { switch v := v.(*QueryGroupMessagesResponse); i { case 0: return &v.state @@ -2689,7 +2689,7 @@ func file_mls_api_v1_mls_proto_init() { return nil } } - file_mls_api_v1_mls_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + file_mls_api_v1_mls_proto_msgTypes[18].Exporter = func(v any, i int) any { switch v := v.(*QueryWelcomeMessagesRequest); i { case 0: return &v.state @@ -2701,7 +2701,7 @@ func file_mls_api_v1_mls_proto_init() { return nil } } - file_mls_api_v1_mls_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + file_mls_api_v1_mls_proto_msgTypes[19].Exporter = func(v any, i int) any { switch v := v.(*QueryWelcomeMessagesResponse); i { case 0: return &v.state @@ -2713,7 +2713,7 @@ func file_mls_api_v1_mls_proto_init() { return nil } } - file_mls_api_v1_mls_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + file_mls_api_v1_mls_proto_msgTypes[20].Exporter = func(v any, i int) any { switch v := v.(*SubscribeGroupMessagesRequest); i { case 0: return &v.state @@ -2725,7 +2725,7 @@ func file_mls_api_v1_mls_proto_init() { return nil } } - file_mls_api_v1_mls_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + file_mls_api_v1_mls_proto_msgTypes[21].Exporter = func(v any, i int) any { switch v := v.(*SubscribeWelcomeMessagesRequest); i { case 0: return &v.state @@ -2737,7 +2737,7 @@ func file_mls_api_v1_mls_proto_init() { return nil } } - file_mls_api_v1_mls_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + file_mls_api_v1_mls_proto_msgTypes[22].Exporter = func(v any, i int) any { switch v := v.(*WelcomeMessage_V1); i { case 0: return &v.state @@ -2749,7 +2749,7 @@ func file_mls_api_v1_mls_proto_init() { return nil } } - file_mls_api_v1_mls_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + file_mls_api_v1_mls_proto_msgTypes[23].Exporter = func(v any, i int) any { switch v := v.(*WelcomeMessageInput_V1); i { case 0: return &v.state @@ -2761,7 +2761,7 @@ func file_mls_api_v1_mls_proto_init() { return nil } } - file_mls_api_v1_mls_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + file_mls_api_v1_mls_proto_msgTypes[24].Exporter = func(v any, i int) any { switch v := v.(*GroupMessage_V1); i { case 0: return &v.state @@ -2773,7 +2773,7 @@ func file_mls_api_v1_mls_proto_init() { return nil } } - file_mls_api_v1_mls_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + file_mls_api_v1_mls_proto_msgTypes[25].Exporter = func(v any, i int) any { switch v := v.(*GroupMessageInput_V1); i { case 0: return &v.state @@ -2785,7 +2785,7 @@ func file_mls_api_v1_mls_proto_init() { return nil } } - file_mls_api_v1_mls_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + file_mls_api_v1_mls_proto_msgTypes[26].Exporter = func(v any, i int) any { switch v := v.(*FetchKeyPackagesResponse_KeyPackage); i { case 0: return &v.state @@ -2797,7 +2797,7 @@ func file_mls_api_v1_mls_proto_init() { return nil } } - file_mls_api_v1_mls_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + file_mls_api_v1_mls_proto_msgTypes[27].Exporter = func(v any, i int) any { switch v := v.(*GetIdentityUpdatesResponse_NewInstallationUpdate); i { case 0: return &v.state @@ -2809,7 +2809,7 @@ func file_mls_api_v1_mls_proto_init() { return nil } } - file_mls_api_v1_mls_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + file_mls_api_v1_mls_proto_msgTypes[28].Exporter = func(v any, i int) any { switch v := v.(*GetIdentityUpdatesResponse_RevokedInstallationUpdate); i { case 0: return &v.state @@ -2821,7 +2821,7 @@ func file_mls_api_v1_mls_proto_init() { return nil } } - file_mls_api_v1_mls_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + file_mls_api_v1_mls_proto_msgTypes[29].Exporter = func(v any, i int) any { switch v := v.(*GetIdentityUpdatesResponse_Update); i { case 0: return &v.state @@ -2833,7 +2833,7 @@ func file_mls_api_v1_mls_proto_init() { return nil } } - file_mls_api_v1_mls_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + file_mls_api_v1_mls_proto_msgTypes[30].Exporter = func(v any, i int) any { switch v := v.(*GetIdentityUpdatesResponse_WalletUpdates); i { case 0: return &v.state @@ -2845,7 +2845,7 @@ func file_mls_api_v1_mls_proto_init() { return nil } } - file_mls_api_v1_mls_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + file_mls_api_v1_mls_proto_msgTypes[31].Exporter = func(v any, i int) any { switch v := v.(*SubscribeGroupMessagesRequest_Filter); i { case 0: return &v.state @@ -2857,7 +2857,7 @@ func file_mls_api_v1_mls_proto_init() { return nil } } - file_mls_api_v1_mls_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + file_mls_api_v1_mls_proto_msgTypes[32].Exporter = func(v any, i int) any { switch v := v.(*SubscribeWelcomeMessagesRequest_Filter); i { case 0: return &v.state @@ -2870,19 +2870,19 @@ func file_mls_api_v1_mls_proto_init() { } } } - file_mls_api_v1_mls_proto_msgTypes[0].OneofWrappers = []interface{}{ + file_mls_api_v1_mls_proto_msgTypes[0].OneofWrappers = []any{ (*WelcomeMessage_V1_)(nil), } - file_mls_api_v1_mls_proto_msgTypes[1].OneofWrappers = []interface{}{ + file_mls_api_v1_mls_proto_msgTypes[1].OneofWrappers = []any{ (*WelcomeMessageInput_V1_)(nil), } - file_mls_api_v1_mls_proto_msgTypes[2].OneofWrappers = []interface{}{ + file_mls_api_v1_mls_proto_msgTypes[2].OneofWrappers = []any{ (*GroupMessage_V1_)(nil), } - file_mls_api_v1_mls_proto_msgTypes[3].OneofWrappers = []interface{}{ + file_mls_api_v1_mls_proto_msgTypes[3].OneofWrappers = []any{ (*GroupMessageInput_V1_)(nil), } - file_mls_api_v1_mls_proto_msgTypes[29].OneofWrappers = []interface{}{ + file_mls_api_v1_mls_proto_msgTypes[29].OneofWrappers = []any{ (*GetIdentityUpdatesResponse_Update_NewInstallation)(nil), (*GetIdentityUpdatesResponse_Update_RevokedInstallation)(nil), } diff --git a/pkg/proto/mls/database/intents.pb.go b/pkg/proto/mls/database/intents.pb.go index c052ff6d..c34968ca 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.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: mls/database/intents.proto @@ -1336,7 +1336,7 @@ func file_mls_database_intents_proto_rawDescGZIP() []byte { var file_mls_database_intents_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_mls_database_intents_proto_msgTypes = make([]protoimpl.MessageInfo, 19) -var file_mls_database_intents_proto_goTypes = []interface{}{ +var file_mls_database_intents_proto_goTypes = []any{ (AdminListUpdateType)(0), // 0: xmtp.mls.database.AdminListUpdateType (*SendMessageData)(nil), // 1: xmtp.mls.database.SendMessageData (*AccountAddresses)(nil), // 2: xmtp.mls.database.AccountAddresses @@ -1386,7 +1386,7 @@ func file_mls_database_intents_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_mls_database_intents_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_mls_database_intents_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*SendMessageData); i { case 0: return &v.state @@ -1398,7 +1398,7 @@ func file_mls_database_intents_proto_init() { return nil } } - file_mls_database_intents_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_mls_database_intents_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*AccountAddresses); i { case 0: return &v.state @@ -1410,7 +1410,7 @@ func file_mls_database_intents_proto_init() { return nil } } - file_mls_database_intents_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_mls_database_intents_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*InstallationIds); i { case 0: return &v.state @@ -1422,7 +1422,7 @@ func file_mls_database_intents_proto_init() { return nil } } - file_mls_database_intents_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_mls_database_intents_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*AddressesOrInstallationIds); i { case 0: return &v.state @@ -1434,7 +1434,7 @@ func file_mls_database_intents_proto_init() { return nil } } - file_mls_database_intents_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_mls_database_intents_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*AddMembersData); i { case 0: return &v.state @@ -1446,7 +1446,7 @@ func file_mls_database_intents_proto_init() { return nil } } - file_mls_database_intents_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_mls_database_intents_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*RemoveMembersData); i { case 0: return &v.state @@ -1458,7 +1458,7 @@ func file_mls_database_intents_proto_init() { return nil } } - file_mls_database_intents_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_mls_database_intents_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*UpdateGroupMembershipData); i { case 0: return &v.state @@ -1470,7 +1470,7 @@ func file_mls_database_intents_proto_init() { return nil } } - file_mls_database_intents_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_mls_database_intents_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*UpdateMetadataData); i { case 0: return &v.state @@ -1482,7 +1482,7 @@ func file_mls_database_intents_proto_init() { return nil } } - file_mls_database_intents_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_mls_database_intents_proto_msgTypes[8].Exporter = func(v any, i int) any { switch v := v.(*UpdateAdminListsData); i { case 0: return &v.state @@ -1494,7 +1494,7 @@ func file_mls_database_intents_proto_init() { return nil } } - file_mls_database_intents_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_mls_database_intents_proto_msgTypes[9].Exporter = func(v any, i int) any { switch v := v.(*PostCommitAction); i { case 0: return &v.state @@ -1506,7 +1506,7 @@ func file_mls_database_intents_proto_init() { return nil } } - file_mls_database_intents_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_mls_database_intents_proto_msgTypes[10].Exporter = func(v any, i int) any { switch v := v.(*SendMessageData_V1); i { case 0: return &v.state @@ -1518,7 +1518,7 @@ func file_mls_database_intents_proto_init() { return nil } } - file_mls_database_intents_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_mls_database_intents_proto_msgTypes[11].Exporter = func(v any, i int) any { switch v := v.(*AddMembersData_V1); i { case 0: return &v.state @@ -1530,7 +1530,7 @@ func file_mls_database_intents_proto_init() { return nil } } - file_mls_database_intents_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + file_mls_database_intents_proto_msgTypes[12].Exporter = func(v any, i int) any { switch v := v.(*RemoveMembersData_V1); i { case 0: return &v.state @@ -1542,7 +1542,7 @@ func file_mls_database_intents_proto_init() { return nil } } - file_mls_database_intents_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + file_mls_database_intents_proto_msgTypes[13].Exporter = func(v any, i int) any { switch v := v.(*UpdateGroupMembershipData_V1); i { case 0: return &v.state @@ -1554,7 +1554,7 @@ func file_mls_database_intents_proto_init() { return nil } } - file_mls_database_intents_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + file_mls_database_intents_proto_msgTypes[15].Exporter = func(v any, i int) any { switch v := v.(*UpdateMetadataData_V1); i { case 0: return &v.state @@ -1566,7 +1566,7 @@ func file_mls_database_intents_proto_init() { return nil } } - file_mls_database_intents_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + file_mls_database_intents_proto_msgTypes[16].Exporter = func(v any, i int) any { switch v := v.(*UpdateAdminListsData_V1); i { case 0: return &v.state @@ -1578,7 +1578,7 @@ func file_mls_database_intents_proto_init() { return nil } } - file_mls_database_intents_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + file_mls_database_intents_proto_msgTypes[17].Exporter = func(v any, i int) any { switch v := v.(*PostCommitAction_Installation); i { case 0: return &v.state @@ -1590,7 +1590,7 @@ func file_mls_database_intents_proto_init() { return nil } } - file_mls_database_intents_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + file_mls_database_intents_proto_msgTypes[18].Exporter = func(v any, i int) any { switch v := v.(*PostCommitAction_SendWelcomes); i { case 0: return &v.state @@ -1603,29 +1603,29 @@ func file_mls_database_intents_proto_init() { } } } - file_mls_database_intents_proto_msgTypes[0].OneofWrappers = []interface{}{ + file_mls_database_intents_proto_msgTypes[0].OneofWrappers = []any{ (*SendMessageData_V1_)(nil), } - file_mls_database_intents_proto_msgTypes[3].OneofWrappers = []interface{}{ + file_mls_database_intents_proto_msgTypes[3].OneofWrappers = []any{ (*AddressesOrInstallationIds_AccountAddresses)(nil), (*AddressesOrInstallationIds_InstallationIds)(nil), } - file_mls_database_intents_proto_msgTypes[4].OneofWrappers = []interface{}{ + file_mls_database_intents_proto_msgTypes[4].OneofWrappers = []any{ (*AddMembersData_V1_)(nil), } - file_mls_database_intents_proto_msgTypes[5].OneofWrappers = []interface{}{ + file_mls_database_intents_proto_msgTypes[5].OneofWrappers = []any{ (*RemoveMembersData_V1_)(nil), } - file_mls_database_intents_proto_msgTypes[6].OneofWrappers = []interface{}{ + file_mls_database_intents_proto_msgTypes[6].OneofWrappers = []any{ (*UpdateGroupMembershipData_V1_)(nil), } - file_mls_database_intents_proto_msgTypes[7].OneofWrappers = []interface{}{ + file_mls_database_intents_proto_msgTypes[7].OneofWrappers = []any{ (*UpdateMetadataData_V1_)(nil), } - file_mls_database_intents_proto_msgTypes[8].OneofWrappers = []interface{}{ + file_mls_database_intents_proto_msgTypes[8].OneofWrappers = []any{ (*UpdateAdminListsData_V1_)(nil), } - file_mls_database_intents_proto_msgTypes[9].OneofWrappers = []interface{}{ + file_mls_database_intents_proto_msgTypes[9].OneofWrappers = []any{ (*PostCommitAction_SendWelcomes_)(nil), } type x struct{} diff --git a/pkg/proto/mls/message_contents/association.pb.go b/pkg/proto/mls/message_contents/association.pb.go index 9d88b786..4a01c2f3 100644 --- a/pkg/proto/mls/message_contents/association.pb.go +++ b/pkg/proto/mls/message_contents/association.pb.go @@ -2,7 +2,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: mls/message_contents/association.proto @@ -479,7 +479,7 @@ func file_mls_message_contents_association_proto_rawDescGZIP() []byte { var file_mls_message_contents_association_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_mls_message_contents_association_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_mls_message_contents_association_proto_goTypes = []interface{}{ +var file_mls_message_contents_association_proto_goTypes = []any{ (AssociationTextVersion)(0), // 0: xmtp.mls.message_contents.AssociationTextVersion (*GrantMessagingAccessAssociation)(nil), // 1: xmtp.mls.message_contents.GrantMessagingAccessAssociation (*RevokeMessagingAccessAssociation)(nil), // 2: xmtp.mls.message_contents.RevokeMessagingAccessAssociation @@ -508,7 +508,7 @@ func file_mls_message_contents_association_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_mls_message_contents_association_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_mls_message_contents_association_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*GrantMessagingAccessAssociation); i { case 0: return &v.state @@ -520,7 +520,7 @@ func file_mls_message_contents_association_proto_init() { return nil } } - file_mls_message_contents_association_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_mls_message_contents_association_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*RevokeMessagingAccessAssociation); i { case 0: return &v.state @@ -532,7 +532,7 @@ func file_mls_message_contents_association_proto_init() { return nil } } - file_mls_message_contents_association_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_mls_message_contents_association_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*LegacyCreateIdentityAssociation); i { case 0: return &v.state @@ -544,7 +544,7 @@ func file_mls_message_contents_association_proto_init() { return nil } } - file_mls_message_contents_association_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_mls_message_contents_association_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*RecoverableEcdsaSignature); i { case 0: return &v.state @@ -556,7 +556,7 @@ func file_mls_message_contents_association_proto_init() { return nil } } - file_mls_message_contents_association_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_mls_message_contents_association_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*EdDsaSignature); i { case 0: return &v.state diff --git a/pkg/proto/mls/message_contents/content.pb.go b/pkg/proto/mls/message_contents/content.pb.go index 71ea4e7c..491659c0 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.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: mls/message_contents/content.proto @@ -831,7 +831,7 @@ func file_mls_message_contents_content_proto_rawDescGZIP() []byte { var file_mls_message_contents_content_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_mls_message_contents_content_proto_msgTypes = make([]protoimpl.MessageInfo, 9) -var file_mls_message_contents_content_proto_goTypes = []interface{}{ +var file_mls_message_contents_content_proto_goTypes = []any{ (Compression)(0), // 0: xmtp.mls.message_contents.Compression (*ContentTypeId)(nil), // 1: xmtp.mls.message_contents.ContentTypeId (*EncodedContent)(nil), // 2: xmtp.mls.message_contents.EncodedContent @@ -866,7 +866,7 @@ func file_mls_message_contents_content_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_mls_message_contents_content_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_mls_message_contents_content_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*ContentTypeId); i { case 0: return &v.state @@ -878,7 +878,7 @@ func file_mls_message_contents_content_proto_init() { return nil } } - file_mls_message_contents_content_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_mls_message_contents_content_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*EncodedContent); i { case 0: return &v.state @@ -890,7 +890,7 @@ func file_mls_message_contents_content_proto_init() { return nil } } - file_mls_message_contents_content_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_mls_message_contents_content_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*PlaintextEnvelope); i { case 0: return &v.state @@ -902,7 +902,7 @@ func file_mls_message_contents_content_proto_init() { return nil } } - file_mls_message_contents_content_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_mls_message_contents_content_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*MessageHistoryRequest); i { case 0: return &v.state @@ -914,7 +914,7 @@ func file_mls_message_contents_content_proto_init() { return nil } } - file_mls_message_contents_content_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_mls_message_contents_content_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*MessageHistoryReply); i { case 0: return &v.state @@ -926,7 +926,7 @@ func file_mls_message_contents_content_proto_init() { return nil } } - file_mls_message_contents_content_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_mls_message_contents_content_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*MessageHistoryKeyType); i { case 0: return &v.state @@ -938,7 +938,7 @@ func file_mls_message_contents_content_proto_init() { return nil } } - file_mls_message_contents_content_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_mls_message_contents_content_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*PlaintextEnvelope_V1); i { case 0: return &v.state @@ -950,7 +950,7 @@ func file_mls_message_contents_content_proto_init() { return nil } } - file_mls_message_contents_content_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_mls_message_contents_content_proto_msgTypes[8].Exporter = func(v any, i int) any { switch v := v.(*PlaintextEnvelope_V2); i { case 0: return &v.state @@ -963,15 +963,15 @@ func file_mls_message_contents_content_proto_init() { } } } - file_mls_message_contents_content_proto_msgTypes[1].OneofWrappers = []interface{}{} - file_mls_message_contents_content_proto_msgTypes[2].OneofWrappers = []interface{}{ + file_mls_message_contents_content_proto_msgTypes[1].OneofWrappers = []any{} + file_mls_message_contents_content_proto_msgTypes[2].OneofWrappers = []any{ (*PlaintextEnvelope_V1_)(nil), (*PlaintextEnvelope_V2_)(nil), } - file_mls_message_contents_content_proto_msgTypes[5].OneofWrappers = []interface{}{ + file_mls_message_contents_content_proto_msgTypes[5].OneofWrappers = []any{ (*MessageHistoryKeyType_Chacha20Poly1305)(nil), } - file_mls_message_contents_content_proto_msgTypes[8].OneofWrappers = []interface{}{ + file_mls_message_contents_content_proto_msgTypes[8].OneofWrappers = []any{ (*PlaintextEnvelope_V2_Content)(nil), (*PlaintextEnvelope_V2_Request)(nil), (*PlaintextEnvelope_V2_Reply)(nil), diff --git a/pkg/proto/mls/message_contents/credential.pb.go b/pkg/proto/mls/message_contents/credential.pb.go index a31114f6..e1a5ba41 100644 --- a/pkg/proto/mls/message_contents/credential.pb.go +++ b/pkg/proto/mls/message_contents/credential.pb.go @@ -2,7 +2,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: mls/message_contents/credential.proto @@ -302,7 +302,7 @@ func file_mls_message_contents_credential_proto_rawDescGZIP() []byte { } var file_mls_message_contents_credential_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_mls_message_contents_credential_proto_goTypes = []interface{}{ +var file_mls_message_contents_credential_proto_goTypes = []any{ (*MlsCredential)(nil), // 0: xmtp.mls.message_contents.MlsCredential (*CredentialRevocation)(nil), // 1: xmtp.mls.message_contents.CredentialRevocation (*GrantMessagingAccessAssociation)(nil), // 2: xmtp.mls.message_contents.GrantMessagingAccessAssociation @@ -327,7 +327,7 @@ func file_mls_message_contents_credential_proto_init() { } file_mls_message_contents_association_proto_init() if !protoimpl.UnsafeEnabled { - file_mls_message_contents_credential_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_mls_message_contents_credential_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*MlsCredential); i { case 0: return &v.state @@ -339,7 +339,7 @@ func file_mls_message_contents_credential_proto_init() { return nil } } - file_mls_message_contents_credential_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_mls_message_contents_credential_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*CredentialRevocation); i { case 0: return &v.state @@ -352,11 +352,11 @@ func file_mls_message_contents_credential_proto_init() { } } } - file_mls_message_contents_credential_proto_msgTypes[0].OneofWrappers = []interface{}{ + file_mls_message_contents_credential_proto_msgTypes[0].OneofWrappers = []any{ (*MlsCredential_MessagingAccess)(nil), (*MlsCredential_LegacyCreateIdentity)(nil), } - file_mls_message_contents_credential_proto_msgTypes[1].OneofWrappers = []interface{}{ + file_mls_message_contents_credential_proto_msgTypes[1].OneofWrappers = []any{ (*CredentialRevocation_InstallationKey)(nil), (*CredentialRevocation_UnsignedLegacyCreateIdentityKey)(nil), (*CredentialRevocation_MessagingAccess)(nil), diff --git a/pkg/proto/mls/message_contents/group_membership.pb.go b/pkg/proto/mls/message_contents/group_membership.pb.go index 457f1b9a..7bf9362c 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.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: mls/message_contents/group_membership.proto @@ -120,7 +120,7 @@ func file_mls_message_contents_group_membership_proto_rawDescGZIP() []byte { } var file_mls_message_contents_group_membership_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_mls_message_contents_group_membership_proto_goTypes = []interface{}{ +var file_mls_message_contents_group_membership_proto_goTypes = []any{ (*GroupMembership)(nil), // 0: xmtp.mls.message_contents.GroupMembership nil, // 1: xmtp.mls.message_contents.GroupMembership.MembersEntry } @@ -139,7 +139,7 @@ func file_mls_message_contents_group_membership_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_mls_message_contents_group_membership_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_mls_message_contents_group_membership_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*GroupMembership); i { case 0: return &v.state diff --git a/pkg/proto/mls/message_contents/group_metadata.pb.go b/pkg/proto/mls/message_contents/group_metadata.pb.go index 862b39ce..00ab4385 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.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: mls/message_contents/group_metadata.proto @@ -201,7 +201,7 @@ func file_mls_message_contents_group_metadata_proto_rawDescGZIP() []byte { var file_mls_message_contents_group_metadata_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_mls_message_contents_group_metadata_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_mls_message_contents_group_metadata_proto_goTypes = []interface{}{ +var file_mls_message_contents_group_metadata_proto_goTypes = []any{ (ConversationType)(0), // 0: xmtp.mls.message_contents.ConversationType (*GroupMetadataV1)(nil), // 1: xmtp.mls.message_contents.GroupMetadataV1 } @@ -220,7 +220,7 @@ func file_mls_message_contents_group_metadata_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_mls_message_contents_group_metadata_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_mls_message_contents_group_metadata_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*GroupMetadataV1); i { case 0: return &v.state 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 985932f4..a8e6dc10 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.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: mls/message_contents/group_mutable_metadata.proto @@ -200,7 +200,7 @@ func file_mls_message_contents_group_mutable_metadata_proto_rawDescGZIP() []byte } var file_mls_message_contents_group_mutable_metadata_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_mls_message_contents_group_mutable_metadata_proto_goTypes = []interface{}{ +var file_mls_message_contents_group_mutable_metadata_proto_goTypes = []any{ (*GroupMutableMetadataV1)(nil), // 0: xmtp.mls.message_contents.GroupMutableMetadataV1 (*Inboxes)(nil), // 1: xmtp.mls.message_contents.Inboxes nil, // 2: xmtp.mls.message_contents.GroupMutableMetadataV1.AttributesEntry @@ -222,7 +222,7 @@ func file_mls_message_contents_group_mutable_metadata_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_mls_message_contents_group_mutable_metadata_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_mls_message_contents_group_mutable_metadata_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*GroupMutableMetadataV1); i { case 0: return &v.state @@ -234,7 +234,7 @@ func file_mls_message_contents_group_mutable_metadata_proto_init() { return nil } } - file_mls_message_contents_group_mutable_metadata_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_mls_message_contents_group_mutable_metadata_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*Inboxes); i { case 0: return &v.state diff --git a/pkg/proto/mls/message_contents/group_permissions.pb.go b/pkg/proto/mls/message_contents/group_permissions.pb.go index cc392ca3..dfcc170e 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.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: mls/message_contents/group_permissions.proto @@ -1120,7 +1120,7 @@ func file_mls_message_contents_group_permissions_proto_rawDescGZIP() []byte { var file_mls_message_contents_group_permissions_proto_enumTypes = make([]protoimpl.EnumInfo, 3) var file_mls_message_contents_group_permissions_proto_msgTypes = make([]protoimpl.MessageInfo, 12) -var file_mls_message_contents_group_permissions_proto_goTypes = []interface{}{ +var file_mls_message_contents_group_permissions_proto_goTypes = []any{ (MembershipPolicy_BasePolicy)(0), // 0: xmtp.mls.message_contents.MembershipPolicy.BasePolicy (MetadataPolicy_MetadataBasePolicy)(0), // 1: xmtp.mls.message_contents.MetadataPolicy.MetadataBasePolicy (PermissionsUpdatePolicy_PermissionsBasePolicy)(0), // 2: xmtp.mls.message_contents.PermissionsUpdatePolicy.PermissionsBasePolicy @@ -1174,7 +1174,7 @@ func file_mls_message_contents_group_permissions_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_mls_message_contents_group_permissions_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_mls_message_contents_group_permissions_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*GroupMutablePermissionsV1); i { case 0: return &v.state @@ -1186,7 +1186,7 @@ func file_mls_message_contents_group_permissions_proto_init() { return nil } } - file_mls_message_contents_group_permissions_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_mls_message_contents_group_permissions_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*PolicySet); i { case 0: return &v.state @@ -1198,7 +1198,7 @@ func file_mls_message_contents_group_permissions_proto_init() { return nil } } - file_mls_message_contents_group_permissions_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_mls_message_contents_group_permissions_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*MembershipPolicy); i { case 0: return &v.state @@ -1210,7 +1210,7 @@ func file_mls_message_contents_group_permissions_proto_init() { return nil } } - file_mls_message_contents_group_permissions_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_mls_message_contents_group_permissions_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*MetadataPolicy); i { case 0: return &v.state @@ -1222,7 +1222,7 @@ func file_mls_message_contents_group_permissions_proto_init() { return nil } } - file_mls_message_contents_group_permissions_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_mls_message_contents_group_permissions_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*PermissionsUpdatePolicy); i { case 0: return &v.state @@ -1234,7 +1234,7 @@ func file_mls_message_contents_group_permissions_proto_init() { return nil } } - file_mls_message_contents_group_permissions_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_mls_message_contents_group_permissions_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*MembershipPolicy_AndCondition); i { case 0: return &v.state @@ -1246,7 +1246,7 @@ func file_mls_message_contents_group_permissions_proto_init() { return nil } } - file_mls_message_contents_group_permissions_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_mls_message_contents_group_permissions_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*MembershipPolicy_AnyCondition); i { case 0: return &v.state @@ -1258,7 +1258,7 @@ func file_mls_message_contents_group_permissions_proto_init() { return nil } } - file_mls_message_contents_group_permissions_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_mls_message_contents_group_permissions_proto_msgTypes[8].Exporter = func(v any, i int) any { switch v := v.(*MetadataPolicy_AndCondition); i { case 0: return &v.state @@ -1270,7 +1270,7 @@ func file_mls_message_contents_group_permissions_proto_init() { return nil } } - file_mls_message_contents_group_permissions_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_mls_message_contents_group_permissions_proto_msgTypes[9].Exporter = func(v any, i int) any { switch v := v.(*MetadataPolicy_AnyCondition); i { case 0: return &v.state @@ -1282,7 +1282,7 @@ func file_mls_message_contents_group_permissions_proto_init() { return nil } } - file_mls_message_contents_group_permissions_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_mls_message_contents_group_permissions_proto_msgTypes[10].Exporter = func(v any, i int) any { switch v := v.(*PermissionsUpdatePolicy_AndCondition); i { case 0: return &v.state @@ -1294,7 +1294,7 @@ func file_mls_message_contents_group_permissions_proto_init() { return nil } } - file_mls_message_contents_group_permissions_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_mls_message_contents_group_permissions_proto_msgTypes[11].Exporter = func(v any, i int) any { switch v := v.(*PermissionsUpdatePolicy_AnyCondition); i { case 0: return &v.state @@ -1307,17 +1307,17 @@ func file_mls_message_contents_group_permissions_proto_init() { } } } - file_mls_message_contents_group_permissions_proto_msgTypes[2].OneofWrappers = []interface{}{ + file_mls_message_contents_group_permissions_proto_msgTypes[2].OneofWrappers = []any{ (*MembershipPolicy_Base)(nil), (*MembershipPolicy_AndCondition_)(nil), (*MembershipPolicy_AnyCondition_)(nil), } - file_mls_message_contents_group_permissions_proto_msgTypes[3].OneofWrappers = []interface{}{ + file_mls_message_contents_group_permissions_proto_msgTypes[3].OneofWrappers = []any{ (*MetadataPolicy_Base)(nil), (*MetadataPolicy_AndCondition_)(nil), (*MetadataPolicy_AnyCondition_)(nil), } - file_mls_message_contents_group_permissions_proto_msgTypes[4].OneofWrappers = []interface{}{ + file_mls_message_contents_group_permissions_proto_msgTypes[4].OneofWrappers = []any{ (*PermissionsUpdatePolicy_Base)(nil), (*PermissionsUpdatePolicy_AndCondition_)(nil), (*PermissionsUpdatePolicy_AnyCondition_)(nil), diff --git a/pkg/proto/mls/message_contents/transcript_messages.pb.go b/pkg/proto/mls/message_contents/transcript_messages.pb.go index 5a074194..524dbde5 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.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: mls/message_contents/transcript_messages.proto @@ -461,7 +461,7 @@ func file_mls_message_contents_transcript_messages_proto_rawDescGZIP() []byte { } var file_mls_message_contents_transcript_messages_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_mls_message_contents_transcript_messages_proto_goTypes = []interface{}{ +var file_mls_message_contents_transcript_messages_proto_goTypes = []any{ (*MembershipChange)(nil), // 0: xmtp.mls.message_contents.MembershipChange (*GroupMembershipChanges)(nil), // 1: xmtp.mls.message_contents.GroupMembershipChanges (*GroupUpdated)(nil), // 2: xmtp.mls.message_contents.GroupUpdated @@ -489,7 +489,7 @@ func file_mls_message_contents_transcript_messages_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_mls_message_contents_transcript_messages_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_mls_message_contents_transcript_messages_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*MembershipChange); i { case 0: return &v.state @@ -501,7 +501,7 @@ func file_mls_message_contents_transcript_messages_proto_init() { return nil } } - file_mls_message_contents_transcript_messages_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_mls_message_contents_transcript_messages_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*GroupMembershipChanges); i { case 0: return &v.state @@ -513,7 +513,7 @@ func file_mls_message_contents_transcript_messages_proto_init() { return nil } } - file_mls_message_contents_transcript_messages_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_mls_message_contents_transcript_messages_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*GroupUpdated); i { case 0: return &v.state @@ -525,7 +525,7 @@ func file_mls_message_contents_transcript_messages_proto_init() { return nil } } - file_mls_message_contents_transcript_messages_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_mls_message_contents_transcript_messages_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*GroupUpdated_Inbox); i { case 0: return &v.state @@ -537,7 +537,7 @@ func file_mls_message_contents_transcript_messages_proto_init() { return nil } } - file_mls_message_contents_transcript_messages_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_mls_message_contents_transcript_messages_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*GroupUpdated_MetadataFieldChange); i { case 0: return &v.state @@ -550,7 +550,7 @@ func file_mls_message_contents_transcript_messages_proto_init() { } } } - file_mls_message_contents_transcript_messages_proto_msgTypes[4].OneofWrappers = []interface{}{} + file_mls_message_contents_transcript_messages_proto_msgTypes[4].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/pkg/proto/mls_validation/v1/service.pb.go b/pkg/proto/mls_validation/v1/service.pb.go index 49c95f9e..94e13133 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.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: mls_validation/v1/service.proto @@ -1179,7 +1179,7 @@ func file_mls_validation_v1_service_proto_rawDescGZIP() []byte { } var file_mls_validation_v1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 16) -var file_mls_validation_v1_service_proto_goTypes = []interface{}{ +var file_mls_validation_v1_service_proto_goTypes = []any{ (*ValidateInboxIdKeyPackagesResponse)(nil), // 0: xmtp.mls_validation.v1.ValidateInboxIdKeyPackagesResponse (*ValidateKeyPackagesRequest)(nil), // 1: xmtp.mls_validation.v1.ValidateKeyPackagesRequest (*ValidateKeyPackagesResponse)(nil), // 2: xmtp.mls_validation.v1.ValidateKeyPackagesResponse @@ -1239,7 +1239,7 @@ func file_mls_validation_v1_service_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_mls_validation_v1_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_mls_validation_v1_service_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*ValidateInboxIdKeyPackagesResponse); i { case 0: return &v.state @@ -1251,7 +1251,7 @@ func file_mls_validation_v1_service_proto_init() { return nil } } - file_mls_validation_v1_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_mls_validation_v1_service_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*ValidateKeyPackagesRequest); i { case 0: return &v.state @@ -1263,7 +1263,7 @@ func file_mls_validation_v1_service_proto_init() { return nil } } - file_mls_validation_v1_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_mls_validation_v1_service_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*ValidateKeyPackagesResponse); i { case 0: return &v.state @@ -1275,7 +1275,7 @@ func file_mls_validation_v1_service_proto_init() { return nil } } - file_mls_validation_v1_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_mls_validation_v1_service_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*ValidateGroupMessagesRequest); i { case 0: return &v.state @@ -1287,7 +1287,7 @@ func file_mls_validation_v1_service_proto_init() { return nil } } - file_mls_validation_v1_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_mls_validation_v1_service_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*ValidateGroupMessagesResponse); i { case 0: return &v.state @@ -1299,7 +1299,7 @@ func file_mls_validation_v1_service_proto_init() { return nil } } - file_mls_validation_v1_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_mls_validation_v1_service_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*GetAssociationStateRequest); i { case 0: return &v.state @@ -1311,7 +1311,7 @@ func file_mls_validation_v1_service_proto_init() { return nil } } - file_mls_validation_v1_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_mls_validation_v1_service_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*GetAssociationStateResponse); i { case 0: return &v.state @@ -1323,7 +1323,7 @@ func file_mls_validation_v1_service_proto_init() { return nil } } - file_mls_validation_v1_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_mls_validation_v1_service_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*ValidateInboxIdsRequest); i { case 0: return &v.state @@ -1335,7 +1335,7 @@ func file_mls_validation_v1_service_proto_init() { return nil } } - file_mls_validation_v1_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_mls_validation_v1_service_proto_msgTypes[8].Exporter = func(v any, i int) any { switch v := v.(*ValidateInboxIdsResponse); i { case 0: return &v.state @@ -1347,7 +1347,7 @@ func file_mls_validation_v1_service_proto_init() { return nil } } - file_mls_validation_v1_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_mls_validation_v1_service_proto_msgTypes[9].Exporter = func(v any, i int) any { switch v := v.(*ValidateInboxIdKeyPackagesResponse_Response); i { case 0: return &v.state @@ -1359,7 +1359,7 @@ func file_mls_validation_v1_service_proto_init() { return nil } } - file_mls_validation_v1_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_mls_validation_v1_service_proto_msgTypes[10].Exporter = func(v any, i int) any { switch v := v.(*ValidateKeyPackagesRequest_KeyPackage); i { case 0: return &v.state @@ -1371,7 +1371,7 @@ func file_mls_validation_v1_service_proto_init() { return nil } } - file_mls_validation_v1_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_mls_validation_v1_service_proto_msgTypes[11].Exporter = func(v any, i int) any { switch v := v.(*ValidateKeyPackagesResponse_ValidationResponse); i { case 0: return &v.state @@ -1383,7 +1383,7 @@ func file_mls_validation_v1_service_proto_init() { return nil } } - file_mls_validation_v1_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + file_mls_validation_v1_service_proto_msgTypes[12].Exporter = func(v any, i int) any { switch v := v.(*ValidateGroupMessagesRequest_GroupMessage); i { case 0: return &v.state @@ -1395,7 +1395,7 @@ func file_mls_validation_v1_service_proto_init() { return nil } } - file_mls_validation_v1_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + file_mls_validation_v1_service_proto_msgTypes[13].Exporter = func(v any, i int) any { switch v := v.(*ValidateGroupMessagesResponse_ValidationResponse); i { case 0: return &v.state @@ -1407,7 +1407,7 @@ func file_mls_validation_v1_service_proto_init() { return nil } } - file_mls_validation_v1_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + file_mls_validation_v1_service_proto_msgTypes[14].Exporter = func(v any, i int) any { switch v := v.(*ValidateInboxIdsRequest_ValidationRequest); i { case 0: return &v.state @@ -1419,7 +1419,7 @@ func file_mls_validation_v1_service_proto_init() { return nil } } - file_mls_validation_v1_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + file_mls_validation_v1_service_proto_msgTypes[15].Exporter = func(v any, i int) any { switch v := v.(*ValidateInboxIdsResponse_ValidationResponse); i { case 0: return &v.state diff --git a/pkg/proto/openapi/mls/api/v1/mls.swagger.json b/pkg/proto/openapi/mls/api/v1/mls.swagger.json index f3f6582d..3068282b 100644 --- a/pkg/proto/openapi/mls/api/v1/mls.swagger.json +++ b/pkg/proto/openapi/mls/api/v1/mls.swagger.json @@ -604,7 +604,8 @@ "properties": { "data": { "type": "string", - "format": "byte" + "format": "byte", + "title": "Serialized MlsProtocolMessage" }, "senderHmac": { "type": "string", diff --git a/pkg/proto/openapi/xmtpv4/message_api/message_api.swagger.json b/pkg/proto/openapi/xmtpv4/message_api/message_api.swagger.json new file mode 100644 index 00000000..660aba85 --- /dev/null +++ b/pkg/proto/openapi/xmtpv4/message_api/message_api.swagger.json @@ -0,0 +1,249 @@ +{ + "swagger": "2.0", + "info": { + "title": "xmtpv4/message_api/message_api.proto", + "version": "version not set" + }, + "tags": [ + { + "name": "ReplicationApi" + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/mls/v2/query-envelopes": { + "post": { + "operationId": "ReplicationApi_QueryEnvelopes", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/xmtpv4QueryEnvelopesResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/xmtpv4QueryEnvelopesRequest" + } + } + ], + "tags": [ + "ReplicationApi" + ] + } + }, + "/mls/v2/subscribe-envelopes": { + "post": { + "operationId": "ReplicationApi_SubscribeEnvelopes", + "responses": { + "200": { + "description": "A successful response.(streaming responses)", + "schema": { + "type": "object", + "properties": { + "result": { + "$ref": "#/definitions/xmtpv4GatewayEnvelope" + }, + "error": { + "$ref": "#/definitions/rpcStatus" + } + }, + "title": "Stream result of xmtpv4GatewayEnvelope" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/xmtpv4BatchSubscribeEnvelopesRequest" + } + } + ], + "tags": [ + "ReplicationApi" + ] + } + } + }, + "definitions": { + "BatchSubscribeEnvelopesRequestSubscribeEnvelopesRequest": { + "type": "object", + "properties": { + "query": { + "$ref": "#/definitions/xmtpv4EnvelopesQuery" + } + } + }, + "identityassociationsRecoverableEcdsaSignature": { + "type": "object", + "properties": { + "bytes": { + "type": "string", + "format": "byte", + "title": "65-bytes [ R || S || V ], with recovery id as the last byte" + } + }, + "title": "RecoverableEcdsaSignature for EIP-191 and V2 signatures" + }, + "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" + } + } + } + }, + "xmtpv4BatchSubscribeEnvelopesRequest": { + "type": "object", + "properties": { + "requests": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/BatchSubscribeEnvelopesRequestSubscribeEnvelopesRequest" + } + } + } + }, + "xmtpv4BlockchainProof": { + "type": "object", + "properties": { + "blockNumber": { + "type": "string", + "format": "uint64" + }, + "publisherId": { + "type": "integer", + "format": "int64" + } + } + }, + "xmtpv4EnvelopesQuery": { + "type": "object", + "properties": { + "originatorSid": { + "type": "string", + "format": "uint64" + }, + "gatewaySid": { + "type": "string", + "format": "uint64" + }, + "topic": { + "type": "string", + "format": "byte" + }, + "originatorId": { + "type": "integer", + "format": "int64" + } + } + }, + "xmtpv4GatewayEnvelope": { + "type": "object", + "properties": { + "gatewaySid": { + "type": "string", + "format": "uint64" + }, + "originatorEnvelope": { + "$ref": "#/definitions/xmtpv4OriginatorEnvelope" + } + } + }, + "xmtpv4OriginatorEnvelope": { + "type": "object", + "properties": { + "unsignedOriginatorEnvelope": { + "type": "string", + "format": "byte", + "title": "Protobuf serialized" + }, + "originatorSignature": { + "$ref": "#/definitions/identityassociationsRecoverableEcdsaSignature" + }, + "blockchainProof": { + "$ref": "#/definitions/xmtpv4BlockchainProof" + } + } + }, + "xmtpv4QueryEnvelopesRequest": { + "type": "object", + "properties": { + "query": { + "$ref": "#/definitions/xmtpv4EnvelopesQuery" + }, + "pagingInfo": { + "$ref": "#/definitions/xmtpxmtpv4PagingInfo" + } + } + }, + "xmtpv4QueryEnvelopesResponse": { + "type": "object", + "properties": { + "envelopes": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/xmtpv4GatewayEnvelope" + } + } + } + }, + "xmtpxmtpv4PagingInfo": { + "type": "object", + "properties": { + "limit": { + "type": "integer", + "format": "int64" + } + }, + "title": "Pagination config for queries" + } + } +} diff --git a/pkg/proto/xmtpv4/message_api/message_api.pb.go b/pkg/proto/xmtpv4/message_api/message_api.pb.go new file mode 100644 index 00000000..58f54651 --- /dev/null +++ b/pkg/proto/xmtpv4/message_api/message_api.pb.go @@ -0,0 +1,1352 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.34.2 +// protoc (unknown) +// source: xmtpv4/message_api/message_api.proto + +package message_api + +import ( + associations "github.com/xmtp/xmtp-node-go/pkg/proto/identity/associations" + _ "google.golang.org/genproto/googleapis/api/annotations" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +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) +) + +type Misbehavior int32 + +const ( + Misbehavior_MISBEHAVIOR_UNSPECIFIED Misbehavior = 0 + Misbehavior_MISBEHAVIOR_UNAVAILABLE_NODE Misbehavior = 1 + Misbehavior_MISBEHAVIOR_OUT_OF_ORDER_ORIGINATOR_SID Misbehavior = 2 + Misbehavior_MISBEHAVIOR_DUPLICATE_ORIGINATOR_SID Misbehavior = 3 + Misbehavior_MISBEHAVIOR_CYCLICAL_MESSAGE_ORDERING Misbehavior = 4 +) + +// Enum value maps for Misbehavior. +var ( + Misbehavior_name = map[int32]string{ + 0: "MISBEHAVIOR_UNSPECIFIED", + 1: "MISBEHAVIOR_UNAVAILABLE_NODE", + 2: "MISBEHAVIOR_OUT_OF_ORDER_ORIGINATOR_SID", + 3: "MISBEHAVIOR_DUPLICATE_ORIGINATOR_SID", + 4: "MISBEHAVIOR_CYCLICAL_MESSAGE_ORDERING", + } + Misbehavior_value = map[string]int32{ + "MISBEHAVIOR_UNSPECIFIED": 0, + "MISBEHAVIOR_UNAVAILABLE_NODE": 1, + "MISBEHAVIOR_OUT_OF_ORDER_ORIGINATOR_SID": 2, + "MISBEHAVIOR_DUPLICATE_ORIGINATOR_SID": 3, + "MISBEHAVIOR_CYCLICAL_MESSAGE_ORDERING": 4, + } +) + +func (x Misbehavior) Enum() *Misbehavior { + p := new(Misbehavior) + *p = x + return p +} + +func (x Misbehavior) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Misbehavior) Descriptor() protoreflect.EnumDescriptor { + return file_xmtpv4_message_api_message_api_proto_enumTypes[0].Descriptor() +} + +func (Misbehavior) Type() protoreflect.EnumType { + return &file_xmtpv4_message_api_message_api_proto_enumTypes[0] +} + +func (x Misbehavior) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Misbehavior.Descriptor instead. +func (Misbehavior) EnumDescriptor() ([]byte, []int) { + return file_xmtpv4_message_api_message_api_proto_rawDescGZIP(), []int{0} +} + +type AuthenticatedData struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + LastOriginatorSids []uint64 `protobuf:"varint,1,rep,packed,name=last_originator_sids,json=lastOriginatorSids,proto3" json:"last_originator_sids,omitempty"` +} + +func (x *AuthenticatedData) Reset() { + *x = AuthenticatedData{} + if protoimpl.UnsafeEnabled { + mi := &file_xmtpv4_message_api_message_api_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AuthenticatedData) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AuthenticatedData) ProtoMessage() {} + +func (x *AuthenticatedData) ProtoReflect() protoreflect.Message { + mi := &file_xmtpv4_message_api_message_api_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AuthenticatedData.ProtoReflect.Descriptor instead. +func (*AuthenticatedData) Descriptor() ([]byte, []int) { + return file_xmtpv4_message_api_message_api_proto_rawDescGZIP(), []int{0} +} + +func (x *AuthenticatedData) GetLastOriginatorSids() []uint64 { + if x != nil { + return x.LastOriginatorSids + } + return nil +} + +// Replaces GroupMessageInput V1 +// To rename or not to rename? +type ClientEnvelope struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // TLS serialized MlsMessageIn, which contains MlsPrivateMessage + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + SenderHmac []byte `protobuf:"bytes,2,opt,name=sender_hmac,json=senderHmac,proto3" json:"sender_hmac,omitempty"` +} + +func (x *ClientEnvelope) Reset() { + *x = ClientEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_xmtpv4_message_api_message_api_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ClientEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ClientEnvelope) ProtoMessage() {} + +func (x *ClientEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_xmtpv4_message_api_message_api_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ClientEnvelope.ProtoReflect.Descriptor instead. +func (*ClientEnvelope) Descriptor() ([]byte, []int) { + return file_xmtpv4_message_api_message_api_proto_rawDescGZIP(), []int{1} +} + +func (x *ClientEnvelope) GetData() []byte { + if x != nil { + return x.Data + } + return nil +} + +func (x *ClientEnvelope) GetSenderHmac() []byte { + if x != nil { + return x.SenderHmac + } + return nil +} + +type PayerEnvelope struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UnsignedClientEnvelope []byte `protobuf:"bytes,1,opt,name=unsigned_client_envelope,json=unsignedClientEnvelope,proto3" json:"unsigned_client_envelope,omitempty"` // Protobuf serialized + PayerSignature *associations.RecoverableEcdsaSignature `protobuf:"bytes,2,opt,name=payer_signature,json=payerSignature,proto3" json:"payer_signature,omitempty"` +} + +func (x *PayerEnvelope) Reset() { + *x = PayerEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_xmtpv4_message_api_message_api_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PayerEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayerEnvelope) ProtoMessage() {} + +func (x *PayerEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_xmtpv4_message_api_message_api_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PayerEnvelope.ProtoReflect.Descriptor instead. +func (*PayerEnvelope) Descriptor() ([]byte, []int) { + return file_xmtpv4_message_api_message_api_proto_rawDescGZIP(), []int{2} +} + +func (x *PayerEnvelope) GetUnsignedClientEnvelope() []byte { + if x != nil { + return x.UnsignedClientEnvelope + } + return nil +} + +func (x *PayerEnvelope) GetPayerSignature() *associations.RecoverableEcdsaSignature { + if x != nil { + return x.PayerSignature + } + return nil +} + +// For blockchain envelopes, the originator_sid is set by the smart contract, +// but the originator_ns is set by the publishing node +type UnsignedOriginatorEnvelope struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + OriginatorSid uint64 `protobuf:"varint,1,opt,name=originator_sid,json=originatorSid,proto3" json:"originator_sid,omitempty"` + OriginatorNs uint64 `protobuf:"varint,2,opt,name=originator_ns,json=originatorNs,proto3" json:"originator_ns,omitempty"` + PayerEnvelope *PayerEnvelope `protobuf:"bytes,3,opt,name=payer_envelope,json=payerEnvelope,proto3" json:"payer_envelope,omitempty"` +} + +func (x *UnsignedOriginatorEnvelope) Reset() { + *x = UnsignedOriginatorEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_xmtpv4_message_api_message_api_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UnsignedOriginatorEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UnsignedOriginatorEnvelope) ProtoMessage() {} + +func (x *UnsignedOriginatorEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_xmtpv4_message_api_message_api_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UnsignedOriginatorEnvelope.ProtoReflect.Descriptor instead. +func (*UnsignedOriginatorEnvelope) Descriptor() ([]byte, []int) { + return file_xmtpv4_message_api_message_api_proto_rawDescGZIP(), []int{3} +} + +func (x *UnsignedOriginatorEnvelope) GetOriginatorSid() uint64 { + if x != nil { + return x.OriginatorSid + } + return 0 +} + +func (x *UnsignedOriginatorEnvelope) GetOriginatorNs() uint64 { + if x != nil { + return x.OriginatorNs + } + return 0 +} + +func (x *UnsignedOriginatorEnvelope) GetPayerEnvelope() *PayerEnvelope { + if x != nil { + return x.PayerEnvelope + } + return nil +} + +type BlockchainProof struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BlockNumber uint64 `protobuf:"varint,1,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"` + PublisherId uint32 `protobuf:"varint,2,opt,name=publisher_id,json=publisherId,proto3" json:"publisher_id,omitempty"` +} + +func (x *BlockchainProof) Reset() { + *x = BlockchainProof{} + if protoimpl.UnsafeEnabled { + mi := &file_xmtpv4_message_api_message_api_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BlockchainProof) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BlockchainProof) ProtoMessage() {} + +func (x *BlockchainProof) ProtoReflect() protoreflect.Message { + mi := &file_xmtpv4_message_api_message_api_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BlockchainProof.ProtoReflect.Descriptor instead. +func (*BlockchainProof) Descriptor() ([]byte, []int) { + return file_xmtpv4_message_api_message_api_proto_rawDescGZIP(), []int{4} +} + +func (x *BlockchainProof) GetBlockNumber() uint64 { + if x != nil { + return x.BlockNumber + } + return 0 +} + +func (x *BlockchainProof) GetPublisherId() uint32 { + if x != nil { + return x.PublisherId + } + return 0 +} + +type OriginatorEnvelope struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UnsignedOriginatorEnvelope []byte `protobuf:"bytes,1,opt,name=unsigned_originator_envelope,json=unsignedOriginatorEnvelope,proto3" json:"unsigned_originator_envelope,omitempty"` // Protobuf serialized + // Types that are assignable to Proof: + // + // *OriginatorEnvelope_OriginatorSignature + // *OriginatorEnvelope_BlockchainProof + Proof isOriginatorEnvelope_Proof `protobuf_oneof:"proof"` +} + +func (x *OriginatorEnvelope) Reset() { + *x = OriginatorEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_xmtpv4_message_api_message_api_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OriginatorEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OriginatorEnvelope) ProtoMessage() {} + +func (x *OriginatorEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_xmtpv4_message_api_message_api_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OriginatorEnvelope.ProtoReflect.Descriptor instead. +func (*OriginatorEnvelope) Descriptor() ([]byte, []int) { + return file_xmtpv4_message_api_message_api_proto_rawDescGZIP(), []int{5} +} + +func (x *OriginatorEnvelope) GetUnsignedOriginatorEnvelope() []byte { + if x != nil { + return x.UnsignedOriginatorEnvelope + } + return nil +} + +func (m *OriginatorEnvelope) GetProof() isOriginatorEnvelope_Proof { + if m != nil { + return m.Proof + } + return nil +} + +func (x *OriginatorEnvelope) GetOriginatorSignature() *associations.RecoverableEcdsaSignature { + if x, ok := x.GetProof().(*OriginatorEnvelope_OriginatorSignature); ok { + return x.OriginatorSignature + } + return nil +} + +func (x *OriginatorEnvelope) GetBlockchainProof() *BlockchainProof { + if x, ok := x.GetProof().(*OriginatorEnvelope_BlockchainProof); ok { + return x.BlockchainProof + } + return nil +} + +type isOriginatorEnvelope_Proof interface { + isOriginatorEnvelope_Proof() +} + +type OriginatorEnvelope_OriginatorSignature struct { + OriginatorSignature *associations.RecoverableEcdsaSignature `protobuf:"bytes,2,opt,name=originator_signature,json=originatorSignature,proto3,oneof"` +} + +type OriginatorEnvelope_BlockchainProof struct { + BlockchainProof *BlockchainProof `protobuf:"bytes,3,opt,name=blockchain_proof,json=blockchainProof,proto3,oneof"` +} + +func (*OriginatorEnvelope_OriginatorSignature) isOriginatorEnvelope_Proof() {} + +func (*OriginatorEnvelope_BlockchainProof) isOriginatorEnvelope_Proof() {} + +type GatewayEnvelope struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + GatewaySid uint64 `protobuf:"varint,1,opt,name=gateway_sid,json=gatewaySid,proto3" json:"gateway_sid,omitempty"` + OriginatorEnvelope *OriginatorEnvelope `protobuf:"bytes,2,opt,name=originator_envelope,json=originatorEnvelope,proto3" json:"originator_envelope,omitempty"` +} + +func (x *GatewayEnvelope) Reset() { + *x = GatewayEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_xmtpv4_message_api_message_api_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GatewayEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GatewayEnvelope) ProtoMessage() {} + +func (x *GatewayEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_xmtpv4_message_api_message_api_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GatewayEnvelope.ProtoReflect.Descriptor instead. +func (*GatewayEnvelope) Descriptor() ([]byte, []int) { + return file_xmtpv4_message_api_message_api_proto_rawDescGZIP(), []int{6} +} + +func (x *GatewayEnvelope) GetGatewaySid() uint64 { + if x != nil { + return x.GatewaySid + } + return 0 +} + +func (x *GatewayEnvelope) GetOriginatorEnvelope() *OriginatorEnvelope { + if x != nil { + return x.OriginatorEnvelope + } + return nil +} + +type EnvelopesQuery struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to LastSeen: + // + // *EnvelopesQuery_OriginatorSid + // *EnvelopesQuery_GatewaySid + LastSeen isEnvelopesQuery_LastSeen `protobuf_oneof:"last_seen"` + // Types that are assignable to Filter: + // + // *EnvelopesQuery_Topic + // *EnvelopesQuery_OriginatorId + Filter isEnvelopesQuery_Filter `protobuf_oneof:"filter"` +} + +func (x *EnvelopesQuery) Reset() { + *x = EnvelopesQuery{} + if protoimpl.UnsafeEnabled { + mi := &file_xmtpv4_message_api_message_api_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EnvelopesQuery) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EnvelopesQuery) ProtoMessage() {} + +func (x *EnvelopesQuery) ProtoReflect() protoreflect.Message { + mi := &file_xmtpv4_message_api_message_api_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use EnvelopesQuery.ProtoReflect.Descriptor instead. +func (*EnvelopesQuery) Descriptor() ([]byte, []int) { + return file_xmtpv4_message_api_message_api_proto_rawDescGZIP(), []int{7} +} + +func (m *EnvelopesQuery) GetLastSeen() isEnvelopesQuery_LastSeen { + if m != nil { + return m.LastSeen + } + return nil +} + +func (x *EnvelopesQuery) GetOriginatorSid() uint64 { + if x, ok := x.GetLastSeen().(*EnvelopesQuery_OriginatorSid); ok { + return x.OriginatorSid + } + return 0 +} + +func (x *EnvelopesQuery) GetGatewaySid() uint64 { + if x, ok := x.GetLastSeen().(*EnvelopesQuery_GatewaySid); ok { + return x.GatewaySid + } + return 0 +} + +func (m *EnvelopesQuery) GetFilter() isEnvelopesQuery_Filter { + if m != nil { + return m.Filter + } + return nil +} + +func (x *EnvelopesQuery) GetTopic() []byte { + if x, ok := x.GetFilter().(*EnvelopesQuery_Topic); ok { + return x.Topic + } + return nil +} + +func (x *EnvelopesQuery) GetOriginatorId() uint32 { + if x, ok := x.GetFilter().(*EnvelopesQuery_OriginatorId); ok { + return x.OriginatorId + } + return 0 +} + +type isEnvelopesQuery_LastSeen interface { + isEnvelopesQuery_LastSeen() +} + +type EnvelopesQuery_OriginatorSid struct { + OriginatorSid uint64 `protobuf:"varint,1,opt,name=originator_sid,json=originatorSid,proto3,oneof"` +} + +type EnvelopesQuery_GatewaySid struct { + GatewaySid uint64 `protobuf:"varint,2,opt,name=gateway_sid,json=gatewaySid,proto3,oneof"` +} + +func (*EnvelopesQuery_OriginatorSid) isEnvelopesQuery_LastSeen() {} + +func (*EnvelopesQuery_GatewaySid) isEnvelopesQuery_LastSeen() {} + +type isEnvelopesQuery_Filter interface { + isEnvelopesQuery_Filter() +} + +type EnvelopesQuery_Topic struct { + Topic []byte `protobuf:"bytes,3,opt,name=topic,proto3,oneof"` +} + +type EnvelopesQuery_OriginatorId struct { + OriginatorId uint32 `protobuf:"varint,4,opt,name=originator_id,json=originatorId,proto3,oneof"` +} + +func (*EnvelopesQuery_Topic) isEnvelopesQuery_Filter() {} + +func (*EnvelopesQuery_OriginatorId) isEnvelopesQuery_Filter() {} + +type BatchSubscribeEnvelopesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Requests []*BatchSubscribeEnvelopesRequest_SubscribeEnvelopesRequest `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"` +} + +func (x *BatchSubscribeEnvelopesRequest) Reset() { + *x = BatchSubscribeEnvelopesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_xmtpv4_message_api_message_api_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BatchSubscribeEnvelopesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BatchSubscribeEnvelopesRequest) ProtoMessage() {} + +func (x *BatchSubscribeEnvelopesRequest) ProtoReflect() protoreflect.Message { + mi := &file_xmtpv4_message_api_message_api_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BatchSubscribeEnvelopesRequest.ProtoReflect.Descriptor instead. +func (*BatchSubscribeEnvelopesRequest) Descriptor() ([]byte, []int) { + return file_xmtpv4_message_api_message_api_proto_rawDescGZIP(), []int{8} +} + +func (x *BatchSubscribeEnvelopesRequest) GetRequests() []*BatchSubscribeEnvelopesRequest_SubscribeEnvelopesRequest { + if x != nil { + return x.Requests + } + return nil +} + +// Pagination config for queries +type PagingInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Limit uint32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"` +} + +func (x *PagingInfo) Reset() { + *x = PagingInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_xmtpv4_message_api_message_api_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PagingInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PagingInfo) ProtoMessage() {} + +func (x *PagingInfo) ProtoReflect() protoreflect.Message { + mi := &file_xmtpv4_message_api_message_api_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PagingInfo.ProtoReflect.Descriptor instead. +func (*PagingInfo) Descriptor() ([]byte, []int) { + return file_xmtpv4_message_api_message_api_proto_rawDescGZIP(), []int{9} +} + +func (x *PagingInfo) GetLimit() uint32 { + if x != nil { + return x.Limit + } + return 0 +} + +type QueryEnvelopesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Query *EnvelopesQuery `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` + PagingInfo *PagingInfo `protobuf:"bytes,2,opt,name=paging_info,json=pagingInfo,proto3" json:"paging_info,omitempty"` +} + +func (x *QueryEnvelopesRequest) Reset() { + *x = QueryEnvelopesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_xmtpv4_message_api_message_api_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryEnvelopesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryEnvelopesRequest) ProtoMessage() {} + +func (x *QueryEnvelopesRequest) ProtoReflect() protoreflect.Message { + mi := &file_xmtpv4_message_api_message_api_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use QueryEnvelopesRequest.ProtoReflect.Descriptor instead. +func (*QueryEnvelopesRequest) Descriptor() ([]byte, []int) { + return file_xmtpv4_message_api_message_api_proto_rawDescGZIP(), []int{10} +} + +func (x *QueryEnvelopesRequest) GetQuery() *EnvelopesQuery { + if x != nil { + return x.Query + } + return nil +} + +func (x *QueryEnvelopesRequest) GetPagingInfo() *PagingInfo { + if x != nil { + return x.PagingInfo + } + return nil +} + +type QueryEnvelopesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Envelopes []*GatewayEnvelope `protobuf:"bytes,1,rep,name=envelopes,proto3" json:"envelopes,omitempty"` +} + +func (x *QueryEnvelopesResponse) Reset() { + *x = QueryEnvelopesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_xmtpv4_message_api_message_api_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryEnvelopesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryEnvelopesResponse) ProtoMessage() {} + +func (x *QueryEnvelopesResponse) ProtoReflect() protoreflect.Message { + mi := &file_xmtpv4_message_api_message_api_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use QueryEnvelopesResponse.ProtoReflect.Descriptor instead. +func (*QueryEnvelopesResponse) Descriptor() ([]byte, []int) { + return file_xmtpv4_message_api_message_api_proto_rawDescGZIP(), []int{11} +} + +func (x *QueryEnvelopesResponse) GetEnvelopes() []*GatewayEnvelope { + if x != nil { + return x.Envelopes + } + return nil +} + +type MisbehaviorReport struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Type Misbehavior `protobuf:"varint,1,opt,name=type,proto3,enum=xmtp.xmtpv4.Misbehavior" json:"type,omitempty"` + Envelopes []*OriginatorEnvelope `protobuf:"bytes,2,rep,name=envelopes,proto3" json:"envelopes,omitempty"` +} + +func (x *MisbehaviorReport) Reset() { + *x = MisbehaviorReport{} + if protoimpl.UnsafeEnabled { + mi := &file_xmtpv4_message_api_message_api_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MisbehaviorReport) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MisbehaviorReport) ProtoMessage() {} + +func (x *MisbehaviorReport) ProtoReflect() protoreflect.Message { + mi := &file_xmtpv4_message_api_message_api_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use MisbehaviorReport.ProtoReflect.Descriptor instead. +func (*MisbehaviorReport) Descriptor() ([]byte, []int) { + return file_xmtpv4_message_api_message_api_proto_rawDescGZIP(), []int{12} +} + +func (x *MisbehaviorReport) GetType() Misbehavior { + if x != nil { + return x.Type + } + return Misbehavior_MISBEHAVIOR_UNSPECIFIED +} + +func (x *MisbehaviorReport) GetEnvelopes() []*OriginatorEnvelope { + if x != nil { + return x.Envelopes + } + return nil +} + +type BatchSubscribeEnvelopesRequest_SubscribeEnvelopesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Query *EnvelopesQuery `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` +} + +func (x *BatchSubscribeEnvelopesRequest_SubscribeEnvelopesRequest) Reset() { + *x = BatchSubscribeEnvelopesRequest_SubscribeEnvelopesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_xmtpv4_message_api_message_api_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BatchSubscribeEnvelopesRequest_SubscribeEnvelopesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BatchSubscribeEnvelopesRequest_SubscribeEnvelopesRequest) ProtoMessage() {} + +func (x *BatchSubscribeEnvelopesRequest_SubscribeEnvelopesRequest) ProtoReflect() protoreflect.Message { + mi := &file_xmtpv4_message_api_message_api_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BatchSubscribeEnvelopesRequest_SubscribeEnvelopesRequest.ProtoReflect.Descriptor instead. +func (*BatchSubscribeEnvelopesRequest_SubscribeEnvelopesRequest) Descriptor() ([]byte, []int) { + return file_xmtpv4_message_api_message_api_proto_rawDescGZIP(), []int{8, 0} +} + +func (x *BatchSubscribeEnvelopesRequest_SubscribeEnvelopesRequest) GetQuery() *EnvelopesQuery { + if x != nil { + return x.Query + } + return nil +} + +var File_xmtpv4_message_api_message_api_proto protoreflect.FileDescriptor + +var file_xmtpv4_message_api_message_api_proto_rawDesc = []byte{ + 0x0a, 0x24, 0x78, 0x6d, 0x74, 0x70, 0x76, 0x34, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x5f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x61, 0x70, 0x69, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x78, 0x6d, 0x74, 0x70, 0x2e, 0x78, 0x6d, 0x74, + 0x70, 0x76, 0x34, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x25, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f, 0x61, 0x73, 0x73, 0x6f, + 0x63, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, + 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x45, 0x0a, 0x11, 0x41, 0x75, 0x74, 0x68, + 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x12, 0x30, 0x0a, + 0x14, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x6f, 0x72, + 0x5f, 0x73, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x04, 0x52, 0x12, 0x6c, 0x61, 0x73, + 0x74, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x69, 0x64, 0x73, 0x22, + 0x45, 0x0a, 0x0e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, + 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, + 0x68, 0x6d, 0x61, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x73, 0x65, 0x6e, 0x64, + 0x65, 0x72, 0x48, 0x6d, 0x61, 0x63, 0x22, 0xa9, 0x01, 0x0a, 0x0d, 0x50, 0x61, 0x79, 0x65, 0x72, + 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x38, 0x0a, 0x18, 0x75, 0x6e, 0x73, 0x69, + 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x65, 0x6e, 0x76, 0x65, + 0x6c, 0x6f, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x16, 0x75, 0x6e, 0x73, 0x69, + 0x67, 0x6e, 0x65, 0x64, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, + 0x70, 0x65, 0x12, 0x5e, 0x0a, 0x0f, 0x70, 0x61, 0x79, 0x65, 0x72, 0x5f, 0x73, 0x69, 0x67, 0x6e, + 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x78, 0x6d, + 0x74, 0x70, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x61, 0x73, 0x73, 0x6f, + 0x63, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, + 0x61, 0x62, 0x6c, 0x65, 0x45, 0x63, 0x64, 0x73, 0x61, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, + 0x72, 0x65, 0x52, 0x0e, 0x70, 0x61, 0x79, 0x65, 0x72, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, + 0x72, 0x65, 0x22, 0xab, 0x01, 0x0a, 0x1a, 0x55, 0x6e, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x4f, + 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x6f, 0x72, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, + 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x6f, 0x72, 0x5f, + 0x73, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6f, 0x72, 0x69, 0x67, 0x69, + 0x6e, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x69, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x6f, 0x72, 0x69, 0x67, + 0x69, 0x6e, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x0c, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x6f, 0x72, 0x4e, 0x73, 0x12, 0x41, 0x0a, + 0x0e, 0x70, 0x61, 0x79, 0x65, 0x72, 0x5f, 0x65, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x78, 0x6d, 0x74, 0x70, 0x2e, 0x78, 0x6d, 0x74, + 0x70, 0x76, 0x34, 0x2e, 0x50, 0x61, 0x79, 0x65, 0x72, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, + 0x65, 0x52, 0x0d, 0x70, 0x61, 0x79, 0x65, 0x72, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, + 0x22, 0x57, 0x0a, 0x0f, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x50, 0x72, + 0x6f, 0x6f, 0x66, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x6e, 0x75, 0x6d, + 0x62, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, + 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, + 0x68, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x70, 0x75, + 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x49, 0x64, 0x22, 0x96, 0x02, 0x0a, 0x12, 0x4f, 0x72, + 0x69, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x6f, 0x72, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, + 0x12, 0x40, 0x0a, 0x1c, 0x75, 0x6e, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x6f, 0x72, 0x69, + 0x67, 0x69, 0x6e, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x65, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x1a, 0x75, 0x6e, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, + 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x6f, 0x72, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, + 0x70, 0x65, 0x12, 0x6a, 0x0a, 0x14, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x6f, 0x72, + 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x35, 0x2e, 0x78, 0x6d, 0x74, 0x70, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, + 0x2e, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x52, 0x65, + 0x63, 0x6f, 0x76, 0x65, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x63, 0x64, 0x73, 0x61, 0x53, 0x69, + 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x48, 0x00, 0x52, 0x13, 0x6f, 0x72, 0x69, 0x67, 0x69, + 0x6e, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x49, + 0x0a, 0x10, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x70, 0x72, 0x6f, + 0x6f, 0x66, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x78, 0x6d, 0x74, 0x70, 0x2e, + 0x78, 0x6d, 0x74, 0x70, 0x76, 0x34, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, + 0x6e, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x48, 0x00, 0x52, 0x0f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, + 0x68, 0x61, 0x69, 0x6e, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x42, 0x07, 0x0a, 0x05, 0x70, 0x72, 0x6f, + 0x6f, 0x66, 0x22, 0x84, 0x01, 0x0a, 0x0f, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x45, 0x6e, + 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, + 0x79, 0x5f, 0x73, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x67, 0x61, 0x74, + 0x65, 0x77, 0x61, 0x79, 0x53, 0x69, 0x64, 0x12, 0x50, 0x0a, 0x13, 0x6f, 0x72, 0x69, 0x67, 0x69, + 0x6e, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x65, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x78, 0x6d, 0x74, 0x70, 0x2e, 0x78, 0x6d, 0x74, 0x70, + 0x76, 0x34, 0x2e, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x6f, 0x72, 0x45, 0x6e, 0x76, + 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x52, 0x12, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x6f, + 0x72, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x22, 0xb2, 0x01, 0x0a, 0x0e, 0x45, 0x6e, + 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x73, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x27, 0x0a, 0x0e, + 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x73, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x04, 0x48, 0x00, 0x52, 0x0d, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x74, + 0x6f, 0x72, 0x53, 0x69, 0x64, 0x12, 0x21, 0x0a, 0x0b, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, + 0x5f, 0x73, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x48, 0x00, 0x52, 0x0a, 0x67, 0x61, + 0x74, 0x65, 0x77, 0x61, 0x79, 0x53, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x05, 0x74, 0x6f, 0x70, 0x69, + 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x01, 0x52, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, + 0x12, 0x25, 0x0a, 0x0d, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x69, + 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x48, 0x01, 0x52, 0x0c, 0x6f, 0x72, 0x69, 0x67, 0x69, + 0x6e, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x42, 0x0b, 0x0a, 0x09, 0x6c, 0x61, 0x73, 0x74, 0x5f, + 0x73, 0x65, 0x65, 0x6e, 0x42, 0x08, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x22, 0xd3, + 0x01, 0x0a, 0x1e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, + 0x65, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x61, 0x0a, 0x08, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x45, 0x2e, 0x78, 0x6d, 0x74, 0x70, 0x2e, 0x78, 0x6d, 0x74, 0x70, 0x76, + 0x34, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, + 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, + 0x70, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x08, 0x72, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x73, 0x1a, 0x4e, 0x0a, 0x19, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, + 0x65, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x31, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1b, 0x2e, 0x78, 0x6d, 0x74, 0x70, 0x2e, 0x78, 0x6d, 0x74, 0x70, 0x76, 0x34, 0x2e, 0x45, + 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x73, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x05, 0x71, + 0x75, 0x65, 0x72, 0x79, 0x22, 0x22, 0x0a, 0x0a, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x49, 0x6e, + 0x66, 0x6f, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0x84, 0x01, 0x0a, 0x15, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x31, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1b, 0x2e, 0x78, 0x6d, 0x74, 0x70, 0x2e, 0x78, 0x6d, 0x74, 0x70, 0x76, 0x34, 0x2e, + 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x73, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x05, + 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x38, 0x0a, 0x0b, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, + 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x78, 0x6d, 0x74, + 0x70, 0x2e, 0x78, 0x6d, 0x74, 0x70, 0x76, 0x34, 0x2e, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x49, + 0x6e, 0x66, 0x6f, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x66, 0x6f, 0x22, + 0x54, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x09, 0x65, 0x6e, 0x76, + 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x78, + 0x6d, 0x74, 0x70, 0x2e, 0x78, 0x6d, 0x74, 0x70, 0x76, 0x34, 0x2e, 0x47, 0x61, 0x74, 0x65, 0x77, + 0x61, 0x79, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x52, 0x09, 0x65, 0x6e, 0x76, 0x65, + 0x6c, 0x6f, 0x70, 0x65, 0x73, 0x22, 0x80, 0x01, 0x0a, 0x11, 0x4d, 0x69, 0x73, 0x62, 0x65, 0x68, + 0x61, 0x76, 0x69, 0x6f, 0x72, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x2c, 0x0a, 0x04, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x78, 0x6d, 0x74, 0x70, + 0x2e, 0x78, 0x6d, 0x74, 0x70, 0x76, 0x34, 0x2e, 0x4d, 0x69, 0x73, 0x62, 0x65, 0x68, 0x61, 0x76, + 0x69, 0x6f, 0x72, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x3d, 0x0a, 0x09, 0x65, 0x6e, 0x76, + 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x78, + 0x6d, 0x74, 0x70, 0x2e, 0x78, 0x6d, 0x74, 0x70, 0x76, 0x34, 0x2e, 0x4f, 0x72, 0x69, 0x67, 0x69, + 0x6e, 0x61, 0x74, 0x6f, 0x72, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x52, 0x09, 0x65, + 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x73, 0x2a, 0xce, 0x01, 0x0a, 0x0b, 0x4d, 0x69, 0x73, + 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x12, 0x1b, 0x0a, 0x17, 0x4d, 0x49, 0x53, 0x42, + 0x45, 0x48, 0x41, 0x56, 0x49, 0x4f, 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, + 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x20, 0x0a, 0x1c, 0x4d, 0x49, 0x53, 0x42, 0x45, 0x48, 0x41, + 0x56, 0x49, 0x4f, 0x52, 0x5f, 0x55, 0x4e, 0x41, 0x56, 0x41, 0x49, 0x4c, 0x41, 0x42, 0x4c, 0x45, + 0x5f, 0x4e, 0x4f, 0x44, 0x45, 0x10, 0x01, 0x12, 0x2b, 0x0a, 0x27, 0x4d, 0x49, 0x53, 0x42, 0x45, + 0x48, 0x41, 0x56, 0x49, 0x4f, 0x52, 0x5f, 0x4f, 0x55, 0x54, 0x5f, 0x4f, 0x46, 0x5f, 0x4f, 0x52, + 0x44, 0x45, 0x52, 0x5f, 0x4f, 0x52, 0x49, 0x47, 0x49, 0x4e, 0x41, 0x54, 0x4f, 0x52, 0x5f, 0x53, + 0x49, 0x44, 0x10, 0x02, 0x12, 0x28, 0x0a, 0x24, 0x4d, 0x49, 0x53, 0x42, 0x45, 0x48, 0x41, 0x56, + 0x49, 0x4f, 0x52, 0x5f, 0x44, 0x55, 0x50, 0x4c, 0x49, 0x43, 0x41, 0x54, 0x45, 0x5f, 0x4f, 0x52, + 0x49, 0x47, 0x49, 0x4e, 0x41, 0x54, 0x4f, 0x52, 0x5f, 0x53, 0x49, 0x44, 0x10, 0x03, 0x12, 0x29, + 0x0a, 0x25, 0x4d, 0x49, 0x53, 0x42, 0x45, 0x48, 0x41, 0x56, 0x49, 0x4f, 0x52, 0x5f, 0x43, 0x59, + 0x43, 0x4c, 0x49, 0x43, 0x41, 0x4c, 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x5f, 0x4f, + 0x52, 0x44, 0x45, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x04, 0x32, 0x9b, 0x02, 0x0a, 0x0e, 0x52, 0x65, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x70, 0x69, 0x12, 0x89, 0x01, 0x0a, + 0x12, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, + 0x70, 0x65, 0x73, 0x12, 0x2b, 0x2e, 0x78, 0x6d, 0x74, 0x70, 0x2e, 0x78, 0x6d, 0x74, 0x70, 0x76, + 0x34, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, + 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x1c, 0x2e, 0x78, 0x6d, 0x74, 0x70, 0x2e, 0x78, 0x6d, 0x74, 0x70, 0x76, 0x34, 0x2e, 0x47, + 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x22, 0x26, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x3a, 0x01, 0x2a, 0x22, 0x1b, 0x2f, 0x6d, 0x6c, 0x73, 0x2f, + 0x76, 0x32, 0x2f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x2d, 0x65, 0x6e, 0x76, + 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x73, 0x30, 0x01, 0x12, 0x7d, 0x0a, 0x0e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x73, 0x12, 0x22, 0x2e, 0x78, 0x6d, 0x74, + 0x70, 0x2e, 0x78, 0x6d, 0x74, 0x70, 0x76, 0x34, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, + 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, + 0x2e, 0x78, 0x6d, 0x74, 0x70, 0x2e, 0x78, 0x6d, 0x74, 0x70, 0x76, 0x34, 0x2e, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x3a, 0x01, 0x2a, 0x22, 0x17, + 0x2f, 0x6d, 0x6c, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2d, 0x65, 0x6e, + 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x73, 0x42, 0xaa, 0x01, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x2e, + 0x78, 0x6d, 0x74, 0x70, 0x2e, 0x78, 0x6d, 0x74, 0x70, 0x76, 0x34, 0x42, 0x0f, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x41, 0x70, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x39, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x6d, 0x74, 0x70, 0x2f, + 0x78, 0x6d, 0x74, 0x70, 0x2d, 0x6e, 0x6f, 0x64, 0x65, 0x2d, 0x67, 0x6f, 0x2f, 0x70, 0x6b, 0x67, + 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x78, 0x6d, 0x74, 0x70, 0x76, 0x34, 0x2f, 0x6d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x61, 0x70, 0x69, 0xa2, 0x02, 0x03, 0x58, 0x58, 0x58, 0xaa, + 0x02, 0x0b, 0x58, 0x6d, 0x74, 0x70, 0x2e, 0x58, 0x6d, 0x74, 0x70, 0x76, 0x34, 0xca, 0x02, 0x0b, + 0x58, 0x6d, 0x74, 0x70, 0x5c, 0x58, 0x6d, 0x74, 0x70, 0x76, 0x34, 0xe2, 0x02, 0x17, 0x58, 0x6d, + 0x74, 0x70, 0x5c, 0x58, 0x6d, 0x74, 0x70, 0x76, 0x34, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0c, 0x58, 0x6d, 0x74, 0x70, 0x3a, 0x3a, 0x58, 0x6d, + 0x74, 0x70, 0x76, 0x34, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_xmtpv4_message_api_message_api_proto_rawDescOnce sync.Once + file_xmtpv4_message_api_message_api_proto_rawDescData = file_xmtpv4_message_api_message_api_proto_rawDesc +) + +func file_xmtpv4_message_api_message_api_proto_rawDescGZIP() []byte { + file_xmtpv4_message_api_message_api_proto_rawDescOnce.Do(func() { + file_xmtpv4_message_api_message_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_xmtpv4_message_api_message_api_proto_rawDescData) + }) + return file_xmtpv4_message_api_message_api_proto_rawDescData +} + +var file_xmtpv4_message_api_message_api_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_xmtpv4_message_api_message_api_proto_msgTypes = make([]protoimpl.MessageInfo, 14) +var file_xmtpv4_message_api_message_api_proto_goTypes = []any{ + (Misbehavior)(0), // 0: xmtp.xmtpv4.Misbehavior + (*AuthenticatedData)(nil), // 1: xmtp.xmtpv4.AuthenticatedData + (*ClientEnvelope)(nil), // 2: xmtp.xmtpv4.ClientEnvelope + (*PayerEnvelope)(nil), // 3: xmtp.xmtpv4.PayerEnvelope + (*UnsignedOriginatorEnvelope)(nil), // 4: xmtp.xmtpv4.UnsignedOriginatorEnvelope + (*BlockchainProof)(nil), // 5: xmtp.xmtpv4.BlockchainProof + (*OriginatorEnvelope)(nil), // 6: xmtp.xmtpv4.OriginatorEnvelope + (*GatewayEnvelope)(nil), // 7: xmtp.xmtpv4.GatewayEnvelope + (*EnvelopesQuery)(nil), // 8: xmtp.xmtpv4.EnvelopesQuery + (*BatchSubscribeEnvelopesRequest)(nil), // 9: xmtp.xmtpv4.BatchSubscribeEnvelopesRequest + (*PagingInfo)(nil), // 10: xmtp.xmtpv4.PagingInfo + (*QueryEnvelopesRequest)(nil), // 11: xmtp.xmtpv4.QueryEnvelopesRequest + (*QueryEnvelopesResponse)(nil), // 12: xmtp.xmtpv4.QueryEnvelopesResponse + (*MisbehaviorReport)(nil), // 13: xmtp.xmtpv4.MisbehaviorReport + (*BatchSubscribeEnvelopesRequest_SubscribeEnvelopesRequest)(nil), // 14: xmtp.xmtpv4.BatchSubscribeEnvelopesRequest.SubscribeEnvelopesRequest + (*associations.RecoverableEcdsaSignature)(nil), // 15: xmtp.identity.associations.RecoverableEcdsaSignature +} +var file_xmtpv4_message_api_message_api_proto_depIdxs = []int32{ + 15, // 0: xmtp.xmtpv4.PayerEnvelope.payer_signature:type_name -> xmtp.identity.associations.RecoverableEcdsaSignature + 3, // 1: xmtp.xmtpv4.UnsignedOriginatorEnvelope.payer_envelope:type_name -> xmtp.xmtpv4.PayerEnvelope + 15, // 2: xmtp.xmtpv4.OriginatorEnvelope.originator_signature:type_name -> xmtp.identity.associations.RecoverableEcdsaSignature + 5, // 3: xmtp.xmtpv4.OriginatorEnvelope.blockchain_proof:type_name -> xmtp.xmtpv4.BlockchainProof + 6, // 4: xmtp.xmtpv4.GatewayEnvelope.originator_envelope:type_name -> xmtp.xmtpv4.OriginatorEnvelope + 14, // 5: xmtp.xmtpv4.BatchSubscribeEnvelopesRequest.requests:type_name -> xmtp.xmtpv4.BatchSubscribeEnvelopesRequest.SubscribeEnvelopesRequest + 8, // 6: xmtp.xmtpv4.QueryEnvelopesRequest.query:type_name -> xmtp.xmtpv4.EnvelopesQuery + 10, // 7: xmtp.xmtpv4.QueryEnvelopesRequest.paging_info:type_name -> xmtp.xmtpv4.PagingInfo + 7, // 8: xmtp.xmtpv4.QueryEnvelopesResponse.envelopes:type_name -> xmtp.xmtpv4.GatewayEnvelope + 0, // 9: xmtp.xmtpv4.MisbehaviorReport.type:type_name -> xmtp.xmtpv4.Misbehavior + 6, // 10: xmtp.xmtpv4.MisbehaviorReport.envelopes:type_name -> xmtp.xmtpv4.OriginatorEnvelope + 8, // 11: xmtp.xmtpv4.BatchSubscribeEnvelopesRequest.SubscribeEnvelopesRequest.query:type_name -> xmtp.xmtpv4.EnvelopesQuery + 9, // 12: xmtp.xmtpv4.ReplicationApi.SubscribeEnvelopes:input_type -> xmtp.xmtpv4.BatchSubscribeEnvelopesRequest + 11, // 13: xmtp.xmtpv4.ReplicationApi.QueryEnvelopes:input_type -> xmtp.xmtpv4.QueryEnvelopesRequest + 7, // 14: xmtp.xmtpv4.ReplicationApi.SubscribeEnvelopes:output_type -> xmtp.xmtpv4.GatewayEnvelope + 12, // 15: xmtp.xmtpv4.ReplicationApi.QueryEnvelopes:output_type -> xmtp.xmtpv4.QueryEnvelopesResponse + 14, // [14:16] is the sub-list for method output_type + 12, // [12:14] is the sub-list for method input_type + 12, // [12:12] is the sub-list for extension type_name + 12, // [12:12] is the sub-list for extension extendee + 0, // [0:12] is the sub-list for field type_name +} + +func init() { file_xmtpv4_message_api_message_api_proto_init() } +func file_xmtpv4_message_api_message_api_proto_init() { + if File_xmtpv4_message_api_message_api_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_xmtpv4_message_api_message_api_proto_msgTypes[0].Exporter = func(v any, i int) any { + switch v := v.(*AuthenticatedData); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_xmtpv4_message_api_message_api_proto_msgTypes[1].Exporter = func(v any, i int) any { + switch v := v.(*ClientEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_xmtpv4_message_api_message_api_proto_msgTypes[2].Exporter = func(v any, i int) any { + switch v := v.(*PayerEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_xmtpv4_message_api_message_api_proto_msgTypes[3].Exporter = func(v any, i int) any { + switch v := v.(*UnsignedOriginatorEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_xmtpv4_message_api_message_api_proto_msgTypes[4].Exporter = func(v any, i int) any { + switch v := v.(*BlockchainProof); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_xmtpv4_message_api_message_api_proto_msgTypes[5].Exporter = func(v any, i int) any { + switch v := v.(*OriginatorEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_xmtpv4_message_api_message_api_proto_msgTypes[6].Exporter = func(v any, i int) any { + switch v := v.(*GatewayEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_xmtpv4_message_api_message_api_proto_msgTypes[7].Exporter = func(v any, i int) any { + switch v := v.(*EnvelopesQuery); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_xmtpv4_message_api_message_api_proto_msgTypes[8].Exporter = func(v any, i int) any { + switch v := v.(*BatchSubscribeEnvelopesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_xmtpv4_message_api_message_api_proto_msgTypes[9].Exporter = func(v any, i int) any { + switch v := v.(*PagingInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_xmtpv4_message_api_message_api_proto_msgTypes[10].Exporter = func(v any, i int) any { + switch v := v.(*QueryEnvelopesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_xmtpv4_message_api_message_api_proto_msgTypes[11].Exporter = func(v any, i int) any { + switch v := v.(*QueryEnvelopesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_xmtpv4_message_api_message_api_proto_msgTypes[12].Exporter = func(v any, i int) any { + switch v := v.(*MisbehaviorReport); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_xmtpv4_message_api_message_api_proto_msgTypes[13].Exporter = func(v any, i int) any { + switch v := v.(*BatchSubscribeEnvelopesRequest_SubscribeEnvelopesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_xmtpv4_message_api_message_api_proto_msgTypes[5].OneofWrappers = []any{ + (*OriginatorEnvelope_OriginatorSignature)(nil), + (*OriginatorEnvelope_BlockchainProof)(nil), + } + file_xmtpv4_message_api_message_api_proto_msgTypes[7].OneofWrappers = []any{ + (*EnvelopesQuery_OriginatorSid)(nil), + (*EnvelopesQuery_GatewaySid)(nil), + (*EnvelopesQuery_Topic)(nil), + (*EnvelopesQuery_OriginatorId)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_xmtpv4_message_api_message_api_proto_rawDesc, + NumEnums: 1, + NumMessages: 14, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_xmtpv4_message_api_message_api_proto_goTypes, + DependencyIndexes: file_xmtpv4_message_api_message_api_proto_depIdxs, + EnumInfos: file_xmtpv4_message_api_message_api_proto_enumTypes, + MessageInfos: file_xmtpv4_message_api_message_api_proto_msgTypes, + }.Build() + File_xmtpv4_message_api_message_api_proto = out.File + file_xmtpv4_message_api_message_api_proto_rawDesc = nil + file_xmtpv4_message_api_message_api_proto_goTypes = nil + file_xmtpv4_message_api_message_api_proto_depIdxs = nil +} diff --git a/pkg/proto/xmtpv4/message_api/message_api.pb.gw.go b/pkg/proto/xmtpv4/message_api/message_api.pb.gw.go new file mode 100644 index 00000000..5f5e0715 --- /dev/null +++ b/pkg/proto/xmtpv4/message_api/message_api.pb.gw.go @@ -0,0 +1,217 @@ +// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. +// source: xmtpv4/message_api/message_api.proto + +/* +Package message_api is a reverse proxy. + +It translates gRPC into RESTful JSON APIs. +*/ +package message_api + +import ( + "context" + "io" + "net/http" + + "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" + "github.com/grpc-ecosystem/grpc-gateway/v2/utilities" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/metadata" + "google.golang.org/grpc/status" + "google.golang.org/protobuf/proto" +) + +// Suppress "imported and not used" errors +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join + +func request_ReplicationApi_SubscribeEnvelopes_0(ctx context.Context, marshaler runtime.Marshaler, client ReplicationApiClient, req *http.Request, pathParams map[string]string) (ReplicationApi_SubscribeEnvelopesClient, runtime.ServerMetadata, error) { + var protoReq BatchSubscribeEnvelopesRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + stream, err := client.SubscribeEnvelopes(ctx, &protoReq) + if err != nil { + return nil, metadata, err + } + header, err := stream.Header() + if err != nil { + return nil, metadata, err + } + metadata.HeaderMD = header + return stream, metadata, nil + +} + +func request_ReplicationApi_QueryEnvelopes_0(ctx context.Context, marshaler runtime.Marshaler, client ReplicationApiClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryEnvelopesRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.QueryEnvelopes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_ReplicationApi_QueryEnvelopes_0(ctx context.Context, marshaler runtime.Marshaler, server ReplicationApiServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryEnvelopesRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.QueryEnvelopes(ctx, &protoReq) + return msg, metadata, err + +} + +// RegisterReplicationApiHandlerServer registers the http handlers for service ReplicationApi to "mux". +// UnaryRPC :call ReplicationApiServer directly. +// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterReplicationApiHandlerFromEndpoint instead. +func RegisterReplicationApiHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ReplicationApiServer) error { + + mux.Handle("POST", pattern_ReplicationApi_SubscribeEnvelopes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport") + _, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + }) + + mux.Handle("POST", pattern_ReplicationApi_QueryEnvelopes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/xmtp.xmtpv4.ReplicationApi/QueryEnvelopes", runtime.WithHTTPPathPattern("/mls/v2/query-envelopes")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_ReplicationApi_QueryEnvelopes_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ReplicationApi_QueryEnvelopes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +// RegisterReplicationApiHandlerFromEndpoint is same as RegisterReplicationApiHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterReplicationApiHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.DialContext(ctx, endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterReplicationApiHandler(ctx, mux, conn) +} + +// RegisterReplicationApiHandler registers the http handlers for service ReplicationApi to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterReplicationApiHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterReplicationApiHandlerClient(ctx, mux, NewReplicationApiClient(conn)) +} + +// RegisterReplicationApiHandlerClient registers the http handlers for service ReplicationApi +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ReplicationApiClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ReplicationApiClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "ReplicationApiClient" to call the correct interceptors. +func RegisterReplicationApiHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ReplicationApiClient) error { + + mux.Handle("POST", pattern_ReplicationApi_SubscribeEnvelopes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/xmtp.xmtpv4.ReplicationApi/SubscribeEnvelopes", runtime.WithHTTPPathPattern("/mls/v2/subscribe-envelopes")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_ReplicationApi_SubscribeEnvelopes_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ReplicationApi_SubscribeEnvelopes_0(annotatedContext, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_ReplicationApi_QueryEnvelopes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/xmtp.xmtpv4.ReplicationApi/QueryEnvelopes", runtime.WithHTTPPathPattern("/mls/v2/query-envelopes")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_ReplicationApi_QueryEnvelopes_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_ReplicationApi_QueryEnvelopes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_ReplicationApi_SubscribeEnvelopes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"mls", "v2", "subscribe-envelopes"}, "")) + + pattern_ReplicationApi_QueryEnvelopes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"mls", "v2", "query-envelopes"}, "")) +) + +var ( + forward_ReplicationApi_SubscribeEnvelopes_0 = runtime.ForwardResponseStream + + forward_ReplicationApi_QueryEnvelopes_0 = runtime.ForwardResponseMessage +) diff --git a/pkg/proto/xmtpv4/message_api/message_api_grpc.pb.go b/pkg/proto/xmtpv4/message_api/message_api_grpc.pb.go new file mode 100644 index 00000000..f9105dde --- /dev/null +++ b/pkg/proto/xmtpv4/message_api/message_api_grpc.pb.go @@ -0,0 +1,174 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.3.0 +// - protoc (unknown) +// source: xmtpv4/message_api/message_api.proto + +package message_api + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +const ( + ReplicationApi_SubscribeEnvelopes_FullMethodName = "/xmtp.xmtpv4.ReplicationApi/SubscribeEnvelopes" + ReplicationApi_QueryEnvelopes_FullMethodName = "/xmtp.xmtpv4.ReplicationApi/QueryEnvelopes" +) + +// ReplicationApiClient is the client API for ReplicationApi service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type ReplicationApiClient interface { + SubscribeEnvelopes(ctx context.Context, in *BatchSubscribeEnvelopesRequest, opts ...grpc.CallOption) (ReplicationApi_SubscribeEnvelopesClient, error) + QueryEnvelopes(ctx context.Context, in *QueryEnvelopesRequest, opts ...grpc.CallOption) (*QueryEnvelopesResponse, error) +} + +type replicationApiClient struct { + cc grpc.ClientConnInterface +} + +func NewReplicationApiClient(cc grpc.ClientConnInterface) ReplicationApiClient { + return &replicationApiClient{cc} +} + +func (c *replicationApiClient) SubscribeEnvelopes(ctx context.Context, in *BatchSubscribeEnvelopesRequest, opts ...grpc.CallOption) (ReplicationApi_SubscribeEnvelopesClient, error) { + stream, err := c.cc.NewStream(ctx, &ReplicationApi_ServiceDesc.Streams[0], ReplicationApi_SubscribeEnvelopes_FullMethodName, opts...) + if err != nil { + return nil, err + } + x := &replicationApiSubscribeEnvelopesClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type ReplicationApi_SubscribeEnvelopesClient interface { + Recv() (*GatewayEnvelope, error) + grpc.ClientStream +} + +type replicationApiSubscribeEnvelopesClient struct { + grpc.ClientStream +} + +func (x *replicationApiSubscribeEnvelopesClient) Recv() (*GatewayEnvelope, error) { + m := new(GatewayEnvelope) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *replicationApiClient) QueryEnvelopes(ctx context.Context, in *QueryEnvelopesRequest, opts ...grpc.CallOption) (*QueryEnvelopesResponse, error) { + out := new(QueryEnvelopesResponse) + err := c.cc.Invoke(ctx, ReplicationApi_QueryEnvelopes_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ReplicationApiServer is the server API for ReplicationApi service. +// All implementations must embed UnimplementedReplicationApiServer +// for forward compatibility +type ReplicationApiServer interface { + SubscribeEnvelopes(*BatchSubscribeEnvelopesRequest, ReplicationApi_SubscribeEnvelopesServer) error + QueryEnvelopes(context.Context, *QueryEnvelopesRequest) (*QueryEnvelopesResponse, error) + mustEmbedUnimplementedReplicationApiServer() +} + +// UnimplementedReplicationApiServer must be embedded to have forward compatible implementations. +type UnimplementedReplicationApiServer struct { +} + +func (UnimplementedReplicationApiServer) SubscribeEnvelopes(*BatchSubscribeEnvelopesRequest, ReplicationApi_SubscribeEnvelopesServer) error { + return status.Errorf(codes.Unimplemented, "method SubscribeEnvelopes not implemented") +} +func (UnimplementedReplicationApiServer) QueryEnvelopes(context.Context, *QueryEnvelopesRequest) (*QueryEnvelopesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryEnvelopes not implemented") +} +func (UnimplementedReplicationApiServer) mustEmbedUnimplementedReplicationApiServer() {} + +// UnsafeReplicationApiServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to ReplicationApiServer will +// result in compilation errors. +type UnsafeReplicationApiServer interface { + mustEmbedUnimplementedReplicationApiServer() +} + +func RegisterReplicationApiServer(s grpc.ServiceRegistrar, srv ReplicationApiServer) { + s.RegisterService(&ReplicationApi_ServiceDesc, srv) +} + +func _ReplicationApi_SubscribeEnvelopes_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(BatchSubscribeEnvelopesRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(ReplicationApiServer).SubscribeEnvelopes(m, &replicationApiSubscribeEnvelopesServer{stream}) +} + +type ReplicationApi_SubscribeEnvelopesServer interface { + Send(*GatewayEnvelope) error + grpc.ServerStream +} + +type replicationApiSubscribeEnvelopesServer struct { + grpc.ServerStream +} + +func (x *replicationApiSubscribeEnvelopesServer) Send(m *GatewayEnvelope) error { + return x.ServerStream.SendMsg(m) +} + +func _ReplicationApi_QueryEnvelopes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryEnvelopesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ReplicationApiServer).QueryEnvelopes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ReplicationApi_QueryEnvelopes_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ReplicationApiServer).QueryEnvelopes(ctx, req.(*QueryEnvelopesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// ReplicationApi_ServiceDesc is the grpc.ServiceDesc for ReplicationApi service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var ReplicationApi_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "xmtp.xmtpv4.ReplicationApi", + HandlerType: (*ReplicationApiServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "QueryEnvelopes", + Handler: _ReplicationApi_QueryEnvelopes_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "SubscribeEnvelopes", + Handler: _ReplicationApi_SubscribeEnvelopes_Handler, + ServerStreams: true, + }, + }, + Metadata: "xmtpv4/message_api/message_api.proto", +} From df81deff38ca83b551bb53abe1d561a4fae3cc7e Mon Sep 17 00:00:00 2001 From: Nicholas Molnar <65710+neekolas@users.noreply.github.com> Date: Wed, 24 Jul 2024 11:13:51 -0700 Subject: [PATCH 2/6] Bootstrap server --- cmd/replication/main.go | 100 +++++++++++++++++++++++++++++++++ pkg/replication/api/server.go | 79 ++++++++++++++++++++++++++ pkg/replication/api/service.go | 30 ++++++++++ pkg/replication/options.go | 19 +++++++ pkg/replication/server.go | 48 ++++++++++++++++ 5 files changed, 276 insertions(+) create mode 100644 cmd/replication/main.go create mode 100644 pkg/replication/api/server.go create mode 100644 pkg/replication/api/service.go create mode 100644 pkg/replication/options.go create mode 100644 pkg/replication/server.go diff --git a/cmd/replication/main.go b/cmd/replication/main.go new file mode 100644 index 00000000..a53f1785 --- /dev/null +++ b/cmd/replication/main.go @@ -0,0 +1,100 @@ +package main + +import ( + "context" + "log" + "os" + "os/signal" + "sync" + "syscall" + + "github.com/jessevdk/go-flags" + "github.com/xmtp/xmtp-node-go/pkg/replication" + "github.com/xmtp/xmtp-node-go/pkg/tracing" + "go.uber.org/zap" + "go.uber.org/zap/zapcore" +) + +var Commit string + +var options replication.Options + +func main() { + if _, err := flags.Parse(&options); err != nil { + if err, ok := err.(*flags.Error); !ok || err.Type != flags.ErrHelp { + fatal("Could not parse options: %s", err) + } + return + } + + log, _, err := buildLogger(options) + if err != nil { + fatal("Could not build logger: %s", err) + } + + ctx, cancel := context.WithCancel(context.Background()) + + var wg sync.WaitGroup + doneC := make(chan bool, 1) + tracing.GoPanicWrap(ctx, &wg, "main", func(ctx context.Context) { + s, err := replication.New(ctx, log, options) + if err != nil { + log.Fatal("initializing server", zap.Error(err)) + } + s.WaitForShutdown() + doneC <- true + }) + + sigC := make(chan os.Signal, 1) + signal.Notify(sigC, + syscall.SIGHUP, + syscall.SIGINT, + syscall.SIGTERM, + syscall.SIGQUIT, + ) + select { + case sig := <-sigC: + log.Info("ending on signal", zap.String("signal", sig.String())) + case <-doneC: + } + cancel() + wg.Wait() +} + +func fatal(msg string, args ...any) { + log.Fatalf(msg, args...) +} + +func buildLogger(options replication.Options) (*zap.Logger, *zap.Config, error) { + atom := zap.NewAtomicLevel() + level := zapcore.InfoLevel + err := level.Set(options.LogLevel) + if err != nil { + return nil, nil, err + } + atom.SetLevel(level) + + cfg := zap.Config{ + Encoding: options.LogEncoding, + Level: atom, + OutputPaths: []string{"stdout"}, + ErrorOutputPaths: []string{"stderr"}, + EncoderConfig: zapcore.EncoderConfig{ + MessageKey: "message", + LevelKey: "level", + EncodeLevel: zapcore.CapitalLevelEncoder, + TimeKey: "time", + EncodeTime: zapcore.ISO8601TimeEncoder, + NameKey: "caller", + EncodeCaller: zapcore.ShortCallerEncoder, + }, + } + log, err := cfg.Build() + if err != nil { + return nil, nil, err + } + + log = log.Named("replication") + + return log, &cfg, nil +} diff --git a/pkg/replication/api/server.go b/pkg/replication/api/server.go new file mode 100644 index 00000000..1fa871ce --- /dev/null +++ b/pkg/replication/api/server.go @@ -0,0 +1,79 @@ +package api + +import ( + "context" + "fmt" + "net" + "strings" + "sync" + "time" + + "github.com/pires/go-proxyproto" + "github.com/xmtp/xmtp-node-go/pkg/proto/xmtpv4/message_api" + "github.com/xmtp/xmtp-node-go/pkg/tracing" + "go.uber.org/zap" + "google.golang.org/grpc" + "google.golang.org/grpc/credentials/insecure" + "google.golang.org/grpc/health" + healthgrpc "google.golang.org/grpc/health/grpc_health_v1" + "google.golang.org/grpc/keepalive" +) + +type ApiServer struct { + log *zap.Logger + wg sync.WaitGroup + grpcListener net.Listener + ctx context.Context + service *message_api.ReplicationApiServer +} + +func NewAPIServer(ctx context.Context, log *zap.Logger, port int) (*ApiServer, error) { + grpcListener, err := net.Listen("tcp", fmt.Sprintf("0.0.0.0:%d", port)) + if err != nil { + return nil, err + } + s := &ApiServer{ + log: log, + ctx: ctx, + wg: sync.WaitGroup{}, + grpcListener: &proxyproto.Listener{Listener: grpcListener, ReadHeaderTimeout: 10 * time.Second}, + } + + // TODO: Add interceptors + + options := []grpc.ServerOption{ + grpc.Creds(insecure.NewCredentials()), + grpc.KeepaliveParams(keepalive.ServerParameters{ + Time: 5 * time.Minute, + }), + grpc.KeepaliveEnforcementPolicy(keepalive.EnforcementPolicy{ + PermitWithoutStream: true, + MinTime: 15 * time.Second, + }), + // grpc.MaxRecvMsgSize(s.Config.Options.MaxMsgSize), + } + grpcServer := grpc.NewServer(options...) + + healthcheck := health.NewServer() + healthgrpc.RegisterHealthServer(grpcServer, healthcheck) + + replicationService, err := NewReplicationApiService(ctx, log) + if err != nil { + return nil, err + } + s.service = &replicationService + + tracing.GoPanicWrap(s.ctx, &s.wg, "grpc", func(ctx context.Context) { + s.log.Info("serving grpc", zap.String("address", s.grpcListener.Addr().String())) + err := grpcServer.Serve(s.grpcListener) + if err != nil && !isErrUseOfClosedConnection(err) { + s.log.Error("serving grpc", zap.Error(err)) + } + }) + + return s, nil +} + +func isErrUseOfClosedConnection(err error) bool { + return strings.Contains(err.Error(), "use of closed network connection") +} diff --git a/pkg/replication/api/service.go b/pkg/replication/api/service.go new file mode 100644 index 00000000..ea3c3a24 --- /dev/null +++ b/pkg/replication/api/service.go @@ -0,0 +1,30 @@ +package api + +import ( + "context" + + "github.com/xmtp/xmtp-node-go/pkg/proto/xmtpv4/message_api" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" + + "go.uber.org/zap" +) + +type Service struct { + message_api.UnimplementedReplicationApiServer + + ctx context.Context + log *zap.Logger +} + +func NewReplicationApiService(ctx context.Context, log *zap.Logger) (message_api.ReplicationApiServer, error) { + return &Service{ctx: ctx, log: log}, nil +} + +func (s *Service) SubscribeEnvelopes(req *message_api.BatchSubscribeEnvelopesRequest, server message_api.ReplicationApi_SubscribeEnvelopesServer) error { + return status.Errorf(codes.Unimplemented, "method SubscribeEnvelopes not implemented") +} + +func (s *Service) QueryEnvelopes(ctx context.Context, req *message_api.QueryEnvelopesRequest) (*message_api.QueryEnvelopesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryEnvelopes not implemented") +} diff --git a/pkg/replication/options.go b/pkg/replication/options.go new file mode 100644 index 00000000..6667a251 --- /dev/null +++ b/pkg/replication/options.go @@ -0,0 +1,19 @@ +package replication + +type ApiOptions struct { + Port int `short:"p" long:"port" description:"Port to listen on" default:"5050"` +} + +type DbOptions struct { + ReaderConnectionString string `long:"reader-connection-string" description:"Reader connection string"` + WriterConnectionString string `long:"writer-connection-string" description:"Writer connection string" required:"true"` +} + +type Options struct { + LogLevel string `short:"l" long:"log-level" description:"Define the logging level, supported strings are: DEBUG, INFO, WARN, ERROR, DPANIC, PANIC, FATAL, and their lower-case forms." default:"INFO"` + //nolint:staticcheck + LogEncoding string `long:"log-encoding" description:"Log encoding format. Either console or json" choice:"console" choice:"json" default:"console"` + + API ApiOptions `group:"API Options" namespace:"api"` + DB DbOptions `group:"Database Options" namespace:"db"` +} diff --git a/pkg/replication/server.go b/pkg/replication/server.go new file mode 100644 index 00000000..2520b9b4 --- /dev/null +++ b/pkg/replication/server.go @@ -0,0 +1,48 @@ +package replication + +import ( + "context" + "os" + "os/signal" + "syscall" + + "github.com/xmtp/xmtp-node-go/pkg/replication/api" + "go.uber.org/zap" +) + +type Server struct { + options Options + log *zap.Logger + ctx context.Context + cancel context.CancelFunc + apiServer *api.ApiServer +} + +func New(ctx context.Context, log *zap.Logger, options Options) (*Server, error) { + var err error + + s := &Server{ + options: options, + log: log, + } + + s.ctx, s.cancel = context.WithCancel(ctx) + s.apiServer, err = api.NewAPIServer(ctx, log, options.API.Port) + if err != nil { + return nil, err + } + log.Info("Replication server started", zap.Int("port", options.API.Port)) + return s, nil +} + +func (s *Server) WaitForShutdown() { + termChannel := make(chan os.Signal, 1) + signal.Notify(termChannel, syscall.SIGINT, syscall.SIGTERM) + <-termChannel + s.Shutdown() +} + +func (s *Server) Shutdown() { + s.cancel() + +} From 8c3562705744a0f97fd83fb7d8ef588a1e16051f Mon Sep 17 00:00:00 2001 From: Nicholas Molnar <65710+neekolas@users.noreply.github.com> Date: Wed, 24 Jul 2024 12:21:06 -0700 Subject: [PATCH 3/6] Add Server --- pkg/replication/api/server.go | 5 ++++ pkg/replication/options.go | 2 ++ pkg/replication/registry/registry.go | 32 +++++++++++++++++++++++++ pkg/replication/server.go | 35 +++++++++++++++++++++------- pkg/replication/server_test.go | 35 ++++++++++++++++++++++++++++ 5 files changed, 100 insertions(+), 9 deletions(-) create mode 100644 pkg/replication/registry/registry.go create mode 100644 pkg/replication/server_test.go diff --git a/pkg/replication/api/server.go b/pkg/replication/api/server.go index 1fa871ce..fc2969ac 100644 --- a/pkg/replication/api/server.go +++ b/pkg/replication/api/server.go @@ -29,6 +29,7 @@ type ApiServer struct { func NewAPIServer(ctx context.Context, log *zap.Logger, port int) (*ApiServer, error) { grpcListener, err := net.Listen("tcp", fmt.Sprintf("0.0.0.0:%d", port)) + if err != nil { return nil, err } @@ -74,6 +75,10 @@ func NewAPIServer(ctx context.Context, log *zap.Logger, port int) (*ApiServer, e return s, nil } +func (s *ApiServer) Addr() net.Addr { + return s.grpcListener.Addr() +} + func isErrUseOfClosedConnection(err error) bool { return strings.Contains(err.Error(), "use of closed network connection") } diff --git a/pkg/replication/options.go b/pkg/replication/options.go index 6667a251..95f536c3 100644 --- a/pkg/replication/options.go +++ b/pkg/replication/options.go @@ -14,6 +14,8 @@ type Options struct { //nolint:staticcheck LogEncoding string `long:"log-encoding" description:"Log encoding format. Either console or json" choice:"console" choice:"json" default:"console"` + PrivateKeyString string `long:"private-key" description:"Private key to use for the node"` + API ApiOptions `group:"API Options" namespace:"api"` DB DbOptions `group:"Database Options" namespace:"db"` } diff --git a/pkg/replication/registry/registry.go b/pkg/replication/registry/registry.go new file mode 100644 index 00000000..56a33cbc --- /dev/null +++ b/pkg/replication/registry/registry.go @@ -0,0 +1,32 @@ +package registry + +type Node struct { + Index int + PublicKey []byte + GrpcAddress string + DisabledBlock *uint64 + // Maybe add mTLS cert here +} + +type NodeRegistry interface { + GetNodes() ([]Node, error) + // OnChange() +} + +// TODO: Delete this or move to a test file + +type FixedNodeRegistry struct { + nodes []Node +} + +func NewFixedNodeRegistry(nodes []Node) *FixedNodeRegistry { + return &FixedNodeRegistry{nodes: nodes} +} + +func (r *FixedNodeRegistry) GetNodes() ([]Node, error) { + return r.nodes, nil +} + +func (f *FixedNodeRegistry) AddNode(node Node) { + f.nodes = append(f.nodes, node) +} diff --git a/pkg/replication/server.go b/pkg/replication/server.go index 2520b9b4..bcd0952e 100644 --- a/pkg/replication/server.go +++ b/pkg/replication/server.go @@ -2,28 +2,38 @@ package replication import ( "context" + "crypto/ecdsa" + "net" "os" "os/signal" "syscall" + "github.com/ethereum/go-ethereum/crypto" "github.com/xmtp/xmtp-node-go/pkg/replication/api" + "github.com/xmtp/xmtp-node-go/pkg/replication/registry" "go.uber.org/zap" ) type Server struct { - options Options - log *zap.Logger - ctx context.Context - cancel context.CancelFunc - apiServer *api.ApiServer + options Options + log *zap.Logger + ctx context.Context + cancel context.CancelFunc + apiServer *api.ApiServer + nodeRegistry registry.NodeRegistry + privateKey *ecdsa.PrivateKey } -func New(ctx context.Context, log *zap.Logger, options Options) (*Server, error) { +func New(ctx context.Context, log *zap.Logger, options Options, nodeRegistry registry.NodeRegistry) (*Server, error) { var err error - s := &Server{ - options: options, - log: log, + options: options, + log: log, + nodeRegistry: nodeRegistry, + } + s.privateKey, err = parsePrivateKey(options.PrivateKeyString) + if err != nil { + return nil, err } s.ctx, s.cancel = context.WithCancel(ctx) @@ -35,6 +45,10 @@ func New(ctx context.Context, log *zap.Logger, options Options) (*Server, error) return s, nil } +func (s *Server) Addr() net.Addr { + return s.apiServer.Addr() +} + func (s *Server) WaitForShutdown() { termChannel := make(chan os.Signal, 1) signal.Notify(termChannel, syscall.SIGINT, syscall.SIGTERM) @@ -44,5 +58,8 @@ func (s *Server) WaitForShutdown() { func (s *Server) Shutdown() { s.cancel() +} +func parsePrivateKey(privateKeyString string) (*ecdsa.PrivateKey, error) { + return crypto.HexToECDSA(privateKeyString) } diff --git a/pkg/replication/server_test.go b/pkg/replication/server_test.go new file mode 100644 index 00000000..82c92823 --- /dev/null +++ b/pkg/replication/server_test.go @@ -0,0 +1,35 @@ +package replication + +import ( + "context" + "encoding/hex" + "testing" + + "github.com/ethereum/go-ethereum/crypto" + "github.com/stretchr/testify/require" + "github.com/xmtp/xmtp-node-go/pkg/replication/registry" + test "github.com/xmtp/xmtp-node-go/pkg/testing" +) + +func NewTestServer(t *testing.T, registry registry.NodeRegistry) *Server { + log := test.NewLog(t) + privateKey, err := crypto.GenerateKey() + require.NoError(t, err) + + server, err := New(context.Background(), log, Options{ + PrivateKeyString: hex.EncodeToString(crypto.FromECDSA(privateKey)), + API: ApiOptions{ + Port: 0, + }, + }, registry) + require.NoError(t, err) + + return server +} + +func TestCreateServer(t *testing.T) { + registry := registry.NewFixedNodeRegistry([]registry.Node{}) + server1 := NewTestServer(t, registry) + server2 := NewTestServer(t, registry) + require.NotEqual(t, server1.Addr(), server2.Addr()) +} From 11c141d8a9ebc7e18430d8d3afafcdbc02c33716 Mon Sep 17 00:00:00 2001 From: Nicholas Molnar <65710+neekolas@users.noreply.github.com> Date: Wed, 24 Jul 2024 12:55:42 -0700 Subject: [PATCH 4/6] Add DB --- dev/docker/docker-compose.yml | 12 +++++- .../20240528181852_init-schema.down.sql | 8 ++++ .../20240528181852_init-schema.up.sql | 6 +++ pkg/migrations/replication/migrate.go | 18 +++++++++ pkg/replication/options.go | 10 ++++- pkg/replication/server.go | 40 +++++++++++++++++++ pkg/replication/server_test.go | 16 ++++++++ pkg/server/pgxdb.go | 6 +-- pkg/server/server.go | 2 +- 9 files changed, 110 insertions(+), 8 deletions(-) create mode 100644 pkg/migrations/replication/20240528181852_init-schema.down.sql create mode 100644 pkg/migrations/replication/20240528181852_init-schema.up.sql create mode 100644 pkg/migrations/replication/migrate.go diff --git a/dev/docker/docker-compose.yml b/dev/docker/docker-compose.yml index bb052823..9abd09a9 100644 --- a/dev/docker/docker-compose.yml +++ b/dev/docker/docker-compose.yml @@ -6,18 +6,26 @@ services: ports: - 15432:5432 authz-db: - image: postgres:13 + image: postgres:16 environment: POSTGRES_PASSWORD: xmtp ports: - 6543:5432 + mls-db: - image: postgres:13 + image: postgres:16 environment: POSTGRES_PASSWORD: xmtp ports: - 7654:5432 + replication-db: + image: postgres:16 + environment: + POSTGRES_PASSWORD: xmtp + ports: + - 8765:5432 + prometheus: image: prom/prometheus ports: diff --git a/pkg/migrations/replication/20240528181852_init-schema.down.sql b/pkg/migrations/replication/20240528181852_init-schema.down.sql new file mode 100644 index 00000000..28f04c5c --- /dev/null +++ b/pkg/migrations/replication/20240528181852_init-schema.down.sql @@ -0,0 +1,8 @@ +SET statement_timeout = 0; + +--bun:split +SELECT + 1 + --bun:split + SELECT + 2 diff --git a/pkg/migrations/replication/20240528181852_init-schema.up.sql b/pkg/migrations/replication/20240528181852_init-schema.up.sql new file mode 100644 index 00000000..c5e60c59 --- /dev/null +++ b/pkg/migrations/replication/20240528181852_init-schema.up.sql @@ -0,0 +1,6 @@ +SET statement_timeout = 0; + +--bun:split +SELECT + 1; + diff --git a/pkg/migrations/replication/migrate.go b/pkg/migrations/replication/migrate.go new file mode 100644 index 00000000..5c9fdd27 --- /dev/null +++ b/pkg/migrations/replication/migrate.go @@ -0,0 +1,18 @@ +package replication + +import ( + "embed" + + "github.com/uptrace/bun/migrate" +) + +var Migrations = migrate.NewMigrations() + +//go:embed *.sql +var sqlMigrations embed.FS + +func init() { + if err := Migrations.Discover(sqlMigrations); err != nil { + panic(err) + } +} diff --git a/pkg/replication/options.go b/pkg/replication/options.go index 95f536c3..58edb638 100644 --- a/pkg/replication/options.go +++ b/pkg/replication/options.go @@ -1,12 +1,18 @@ package replication +import "time" + type ApiOptions struct { Port int `short:"p" long:"port" description:"Port to listen on" default:"5050"` } type DbOptions struct { - ReaderConnectionString string `long:"reader-connection-string" description:"Reader connection string"` - WriterConnectionString string `long:"writer-connection-string" description:"Writer connection string" required:"true"` + ReaderConnectionString string `long:"reader-connection-string" description:"Reader connection string"` + WriterConnectionString string `long:"writer-connection-string" description:"Writer connection string" required:"true"` + ReadTimeout time.Duration `long:"read-timeout" description:"Timeout for reading from the database" default:"10s"` + WriteTimeout time.Duration `long:"write-timeout" description:"Timeout for writing to the database" default:"10s"` + MaxOpenConns int `long:"max-open-conns" description:"Maximum number of open connections" default:"80"` + WaitForDB time.Duration `long:"wait-for" description:"wait for DB on start, up to specified duration"` } type Options struct { diff --git a/pkg/replication/server.go b/pkg/replication/server.go index bcd0952e..4fd8dfbf 100644 --- a/pkg/replication/server.go +++ b/pkg/replication/server.go @@ -3,14 +3,20 @@ package replication import ( "context" "crypto/ecdsa" + "database/sql" "net" "os" "os/signal" "syscall" "github.com/ethereum/go-ethereum/crypto" + "github.com/uptrace/bun" + "github.com/uptrace/bun/dialect/pgdialect" + "github.com/uptrace/bun/migrate" + "github.com/xmtp/xmtp-node-go/pkg/migrations/replication" "github.com/xmtp/xmtp-node-go/pkg/replication/api" "github.com/xmtp/xmtp-node-go/pkg/replication/registry" + legacyServer "github.com/xmtp/xmtp-node-go/pkg/server" "go.uber.org/zap" ) @@ -22,6 +28,8 @@ type Server struct { apiServer *api.ApiServer nodeRegistry registry.NodeRegistry privateKey *ecdsa.PrivateKey + writerDb *sql.DB + // Can add reader DB later if needed } func New(ctx context.Context, log *zap.Logger, options Options, nodeRegistry registry.NodeRegistry) (*Server, error) { @@ -35,6 +43,10 @@ func New(ctx context.Context, log *zap.Logger, options Options, nodeRegistry reg if err != nil { return nil, err } + s.writerDb, err = getWriterDb(options.DB) + if err != nil { + return nil, err + } s.ctx, s.cancel = context.WithCancel(ctx) s.apiServer, err = api.NewAPIServer(ctx, log, options.API.Port) @@ -45,6 +57,25 @@ func New(ctx context.Context, log *zap.Logger, options Options, nodeRegistry reg return s, nil } +func (s *Server) Migrate() error { + db := bun.NewDB(s.writerDb, pgdialect.New()) + migrator := migrate.NewMigrator(db, replication.Migrations) + err := migrator.Init(s.ctx) + if err != nil { + return err + } + + group, err := migrator.Migrate(s.ctx) + if err != nil { + return err + } + if group.IsZero() { + s.log.Info("No new migrations to run") + } + + return nil +} + func (s *Server) Addr() net.Addr { return s.apiServer.Addr() } @@ -63,3 +94,12 @@ func (s *Server) Shutdown() { func parsePrivateKey(privateKeyString string) (*ecdsa.PrivateKey, error) { return crypto.HexToECDSA(privateKeyString) } + +func getWriterDb(options DbOptions) (*sql.DB, error) { + db, err := legacyServer.NewPGXDB(options.WriterConnectionString, options.WaitForDB, options.ReadTimeout) + if err != nil { + return nil, err + } + + return db, nil +} diff --git a/pkg/replication/server_test.go b/pkg/replication/server_test.go index 82c92823..20732cf8 100644 --- a/pkg/replication/server_test.go +++ b/pkg/replication/server_test.go @@ -4,6 +4,7 @@ import ( "context" "encoding/hex" "testing" + "time" "github.com/ethereum/go-ethereum/crypto" "github.com/stretchr/testify/require" @@ -11,6 +12,8 @@ import ( test "github.com/xmtp/xmtp-node-go/pkg/testing" ) +const WRITER_DB_CONNECTION_STRING = "postgres://postgres:xmtp@localhost:8765/postgres?sslmode=disable" + func NewTestServer(t *testing.T, registry registry.NodeRegistry) *Server { log := test.NewLog(t) privateKey, err := crypto.GenerateKey() @@ -21,6 +24,13 @@ func NewTestServer(t *testing.T, registry registry.NodeRegistry) *Server { API: ApiOptions{ Port: 0, }, + DB: DbOptions{ + WriterConnectionString: WRITER_DB_CONNECTION_STRING, + ReadTimeout: time.Second * 10, + WriteTimeout: time.Second * 10, + MaxOpenConns: 10, + WaitForDB: time.Second * 10, + }, }, registry) require.NoError(t, err) @@ -33,3 +43,9 @@ func TestCreateServer(t *testing.T) { server2 := NewTestServer(t, registry) require.NotEqual(t, server1.Addr(), server2.Addr()) } + +func TestMigrate(t *testing.T) { + registry := registry.NewFixedNodeRegistry([]registry.Node{}) + server1 := NewTestServer(t, registry) + require.NoError(t, server1.Migrate()) +} diff --git a/pkg/server/pgxdb.go b/pkg/server/pgxdb.go index e36c663b..f0e4ce51 100644 --- a/pkg/server/pgxdb.go +++ b/pkg/server/pgxdb.go @@ -13,7 +13,7 @@ import ( "github.com/uptrace/bun/dialect/pgdialect" ) -func newPGXDB(dsn string, waitForDB, statementTimeout time.Duration) (*sql.DB, error) { +func NewPGXDB(dsn string, waitForDB, statementTimeout time.Duration) (*sql.DB, error) { config, err := pgxpool.ParseConfig(dsn) if err != nil { return nil, err @@ -38,8 +38,8 @@ func newPGXDB(dsn string, waitForDB, statementTimeout time.Duration) (*sql.DB, e return db, nil } -func newBunPGXDb(dsn string, waitForDB, statementTimeout time.Duration) (*bun.DB, error) { - pgxDb, err := newPGXDB(dsn, waitForDB, statementTimeout) +func NewBunPGXDb(dsn string, waitForDB, statementTimeout time.Duration) (*bun.DB, error) { + pgxDb, err := NewPGXDB(dsn, waitForDB, statementTimeout) if err != nil { return nil, err } diff --git a/pkg/server/server.go b/pkg/server/server.go index 5ae49bd5..6e4b4de3 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -231,7 +231,7 @@ func New(ctx context.Context, log *zap.Logger, options Options) (*Server, error) var MLSStore *mlsstore.Store if options.MLSStore.DbConnectionString != "" { - if s.mlsDB, err = newBunPGXDb(options.MLSStore.DbConnectionString, options.WaitForDB, options.MLSStore.ReadTimeout); err != nil { + if s.mlsDB, err = NewBunPGXDb(options.MLSStore.DbConnectionString, options.WaitForDB, options.MLSStore.ReadTimeout); err != nil { return nil, errors.Wrap(err, "creating mls db") } From 02cde61baa2eb6f33e3a422ebd50dff85f028f9e Mon Sep 17 00:00:00 2001 From: Nicholas Molnar <65710+neekolas@users.noreply.github.com> Date: Wed, 24 Jul 2024 13:16:25 -0700 Subject: [PATCH 5/6] Add registry to startup command --- cmd/replication/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/replication/main.go b/cmd/replication/main.go index a53f1785..4d99ce35 100644 --- a/cmd/replication/main.go +++ b/cmd/replication/main.go @@ -10,6 +10,7 @@ import ( "github.com/jessevdk/go-flags" "github.com/xmtp/xmtp-node-go/pkg/replication" + "github.com/xmtp/xmtp-node-go/pkg/replication/registry" "github.com/xmtp/xmtp-node-go/pkg/tracing" "go.uber.org/zap" "go.uber.org/zap/zapcore" @@ -37,7 +38,7 @@ func main() { var wg sync.WaitGroup doneC := make(chan bool, 1) tracing.GoPanicWrap(ctx, &wg, "main", func(ctx context.Context) { - s, err := replication.New(ctx, log, options) + s, err := replication.New(ctx, log, options, registry.NewFixedNodeRegistry([]registry.Node{})) if err != nil { log.Fatal("initializing server", zap.Error(err)) } From 303cc83aaa913598e4632f9e1169a8d1a602533f Mon Sep 17 00:00:00 2001 From: Nicholas Molnar <65710+neekolas@users.noreply.github.com> Date: Wed, 24 Jul 2024 14:10:48 -0700 Subject: [PATCH 6/6] Better shutdowns --- cmd/replication/main.go | 15 +++++++++++++++ pkg/replication/api/server.go | 17 ++++++++++++++++- pkg/replication/server.go | 3 +++ 3 files changed, 34 insertions(+), 1 deletion(-) diff --git a/cmd/replication/main.go b/cmd/replication/main.go index 4d99ce35..28323b2e 100644 --- a/cmd/replication/main.go +++ b/cmd/replication/main.go @@ -27,6 +27,7 @@ func main() { } return } + addEnvVars() log, _, err := buildLogger(options) if err != nil { @@ -62,6 +63,20 @@ func main() { wg.Wait() } +func addEnvVars() { + if connStr, hasConnstr := os.LookupEnv("WRITER_DB_CONNECTION_STRING"); hasConnstr { + options.DB.WriterConnectionString = connStr + } + + if connStr, hasConnstr := os.LookupEnv("READER_DB_CONNECTION_STRING"); hasConnstr { + options.DB.WriterConnectionString = connStr + } + + if privKey, hasPrivKey := os.LookupEnv("PRIVATE_KEY"); hasPrivKey { + options.PrivateKeyString = privKey + } +} + func fatal(msg string, args ...any) { log.Fatalf(msg, args...) } diff --git a/pkg/replication/api/server.go b/pkg/replication/api/server.go index fc2969ac..3d456fc5 100644 --- a/pkg/replication/api/server.go +++ b/pkg/replication/api/server.go @@ -34,7 +34,7 @@ func NewAPIServer(ctx context.Context, log *zap.Logger, port int) (*ApiServer, e return nil, err } s := &ApiServer{ - log: log, + log: log.Named("api"), ctx: ctx, wg: sync.WaitGroup{}, grpcListener: &proxyproto.Listener{Listener: grpcListener, ReadHeaderTimeout: 10 * time.Second}, @@ -79,6 +79,21 @@ func (s *ApiServer) Addr() net.Addr { return s.grpcListener.Addr() } +func (s *ApiServer) Close() { + s.log.Info("closing") + + if s.grpcListener != nil { + err := s.grpcListener.Close() + if err != nil { + s.log.Error("closing grpc listener", zap.Error(err)) + } + s.grpcListener = nil + } + + s.wg.Wait() + s.log.Info("closed") +} + func isErrUseOfClosedConnection(err error) bool { return strings.Contains(err.Error(), "use of closed network connection") } diff --git a/pkg/replication/server.go b/pkg/replication/server.go index 4fd8dfbf..ed5691e4 100644 --- a/pkg/replication/server.go +++ b/pkg/replication/server.go @@ -89,6 +89,9 @@ func (s *Server) WaitForShutdown() { func (s *Server) Shutdown() { s.cancel() + if s.apiServer != nil { + s.apiServer.Close() + } } func parsePrivateKey(privateKeyString string) (*ecdsa.PrivateKey, error) {