// Copyright © 2022 Rangeproof Pty Ltd. All rights reserved. import Foundation extension SnodeAPI { public struct GetServiceNodesRequest: Encodable { enum CodingKeys: String, CodingKey { case activeOnly = "active_only" case limit case fields } let activeOnly: Bool let limit: Int? let fields: Fields public struct Fields: Encodable { enum CodingKeys: String, CodingKey { case publicIp = "public_ip" case storagePort = "storage_port" case pubkeyEd25519 = "pubkey_ed25519" case pubkeyX25519 = "pubkey_x25519" } let publicIp: Bool let storagePort: Bool let pubkeyEd25519: Bool let pubkeyX25519: Bool } } }