Files
zeekay 0c2f028a8c Generate the Swift client, which this copy did not carry
The forge tree held the package scaffolding and none of the generated sources —
2,435 files of APIs, Models and Infrastructure, including BaseAPI, were simply
absent, so anything depending on this copy had a package that compiled to
nothing usable.

Generated from the current API document rather than reconciled with the other
copy: a client is a function of the spec, so regenerating answers "which history
wins" without anyone having to choose. .spec-lock records which document, so the
next reader can tell.
2026-08-23 10:04:41 -07:00

56 lines
2.4 KiB
Swift

//
// CreateWalletIn.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct CreateWalletIn: Sendable, Codable, ParameterConvertible, Hashable {
/** AccountID is the account this wallet belongs to. Required, and it must be an account of the caller's own org — an unknown one is a 404. */
public var accountId: String?
/** Agent optionally narrows the wallet to one agent within the org. It becomes a segment of the key ref, so it must be a url-safe segment with no slash. */
public var agent: String?
/** Chain is the EVM chain this wallet is for, as \"eip155:<n>\" or a bare decimal chain id. Optional; a Safe defaults to the Hanzo L1 (36963). */
public var chain: String?
/** Custody selects the signing backend: \"kms\" (in-process, always available), \"mpc\" or \"treasury\" (the deployed MPC ring), or \"safe\" (a Safe smart wallet owned by an MPC key). Empty uses the deployment's default. A backend that is not configured fails CLOSED with 503 rather than fabricating a signature. */
public var custody: String?
/** Name is the wallet's display label. Optional. */
public var name: String?
/** Tier is the MPC wallet tier: hot, warm, cold, gas, bridge, contract_admin, validator, quarantine or disaster_recovery. Empty defaults to hot. */
public var tier: String?
public init(accountId: String? = nil, agent: String? = nil, chain: String? = nil, custody: String? = nil, name: String? = nil, tier: String? = nil) {
self.accountId = accountId
self.agent = agent
self.chain = chain
self.custody = custody
self.name = name
self.tier = tier
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case accountId
case agent
case chain
case custody
case name
case tier
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(accountId, forKey: .accountId)
try container.encodeIfPresent(agent, forKey: .agent)
try container.encodeIfPresent(chain, forKey: .chain)
try container.encodeIfPresent(custody, forKey: .custody)
try container.encodeIfPresent(name, forKey: .name)
try container.encodeIfPresent(tier, forKey: .tier)
}
}