From 76ddbb66b41427641b761ecbe2615218d8c823ef Mon Sep 17 00:00:00 2001 From: Vova Ignatov Date: Mon, 24 Nov 2025 13:38:21 +0000 Subject: [PATCH] IOS-5509 MIDDLE_VERSION=v0.45.5 --- Libraryfile | 2 +- .../Anytype_Rpc.Space.InviteView.swift | 23 +++++++++++++- .../Models/Anytype_Model_InvitePayload.swift | 30 ++++++++++++++++++- 3 files changed, 52 insertions(+), 3 deletions(-) diff --git a/Libraryfile b/Libraryfile index 8cc4a62651..102d6ba280 100644 --- a/Libraryfile +++ b/Libraryfile @@ -1 +1 @@ -MIDDLE_VERSION=v0.45.3 +MIDDLE_VERSION=v0.45.5 \ No newline at end of file diff --git a/Modules/ProtobufMessages/Sources/Protocol/Commands/Anytype_Rpc.Space.InviteView.swift b/Modules/ProtobufMessages/Sources/Protocol/Commands/Anytype_Rpc.Space.InviteView.swift index 4f3ea7fefc..a0f5c25cde 100644 --- a/Modules/ProtobufMessages/Sources/Protocol/Commands/Anytype_Rpc.Space.InviteView.swift +++ b/Modules/ProtobufMessages/Sources/Protocol/Commands/Anytype_Rpc.Space.InviteView.swift @@ -55,6 +55,12 @@ extension Anytype_Rpc.Space { public var creatorName: String = String() + public var creatorIconCid: String = String() + + public var spaceIconOption: UInt32 = 0 + + public var spaceUxType: UInt32 = 0 + /// deprecated, use inviteType public var isGuestUserInvite: Bool = false @@ -191,7 +197,7 @@ extension Anytype_Rpc.Space.InviteView.Request: SwiftProtobuf.Message, SwiftProt extension Anytype_Rpc.Space.InviteView.Response: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = Anytype_Rpc.Space.InviteView.protoMessageName + ".Response" - public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}error\0\u{1}spaceId\0\u{1}spaceName\0\u{1}spaceIconCid\0\u{1}creatorName\0\u{1}isGuestUserInvite\0\u{1}inviteType\0") + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}error\0\u{1}spaceId\0\u{1}spaceName\0\u{1}spaceIconCid\0\u{1}creatorName\0\u{1}isGuestUserInvite\0\u{1}inviteType\0\u{1}spaceIconOption\0\u{1}spaceUxType\0\u{1}creatorIconCid\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -206,6 +212,9 @@ extension Anytype_Rpc.Space.InviteView.Response: SwiftProtobuf.Message, SwiftPro case 5: try { try decoder.decodeSingularStringField(value: &self.creatorName) }() case 6: try { try decoder.decodeSingularBoolField(value: &self.isGuestUserInvite) }() case 7: try { try decoder.decodeSingularEnumField(value: &self.inviteType) }() + case 8: try { try decoder.decodeSingularUInt32Field(value: &self.spaceIconOption) }() + case 9: try { try decoder.decodeSingularUInt32Field(value: &self.spaceUxType) }() + case 10: try { try decoder.decodeSingularStringField(value: &self.creatorIconCid) }() default: break } } @@ -237,6 +246,15 @@ extension Anytype_Rpc.Space.InviteView.Response: SwiftProtobuf.Message, SwiftPro if self.inviteType != .member { try visitor.visitSingularEnumField(value: self.inviteType, fieldNumber: 7) } + if self.spaceIconOption != 0 { + try visitor.visitSingularUInt32Field(value: self.spaceIconOption, fieldNumber: 8) + } + if self.spaceUxType != 0 { + try visitor.visitSingularUInt32Field(value: self.spaceUxType, fieldNumber: 9) + } + if !self.creatorIconCid.isEmpty { + try visitor.visitSingularStringField(value: self.creatorIconCid, fieldNumber: 10) + } try unknownFields.traverse(visitor: &visitor) } @@ -246,6 +264,9 @@ extension Anytype_Rpc.Space.InviteView.Response: SwiftProtobuf.Message, SwiftPro if lhs.spaceName != rhs.spaceName {return false} if lhs.spaceIconCid != rhs.spaceIconCid {return false} if lhs.creatorName != rhs.creatorName {return false} + if lhs.creatorIconCid != rhs.creatorIconCid {return false} + if lhs.spaceIconOption != rhs.spaceIconOption {return false} + if lhs.spaceUxType != rhs.spaceUxType {return false} if lhs.isGuestUserInvite != rhs.isGuestUserInvite {return false} if lhs.inviteType != rhs.inviteType {return false} if lhs.unknownFields != rhs.unknownFields {return false} diff --git a/Modules/ProtobufMessages/Sources/Protocol/Models/Anytype_Model_InvitePayload.swift b/Modules/ProtobufMessages/Sources/Protocol/Models/Anytype_Model_InvitePayload.swift index c334e60b66..1a843b0906 100644 --- a/Modules/ProtobufMessages/Sources/Protocol/Models/Anytype_Model_InvitePayload.swift +++ b/Modules/ProtobufMessages/Sources/Protocol/Models/Anytype_Model_InvitePayload.swift @@ -19,6 +19,10 @@ public struct Anytype_Model_InvitePayload: Sendable { public var creatorName: String = String() + public var creatorIconCid: String = String() + + public var creatorIconEncryptionKeys: [Anytype_Model_FileEncryptionKey] = [] + public var aclKey: Data = Data() public var spaceID: String = String() @@ -27,6 +31,10 @@ public struct Anytype_Model_InvitePayload: Sendable { public var spaceIconCid: String = String() + public var spaceIconOption: UInt32 = 0 + + public var spaceUxType: UInt32 = 0 + public var spaceIconEncryptionKeys: [Anytype_Model_FileEncryptionKey] = [] public var inviteType: Anytype_Model_InviteType = .member @@ -40,7 +48,7 @@ public struct Anytype_Model_InvitePayload: Sendable { extension Anytype_Model_InvitePayload: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".InvitePayload" - public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}creatorIdentity\0\u{1}creatorName\0\u{1}aclKey\0\u{1}spaceId\0\u{1}spaceName\0\u{1}spaceIconCid\0\u{1}spaceIconEncryptionKeys\0\u{1}inviteType\0\u{1}guestKey\0") + public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}creatorIdentity\0\u{1}creatorName\0\u{1}aclKey\0\u{1}spaceId\0\u{1}spaceName\0\u{1}spaceIconCid\0\u{1}spaceIconEncryptionKeys\0\u{1}inviteType\0\u{1}guestKey\0\u{1}spaceIconOption\0\u{1}spaceUxType\0\u{1}creatorIconCid\0\u{1}creatorIconEncryptionKeys\0") public mutating func decodeMessage(decoder: inout D) throws { while let fieldNumber = try decoder.nextFieldNumber() { @@ -57,6 +65,10 @@ extension Anytype_Model_InvitePayload: SwiftProtobuf.Message, SwiftProtobuf._Mes case 7: try { try decoder.decodeRepeatedMessageField(value: &self.spaceIconEncryptionKeys) }() case 8: try { try decoder.decodeSingularEnumField(value: &self.inviteType) }() case 9: try { try decoder.decodeSingularBytesField(value: &self.guestKey) }() + case 10: try { try decoder.decodeSingularUInt32Field(value: &self.spaceIconOption) }() + case 11: try { try decoder.decodeSingularUInt32Field(value: &self.spaceUxType) }() + case 12: try { try decoder.decodeSingularStringField(value: &self.creatorIconCid) }() + case 13: try { try decoder.decodeRepeatedMessageField(value: &self.creatorIconEncryptionKeys) }() default: break } } @@ -90,16 +102,32 @@ extension Anytype_Model_InvitePayload: SwiftProtobuf.Message, SwiftProtobuf._Mes if !self.guestKey.isEmpty { try visitor.visitSingularBytesField(value: self.guestKey, fieldNumber: 9) } + if self.spaceIconOption != 0 { + try visitor.visitSingularUInt32Field(value: self.spaceIconOption, fieldNumber: 10) + } + if self.spaceUxType != 0 { + try visitor.visitSingularUInt32Field(value: self.spaceUxType, fieldNumber: 11) + } + if !self.creatorIconCid.isEmpty { + try visitor.visitSingularStringField(value: self.creatorIconCid, fieldNumber: 12) + } + if !self.creatorIconEncryptionKeys.isEmpty { + try visitor.visitRepeatedMessageField(value: self.creatorIconEncryptionKeys, fieldNumber: 13) + } try unknownFields.traverse(visitor: &visitor) } public static func ==(lhs: Anytype_Model_InvitePayload, rhs: Anytype_Model_InvitePayload) -> Bool { if lhs.creatorIdentity != rhs.creatorIdentity {return false} if lhs.creatorName != rhs.creatorName {return false} + if lhs.creatorIconCid != rhs.creatorIconCid {return false} + if lhs.creatorIconEncryptionKeys != rhs.creatorIconEncryptionKeys {return false} if lhs.aclKey != rhs.aclKey {return false} if lhs.spaceID != rhs.spaceID {return false} if lhs.spaceName != rhs.spaceName {return false} if lhs.spaceIconCid != rhs.spaceIconCid {return false} + if lhs.spaceIconOption != rhs.spaceIconOption {return false} + if lhs.spaceUxType != rhs.spaceUxType {return false} if lhs.spaceIconEncryptionKeys != rhs.spaceIconEncryptionKeys {return false} if lhs.inviteType != rhs.inviteType {return false} if lhs.guestKey != rhs.guestKey {return false}