TM-SGNL-iOS/SignalServiceKit/Network/API/Requests/Provisioning/ProvisioningServiceResponses.swift
TeleMessage developers dde0620daf initial commit
2025-05-03 12:28:28 -07:00

29 lines
904 B
Swift

//
// Copyright 2023 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
//
import Foundation
public import LibSignalClient
public enum ProvisioningServiceResponses {
// MARK: -
public enum VerifySecondaryDeviceResponseCodes: Int, UnknownEnumCodable {
/// Success. Response body has ``VerifySecondaryDeviceResponse`` object.
case success = 200
/// The device being linked is running a "obsolete" client or iOS version, as defined by the server.
case obsoleteLinkedDevice = 409
/// The limit of number of devices on the account has been exceeded.
case deviceLimitExceeded = 411
case unexpectedError = -1
static public var unknown: Self { .unexpectedError }
}
public struct VerifySecondaryDeviceResponse: Codable, Equatable {
@PniUuid public var pni: Pni
public let deviceId: UInt32
}
}