diff --git a/Anytype/Generated/Error+Localization.swift b/Anytype/Generated/Error+Localization.swift index e221cb776b..438014c23e 100644 --- a/Anytype/Generated/Error+Localization.swift +++ b/Anytype/Generated/Error+Localization.swift @@ -4807,6 +4807,54 @@ extension Anytype_Rpc.Object.CreateSet.Response.Error: @retroactive LocalizedErr } } +extension Anytype_Rpc.Object.CrossSpaceSearchSubscribe.Response.Error: @retroactive LocalizedError { + public var errorDescription: String? { + let localizeError = localizeError() + if localizeError.isNotEmpty { + return localizeError + } + return "Error: \(description_p) (\(code))" + } + + private func localizeError() -> String { + switch code { + case .null: + return "" + case .unknownError: + return "" + case .badInput: + return String(localized: "Object.CrossSpaceSearchSubscribe.badInput", defaultValue: "", table: "LocalizableError") + .checkValue(key: "Object.CrossSpaceSearchSubscribe.badInput") + case .UNRECOGNIZED: + return "" + } + } +} + +extension Anytype_Rpc.Object.CrossSpaceSearchUnsubscribe.Response.Error: @retroactive LocalizedError { + public var errorDescription: String? { + let localizeError = localizeError() + if localizeError.isNotEmpty { + return localizeError + } + return "Error: \(description_p) (\(code))" + } + + private func localizeError() -> String { + switch code { + case .null: + return "" + case .unknownError: + return "" + case .badInput: + return String(localized: "Object.CrossSpaceSearchUnsubscribe.badInput", defaultValue: "", table: "LocalizableError") + .checkValue(key: "Object.CrossSpaceSearchUnsubscribe.badInput") + case .UNRECOGNIZED: + return "" + } + } +} + extension Anytype_Rpc.Object.Duplicate.Response.Error: @retroactive LocalizedError { public var errorDescription: String? { let localizeError = localizeError() diff --git a/Libraryfile b/Libraryfile index 9cc9e259f4..7a4fcaed2a 100644 --- a/Libraryfile +++ b/Libraryfile @@ -1 +1 @@ -MIDDLE_VERSION=2f7beb256d \ No newline at end of file +MIDDLE_VERSION=4c738693e7 \ No newline at end of file diff --git a/Modules/ProtobufMessages/Sources/Generated/commands+invocation.swift b/Modules/ProtobufMessages/Sources/Generated/commands+invocation.swift index 21c056080c..353988e973 100644 --- a/Modules/ProtobufMessages/Sources/Generated/commands+invocation.swift +++ b/Modules/ProtobufMessages/Sources/Generated/commands+invocation.swift @@ -916,6 +916,16 @@ extension Anytype_Rpc.Object.CreateSet.Response.Error: ResponseError { public var isNull: Bool { code == .null && description_p.isEmpty } } +extension Anytype_Rpc.Object.CrossSpaceSearchSubscribe.Response: ResultWithError {} +extension Anytype_Rpc.Object.CrossSpaceSearchSubscribe.Response.Error: ResponseError { + public var isNull: Bool { code == .null && description_p.isEmpty } +} + +extension Anytype_Rpc.Object.CrossSpaceSearchUnsubscribe.Response: ResultWithError {} +extension Anytype_Rpc.Object.CrossSpaceSearchUnsubscribe.Response.Error: ResponseError { + public var isNull: Bool { code == .null && description_p.isEmpty } +} + extension Anytype_Rpc.Object.Duplicate.Response: ResultWithError {} extension Anytype_Rpc.Object.Duplicate.Response.Error: ResponseError { public var isNull: Bool { code == .null && description_p.isEmpty } diff --git a/Modules/ProtobufMessages/Sources/Generated/service+invocation.swift b/Modules/ProtobufMessages/Sources/Generated/service+invocation.swift index 17210dfb3c..c4d9437370 100644 --- a/Modules/ProtobufMessages/Sources/Generated/service+invocation.swift +++ b/Modules/ProtobufMessages/Sources/Generated/service+invocation.swift @@ -564,6 +564,26 @@ public struct ClientCommands { } } + public static func objectCrossSpaceSearchSubscribe( + _ request: Anytype_Rpc.Object.CrossSpaceSearchSubscribe.Request = .init() + ) -> Invocation { + return Invocation(messageName: "ObjectCrossSpaceSearchSubscribe", request: request) { request in + let requestData = try request.serializedData() + let responseData = Lib.ServiceObjectCrossSpaceSearchSubscribe(requestData) ?? Data() + return try Anytype_Rpc.Object.CrossSpaceSearchSubscribe.Response(serializedData: responseData) + } + } + + public static func objectCrossSpaceSearchUnsubscribe( + _ request: Anytype_Rpc.Object.CrossSpaceSearchUnsubscribe.Request = .init() + ) -> Invocation { + return Invocation(messageName: "ObjectCrossSpaceSearchUnsubscribe", request: request) { request in + let requestData = try request.serializedData() + let responseData = Lib.ServiceObjectCrossSpaceSearchUnsubscribe(requestData) ?? Data() + return try Anytype_Rpc.Object.CrossSpaceSearchUnsubscribe.Response(serializedData: responseData) + } + } + public static func objectSubscribeIds( _ request: Anytype_Rpc.Object.SubscribeIds.Request = .init() ) -> Invocation { diff --git a/Modules/ProtobufMessages/Sources/Protocol/commands.pb.swift b/Modules/ProtobufMessages/Sources/Protocol/commands.pb.swift index d1341b0c73..02085a070e 100644 --- a/Modules/ProtobufMessages/Sources/Protocol/commands.pb.swift +++ b/Modules/ProtobufMessages/Sources/Protocol/commands.pb.swift @@ -7500,7 +7500,7 @@ public struct Anytype_Rpc { public init() {} } - public struct GroupsSubscribe { + public struct CrossSpaceSearchSubscribe { // SwiftProtobuf.Message conformance is added in an extension below. See the // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. @@ -7512,16 +7512,25 @@ public struct Anytype_Rpc { // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. - public var spaceID: String = String() - + /// (optional) subscription identifier + /// client can provide some string or middleware will generate it automatically + /// if subId is already registered on middleware, the new query will replace previous subscription public var subID: String = String() - public var relationKey: String = String() - + /// filters public var filters: [Anytype_Model_Block.Content.Dataview.Filter] = [] + /// sorts + public var sorts: [Anytype_Model_Block.Content.Dataview.Sort] = [] + + /// (required) needed keys in details for return, for object fields mw will return (and subscribe) objects as dependent + public var keys: [String] = [] + public var source: [String] = [] + /// disable dependent subscription + public var noDepSubscription: Bool = false + public var collectionID: String = String() public var unknownFields = SwiftProtobuf.UnknownStorage() @@ -7534,8 +7543,8 @@ public struct Anytype_Rpc { // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. - public var error: Anytype_Rpc.Object.GroupsSubscribe.Response.Error { - get {return _error ?? Anytype_Rpc.Object.GroupsSubscribe.Response.Error()} + public var error: Anytype_Rpc.Object.CrossSpaceSearchSubscribe.Response.Error { + get {return _error ?? Anytype_Rpc.Object.CrossSpaceSearchSubscribe.Response.Error()} set {_error = newValue} } /// Returns true if `error` has been explicitly set. @@ -7543,10 +7552,21 @@ public struct Anytype_Rpc { /// Clears the value of `error`. Subsequent reads from it will return its default value. public mutating func clearError() {self._error = nil} - public var groups: [Anytype_Model_Block.Content.Dataview.Group] = [] + public var records: [SwiftProtobuf.Google_Protobuf_Struct] = [] + + public var dependencies: [SwiftProtobuf.Google_Protobuf_Struct] = [] public var subID: String = String() + public var counters: Anytype_Event.Object.Subscription.Counters { + get {return _counters ?? Anytype_Event.Object.Subscription.Counters()} + set {_counters = newValue} + } + /// Returns true if `counters` has been explicitly set. + public var hasCounters: Bool {return self._counters != nil} + /// Clears the value of `counters`. Subsequent reads from it will return its default value. + public mutating func clearCounters() {self._counters = nil} + public var unknownFields = SwiftProtobuf.UnknownStorage() public struct Error { @@ -7554,7 +7574,7 @@ public struct Anytype_Rpc { // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. - public var code: Anytype_Rpc.Object.GroupsSubscribe.Response.Error.Code = .null + public var code: Anytype_Rpc.Object.CrossSpaceSearchSubscribe.Response.Error.Code = .null public var description_p: String = String() @@ -7564,6 +7584,8 @@ public struct Anytype_Rpc { public typealias RawValue = Int case null // = 0 case unknownError // = 1 + + /// ... case badInput // = 2 case UNRECOGNIZED(Int) @@ -7596,13 +7618,14 @@ public struct Anytype_Rpc { public init() {} - fileprivate var _error: Anytype_Rpc.Object.GroupsSubscribe.Response.Error? = nil + fileprivate var _error: Anytype_Rpc.Object.CrossSpaceSearchSubscribe.Response.Error? = nil + fileprivate var _counters: Anytype_Event.Object.Subscription.Counters? = nil } public init() {} } - public struct SubscribeIds { + public struct CrossSpaceSearchUnsubscribe { // SwiftProtobuf.Message conformance is added in an extension below. See the // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. @@ -7614,23 +7637,8 @@ public struct Anytype_Rpc { // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. - public var spaceID: String = String() - - /// (optional) subscription identifier - /// client can provide some string or middleware will generate it automatically - /// if subId is already registered on middleware, the new query will replace previous subscription public var subID: String = String() - /// ids for subscribe - public var ids: [String] = [] - - /// sorts - /// (required) needed keys in details for return, for object fields mw will return (and subscribe) objects as dependent - public var keys: [String] = [] - - /// disable dependent subscription - public var noDepSubscription: Bool = false - public var unknownFields = SwiftProtobuf.UnknownStorage() public init() {} @@ -7641,8 +7649,8 @@ public struct Anytype_Rpc { // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. - public var error: Anytype_Rpc.Object.SubscribeIds.Response.Error { - get {return _error ?? Anytype_Rpc.Object.SubscribeIds.Response.Error()} + public var error: Anytype_Rpc.Object.CrossSpaceSearchUnsubscribe.Response.Error { + get {return _error ?? Anytype_Rpc.Object.CrossSpaceSearchUnsubscribe.Response.Error()} set {_error = newValue} } /// Returns true if `error` has been explicitly set. @@ -7650,12 +7658,6 @@ public struct Anytype_Rpc { /// Clears the value of `error`. Subsequent reads from it will return its default value. public mutating func clearError() {self._error = nil} - public var records: [SwiftProtobuf.Google_Protobuf_Struct] = [] - - public var dependencies: [SwiftProtobuf.Google_Protobuf_Struct] = [] - - public var subID: String = String() - public var unknownFields = SwiftProtobuf.UnknownStorage() public struct Error { @@ -7663,7 +7665,7 @@ public struct Anytype_Rpc { // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. - public var code: Anytype_Rpc.Object.SubscribeIds.Response.Error.Code = .null + public var code: Anytype_Rpc.Object.CrossSpaceSearchUnsubscribe.Response.Error.Code = .null public var description_p: String = String() @@ -7707,13 +7709,13 @@ public struct Anytype_Rpc { public init() {} - fileprivate var _error: Anytype_Rpc.Object.SubscribeIds.Response.Error? = nil + fileprivate var _error: Anytype_Rpc.Object.CrossSpaceSearchUnsubscribe.Response.Error? = nil } public init() {} } - public struct SearchUnsubscribe { + public struct GroupsSubscribe { // SwiftProtobuf.Message conformance is added in an extension below. See the // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. @@ -7725,7 +7727,17 @@ public struct Anytype_Rpc { // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. - public var subIds: [String] = [] + public var spaceID: String = String() + + public var subID: String = String() + + public var relationKey: String = String() + + public var filters: [Anytype_Model_Block.Content.Dataview.Filter] = [] + + public var source: [String] = [] + + public var collectionID: String = String() public var unknownFields = SwiftProtobuf.UnknownStorage() @@ -7737,8 +7749,8 @@ public struct Anytype_Rpc { // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. - public var error: Anytype_Rpc.Object.SearchUnsubscribe.Response.Error { - get {return _error ?? Anytype_Rpc.Object.SearchUnsubscribe.Response.Error()} + public var error: Anytype_Rpc.Object.GroupsSubscribe.Response.Error { + get {return _error ?? Anytype_Rpc.Object.GroupsSubscribe.Response.Error()} set {_error = newValue} } /// Returns true if `error` has been explicitly set. @@ -7746,6 +7758,10 @@ public struct Anytype_Rpc { /// Clears the value of `error`. Subsequent reads from it will return its default value. public mutating func clearError() {self._error = nil} + public var groups: [Anytype_Model_Block.Content.Dataview.Group] = [] + + public var subID: String = String() + public var unknownFields = SwiftProtobuf.UnknownStorage() public struct Error { @@ -7753,7 +7769,7 @@ public struct Anytype_Rpc { // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. - public var code: Anytype_Rpc.Object.SearchUnsubscribe.Response.Error.Code = .null + public var code: Anytype_Rpc.Object.GroupsSubscribe.Response.Error.Code = .null public var description_p: String = String() @@ -7795,13 +7811,13 @@ public struct Anytype_Rpc { public init() {} - fileprivate var _error: Anytype_Rpc.Object.SearchUnsubscribe.Response.Error? = nil + fileprivate var _error: Anytype_Rpc.Object.GroupsSubscribe.Response.Error? = nil } public init() {} } - public struct SetLayout { + public struct SubscribeIds { // SwiftProtobuf.Message conformance is added in an extension below. See the // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. @@ -7813,9 +7829,22 @@ public struct Anytype_Rpc { // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. - public var contextID: String = String() + public var spaceID: String = String() - public var layout: Anytype_Model_ObjectType.Layout = .basic + /// (optional) subscription identifier + /// client can provide some string or middleware will generate it automatically + /// if subId is already registered on middleware, the new query will replace previous subscription + public var subID: String = String() + + /// ids for subscribe + public var ids: [String] = [] + + /// sorts + /// (required) needed keys in details for return, for object fields mw will return (and subscribe) objects as dependent + public var keys: [String] = [] + + /// disable dependent subscription + public var noDepSubscription: Bool = false public var unknownFields = SwiftProtobuf.UnknownStorage() @@ -7827,8 +7856,8 @@ public struct Anytype_Rpc { // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. - public var error: Anytype_Rpc.Object.SetLayout.Response.Error { - get {return _error ?? Anytype_Rpc.Object.SetLayout.Response.Error()} + public var error: Anytype_Rpc.Object.SubscribeIds.Response.Error { + get {return _error ?? Anytype_Rpc.Object.SubscribeIds.Response.Error()} set {_error = newValue} } /// Returns true if `error` has been explicitly set. @@ -7836,14 +7865,11 @@ public struct Anytype_Rpc { /// Clears the value of `error`. Subsequent reads from it will return its default value. public mutating func clearError() {self._error = nil} - public var event: Anytype_ResponseEvent { - get {return _event ?? Anytype_ResponseEvent()} - set {_event = newValue} - } - /// Returns true if `event` has been explicitly set. - public var hasEvent: Bool {return self._event != nil} - /// Clears the value of `event`. Subsequent reads from it will return its default value. - public mutating func clearEvent() {self._event = nil} + public var records: [SwiftProtobuf.Google_Protobuf_Struct] = [] + + public var dependencies: [SwiftProtobuf.Google_Protobuf_Struct] = [] + + public var subID: String = String() public var unknownFields = SwiftProtobuf.UnknownStorage() @@ -7852,7 +7878,7 @@ public struct Anytype_Rpc { // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. - public var code: Anytype_Rpc.Object.SetLayout.Response.Error.Code = .null + public var code: Anytype_Rpc.Object.SubscribeIds.Response.Error.Code = .null public var description_p: String = String() @@ -7896,14 +7922,13 @@ public struct Anytype_Rpc { public init() {} - fileprivate var _error: Anytype_Rpc.Object.SetLayout.Response.Error? = nil - fileprivate var _event: Anytype_ResponseEvent? = nil + fileprivate var _error: Anytype_Rpc.Object.SubscribeIds.Response.Error? = nil } public init() {} } - public struct SetIsFavorite { + public struct SearchUnsubscribe { // SwiftProtobuf.Message conformance is added in an extension below. See the // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. @@ -7915,9 +7940,7 @@ public struct Anytype_Rpc { // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. - public var contextID: String = String() - - public var isFavorite: Bool = false + public var subIds: [String] = [] public var unknownFields = SwiftProtobuf.UnknownStorage() @@ -7929,8 +7952,8 @@ public struct Anytype_Rpc { // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. - public var error: Anytype_Rpc.Object.SetIsFavorite.Response.Error { - get {return _error ?? Anytype_Rpc.Object.SetIsFavorite.Response.Error()} + public var error: Anytype_Rpc.Object.SearchUnsubscribe.Response.Error { + get {return _error ?? Anytype_Rpc.Object.SearchUnsubscribe.Response.Error()} set {_error = newValue} } /// Returns true if `error` has been explicitly set. @@ -7938,15 +7961,6 @@ public struct Anytype_Rpc { /// Clears the value of `error`. Subsequent reads from it will return its default value. public mutating func clearError() {self._error = nil} - public var event: Anytype_ResponseEvent { - get {return _event ?? Anytype_ResponseEvent()} - set {_event = newValue} - } - /// Returns true if `event` has been explicitly set. - public var hasEvent: Bool {return self._event != nil} - /// Clears the value of `event`. Subsequent reads from it will return its default value. - public mutating func clearEvent() {self._event = nil} - public var unknownFields = SwiftProtobuf.UnknownStorage() public struct Error { @@ -7954,7 +7968,7 @@ public struct Anytype_Rpc { // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. - public var code: Anytype_Rpc.Object.SetIsFavorite.Response.Error.Code = .null + public var code: Anytype_Rpc.Object.SearchUnsubscribe.Response.Error.Code = .null public var description_p: String = String() @@ -7964,8 +7978,6 @@ public struct Anytype_Rpc { public typealias RawValue = Int case null // = 0 case unknownError // = 1 - - /// ... case badInput // = 2 case UNRECOGNIZED(Int) @@ -7998,14 +8010,13 @@ public struct Anytype_Rpc { public init() {} - fileprivate var _error: Anytype_Rpc.Object.SetIsFavorite.Response.Error? = nil - fileprivate var _event: Anytype_ResponseEvent? = nil + fileprivate var _error: Anytype_Rpc.Object.SearchUnsubscribe.Response.Error? = nil } public init() {} } - public struct SetIsArchived { + public struct SetLayout { // SwiftProtobuf.Message conformance is added in an extension below. See the // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. @@ -8019,7 +8030,7 @@ public struct Anytype_Rpc { public var contextID: String = String() - public var isArchived: Bool = false + public var layout: Anytype_Model_ObjectType.Layout = .basic public var unknownFields = SwiftProtobuf.UnknownStorage() @@ -8031,8 +8042,8 @@ public struct Anytype_Rpc { // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. - public var error: Anytype_Rpc.Object.SetIsArchived.Response.Error { - get {return _error ?? Anytype_Rpc.Object.SetIsArchived.Response.Error()} + public var error: Anytype_Rpc.Object.SetLayout.Response.Error { + get {return _error ?? Anytype_Rpc.Object.SetLayout.Response.Error()} set {_error = newValue} } /// Returns true if `error` has been explicitly set. @@ -8040,6 +8051,15 @@ public struct Anytype_Rpc { /// Clears the value of `error`. Subsequent reads from it will return its default value. public mutating func clearError() {self._error = nil} + public var event: Anytype_ResponseEvent { + get {return _event ?? Anytype_ResponseEvent()} + set {_event = newValue} + } + /// Returns true if `event` has been explicitly set. + public var hasEvent: Bool {return self._event != nil} + /// Clears the value of `event`. Subsequent reads from it will return its default value. + public mutating func clearEvent() {self._event = nil} + public var unknownFields = SwiftProtobuf.UnknownStorage() public struct Error { @@ -8047,7 +8067,7 @@ public struct Anytype_Rpc { // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. - public var code: Anytype_Rpc.Object.SetIsArchived.Response.Error.Code = .null + public var code: Anytype_Rpc.Object.SetLayout.Response.Error.Code = .null public var description_p: String = String() @@ -8091,13 +8111,14 @@ public struct Anytype_Rpc { public init() {} - fileprivate var _error: Anytype_Rpc.Object.SetIsArchived.Response.Error? = nil + fileprivate var _error: Anytype_Rpc.Object.SetLayout.Response.Error? = nil + fileprivate var _event: Anytype_ResponseEvent? = nil } public init() {} } - public struct SetSource { + public struct SetIsFavorite { // SwiftProtobuf.Message conformance is added in an extension below. See the // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. @@ -8111,7 +8132,7 @@ public struct Anytype_Rpc { public var contextID: String = String() - public var source: [String] = [] + public var isFavorite: Bool = false public var unknownFields = SwiftProtobuf.UnknownStorage() @@ -8123,8 +8144,8 @@ public struct Anytype_Rpc { // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. - public var error: Anytype_Rpc.Object.SetSource.Response.Error { - get {return _error ?? Anytype_Rpc.Object.SetSource.Response.Error()} + public var error: Anytype_Rpc.Object.SetIsFavorite.Response.Error { + get {return _error ?? Anytype_Rpc.Object.SetIsFavorite.Response.Error()} set {_error = newValue} } /// Returns true if `error` has been explicitly set. @@ -8148,7 +8169,7 @@ public struct Anytype_Rpc { // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. - public var code: Anytype_Rpc.Object.SetSource.Response.Error.Code = .null + public var code: Anytype_Rpc.Object.SetIsFavorite.Response.Error.Code = .null public var description_p: String = String() @@ -8158,6 +8179,8 @@ public struct Anytype_Rpc { public typealias RawValue = Int case null // = 0 case unknownError // = 1 + + /// ... case badInput // = 2 case UNRECOGNIZED(Int) @@ -8190,14 +8213,14 @@ public struct Anytype_Rpc { public init() {} - fileprivate var _error: Anytype_Rpc.Object.SetSource.Response.Error? = nil + fileprivate var _error: Anytype_Rpc.Object.SetIsFavorite.Response.Error? = nil fileprivate var _event: Anytype_ResponseEvent? = nil } public init() {} } - public struct WorkspaceSetDashboard { + public struct SetIsArchived { // SwiftProtobuf.Message conformance is added in an extension below. See the // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. @@ -8211,7 +8234,7 @@ public struct Anytype_Rpc { public var contextID: String = String() - public var objectID: String = String() + public var isArchived: Bool = false public var unknownFields = SwiftProtobuf.UnknownStorage() @@ -8223,8 +8246,8 @@ public struct Anytype_Rpc { // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. - public var error: Anytype_Rpc.Object.WorkspaceSetDashboard.Response.Error { - get {return _error ?? Anytype_Rpc.Object.WorkspaceSetDashboard.Response.Error()} + public var error: Anytype_Rpc.Object.SetIsArchived.Response.Error { + get {return _error ?? Anytype_Rpc.Object.SetIsArchived.Response.Error()} set {_error = newValue} } /// Returns true if `error` has been explicitly set. @@ -8232,17 +8255,6 @@ public struct Anytype_Rpc { /// Clears the value of `error`. Subsequent reads from it will return its default value. public mutating func clearError() {self._error = nil} - public var event: Anytype_ResponseEvent { - get {return _event ?? Anytype_ResponseEvent()} - set {_event = newValue} - } - /// Returns true if `event` has been explicitly set. - public var hasEvent: Bool {return self._event != nil} - /// Clears the value of `event`. Subsequent reads from it will return its default value. - public mutating func clearEvent() {self._event = nil} - - public var objectID: String = String() - public var unknownFields = SwiftProtobuf.UnknownStorage() public struct Error { @@ -8250,7 +8262,7 @@ public struct Anytype_Rpc { // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. - public var code: Anytype_Rpc.Object.WorkspaceSetDashboard.Response.Error.Code = .null + public var code: Anytype_Rpc.Object.SetIsArchived.Response.Error.Code = .null public var description_p: String = String() @@ -8260,6 +8272,8 @@ public struct Anytype_Rpc { public typealias RawValue = Int case null // = 0 case unknownError // = 1 + + /// ... case badInput // = 2 case UNRECOGNIZED(Int) @@ -8292,14 +8306,13 @@ public struct Anytype_Rpc { public init() {} - fileprivate var _error: Anytype_Rpc.Object.WorkspaceSetDashboard.Response.Error? = nil - fileprivate var _event: Anytype_ResponseEvent? = nil + fileprivate var _error: Anytype_Rpc.Object.SetIsArchived.Response.Error? = nil } public init() {} } - public struct SetObjectType { + public struct SetSource { // SwiftProtobuf.Message conformance is added in an extension below. See the // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. @@ -8313,7 +8326,7 @@ public struct Anytype_Rpc { public var contextID: String = String() - public var objectTypeUniqueKey: String = String() + public var source: [String] = [] public var unknownFields = SwiftProtobuf.UnknownStorage() @@ -8325,8 +8338,8 @@ public struct Anytype_Rpc { // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. - public var error: Anytype_Rpc.Object.SetObjectType.Response.Error { - get {return _error ?? Anytype_Rpc.Object.SetObjectType.Response.Error()} + public var error: Anytype_Rpc.Object.SetSource.Response.Error { + get {return _error ?? Anytype_Rpc.Object.SetSource.Response.Error()} set {_error = newValue} } /// Returns true if `error` has been explicitly set. @@ -8350,7 +8363,7 @@ public struct Anytype_Rpc { // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. - public var code: Anytype_Rpc.Object.SetObjectType.Response.Error.Code = .null + public var code: Anytype_Rpc.Object.SetSource.Response.Error.Code = .null public var description_p: String = String() @@ -8392,14 +8405,14 @@ public struct Anytype_Rpc { public init() {} - fileprivate var _error: Anytype_Rpc.Object.SetObjectType.Response.Error? = nil + fileprivate var _error: Anytype_Rpc.Object.SetSource.Response.Error? = nil fileprivate var _event: Anytype_ResponseEvent? = nil } public init() {} } - public struct SetInternalFlags { + public struct WorkspaceSetDashboard { // SwiftProtobuf.Message conformance is added in an extension below. See the // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. @@ -8413,7 +8426,7 @@ public struct Anytype_Rpc { public var contextID: String = String() - public var internalFlags: [Anytype_Model_InternalFlag] = [] + public var objectID: String = String() public var unknownFields = SwiftProtobuf.UnknownStorage() @@ -8425,8 +8438,8 @@ public struct Anytype_Rpc { // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. - public var error: Anytype_Rpc.Object.SetInternalFlags.Response.Error { - get {return _error ?? Anytype_Rpc.Object.SetInternalFlags.Response.Error()} + public var error: Anytype_Rpc.Object.WorkspaceSetDashboard.Response.Error { + get {return _error ?? Anytype_Rpc.Object.WorkspaceSetDashboard.Response.Error()} set {_error = newValue} } /// Returns true if `error` has been explicitly set. @@ -8443,6 +8456,8 @@ public struct Anytype_Rpc { /// Clears the value of `event`. Subsequent reads from it will return its default value. public mutating func clearEvent() {self._event = nil} + public var objectID: String = String() + public var unknownFields = SwiftProtobuf.UnknownStorage() public struct Error { @@ -8450,7 +8465,7 @@ public struct Anytype_Rpc { // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. - public var code: Anytype_Rpc.Object.SetInternalFlags.Response.Error.Code = .null + public var code: Anytype_Rpc.Object.WorkspaceSetDashboard.Response.Error.Code = .null public var description_p: String = String() @@ -8492,14 +8507,14 @@ public struct Anytype_Rpc { public init() {} - fileprivate var _error: Anytype_Rpc.Object.SetInternalFlags.Response.Error? = nil + fileprivate var _error: Anytype_Rpc.Object.WorkspaceSetDashboard.Response.Error? = nil fileprivate var _event: Anytype_ResponseEvent? = nil } public init() {} } - public struct SetDetails { + public struct SetObjectType { // SwiftProtobuf.Message conformance is added in an extension below. See the // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. @@ -8513,7 +8528,7 @@ public struct Anytype_Rpc { public var contextID: String = String() - public var details: [Anytype_Model_Detail] = [] + public var objectTypeUniqueKey: String = String() public var unknownFields = SwiftProtobuf.UnknownStorage() @@ -8525,8 +8540,8 @@ public struct Anytype_Rpc { // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. - public var error: Anytype_Rpc.Object.SetDetails.Response.Error { - get {return _error ?? Anytype_Rpc.Object.SetDetails.Response.Error()} + public var error: Anytype_Rpc.Object.SetObjectType.Response.Error { + get {return _error ?? Anytype_Rpc.Object.SetObjectType.Response.Error()} set {_error = newValue} } /// Returns true if `error` has been explicitly set. @@ -8550,7 +8565,7 @@ public struct Anytype_Rpc { // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. - public var code: Anytype_Rpc.Object.SetDetails.Response.Error.Code = .null + public var code: Anytype_Rpc.Object.SetObjectType.Response.Error.Code = .null public var description_p: String = String() @@ -8560,8 +8575,208 @@ public struct Anytype_Rpc { public typealias RawValue = Int case null // = 0 case unknownError // = 1 - - /// ... + case badInput // = 2 + case UNRECOGNIZED(Int) + + public init() { + self = .null + } + + public init?(rawValue: Int) { + switch rawValue { + case 0: self = .null + case 1: self = .unknownError + case 2: self = .badInput + default: self = .UNRECOGNIZED(rawValue) + } + } + + public var rawValue: Int { + switch self { + case .null: return 0 + case .unknownError: return 1 + case .badInput: return 2 + case .UNRECOGNIZED(let i): return i + } + } + + } + + public init() {} + } + + public init() {} + + fileprivate var _error: Anytype_Rpc.Object.SetObjectType.Response.Error? = nil + fileprivate var _event: Anytype_ResponseEvent? = nil + } + + public init() {} + } + + public struct SetInternalFlags { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + public var unknownFields = SwiftProtobuf.UnknownStorage() + + public struct Request { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + public var contextID: String = String() + + public var internalFlags: [Anytype_Model_InternalFlag] = [] + + public var unknownFields = SwiftProtobuf.UnknownStorage() + + public init() {} + } + + public struct Response { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + public var error: Anytype_Rpc.Object.SetInternalFlags.Response.Error { + get {return _error ?? Anytype_Rpc.Object.SetInternalFlags.Response.Error()} + set {_error = newValue} + } + /// Returns true if `error` has been explicitly set. + public var hasError: Bool {return self._error != nil} + /// Clears the value of `error`. Subsequent reads from it will return its default value. + public mutating func clearError() {self._error = nil} + + public var event: Anytype_ResponseEvent { + get {return _event ?? Anytype_ResponseEvent()} + set {_event = newValue} + } + /// Returns true if `event` has been explicitly set. + public var hasEvent: Bool {return self._event != nil} + /// Clears the value of `event`. Subsequent reads from it will return its default value. + public mutating func clearEvent() {self._event = nil} + + public var unknownFields = SwiftProtobuf.UnknownStorage() + + public struct Error { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + public var code: Anytype_Rpc.Object.SetInternalFlags.Response.Error.Code = .null + + public var description_p: String = String() + + public var unknownFields = SwiftProtobuf.UnknownStorage() + + public enum Code: SwiftProtobuf.Enum { + public typealias RawValue = Int + case null // = 0 + case unknownError // = 1 + case badInput // = 2 + case UNRECOGNIZED(Int) + + public init() { + self = .null + } + + public init?(rawValue: Int) { + switch rawValue { + case 0: self = .null + case 1: self = .unknownError + case 2: self = .badInput + default: self = .UNRECOGNIZED(rawValue) + } + } + + public var rawValue: Int { + switch self { + case .null: return 0 + case .unknownError: return 1 + case .badInput: return 2 + case .UNRECOGNIZED(let i): return i + } + } + + } + + public init() {} + } + + public init() {} + + fileprivate var _error: Anytype_Rpc.Object.SetInternalFlags.Response.Error? = nil + fileprivate var _event: Anytype_ResponseEvent? = nil + } + + public init() {} + } + + public struct SetDetails { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + public var unknownFields = SwiftProtobuf.UnknownStorage() + + public struct Request { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + public var contextID: String = String() + + public var details: [Anytype_Model_Detail] = [] + + public var unknownFields = SwiftProtobuf.UnknownStorage() + + public init() {} + } + + public struct Response { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + public var error: Anytype_Rpc.Object.SetDetails.Response.Error { + get {return _error ?? Anytype_Rpc.Object.SetDetails.Response.Error()} + set {_error = newValue} + } + /// Returns true if `error` has been explicitly set. + public var hasError: Bool {return self._error != nil} + /// Clears the value of `error`. Subsequent reads from it will return its default value. + public mutating func clearError() {self._error = nil} + + public var event: Anytype_ResponseEvent { + get {return _event ?? Anytype_ResponseEvent()} + set {_event = newValue} + } + /// Returns true if `event` has been explicitly set. + public var hasEvent: Bool {return self._event != nil} + /// Clears the value of `event`. Subsequent reads from it will return its default value. + public mutating func clearEvent() {self._event = nil} + + public var unknownFields = SwiftProtobuf.UnknownStorage() + + public struct Error { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + public var code: Anytype_Rpc.Object.SetDetails.Response.Error.Code = .null + + public var description_p: String = String() + + public var unknownFields = SwiftProtobuf.UnknownStorage() + + public enum Code: SwiftProtobuf.Enum { + public typealias RawValue = Int + case null // = 0 + case unknownError // = 1 + + /// ... case badInput // = 2 case UNRECOGNIZED(Int) @@ -30929,6 +31144,24 @@ extension Anytype_Rpc.Object.SearchSubscribe.Response.Error.Code: CaseIterable { ] } +extension Anytype_Rpc.Object.CrossSpaceSearchSubscribe.Response.Error.Code: CaseIterable { + // The compiler won't synthesize support with the UNRECOGNIZED case. + public static var allCases: [Anytype_Rpc.Object.CrossSpaceSearchSubscribe.Response.Error.Code] = [ + .null, + .unknownError, + .badInput, + ] +} + +extension Anytype_Rpc.Object.CrossSpaceSearchUnsubscribe.Response.Error.Code: CaseIterable { + // The compiler won't synthesize support with the UNRECOGNIZED case. + public static var allCases: [Anytype_Rpc.Object.CrossSpaceSearchUnsubscribe.Response.Error.Code] = [ + .null, + .unknownError, + .badInput, + ] +} + extension Anytype_Rpc.Object.GroupsSubscribe.Response.Error.Code: CaseIterable { // The compiler won't synthesize support with the UNRECOGNIZED case. public static var allCases: [Anytype_Rpc.Object.GroupsSubscribe.Response.Error.Code] = [ @@ -33323,6 +33556,16 @@ extension Anytype_Rpc.Object.SearchSubscribe.Request: @unchecked Sendable {} extension Anytype_Rpc.Object.SearchSubscribe.Response: @unchecked Sendable {} extension Anytype_Rpc.Object.SearchSubscribe.Response.Error: @unchecked Sendable {} extension Anytype_Rpc.Object.SearchSubscribe.Response.Error.Code: @unchecked Sendable {} +extension Anytype_Rpc.Object.CrossSpaceSearchSubscribe: @unchecked Sendable {} +extension Anytype_Rpc.Object.CrossSpaceSearchSubscribe.Request: @unchecked Sendable {} +extension Anytype_Rpc.Object.CrossSpaceSearchSubscribe.Response: @unchecked Sendable {} +extension Anytype_Rpc.Object.CrossSpaceSearchSubscribe.Response.Error: @unchecked Sendable {} +extension Anytype_Rpc.Object.CrossSpaceSearchSubscribe.Response.Error.Code: @unchecked Sendable {} +extension Anytype_Rpc.Object.CrossSpaceSearchUnsubscribe: @unchecked Sendable {} +extension Anytype_Rpc.Object.CrossSpaceSearchUnsubscribe.Request: @unchecked Sendable {} +extension Anytype_Rpc.Object.CrossSpaceSearchUnsubscribe.Response: @unchecked Sendable {} +extension Anytype_Rpc.Object.CrossSpaceSearchUnsubscribe.Response.Error: @unchecked Sendable {} +extension Anytype_Rpc.Object.CrossSpaceSearchUnsubscribe.Response.Error.Code: @unchecked Sendable {} extension Anytype_Rpc.Object.GroupsSubscribe: @unchecked Sendable {} extension Anytype_Rpc.Object.GroupsSubscribe.Request: @unchecked Sendable {} extension Anytype_Rpc.Object.GroupsSubscribe.Response: @unchecked Sendable {} @@ -44869,6 +45112,332 @@ extension Anytype_Rpc.Object.SearchSubscribe.Response.Error.Code: SwiftProtobuf. ] } +extension Anytype_Rpc.Object.CrossSpaceSearchSubscribe: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = Anytype_Rpc.Object.protoMessageName + ".CrossSpaceSearchSubscribe" + public static let _protobuf_nameMap = SwiftProtobuf._NameMap() + + public mutating func decodeMessage(decoder: inout D) throws { + while let _ = try decoder.nextFieldNumber() { + } + } + + public func traverse(visitor: inout V) throws { + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Anytype_Rpc.Object.CrossSpaceSearchSubscribe, rhs: Anytype_Rpc.Object.CrossSpaceSearchSubscribe) -> Bool { + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Anytype_Rpc.Object.CrossSpaceSearchSubscribe.Request: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = Anytype_Rpc.Object.CrossSpaceSearchSubscribe.protoMessageName + ".Request" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "subId"), + 2: .same(proto: "filters"), + 3: .same(proto: "sorts"), + 7: .same(proto: "keys"), + 10: .same(proto: "source"), + 13: .same(proto: "noDepSubscription"), + 14: .same(proto: "collectionId"), + ] + + public mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularStringField(value: &self.subID) }() + case 2: try { try decoder.decodeRepeatedMessageField(value: &self.filters) }() + case 3: try { try decoder.decodeRepeatedMessageField(value: &self.sorts) }() + case 7: try { try decoder.decodeRepeatedStringField(value: &self.keys) }() + case 10: try { try decoder.decodeRepeatedStringField(value: &self.source) }() + case 13: try { try decoder.decodeSingularBoolField(value: &self.noDepSubscription) }() + case 14: try { try decoder.decodeSingularStringField(value: &self.collectionID) }() + default: break + } + } + } + + public func traverse(visitor: inout V) throws { + if !self.subID.isEmpty { + try visitor.visitSingularStringField(value: self.subID, fieldNumber: 1) + } + if !self.filters.isEmpty { + try visitor.visitRepeatedMessageField(value: self.filters, fieldNumber: 2) + } + if !self.sorts.isEmpty { + try visitor.visitRepeatedMessageField(value: self.sorts, fieldNumber: 3) + } + if !self.keys.isEmpty { + try visitor.visitRepeatedStringField(value: self.keys, fieldNumber: 7) + } + if !self.source.isEmpty { + try visitor.visitRepeatedStringField(value: self.source, fieldNumber: 10) + } + if self.noDepSubscription != false { + try visitor.visitSingularBoolField(value: self.noDepSubscription, fieldNumber: 13) + } + if !self.collectionID.isEmpty { + try visitor.visitSingularStringField(value: self.collectionID, fieldNumber: 14) + } + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Anytype_Rpc.Object.CrossSpaceSearchSubscribe.Request, rhs: Anytype_Rpc.Object.CrossSpaceSearchSubscribe.Request) -> Bool { + if lhs.subID != rhs.subID {return false} + if lhs.filters != rhs.filters {return false} + if lhs.sorts != rhs.sorts {return false} + if lhs.keys != rhs.keys {return false} + if lhs.source != rhs.source {return false} + if lhs.noDepSubscription != rhs.noDepSubscription {return false} + if lhs.collectionID != rhs.collectionID {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Anytype_Rpc.Object.CrossSpaceSearchSubscribe.Response: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = Anytype_Rpc.Object.CrossSpaceSearchSubscribe.protoMessageName + ".Response" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "error"), + 2: .same(proto: "records"), + 3: .same(proto: "dependencies"), + 4: .same(proto: "subId"), + 5: .same(proto: "counters"), + ] + + public mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularMessageField(value: &self._error) }() + case 2: try { try decoder.decodeRepeatedMessageField(value: &self.records) }() + case 3: try { try decoder.decodeRepeatedMessageField(value: &self.dependencies) }() + case 4: try { try decoder.decodeSingularStringField(value: &self.subID) }() + case 5: try { try decoder.decodeSingularMessageField(value: &self._counters) }() + default: break + } + } + } + + public func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + try { if let v = self._error { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + } }() + if !self.records.isEmpty { + try visitor.visitRepeatedMessageField(value: self.records, fieldNumber: 2) + } + if !self.dependencies.isEmpty { + try visitor.visitRepeatedMessageField(value: self.dependencies, fieldNumber: 3) + } + if !self.subID.isEmpty { + try visitor.visitSingularStringField(value: self.subID, fieldNumber: 4) + } + try { if let v = self._counters { + try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + } }() + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Anytype_Rpc.Object.CrossSpaceSearchSubscribe.Response, rhs: Anytype_Rpc.Object.CrossSpaceSearchSubscribe.Response) -> Bool { + if lhs._error != rhs._error {return false} + if lhs.records != rhs.records {return false} + if lhs.dependencies != rhs.dependencies {return false} + if lhs.subID != rhs.subID {return false} + if lhs._counters != rhs._counters {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Anytype_Rpc.Object.CrossSpaceSearchSubscribe.Response.Error: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = Anytype_Rpc.Object.CrossSpaceSearchSubscribe.Response.protoMessageName + ".Error" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "code"), + 2: .same(proto: "description"), + ] + + public mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularEnumField(value: &self.code) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.description_p) }() + default: break + } + } + } + + public func traverse(visitor: inout V) throws { + if self.code != .null { + try visitor.visitSingularEnumField(value: self.code, fieldNumber: 1) + } + if !self.description_p.isEmpty { + try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 2) + } + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Anytype_Rpc.Object.CrossSpaceSearchSubscribe.Response.Error, rhs: Anytype_Rpc.Object.CrossSpaceSearchSubscribe.Response.Error) -> Bool { + if lhs.code != rhs.code {return false} + if lhs.description_p != rhs.description_p {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Anytype_Rpc.Object.CrossSpaceSearchSubscribe.Response.Error.Code: SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "NULL"), + 1: .same(proto: "UNKNOWN_ERROR"), + 2: .same(proto: "BAD_INPUT"), + ] +} + +extension Anytype_Rpc.Object.CrossSpaceSearchUnsubscribe: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = Anytype_Rpc.Object.protoMessageName + ".CrossSpaceSearchUnsubscribe" + public static let _protobuf_nameMap = SwiftProtobuf._NameMap() + + public mutating func decodeMessage(decoder: inout D) throws { + while let _ = try decoder.nextFieldNumber() { + } + } + + public func traverse(visitor: inout V) throws { + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Anytype_Rpc.Object.CrossSpaceSearchUnsubscribe, rhs: Anytype_Rpc.Object.CrossSpaceSearchUnsubscribe) -> Bool { + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Anytype_Rpc.Object.CrossSpaceSearchUnsubscribe.Request: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = Anytype_Rpc.Object.CrossSpaceSearchUnsubscribe.protoMessageName + ".Request" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "subId"), + ] + + public mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularStringField(value: &self.subID) }() + default: break + } + } + } + + public func traverse(visitor: inout V) throws { + if !self.subID.isEmpty { + try visitor.visitSingularStringField(value: self.subID, fieldNumber: 1) + } + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Anytype_Rpc.Object.CrossSpaceSearchUnsubscribe.Request, rhs: Anytype_Rpc.Object.CrossSpaceSearchUnsubscribe.Request) -> Bool { + if lhs.subID != rhs.subID {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Anytype_Rpc.Object.CrossSpaceSearchUnsubscribe.Response: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = Anytype_Rpc.Object.CrossSpaceSearchUnsubscribe.protoMessageName + ".Response" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "error"), + ] + + public mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularMessageField(value: &self._error) }() + default: break + } + } + } + + public func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + try { if let v = self._error { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + } }() + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Anytype_Rpc.Object.CrossSpaceSearchUnsubscribe.Response, rhs: Anytype_Rpc.Object.CrossSpaceSearchUnsubscribe.Response) -> Bool { + if lhs._error != rhs._error {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Anytype_Rpc.Object.CrossSpaceSearchUnsubscribe.Response.Error: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + public static let protoMessageName: String = Anytype_Rpc.Object.CrossSpaceSearchUnsubscribe.Response.protoMessageName + ".Error" + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "code"), + 2: .same(proto: "description"), + ] + + public mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularEnumField(value: &self.code) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.description_p) }() + default: break + } + } + } + + public func traverse(visitor: inout V) throws { + if self.code != .null { + try visitor.visitSingularEnumField(value: self.code, fieldNumber: 1) + } + if !self.description_p.isEmpty { + try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 2) + } + try unknownFields.traverse(visitor: &visitor) + } + + public static func ==(lhs: Anytype_Rpc.Object.CrossSpaceSearchUnsubscribe.Response.Error, rhs: Anytype_Rpc.Object.CrossSpaceSearchUnsubscribe.Response.Error) -> Bool { + if lhs.code != rhs.code {return false} + if lhs.description_p != rhs.description_p {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Anytype_Rpc.Object.CrossSpaceSearchUnsubscribe.Response.Error.Code: SwiftProtobuf._ProtoNameProviding { + public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "NULL"), + 1: .same(proto: "UNKNOWN_ERROR"), + 2: .same(proto: "BAD_INPUT"), + ] +} + extension Anytype_Rpc.Object.GroupsSubscribe: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = Anytype_Rpc.Object.protoMessageName + ".GroupsSubscribe" public static let _protobuf_nameMap = SwiftProtobuf._NameMap() diff --git a/Modules/Services/Sources/Generated/BundledRelationKey+SystemKeys.swift b/Modules/Services/Sources/Generated/BundledRelationKey+SystemKeys.swift index b74d4d069b..88e75ba4f3 100644 --- a/Modules/Services/Sources/Generated/BundledRelationKey+SystemKeys.swift +++ b/Modules/Services/Sources/Generated/BundledRelationKey+SystemKeys.swift @@ -89,7 +89,6 @@ public extension BundledRelationKey { .syncDate, .syncStatus, .syncError, - .scope, .lastUsedDate, .mentions, .chatId, diff --git a/Modules/Services/Sources/Generated/BundledRelationKey.swift b/Modules/Services/Sources/Generated/BundledRelationKey.swift index c9c756882d..f97fef30ca 100644 --- a/Modules/Services/Sources/Generated/BundledRelationKey.swift +++ b/Modules/Services/Sources/Generated/BundledRelationKey.swift @@ -246,8 +246,6 @@ public enum BundledRelationKey: String, Sendable { case fileExt = "fileExt" - case scope = "scope" - /// Important relations that always appear at the top of the object case featuredRelations = "featuredRelations" diff --git a/Modules/Services/Sources/Generated/BundledRelationsValueProvider.swift b/Modules/Services/Sources/Generated/BundledRelationsValueProvider.swift index 484f0921a9..a44501260a 100644 --- a/Modules/Services/Sources/Generated/BundledRelationsValueProvider.swift +++ b/Modules/Services/Sources/Generated/BundledRelationsValueProvider.swift @@ -94,7 +94,6 @@ public protocol BundledRelationsValueProvider { var setOf: [ObjectId] { get } var isArchived: Bool { get } var fileExt: String { get } - var scope: String { get } var featuredRelations: [ObjectId] { get } var phone: String? { get } var smartblockTypes: [Int] { get } @@ -470,9 +469,6 @@ public extension BundledRelationsValueProvider where Self: RelationValueProvider var fileExt: String { return value(for: BundledRelationKey.fileExt.rawValue) } - var scope: String { - return value(for: BundledRelationKey.scope.rawValue) - } /// Important relations that always appear at the top of the object var featuredRelations: [ObjectId] { return value(for: BundledRelationKey.featuredRelations.rawValue) diff --git a/Modules/Services/Sources/Generated/ObjectTypeUniqueKey+Bundled.swift b/Modules/Services/Sources/Generated/ObjectTypeUniqueKey+Bundled.swift index 20a12ccb92..62d9e273d4 100644 --- a/Modules/Services/Sources/Generated/ObjectTypeUniqueKey+Bundled.swift +++ b/Modules/Services/Sources/Generated/ObjectTypeUniqueKey+Bundled.swift @@ -21,7 +21,6 @@ public extension ObjectTypeUniqueKey { static let task = ObjectTypeUniqueKey(value: "ot-task") static let collection = ObjectTypeUniqueKey(value: "ot-collection") static let set = ObjectTypeUniqueKey(value: "ot-set") - static let profile = ObjectTypeUniqueKey(value: "ot-profile") static let bookmark = ObjectTypeUniqueKey(value: "ot-bookmark") static let chat = ObjectTypeUniqueKey(value: "ot-chat") static let chatDerived = ObjectTypeUniqueKey(value: "ot-chatDerived")