Commit 1e7131b3 authored by Javokhir's avatar Javokhir
Browse files

2.2.5

parent 34e85381
No preview for this file type
Pod::Spec.new do |spec| Pod::Spec.new do |spec|
spec.name = "MyIdSDK" spec.name = "MyIdSDK"
spec.version = "2.2.4" spec.version = "2.2.5"
spec.platform = :ios, '11.0' spec.platform = :ios, '11.0'
spec.ios.deployment_target = '11.0' spec.ios.deployment_target = '11.0'
spec.summary = "MyID Framework" spec.summary = "MyID Framework"
......
...@@ -286,7 +286,6 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); ...@@ -286,7 +286,6 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
SWIFT_CLASS("_TtC7MyIdSDK14MyIdAppearance") SWIFT_CLASS("_TtC7MyIdSDK14MyIdAppearance")
@interface MyIdAppearance : NSObject @interface MyIdAppearance : NSObject
@property (nonatomic, strong) UIColor * _Nullable primaryColor; @property (nonatomic, strong) UIColor * _Nullable primaryColor;
@property (nonatomic, strong) UIColor * _Nullable secondaryColor;
@property (nonatomic, strong) UIColor * _Nullable errorColor; @property (nonatomic, strong) UIColor * _Nullable errorColor;
@property (nonatomic, strong) UIColor * _Nullable primaryButtonColor; @property (nonatomic, strong) UIColor * _Nullable primaryButtonColor;
@property (nonatomic, strong) UIColor * _Nullable primaryButtonColorDisabled; @property (nonatomic, strong) UIColor * _Nullable primaryButtonColorDisabled;
...@@ -301,6 +300,11 @@ typedef SWIFT_ENUM(NSInteger, MyIdBuildMode, open) { ...@@ -301,6 +300,11 @@ typedef SWIFT_ENUM(NSInteger, MyIdBuildMode, open) {
MyIdBuildModePRODUCTION = 1, MyIdBuildModePRODUCTION = 1,
}; };
typedef SWIFT_ENUM(NSInteger, MyIdCameraSelector, open) {
MyIdCameraSelectorFRONT = 0,
MyIdCameraSelectorBACK = 1,
};
typedef SWIFT_ENUM(NSInteger, MyIdCameraShape, open) { typedef SWIFT_ENUM(NSInteger, MyIdCameraShape, open) {
MyIdCameraShapeELLIPSE = 0, MyIdCameraShapeELLIPSE = 0,
MyIdCameraShapeCIRCLE = 1, MyIdCameraShapeCIRCLE = 1,
...@@ -308,10 +312,12 @@ typedef SWIFT_ENUM(NSInteger, MyIdCameraShape, open) { ...@@ -308,10 +312,12 @@ typedef SWIFT_ENUM(NSInteger, MyIdCameraShape, open) {
@class MyIdConfig; @class MyIdConfig;
@protocol MyIdClientDelegate; @protocol MyIdClientDelegate;
@class UIViewController;
SWIFT_CLASS("_TtC7MyIdSDK10MyIdClient") SWIFT_CLASS("_TtC7MyIdSDK10MyIdClient")
@interface MyIdClient : NSObject @interface MyIdClient : NSObject
+ (void)startWithConfig:(MyIdConfig * _Nonnull)config withDelegate:(id <MyIdClientDelegate> _Nonnull)delegate; + (void)startWithConfig:(MyIdConfig * _Nonnull)config withDelegate:(id <MyIdClientDelegate> _Nonnull)delegate;
+ (UIViewController * _Nonnull)runWithConfig:(MyIdConfig * _Nonnull)config withDelegate:(id <MyIdClientDelegate> _Nonnull)delegate SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end @end
...@@ -330,6 +336,7 @@ enum MyIdEntryType : NSInteger; ...@@ -330,6 +336,7 @@ enum MyIdEntryType : NSInteger;
enum MyIdResidency : NSInteger; enum MyIdResidency : NSInteger;
enum MyIdLocale : NSInteger; enum MyIdLocale : NSInteger;
enum MyIdResolution : NSInteger; enum MyIdResolution : NSInteger;
enum MyIdPresentationStyle : NSInteger;
@class MyIdOrganizationDetails; @class MyIdOrganizationDetails;
SWIFT_CLASS("_TtC7MyIdSDK10MyIdConfig") SWIFT_CLASS("_TtC7MyIdSDK10MyIdConfig")
...@@ -339,6 +346,7 @@ SWIFT_CLASS("_TtC7MyIdSDK10MyIdConfig") ...@@ -339,6 +346,7 @@ SWIFT_CLASS("_TtC7MyIdSDK10MyIdConfig")
@property (nonatomic, copy) NSString * _Nullable clientHashId; @property (nonatomic, copy) NSString * _Nullable clientHashId;
@property (nonatomic, copy) NSString * _Nullable passportData; @property (nonatomic, copy) NSString * _Nullable passportData;
@property (nonatomic, copy) NSString * _Nullable dateOfBirth; @property (nonatomic, copy) NSString * _Nullable dateOfBirth;
@property (nonatomic) NSInteger minAge;
@property (nonatomic, copy) NSString * _Nullable sdkHash; @property (nonatomic, copy) NSString * _Nullable sdkHash;
@property (nonatomic, copy) NSString * _Nullable externalId; @property (nonatomic, copy) NSString * _Nullable externalId;
@property (nonatomic) float threshold; @property (nonatomic) float threshold;
...@@ -348,6 +356,8 @@ SWIFT_CLASS("_TtC7MyIdSDK10MyIdConfig") ...@@ -348,6 +356,8 @@ SWIFT_CLASS("_TtC7MyIdSDK10MyIdConfig")
@property (nonatomic) enum MyIdLocale locale; @property (nonatomic) enum MyIdLocale locale;
@property (nonatomic) enum MyIdCameraShape cameraShape; @property (nonatomic) enum MyIdCameraShape cameraShape;
@property (nonatomic) enum MyIdResolution resolution; @property (nonatomic) enum MyIdResolution resolution;
@property (nonatomic) enum MyIdCameraSelector cameraSelector;
@property (nonatomic) enum MyIdPresentationStyle presentationStyle;
@property (nonatomic, strong) MyIdOrganizationDetails * _Nullable organizationDetails; @property (nonatomic, strong) MyIdOrganizationDetails * _Nullable organizationDetails;
@property (nonatomic, strong) MyIdAppearance * _Nullable appearance; @property (nonatomic, strong) MyIdAppearance * _Nullable appearance;
@property (nonatomic) BOOL withPhoto; @property (nonatomic) BOOL withPhoto;
...@@ -403,6 +413,11 @@ SWIFT_CLASS("_TtC7MyIdSDK23MyIdOrganizationDetails") ...@@ -403,6 +413,11 @@ SWIFT_CLASS("_TtC7MyIdSDK23MyIdOrganizationDetails")
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end @end
typedef SWIFT_ENUM(NSInteger, MyIdPresentationStyle, open) {
MyIdPresentationStyleFULL = 0,
MyIdPresentationStyleSHEET = 1,
};
typedef SWIFT_ENUM(NSInteger, MyIdResidency, open) { typedef SWIFT_ENUM(NSInteger, MyIdResidency, open) {
MyIdResidencyUSER_DEFINED = 0, MyIdResidencyUSER_DEFINED = 0,
MyIdResidencyRESIDENT = 1, MyIdResidencyRESIDENT = 1,
...@@ -424,13 +439,22 @@ SWIFT_CLASS("_TtC7MyIdSDK10MyIdResult") ...@@ -424,13 +439,22 @@ SWIFT_CLASS("_TtC7MyIdSDK10MyIdResult")
@end @end
SWIFT_CLASS("_TtC7MyIdSDK13MyIdViewModel") SWIFT_AVAILABILITY(ios,introduced=13.0)
SWIFT_CLASS("_TtC7MyIdSDK13RSAKeyFactory") @interface MyIdViewModel : NSObject
@interface RSAKeyFactory : NSObject - (void)startMyIdWithClientId:(NSString * _Nonnull)clientId clientHash:(NSString * _Nonnull)clientHash clientHashId:(NSString * _Nonnull)clientHashId passportData:(NSString * _Nullable)passportData dateOfBirth:(NSString * _Nullable)dateOfBirth minAge:(NSInteger)minAge sdkHash:(NSString * _Nullable)sdkHash externalId:(NSString * _Nullable)externalId threshold:(float)threshold buildMode:(enum MyIdBuildMode)buildMode entryType:(enum MyIdEntryType)entryType residency:(enum MyIdResidency)residency locale:(enum MyIdLocale)locale cameraShape:(enum MyIdCameraShape)cameraShape resolution:(enum MyIdResolution)resolution cameraSelector:(enum MyIdCameraSelector)cameraSelector presentationStyle:(enum MyIdPresentationStyle)presentationStyle organizationDetails:(MyIdOrganizationDetails * _Nullable)organizationDetails appearance:(MyIdAppearance * _Nullable)appearance withPhoto:(BOOL)withPhoto;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end @end
SWIFT_AVAILABILITY(ios,introduced=13.0)
@interface MyIdViewModel (SWIFT_EXTENSION(MyIdSDK)) <MyIdClientDelegate>
- (void)onSuccessWithResult:(MyIdResult * _Nonnull)result;
- (void)onErrorWithException:(MyIdException * _Nonnull)exception;
- (void)onUserExited;
@end
#endif #endif
......
...@@ -15,116 +15,46 @@ import LocalAuthentication ...@@ -15,116 +15,46 @@ import LocalAuthentication
@_exported import MyIdSDK @_exported import MyIdSDK
import Security import Security
import Swift import Swift
import SwiftUI
import UIKit import UIKit
import Vision import Vision
import _Concurrency import _Concurrency
import _StringProcessing import _StringProcessing
public protocol DataConvertible { @_inheritsConvenienceInitializers @objc public class MyIdResult : ObjectiveC.NSObject {
init?(_ data: Foundation.Data) @objc public var image: UIKit.UIImage?
func data() -> Foundation.Data @objc public var code: Swift.String?
} @objc public var comparisonValue: Swift.String?
public struct Payload : MyIdSDK.DataConvertible { @objc override dynamic public init()
public init(_ payload: Foundation.Data) @objc deinit
public func data() -> Foundation.Data
} }
public protocol Message { extension Swift.String : Swift.Error {
var data: Foundation.Data { get }
var base64String: Swift.String { get }
init(data: Foundation.Data)
init(base64String: Swift.String) throws
} }
extension MyIdSDK.Message { @objc public enum MyIdDocumentType : Swift.Int {
public var base64String: Swift.String { case ID_CARD = 0
case PASSPORT
case DRIVER_LICENSE
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get get
} }
} }
extension Foundation.Data : MyIdSDK.ExpressibleAsRSAPublicKeyComponents { @_inheritsConvenienceInitializers @available(iOS 13.0, *)
public static func representing(rsaPublicKeyComponents components: MyIdSDK.RSAPublicKeyComponents) throws -> Foundation.Data @objc public class MyIdViewModel : ObjectiveC.NSObject, Combine.ObservableObject {
public func rsaPublicKeyComponents() throws -> MyIdSDK.RSAPublicKeyComponents @objc public func startMyId(clientId: Swift.String, clientHash: Swift.String, clientHashId: Swift.String, passportData: Swift.String? = nil, dateOfBirth: Swift.String? = nil, minAge: Swift.Int = 16, sdkHash: Swift.String? = nil, externalId: Swift.String? = nil, threshold: Swift.Float = 0.5, buildMode: MyIdSDK.MyIdBuildMode = MyIdBuildMode.PRODUCTION, entryType: MyIdSDK.MyIdEntryType = MyIdEntryType.AUTH, residency: MyIdSDK.MyIdResidency = MyIdResidency.RESIDENT, locale: MyIdSDK.MyIdLocale = MyIdLocale.RU, cameraShape: MyIdSDK.MyIdCameraShape = MyIdCameraShape.CIRCLE, resolution: MyIdSDK.MyIdResolution = MyIdResolution.RESOLUTION_480, cameraSelector: MyIdSDK.MyIdCameraSelector = MyIdCameraSelector.FRONT, presentationStyle: MyIdSDK.MyIdPresentationStyle = MyIdPresentationStyle.FULL, organizationDetails: MyIdSDK.MyIdOrganizationDetails? = nil, appearance: MyIdSDK.MyIdAppearance? = nil, withPhoto: Swift.Bool = false)
} @objc override dynamic public init()
public class RSASignature { public typealias ObjectWillChangePublisher = Combine.ObservableObjectPublisher
public enum DigestType {
case sha1
case sha224
case sha256
case sha384
case sha512
public static func == (a: MyIdSDK.RSASignature.DigestType, b: MyIdSDK.RSASignature.DigestType) -> Swift.Bool
public func hash(into hasher: inout Swift.Hasher)
public var hashValue: Swift.Int {
get
}
}
final public let data: Foundation.Data
public init(data: Foundation.Data)
convenience public init(base64Encoded base64String: Swift.String) throws
public var base64String: Swift.String {
get
}
@objc deinit @objc deinit
} }
public enum JOSESwiftError : Swift.Error { @available(iOS 13.0, *)
case signingFailed(description: Swift.String) @objc extension MyIdSDK.MyIdViewModel : MyIdSDK.MyIdClientDelegate {
case verifyingFailed(description: Swift.String) @objc dynamic public func onSuccess(result: MyIdSDK.MyIdResult)
case signatureInvalid @objc dynamic public func onError(exception: MyIdSDK.MyIdException)
case encryptingFailed(description: Swift.String) @objc dynamic public func onUserExited()
case decryptingFailed(description: Swift.String)
case wrongDataEncoding(data: Foundation.Data)
case invalidCompactSerializationComponentCount(count: Swift.Int)
case componentNotValidBase64URL(component: Swift.String)
case componentCouldNotBeInitializedFromData(data: Foundation.Data)
case couldNotConstructJWK
case modulusNotBase64URLUIntEncoded
case exponentNotBase64URLUIntEncoded
case privateExponentNotBase64URLUIntEncoded
case symmetricKeyNotBase64URLEncoded
case xNotBase64URLUIntEncoded
case yNotBase64URLUIntEncoded
case privateKeyNotBase64URLUIntEncoded
case invalidCurveType
case compressedCurvePointsUnsupported
case invalidCurvePointOctetLength
case localAuthenticationFailed(errorCode: Swift.Int)
case compressionFailed
case decompressionFailed
case compressionAlgorithmNotSupported
case rawDataMustBeGreaterThanZero
case compressedDataMustBeGreaterThanZero
case thumbprintSerialization
}
extension Foundation.Data : MyIdSDK.ExpressibleAsSymmetricKeyComponents {
public static func representing(symmetricKeyComponents components: MyIdSDK.SymmetricKeyComponents) throws -> Foundation.Data
public func symmetricKeyComponents() throws -> MyIdSDK.SymmetricKeyComponents
} }
public typealias SymmetricKeyComponents = (Foundation.Data) @_inheritsConvenienceInitializers @objc public class MyIdClient : ObjectiveC.NSObject {
public protocol ExpressibleAsSymmetricKeyComponents { @objc public class func start(withConfig config: MyIdSDK.MyIdConfig, withDelegate delegate: any MyIdSDK.MyIdClientDelegate)
static func representing(symmetricKeyComponents components: MyIdSDK.SymmetricKeyComponents) throws -> Self @objc public class func run(withConfig config: MyIdSDK.MyIdConfig, withDelegate delegate: any MyIdSDK.MyIdClientDelegate) -> UIKit.UIViewController
func symmetricKeyComponents() throws -> MyIdSDK.SymmetricKeyComponents
}
public struct SymmetricKey : MyIdSDK.JWK {
public let keyType: MyIdSDK.JWKKeyType
public let parameters: [Swift.String : Swift.String]
public var requiredParameters: [Swift.String : Swift.String] {
get
}
public let key: Swift.String
public init(key: Foundation.Data, additionalParameters parameters: [Swift.String : Swift.String] = [:])
public init(key: any MyIdSDK.ExpressibleAsSymmetricKeyComponents, additionalParameters parameters: [Swift.String : Swift.String] = [:]) throws
public init(data: Foundation.Data) throws
public func converted<T>(to type: T.Type) throws -> T where T : MyIdSDK.ExpressibleAsSymmetricKeyComponents
@available(iOS 11.0, *)
public func withThumbprintAsKeyId(algorithm: MyIdSDK.JWKThumbprintAlgorithm = .SHA256) throws -> MyIdSDK.SymmetricKey
}
@_inheritsConvenienceInitializers @objc public class MyIdGenerator : ObjectiveC.NSObject {
@objc public class func hash(payload: Swift.String, clientHash: Swift.String, clientHashId: Swift.String) -> Swift.String?
@objc public class func device() -> Swift.String
@objc public class func deviceModel() -> Swift.String?
@objc public class func deviceName() -> Swift.String?
@objc public class func systemName() -> Swift.String?
@objc public class func systemVersion() -> Swift.String?
@objc public class func isPhone() -> Swift.Bool
@objc public class func isPad() -> Swift.Bool
@objc public class func isSimulator() -> Swift.Bool
@objc override dynamic public init() @objc override dynamic public init()
@objc deinit @objc deinit
} }
...@@ -137,136 +67,43 @@ public struct SymmetricKey : MyIdSDK.JWK { ...@@ -137,136 +67,43 @@ public struct SymmetricKey : MyIdSDK.JWK {
get get
} }
} }
public enum SecureRandomError : Swift.Error { @objc public enum MyIdResolution : Swift.Int {
case failed(status: Darwin.OSStatus) case RESOLUTION_480 = 0
case countMustBeGreaterThanZero case RESOLUTION_720
} public init?(rawValue: Swift.Int)
public struct SecureRandom { public typealias RawValue = Swift.Int
public static func generate(count: Swift.Int) throws -> Foundation.Data public var rawValue: Swift.Int {
}
public enum JWKParameter : Swift.String, Swift.CodingKey {
case keyType
case keyUse
case keyOperations
case algorithm
case keyIdentifier
case X509URL
case X509CertificateChain
case X509CertificateSHA1Thumbprint
case X509CertificateSHA256Thumbprint
public init?(rawValue: Swift.String)
public init?(stringValue: Swift.String)
public init?(intValue: Swift.Int)
public typealias RawValue = Swift.String
public var intValue: Swift.Int? {
get
}
public var rawValue: Swift.String {
get
}
public var stringValue: Swift.String {
get
}
}
public enum RSAParameter : Swift.String, Swift.CodingKey {
case modulus
case exponent
case privateExponent
public init?(rawValue: Swift.String)
public init?(stringValue: Swift.String)
public init?(intValue: Swift.Int)
public typealias RawValue = Swift.String
public var intValue: Swift.Int? {
get
}
public var rawValue: Swift.String {
get
}
public var stringValue: Swift.String {
get
}
}
public enum SymmetricKeyParameter : Swift.String, Swift.CodingKey {
case key
public init?(rawValue: Swift.String)
public init?(stringValue: Swift.String)
public init?(intValue: Swift.Int)
public typealias RawValue = Swift.String
public var intValue: Swift.Int? {
get
}
public var rawValue: Swift.String {
get
}
public var stringValue: Swift.String {
get
}
}
public enum ECParameter : Swift.String, Swift.CodingKey {
case curve
case x
case y
case privateKey
public init?(rawValue: Swift.String)
public init?(stringValue: Swift.String)
public init?(intValue: Swift.Int)
public typealias RawValue = Swift.String
public var intValue: Swift.Int? {
get
}
public var rawValue: Swift.String {
get
}
public var stringValue: Swift.String {
get get
} }
} }
public protocol CompactSerializable { @objc public enum MyIdPresentationStyle : Swift.Int {
func serialize(to serializer: inout any MyIdSDK.CompactSerializer) case FULL = 0
} case SHEET
public protocol CompactSerializer {
var components: [any MyIdSDK.DataConvertible] { get }
mutating func serialize<T>(_ object: T) where T : MyIdSDK.DataConvertible
}
public struct JOSESerializer {
public func serialize<T>(compact object: T) -> Swift.String where T : MyIdSDK.CompactSerializable
}
public enum SwiftyCryptoRSAKeySize : Swift.Int {
case RSAKey64
case RSAKey128
case RSAKey256
case RSAKey512
public init?(rawValue: Swift.Int) public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int public typealias RawValue = Swift.Int
public var rawValue: Swift.Int { public var rawValue: Swift.Int {
get get
} }
} }
@objc @_inheritsConvenienceInitializers public class RSAKeyFactory : ObjectiveC.NSObject { @_inheritsConvenienceInitializers @objc public class MyIdAppearance : ObjectiveC.NSObject {
public static let shared: MyIdSDK.RSAKeyFactory @objc public var primaryColor: UIKit.UIColor?
public func generateKeyPair(keySize: MyIdSDK.SwiftyCryptoRSAKeySize) -> MyIdSDK.RSAKeyPairs? @objc public var errorColor: UIKit.UIColor?
@objc public var primaryButtonColor: UIKit.UIColor?
@objc public var primaryButtonColorDisabled: UIKit.UIColor?
@objc public var primaryButtonTextColor: UIKit.UIColor?
@objc public var primaryButtonTextColorDisabled: UIKit.UIColor?
@objc public var buttonCornerRadius: Swift.Float
@objc override dynamic public init() @objc override dynamic public init()
@objc deinit @objc deinit
} }
@objc public protocol MyIdClientDelegate { @objc public enum MyIdEntryType : Swift.Int {
@objc func onSuccess(result: MyIdSDK.MyIdResult) case AUTH = 0
@objc func onError(exception: MyIdSDK.MyIdException) case FACE
@objc func onUserExited() public init?(rawValue: Swift.Int)
} public typealias RawValue = Swift.Int
public struct Decrypter { public var rawValue: Swift.Int {
public init?<KeyType>(keyManagementAlgorithm: MyIdSDK.KeyManagementAlgorithm, contentEncryptionAlgorithm: MyIdSDK.ContentEncryptionAlgorithm, decryptionKey: KeyType) get
} }
extension MyIdSDK.Decrypter {
@available(*, deprecated, message: "Use `init?(keyManagementAlgorithm:contentEncryptionAlgorithm:decryptionKey:)` instead")
public init?<KeyType>(keyDecryptionAlgorithm: MyIdSDK.AsymmetricKeyAlgorithm, decryptionKey key: KeyType, contentDecryptionAlgorithm: MyIdSDK.SymmetricKeyAlgorithm)
@available(*, deprecated, message: "Use `init?(keyManagementAlgorithm:contentEncryptionAlgorithm:decryptionKey:)` instead")
public init?<KeyType>(keyDecryptionAlgorithm: MyIdSDK.AsymmetricKeyAlgorithm, keyDecryptionKey kdk: KeyType, contentDecryptionAlgorithm: MyIdSDK.SymmetricKeyAlgorithm)
}
@available(*, deprecated, message: "This type will be removed with the next major release.")
public struct DecryptionContext {
}
@available(*, deprecated, message: "This type will be removed with the next major release.")
public struct SymmetricDecryptionContext {
} }
@_inheritsConvenienceInitializers @objc public class MyIdConfig : ObjectiveC.NSObject { @_inheritsConvenienceInitializers @objc public class MyIdConfig : ObjectiveC.NSObject {
@objc public var clientId: Swift.String? @objc public var clientId: Swift.String?
...@@ -274,6 +111,7 @@ public struct SymmetricDecryptionContext { ...@@ -274,6 +111,7 @@ public struct SymmetricDecryptionContext {
@objc public var clientHashId: Swift.String? @objc public var clientHashId: Swift.String?
@objc public var passportData: Swift.String? @objc public var passportData: Swift.String?
@objc public var dateOfBirth: Swift.String? @objc public var dateOfBirth: Swift.String?
@objc public var minAge: Swift.Int
@objc public var sdkHash: Swift.String? @objc public var sdkHash: Swift.String?
@objc public var externalId: Swift.String? @objc public var externalId: Swift.String?
@objc public var threshold: Swift.Float @objc public var threshold: Swift.Float
...@@ -283,44 +121,18 @@ public struct SymmetricDecryptionContext { ...@@ -283,44 +121,18 @@ public struct SymmetricDecryptionContext {
@objc public var locale: MyIdSDK.MyIdLocale @objc public var locale: MyIdSDK.MyIdLocale
@objc public var cameraShape: MyIdSDK.MyIdCameraShape @objc public var cameraShape: MyIdSDK.MyIdCameraShape
@objc public var resolution: MyIdSDK.MyIdResolution @objc public var resolution: MyIdSDK.MyIdResolution
@objc public var cameraSelector: MyIdSDK.MyIdCameraSelector
@objc public var presentationStyle: MyIdSDK.MyIdPresentationStyle
@objc public var organizationDetails: MyIdSDK.MyIdOrganizationDetails? @objc public var organizationDetails: MyIdSDK.MyIdOrganizationDetails?
@objc public var appearance: MyIdSDK.MyIdAppearance? @objc public var appearance: MyIdSDK.MyIdAppearance?
@objc public var withPhoto: Swift.Bool @objc public var withPhoto: Swift.Bool
@objc override dynamic public init() @objc override dynamic public init()
@objc deinit @objc deinit
} }
extension MyIdSDK.RSAPublicKey : Swift.Encodable { @objc public protocol MyIdClientDelegate {
public func encode(to encoder: any Swift.Encoder) throws @objc func onSuccess(result: MyIdSDK.MyIdResult)
} @objc func onError(exception: MyIdSDK.MyIdException)
extension MyIdSDK.RSAPublicKey : Swift.Decodable { @objc func onUserExited()
public init(from decoder: any Swift.Decoder) throws
}
extension MyIdSDK.RSAPrivateKey : Swift.Encodable {
public func encode(to encoder: any Swift.Encoder) throws
}
extension MyIdSDK.RSAPrivateKey : Swift.Decodable {
public init(from decoder: any Swift.Decoder) throws
}
extension Foundation.Data : MyIdSDK.ExpressibleAsECPublicKeyComponents {
public static func representing(ecPublicKeyComponents components: MyIdSDK.ECPublicKeyComponents) throws -> Foundation.Data
public func ecPublicKeyComponents() throws -> MyIdSDK.ECPublicKeyComponents
}
public protocol CompactDeserializable {
static var componentCount: Swift.Int { get }
init(from deserializer: any MyIdSDK.CompactDeserializer) throws
}
public protocol CompactDeserializer {
func deserialize<T>(_ type: T.Type, at index: Swift.Int) throws -> T where T : MyIdSDK.DataConvertible
}
public struct JOSEDeserializer {
public init()
public func deserialize<T>(_ type: T.Type, fromCompactSerialization compactSerialization: Swift.String) throws -> T where T : MyIdSDK.CompactDeserializable
}
public enum ComponentCompactSerializedIndex {
}
extension Foundation.Data : MyIdSDK.ExpressibleAsECPrivateKeyComponents {
public static func representing(ecPrivateKeyComponents components: MyIdSDK.ECPrivateKeyComponents) throws -> Foundation.Data
public func ecPrivateKeyComponents() throws -> MyIdSDK.ECPrivateKeyComponents
} }
@_inheritsConvenienceInitializers @objc public class MyIdException : ObjectiveC.NSObject { @_inheritsConvenienceInitializers @objc public class MyIdException : ObjectiveC.NSObject {
@objc public var message: Swift.String? @objc public var message: Swift.String?
...@@ -328,97 +140,37 @@ extension Foundation.Data : MyIdSDK.ExpressibleAsECPrivateKeyComponents { ...@@ -328,97 +140,37 @@ extension Foundation.Data : MyIdSDK.ExpressibleAsECPrivateKeyComponents {
@objc override dynamic public init() @objc override dynamic public init()
@objc deinit @objc deinit
} }
@objc public enum MyIdResolution : Swift.Int { @_inheritsConvenienceInitializers @objc public class MyIdGenerator : ObjectiveC.NSObject {
case RESOLUTION_480 = 0 @objc public class func hash(payload: Swift.String, clientHash: Swift.String, clientHashId: Swift.String) -> Swift.String?
case RESOLUTION_720 @objc public class func device() -> Swift.String
@objc public class func deviceModel() -> Swift.String?
@objc public class func deviceName() -> Swift.String?
@objc public class func systemName() -> Swift.String?
@objc public class func systemVersion() -> Swift.String?
@objc public class func isPhone() -> Swift.Bool
@objc public class func isPad() -> Swift.Bool
@objc public class func isSimulator() -> Swift.Bool
@objc override dynamic public init()
@objc deinit
}
@objc public enum MyIdCameraShape : Swift.Int {
case ELLIPSE = 0
case CIRCLE
public init?(rawValue: Swift.Int) public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int public typealias RawValue = Swift.Int
public var rawValue: Swift.Int { public var rawValue: Swift.Int {
get get
} }
} }
extension Foundation.Data { @objc public enum MyIdCameraSelector : Swift.Int {
public init?(base64URLEncoded base64URLString: Swift.String) case FRONT = 0
public init?(base64URLEncoded base64URLData: Foundation.Data) case BACK
public func base64URLEncodedString() -> Swift.String
public func base64URLEncodedData() -> Foundation.Data
}
extension Foundation.Data : MyIdSDK.DataConvertible {
public init(_ data: Foundation.Data)
public func data() -> Foundation.Data
}
public typealias RSAPublicKeyComponents = (modulus: Foundation.Data, exponent: Foundation.Data)
public typealias RSAPrivateKeyComponents = (modulus: Foundation.Data, exponent: Foundation.Data, privateExponent: Foundation.Data)
public protocol ExpressibleAsRSAPublicKeyComponents {
static func representing(rsaPublicKeyComponents components: MyIdSDK.RSAPublicKeyComponents) throws -> Self
func rsaPublicKeyComponents() throws -> MyIdSDK.RSAPublicKeyComponents
}
public protocol ExpressibleAsRSAPrivateKeyComponents {
static func representing(rsaPrivateKeyComponents components: MyIdSDK.RSAPrivateKeyComponents) throws -> Self
func rsaPrivateKeyComponents() throws -> MyIdSDK.RSAPrivateKeyComponents
}
public struct RSAPublicKey : MyIdSDK.JWK {
public let keyType: MyIdSDK.JWKKeyType
public let parameters: [Swift.String : Swift.String]
public var requiredParameters: [Swift.String : Swift.String] {
get
}
public let modulus: Swift.String
public let exponent: Swift.String
public init(modulus: Swift.String, exponent: Swift.String, additionalParameters parameters: [Swift.String : Swift.String] = [:])
public init(publicKey: any MyIdSDK.ExpressibleAsRSAPublicKeyComponents, additionalParameters parameters: [Swift.String : Swift.String] = [:]) throws
public init(data: Foundation.Data) throws
public func converted<T>(to type: T.Type) throws -> T where T : MyIdSDK.ExpressibleAsRSAPublicKeyComponents
@available(iOS 11.0, *)
public func withThumbprintAsKeyId(algorithm: MyIdSDK.JWKThumbprintAlgorithm = .SHA256) throws -> MyIdSDK.RSAPublicKey
}
public struct RSAPrivateKey : MyIdSDK.JWK {
public let keyType: MyIdSDK.JWKKeyType
public let parameters: [Swift.String : Swift.String]
public var requiredParameters: [Swift.String : Swift.String] {
get
}
public let modulus: Swift.String
public let exponent: Swift.String
public let privateExponent: Swift.String
public init(modulus: Swift.String, exponent: Swift.String, privateExponent: Swift.String, additionalParameters parameters: [Swift.String : Swift.String] = [:])
public init(privateKey: any MyIdSDK.ExpressibleAsRSAPrivateKeyComponents, additionalParameters parameters: [Swift.String : Swift.String] = [:]) throws
public init(data: Foundation.Data) throws
public func converted<T>(to type: T.Type) throws -> T where T : MyIdSDK.ExpressibleAsRSAPrivateKeyComponents
@available(iOS 11.0, *)
public func withThumbprintAsKeyId(algorithm: MyIdSDK.JWKThumbprintAlgorithm = .SHA256) throws -> MyIdSDK.RSAPrivateKey
}
public typealias RSAKeyPair = MyIdSDK.RSAPrivateKey
@objc public enum MyIdCameraShape : Swift.Int {
case ELLIPSE = 0
case CIRCLE
public init?(rawValue: Swift.Int) public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int public typealias RawValue = Swift.Int
public var rawValue: Swift.Int { public var rawValue: Swift.Int {
get get
} }
} }
extension Swift.String : Swift.Error {
}
extension MyIdSDK.SymmetricKey : Swift.Encodable {
public func encode(to encoder: any Swift.Encoder) throws
}
extension MyIdSDK.SymmetricKey : Swift.Decodable {
public init(from decoder: any Swift.Decoder) throws
}
public class RSAMessage : MyIdSDK.Message {
public var data: Foundation.Data
public var base64String: Swift.String
required public init(data: Foundation.Data)
required convenience public init(base64String: Swift.String) throws
public func sign(signingKey: MyIdSDK.RSAKey, digestType: MyIdSDK.RSASignature.DigestType) throws -> MyIdSDK.RSASignature
public func verify(verifyKey: MyIdSDK.RSAKey, signature: MyIdSDK.RSASignature, digestType: MyIdSDK.RSASignature.DigestType) throws -> Swift.Bool
@objc deinit
}
extension Security.SecKey : MyIdSDK.ExpressibleAsECPublicKeyComponents {
public static func representing(ecPublicKeyComponents components: MyIdSDK.ECPublicKeyComponents) throws -> Self
public func ecPublicKeyComponents() throws -> MyIdSDK.ECPublicKeyComponents
}
@objc public enum MyIdResidency : Swift.Int { @objc public enum MyIdResidency : Swift.Int {
case USER_DEFINED = 0 case USER_DEFINED = 0
case RESIDENT case RESIDENT
...@@ -429,640 +181,46 @@ extension Security.SecKey : MyIdSDK.ExpressibleAsECPublicKeyComponents { ...@@ -429,640 +181,46 @@ extension Security.SecKey : MyIdSDK.ExpressibleAsECPublicKeyComponents {
get get
} }
} }
public protocol CommonHeaderParameterSpace { @objc public enum MyIdLocale : Swift.Int {
var jku: Foundation.URL? { get set } case RU = 0
var jwk: Swift.String? { get set } case EN
var jwkTyped: (any MyIdSDK.JWK)? { get set } case UZ
var kid: Swift.String? { get set }
var x5u: Foundation.URL? { get set }
var x5c: [Swift.String]? { get set }
var x5t: Swift.String? { get set }
var x5tS256: Swift.String? { get set }
var typ: Swift.String? { get set }
var cty: Swift.String? { get set }
var crit: [Swift.String]? { get set }
}
public enum ECCurveType : Swift.String, Swift.Codable {
case P256
case P384
case P521
public init?(rawValue: Swift.String)
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
public enum ECCompression : Swift.UInt8 {
case CompressedYEven
case CompressedYOdd
case Uncompressed
case HybridYEven
case HybridYOdd
public init?(rawValue: Swift.UInt8)
public typealias RawValue = Swift.UInt8
public var rawValue: Swift.UInt8 {
get
}
}
public struct JWEHeader {
public init(keyManagementAlgorithm: MyIdSDK.KeyManagementAlgorithm, contentEncryptionAlgorithm: MyIdSDK.ContentEncryptionAlgorithm)
public init(parameters: [Swift.String : Any]) throws
}
extension MyIdSDK.JWEHeader {
public var keyManagementAlgorithm: MyIdSDK.KeyManagementAlgorithm? {
get
}
public var contentEncryptionAlgorithm: MyIdSDK.ContentEncryptionAlgorithm? {
get
}
public var compressionAlgorithm: MyIdSDK.CompressionAlgorithm? {
get
}
public var zip: Swift.String? {
get
set
}
}
extension MyIdSDK.JWEHeader : MyIdSDK.CommonHeaderParameterSpace {
public var jku: Foundation.URL? {
get
set
}
public var jwk: Swift.String? {
get
set
}
public var jwkTyped: (any MyIdSDK.JWK)? {
get
set
}
public var kid: Swift.String? {
get
set
}
public var x5u: Foundation.URL? {
get
set
}
public var x5c: [Swift.String]? {
get
set
}
public var x5t: Swift.String? {
get
set
}
public var x5tS256: Swift.String? {
get
set
}
public var typ: Swift.String? {
get
set
}
public var cty: Swift.String? {
get
set
}
public var crit: [Swift.String]? {
get
set
}
}
extension MyIdSDK.JWEHeader {
@available(*, deprecated, message: "Use `JWEHeader.keyManagementAlgorithm` instead")
public var algorithm: MyIdSDK.AsymmetricKeyAlgorithm? {
get
}
@available(*, deprecated, message: "Use `JWEHeader.contentEncryptionAlgorithm` instead")
public var encryptionAlgorithm: MyIdSDK.SymmetricKeyAlgorithm? {
get
}
@available(*, deprecated, message: "Use `init(keyManagementAlgorithm:contentEncryptionAlgorithm` instead")
public init(algorithm: MyIdSDK.AsymmetricKeyAlgorithm, encryptionAlgorithm: MyIdSDK.SymmetricKeyAlgorithm)
}
public struct Encrypter<KeyType> {
public init?(keyManagementAlgorithm: MyIdSDK.KeyManagementAlgorithm, contentEncryptionAlgorithm: MyIdSDK.ContentEncryptionAlgorithm, encryptionKey: KeyType)
}
extension MyIdSDK.Encrypter {
@available(*, deprecated, message: "Use `init?(keyManagementAlgorithm:contentEncryptionAlgorithm:encryptionKey:)` instead")
public init?(keyEncryptionAlgorithm: MyIdSDK.AsymmetricKeyAlgorithm, encryptionKey key: KeyType, contentEncyptionAlgorithm: MyIdSDK.SymmetricKeyAlgorithm)
@available(*, deprecated, message: "Use `init?(keyManagementAlgorithm:contentEncryptionAlgorithm:encryptionKey:)` instead")
public init?(keyEncryptionAlgorithm: MyIdSDK.AsymmetricKeyAlgorithm, keyEncryptionKey kek: KeyType, contentEncyptionAlgorithm: MyIdSDK.SymmetricKeyAlgorithm)
}
@available(*, deprecated, message: "This type will be removed with the next major release.")
public struct EncryptionContext {
}
@available(*, deprecated, message: "This type will be removed with the next major release.")
public struct SymmetricEncryptionContext {
}
public struct JWS {
public let header: MyIdSDK.JWSHeader
public let payload: MyIdSDK.Payload
public let signature: Foundation.Data
public var compactSerializedString: Swift.String {
get
}
public var compactSerializedData: Foundation.Data {
get
}
public init<KeyType>(header: MyIdSDK.JWSHeader, payload: MyIdSDK.Payload, signer: MyIdSDK.Signer<KeyType>) throws
public init(compactSerialization: Swift.String) throws
public init(compactSerialization: Foundation.Data) throws
@available(*, deprecated, message: "Use `isValid(for verifier:)` instead")
public func isValid<KeyType>(for publicKey: KeyType) -> Swift.Bool
@available(*, deprecated, message: "Use `validate(using verifier:)` instead")
public func validate<KeyType>(with publicKey: KeyType) throws -> MyIdSDK.JWS
public func validate(using verifier: MyIdSDK.Verifier) throws -> MyIdSDK.JWS
public func isValid(for verifier: MyIdSDK.Verifier) -> Swift.Bool
}
extension MyIdSDK.JWS : MyIdSDK.CompactSerializable {
public func serialize(to serializer: inout any MyIdSDK.CompactSerializer)
}
extension MyIdSDK.JWS : MyIdSDK.CompactDeserializable {
public static var componentCount: Swift.Int {
get
}
public init(from deserializer: any MyIdSDK.CompactDeserializer) throws
}
extension Security.SecKey : MyIdSDK.ExpressibleAsECPrivateKeyComponents {
public static func representing(ecPrivateKeyComponents components: MyIdSDK.ECPrivateKeyComponents) throws -> Self
public func ecPrivateKeyComponents() throws -> MyIdSDK.ECPrivateKeyComponents
}
public enum SignatureAlgorithm : Swift.String {
case HS256
case HS384
case HS512
case RS256
case RS384
case RS512
@available(iOS 11, *)
case PS256
@available(iOS 11, *)
case PS384
@available(iOS 11, *)
case PS512
case ES256
case ES384
case ES512
public init?(rawValue: Swift.String)
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
public enum KeyManagementAlgorithm : Swift.String, Swift.CaseIterable {
case RSA1_5
case RSAOAEP
case RSAOAEP256
case A128KW
case A192KW
case A256KW
case direct
public init?(rawValue: Swift.String)
public typealias AllCases = [MyIdSDK.KeyManagementAlgorithm]
public typealias RawValue = Swift.String
public static var allCases: [MyIdSDK.KeyManagementAlgorithm] {
get
}
public var rawValue: Swift.String {
get
}
}
public enum ContentEncryptionAlgorithm : Swift.String {
case A256CBCHS512
case A128CBCHS256
public init?(rawValue: Swift.String)
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
public enum HMACAlgorithm : Swift.String {
case SHA512
case SHA384
case SHA256
public init?(rawValue: Swift.String)
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
public enum JWKThumbprintAlgorithm : Swift.String {
case SHA256
public init?(rawValue: Swift.String)
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
public enum CompressionAlgorithm : Swift.String {
case DEFLATE
case NONE
public init?(rawValue: Swift.String)
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
@available(*, deprecated, message: "Use `KeyManagementAlgorithm` instead")
public typealias AsymmetricKeyAlgorithm = MyIdSDK.KeyManagementAlgorithm
@available(*, deprecated, message: "Use `ContentEncryptionAlgorithm` instead")
public typealias SymmetricKeyAlgorithm = MyIdSDK.ContentEncryptionAlgorithm
@objc public enum MyIdEntryType : Swift.Int {
case AUTH = 0
case FACE
public init?(rawValue: Swift.Int) public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int public typealias RawValue = Swift.Int
public var rawValue: Swift.Int { public var rawValue: Swift.Int {
get get
} }
} }
extension Security.SecKey : MyIdSDK.ExpressibleAsRSAPublicKeyComponents {
public static func representing(rsaPublicKeyComponents components: MyIdSDK.RSAPublicKeyComponents) throws -> Self
public func rsaPublicKeyComponents() throws -> MyIdSDK.RSAPublicKeyComponents
}
extension MyIdSDK.JWKSet : Swift.Encodable {
public func encode(to encoder: any Swift.Encoder) throws
}
extension MyIdSDK.JWKSet : Swift.Decodable {
public init(from decoder: any Swift.Decoder) throws
}
public enum SwiftyCryptoError : Swift.Error {
case invalidBase64String
case invalidKeyFormat
case invalidAsn1Structure
case asn1ParsingFailed
case invalidAsn1RootNode
case tagEncodingFailed
case keyCreateFailed(error: CoreFoundation.CFError?)
case keyAddFailed(status: Darwin.OSStatus)
case keyCopyFailed(status: Darwin.OSStatus)
case invalidDigestSize(digestSize: Swift.Int, maxChunkSize: Swift.Int)
case signatureCreateFailed(status: Darwin.OSStatus)
case signatureVerifyFailed(status: Darwin.OSStatus)
case keyRepresentationFailed(error: CoreFoundation.CFError?)
}
public struct JWSHeader {
public init(algorithm: MyIdSDK.SignatureAlgorithm)
public init(parameters: [Swift.String : Any]) throws
}
extension MyIdSDK.JWSHeader {
public var algorithm: MyIdSDK.SignatureAlgorithm? {
get
}
}
extension MyIdSDK.JWSHeader : MyIdSDK.CommonHeaderParameterSpace {
public var jku: Foundation.URL? {
get
set
}
public var jwk: Swift.String? {
get
set
}
public var jwkTyped: (any MyIdSDK.JWK)? {
get
set
}
public var kid: Swift.String? {
get
set
}
public var x5u: Foundation.URL? {
get
set
}
public var x5c: [Swift.String]? {
get
set
}
public var x5t: Swift.String? {
get
set
}
public var x5tS256: Swift.String? {
get
set
}
public var typ: Swift.String? {
get
set
}
public var cty: Swift.String? {
get
set
}
public var crit: [Swift.String]? {
get
set
}
}
extension MyIdSDK.ECPublicKey : Swift.Encodable {
public func encode(to encoder: any Swift.Encoder) throws
}
extension MyIdSDK.ECPublicKey : Swift.Decodable {
public init(from decoder: any Swift.Decoder) throws
}
extension MyIdSDK.ECPrivateKey : Swift.Encodable {
public func encode(to encoder: any Swift.Encoder) throws
}
extension MyIdSDK.ECPrivateKey : Swift.Decodable {
public init(from decoder: any Swift.Decoder) throws
}
@_inheritsConvenienceInitializers @objc public class MyIdOrganizationDetails : ObjectiveC.NSObject { @_inheritsConvenienceInitializers @objc public class MyIdOrganizationDetails : ObjectiveC.NSObject {
@objc public var phoneNumber: Swift.String? @objc public var phoneNumber: Swift.String?
@objc public var logo: UIKit.UIImage? @objc public var logo: UIKit.UIImage?
@objc override dynamic public init() @objc override dynamic public init()
@objc deinit @objc deinit
} }
@objc public enum MyIdDocumentType : Swift.Int { extension MyIdSDK.MyIdDocumentType : Swift.Equatable {}
case ID_CARD = 0 extension MyIdSDK.MyIdDocumentType : Swift.Hashable {}
case PASSPORT extension MyIdSDK.MyIdDocumentType : Swift.RawRepresentable {}
case DRIVER_LICENSE
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
extension MyIdSDK.JWK {
public subscript(parameter: Swift.String) -> Swift.String? {
get
}
}
extension MyIdSDK.JWK {
public func jsonString() -> Swift.String?
public func jsonData() -> Foundation.Data?
}
public struct JWE {
public let header: MyIdSDK.JWEHeader
public let encryptedKey: Foundation.Data
public let initializationVector: Foundation.Data
public let ciphertext: Foundation.Data
public let authenticationTag: Foundation.Data
public var compactSerializedString: Swift.String {
get
}
public var compactSerializedData: Foundation.Data {
get
}
public init<KeyType>(header: MyIdSDK.JWEHeader, payload: MyIdSDK.Payload, encrypter: MyIdSDK.Encrypter<KeyType>) throws
public init(compactSerialization: Swift.String) throws
public init(compactSerialization: Foundation.Data) throws
@available(*, deprecated, message: "Use `decrypt(using decrypter:)` instead")
public func decrypt<KeyType>(with key: KeyType) throws -> MyIdSDK.Payload
public func decrypt(using decrypter: MyIdSDK.Decrypter) throws -> MyIdSDK.Payload
}
extension MyIdSDK.JWE : MyIdSDK.CompactSerializable {
public func serialize(to serializer: inout any MyIdSDK.CompactSerializer)
}
extension MyIdSDK.JWE : MyIdSDK.CompactDeserializable {
public static var componentCount: Swift.Int {
get
}
public init(from deserializer: any MyIdSDK.CompactDeserializer) throws
}
@_inheritsConvenienceInitializers @objc public class MyIdClient : ObjectiveC.NSObject {
@objc public class func start(withConfig config: MyIdSDK.MyIdConfig, withDelegate delegate: any MyIdSDK.MyIdClientDelegate)
@objc override dynamic public init()
@objc deinit
}
public enum RSAKeyType {
case PUBLIC
case PRIVATE
public static func == (a: MyIdSDK.RSAKeyType, b: MyIdSDK.RSAKeyType) -> Swift.Bool
public func hash(into hasher: inout Swift.Hasher)
public var hashValue: Swift.Int {
get
}
}
public struct RSAKeyPairs {
public var privateKey: MyIdSDK.RSAKey
public var publicKey: MyIdSDK.RSAKey
}
public class RSAKey {
public var key: Security.SecKey
public var keyBase64String: Swift.String
public var data: Foundation.Data?
public var keyType: MyIdSDK.RSAKeyType!
public init(key: Security.SecKey, keyBase64String: Swift.String, keyType: MyIdSDK.RSAKeyType)
public init(base64String: Swift.String, keyType: MyIdSDK.RSAKeyType) throws
public static func base64StringWithoutPrefixAndSuffix(pemString: Swift.String) throws -> Swift.String
public func pemString() throws -> Swift.String
public func format(keyData: Foundation.Data, keyType: MyIdSDK.RSAKeyType) -> Swift.String
@objc deinit
}
@_inheritsConvenienceInitializers @objc public class MyIdAppearance : ObjectiveC.NSObject {
@objc public var primaryColor: UIKit.UIColor?
@objc public var secondaryColor: UIKit.UIColor?
@objc public var errorColor: UIKit.UIColor?
@objc public var primaryButtonColor: UIKit.UIColor?
@objc public var primaryButtonColorDisabled: UIKit.UIColor?
@objc public var primaryButtonTextColor: UIKit.UIColor?
@objc public var primaryButtonTextColorDisabled: UIKit.UIColor?
@objc public var buttonCornerRadius: Swift.Float
@objc override dynamic public init()
@objc deinit
}
@_inheritsConvenienceInitializers @objc public class MyIdResult : ObjectiveC.NSObject {
@objc public var image: UIKit.UIImage?
@objc public var code: Swift.String?
@objc public var comparisonValue: Swift.String?
@objc override dynamic public init()
@objc deinit
}
@objc public enum MyIdLocale : Swift.Int {
case RU = 0
case EN
case UZ
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
public struct Verifier {
public init?<KeyType>(verifyingAlgorithm: MyIdSDK.SignatureAlgorithm, key: KeyType)
}
extension MyIdSDK.Verifier {
@available(*, deprecated, message: "Use `init?(verifyingAlgorithm: SignatureAlgorithm, key: KeyType)` instead")
public init?<KeyType>(verifyingAlgorithm: MyIdSDK.SignatureAlgorithm, publicKey: KeyType)
}
public enum JWKKeyType : Swift.String, Swift.Codable {
case RSA
case OCT
case EC
public init?(rawValue: Swift.String)
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
public protocol JWK : Swift.Decodable, Swift.Encodable {
var keyType: MyIdSDK.JWKKeyType { get }
var parameters: [Swift.String : Swift.String] { get }
var requiredParameters: [Swift.String : Swift.String] { get }
subscript(parameter: Swift.String) -> Swift.String? { get }
init(data: Foundation.Data) throws
func jsonString() -> Swift.String?
func jsonData() -> Foundation.Data?
@available(iOS 11.0, *)
func thumbprint(algorithm: MyIdSDK.JWKThumbprintAlgorithm) throws -> Swift.String
@available(iOS 11.0, *)
func withThumbprintAsKeyId(algorithm: MyIdSDK.JWKThumbprintAlgorithm) throws -> Self
}
extension MyIdSDK.JWK {
@available(iOS 11.0, *)
public func thumbprint(algorithm: MyIdSDK.JWKThumbprintAlgorithm = .SHA256) throws -> Swift.String
}
public struct JWKSet {
public let keys: [any MyIdSDK.JWK]
public init(keys: [any MyIdSDK.JWK])
public init(data: Foundation.Data) throws
public func jsonString() -> Swift.String?
public func jsonData() -> Foundation.Data?
}
extension MyIdSDK.JWKSet : Swift.Collection {
public typealias ArrayType = [any MyIdSDK.JWK]
public typealias Element = MyIdSDK.JWKSet.ArrayType.Element
public typealias Index = MyIdSDK.JWKSet.ArrayType.Index
public typealias Iterator = MyIdSDK.JWKSet.ArrayType.Iterator
public var startIndex: MyIdSDK.JWKSet.Index {
get
}
public var endIndex: MyIdSDK.JWKSet.Index {
get
}
public subscript(index: MyIdSDK.JWKSet.Index) -> MyIdSDK.JWKSet.Element {
get
}
public func index(after index: MyIdSDK.JWKSet.Index) -> MyIdSDK.JWKSet.Index
public func makeIterator() -> Swift.IndexingIterator<MyIdSDK.JWKSet.ArrayType>
public typealias Indices = Swift.DefaultIndices<MyIdSDK.JWKSet>
public typealias SubSequence = Swift.Slice<MyIdSDK.JWKSet>
}
extension MyIdSDK.JWKSet : Swift.ExpressibleByArrayLiteral {
public typealias ArrayLiteralElement = MyIdSDK.JWKSet.Element
public init(arrayLiteral elements: MyIdSDK.JWKSet.ArrayLiteralElement...)
}
public typealias ECPublicKeyComponents = (crv: Swift.String, x: Foundation.Data, y: Foundation.Data)
public typealias ECPrivateKeyComponents = (crv: Swift.String, x: Foundation.Data, y: Foundation.Data, d: Foundation.Data)
public protocol ExpressibleAsECPublicKeyComponents {
static func representing(ecPublicKeyComponents components: MyIdSDK.ECPublicKeyComponents) throws -> Self
func ecPublicKeyComponents() throws -> MyIdSDK.ECPublicKeyComponents
}
public protocol ExpressibleAsECPrivateKeyComponents {
static func representing(ecPrivateKeyComponents components: MyIdSDK.ECPrivateKeyComponents) throws -> Self
func ecPrivateKeyComponents() throws -> MyIdSDK.ECPrivateKeyComponents
}
public struct ECPublicKey : MyIdSDK.JWK {
public let keyType: MyIdSDK.JWKKeyType
public let parameters: [Swift.String : Swift.String]
public var requiredParameters: [Swift.String : Swift.String] {
get
}
public let crv: MyIdSDK.ECCurveType
public let x: Swift.String
public let y: Swift.String
public init(crv: MyIdSDK.ECCurveType, x: Swift.String, y: Swift.String, additionalParameters parameters: [Swift.String : Swift.String] = [:])
public init(publicKey: any MyIdSDK.ExpressibleAsECPublicKeyComponents, additionalParameters parameters: [Swift.String : Swift.String] = [:]) throws
public init(data: Foundation.Data) throws
public func converted<T>(to type: T.Type) throws -> T where T : MyIdSDK.ExpressibleAsECPublicKeyComponents
@available(iOS 11.0, *)
public func withThumbprintAsKeyId(algorithm: MyIdSDK.JWKThumbprintAlgorithm = .SHA256) throws -> MyIdSDK.ECPublicKey
}
public struct ECPrivateKey : MyIdSDK.JWK {
public let keyType: MyIdSDK.JWKKeyType
public let parameters: [Swift.String : Swift.String]
public var requiredParameters: [Swift.String : Swift.String] {
get
}
public let crv: MyIdSDK.ECCurveType
public let x: Swift.String
public let y: Swift.String
public let privateKey: Swift.String
public init(crv: Swift.String, x: Swift.String, y: Swift.String, privateKey: Swift.String, additionalParameters parameters: [Swift.String : Swift.String] = [:]) throws
public init(privateKey: any MyIdSDK.ExpressibleAsECPrivateKeyComponents, additionalParameters parameters: [Swift.String : Swift.String] = [:]) throws
public init(data: Foundation.Data) throws
public func converted<T>(to type: T.Type) throws -> T where T : MyIdSDK.ExpressibleAsECPrivateKeyComponents
@available(iOS 11.0, *)
public func withThumbprintAsKeyId(algorithm: MyIdSDK.JWKThumbprintAlgorithm = .SHA256) throws -> MyIdSDK.ECPrivateKey
}
public typealias ECKeyPair = MyIdSDK.ECPrivateKey
public struct Signer<KeyType> {
public init?(signingAlgorithm: MyIdSDK.SignatureAlgorithm, key: KeyType)
}
extension MyIdSDK.Signer {
@available(*, deprecated, message: "Use `init?(signingAlgorithm: SignatureAlgorithm, key: KeyType)` instead")
public init?(signingAlgorithm: MyIdSDK.SignatureAlgorithm, privateKey: KeyType)
}
extension MyIdSDK.RSASignature.DigestType : Swift.Equatable {}
extension MyIdSDK.RSASignature.DigestType : Swift.Hashable {}
extension MyIdSDK.MyIdBuildMode : Swift.Equatable {} extension MyIdSDK.MyIdBuildMode : Swift.Equatable {}
extension MyIdSDK.MyIdBuildMode : Swift.Hashable {} extension MyIdSDK.MyIdBuildMode : Swift.Hashable {}
extension MyIdSDK.MyIdBuildMode : Swift.RawRepresentable {} extension MyIdSDK.MyIdBuildMode : Swift.RawRepresentable {}
extension MyIdSDK.JWKParameter : Swift.Equatable {}
extension MyIdSDK.JWKParameter : Swift.Hashable {}
extension MyIdSDK.JWKParameter : Swift.RawRepresentable {}
extension MyIdSDK.RSAParameter : Swift.Equatable {}
extension MyIdSDK.RSAParameter : Swift.Hashable {}
extension MyIdSDK.RSAParameter : Swift.RawRepresentable {}
extension MyIdSDK.SymmetricKeyParameter : Swift.Equatable {}
extension MyIdSDK.SymmetricKeyParameter : Swift.Hashable {}
extension MyIdSDK.SymmetricKeyParameter : Swift.RawRepresentable {}
extension MyIdSDK.ECParameter : Swift.Equatable {}
extension MyIdSDK.ECParameter : Swift.Hashable {}
extension MyIdSDK.ECParameter : Swift.RawRepresentable {}
extension MyIdSDK.SwiftyCryptoRSAKeySize : Swift.Equatable {}
extension MyIdSDK.SwiftyCryptoRSAKeySize : Swift.Hashable {}
extension MyIdSDK.SwiftyCryptoRSAKeySize : Swift.RawRepresentable {}
extension MyIdSDK.JWKThumbprintAlgorithm : Swift.Equatable {}
extension MyIdSDK.JWKThumbprintAlgorithm : Swift.Hashable {}
extension MyIdSDK.JWKThumbprintAlgorithm : Swift.RawRepresentable {}
extension MyIdSDK.ContentEncryptionAlgorithm : Swift.Equatable {}
extension MyIdSDK.ContentEncryptionAlgorithm : Swift.Hashable {}
extension MyIdSDK.ContentEncryptionAlgorithm : Swift.RawRepresentable {}
extension MyIdSDK.KeyManagementAlgorithm : Swift.Equatable {}
extension MyIdSDK.KeyManagementAlgorithm : Swift.Hashable {}
extension MyIdSDK.KeyManagementAlgorithm : Swift.RawRepresentable {}
extension MyIdSDK.MyIdResolution : Swift.Equatable {} extension MyIdSDK.MyIdResolution : Swift.Equatable {}
extension MyIdSDK.MyIdResolution : Swift.Hashable {} extension MyIdSDK.MyIdResolution : Swift.Hashable {}
extension MyIdSDK.MyIdResolution : Swift.RawRepresentable {} extension MyIdSDK.MyIdResolution : Swift.RawRepresentable {}
extension MyIdSDK.MyIdPresentationStyle : Swift.Equatable {}
extension MyIdSDK.MyIdPresentationStyle : Swift.Hashable {}
extension MyIdSDK.MyIdPresentationStyle : Swift.RawRepresentable {}
extension MyIdSDK.MyIdEntryType : Swift.Equatable {}
extension MyIdSDK.MyIdEntryType : Swift.Hashable {}
extension MyIdSDK.MyIdEntryType : Swift.RawRepresentable {}
extension MyIdSDK.MyIdCameraShape : Swift.Equatable {} extension MyIdSDK.MyIdCameraShape : Swift.Equatable {}
extension MyIdSDK.MyIdCameraShape : Swift.Hashable {} extension MyIdSDK.MyIdCameraShape : Swift.Hashable {}
extension MyIdSDK.MyIdCameraShape : Swift.RawRepresentable {} extension MyIdSDK.MyIdCameraShape : Swift.RawRepresentable {}
extension MyIdSDK.MyIdCameraSelector : Swift.Equatable {}
extension MyIdSDK.MyIdCameraSelector : Swift.Hashable {}
extension MyIdSDK.MyIdCameraSelector : Swift.RawRepresentable {}
extension MyIdSDK.MyIdResidency : Swift.Equatable {} extension MyIdSDK.MyIdResidency : Swift.Equatable {}
extension MyIdSDK.MyIdResidency : Swift.Hashable {} extension MyIdSDK.MyIdResidency : Swift.Hashable {}
extension MyIdSDK.MyIdResidency : Swift.RawRepresentable {} extension MyIdSDK.MyIdResidency : Swift.RawRepresentable {}
extension MyIdSDK.ECCurveType : Swift.Equatable {}
extension MyIdSDK.ECCurveType : Swift.Hashable {}
extension MyIdSDK.ECCurveType : Swift.RawRepresentable {}
extension MyIdSDK.SignatureAlgorithm : Swift.Equatable {}
extension MyIdSDK.SignatureAlgorithm : Swift.Hashable {}
extension MyIdSDK.SignatureAlgorithm : Swift.RawRepresentable {}
extension MyIdSDK.ECCompression : Swift.Equatable {}
extension MyIdSDK.ECCompression : Swift.Hashable {}
extension MyIdSDK.ECCompression : Swift.RawRepresentable {}
extension MyIdSDK.JWEHeader : MyIdSDK.DataConvertible {}
extension MyIdSDK.HMACAlgorithm : Swift.Equatable {}
extension MyIdSDK.HMACAlgorithm : Swift.Hashable {}
extension MyIdSDK.HMACAlgorithm : Swift.RawRepresentable {}
extension MyIdSDK.CompressionAlgorithm : Swift.Equatable {}
extension MyIdSDK.CompressionAlgorithm : Swift.Hashable {}
extension MyIdSDK.CompressionAlgorithm : Swift.RawRepresentable {}
extension MyIdSDK.MyIdEntryType : Swift.Equatable {}
extension MyIdSDK.MyIdEntryType : Swift.Hashable {}
extension MyIdSDK.MyIdEntryType : Swift.RawRepresentable {}
extension MyIdSDK.JWSHeader : MyIdSDK.DataConvertible {}
extension MyIdSDK.MyIdDocumentType : Swift.Equatable {}
extension MyIdSDK.MyIdDocumentType : Swift.Hashable {}
extension MyIdSDK.MyIdDocumentType : Swift.RawRepresentable {}
extension MyIdSDK.RSAKeyType : Swift.Equatable {}
extension MyIdSDK.RSAKeyType : Swift.Hashable {}
extension MyIdSDK.MyIdLocale : Swift.Equatable {} extension MyIdSDK.MyIdLocale : Swift.Equatable {}
extension MyIdSDK.MyIdLocale : Swift.Hashable {} extension MyIdSDK.MyIdLocale : Swift.Hashable {}
extension MyIdSDK.MyIdLocale : Swift.RawRepresentable {} extension MyIdSDK.MyIdLocale : Swift.RawRepresentable {}
extension MyIdSDK.JWKKeyType : Swift.Equatable {}
extension MyIdSDK.JWKKeyType : Swift.Hashable {}
extension MyIdSDK.JWKKeyType : Swift.RawRepresentable {}
...@@ -15,116 +15,46 @@ import LocalAuthentication ...@@ -15,116 +15,46 @@ import LocalAuthentication
@_exported import MyIdSDK @_exported import MyIdSDK
import Security import Security
import Swift import Swift
import SwiftUI
import UIKit import UIKit
import Vision import Vision
import _Concurrency import _Concurrency
import _StringProcessing import _StringProcessing
public protocol DataConvertible { @_inheritsConvenienceInitializers @objc public class MyIdResult : ObjectiveC.NSObject {
init?(_ data: Foundation.Data) @objc public var image: UIKit.UIImage?
func data() -> Foundation.Data @objc public var code: Swift.String?
} @objc public var comparisonValue: Swift.String?
public struct Payload : MyIdSDK.DataConvertible { @objc override dynamic public init()
public init(_ payload: Foundation.Data) @objc deinit
public func data() -> Foundation.Data
} }
public protocol Message { extension Swift.String : Swift.Error {
var data: Foundation.Data { get }
var base64String: Swift.String { get }
init(data: Foundation.Data)
init(base64String: Swift.String) throws
} }
extension MyIdSDK.Message { @objc public enum MyIdDocumentType : Swift.Int {
public var base64String: Swift.String { case ID_CARD = 0
case PASSPORT
case DRIVER_LICENSE
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get get
} }
} }
extension Foundation.Data : MyIdSDK.ExpressibleAsRSAPublicKeyComponents { @_inheritsConvenienceInitializers @available(iOS 13.0, *)
public static func representing(rsaPublicKeyComponents components: MyIdSDK.RSAPublicKeyComponents) throws -> Foundation.Data @objc public class MyIdViewModel : ObjectiveC.NSObject, Combine.ObservableObject {
public func rsaPublicKeyComponents() throws -> MyIdSDK.RSAPublicKeyComponents @objc public func startMyId(clientId: Swift.String, clientHash: Swift.String, clientHashId: Swift.String, passportData: Swift.String? = nil, dateOfBirth: Swift.String? = nil, minAge: Swift.Int = 16, sdkHash: Swift.String? = nil, externalId: Swift.String? = nil, threshold: Swift.Float = 0.5, buildMode: MyIdSDK.MyIdBuildMode = MyIdBuildMode.PRODUCTION, entryType: MyIdSDK.MyIdEntryType = MyIdEntryType.AUTH, residency: MyIdSDK.MyIdResidency = MyIdResidency.RESIDENT, locale: MyIdSDK.MyIdLocale = MyIdLocale.RU, cameraShape: MyIdSDK.MyIdCameraShape = MyIdCameraShape.CIRCLE, resolution: MyIdSDK.MyIdResolution = MyIdResolution.RESOLUTION_480, cameraSelector: MyIdSDK.MyIdCameraSelector = MyIdCameraSelector.FRONT, presentationStyle: MyIdSDK.MyIdPresentationStyle = MyIdPresentationStyle.FULL, organizationDetails: MyIdSDK.MyIdOrganizationDetails? = nil, appearance: MyIdSDK.MyIdAppearance? = nil, withPhoto: Swift.Bool = false)
} @objc override dynamic public init()
public class RSASignature { public typealias ObjectWillChangePublisher = Combine.ObservableObjectPublisher
public enum DigestType {
case sha1
case sha224
case sha256
case sha384
case sha512
public static func == (a: MyIdSDK.RSASignature.DigestType, b: MyIdSDK.RSASignature.DigestType) -> Swift.Bool
public func hash(into hasher: inout Swift.Hasher)
public var hashValue: Swift.Int {
get
}
}
final public let data: Foundation.Data
public init(data: Foundation.Data)
convenience public init(base64Encoded base64String: Swift.String) throws
public var base64String: Swift.String {
get
}
@objc deinit @objc deinit
} }
public enum JOSESwiftError : Swift.Error { @available(iOS 13.0, *)
case signingFailed(description: Swift.String) @objc extension MyIdSDK.MyIdViewModel : MyIdSDK.MyIdClientDelegate {
case verifyingFailed(description: Swift.String) @objc dynamic public func onSuccess(result: MyIdSDK.MyIdResult)
case signatureInvalid @objc dynamic public func onError(exception: MyIdSDK.MyIdException)
case encryptingFailed(description: Swift.String) @objc dynamic public func onUserExited()
case decryptingFailed(description: Swift.String)
case wrongDataEncoding(data: Foundation.Data)
case invalidCompactSerializationComponentCount(count: Swift.Int)
case componentNotValidBase64URL(component: Swift.String)
case componentCouldNotBeInitializedFromData(data: Foundation.Data)
case couldNotConstructJWK
case modulusNotBase64URLUIntEncoded
case exponentNotBase64URLUIntEncoded
case privateExponentNotBase64URLUIntEncoded
case symmetricKeyNotBase64URLEncoded
case xNotBase64URLUIntEncoded
case yNotBase64URLUIntEncoded
case privateKeyNotBase64URLUIntEncoded
case invalidCurveType
case compressedCurvePointsUnsupported
case invalidCurvePointOctetLength
case localAuthenticationFailed(errorCode: Swift.Int)
case compressionFailed
case decompressionFailed
case compressionAlgorithmNotSupported
case rawDataMustBeGreaterThanZero
case compressedDataMustBeGreaterThanZero
case thumbprintSerialization
}
extension Foundation.Data : MyIdSDK.ExpressibleAsSymmetricKeyComponents {
public static func representing(symmetricKeyComponents components: MyIdSDK.SymmetricKeyComponents) throws -> Foundation.Data
public func symmetricKeyComponents() throws -> MyIdSDK.SymmetricKeyComponents
} }
public typealias SymmetricKeyComponents = (Foundation.Data) @_inheritsConvenienceInitializers @objc public class MyIdClient : ObjectiveC.NSObject {
public protocol ExpressibleAsSymmetricKeyComponents { @objc public class func start(withConfig config: MyIdSDK.MyIdConfig, withDelegate delegate: any MyIdSDK.MyIdClientDelegate)
static func representing(symmetricKeyComponents components: MyIdSDK.SymmetricKeyComponents) throws -> Self @objc public class func run(withConfig config: MyIdSDK.MyIdConfig, withDelegate delegate: any MyIdSDK.MyIdClientDelegate) -> UIKit.UIViewController
func symmetricKeyComponents() throws -> MyIdSDK.SymmetricKeyComponents
}
public struct SymmetricKey : MyIdSDK.JWK {
public let keyType: MyIdSDK.JWKKeyType
public let parameters: [Swift.String : Swift.String]
public var requiredParameters: [Swift.String : Swift.String] {
get
}
public let key: Swift.String
public init(key: Foundation.Data, additionalParameters parameters: [Swift.String : Swift.String] = [:])
public init(key: any MyIdSDK.ExpressibleAsSymmetricKeyComponents, additionalParameters parameters: [Swift.String : Swift.String] = [:]) throws
public init(data: Foundation.Data) throws
public func converted<T>(to type: T.Type) throws -> T where T : MyIdSDK.ExpressibleAsSymmetricKeyComponents
@available(iOS 11.0, *)
public func withThumbprintAsKeyId(algorithm: MyIdSDK.JWKThumbprintAlgorithm = .SHA256) throws -> MyIdSDK.SymmetricKey
}
@_inheritsConvenienceInitializers @objc public class MyIdGenerator : ObjectiveC.NSObject {
@objc public class func hash(payload: Swift.String, clientHash: Swift.String, clientHashId: Swift.String) -> Swift.String?
@objc public class func device() -> Swift.String
@objc public class func deviceModel() -> Swift.String?
@objc public class func deviceName() -> Swift.String?
@objc public class func systemName() -> Swift.String?
@objc public class func systemVersion() -> Swift.String?
@objc public class func isPhone() -> Swift.Bool
@objc public class func isPad() -> Swift.Bool
@objc public class func isSimulator() -> Swift.Bool
@objc override dynamic public init() @objc override dynamic public init()
@objc deinit @objc deinit
} }
...@@ -137,136 +67,43 @@ public struct SymmetricKey : MyIdSDK.JWK { ...@@ -137,136 +67,43 @@ public struct SymmetricKey : MyIdSDK.JWK {
get get
} }
} }
public enum SecureRandomError : Swift.Error { @objc public enum MyIdResolution : Swift.Int {
case failed(status: Darwin.OSStatus) case RESOLUTION_480 = 0
case countMustBeGreaterThanZero case RESOLUTION_720
} public init?(rawValue: Swift.Int)
public struct SecureRandom { public typealias RawValue = Swift.Int
public static func generate(count: Swift.Int) throws -> Foundation.Data public var rawValue: Swift.Int {
}
public enum JWKParameter : Swift.String, Swift.CodingKey {
case keyType
case keyUse
case keyOperations
case algorithm
case keyIdentifier
case X509URL
case X509CertificateChain
case X509CertificateSHA1Thumbprint
case X509CertificateSHA256Thumbprint
public init?(rawValue: Swift.String)
public init?(stringValue: Swift.String)
public init?(intValue: Swift.Int)
public typealias RawValue = Swift.String
public var intValue: Swift.Int? {
get
}
public var rawValue: Swift.String {
get
}
public var stringValue: Swift.String {
get
}
}
public enum RSAParameter : Swift.String, Swift.CodingKey {
case modulus
case exponent
case privateExponent
public init?(rawValue: Swift.String)
public init?(stringValue: Swift.String)
public init?(intValue: Swift.Int)
public typealias RawValue = Swift.String
public var intValue: Swift.Int? {
get
}
public var rawValue: Swift.String {
get
}
public var stringValue: Swift.String {
get
}
}
public enum SymmetricKeyParameter : Swift.String, Swift.CodingKey {
case key
public init?(rawValue: Swift.String)
public init?(stringValue: Swift.String)
public init?(intValue: Swift.Int)
public typealias RawValue = Swift.String
public var intValue: Swift.Int? {
get
}
public var rawValue: Swift.String {
get
}
public var stringValue: Swift.String {
get
}
}
public enum ECParameter : Swift.String, Swift.CodingKey {
case curve
case x
case y
case privateKey
public init?(rawValue: Swift.String)
public init?(stringValue: Swift.String)
public init?(intValue: Swift.Int)
public typealias RawValue = Swift.String
public var intValue: Swift.Int? {
get
}
public var rawValue: Swift.String {
get
}
public var stringValue: Swift.String {
get get
} }
} }
public protocol CompactSerializable { @objc public enum MyIdPresentationStyle : Swift.Int {
func serialize(to serializer: inout any MyIdSDK.CompactSerializer) case FULL = 0
} case SHEET
public protocol CompactSerializer {
var components: [any MyIdSDK.DataConvertible] { get }
mutating func serialize<T>(_ object: T) where T : MyIdSDK.DataConvertible
}
public struct JOSESerializer {
public func serialize<T>(compact object: T) -> Swift.String where T : MyIdSDK.CompactSerializable
}
public enum SwiftyCryptoRSAKeySize : Swift.Int {
case RSAKey64
case RSAKey128
case RSAKey256
case RSAKey512
public init?(rawValue: Swift.Int) public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int public typealias RawValue = Swift.Int
public var rawValue: Swift.Int { public var rawValue: Swift.Int {
get get
} }
} }
@objc @_inheritsConvenienceInitializers public class RSAKeyFactory : ObjectiveC.NSObject { @_inheritsConvenienceInitializers @objc public class MyIdAppearance : ObjectiveC.NSObject {
public static let shared: MyIdSDK.RSAKeyFactory @objc public var primaryColor: UIKit.UIColor?
public func generateKeyPair(keySize: MyIdSDK.SwiftyCryptoRSAKeySize) -> MyIdSDK.RSAKeyPairs? @objc public var errorColor: UIKit.UIColor?
@objc public var primaryButtonColor: UIKit.UIColor?
@objc public var primaryButtonColorDisabled: UIKit.UIColor?
@objc public var primaryButtonTextColor: UIKit.UIColor?
@objc public var primaryButtonTextColorDisabled: UIKit.UIColor?
@objc public var buttonCornerRadius: Swift.Float
@objc override dynamic public init() @objc override dynamic public init()
@objc deinit @objc deinit
} }
@objc public protocol MyIdClientDelegate { @objc public enum MyIdEntryType : Swift.Int {
@objc func onSuccess(result: MyIdSDK.MyIdResult) case AUTH = 0
@objc func onError(exception: MyIdSDK.MyIdException) case FACE
@objc func onUserExited() public init?(rawValue: Swift.Int)
} public typealias RawValue = Swift.Int
public struct Decrypter { public var rawValue: Swift.Int {
public init?<KeyType>(keyManagementAlgorithm: MyIdSDK.KeyManagementAlgorithm, contentEncryptionAlgorithm: MyIdSDK.ContentEncryptionAlgorithm, decryptionKey: KeyType) get
} }
extension MyIdSDK.Decrypter {
@available(*, deprecated, message: "Use `init?(keyManagementAlgorithm:contentEncryptionAlgorithm:decryptionKey:)` instead")
public init?<KeyType>(keyDecryptionAlgorithm: MyIdSDK.AsymmetricKeyAlgorithm, decryptionKey key: KeyType, contentDecryptionAlgorithm: MyIdSDK.SymmetricKeyAlgorithm)
@available(*, deprecated, message: "Use `init?(keyManagementAlgorithm:contentEncryptionAlgorithm:decryptionKey:)` instead")
public init?<KeyType>(keyDecryptionAlgorithm: MyIdSDK.AsymmetricKeyAlgorithm, keyDecryptionKey kdk: KeyType, contentDecryptionAlgorithm: MyIdSDK.SymmetricKeyAlgorithm)
}
@available(*, deprecated, message: "This type will be removed with the next major release.")
public struct DecryptionContext {
}
@available(*, deprecated, message: "This type will be removed with the next major release.")
public struct SymmetricDecryptionContext {
} }
@_inheritsConvenienceInitializers @objc public class MyIdConfig : ObjectiveC.NSObject { @_inheritsConvenienceInitializers @objc public class MyIdConfig : ObjectiveC.NSObject {
@objc public var clientId: Swift.String? @objc public var clientId: Swift.String?
...@@ -274,6 +111,7 @@ public struct SymmetricDecryptionContext { ...@@ -274,6 +111,7 @@ public struct SymmetricDecryptionContext {
@objc public var clientHashId: Swift.String? @objc public var clientHashId: Swift.String?
@objc public var passportData: Swift.String? @objc public var passportData: Swift.String?
@objc public var dateOfBirth: Swift.String? @objc public var dateOfBirth: Swift.String?
@objc public var minAge: Swift.Int
@objc public var sdkHash: Swift.String? @objc public var sdkHash: Swift.String?
@objc public var externalId: Swift.String? @objc public var externalId: Swift.String?
@objc public var threshold: Swift.Float @objc public var threshold: Swift.Float
...@@ -283,44 +121,18 @@ public struct SymmetricDecryptionContext { ...@@ -283,44 +121,18 @@ public struct SymmetricDecryptionContext {
@objc public var locale: MyIdSDK.MyIdLocale @objc public var locale: MyIdSDK.MyIdLocale
@objc public var cameraShape: MyIdSDK.MyIdCameraShape @objc public var cameraShape: MyIdSDK.MyIdCameraShape
@objc public var resolution: MyIdSDK.MyIdResolution @objc public var resolution: MyIdSDK.MyIdResolution
@objc public var cameraSelector: MyIdSDK.MyIdCameraSelector
@objc public var presentationStyle: MyIdSDK.MyIdPresentationStyle
@objc public var organizationDetails: MyIdSDK.MyIdOrganizationDetails? @objc public var organizationDetails: MyIdSDK.MyIdOrganizationDetails?
@objc public var appearance: MyIdSDK.MyIdAppearance? @objc public var appearance: MyIdSDK.MyIdAppearance?
@objc public var withPhoto: Swift.Bool @objc public var withPhoto: Swift.Bool
@objc override dynamic public init() @objc override dynamic public init()
@objc deinit @objc deinit
} }
extension MyIdSDK.RSAPublicKey : Swift.Encodable { @objc public protocol MyIdClientDelegate {
public func encode(to encoder: any Swift.Encoder) throws @objc func onSuccess(result: MyIdSDK.MyIdResult)
} @objc func onError(exception: MyIdSDK.MyIdException)
extension MyIdSDK.RSAPublicKey : Swift.Decodable { @objc func onUserExited()
public init(from decoder: any Swift.Decoder) throws
}
extension MyIdSDK.RSAPrivateKey : Swift.Encodable {
public func encode(to encoder: any Swift.Encoder) throws
}
extension MyIdSDK.RSAPrivateKey : Swift.Decodable {
public init(from decoder: any Swift.Decoder) throws
}
extension Foundation.Data : MyIdSDK.ExpressibleAsECPublicKeyComponents {
public static func representing(ecPublicKeyComponents components: MyIdSDK.ECPublicKeyComponents) throws -> Foundation.Data
public func ecPublicKeyComponents() throws -> MyIdSDK.ECPublicKeyComponents
}
public protocol CompactDeserializable {
static var componentCount: Swift.Int { get }
init(from deserializer: any MyIdSDK.CompactDeserializer) throws
}
public protocol CompactDeserializer {
func deserialize<T>(_ type: T.Type, at index: Swift.Int) throws -> T where T : MyIdSDK.DataConvertible
}
public struct JOSEDeserializer {
public init()
public func deserialize<T>(_ type: T.Type, fromCompactSerialization compactSerialization: Swift.String) throws -> T where T : MyIdSDK.CompactDeserializable
}
public enum ComponentCompactSerializedIndex {
}
extension Foundation.Data : MyIdSDK.ExpressibleAsECPrivateKeyComponents {
public static func representing(ecPrivateKeyComponents components: MyIdSDK.ECPrivateKeyComponents) throws -> Foundation.Data
public func ecPrivateKeyComponents() throws -> MyIdSDK.ECPrivateKeyComponents
} }
@_inheritsConvenienceInitializers @objc public class MyIdException : ObjectiveC.NSObject { @_inheritsConvenienceInitializers @objc public class MyIdException : ObjectiveC.NSObject {
@objc public var message: Swift.String? @objc public var message: Swift.String?
...@@ -328,97 +140,37 @@ extension Foundation.Data : MyIdSDK.ExpressibleAsECPrivateKeyComponents { ...@@ -328,97 +140,37 @@ extension Foundation.Data : MyIdSDK.ExpressibleAsECPrivateKeyComponents {
@objc override dynamic public init() @objc override dynamic public init()
@objc deinit @objc deinit
} }
@objc public enum MyIdResolution : Swift.Int { @_inheritsConvenienceInitializers @objc public class MyIdGenerator : ObjectiveC.NSObject {
case RESOLUTION_480 = 0 @objc public class func hash(payload: Swift.String, clientHash: Swift.String, clientHashId: Swift.String) -> Swift.String?
case RESOLUTION_720 @objc public class func device() -> Swift.String
@objc public class func deviceModel() -> Swift.String?
@objc public class func deviceName() -> Swift.String?
@objc public class func systemName() -> Swift.String?
@objc public class func systemVersion() -> Swift.String?
@objc public class func isPhone() -> Swift.Bool
@objc public class func isPad() -> Swift.Bool
@objc public class func isSimulator() -> Swift.Bool
@objc override dynamic public init()
@objc deinit
}
@objc public enum MyIdCameraShape : Swift.Int {
case ELLIPSE = 0
case CIRCLE
public init?(rawValue: Swift.Int) public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int public typealias RawValue = Swift.Int
public var rawValue: Swift.Int { public var rawValue: Swift.Int {
get get
} }
} }
extension Foundation.Data { @objc public enum MyIdCameraSelector : Swift.Int {
public init?(base64URLEncoded base64URLString: Swift.String) case FRONT = 0
public init?(base64URLEncoded base64URLData: Foundation.Data) case BACK
public func base64URLEncodedString() -> Swift.String
public func base64URLEncodedData() -> Foundation.Data
}
extension Foundation.Data : MyIdSDK.DataConvertible {
public init(_ data: Foundation.Data)
public func data() -> Foundation.Data
}
public typealias RSAPublicKeyComponents = (modulus: Foundation.Data, exponent: Foundation.Data)
public typealias RSAPrivateKeyComponents = (modulus: Foundation.Data, exponent: Foundation.Data, privateExponent: Foundation.Data)
public protocol ExpressibleAsRSAPublicKeyComponents {
static func representing(rsaPublicKeyComponents components: MyIdSDK.RSAPublicKeyComponents) throws -> Self
func rsaPublicKeyComponents() throws -> MyIdSDK.RSAPublicKeyComponents
}
public protocol ExpressibleAsRSAPrivateKeyComponents {
static func representing(rsaPrivateKeyComponents components: MyIdSDK.RSAPrivateKeyComponents) throws -> Self
func rsaPrivateKeyComponents() throws -> MyIdSDK.RSAPrivateKeyComponents
}
public struct RSAPublicKey : MyIdSDK.JWK {
public let keyType: MyIdSDK.JWKKeyType
public let parameters: [Swift.String : Swift.String]
public var requiredParameters: [Swift.String : Swift.String] {
get
}
public let modulus: Swift.String
public let exponent: Swift.String
public init(modulus: Swift.String, exponent: Swift.String, additionalParameters parameters: [Swift.String : Swift.String] = [:])
public init(publicKey: any MyIdSDK.ExpressibleAsRSAPublicKeyComponents, additionalParameters parameters: [Swift.String : Swift.String] = [:]) throws
public init(data: Foundation.Data) throws
public func converted<T>(to type: T.Type) throws -> T where T : MyIdSDK.ExpressibleAsRSAPublicKeyComponents
@available(iOS 11.0, *)
public func withThumbprintAsKeyId(algorithm: MyIdSDK.JWKThumbprintAlgorithm = .SHA256) throws -> MyIdSDK.RSAPublicKey
}
public struct RSAPrivateKey : MyIdSDK.JWK {
public let keyType: MyIdSDK.JWKKeyType
public let parameters: [Swift.String : Swift.String]
public var requiredParameters: [Swift.String : Swift.String] {
get
}
public let modulus: Swift.String
public let exponent: Swift.String
public let privateExponent: Swift.String
public init(modulus: Swift.String, exponent: Swift.String, privateExponent: Swift.String, additionalParameters parameters: [Swift.String : Swift.String] = [:])
public init(privateKey: any MyIdSDK.ExpressibleAsRSAPrivateKeyComponents, additionalParameters parameters: [Swift.String : Swift.String] = [:]) throws
public init(data: Foundation.Data) throws
public func converted<T>(to type: T.Type) throws -> T where T : MyIdSDK.ExpressibleAsRSAPrivateKeyComponents
@available(iOS 11.0, *)
public func withThumbprintAsKeyId(algorithm: MyIdSDK.JWKThumbprintAlgorithm = .SHA256) throws -> MyIdSDK.RSAPrivateKey
}
public typealias RSAKeyPair = MyIdSDK.RSAPrivateKey
@objc public enum MyIdCameraShape : Swift.Int {
case ELLIPSE = 0
case CIRCLE
public init?(rawValue: Swift.Int) public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int public typealias RawValue = Swift.Int
public var rawValue: Swift.Int { public var rawValue: Swift.Int {
get get
} }
} }
extension Swift.String : Swift.Error {
}
extension MyIdSDK.SymmetricKey : Swift.Encodable {
public func encode(to encoder: any Swift.Encoder) throws
}
extension MyIdSDK.SymmetricKey : Swift.Decodable {
public init(from decoder: any Swift.Decoder) throws
}
public class RSAMessage : MyIdSDK.Message {
public var data: Foundation.Data
public var base64String: Swift.String
required public init(data: Foundation.Data)
required convenience public init(base64String: Swift.String) throws
public func sign(signingKey: MyIdSDK.RSAKey, digestType: MyIdSDK.RSASignature.DigestType) throws -> MyIdSDK.RSASignature
public func verify(verifyKey: MyIdSDK.RSAKey, signature: MyIdSDK.RSASignature, digestType: MyIdSDK.RSASignature.DigestType) throws -> Swift.Bool
@objc deinit
}
extension Security.SecKey : MyIdSDK.ExpressibleAsECPublicKeyComponents {
public static func representing(ecPublicKeyComponents components: MyIdSDK.ECPublicKeyComponents) throws -> Self
public func ecPublicKeyComponents() throws -> MyIdSDK.ECPublicKeyComponents
}
@objc public enum MyIdResidency : Swift.Int { @objc public enum MyIdResidency : Swift.Int {
case USER_DEFINED = 0 case USER_DEFINED = 0
case RESIDENT case RESIDENT
...@@ -429,640 +181,46 @@ extension Security.SecKey : MyIdSDK.ExpressibleAsECPublicKeyComponents { ...@@ -429,640 +181,46 @@ extension Security.SecKey : MyIdSDK.ExpressibleAsECPublicKeyComponents {
get get
} }
} }
public protocol CommonHeaderParameterSpace { @objc public enum MyIdLocale : Swift.Int {
var jku: Foundation.URL? { get set } case RU = 0
var jwk: Swift.String? { get set } case EN
var jwkTyped: (any MyIdSDK.JWK)? { get set } case UZ
var kid: Swift.String? { get set }
var x5u: Foundation.URL? { get set }
var x5c: [Swift.String]? { get set }
var x5t: Swift.String? { get set }
var x5tS256: Swift.String? { get set }
var typ: Swift.String? { get set }
var cty: Swift.String? { get set }
var crit: [Swift.String]? { get set }
}
public enum ECCurveType : Swift.String, Swift.Codable {
case P256
case P384
case P521
public init?(rawValue: Swift.String)
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
public enum ECCompression : Swift.UInt8 {
case CompressedYEven
case CompressedYOdd
case Uncompressed
case HybridYEven
case HybridYOdd
public init?(rawValue: Swift.UInt8)
public typealias RawValue = Swift.UInt8
public var rawValue: Swift.UInt8 {
get
}
}
public struct JWEHeader {
public init(keyManagementAlgorithm: MyIdSDK.KeyManagementAlgorithm, contentEncryptionAlgorithm: MyIdSDK.ContentEncryptionAlgorithm)
public init(parameters: [Swift.String : Any]) throws
}
extension MyIdSDK.JWEHeader {
public var keyManagementAlgorithm: MyIdSDK.KeyManagementAlgorithm? {
get
}
public var contentEncryptionAlgorithm: MyIdSDK.ContentEncryptionAlgorithm? {
get
}
public var compressionAlgorithm: MyIdSDK.CompressionAlgorithm? {
get
}
public var zip: Swift.String? {
get
set
}
}
extension MyIdSDK.JWEHeader : MyIdSDK.CommonHeaderParameterSpace {
public var jku: Foundation.URL? {
get
set
}
public var jwk: Swift.String? {
get
set
}
public var jwkTyped: (any MyIdSDK.JWK)? {
get
set
}
public var kid: Swift.String? {
get
set
}
public var x5u: Foundation.URL? {
get
set
}
public var x5c: [Swift.String]? {
get
set
}
public var x5t: Swift.String? {
get
set
}
public var x5tS256: Swift.String? {
get
set
}
public var typ: Swift.String? {
get
set
}
public var cty: Swift.String? {
get
set
}
public var crit: [Swift.String]? {
get
set
}
}
extension MyIdSDK.JWEHeader {
@available(*, deprecated, message: "Use `JWEHeader.keyManagementAlgorithm` instead")
public var algorithm: MyIdSDK.AsymmetricKeyAlgorithm? {
get
}
@available(*, deprecated, message: "Use `JWEHeader.contentEncryptionAlgorithm` instead")
public var encryptionAlgorithm: MyIdSDK.SymmetricKeyAlgorithm? {
get
}
@available(*, deprecated, message: "Use `init(keyManagementAlgorithm:contentEncryptionAlgorithm` instead")
public init(algorithm: MyIdSDK.AsymmetricKeyAlgorithm, encryptionAlgorithm: MyIdSDK.SymmetricKeyAlgorithm)
}
public struct Encrypter<KeyType> {
public init?(keyManagementAlgorithm: MyIdSDK.KeyManagementAlgorithm, contentEncryptionAlgorithm: MyIdSDK.ContentEncryptionAlgorithm, encryptionKey: KeyType)
}
extension MyIdSDK.Encrypter {
@available(*, deprecated, message: "Use `init?(keyManagementAlgorithm:contentEncryptionAlgorithm:encryptionKey:)` instead")
public init?(keyEncryptionAlgorithm: MyIdSDK.AsymmetricKeyAlgorithm, encryptionKey key: KeyType, contentEncyptionAlgorithm: MyIdSDK.SymmetricKeyAlgorithm)
@available(*, deprecated, message: "Use `init?(keyManagementAlgorithm:contentEncryptionAlgorithm:encryptionKey:)` instead")
public init?(keyEncryptionAlgorithm: MyIdSDK.AsymmetricKeyAlgorithm, keyEncryptionKey kek: KeyType, contentEncyptionAlgorithm: MyIdSDK.SymmetricKeyAlgorithm)
}
@available(*, deprecated, message: "This type will be removed with the next major release.")
public struct EncryptionContext {
}
@available(*, deprecated, message: "This type will be removed with the next major release.")
public struct SymmetricEncryptionContext {
}
public struct JWS {
public let header: MyIdSDK.JWSHeader
public let payload: MyIdSDK.Payload
public let signature: Foundation.Data
public var compactSerializedString: Swift.String {
get
}
public var compactSerializedData: Foundation.Data {
get
}
public init<KeyType>(header: MyIdSDK.JWSHeader, payload: MyIdSDK.Payload, signer: MyIdSDK.Signer<KeyType>) throws
public init(compactSerialization: Swift.String) throws
public init(compactSerialization: Foundation.Data) throws
@available(*, deprecated, message: "Use `isValid(for verifier:)` instead")
public func isValid<KeyType>(for publicKey: KeyType) -> Swift.Bool
@available(*, deprecated, message: "Use `validate(using verifier:)` instead")
public func validate<KeyType>(with publicKey: KeyType) throws -> MyIdSDK.JWS
public func validate(using verifier: MyIdSDK.Verifier) throws -> MyIdSDK.JWS
public func isValid(for verifier: MyIdSDK.Verifier) -> Swift.Bool
}
extension MyIdSDK.JWS : MyIdSDK.CompactSerializable {
public func serialize(to serializer: inout any MyIdSDK.CompactSerializer)
}
extension MyIdSDK.JWS : MyIdSDK.CompactDeserializable {
public static var componentCount: Swift.Int {
get
}
public init(from deserializer: any MyIdSDK.CompactDeserializer) throws
}
extension Security.SecKey : MyIdSDK.ExpressibleAsECPrivateKeyComponents {
public static func representing(ecPrivateKeyComponents components: MyIdSDK.ECPrivateKeyComponents) throws -> Self
public func ecPrivateKeyComponents() throws -> MyIdSDK.ECPrivateKeyComponents
}
public enum SignatureAlgorithm : Swift.String {
case HS256
case HS384
case HS512
case RS256
case RS384
case RS512
@available(iOS 11, *)
case PS256
@available(iOS 11, *)
case PS384
@available(iOS 11, *)
case PS512
case ES256
case ES384
case ES512
public init?(rawValue: Swift.String)
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
public enum KeyManagementAlgorithm : Swift.String, Swift.CaseIterable {
case RSA1_5
case RSAOAEP
case RSAOAEP256
case A128KW
case A192KW
case A256KW
case direct
public init?(rawValue: Swift.String)
public typealias AllCases = [MyIdSDK.KeyManagementAlgorithm]
public typealias RawValue = Swift.String
public static var allCases: [MyIdSDK.KeyManagementAlgorithm] {
get
}
public var rawValue: Swift.String {
get
}
}
public enum ContentEncryptionAlgorithm : Swift.String {
case A256CBCHS512
case A128CBCHS256
public init?(rawValue: Swift.String)
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
public enum HMACAlgorithm : Swift.String {
case SHA512
case SHA384
case SHA256
public init?(rawValue: Swift.String)
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
public enum JWKThumbprintAlgorithm : Swift.String {
case SHA256
public init?(rawValue: Swift.String)
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
public enum CompressionAlgorithm : Swift.String {
case DEFLATE
case NONE
public init?(rawValue: Swift.String)
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
@available(*, deprecated, message: "Use `KeyManagementAlgorithm` instead")
public typealias AsymmetricKeyAlgorithm = MyIdSDK.KeyManagementAlgorithm
@available(*, deprecated, message: "Use `ContentEncryptionAlgorithm` instead")
public typealias SymmetricKeyAlgorithm = MyIdSDK.ContentEncryptionAlgorithm
@objc public enum MyIdEntryType : Swift.Int {
case AUTH = 0
case FACE
public init?(rawValue: Swift.Int) public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int public typealias RawValue = Swift.Int
public var rawValue: Swift.Int { public var rawValue: Swift.Int {
get get
} }
} }
extension Security.SecKey : MyIdSDK.ExpressibleAsRSAPublicKeyComponents {
public static func representing(rsaPublicKeyComponents components: MyIdSDK.RSAPublicKeyComponents) throws -> Self
public func rsaPublicKeyComponents() throws -> MyIdSDK.RSAPublicKeyComponents
}
extension MyIdSDK.JWKSet : Swift.Encodable {
public func encode(to encoder: any Swift.Encoder) throws
}
extension MyIdSDK.JWKSet : Swift.Decodable {
public init(from decoder: any Swift.Decoder) throws
}
public enum SwiftyCryptoError : Swift.Error {
case invalidBase64String
case invalidKeyFormat
case invalidAsn1Structure
case asn1ParsingFailed
case invalidAsn1RootNode
case tagEncodingFailed
case keyCreateFailed(error: CoreFoundation.CFError?)
case keyAddFailed(status: Darwin.OSStatus)
case keyCopyFailed(status: Darwin.OSStatus)
case invalidDigestSize(digestSize: Swift.Int, maxChunkSize: Swift.Int)
case signatureCreateFailed(status: Darwin.OSStatus)
case signatureVerifyFailed(status: Darwin.OSStatus)
case keyRepresentationFailed(error: CoreFoundation.CFError?)
}
public struct JWSHeader {
public init(algorithm: MyIdSDK.SignatureAlgorithm)
public init(parameters: [Swift.String : Any]) throws
}
extension MyIdSDK.JWSHeader {
public var algorithm: MyIdSDK.SignatureAlgorithm? {
get
}
}
extension MyIdSDK.JWSHeader : MyIdSDK.CommonHeaderParameterSpace {
public var jku: Foundation.URL? {
get
set
}
public var jwk: Swift.String? {
get
set
}
public var jwkTyped: (any MyIdSDK.JWK)? {
get
set
}
public var kid: Swift.String? {
get
set
}
public var x5u: Foundation.URL? {
get
set
}
public var x5c: [Swift.String]? {
get
set
}
public var x5t: Swift.String? {
get
set
}
public var x5tS256: Swift.String? {
get
set
}
public var typ: Swift.String? {
get
set
}
public var cty: Swift.String? {
get
set
}
public var crit: [Swift.String]? {
get
set
}
}
extension MyIdSDK.ECPublicKey : Swift.Encodable {
public func encode(to encoder: any Swift.Encoder) throws
}
extension MyIdSDK.ECPublicKey : Swift.Decodable {
public init(from decoder: any Swift.Decoder) throws
}
extension MyIdSDK.ECPrivateKey : Swift.Encodable {
public func encode(to encoder: any Swift.Encoder) throws
}
extension MyIdSDK.ECPrivateKey : Swift.Decodable {
public init(from decoder: any Swift.Decoder) throws
}
@_inheritsConvenienceInitializers @objc public class MyIdOrganizationDetails : ObjectiveC.NSObject { @_inheritsConvenienceInitializers @objc public class MyIdOrganizationDetails : ObjectiveC.NSObject {
@objc public var phoneNumber: Swift.String? @objc public var phoneNumber: Swift.String?
@objc public var logo: UIKit.UIImage? @objc public var logo: UIKit.UIImage?
@objc override dynamic public init() @objc override dynamic public init()
@objc deinit @objc deinit
} }
@objc public enum MyIdDocumentType : Swift.Int { extension MyIdSDK.MyIdDocumentType : Swift.Equatable {}
case ID_CARD = 0 extension MyIdSDK.MyIdDocumentType : Swift.Hashable {}
case PASSPORT extension MyIdSDK.MyIdDocumentType : Swift.RawRepresentable {}
case DRIVER_LICENSE
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
extension MyIdSDK.JWK {
public subscript(parameter: Swift.String) -> Swift.String? {
get
}
}
extension MyIdSDK.JWK {
public func jsonString() -> Swift.String?
public func jsonData() -> Foundation.Data?
}
public struct JWE {
public let header: MyIdSDK.JWEHeader
public let encryptedKey: Foundation.Data
public let initializationVector: Foundation.Data
public let ciphertext: Foundation.Data
public let authenticationTag: Foundation.Data
public var compactSerializedString: Swift.String {
get
}
public var compactSerializedData: Foundation.Data {
get
}
public init<KeyType>(header: MyIdSDK.JWEHeader, payload: MyIdSDK.Payload, encrypter: MyIdSDK.Encrypter<KeyType>) throws
public init(compactSerialization: Swift.String) throws
public init(compactSerialization: Foundation.Data) throws
@available(*, deprecated, message: "Use `decrypt(using decrypter:)` instead")
public func decrypt<KeyType>(with key: KeyType) throws -> MyIdSDK.Payload
public func decrypt(using decrypter: MyIdSDK.Decrypter) throws -> MyIdSDK.Payload
}
extension MyIdSDK.JWE : MyIdSDK.CompactSerializable {
public func serialize(to serializer: inout any MyIdSDK.CompactSerializer)
}
extension MyIdSDK.JWE : MyIdSDK.CompactDeserializable {
public static var componentCount: Swift.Int {
get
}
public init(from deserializer: any MyIdSDK.CompactDeserializer) throws
}
@_inheritsConvenienceInitializers @objc public class MyIdClient : ObjectiveC.NSObject {
@objc public class func start(withConfig config: MyIdSDK.MyIdConfig, withDelegate delegate: any MyIdSDK.MyIdClientDelegate)
@objc override dynamic public init()
@objc deinit
}
public enum RSAKeyType {
case PUBLIC
case PRIVATE
public static func == (a: MyIdSDK.RSAKeyType, b: MyIdSDK.RSAKeyType) -> Swift.Bool
public func hash(into hasher: inout Swift.Hasher)
public var hashValue: Swift.Int {
get
}
}
public struct RSAKeyPairs {
public var privateKey: MyIdSDK.RSAKey
public var publicKey: MyIdSDK.RSAKey
}
public class RSAKey {
public var key: Security.SecKey
public var keyBase64String: Swift.String
public var data: Foundation.Data?
public var keyType: MyIdSDK.RSAKeyType!
public init(key: Security.SecKey, keyBase64String: Swift.String, keyType: MyIdSDK.RSAKeyType)
public init(base64String: Swift.String, keyType: MyIdSDK.RSAKeyType) throws
public static func base64StringWithoutPrefixAndSuffix(pemString: Swift.String) throws -> Swift.String
public func pemString() throws -> Swift.String
public func format(keyData: Foundation.Data, keyType: MyIdSDK.RSAKeyType) -> Swift.String
@objc deinit
}
@_inheritsConvenienceInitializers @objc public class MyIdAppearance : ObjectiveC.NSObject {
@objc public var primaryColor: UIKit.UIColor?
@objc public var secondaryColor: UIKit.UIColor?
@objc public var errorColor: UIKit.UIColor?
@objc public var primaryButtonColor: UIKit.UIColor?
@objc public var primaryButtonColorDisabled: UIKit.UIColor?
@objc public var primaryButtonTextColor: UIKit.UIColor?
@objc public var primaryButtonTextColorDisabled: UIKit.UIColor?
@objc public var buttonCornerRadius: Swift.Float
@objc override dynamic public init()
@objc deinit
}
@_inheritsConvenienceInitializers @objc public class MyIdResult : ObjectiveC.NSObject {
@objc public var image: UIKit.UIImage?
@objc public var code: Swift.String?
@objc public var comparisonValue: Swift.String?
@objc override dynamic public init()
@objc deinit
}
@objc public enum MyIdLocale : Swift.Int {
case RU = 0
case EN
case UZ
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
public struct Verifier {
public init?<KeyType>(verifyingAlgorithm: MyIdSDK.SignatureAlgorithm, key: KeyType)
}
extension MyIdSDK.Verifier {
@available(*, deprecated, message: "Use `init?(verifyingAlgorithm: SignatureAlgorithm, key: KeyType)` instead")
public init?<KeyType>(verifyingAlgorithm: MyIdSDK.SignatureAlgorithm, publicKey: KeyType)
}
public enum JWKKeyType : Swift.String, Swift.Codable {
case RSA
case OCT
case EC
public init?(rawValue: Swift.String)
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
public protocol JWK : Swift.Decodable, Swift.Encodable {
var keyType: MyIdSDK.JWKKeyType { get }
var parameters: [Swift.String : Swift.String] { get }
var requiredParameters: [Swift.String : Swift.String] { get }
subscript(parameter: Swift.String) -> Swift.String? { get }
init(data: Foundation.Data) throws
func jsonString() -> Swift.String?
func jsonData() -> Foundation.Data?
@available(iOS 11.0, *)
func thumbprint(algorithm: MyIdSDK.JWKThumbprintAlgorithm) throws -> Swift.String
@available(iOS 11.0, *)
func withThumbprintAsKeyId(algorithm: MyIdSDK.JWKThumbprintAlgorithm) throws -> Self
}
extension MyIdSDK.JWK {
@available(iOS 11.0, *)
public func thumbprint(algorithm: MyIdSDK.JWKThumbprintAlgorithm = .SHA256) throws -> Swift.String
}
public struct JWKSet {
public let keys: [any MyIdSDK.JWK]
public init(keys: [any MyIdSDK.JWK])
public init(data: Foundation.Data) throws
public func jsonString() -> Swift.String?
public func jsonData() -> Foundation.Data?
}
extension MyIdSDK.JWKSet : Swift.Collection {
public typealias ArrayType = [any MyIdSDK.JWK]
public typealias Element = MyIdSDK.JWKSet.ArrayType.Element
public typealias Index = MyIdSDK.JWKSet.ArrayType.Index
public typealias Iterator = MyIdSDK.JWKSet.ArrayType.Iterator
public var startIndex: MyIdSDK.JWKSet.Index {
get
}
public var endIndex: MyIdSDK.JWKSet.Index {
get
}
public subscript(index: MyIdSDK.JWKSet.Index) -> MyIdSDK.JWKSet.Element {
get
}
public func index(after index: MyIdSDK.JWKSet.Index) -> MyIdSDK.JWKSet.Index
public func makeIterator() -> Swift.IndexingIterator<MyIdSDK.JWKSet.ArrayType>
public typealias Indices = Swift.DefaultIndices<MyIdSDK.JWKSet>
public typealias SubSequence = Swift.Slice<MyIdSDK.JWKSet>
}
extension MyIdSDK.JWKSet : Swift.ExpressibleByArrayLiteral {
public typealias ArrayLiteralElement = MyIdSDK.JWKSet.Element
public init(arrayLiteral elements: MyIdSDK.JWKSet.ArrayLiteralElement...)
}
public typealias ECPublicKeyComponents = (crv: Swift.String, x: Foundation.Data, y: Foundation.Data)
public typealias ECPrivateKeyComponents = (crv: Swift.String, x: Foundation.Data, y: Foundation.Data, d: Foundation.Data)
public protocol ExpressibleAsECPublicKeyComponents {
static func representing(ecPublicKeyComponents components: MyIdSDK.ECPublicKeyComponents) throws -> Self
func ecPublicKeyComponents() throws -> MyIdSDK.ECPublicKeyComponents
}
public protocol ExpressibleAsECPrivateKeyComponents {
static func representing(ecPrivateKeyComponents components: MyIdSDK.ECPrivateKeyComponents) throws -> Self
func ecPrivateKeyComponents() throws -> MyIdSDK.ECPrivateKeyComponents
}
public struct ECPublicKey : MyIdSDK.JWK {
public let keyType: MyIdSDK.JWKKeyType
public let parameters: [Swift.String : Swift.String]
public var requiredParameters: [Swift.String : Swift.String] {
get
}
public let crv: MyIdSDK.ECCurveType
public let x: Swift.String
public let y: Swift.String
public init(crv: MyIdSDK.ECCurveType, x: Swift.String, y: Swift.String, additionalParameters parameters: [Swift.String : Swift.String] = [:])
public init(publicKey: any MyIdSDK.ExpressibleAsECPublicKeyComponents, additionalParameters parameters: [Swift.String : Swift.String] = [:]) throws
public init(data: Foundation.Data) throws
public func converted<T>(to type: T.Type) throws -> T where T : MyIdSDK.ExpressibleAsECPublicKeyComponents
@available(iOS 11.0, *)
public func withThumbprintAsKeyId(algorithm: MyIdSDK.JWKThumbprintAlgorithm = .SHA256) throws -> MyIdSDK.ECPublicKey
}
public struct ECPrivateKey : MyIdSDK.JWK {
public let keyType: MyIdSDK.JWKKeyType
public let parameters: [Swift.String : Swift.String]
public var requiredParameters: [Swift.String : Swift.String] {
get
}
public let crv: MyIdSDK.ECCurveType
public let x: Swift.String
public let y: Swift.String
public let privateKey: Swift.String
public init(crv: Swift.String, x: Swift.String, y: Swift.String, privateKey: Swift.String, additionalParameters parameters: [Swift.String : Swift.String] = [:]) throws
public init(privateKey: any MyIdSDK.ExpressibleAsECPrivateKeyComponents, additionalParameters parameters: [Swift.String : Swift.String] = [:]) throws
public init(data: Foundation.Data) throws
public func converted<T>(to type: T.Type) throws -> T where T : MyIdSDK.ExpressibleAsECPrivateKeyComponents
@available(iOS 11.0, *)
public func withThumbprintAsKeyId(algorithm: MyIdSDK.JWKThumbprintAlgorithm = .SHA256) throws -> MyIdSDK.ECPrivateKey
}
public typealias ECKeyPair = MyIdSDK.ECPrivateKey
public struct Signer<KeyType> {
public init?(signingAlgorithm: MyIdSDK.SignatureAlgorithm, key: KeyType)
}
extension MyIdSDK.Signer {
@available(*, deprecated, message: "Use `init?(signingAlgorithm: SignatureAlgorithm, key: KeyType)` instead")
public init?(signingAlgorithm: MyIdSDK.SignatureAlgorithm, privateKey: KeyType)
}
extension MyIdSDK.RSASignature.DigestType : Swift.Equatable {}
extension MyIdSDK.RSASignature.DigestType : Swift.Hashable {}
extension MyIdSDK.MyIdBuildMode : Swift.Equatable {} extension MyIdSDK.MyIdBuildMode : Swift.Equatable {}
extension MyIdSDK.MyIdBuildMode : Swift.Hashable {} extension MyIdSDK.MyIdBuildMode : Swift.Hashable {}
extension MyIdSDK.MyIdBuildMode : Swift.RawRepresentable {} extension MyIdSDK.MyIdBuildMode : Swift.RawRepresentable {}
extension MyIdSDK.JWKParameter : Swift.Equatable {}
extension MyIdSDK.JWKParameter : Swift.Hashable {}
extension MyIdSDK.JWKParameter : Swift.RawRepresentable {}
extension MyIdSDK.RSAParameter : Swift.Equatable {}
extension MyIdSDK.RSAParameter : Swift.Hashable {}
extension MyIdSDK.RSAParameter : Swift.RawRepresentable {}
extension MyIdSDK.SymmetricKeyParameter : Swift.Equatable {}
extension MyIdSDK.SymmetricKeyParameter : Swift.Hashable {}
extension MyIdSDK.SymmetricKeyParameter : Swift.RawRepresentable {}
extension MyIdSDK.ECParameter : Swift.Equatable {}
extension MyIdSDK.ECParameter : Swift.Hashable {}
extension MyIdSDK.ECParameter : Swift.RawRepresentable {}
extension MyIdSDK.SwiftyCryptoRSAKeySize : Swift.Equatable {}
extension MyIdSDK.SwiftyCryptoRSAKeySize : Swift.Hashable {}
extension MyIdSDK.SwiftyCryptoRSAKeySize : Swift.RawRepresentable {}
extension MyIdSDK.JWKThumbprintAlgorithm : Swift.Equatable {}
extension MyIdSDK.JWKThumbprintAlgorithm : Swift.Hashable {}
extension MyIdSDK.JWKThumbprintAlgorithm : Swift.RawRepresentable {}
extension MyIdSDK.ContentEncryptionAlgorithm : Swift.Equatable {}
extension MyIdSDK.ContentEncryptionAlgorithm : Swift.Hashable {}
extension MyIdSDK.ContentEncryptionAlgorithm : Swift.RawRepresentable {}
extension MyIdSDK.KeyManagementAlgorithm : Swift.Equatable {}
extension MyIdSDK.KeyManagementAlgorithm : Swift.Hashable {}
extension MyIdSDK.KeyManagementAlgorithm : Swift.RawRepresentable {}
extension MyIdSDK.MyIdResolution : Swift.Equatable {} extension MyIdSDK.MyIdResolution : Swift.Equatable {}
extension MyIdSDK.MyIdResolution : Swift.Hashable {} extension MyIdSDK.MyIdResolution : Swift.Hashable {}
extension MyIdSDK.MyIdResolution : Swift.RawRepresentable {} extension MyIdSDK.MyIdResolution : Swift.RawRepresentable {}
extension MyIdSDK.MyIdPresentationStyle : Swift.Equatable {}
extension MyIdSDK.MyIdPresentationStyle : Swift.Hashable {}
extension MyIdSDK.MyIdPresentationStyle : Swift.RawRepresentable {}
extension MyIdSDK.MyIdEntryType : Swift.Equatable {}
extension MyIdSDK.MyIdEntryType : Swift.Hashable {}
extension MyIdSDK.MyIdEntryType : Swift.RawRepresentable {}
extension MyIdSDK.MyIdCameraShape : Swift.Equatable {} extension MyIdSDK.MyIdCameraShape : Swift.Equatable {}
extension MyIdSDK.MyIdCameraShape : Swift.Hashable {} extension MyIdSDK.MyIdCameraShape : Swift.Hashable {}
extension MyIdSDK.MyIdCameraShape : Swift.RawRepresentable {} extension MyIdSDK.MyIdCameraShape : Swift.RawRepresentable {}
extension MyIdSDK.MyIdCameraSelector : Swift.Equatable {}
extension MyIdSDK.MyIdCameraSelector : Swift.Hashable {}
extension MyIdSDK.MyIdCameraSelector : Swift.RawRepresentable {}
extension MyIdSDK.MyIdResidency : Swift.Equatable {} extension MyIdSDK.MyIdResidency : Swift.Equatable {}
extension MyIdSDK.MyIdResidency : Swift.Hashable {} extension MyIdSDK.MyIdResidency : Swift.Hashable {}
extension MyIdSDK.MyIdResidency : Swift.RawRepresentable {} extension MyIdSDK.MyIdResidency : Swift.RawRepresentable {}
extension MyIdSDK.ECCurveType : Swift.Equatable {}
extension MyIdSDK.ECCurveType : Swift.Hashable {}
extension MyIdSDK.ECCurveType : Swift.RawRepresentable {}
extension MyIdSDK.SignatureAlgorithm : Swift.Equatable {}
extension MyIdSDK.SignatureAlgorithm : Swift.Hashable {}
extension MyIdSDK.SignatureAlgorithm : Swift.RawRepresentable {}
extension MyIdSDK.ECCompression : Swift.Equatable {}
extension MyIdSDK.ECCompression : Swift.Hashable {}
extension MyIdSDK.ECCompression : Swift.RawRepresentable {}
extension MyIdSDK.JWEHeader : MyIdSDK.DataConvertible {}
extension MyIdSDK.HMACAlgorithm : Swift.Equatable {}
extension MyIdSDK.HMACAlgorithm : Swift.Hashable {}
extension MyIdSDK.HMACAlgorithm : Swift.RawRepresentable {}
extension MyIdSDK.CompressionAlgorithm : Swift.Equatable {}
extension MyIdSDK.CompressionAlgorithm : Swift.Hashable {}
extension MyIdSDK.CompressionAlgorithm : Swift.RawRepresentable {}
extension MyIdSDK.MyIdEntryType : Swift.Equatable {}
extension MyIdSDK.MyIdEntryType : Swift.Hashable {}
extension MyIdSDK.MyIdEntryType : Swift.RawRepresentable {}
extension MyIdSDK.JWSHeader : MyIdSDK.DataConvertible {}
extension MyIdSDK.MyIdDocumentType : Swift.Equatable {}
extension MyIdSDK.MyIdDocumentType : Swift.Hashable {}
extension MyIdSDK.MyIdDocumentType : Swift.RawRepresentable {}
extension MyIdSDK.RSAKeyType : Swift.Equatable {}
extension MyIdSDK.RSAKeyType : Swift.Hashable {}
extension MyIdSDK.MyIdLocale : Swift.Equatable {} extension MyIdSDK.MyIdLocale : Swift.Equatable {}
extension MyIdSDK.MyIdLocale : Swift.Hashable {} extension MyIdSDK.MyIdLocale : Swift.Hashable {}
extension MyIdSDK.MyIdLocale : Swift.RawRepresentable {} extension MyIdSDK.MyIdLocale : Swift.RawRepresentable {}
extension MyIdSDK.JWKKeyType : Swift.Equatable {}
extension MyIdSDK.JWKKeyType : Swift.Hashable {}
extension MyIdSDK.JWKKeyType : Swift.RawRepresentable {}
...@@ -286,7 +286,6 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); ...@@ -286,7 +286,6 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
SWIFT_CLASS("_TtC7MyIdSDK14MyIdAppearance") SWIFT_CLASS("_TtC7MyIdSDK14MyIdAppearance")
@interface MyIdAppearance : NSObject @interface MyIdAppearance : NSObject
@property (nonatomic, strong) UIColor * _Nullable primaryColor; @property (nonatomic, strong) UIColor * _Nullable primaryColor;
@property (nonatomic, strong) UIColor * _Nullable secondaryColor;
@property (nonatomic, strong) UIColor * _Nullable errorColor; @property (nonatomic, strong) UIColor * _Nullable errorColor;
@property (nonatomic, strong) UIColor * _Nullable primaryButtonColor; @property (nonatomic, strong) UIColor * _Nullable primaryButtonColor;
@property (nonatomic, strong) UIColor * _Nullable primaryButtonColorDisabled; @property (nonatomic, strong) UIColor * _Nullable primaryButtonColorDisabled;
...@@ -301,6 +300,11 @@ typedef SWIFT_ENUM(NSInteger, MyIdBuildMode, open) { ...@@ -301,6 +300,11 @@ typedef SWIFT_ENUM(NSInteger, MyIdBuildMode, open) {
MyIdBuildModePRODUCTION = 1, MyIdBuildModePRODUCTION = 1,
}; };
typedef SWIFT_ENUM(NSInteger, MyIdCameraSelector, open) {
MyIdCameraSelectorFRONT = 0,
MyIdCameraSelectorBACK = 1,
};
typedef SWIFT_ENUM(NSInteger, MyIdCameraShape, open) { typedef SWIFT_ENUM(NSInteger, MyIdCameraShape, open) {
MyIdCameraShapeELLIPSE = 0, MyIdCameraShapeELLIPSE = 0,
MyIdCameraShapeCIRCLE = 1, MyIdCameraShapeCIRCLE = 1,
...@@ -308,10 +312,12 @@ typedef SWIFT_ENUM(NSInteger, MyIdCameraShape, open) { ...@@ -308,10 +312,12 @@ typedef SWIFT_ENUM(NSInteger, MyIdCameraShape, open) {
@class MyIdConfig; @class MyIdConfig;
@protocol MyIdClientDelegate; @protocol MyIdClientDelegate;
@class UIViewController;
SWIFT_CLASS("_TtC7MyIdSDK10MyIdClient") SWIFT_CLASS("_TtC7MyIdSDK10MyIdClient")
@interface MyIdClient : NSObject @interface MyIdClient : NSObject
+ (void)startWithConfig:(MyIdConfig * _Nonnull)config withDelegate:(id <MyIdClientDelegate> _Nonnull)delegate; + (void)startWithConfig:(MyIdConfig * _Nonnull)config withDelegate:(id <MyIdClientDelegate> _Nonnull)delegate;
+ (UIViewController * _Nonnull)runWithConfig:(MyIdConfig * _Nonnull)config withDelegate:(id <MyIdClientDelegate> _Nonnull)delegate SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end @end
...@@ -330,6 +336,7 @@ enum MyIdEntryType : NSInteger; ...@@ -330,6 +336,7 @@ enum MyIdEntryType : NSInteger;
enum MyIdResidency : NSInteger; enum MyIdResidency : NSInteger;
enum MyIdLocale : NSInteger; enum MyIdLocale : NSInteger;
enum MyIdResolution : NSInteger; enum MyIdResolution : NSInteger;
enum MyIdPresentationStyle : NSInteger;
@class MyIdOrganizationDetails; @class MyIdOrganizationDetails;
SWIFT_CLASS("_TtC7MyIdSDK10MyIdConfig") SWIFT_CLASS("_TtC7MyIdSDK10MyIdConfig")
...@@ -339,6 +346,7 @@ SWIFT_CLASS("_TtC7MyIdSDK10MyIdConfig") ...@@ -339,6 +346,7 @@ SWIFT_CLASS("_TtC7MyIdSDK10MyIdConfig")
@property (nonatomic, copy) NSString * _Nullable clientHashId; @property (nonatomic, copy) NSString * _Nullable clientHashId;
@property (nonatomic, copy) NSString * _Nullable passportData; @property (nonatomic, copy) NSString * _Nullable passportData;
@property (nonatomic, copy) NSString * _Nullable dateOfBirth; @property (nonatomic, copy) NSString * _Nullable dateOfBirth;
@property (nonatomic) NSInteger minAge;
@property (nonatomic, copy) NSString * _Nullable sdkHash; @property (nonatomic, copy) NSString * _Nullable sdkHash;
@property (nonatomic, copy) NSString * _Nullable externalId; @property (nonatomic, copy) NSString * _Nullable externalId;
@property (nonatomic) float threshold; @property (nonatomic) float threshold;
...@@ -348,6 +356,8 @@ SWIFT_CLASS("_TtC7MyIdSDK10MyIdConfig") ...@@ -348,6 +356,8 @@ SWIFT_CLASS("_TtC7MyIdSDK10MyIdConfig")
@property (nonatomic) enum MyIdLocale locale; @property (nonatomic) enum MyIdLocale locale;
@property (nonatomic) enum MyIdCameraShape cameraShape; @property (nonatomic) enum MyIdCameraShape cameraShape;
@property (nonatomic) enum MyIdResolution resolution; @property (nonatomic) enum MyIdResolution resolution;
@property (nonatomic) enum MyIdCameraSelector cameraSelector;
@property (nonatomic) enum MyIdPresentationStyle presentationStyle;
@property (nonatomic, strong) MyIdOrganizationDetails * _Nullable organizationDetails; @property (nonatomic, strong) MyIdOrganizationDetails * _Nullable organizationDetails;
@property (nonatomic, strong) MyIdAppearance * _Nullable appearance; @property (nonatomic, strong) MyIdAppearance * _Nullable appearance;
@property (nonatomic) BOOL withPhoto; @property (nonatomic) BOOL withPhoto;
...@@ -403,6 +413,11 @@ SWIFT_CLASS("_TtC7MyIdSDK23MyIdOrganizationDetails") ...@@ -403,6 +413,11 @@ SWIFT_CLASS("_TtC7MyIdSDK23MyIdOrganizationDetails")
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end @end
typedef SWIFT_ENUM(NSInteger, MyIdPresentationStyle, open) {
MyIdPresentationStyleFULL = 0,
MyIdPresentationStyleSHEET = 1,
};
typedef SWIFT_ENUM(NSInteger, MyIdResidency, open) { typedef SWIFT_ENUM(NSInteger, MyIdResidency, open) {
MyIdResidencyUSER_DEFINED = 0, MyIdResidencyUSER_DEFINED = 0,
MyIdResidencyRESIDENT = 1, MyIdResidencyRESIDENT = 1,
...@@ -424,13 +439,22 @@ SWIFT_CLASS("_TtC7MyIdSDK10MyIdResult") ...@@ -424,13 +439,22 @@ SWIFT_CLASS("_TtC7MyIdSDK10MyIdResult")
@end @end
SWIFT_CLASS("_TtC7MyIdSDK13MyIdViewModel") SWIFT_AVAILABILITY(ios,introduced=13.0)
SWIFT_CLASS("_TtC7MyIdSDK13RSAKeyFactory") @interface MyIdViewModel : NSObject
@interface RSAKeyFactory : NSObject - (void)startMyIdWithClientId:(NSString * _Nonnull)clientId clientHash:(NSString * _Nonnull)clientHash clientHashId:(NSString * _Nonnull)clientHashId passportData:(NSString * _Nullable)passportData dateOfBirth:(NSString * _Nullable)dateOfBirth minAge:(NSInteger)minAge sdkHash:(NSString * _Nullable)sdkHash externalId:(NSString * _Nullable)externalId threshold:(float)threshold buildMode:(enum MyIdBuildMode)buildMode entryType:(enum MyIdEntryType)entryType residency:(enum MyIdResidency)residency locale:(enum MyIdLocale)locale cameraShape:(enum MyIdCameraShape)cameraShape resolution:(enum MyIdResolution)resolution cameraSelector:(enum MyIdCameraSelector)cameraSelector presentationStyle:(enum MyIdPresentationStyle)presentationStyle organizationDetails:(MyIdOrganizationDetails * _Nullable)organizationDetails appearance:(MyIdAppearance * _Nullable)appearance withPhoto:(BOOL)withPhoto;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end @end
SWIFT_AVAILABILITY(ios,introduced=13.0)
@interface MyIdViewModel (SWIFT_EXTENSION(MyIdSDK)) <MyIdClientDelegate>
- (void)onSuccessWithResult:(MyIdResult * _Nonnull)result;
- (void)onErrorWithException:(MyIdException * _Nonnull)exception;
- (void)onUserExited;
@end
#endif #endif
...@@ -729,7 +753,6 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); ...@@ -729,7 +753,6 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
SWIFT_CLASS("_TtC7MyIdSDK14MyIdAppearance") SWIFT_CLASS("_TtC7MyIdSDK14MyIdAppearance")
@interface MyIdAppearance : NSObject @interface MyIdAppearance : NSObject
@property (nonatomic, strong) UIColor * _Nullable primaryColor; @property (nonatomic, strong) UIColor * _Nullable primaryColor;
@property (nonatomic, strong) UIColor * _Nullable secondaryColor;
@property (nonatomic, strong) UIColor * _Nullable errorColor; @property (nonatomic, strong) UIColor * _Nullable errorColor;
@property (nonatomic, strong) UIColor * _Nullable primaryButtonColor; @property (nonatomic, strong) UIColor * _Nullable primaryButtonColor;
@property (nonatomic, strong) UIColor * _Nullable primaryButtonColorDisabled; @property (nonatomic, strong) UIColor * _Nullable primaryButtonColorDisabled;
...@@ -744,6 +767,11 @@ typedef SWIFT_ENUM(NSInteger, MyIdBuildMode, open) { ...@@ -744,6 +767,11 @@ typedef SWIFT_ENUM(NSInteger, MyIdBuildMode, open) {
MyIdBuildModePRODUCTION = 1, MyIdBuildModePRODUCTION = 1,
}; };
typedef SWIFT_ENUM(NSInteger, MyIdCameraSelector, open) {
MyIdCameraSelectorFRONT = 0,
MyIdCameraSelectorBACK = 1,
};
typedef SWIFT_ENUM(NSInteger, MyIdCameraShape, open) { typedef SWIFT_ENUM(NSInteger, MyIdCameraShape, open) {
MyIdCameraShapeELLIPSE = 0, MyIdCameraShapeELLIPSE = 0,
MyIdCameraShapeCIRCLE = 1, MyIdCameraShapeCIRCLE = 1,
...@@ -751,10 +779,12 @@ typedef SWIFT_ENUM(NSInteger, MyIdCameraShape, open) { ...@@ -751,10 +779,12 @@ typedef SWIFT_ENUM(NSInteger, MyIdCameraShape, open) {
@class MyIdConfig; @class MyIdConfig;
@protocol MyIdClientDelegate; @protocol MyIdClientDelegate;
@class UIViewController;
SWIFT_CLASS("_TtC7MyIdSDK10MyIdClient") SWIFT_CLASS("_TtC7MyIdSDK10MyIdClient")
@interface MyIdClient : NSObject @interface MyIdClient : NSObject
+ (void)startWithConfig:(MyIdConfig * _Nonnull)config withDelegate:(id <MyIdClientDelegate> _Nonnull)delegate; + (void)startWithConfig:(MyIdConfig * _Nonnull)config withDelegate:(id <MyIdClientDelegate> _Nonnull)delegate;
+ (UIViewController * _Nonnull)runWithConfig:(MyIdConfig * _Nonnull)config withDelegate:(id <MyIdClientDelegate> _Nonnull)delegate SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end @end
...@@ -773,6 +803,7 @@ enum MyIdEntryType : NSInteger; ...@@ -773,6 +803,7 @@ enum MyIdEntryType : NSInteger;
enum MyIdResidency : NSInteger; enum MyIdResidency : NSInteger;
enum MyIdLocale : NSInteger; enum MyIdLocale : NSInteger;
enum MyIdResolution : NSInteger; enum MyIdResolution : NSInteger;
enum MyIdPresentationStyle : NSInteger;
@class MyIdOrganizationDetails; @class MyIdOrganizationDetails;
SWIFT_CLASS("_TtC7MyIdSDK10MyIdConfig") SWIFT_CLASS("_TtC7MyIdSDK10MyIdConfig")
...@@ -782,6 +813,7 @@ SWIFT_CLASS("_TtC7MyIdSDK10MyIdConfig") ...@@ -782,6 +813,7 @@ SWIFT_CLASS("_TtC7MyIdSDK10MyIdConfig")
@property (nonatomic, copy) NSString * _Nullable clientHashId; @property (nonatomic, copy) NSString * _Nullable clientHashId;
@property (nonatomic, copy) NSString * _Nullable passportData; @property (nonatomic, copy) NSString * _Nullable passportData;
@property (nonatomic, copy) NSString * _Nullable dateOfBirth; @property (nonatomic, copy) NSString * _Nullable dateOfBirth;
@property (nonatomic) NSInteger minAge;
@property (nonatomic, copy) NSString * _Nullable sdkHash; @property (nonatomic, copy) NSString * _Nullable sdkHash;
@property (nonatomic, copy) NSString * _Nullable externalId; @property (nonatomic, copy) NSString * _Nullable externalId;
@property (nonatomic) float threshold; @property (nonatomic) float threshold;
...@@ -791,6 +823,8 @@ SWIFT_CLASS("_TtC7MyIdSDK10MyIdConfig") ...@@ -791,6 +823,8 @@ SWIFT_CLASS("_TtC7MyIdSDK10MyIdConfig")
@property (nonatomic) enum MyIdLocale locale; @property (nonatomic) enum MyIdLocale locale;
@property (nonatomic) enum MyIdCameraShape cameraShape; @property (nonatomic) enum MyIdCameraShape cameraShape;
@property (nonatomic) enum MyIdResolution resolution; @property (nonatomic) enum MyIdResolution resolution;
@property (nonatomic) enum MyIdCameraSelector cameraSelector;
@property (nonatomic) enum MyIdPresentationStyle presentationStyle;
@property (nonatomic, strong) MyIdOrganizationDetails * _Nullable organizationDetails; @property (nonatomic, strong) MyIdOrganizationDetails * _Nullable organizationDetails;
@property (nonatomic, strong) MyIdAppearance * _Nullable appearance; @property (nonatomic, strong) MyIdAppearance * _Nullable appearance;
@property (nonatomic) BOOL withPhoto; @property (nonatomic) BOOL withPhoto;
...@@ -846,6 +880,11 @@ SWIFT_CLASS("_TtC7MyIdSDK23MyIdOrganizationDetails") ...@@ -846,6 +880,11 @@ SWIFT_CLASS("_TtC7MyIdSDK23MyIdOrganizationDetails")
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end @end
typedef SWIFT_ENUM(NSInteger, MyIdPresentationStyle, open) {
MyIdPresentationStyleFULL = 0,
MyIdPresentationStyleSHEET = 1,
};
typedef SWIFT_ENUM(NSInteger, MyIdResidency, open) { typedef SWIFT_ENUM(NSInteger, MyIdResidency, open) {
MyIdResidencyUSER_DEFINED = 0, MyIdResidencyUSER_DEFINED = 0,
MyIdResidencyRESIDENT = 1, MyIdResidencyRESIDENT = 1,
...@@ -867,13 +906,22 @@ SWIFT_CLASS("_TtC7MyIdSDK10MyIdResult") ...@@ -867,13 +906,22 @@ SWIFT_CLASS("_TtC7MyIdSDK10MyIdResult")
@end @end
SWIFT_CLASS("_TtC7MyIdSDK13MyIdViewModel") SWIFT_AVAILABILITY(ios,introduced=13.0)
SWIFT_CLASS("_TtC7MyIdSDK13RSAKeyFactory") @interface MyIdViewModel : NSObject
@interface RSAKeyFactory : NSObject - (void)startMyIdWithClientId:(NSString * _Nonnull)clientId clientHash:(NSString * _Nonnull)clientHash clientHashId:(NSString * _Nonnull)clientHashId passportData:(NSString * _Nullable)passportData dateOfBirth:(NSString * _Nullable)dateOfBirth minAge:(NSInteger)minAge sdkHash:(NSString * _Nullable)sdkHash externalId:(NSString * _Nullable)externalId threshold:(float)threshold buildMode:(enum MyIdBuildMode)buildMode entryType:(enum MyIdEntryType)entryType residency:(enum MyIdResidency)residency locale:(enum MyIdLocale)locale cameraShape:(enum MyIdCameraShape)cameraShape resolution:(enum MyIdResolution)resolution cameraSelector:(enum MyIdCameraSelector)cameraSelector presentationStyle:(enum MyIdPresentationStyle)presentationStyle organizationDetails:(MyIdOrganizationDetails * _Nullable)organizationDetails appearance:(MyIdAppearance * _Nullable)appearance withPhoto:(BOOL)withPhoto;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end @end
SWIFT_AVAILABILITY(ios,introduced=13.0)
@interface MyIdViewModel (SWIFT_EXTENSION(MyIdSDK)) <MyIdClientDelegate>
- (void)onSuccessWithResult:(MyIdResult * _Nonnull)result;
- (void)onErrorWithException:(MyIdException * _Nonnull)exception;
- (void)onUserExited;
@end
#endif #endif
......
...@@ -15,116 +15,46 @@ import LocalAuthentication ...@@ -15,116 +15,46 @@ import LocalAuthentication
@_exported import MyIdSDK @_exported import MyIdSDK
import Security import Security
import Swift import Swift
import SwiftUI
import UIKit import UIKit
import Vision import Vision
import _Concurrency import _Concurrency
import _StringProcessing import _StringProcessing
public protocol DataConvertible { @_inheritsConvenienceInitializers @objc public class MyIdResult : ObjectiveC.NSObject {
init?(_ data: Foundation.Data) @objc public var image: UIKit.UIImage?
func data() -> Foundation.Data @objc public var code: Swift.String?
} @objc public var comparisonValue: Swift.String?
public struct Payload : MyIdSDK.DataConvertible { @objc override dynamic public init()
public init(_ payload: Foundation.Data) @objc deinit
public func data() -> Foundation.Data
} }
public protocol Message { extension Swift.String : Swift.Error {
var data: Foundation.Data { get }
var base64String: Swift.String { get }
init(data: Foundation.Data)
init(base64String: Swift.String) throws
} }
extension MyIdSDK.Message { @objc public enum MyIdDocumentType : Swift.Int {
public var base64String: Swift.String { case ID_CARD = 0
case PASSPORT
case DRIVER_LICENSE
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get get
} }
} }
extension Foundation.Data : MyIdSDK.ExpressibleAsRSAPublicKeyComponents { @_inheritsConvenienceInitializers @available(iOS 13.0, *)
public static func representing(rsaPublicKeyComponents components: MyIdSDK.RSAPublicKeyComponents) throws -> Foundation.Data @objc public class MyIdViewModel : ObjectiveC.NSObject, Combine.ObservableObject {
public func rsaPublicKeyComponents() throws -> MyIdSDK.RSAPublicKeyComponents @objc public func startMyId(clientId: Swift.String, clientHash: Swift.String, clientHashId: Swift.String, passportData: Swift.String? = nil, dateOfBirth: Swift.String? = nil, minAge: Swift.Int = 16, sdkHash: Swift.String? = nil, externalId: Swift.String? = nil, threshold: Swift.Float = 0.5, buildMode: MyIdSDK.MyIdBuildMode = MyIdBuildMode.PRODUCTION, entryType: MyIdSDK.MyIdEntryType = MyIdEntryType.AUTH, residency: MyIdSDK.MyIdResidency = MyIdResidency.RESIDENT, locale: MyIdSDK.MyIdLocale = MyIdLocale.RU, cameraShape: MyIdSDK.MyIdCameraShape = MyIdCameraShape.CIRCLE, resolution: MyIdSDK.MyIdResolution = MyIdResolution.RESOLUTION_480, cameraSelector: MyIdSDK.MyIdCameraSelector = MyIdCameraSelector.FRONT, presentationStyle: MyIdSDK.MyIdPresentationStyle = MyIdPresentationStyle.FULL, organizationDetails: MyIdSDK.MyIdOrganizationDetails? = nil, appearance: MyIdSDK.MyIdAppearance? = nil, withPhoto: Swift.Bool = false)
} @objc override dynamic public init()
public class RSASignature { public typealias ObjectWillChangePublisher = Combine.ObservableObjectPublisher
public enum DigestType {
case sha1
case sha224
case sha256
case sha384
case sha512
public static func == (a: MyIdSDK.RSASignature.DigestType, b: MyIdSDK.RSASignature.DigestType) -> Swift.Bool
public func hash(into hasher: inout Swift.Hasher)
public var hashValue: Swift.Int {
get
}
}
final public let data: Foundation.Data
public init(data: Foundation.Data)
convenience public init(base64Encoded base64String: Swift.String) throws
public var base64String: Swift.String {
get
}
@objc deinit @objc deinit
} }
public enum JOSESwiftError : Swift.Error { @available(iOS 13.0, *)
case signingFailed(description: Swift.String) @objc extension MyIdSDK.MyIdViewModel : MyIdSDK.MyIdClientDelegate {
case verifyingFailed(description: Swift.String) @objc dynamic public func onSuccess(result: MyIdSDK.MyIdResult)
case signatureInvalid @objc dynamic public func onError(exception: MyIdSDK.MyIdException)
case encryptingFailed(description: Swift.String) @objc dynamic public func onUserExited()
case decryptingFailed(description: Swift.String)
case wrongDataEncoding(data: Foundation.Data)
case invalidCompactSerializationComponentCount(count: Swift.Int)
case componentNotValidBase64URL(component: Swift.String)
case componentCouldNotBeInitializedFromData(data: Foundation.Data)
case couldNotConstructJWK
case modulusNotBase64URLUIntEncoded
case exponentNotBase64URLUIntEncoded
case privateExponentNotBase64URLUIntEncoded
case symmetricKeyNotBase64URLEncoded
case xNotBase64URLUIntEncoded
case yNotBase64URLUIntEncoded
case privateKeyNotBase64URLUIntEncoded
case invalidCurveType
case compressedCurvePointsUnsupported
case invalidCurvePointOctetLength
case localAuthenticationFailed(errorCode: Swift.Int)
case compressionFailed
case decompressionFailed
case compressionAlgorithmNotSupported
case rawDataMustBeGreaterThanZero
case compressedDataMustBeGreaterThanZero
case thumbprintSerialization
}
extension Foundation.Data : MyIdSDK.ExpressibleAsSymmetricKeyComponents {
public static func representing(symmetricKeyComponents components: MyIdSDK.SymmetricKeyComponents) throws -> Foundation.Data
public func symmetricKeyComponents() throws -> MyIdSDK.SymmetricKeyComponents
} }
public typealias SymmetricKeyComponents = (Foundation.Data) @_inheritsConvenienceInitializers @objc public class MyIdClient : ObjectiveC.NSObject {
public protocol ExpressibleAsSymmetricKeyComponents { @objc public class func start(withConfig config: MyIdSDK.MyIdConfig, withDelegate delegate: any MyIdSDK.MyIdClientDelegate)
static func representing(symmetricKeyComponents components: MyIdSDK.SymmetricKeyComponents) throws -> Self @objc public class func run(withConfig config: MyIdSDK.MyIdConfig, withDelegate delegate: any MyIdSDK.MyIdClientDelegate) -> UIKit.UIViewController
func symmetricKeyComponents() throws -> MyIdSDK.SymmetricKeyComponents
}
public struct SymmetricKey : MyIdSDK.JWK {
public let keyType: MyIdSDK.JWKKeyType
public let parameters: [Swift.String : Swift.String]
public var requiredParameters: [Swift.String : Swift.String] {
get
}
public let key: Swift.String
public init(key: Foundation.Data, additionalParameters parameters: [Swift.String : Swift.String] = [:])
public init(key: any MyIdSDK.ExpressibleAsSymmetricKeyComponents, additionalParameters parameters: [Swift.String : Swift.String] = [:]) throws
public init(data: Foundation.Data) throws
public func converted<T>(to type: T.Type) throws -> T where T : MyIdSDK.ExpressibleAsSymmetricKeyComponents
@available(iOS 11.0, *)
public func withThumbprintAsKeyId(algorithm: MyIdSDK.JWKThumbprintAlgorithm = .SHA256) throws -> MyIdSDK.SymmetricKey
}
@_inheritsConvenienceInitializers @objc public class MyIdGenerator : ObjectiveC.NSObject {
@objc public class func hash(payload: Swift.String, clientHash: Swift.String, clientHashId: Swift.String) -> Swift.String?
@objc public class func device() -> Swift.String
@objc public class func deviceModel() -> Swift.String?
@objc public class func deviceName() -> Swift.String?
@objc public class func systemName() -> Swift.String?
@objc public class func systemVersion() -> Swift.String?
@objc public class func isPhone() -> Swift.Bool
@objc public class func isPad() -> Swift.Bool
@objc public class func isSimulator() -> Swift.Bool
@objc override dynamic public init() @objc override dynamic public init()
@objc deinit @objc deinit
} }
...@@ -137,136 +67,43 @@ public struct SymmetricKey : MyIdSDK.JWK { ...@@ -137,136 +67,43 @@ public struct SymmetricKey : MyIdSDK.JWK {
get get
} }
} }
public enum SecureRandomError : Swift.Error { @objc public enum MyIdResolution : Swift.Int {
case failed(status: Darwin.OSStatus) case RESOLUTION_480 = 0
case countMustBeGreaterThanZero case RESOLUTION_720
} public init?(rawValue: Swift.Int)
public struct SecureRandom { public typealias RawValue = Swift.Int
public static func generate(count: Swift.Int) throws -> Foundation.Data public var rawValue: Swift.Int {
}
public enum JWKParameter : Swift.String, Swift.CodingKey {
case keyType
case keyUse
case keyOperations
case algorithm
case keyIdentifier
case X509URL
case X509CertificateChain
case X509CertificateSHA1Thumbprint
case X509CertificateSHA256Thumbprint
public init?(rawValue: Swift.String)
public init?(stringValue: Swift.String)
public init?(intValue: Swift.Int)
public typealias RawValue = Swift.String
public var intValue: Swift.Int? {
get
}
public var rawValue: Swift.String {
get
}
public var stringValue: Swift.String {
get
}
}
public enum RSAParameter : Swift.String, Swift.CodingKey {
case modulus
case exponent
case privateExponent
public init?(rawValue: Swift.String)
public init?(stringValue: Swift.String)
public init?(intValue: Swift.Int)
public typealias RawValue = Swift.String
public var intValue: Swift.Int? {
get
}
public var rawValue: Swift.String {
get
}
public var stringValue: Swift.String {
get
}
}
public enum SymmetricKeyParameter : Swift.String, Swift.CodingKey {
case key
public init?(rawValue: Swift.String)
public init?(stringValue: Swift.String)
public init?(intValue: Swift.Int)
public typealias RawValue = Swift.String
public var intValue: Swift.Int? {
get
}
public var rawValue: Swift.String {
get
}
public var stringValue: Swift.String {
get
}
}
public enum ECParameter : Swift.String, Swift.CodingKey {
case curve
case x
case y
case privateKey
public init?(rawValue: Swift.String)
public init?(stringValue: Swift.String)
public init?(intValue: Swift.Int)
public typealias RawValue = Swift.String
public var intValue: Swift.Int? {
get
}
public var rawValue: Swift.String {
get
}
public var stringValue: Swift.String {
get get
} }
} }
public protocol CompactSerializable { @objc public enum MyIdPresentationStyle : Swift.Int {
func serialize(to serializer: inout any MyIdSDK.CompactSerializer) case FULL = 0
} case SHEET
public protocol CompactSerializer {
var components: [any MyIdSDK.DataConvertible] { get }
mutating func serialize<T>(_ object: T) where T : MyIdSDK.DataConvertible
}
public struct JOSESerializer {
public func serialize<T>(compact object: T) -> Swift.String where T : MyIdSDK.CompactSerializable
}
public enum SwiftyCryptoRSAKeySize : Swift.Int {
case RSAKey64
case RSAKey128
case RSAKey256
case RSAKey512
public init?(rawValue: Swift.Int) public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int public typealias RawValue = Swift.Int
public var rawValue: Swift.Int { public var rawValue: Swift.Int {
get get
} }
} }
@objc @_inheritsConvenienceInitializers public class RSAKeyFactory : ObjectiveC.NSObject { @_inheritsConvenienceInitializers @objc public class MyIdAppearance : ObjectiveC.NSObject {
public static let shared: MyIdSDK.RSAKeyFactory @objc public var primaryColor: UIKit.UIColor?
public func generateKeyPair(keySize: MyIdSDK.SwiftyCryptoRSAKeySize) -> MyIdSDK.RSAKeyPairs? @objc public var errorColor: UIKit.UIColor?
@objc public var primaryButtonColor: UIKit.UIColor?
@objc public var primaryButtonColorDisabled: UIKit.UIColor?
@objc public var primaryButtonTextColor: UIKit.UIColor?
@objc public var primaryButtonTextColorDisabled: UIKit.UIColor?
@objc public var buttonCornerRadius: Swift.Float
@objc override dynamic public init() @objc override dynamic public init()
@objc deinit @objc deinit
} }
@objc public protocol MyIdClientDelegate { @objc public enum MyIdEntryType : Swift.Int {
@objc func onSuccess(result: MyIdSDK.MyIdResult) case AUTH = 0
@objc func onError(exception: MyIdSDK.MyIdException) case FACE
@objc func onUserExited() public init?(rawValue: Swift.Int)
} public typealias RawValue = Swift.Int
public struct Decrypter { public var rawValue: Swift.Int {
public init?<KeyType>(keyManagementAlgorithm: MyIdSDK.KeyManagementAlgorithm, contentEncryptionAlgorithm: MyIdSDK.ContentEncryptionAlgorithm, decryptionKey: KeyType) get
} }
extension MyIdSDK.Decrypter {
@available(*, deprecated, message: "Use `init?(keyManagementAlgorithm:contentEncryptionAlgorithm:decryptionKey:)` instead")
public init?<KeyType>(keyDecryptionAlgorithm: MyIdSDK.AsymmetricKeyAlgorithm, decryptionKey key: KeyType, contentDecryptionAlgorithm: MyIdSDK.SymmetricKeyAlgorithm)
@available(*, deprecated, message: "Use `init?(keyManagementAlgorithm:contentEncryptionAlgorithm:decryptionKey:)` instead")
public init?<KeyType>(keyDecryptionAlgorithm: MyIdSDK.AsymmetricKeyAlgorithm, keyDecryptionKey kdk: KeyType, contentDecryptionAlgorithm: MyIdSDK.SymmetricKeyAlgorithm)
}
@available(*, deprecated, message: "This type will be removed with the next major release.")
public struct DecryptionContext {
}
@available(*, deprecated, message: "This type will be removed with the next major release.")
public struct SymmetricDecryptionContext {
} }
@_inheritsConvenienceInitializers @objc public class MyIdConfig : ObjectiveC.NSObject { @_inheritsConvenienceInitializers @objc public class MyIdConfig : ObjectiveC.NSObject {
@objc public var clientId: Swift.String? @objc public var clientId: Swift.String?
...@@ -274,6 +111,7 @@ public struct SymmetricDecryptionContext { ...@@ -274,6 +111,7 @@ public struct SymmetricDecryptionContext {
@objc public var clientHashId: Swift.String? @objc public var clientHashId: Swift.String?
@objc public var passportData: Swift.String? @objc public var passportData: Swift.String?
@objc public var dateOfBirth: Swift.String? @objc public var dateOfBirth: Swift.String?
@objc public var minAge: Swift.Int
@objc public var sdkHash: Swift.String? @objc public var sdkHash: Swift.String?
@objc public var externalId: Swift.String? @objc public var externalId: Swift.String?
@objc public var threshold: Swift.Float @objc public var threshold: Swift.Float
...@@ -283,44 +121,18 @@ public struct SymmetricDecryptionContext { ...@@ -283,44 +121,18 @@ public struct SymmetricDecryptionContext {
@objc public var locale: MyIdSDK.MyIdLocale @objc public var locale: MyIdSDK.MyIdLocale
@objc public var cameraShape: MyIdSDK.MyIdCameraShape @objc public var cameraShape: MyIdSDK.MyIdCameraShape
@objc public var resolution: MyIdSDK.MyIdResolution @objc public var resolution: MyIdSDK.MyIdResolution
@objc public var cameraSelector: MyIdSDK.MyIdCameraSelector
@objc public var presentationStyle: MyIdSDK.MyIdPresentationStyle
@objc public var organizationDetails: MyIdSDK.MyIdOrganizationDetails? @objc public var organizationDetails: MyIdSDK.MyIdOrganizationDetails?
@objc public var appearance: MyIdSDK.MyIdAppearance? @objc public var appearance: MyIdSDK.MyIdAppearance?
@objc public var withPhoto: Swift.Bool @objc public var withPhoto: Swift.Bool
@objc override dynamic public init() @objc override dynamic public init()
@objc deinit @objc deinit
} }
extension MyIdSDK.RSAPublicKey : Swift.Encodable { @objc public protocol MyIdClientDelegate {
public func encode(to encoder: any Swift.Encoder) throws @objc func onSuccess(result: MyIdSDK.MyIdResult)
} @objc func onError(exception: MyIdSDK.MyIdException)
extension MyIdSDK.RSAPublicKey : Swift.Decodable { @objc func onUserExited()
public init(from decoder: any Swift.Decoder) throws
}
extension MyIdSDK.RSAPrivateKey : Swift.Encodable {
public func encode(to encoder: any Swift.Encoder) throws
}
extension MyIdSDK.RSAPrivateKey : Swift.Decodable {
public init(from decoder: any Swift.Decoder) throws
}
extension Foundation.Data : MyIdSDK.ExpressibleAsECPublicKeyComponents {
public static func representing(ecPublicKeyComponents components: MyIdSDK.ECPublicKeyComponents) throws -> Foundation.Data
public func ecPublicKeyComponents() throws -> MyIdSDK.ECPublicKeyComponents
}
public protocol CompactDeserializable {
static var componentCount: Swift.Int { get }
init(from deserializer: any MyIdSDK.CompactDeserializer) throws
}
public protocol CompactDeserializer {
func deserialize<T>(_ type: T.Type, at index: Swift.Int) throws -> T where T : MyIdSDK.DataConvertible
}
public struct JOSEDeserializer {
public init()
public func deserialize<T>(_ type: T.Type, fromCompactSerialization compactSerialization: Swift.String) throws -> T where T : MyIdSDK.CompactDeserializable
}
public enum ComponentCompactSerializedIndex {
}
extension Foundation.Data : MyIdSDK.ExpressibleAsECPrivateKeyComponents {
public static func representing(ecPrivateKeyComponents components: MyIdSDK.ECPrivateKeyComponents) throws -> Foundation.Data
public func ecPrivateKeyComponents() throws -> MyIdSDK.ECPrivateKeyComponents
} }
@_inheritsConvenienceInitializers @objc public class MyIdException : ObjectiveC.NSObject { @_inheritsConvenienceInitializers @objc public class MyIdException : ObjectiveC.NSObject {
@objc public var message: Swift.String? @objc public var message: Swift.String?
...@@ -328,97 +140,37 @@ extension Foundation.Data : MyIdSDK.ExpressibleAsECPrivateKeyComponents { ...@@ -328,97 +140,37 @@ extension Foundation.Data : MyIdSDK.ExpressibleAsECPrivateKeyComponents {
@objc override dynamic public init() @objc override dynamic public init()
@objc deinit @objc deinit
} }
@objc public enum MyIdResolution : Swift.Int { @_inheritsConvenienceInitializers @objc public class MyIdGenerator : ObjectiveC.NSObject {
case RESOLUTION_480 = 0 @objc public class func hash(payload: Swift.String, clientHash: Swift.String, clientHashId: Swift.String) -> Swift.String?
case RESOLUTION_720 @objc public class func device() -> Swift.String
@objc public class func deviceModel() -> Swift.String?
@objc public class func deviceName() -> Swift.String?
@objc public class func systemName() -> Swift.String?
@objc public class func systemVersion() -> Swift.String?
@objc public class func isPhone() -> Swift.Bool
@objc public class func isPad() -> Swift.Bool
@objc public class func isSimulator() -> Swift.Bool
@objc override dynamic public init()
@objc deinit
}
@objc public enum MyIdCameraShape : Swift.Int {
case ELLIPSE = 0
case CIRCLE
public init?(rawValue: Swift.Int) public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int public typealias RawValue = Swift.Int
public var rawValue: Swift.Int { public var rawValue: Swift.Int {
get get
} }
} }
extension Foundation.Data { @objc public enum MyIdCameraSelector : Swift.Int {
public init?(base64URLEncoded base64URLString: Swift.String) case FRONT = 0
public init?(base64URLEncoded base64URLData: Foundation.Data) case BACK
public func base64URLEncodedString() -> Swift.String
public func base64URLEncodedData() -> Foundation.Data
}
extension Foundation.Data : MyIdSDK.DataConvertible {
public init(_ data: Foundation.Data)
public func data() -> Foundation.Data
}
public typealias RSAPublicKeyComponents = (modulus: Foundation.Data, exponent: Foundation.Data)
public typealias RSAPrivateKeyComponents = (modulus: Foundation.Data, exponent: Foundation.Data, privateExponent: Foundation.Data)
public protocol ExpressibleAsRSAPublicKeyComponents {
static func representing(rsaPublicKeyComponents components: MyIdSDK.RSAPublicKeyComponents) throws -> Self
func rsaPublicKeyComponents() throws -> MyIdSDK.RSAPublicKeyComponents
}
public protocol ExpressibleAsRSAPrivateKeyComponents {
static func representing(rsaPrivateKeyComponents components: MyIdSDK.RSAPrivateKeyComponents) throws -> Self
func rsaPrivateKeyComponents() throws -> MyIdSDK.RSAPrivateKeyComponents
}
public struct RSAPublicKey : MyIdSDK.JWK {
public let keyType: MyIdSDK.JWKKeyType
public let parameters: [Swift.String : Swift.String]
public var requiredParameters: [Swift.String : Swift.String] {
get
}
public let modulus: Swift.String
public let exponent: Swift.String
public init(modulus: Swift.String, exponent: Swift.String, additionalParameters parameters: [Swift.String : Swift.String] = [:])
public init(publicKey: any MyIdSDK.ExpressibleAsRSAPublicKeyComponents, additionalParameters parameters: [Swift.String : Swift.String] = [:]) throws
public init(data: Foundation.Data) throws
public func converted<T>(to type: T.Type) throws -> T where T : MyIdSDK.ExpressibleAsRSAPublicKeyComponents
@available(iOS 11.0, *)
public func withThumbprintAsKeyId(algorithm: MyIdSDK.JWKThumbprintAlgorithm = .SHA256) throws -> MyIdSDK.RSAPublicKey
}
public struct RSAPrivateKey : MyIdSDK.JWK {
public let keyType: MyIdSDK.JWKKeyType
public let parameters: [Swift.String : Swift.String]
public var requiredParameters: [Swift.String : Swift.String] {
get
}
public let modulus: Swift.String
public let exponent: Swift.String
public let privateExponent: Swift.String
public init(modulus: Swift.String, exponent: Swift.String, privateExponent: Swift.String, additionalParameters parameters: [Swift.String : Swift.String] = [:])
public init(privateKey: any MyIdSDK.ExpressibleAsRSAPrivateKeyComponents, additionalParameters parameters: [Swift.String : Swift.String] = [:]) throws
public init(data: Foundation.Data) throws
public func converted<T>(to type: T.Type) throws -> T where T : MyIdSDK.ExpressibleAsRSAPrivateKeyComponents
@available(iOS 11.0, *)
public func withThumbprintAsKeyId(algorithm: MyIdSDK.JWKThumbprintAlgorithm = .SHA256) throws -> MyIdSDK.RSAPrivateKey
}
public typealias RSAKeyPair = MyIdSDK.RSAPrivateKey
@objc public enum MyIdCameraShape : Swift.Int {
case ELLIPSE = 0
case CIRCLE
public init?(rawValue: Swift.Int) public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int public typealias RawValue = Swift.Int
public var rawValue: Swift.Int { public var rawValue: Swift.Int {
get get
} }
} }
extension Swift.String : Swift.Error {
}
extension MyIdSDK.SymmetricKey : Swift.Encodable {
public func encode(to encoder: any Swift.Encoder) throws
}
extension MyIdSDK.SymmetricKey : Swift.Decodable {
public init(from decoder: any Swift.Decoder) throws
}
public class RSAMessage : MyIdSDK.Message {
public var data: Foundation.Data
public var base64String: Swift.String
required public init(data: Foundation.Data)
required convenience public init(base64String: Swift.String) throws
public func sign(signingKey: MyIdSDK.RSAKey, digestType: MyIdSDK.RSASignature.DigestType) throws -> MyIdSDK.RSASignature
public func verify(verifyKey: MyIdSDK.RSAKey, signature: MyIdSDK.RSASignature, digestType: MyIdSDK.RSASignature.DigestType) throws -> Swift.Bool
@objc deinit
}
extension Security.SecKey : MyIdSDK.ExpressibleAsECPublicKeyComponents {
public static func representing(ecPublicKeyComponents components: MyIdSDK.ECPublicKeyComponents) throws -> Self
public func ecPublicKeyComponents() throws -> MyIdSDK.ECPublicKeyComponents
}
@objc public enum MyIdResidency : Swift.Int { @objc public enum MyIdResidency : Swift.Int {
case USER_DEFINED = 0 case USER_DEFINED = 0
case RESIDENT case RESIDENT
...@@ -429,640 +181,46 @@ extension Security.SecKey : MyIdSDK.ExpressibleAsECPublicKeyComponents { ...@@ -429,640 +181,46 @@ extension Security.SecKey : MyIdSDK.ExpressibleAsECPublicKeyComponents {
get get
} }
} }
public protocol CommonHeaderParameterSpace { @objc public enum MyIdLocale : Swift.Int {
var jku: Foundation.URL? { get set } case RU = 0
var jwk: Swift.String? { get set } case EN
var jwkTyped: (any MyIdSDK.JWK)? { get set } case UZ
var kid: Swift.String? { get set }
var x5u: Foundation.URL? { get set }
var x5c: [Swift.String]? { get set }
var x5t: Swift.String? { get set }
var x5tS256: Swift.String? { get set }
var typ: Swift.String? { get set }
var cty: Swift.String? { get set }
var crit: [Swift.String]? { get set }
}
public enum ECCurveType : Swift.String, Swift.Codable {
case P256
case P384
case P521
public init?(rawValue: Swift.String)
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
public enum ECCompression : Swift.UInt8 {
case CompressedYEven
case CompressedYOdd
case Uncompressed
case HybridYEven
case HybridYOdd
public init?(rawValue: Swift.UInt8)
public typealias RawValue = Swift.UInt8
public var rawValue: Swift.UInt8 {
get
}
}
public struct JWEHeader {
public init(keyManagementAlgorithm: MyIdSDK.KeyManagementAlgorithm, contentEncryptionAlgorithm: MyIdSDK.ContentEncryptionAlgorithm)
public init(parameters: [Swift.String : Any]) throws
}
extension MyIdSDK.JWEHeader {
public var keyManagementAlgorithm: MyIdSDK.KeyManagementAlgorithm? {
get
}
public var contentEncryptionAlgorithm: MyIdSDK.ContentEncryptionAlgorithm? {
get
}
public var compressionAlgorithm: MyIdSDK.CompressionAlgorithm? {
get
}
public var zip: Swift.String? {
get
set
}
}
extension MyIdSDK.JWEHeader : MyIdSDK.CommonHeaderParameterSpace {
public var jku: Foundation.URL? {
get
set
}
public var jwk: Swift.String? {
get
set
}
public var jwkTyped: (any MyIdSDK.JWK)? {
get
set
}
public var kid: Swift.String? {
get
set
}
public var x5u: Foundation.URL? {
get
set
}
public var x5c: [Swift.String]? {
get
set
}
public var x5t: Swift.String? {
get
set
}
public var x5tS256: Swift.String? {
get
set
}
public var typ: Swift.String? {
get
set
}
public var cty: Swift.String? {
get
set
}
public var crit: [Swift.String]? {
get
set
}
}
extension MyIdSDK.JWEHeader {
@available(*, deprecated, message: "Use `JWEHeader.keyManagementAlgorithm` instead")
public var algorithm: MyIdSDK.AsymmetricKeyAlgorithm? {
get
}
@available(*, deprecated, message: "Use `JWEHeader.contentEncryptionAlgorithm` instead")
public var encryptionAlgorithm: MyIdSDK.SymmetricKeyAlgorithm? {
get
}
@available(*, deprecated, message: "Use `init(keyManagementAlgorithm:contentEncryptionAlgorithm` instead")
public init(algorithm: MyIdSDK.AsymmetricKeyAlgorithm, encryptionAlgorithm: MyIdSDK.SymmetricKeyAlgorithm)
}
public struct Encrypter<KeyType> {
public init?(keyManagementAlgorithm: MyIdSDK.KeyManagementAlgorithm, contentEncryptionAlgorithm: MyIdSDK.ContentEncryptionAlgorithm, encryptionKey: KeyType)
}
extension MyIdSDK.Encrypter {
@available(*, deprecated, message: "Use `init?(keyManagementAlgorithm:contentEncryptionAlgorithm:encryptionKey:)` instead")
public init?(keyEncryptionAlgorithm: MyIdSDK.AsymmetricKeyAlgorithm, encryptionKey key: KeyType, contentEncyptionAlgorithm: MyIdSDK.SymmetricKeyAlgorithm)
@available(*, deprecated, message: "Use `init?(keyManagementAlgorithm:contentEncryptionAlgorithm:encryptionKey:)` instead")
public init?(keyEncryptionAlgorithm: MyIdSDK.AsymmetricKeyAlgorithm, keyEncryptionKey kek: KeyType, contentEncyptionAlgorithm: MyIdSDK.SymmetricKeyAlgorithm)
}
@available(*, deprecated, message: "This type will be removed with the next major release.")
public struct EncryptionContext {
}
@available(*, deprecated, message: "This type will be removed with the next major release.")
public struct SymmetricEncryptionContext {
}
public struct JWS {
public let header: MyIdSDK.JWSHeader
public let payload: MyIdSDK.Payload
public let signature: Foundation.Data
public var compactSerializedString: Swift.String {
get
}
public var compactSerializedData: Foundation.Data {
get
}
public init<KeyType>(header: MyIdSDK.JWSHeader, payload: MyIdSDK.Payload, signer: MyIdSDK.Signer<KeyType>) throws
public init(compactSerialization: Swift.String) throws
public init(compactSerialization: Foundation.Data) throws
@available(*, deprecated, message: "Use `isValid(for verifier:)` instead")
public func isValid<KeyType>(for publicKey: KeyType) -> Swift.Bool
@available(*, deprecated, message: "Use `validate(using verifier:)` instead")
public func validate<KeyType>(with publicKey: KeyType) throws -> MyIdSDK.JWS
public func validate(using verifier: MyIdSDK.Verifier) throws -> MyIdSDK.JWS
public func isValid(for verifier: MyIdSDK.Verifier) -> Swift.Bool
}
extension MyIdSDK.JWS : MyIdSDK.CompactSerializable {
public func serialize(to serializer: inout any MyIdSDK.CompactSerializer)
}
extension MyIdSDK.JWS : MyIdSDK.CompactDeserializable {
public static var componentCount: Swift.Int {
get
}
public init(from deserializer: any MyIdSDK.CompactDeserializer) throws
}
extension Security.SecKey : MyIdSDK.ExpressibleAsECPrivateKeyComponents {
public static func representing(ecPrivateKeyComponents components: MyIdSDK.ECPrivateKeyComponents) throws -> Self
public func ecPrivateKeyComponents() throws -> MyIdSDK.ECPrivateKeyComponents
}
public enum SignatureAlgorithm : Swift.String {
case HS256
case HS384
case HS512
case RS256
case RS384
case RS512
@available(iOS 11, *)
case PS256
@available(iOS 11, *)
case PS384
@available(iOS 11, *)
case PS512
case ES256
case ES384
case ES512
public init?(rawValue: Swift.String)
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
public enum KeyManagementAlgorithm : Swift.String, Swift.CaseIterable {
case RSA1_5
case RSAOAEP
case RSAOAEP256
case A128KW
case A192KW
case A256KW
case direct
public init?(rawValue: Swift.String)
public typealias AllCases = [MyIdSDK.KeyManagementAlgorithm]
public typealias RawValue = Swift.String
public static var allCases: [MyIdSDK.KeyManagementAlgorithm] {
get
}
public var rawValue: Swift.String {
get
}
}
public enum ContentEncryptionAlgorithm : Swift.String {
case A256CBCHS512
case A128CBCHS256
public init?(rawValue: Swift.String)
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
public enum HMACAlgorithm : Swift.String {
case SHA512
case SHA384
case SHA256
public init?(rawValue: Swift.String)
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
public enum JWKThumbprintAlgorithm : Swift.String {
case SHA256
public init?(rawValue: Swift.String)
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
public enum CompressionAlgorithm : Swift.String {
case DEFLATE
case NONE
public init?(rawValue: Swift.String)
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
@available(*, deprecated, message: "Use `KeyManagementAlgorithm` instead")
public typealias AsymmetricKeyAlgorithm = MyIdSDK.KeyManagementAlgorithm
@available(*, deprecated, message: "Use `ContentEncryptionAlgorithm` instead")
public typealias SymmetricKeyAlgorithm = MyIdSDK.ContentEncryptionAlgorithm
@objc public enum MyIdEntryType : Swift.Int {
case AUTH = 0
case FACE
public init?(rawValue: Swift.Int) public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int public typealias RawValue = Swift.Int
public var rawValue: Swift.Int { public var rawValue: Swift.Int {
get get
} }
} }
extension Security.SecKey : MyIdSDK.ExpressibleAsRSAPublicKeyComponents {
public static func representing(rsaPublicKeyComponents components: MyIdSDK.RSAPublicKeyComponents) throws -> Self
public func rsaPublicKeyComponents() throws -> MyIdSDK.RSAPublicKeyComponents
}
extension MyIdSDK.JWKSet : Swift.Encodable {
public func encode(to encoder: any Swift.Encoder) throws
}
extension MyIdSDK.JWKSet : Swift.Decodable {
public init(from decoder: any Swift.Decoder) throws
}
public enum SwiftyCryptoError : Swift.Error {
case invalidBase64String
case invalidKeyFormat
case invalidAsn1Structure
case asn1ParsingFailed
case invalidAsn1RootNode
case tagEncodingFailed
case keyCreateFailed(error: CoreFoundation.CFError?)
case keyAddFailed(status: Darwin.OSStatus)
case keyCopyFailed(status: Darwin.OSStatus)
case invalidDigestSize(digestSize: Swift.Int, maxChunkSize: Swift.Int)
case signatureCreateFailed(status: Darwin.OSStatus)
case signatureVerifyFailed(status: Darwin.OSStatus)
case keyRepresentationFailed(error: CoreFoundation.CFError?)
}
public struct JWSHeader {
public init(algorithm: MyIdSDK.SignatureAlgorithm)
public init(parameters: [Swift.String : Any]) throws
}
extension MyIdSDK.JWSHeader {
public var algorithm: MyIdSDK.SignatureAlgorithm? {
get
}
}
extension MyIdSDK.JWSHeader : MyIdSDK.CommonHeaderParameterSpace {
public var jku: Foundation.URL? {
get
set
}
public var jwk: Swift.String? {
get
set
}
public var jwkTyped: (any MyIdSDK.JWK)? {
get
set
}
public var kid: Swift.String? {
get
set
}
public var x5u: Foundation.URL? {
get
set
}
public var x5c: [Swift.String]? {
get
set
}
public var x5t: Swift.String? {
get
set
}
public var x5tS256: Swift.String? {
get
set
}
public var typ: Swift.String? {
get
set
}
public var cty: Swift.String? {
get
set
}
public var crit: [Swift.String]? {
get
set
}
}
extension MyIdSDK.ECPublicKey : Swift.Encodable {
public func encode(to encoder: any Swift.Encoder) throws
}
extension MyIdSDK.ECPublicKey : Swift.Decodable {
public init(from decoder: any Swift.Decoder) throws
}
extension MyIdSDK.ECPrivateKey : Swift.Encodable {
public func encode(to encoder: any Swift.Encoder) throws
}
extension MyIdSDK.ECPrivateKey : Swift.Decodable {
public init(from decoder: any Swift.Decoder) throws
}
@_inheritsConvenienceInitializers @objc public class MyIdOrganizationDetails : ObjectiveC.NSObject { @_inheritsConvenienceInitializers @objc public class MyIdOrganizationDetails : ObjectiveC.NSObject {
@objc public var phoneNumber: Swift.String? @objc public var phoneNumber: Swift.String?
@objc public var logo: UIKit.UIImage? @objc public var logo: UIKit.UIImage?
@objc override dynamic public init() @objc override dynamic public init()
@objc deinit @objc deinit
} }
@objc public enum MyIdDocumentType : Swift.Int { extension MyIdSDK.MyIdDocumentType : Swift.Equatable {}
case ID_CARD = 0 extension MyIdSDK.MyIdDocumentType : Swift.Hashable {}
case PASSPORT extension MyIdSDK.MyIdDocumentType : Swift.RawRepresentable {}
case DRIVER_LICENSE
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
extension MyIdSDK.JWK {
public subscript(parameter: Swift.String) -> Swift.String? {
get
}
}
extension MyIdSDK.JWK {
public func jsonString() -> Swift.String?
public func jsonData() -> Foundation.Data?
}
public struct JWE {
public let header: MyIdSDK.JWEHeader
public let encryptedKey: Foundation.Data
public let initializationVector: Foundation.Data
public let ciphertext: Foundation.Data
public let authenticationTag: Foundation.Data
public var compactSerializedString: Swift.String {
get
}
public var compactSerializedData: Foundation.Data {
get
}
public init<KeyType>(header: MyIdSDK.JWEHeader, payload: MyIdSDK.Payload, encrypter: MyIdSDK.Encrypter<KeyType>) throws
public init(compactSerialization: Swift.String) throws
public init(compactSerialization: Foundation.Data) throws
@available(*, deprecated, message: "Use `decrypt(using decrypter:)` instead")
public func decrypt<KeyType>(with key: KeyType) throws -> MyIdSDK.Payload
public func decrypt(using decrypter: MyIdSDK.Decrypter) throws -> MyIdSDK.Payload
}
extension MyIdSDK.JWE : MyIdSDK.CompactSerializable {
public func serialize(to serializer: inout any MyIdSDK.CompactSerializer)
}
extension MyIdSDK.JWE : MyIdSDK.CompactDeserializable {
public static var componentCount: Swift.Int {
get
}
public init(from deserializer: any MyIdSDK.CompactDeserializer) throws
}
@_inheritsConvenienceInitializers @objc public class MyIdClient : ObjectiveC.NSObject {
@objc public class func start(withConfig config: MyIdSDK.MyIdConfig, withDelegate delegate: any MyIdSDK.MyIdClientDelegate)
@objc override dynamic public init()
@objc deinit
}
public enum RSAKeyType {
case PUBLIC
case PRIVATE
public static func == (a: MyIdSDK.RSAKeyType, b: MyIdSDK.RSAKeyType) -> Swift.Bool
public func hash(into hasher: inout Swift.Hasher)
public var hashValue: Swift.Int {
get
}
}
public struct RSAKeyPairs {
public var privateKey: MyIdSDK.RSAKey
public var publicKey: MyIdSDK.RSAKey
}
public class RSAKey {
public var key: Security.SecKey
public var keyBase64String: Swift.String
public var data: Foundation.Data?
public var keyType: MyIdSDK.RSAKeyType!
public init(key: Security.SecKey, keyBase64String: Swift.String, keyType: MyIdSDK.RSAKeyType)
public init(base64String: Swift.String, keyType: MyIdSDK.RSAKeyType) throws
public static func base64StringWithoutPrefixAndSuffix(pemString: Swift.String) throws -> Swift.String
public func pemString() throws -> Swift.String
public func format(keyData: Foundation.Data, keyType: MyIdSDK.RSAKeyType) -> Swift.String
@objc deinit
}
@_inheritsConvenienceInitializers @objc public class MyIdAppearance : ObjectiveC.NSObject {
@objc public var primaryColor: UIKit.UIColor?
@objc public var secondaryColor: UIKit.UIColor?
@objc public var errorColor: UIKit.UIColor?
@objc public var primaryButtonColor: UIKit.UIColor?
@objc public var primaryButtonColorDisabled: UIKit.UIColor?
@objc public var primaryButtonTextColor: UIKit.UIColor?
@objc public var primaryButtonTextColorDisabled: UIKit.UIColor?
@objc public var buttonCornerRadius: Swift.Float
@objc override dynamic public init()
@objc deinit
}
@_inheritsConvenienceInitializers @objc public class MyIdResult : ObjectiveC.NSObject {
@objc public var image: UIKit.UIImage?
@objc public var code: Swift.String?
@objc public var comparisonValue: Swift.String?
@objc override dynamic public init()
@objc deinit
}
@objc public enum MyIdLocale : Swift.Int {
case RU = 0
case EN
case UZ
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
public struct Verifier {
public init?<KeyType>(verifyingAlgorithm: MyIdSDK.SignatureAlgorithm, key: KeyType)
}
extension MyIdSDK.Verifier {
@available(*, deprecated, message: "Use `init?(verifyingAlgorithm: SignatureAlgorithm, key: KeyType)` instead")
public init?<KeyType>(verifyingAlgorithm: MyIdSDK.SignatureAlgorithm, publicKey: KeyType)
}
public enum JWKKeyType : Swift.String, Swift.Codable {
case RSA
case OCT
case EC
public init?(rawValue: Swift.String)
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
public protocol JWK : Swift.Decodable, Swift.Encodable {
var keyType: MyIdSDK.JWKKeyType { get }
var parameters: [Swift.String : Swift.String] { get }
var requiredParameters: [Swift.String : Swift.String] { get }
subscript(parameter: Swift.String) -> Swift.String? { get }
init(data: Foundation.Data) throws
func jsonString() -> Swift.String?
func jsonData() -> Foundation.Data?
@available(iOS 11.0, *)
func thumbprint(algorithm: MyIdSDK.JWKThumbprintAlgorithm) throws -> Swift.String
@available(iOS 11.0, *)
func withThumbprintAsKeyId(algorithm: MyIdSDK.JWKThumbprintAlgorithm) throws -> Self
}
extension MyIdSDK.JWK {
@available(iOS 11.0, *)
public func thumbprint(algorithm: MyIdSDK.JWKThumbprintAlgorithm = .SHA256) throws -> Swift.String
}
public struct JWKSet {
public let keys: [any MyIdSDK.JWK]
public init(keys: [any MyIdSDK.JWK])
public init(data: Foundation.Data) throws
public func jsonString() -> Swift.String?
public func jsonData() -> Foundation.Data?
}
extension MyIdSDK.JWKSet : Swift.Collection {
public typealias ArrayType = [any MyIdSDK.JWK]
public typealias Element = MyIdSDK.JWKSet.ArrayType.Element
public typealias Index = MyIdSDK.JWKSet.ArrayType.Index
public typealias Iterator = MyIdSDK.JWKSet.ArrayType.Iterator
public var startIndex: MyIdSDK.JWKSet.Index {
get
}
public var endIndex: MyIdSDK.JWKSet.Index {
get
}
public subscript(index: MyIdSDK.JWKSet.Index) -> MyIdSDK.JWKSet.Element {
get
}
public func index(after index: MyIdSDK.JWKSet.Index) -> MyIdSDK.JWKSet.Index
public func makeIterator() -> Swift.IndexingIterator<MyIdSDK.JWKSet.ArrayType>
public typealias Indices = Swift.DefaultIndices<MyIdSDK.JWKSet>
public typealias SubSequence = Swift.Slice<MyIdSDK.JWKSet>
}
extension MyIdSDK.JWKSet : Swift.ExpressibleByArrayLiteral {
public typealias ArrayLiteralElement = MyIdSDK.JWKSet.Element
public init(arrayLiteral elements: MyIdSDK.JWKSet.ArrayLiteralElement...)
}
public typealias ECPublicKeyComponents = (crv: Swift.String, x: Foundation.Data, y: Foundation.Data)
public typealias ECPrivateKeyComponents = (crv: Swift.String, x: Foundation.Data, y: Foundation.Data, d: Foundation.Data)
public protocol ExpressibleAsECPublicKeyComponents {
static func representing(ecPublicKeyComponents components: MyIdSDK.ECPublicKeyComponents) throws -> Self
func ecPublicKeyComponents() throws -> MyIdSDK.ECPublicKeyComponents
}
public protocol ExpressibleAsECPrivateKeyComponents {
static func representing(ecPrivateKeyComponents components: MyIdSDK.ECPrivateKeyComponents) throws -> Self
func ecPrivateKeyComponents() throws -> MyIdSDK.ECPrivateKeyComponents
}
public struct ECPublicKey : MyIdSDK.JWK {
public let keyType: MyIdSDK.JWKKeyType
public let parameters: [Swift.String : Swift.String]
public var requiredParameters: [Swift.String : Swift.String] {
get
}
public let crv: MyIdSDK.ECCurveType
public let x: Swift.String
public let y: Swift.String
public init(crv: MyIdSDK.ECCurveType, x: Swift.String, y: Swift.String, additionalParameters parameters: [Swift.String : Swift.String] = [:])
public init(publicKey: any MyIdSDK.ExpressibleAsECPublicKeyComponents, additionalParameters parameters: [Swift.String : Swift.String] = [:]) throws
public init(data: Foundation.Data) throws
public func converted<T>(to type: T.Type) throws -> T where T : MyIdSDK.ExpressibleAsECPublicKeyComponents
@available(iOS 11.0, *)
public func withThumbprintAsKeyId(algorithm: MyIdSDK.JWKThumbprintAlgorithm = .SHA256) throws -> MyIdSDK.ECPublicKey
}
public struct ECPrivateKey : MyIdSDK.JWK {
public let keyType: MyIdSDK.JWKKeyType
public let parameters: [Swift.String : Swift.String]
public var requiredParameters: [Swift.String : Swift.String] {
get
}
public let crv: MyIdSDK.ECCurveType
public let x: Swift.String
public let y: Swift.String
public let privateKey: Swift.String
public init(crv: Swift.String, x: Swift.String, y: Swift.String, privateKey: Swift.String, additionalParameters parameters: [Swift.String : Swift.String] = [:]) throws
public init(privateKey: any MyIdSDK.ExpressibleAsECPrivateKeyComponents, additionalParameters parameters: [Swift.String : Swift.String] = [:]) throws
public init(data: Foundation.Data) throws
public func converted<T>(to type: T.Type) throws -> T where T : MyIdSDK.ExpressibleAsECPrivateKeyComponents
@available(iOS 11.0, *)
public func withThumbprintAsKeyId(algorithm: MyIdSDK.JWKThumbprintAlgorithm = .SHA256) throws -> MyIdSDK.ECPrivateKey
}
public typealias ECKeyPair = MyIdSDK.ECPrivateKey
public struct Signer<KeyType> {
public init?(signingAlgorithm: MyIdSDK.SignatureAlgorithm, key: KeyType)
}
extension MyIdSDK.Signer {
@available(*, deprecated, message: "Use `init?(signingAlgorithm: SignatureAlgorithm, key: KeyType)` instead")
public init?(signingAlgorithm: MyIdSDK.SignatureAlgorithm, privateKey: KeyType)
}
extension MyIdSDK.RSASignature.DigestType : Swift.Equatable {}
extension MyIdSDK.RSASignature.DigestType : Swift.Hashable {}
extension MyIdSDK.MyIdBuildMode : Swift.Equatable {} extension MyIdSDK.MyIdBuildMode : Swift.Equatable {}
extension MyIdSDK.MyIdBuildMode : Swift.Hashable {} extension MyIdSDK.MyIdBuildMode : Swift.Hashable {}
extension MyIdSDK.MyIdBuildMode : Swift.RawRepresentable {} extension MyIdSDK.MyIdBuildMode : Swift.RawRepresentable {}
extension MyIdSDK.JWKParameter : Swift.Equatable {}
extension MyIdSDK.JWKParameter : Swift.Hashable {}
extension MyIdSDK.JWKParameter : Swift.RawRepresentable {}
extension MyIdSDK.RSAParameter : Swift.Equatable {}
extension MyIdSDK.RSAParameter : Swift.Hashable {}
extension MyIdSDK.RSAParameter : Swift.RawRepresentable {}
extension MyIdSDK.SymmetricKeyParameter : Swift.Equatable {}
extension MyIdSDK.SymmetricKeyParameter : Swift.Hashable {}
extension MyIdSDK.SymmetricKeyParameter : Swift.RawRepresentable {}
extension MyIdSDK.ECParameter : Swift.Equatable {}
extension MyIdSDK.ECParameter : Swift.Hashable {}
extension MyIdSDK.ECParameter : Swift.RawRepresentable {}
extension MyIdSDK.SwiftyCryptoRSAKeySize : Swift.Equatable {}
extension MyIdSDK.SwiftyCryptoRSAKeySize : Swift.Hashable {}
extension MyIdSDK.SwiftyCryptoRSAKeySize : Swift.RawRepresentable {}
extension MyIdSDK.JWKThumbprintAlgorithm : Swift.Equatable {}
extension MyIdSDK.JWKThumbprintAlgorithm : Swift.Hashable {}
extension MyIdSDK.JWKThumbprintAlgorithm : Swift.RawRepresentable {}
extension MyIdSDK.ContentEncryptionAlgorithm : Swift.Equatable {}
extension MyIdSDK.ContentEncryptionAlgorithm : Swift.Hashable {}
extension MyIdSDK.ContentEncryptionAlgorithm : Swift.RawRepresentable {}
extension MyIdSDK.KeyManagementAlgorithm : Swift.Equatable {}
extension MyIdSDK.KeyManagementAlgorithm : Swift.Hashable {}
extension MyIdSDK.KeyManagementAlgorithm : Swift.RawRepresentable {}
extension MyIdSDK.MyIdResolution : Swift.Equatable {} extension MyIdSDK.MyIdResolution : Swift.Equatable {}
extension MyIdSDK.MyIdResolution : Swift.Hashable {} extension MyIdSDK.MyIdResolution : Swift.Hashable {}
extension MyIdSDK.MyIdResolution : Swift.RawRepresentable {} extension MyIdSDK.MyIdResolution : Swift.RawRepresentable {}
extension MyIdSDK.MyIdPresentationStyle : Swift.Equatable {}
extension MyIdSDK.MyIdPresentationStyle : Swift.Hashable {}
extension MyIdSDK.MyIdPresentationStyle : Swift.RawRepresentable {}
extension MyIdSDK.MyIdEntryType : Swift.Equatable {}
extension MyIdSDK.MyIdEntryType : Swift.Hashable {}
extension MyIdSDK.MyIdEntryType : Swift.RawRepresentable {}
extension MyIdSDK.MyIdCameraShape : Swift.Equatable {} extension MyIdSDK.MyIdCameraShape : Swift.Equatable {}
extension MyIdSDK.MyIdCameraShape : Swift.Hashable {} extension MyIdSDK.MyIdCameraShape : Swift.Hashable {}
extension MyIdSDK.MyIdCameraShape : Swift.RawRepresentable {} extension MyIdSDK.MyIdCameraShape : Swift.RawRepresentable {}
extension MyIdSDK.MyIdCameraSelector : Swift.Equatable {}
extension MyIdSDK.MyIdCameraSelector : Swift.Hashable {}
extension MyIdSDK.MyIdCameraSelector : Swift.RawRepresentable {}
extension MyIdSDK.MyIdResidency : Swift.Equatable {} extension MyIdSDK.MyIdResidency : Swift.Equatable {}
extension MyIdSDK.MyIdResidency : Swift.Hashable {} extension MyIdSDK.MyIdResidency : Swift.Hashable {}
extension MyIdSDK.MyIdResidency : Swift.RawRepresentable {} extension MyIdSDK.MyIdResidency : Swift.RawRepresentable {}
extension MyIdSDK.ECCurveType : Swift.Equatable {}
extension MyIdSDK.ECCurveType : Swift.Hashable {}
extension MyIdSDK.ECCurveType : Swift.RawRepresentable {}
extension MyIdSDK.SignatureAlgorithm : Swift.Equatable {}
extension MyIdSDK.SignatureAlgorithm : Swift.Hashable {}
extension MyIdSDK.SignatureAlgorithm : Swift.RawRepresentable {}
extension MyIdSDK.ECCompression : Swift.Equatable {}
extension MyIdSDK.ECCompression : Swift.Hashable {}
extension MyIdSDK.ECCompression : Swift.RawRepresentable {}
extension MyIdSDK.JWEHeader : MyIdSDK.DataConvertible {}
extension MyIdSDK.HMACAlgorithm : Swift.Equatable {}
extension MyIdSDK.HMACAlgorithm : Swift.Hashable {}
extension MyIdSDK.HMACAlgorithm : Swift.RawRepresentable {}
extension MyIdSDK.CompressionAlgorithm : Swift.Equatable {}
extension MyIdSDK.CompressionAlgorithm : Swift.Hashable {}
extension MyIdSDK.CompressionAlgorithm : Swift.RawRepresentable {}
extension MyIdSDK.MyIdEntryType : Swift.Equatable {}
extension MyIdSDK.MyIdEntryType : Swift.Hashable {}
extension MyIdSDK.MyIdEntryType : Swift.RawRepresentable {}
extension MyIdSDK.JWSHeader : MyIdSDK.DataConvertible {}
extension MyIdSDK.MyIdDocumentType : Swift.Equatable {}
extension MyIdSDK.MyIdDocumentType : Swift.Hashable {}
extension MyIdSDK.MyIdDocumentType : Swift.RawRepresentable {}
extension MyIdSDK.RSAKeyType : Swift.Equatable {}
extension MyIdSDK.RSAKeyType : Swift.Hashable {}
extension MyIdSDK.MyIdLocale : Swift.Equatable {} extension MyIdSDK.MyIdLocale : Swift.Equatable {}
extension MyIdSDK.MyIdLocale : Swift.Hashable {} extension MyIdSDK.MyIdLocale : Swift.Hashable {}
extension MyIdSDK.MyIdLocale : Swift.RawRepresentable {} extension MyIdSDK.MyIdLocale : Swift.RawRepresentable {}
extension MyIdSDK.JWKKeyType : Swift.Equatable {}
extension MyIdSDK.JWKKeyType : Swift.Hashable {}
extension MyIdSDK.JWKKeyType : Swift.RawRepresentable {}
...@@ -15,116 +15,46 @@ import LocalAuthentication ...@@ -15,116 +15,46 @@ import LocalAuthentication
@_exported import MyIdSDK @_exported import MyIdSDK
import Security import Security
import Swift import Swift
import SwiftUI
import UIKit import UIKit
import Vision import Vision
import _Concurrency import _Concurrency
import _StringProcessing import _StringProcessing
public protocol DataConvertible { @_inheritsConvenienceInitializers @objc public class MyIdResult : ObjectiveC.NSObject {
init?(_ data: Foundation.Data) @objc public var image: UIKit.UIImage?
func data() -> Foundation.Data @objc public var code: Swift.String?
} @objc public var comparisonValue: Swift.String?
public struct Payload : MyIdSDK.DataConvertible { @objc override dynamic public init()
public init(_ payload: Foundation.Data) @objc deinit
public func data() -> Foundation.Data
} }
public protocol Message { extension Swift.String : Swift.Error {
var data: Foundation.Data { get }
var base64String: Swift.String { get }
init(data: Foundation.Data)
init(base64String: Swift.String) throws
} }
extension MyIdSDK.Message { @objc public enum MyIdDocumentType : Swift.Int {
public var base64String: Swift.String { case ID_CARD = 0
case PASSPORT
case DRIVER_LICENSE
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get get
} }
} }
extension Foundation.Data : MyIdSDK.ExpressibleAsRSAPublicKeyComponents { @_inheritsConvenienceInitializers @available(iOS 13.0, *)
public static func representing(rsaPublicKeyComponents components: MyIdSDK.RSAPublicKeyComponents) throws -> Foundation.Data @objc public class MyIdViewModel : ObjectiveC.NSObject, Combine.ObservableObject {
public func rsaPublicKeyComponents() throws -> MyIdSDK.RSAPublicKeyComponents @objc public func startMyId(clientId: Swift.String, clientHash: Swift.String, clientHashId: Swift.String, passportData: Swift.String? = nil, dateOfBirth: Swift.String? = nil, minAge: Swift.Int = 16, sdkHash: Swift.String? = nil, externalId: Swift.String? = nil, threshold: Swift.Float = 0.5, buildMode: MyIdSDK.MyIdBuildMode = MyIdBuildMode.PRODUCTION, entryType: MyIdSDK.MyIdEntryType = MyIdEntryType.AUTH, residency: MyIdSDK.MyIdResidency = MyIdResidency.RESIDENT, locale: MyIdSDK.MyIdLocale = MyIdLocale.RU, cameraShape: MyIdSDK.MyIdCameraShape = MyIdCameraShape.CIRCLE, resolution: MyIdSDK.MyIdResolution = MyIdResolution.RESOLUTION_480, cameraSelector: MyIdSDK.MyIdCameraSelector = MyIdCameraSelector.FRONT, presentationStyle: MyIdSDK.MyIdPresentationStyle = MyIdPresentationStyle.FULL, organizationDetails: MyIdSDK.MyIdOrganizationDetails? = nil, appearance: MyIdSDK.MyIdAppearance? = nil, withPhoto: Swift.Bool = false)
} @objc override dynamic public init()
public class RSASignature { public typealias ObjectWillChangePublisher = Combine.ObservableObjectPublisher
public enum DigestType {
case sha1
case sha224
case sha256
case sha384
case sha512
public static func == (a: MyIdSDK.RSASignature.DigestType, b: MyIdSDK.RSASignature.DigestType) -> Swift.Bool
public func hash(into hasher: inout Swift.Hasher)
public var hashValue: Swift.Int {
get
}
}
final public let data: Foundation.Data
public init(data: Foundation.Data)
convenience public init(base64Encoded base64String: Swift.String) throws
public var base64String: Swift.String {
get
}
@objc deinit @objc deinit
} }
public enum JOSESwiftError : Swift.Error { @available(iOS 13.0, *)
case signingFailed(description: Swift.String) @objc extension MyIdSDK.MyIdViewModel : MyIdSDK.MyIdClientDelegate {
case verifyingFailed(description: Swift.String) @objc dynamic public func onSuccess(result: MyIdSDK.MyIdResult)
case signatureInvalid @objc dynamic public func onError(exception: MyIdSDK.MyIdException)
case encryptingFailed(description: Swift.String) @objc dynamic public func onUserExited()
case decryptingFailed(description: Swift.String)
case wrongDataEncoding(data: Foundation.Data)
case invalidCompactSerializationComponentCount(count: Swift.Int)
case componentNotValidBase64URL(component: Swift.String)
case componentCouldNotBeInitializedFromData(data: Foundation.Data)
case couldNotConstructJWK
case modulusNotBase64URLUIntEncoded
case exponentNotBase64URLUIntEncoded
case privateExponentNotBase64URLUIntEncoded
case symmetricKeyNotBase64URLEncoded
case xNotBase64URLUIntEncoded
case yNotBase64URLUIntEncoded
case privateKeyNotBase64URLUIntEncoded
case invalidCurveType
case compressedCurvePointsUnsupported
case invalidCurvePointOctetLength
case localAuthenticationFailed(errorCode: Swift.Int)
case compressionFailed
case decompressionFailed
case compressionAlgorithmNotSupported
case rawDataMustBeGreaterThanZero
case compressedDataMustBeGreaterThanZero
case thumbprintSerialization
}
extension Foundation.Data : MyIdSDK.ExpressibleAsSymmetricKeyComponents {
public static func representing(symmetricKeyComponents components: MyIdSDK.SymmetricKeyComponents) throws -> Foundation.Data
public func symmetricKeyComponents() throws -> MyIdSDK.SymmetricKeyComponents
} }
public typealias SymmetricKeyComponents = (Foundation.Data) @_inheritsConvenienceInitializers @objc public class MyIdClient : ObjectiveC.NSObject {
public protocol ExpressibleAsSymmetricKeyComponents { @objc public class func start(withConfig config: MyIdSDK.MyIdConfig, withDelegate delegate: any MyIdSDK.MyIdClientDelegate)
static func representing(symmetricKeyComponents components: MyIdSDK.SymmetricKeyComponents) throws -> Self @objc public class func run(withConfig config: MyIdSDK.MyIdConfig, withDelegate delegate: any MyIdSDK.MyIdClientDelegate) -> UIKit.UIViewController
func symmetricKeyComponents() throws -> MyIdSDK.SymmetricKeyComponents
}
public struct SymmetricKey : MyIdSDK.JWK {
public let keyType: MyIdSDK.JWKKeyType
public let parameters: [Swift.String : Swift.String]
public var requiredParameters: [Swift.String : Swift.String] {
get
}
public let key: Swift.String
public init(key: Foundation.Data, additionalParameters parameters: [Swift.String : Swift.String] = [:])
public init(key: any MyIdSDK.ExpressibleAsSymmetricKeyComponents, additionalParameters parameters: [Swift.String : Swift.String] = [:]) throws
public init(data: Foundation.Data) throws
public func converted<T>(to type: T.Type) throws -> T where T : MyIdSDK.ExpressibleAsSymmetricKeyComponents
@available(iOS 11.0, *)
public func withThumbprintAsKeyId(algorithm: MyIdSDK.JWKThumbprintAlgorithm = .SHA256) throws -> MyIdSDK.SymmetricKey
}
@_inheritsConvenienceInitializers @objc public class MyIdGenerator : ObjectiveC.NSObject {
@objc public class func hash(payload: Swift.String, clientHash: Swift.String, clientHashId: Swift.String) -> Swift.String?
@objc public class func device() -> Swift.String
@objc public class func deviceModel() -> Swift.String?
@objc public class func deviceName() -> Swift.String?
@objc public class func systemName() -> Swift.String?
@objc public class func systemVersion() -> Swift.String?
@objc public class func isPhone() -> Swift.Bool
@objc public class func isPad() -> Swift.Bool
@objc public class func isSimulator() -> Swift.Bool
@objc override dynamic public init() @objc override dynamic public init()
@objc deinit @objc deinit
} }
...@@ -137,136 +67,43 @@ public struct SymmetricKey : MyIdSDK.JWK { ...@@ -137,136 +67,43 @@ public struct SymmetricKey : MyIdSDK.JWK {
get get
} }
} }
public enum SecureRandomError : Swift.Error { @objc public enum MyIdResolution : Swift.Int {
case failed(status: Darwin.OSStatus) case RESOLUTION_480 = 0
case countMustBeGreaterThanZero case RESOLUTION_720
} public init?(rawValue: Swift.Int)
public struct SecureRandom { public typealias RawValue = Swift.Int
public static func generate(count: Swift.Int) throws -> Foundation.Data public var rawValue: Swift.Int {
}
public enum JWKParameter : Swift.String, Swift.CodingKey {
case keyType
case keyUse
case keyOperations
case algorithm
case keyIdentifier
case X509URL
case X509CertificateChain
case X509CertificateSHA1Thumbprint
case X509CertificateSHA256Thumbprint
public init?(rawValue: Swift.String)
public init?(stringValue: Swift.String)
public init?(intValue: Swift.Int)
public typealias RawValue = Swift.String
public var intValue: Swift.Int? {
get
}
public var rawValue: Swift.String {
get
}
public var stringValue: Swift.String {
get
}
}
public enum RSAParameter : Swift.String, Swift.CodingKey {
case modulus
case exponent
case privateExponent
public init?(rawValue: Swift.String)
public init?(stringValue: Swift.String)
public init?(intValue: Swift.Int)
public typealias RawValue = Swift.String
public var intValue: Swift.Int? {
get
}
public var rawValue: Swift.String {
get
}
public var stringValue: Swift.String {
get
}
}
public enum SymmetricKeyParameter : Swift.String, Swift.CodingKey {
case key
public init?(rawValue: Swift.String)
public init?(stringValue: Swift.String)
public init?(intValue: Swift.Int)
public typealias RawValue = Swift.String
public var intValue: Swift.Int? {
get
}
public var rawValue: Swift.String {
get
}
public var stringValue: Swift.String {
get
}
}
public enum ECParameter : Swift.String, Swift.CodingKey {
case curve
case x
case y
case privateKey
public init?(rawValue: Swift.String)
public init?(stringValue: Swift.String)
public init?(intValue: Swift.Int)
public typealias RawValue = Swift.String
public var intValue: Swift.Int? {
get
}
public var rawValue: Swift.String {
get
}
public var stringValue: Swift.String {
get get
} }
} }
public protocol CompactSerializable { @objc public enum MyIdPresentationStyle : Swift.Int {
func serialize(to serializer: inout any MyIdSDK.CompactSerializer) case FULL = 0
} case SHEET
public protocol CompactSerializer {
var components: [any MyIdSDK.DataConvertible] { get }
mutating func serialize<T>(_ object: T) where T : MyIdSDK.DataConvertible
}
public struct JOSESerializer {
public func serialize<T>(compact object: T) -> Swift.String where T : MyIdSDK.CompactSerializable
}
public enum SwiftyCryptoRSAKeySize : Swift.Int {
case RSAKey64
case RSAKey128
case RSAKey256
case RSAKey512
public init?(rawValue: Swift.Int) public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int public typealias RawValue = Swift.Int
public var rawValue: Swift.Int { public var rawValue: Swift.Int {
get get
} }
} }
@objc @_inheritsConvenienceInitializers public class RSAKeyFactory : ObjectiveC.NSObject { @_inheritsConvenienceInitializers @objc public class MyIdAppearance : ObjectiveC.NSObject {
public static let shared: MyIdSDK.RSAKeyFactory @objc public var primaryColor: UIKit.UIColor?
public func generateKeyPair(keySize: MyIdSDK.SwiftyCryptoRSAKeySize) -> MyIdSDK.RSAKeyPairs? @objc public var errorColor: UIKit.UIColor?
@objc public var primaryButtonColor: UIKit.UIColor?
@objc public var primaryButtonColorDisabled: UIKit.UIColor?
@objc public var primaryButtonTextColor: UIKit.UIColor?
@objc public var primaryButtonTextColorDisabled: UIKit.UIColor?
@objc public var buttonCornerRadius: Swift.Float
@objc override dynamic public init() @objc override dynamic public init()
@objc deinit @objc deinit
} }
@objc public protocol MyIdClientDelegate { @objc public enum MyIdEntryType : Swift.Int {
@objc func onSuccess(result: MyIdSDK.MyIdResult) case AUTH = 0
@objc func onError(exception: MyIdSDK.MyIdException) case FACE
@objc func onUserExited() public init?(rawValue: Swift.Int)
} public typealias RawValue = Swift.Int
public struct Decrypter { public var rawValue: Swift.Int {
public init?<KeyType>(keyManagementAlgorithm: MyIdSDK.KeyManagementAlgorithm, contentEncryptionAlgorithm: MyIdSDK.ContentEncryptionAlgorithm, decryptionKey: KeyType) get
} }
extension MyIdSDK.Decrypter {
@available(*, deprecated, message: "Use `init?(keyManagementAlgorithm:contentEncryptionAlgorithm:decryptionKey:)` instead")
public init?<KeyType>(keyDecryptionAlgorithm: MyIdSDK.AsymmetricKeyAlgorithm, decryptionKey key: KeyType, contentDecryptionAlgorithm: MyIdSDK.SymmetricKeyAlgorithm)
@available(*, deprecated, message: "Use `init?(keyManagementAlgorithm:contentEncryptionAlgorithm:decryptionKey:)` instead")
public init?<KeyType>(keyDecryptionAlgorithm: MyIdSDK.AsymmetricKeyAlgorithm, keyDecryptionKey kdk: KeyType, contentDecryptionAlgorithm: MyIdSDK.SymmetricKeyAlgorithm)
}
@available(*, deprecated, message: "This type will be removed with the next major release.")
public struct DecryptionContext {
}
@available(*, deprecated, message: "This type will be removed with the next major release.")
public struct SymmetricDecryptionContext {
} }
@_inheritsConvenienceInitializers @objc public class MyIdConfig : ObjectiveC.NSObject { @_inheritsConvenienceInitializers @objc public class MyIdConfig : ObjectiveC.NSObject {
@objc public var clientId: Swift.String? @objc public var clientId: Swift.String?
...@@ -274,6 +111,7 @@ public struct SymmetricDecryptionContext { ...@@ -274,6 +111,7 @@ public struct SymmetricDecryptionContext {
@objc public var clientHashId: Swift.String? @objc public var clientHashId: Swift.String?
@objc public var passportData: Swift.String? @objc public var passportData: Swift.String?
@objc public var dateOfBirth: Swift.String? @objc public var dateOfBirth: Swift.String?
@objc public var minAge: Swift.Int
@objc public var sdkHash: Swift.String? @objc public var sdkHash: Swift.String?
@objc public var externalId: Swift.String? @objc public var externalId: Swift.String?
@objc public var threshold: Swift.Float @objc public var threshold: Swift.Float
...@@ -283,44 +121,18 @@ public struct SymmetricDecryptionContext { ...@@ -283,44 +121,18 @@ public struct SymmetricDecryptionContext {
@objc public var locale: MyIdSDK.MyIdLocale @objc public var locale: MyIdSDK.MyIdLocale
@objc public var cameraShape: MyIdSDK.MyIdCameraShape @objc public var cameraShape: MyIdSDK.MyIdCameraShape
@objc public var resolution: MyIdSDK.MyIdResolution @objc public var resolution: MyIdSDK.MyIdResolution
@objc public var cameraSelector: MyIdSDK.MyIdCameraSelector
@objc public var presentationStyle: MyIdSDK.MyIdPresentationStyle
@objc public var organizationDetails: MyIdSDK.MyIdOrganizationDetails? @objc public var organizationDetails: MyIdSDK.MyIdOrganizationDetails?
@objc public var appearance: MyIdSDK.MyIdAppearance? @objc public var appearance: MyIdSDK.MyIdAppearance?
@objc public var withPhoto: Swift.Bool @objc public var withPhoto: Swift.Bool
@objc override dynamic public init() @objc override dynamic public init()
@objc deinit @objc deinit
} }
extension MyIdSDK.RSAPublicKey : Swift.Encodable { @objc public protocol MyIdClientDelegate {
public func encode(to encoder: any Swift.Encoder) throws @objc func onSuccess(result: MyIdSDK.MyIdResult)
} @objc func onError(exception: MyIdSDK.MyIdException)
extension MyIdSDK.RSAPublicKey : Swift.Decodable { @objc func onUserExited()
public init(from decoder: any Swift.Decoder) throws
}
extension MyIdSDK.RSAPrivateKey : Swift.Encodable {
public func encode(to encoder: any Swift.Encoder) throws
}
extension MyIdSDK.RSAPrivateKey : Swift.Decodable {
public init(from decoder: any Swift.Decoder) throws
}
extension Foundation.Data : MyIdSDK.ExpressibleAsECPublicKeyComponents {
public static func representing(ecPublicKeyComponents components: MyIdSDK.ECPublicKeyComponents) throws -> Foundation.Data
public func ecPublicKeyComponents() throws -> MyIdSDK.ECPublicKeyComponents
}
public protocol CompactDeserializable {
static var componentCount: Swift.Int { get }
init(from deserializer: any MyIdSDK.CompactDeserializer) throws
}
public protocol CompactDeserializer {
func deserialize<T>(_ type: T.Type, at index: Swift.Int) throws -> T where T : MyIdSDK.DataConvertible
}
public struct JOSEDeserializer {
public init()
public func deserialize<T>(_ type: T.Type, fromCompactSerialization compactSerialization: Swift.String) throws -> T where T : MyIdSDK.CompactDeserializable
}
public enum ComponentCompactSerializedIndex {
}
extension Foundation.Data : MyIdSDK.ExpressibleAsECPrivateKeyComponents {
public static func representing(ecPrivateKeyComponents components: MyIdSDK.ECPrivateKeyComponents) throws -> Foundation.Data
public func ecPrivateKeyComponents() throws -> MyIdSDK.ECPrivateKeyComponents
} }
@_inheritsConvenienceInitializers @objc public class MyIdException : ObjectiveC.NSObject { @_inheritsConvenienceInitializers @objc public class MyIdException : ObjectiveC.NSObject {
@objc public var message: Swift.String? @objc public var message: Swift.String?
...@@ -328,97 +140,37 @@ extension Foundation.Data : MyIdSDK.ExpressibleAsECPrivateKeyComponents { ...@@ -328,97 +140,37 @@ extension Foundation.Data : MyIdSDK.ExpressibleAsECPrivateKeyComponents {
@objc override dynamic public init() @objc override dynamic public init()
@objc deinit @objc deinit
} }
@objc public enum MyIdResolution : Swift.Int { @_inheritsConvenienceInitializers @objc public class MyIdGenerator : ObjectiveC.NSObject {
case RESOLUTION_480 = 0 @objc public class func hash(payload: Swift.String, clientHash: Swift.String, clientHashId: Swift.String) -> Swift.String?
case RESOLUTION_720 @objc public class func device() -> Swift.String
@objc public class func deviceModel() -> Swift.String?
@objc public class func deviceName() -> Swift.String?
@objc public class func systemName() -> Swift.String?
@objc public class func systemVersion() -> Swift.String?
@objc public class func isPhone() -> Swift.Bool
@objc public class func isPad() -> Swift.Bool
@objc public class func isSimulator() -> Swift.Bool
@objc override dynamic public init()
@objc deinit
}
@objc public enum MyIdCameraShape : Swift.Int {
case ELLIPSE = 0
case CIRCLE
public init?(rawValue: Swift.Int) public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int public typealias RawValue = Swift.Int
public var rawValue: Swift.Int { public var rawValue: Swift.Int {
get get
} }
} }
extension Foundation.Data { @objc public enum MyIdCameraSelector : Swift.Int {
public init?(base64URLEncoded base64URLString: Swift.String) case FRONT = 0
public init?(base64URLEncoded base64URLData: Foundation.Data) case BACK
public func base64URLEncodedString() -> Swift.String
public func base64URLEncodedData() -> Foundation.Data
}
extension Foundation.Data : MyIdSDK.DataConvertible {
public init(_ data: Foundation.Data)
public func data() -> Foundation.Data
}
public typealias RSAPublicKeyComponents = (modulus: Foundation.Data, exponent: Foundation.Data)
public typealias RSAPrivateKeyComponents = (modulus: Foundation.Data, exponent: Foundation.Data, privateExponent: Foundation.Data)
public protocol ExpressibleAsRSAPublicKeyComponents {
static func representing(rsaPublicKeyComponents components: MyIdSDK.RSAPublicKeyComponents) throws -> Self
func rsaPublicKeyComponents() throws -> MyIdSDK.RSAPublicKeyComponents
}
public protocol ExpressibleAsRSAPrivateKeyComponents {
static func representing(rsaPrivateKeyComponents components: MyIdSDK.RSAPrivateKeyComponents) throws -> Self
func rsaPrivateKeyComponents() throws -> MyIdSDK.RSAPrivateKeyComponents
}
public struct RSAPublicKey : MyIdSDK.JWK {
public let keyType: MyIdSDK.JWKKeyType
public let parameters: [Swift.String : Swift.String]
public var requiredParameters: [Swift.String : Swift.String] {
get
}
public let modulus: Swift.String
public let exponent: Swift.String
public init(modulus: Swift.String, exponent: Swift.String, additionalParameters parameters: [Swift.String : Swift.String] = [:])
public init(publicKey: any MyIdSDK.ExpressibleAsRSAPublicKeyComponents, additionalParameters parameters: [Swift.String : Swift.String] = [:]) throws
public init(data: Foundation.Data) throws
public func converted<T>(to type: T.Type) throws -> T where T : MyIdSDK.ExpressibleAsRSAPublicKeyComponents
@available(iOS 11.0, *)
public func withThumbprintAsKeyId(algorithm: MyIdSDK.JWKThumbprintAlgorithm = .SHA256) throws -> MyIdSDK.RSAPublicKey
}
public struct RSAPrivateKey : MyIdSDK.JWK {
public let keyType: MyIdSDK.JWKKeyType
public let parameters: [Swift.String : Swift.String]
public var requiredParameters: [Swift.String : Swift.String] {
get
}
public let modulus: Swift.String
public let exponent: Swift.String
public let privateExponent: Swift.String
public init(modulus: Swift.String, exponent: Swift.String, privateExponent: Swift.String, additionalParameters parameters: [Swift.String : Swift.String] = [:])
public init(privateKey: any MyIdSDK.ExpressibleAsRSAPrivateKeyComponents, additionalParameters parameters: [Swift.String : Swift.String] = [:]) throws
public init(data: Foundation.Data) throws
public func converted<T>(to type: T.Type) throws -> T where T : MyIdSDK.ExpressibleAsRSAPrivateKeyComponents
@available(iOS 11.0, *)
public func withThumbprintAsKeyId(algorithm: MyIdSDK.JWKThumbprintAlgorithm = .SHA256) throws -> MyIdSDK.RSAPrivateKey
}
public typealias RSAKeyPair = MyIdSDK.RSAPrivateKey
@objc public enum MyIdCameraShape : Swift.Int {
case ELLIPSE = 0
case CIRCLE
public init?(rawValue: Swift.Int) public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int public typealias RawValue = Swift.Int
public var rawValue: Swift.Int { public var rawValue: Swift.Int {
get get
} }
} }
extension Swift.String : Swift.Error {
}
extension MyIdSDK.SymmetricKey : Swift.Encodable {
public func encode(to encoder: any Swift.Encoder) throws
}
extension MyIdSDK.SymmetricKey : Swift.Decodable {
public init(from decoder: any Swift.Decoder) throws
}
public class RSAMessage : MyIdSDK.Message {
public var data: Foundation.Data
public var base64String: Swift.String
required public init(data: Foundation.Data)
required convenience public init(base64String: Swift.String) throws
public func sign(signingKey: MyIdSDK.RSAKey, digestType: MyIdSDK.RSASignature.DigestType) throws -> MyIdSDK.RSASignature
public func verify(verifyKey: MyIdSDK.RSAKey, signature: MyIdSDK.RSASignature, digestType: MyIdSDK.RSASignature.DigestType) throws -> Swift.Bool
@objc deinit
}
extension Security.SecKey : MyIdSDK.ExpressibleAsECPublicKeyComponents {
public static func representing(ecPublicKeyComponents components: MyIdSDK.ECPublicKeyComponents) throws -> Self
public func ecPublicKeyComponents() throws -> MyIdSDK.ECPublicKeyComponents
}
@objc public enum MyIdResidency : Swift.Int { @objc public enum MyIdResidency : Swift.Int {
case USER_DEFINED = 0 case USER_DEFINED = 0
case RESIDENT case RESIDENT
...@@ -429,640 +181,46 @@ extension Security.SecKey : MyIdSDK.ExpressibleAsECPublicKeyComponents { ...@@ -429,640 +181,46 @@ extension Security.SecKey : MyIdSDK.ExpressibleAsECPublicKeyComponents {
get get
} }
} }
public protocol CommonHeaderParameterSpace { @objc public enum MyIdLocale : Swift.Int {
var jku: Foundation.URL? { get set } case RU = 0
var jwk: Swift.String? { get set } case EN
var jwkTyped: (any MyIdSDK.JWK)? { get set } case UZ
var kid: Swift.String? { get set }
var x5u: Foundation.URL? { get set }
var x5c: [Swift.String]? { get set }
var x5t: Swift.String? { get set }
var x5tS256: Swift.String? { get set }
var typ: Swift.String? { get set }
var cty: Swift.String? { get set }
var crit: [Swift.String]? { get set }
}
public enum ECCurveType : Swift.String, Swift.Codable {
case P256
case P384
case P521
public init?(rawValue: Swift.String)
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
public enum ECCompression : Swift.UInt8 {
case CompressedYEven
case CompressedYOdd
case Uncompressed
case HybridYEven
case HybridYOdd
public init?(rawValue: Swift.UInt8)
public typealias RawValue = Swift.UInt8
public var rawValue: Swift.UInt8 {
get
}
}
public struct JWEHeader {
public init(keyManagementAlgorithm: MyIdSDK.KeyManagementAlgorithm, contentEncryptionAlgorithm: MyIdSDK.ContentEncryptionAlgorithm)
public init(parameters: [Swift.String : Any]) throws
}
extension MyIdSDK.JWEHeader {
public var keyManagementAlgorithm: MyIdSDK.KeyManagementAlgorithm? {
get
}
public var contentEncryptionAlgorithm: MyIdSDK.ContentEncryptionAlgorithm? {
get
}
public var compressionAlgorithm: MyIdSDK.CompressionAlgorithm? {
get
}
public var zip: Swift.String? {
get
set
}
}
extension MyIdSDK.JWEHeader : MyIdSDK.CommonHeaderParameterSpace {
public var jku: Foundation.URL? {
get
set
}
public var jwk: Swift.String? {
get
set
}
public var jwkTyped: (any MyIdSDK.JWK)? {
get
set
}
public var kid: Swift.String? {
get
set
}
public var x5u: Foundation.URL? {
get
set
}
public var x5c: [Swift.String]? {
get
set
}
public var x5t: Swift.String? {
get
set
}
public var x5tS256: Swift.String? {
get
set
}
public var typ: Swift.String? {
get
set
}
public var cty: Swift.String? {
get
set
}
public var crit: [Swift.String]? {
get
set
}
}
extension MyIdSDK.JWEHeader {
@available(*, deprecated, message: "Use `JWEHeader.keyManagementAlgorithm` instead")
public var algorithm: MyIdSDK.AsymmetricKeyAlgorithm? {
get
}
@available(*, deprecated, message: "Use `JWEHeader.contentEncryptionAlgorithm` instead")
public var encryptionAlgorithm: MyIdSDK.SymmetricKeyAlgorithm? {
get
}
@available(*, deprecated, message: "Use `init(keyManagementAlgorithm:contentEncryptionAlgorithm` instead")
public init(algorithm: MyIdSDK.AsymmetricKeyAlgorithm, encryptionAlgorithm: MyIdSDK.SymmetricKeyAlgorithm)
}
public struct Encrypter<KeyType> {
public init?(keyManagementAlgorithm: MyIdSDK.KeyManagementAlgorithm, contentEncryptionAlgorithm: MyIdSDK.ContentEncryptionAlgorithm, encryptionKey: KeyType)
}
extension MyIdSDK.Encrypter {
@available(*, deprecated, message: "Use `init?(keyManagementAlgorithm:contentEncryptionAlgorithm:encryptionKey:)` instead")
public init?(keyEncryptionAlgorithm: MyIdSDK.AsymmetricKeyAlgorithm, encryptionKey key: KeyType, contentEncyptionAlgorithm: MyIdSDK.SymmetricKeyAlgorithm)
@available(*, deprecated, message: "Use `init?(keyManagementAlgorithm:contentEncryptionAlgorithm:encryptionKey:)` instead")
public init?(keyEncryptionAlgorithm: MyIdSDK.AsymmetricKeyAlgorithm, keyEncryptionKey kek: KeyType, contentEncyptionAlgorithm: MyIdSDK.SymmetricKeyAlgorithm)
}
@available(*, deprecated, message: "This type will be removed with the next major release.")
public struct EncryptionContext {
}
@available(*, deprecated, message: "This type will be removed with the next major release.")
public struct SymmetricEncryptionContext {
}
public struct JWS {
public let header: MyIdSDK.JWSHeader
public let payload: MyIdSDK.Payload
public let signature: Foundation.Data
public var compactSerializedString: Swift.String {
get
}
public var compactSerializedData: Foundation.Data {
get
}
public init<KeyType>(header: MyIdSDK.JWSHeader, payload: MyIdSDK.Payload, signer: MyIdSDK.Signer<KeyType>) throws
public init(compactSerialization: Swift.String) throws
public init(compactSerialization: Foundation.Data) throws
@available(*, deprecated, message: "Use `isValid(for verifier:)` instead")
public func isValid<KeyType>(for publicKey: KeyType) -> Swift.Bool
@available(*, deprecated, message: "Use `validate(using verifier:)` instead")
public func validate<KeyType>(with publicKey: KeyType) throws -> MyIdSDK.JWS
public func validate(using verifier: MyIdSDK.Verifier) throws -> MyIdSDK.JWS
public func isValid(for verifier: MyIdSDK.Verifier) -> Swift.Bool
}
extension MyIdSDK.JWS : MyIdSDK.CompactSerializable {
public func serialize(to serializer: inout any MyIdSDK.CompactSerializer)
}
extension MyIdSDK.JWS : MyIdSDK.CompactDeserializable {
public static var componentCount: Swift.Int {
get
}
public init(from deserializer: any MyIdSDK.CompactDeserializer) throws
}
extension Security.SecKey : MyIdSDK.ExpressibleAsECPrivateKeyComponents {
public static func representing(ecPrivateKeyComponents components: MyIdSDK.ECPrivateKeyComponents) throws -> Self
public func ecPrivateKeyComponents() throws -> MyIdSDK.ECPrivateKeyComponents
}
public enum SignatureAlgorithm : Swift.String {
case HS256
case HS384
case HS512
case RS256
case RS384
case RS512
@available(iOS 11, *)
case PS256
@available(iOS 11, *)
case PS384
@available(iOS 11, *)
case PS512
case ES256
case ES384
case ES512
public init?(rawValue: Swift.String)
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
public enum KeyManagementAlgorithm : Swift.String, Swift.CaseIterable {
case RSA1_5
case RSAOAEP
case RSAOAEP256
case A128KW
case A192KW
case A256KW
case direct
public init?(rawValue: Swift.String)
public typealias AllCases = [MyIdSDK.KeyManagementAlgorithm]
public typealias RawValue = Swift.String
public static var allCases: [MyIdSDK.KeyManagementAlgorithm] {
get
}
public var rawValue: Swift.String {
get
}
}
public enum ContentEncryptionAlgorithm : Swift.String {
case A256CBCHS512
case A128CBCHS256
public init?(rawValue: Swift.String)
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
public enum HMACAlgorithm : Swift.String {
case SHA512
case SHA384
case SHA256
public init?(rawValue: Swift.String)
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
public enum JWKThumbprintAlgorithm : Swift.String {
case SHA256
public init?(rawValue: Swift.String)
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
public enum CompressionAlgorithm : Swift.String {
case DEFLATE
case NONE
public init?(rawValue: Swift.String)
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
@available(*, deprecated, message: "Use `KeyManagementAlgorithm` instead")
public typealias AsymmetricKeyAlgorithm = MyIdSDK.KeyManagementAlgorithm
@available(*, deprecated, message: "Use `ContentEncryptionAlgorithm` instead")
public typealias SymmetricKeyAlgorithm = MyIdSDK.ContentEncryptionAlgorithm
@objc public enum MyIdEntryType : Swift.Int {
case AUTH = 0
case FACE
public init?(rawValue: Swift.Int) public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int public typealias RawValue = Swift.Int
public var rawValue: Swift.Int { public var rawValue: Swift.Int {
get get
} }
} }
extension Security.SecKey : MyIdSDK.ExpressibleAsRSAPublicKeyComponents {
public static func representing(rsaPublicKeyComponents components: MyIdSDK.RSAPublicKeyComponents) throws -> Self
public func rsaPublicKeyComponents() throws -> MyIdSDK.RSAPublicKeyComponents
}
extension MyIdSDK.JWKSet : Swift.Encodable {
public func encode(to encoder: any Swift.Encoder) throws
}
extension MyIdSDK.JWKSet : Swift.Decodable {
public init(from decoder: any Swift.Decoder) throws
}
public enum SwiftyCryptoError : Swift.Error {
case invalidBase64String
case invalidKeyFormat
case invalidAsn1Structure
case asn1ParsingFailed
case invalidAsn1RootNode
case tagEncodingFailed
case keyCreateFailed(error: CoreFoundation.CFError?)
case keyAddFailed(status: Darwin.OSStatus)
case keyCopyFailed(status: Darwin.OSStatus)
case invalidDigestSize(digestSize: Swift.Int, maxChunkSize: Swift.Int)
case signatureCreateFailed(status: Darwin.OSStatus)
case signatureVerifyFailed(status: Darwin.OSStatus)
case keyRepresentationFailed(error: CoreFoundation.CFError?)
}
public struct JWSHeader {
public init(algorithm: MyIdSDK.SignatureAlgorithm)
public init(parameters: [Swift.String : Any]) throws
}
extension MyIdSDK.JWSHeader {
public var algorithm: MyIdSDK.SignatureAlgorithm? {
get
}
}
extension MyIdSDK.JWSHeader : MyIdSDK.CommonHeaderParameterSpace {
public var jku: Foundation.URL? {
get
set
}
public var jwk: Swift.String? {
get
set
}
public var jwkTyped: (any MyIdSDK.JWK)? {
get
set
}
public var kid: Swift.String? {
get
set
}
public var x5u: Foundation.URL? {
get
set
}
public var x5c: [Swift.String]? {
get
set
}
public var x5t: Swift.String? {
get
set
}
public var x5tS256: Swift.String? {
get
set
}
public var typ: Swift.String? {
get
set
}
public var cty: Swift.String? {
get
set
}
public var crit: [Swift.String]? {
get
set
}
}
extension MyIdSDK.ECPublicKey : Swift.Encodable {
public func encode(to encoder: any Swift.Encoder) throws
}
extension MyIdSDK.ECPublicKey : Swift.Decodable {
public init(from decoder: any Swift.Decoder) throws
}
extension MyIdSDK.ECPrivateKey : Swift.Encodable {
public func encode(to encoder: any Swift.Encoder) throws
}
extension MyIdSDK.ECPrivateKey : Swift.Decodable {
public init(from decoder: any Swift.Decoder) throws
}
@_inheritsConvenienceInitializers @objc public class MyIdOrganizationDetails : ObjectiveC.NSObject { @_inheritsConvenienceInitializers @objc public class MyIdOrganizationDetails : ObjectiveC.NSObject {
@objc public var phoneNumber: Swift.String? @objc public var phoneNumber: Swift.String?
@objc public var logo: UIKit.UIImage? @objc public var logo: UIKit.UIImage?
@objc override dynamic public init() @objc override dynamic public init()
@objc deinit @objc deinit
} }
@objc public enum MyIdDocumentType : Swift.Int { extension MyIdSDK.MyIdDocumentType : Swift.Equatable {}
case ID_CARD = 0 extension MyIdSDK.MyIdDocumentType : Swift.Hashable {}
case PASSPORT extension MyIdSDK.MyIdDocumentType : Swift.RawRepresentable {}
case DRIVER_LICENSE
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
extension MyIdSDK.JWK {
public subscript(parameter: Swift.String) -> Swift.String? {
get
}
}
extension MyIdSDK.JWK {
public func jsonString() -> Swift.String?
public func jsonData() -> Foundation.Data?
}
public struct JWE {
public let header: MyIdSDK.JWEHeader
public let encryptedKey: Foundation.Data
public let initializationVector: Foundation.Data
public let ciphertext: Foundation.Data
public let authenticationTag: Foundation.Data
public var compactSerializedString: Swift.String {
get
}
public var compactSerializedData: Foundation.Data {
get
}
public init<KeyType>(header: MyIdSDK.JWEHeader, payload: MyIdSDK.Payload, encrypter: MyIdSDK.Encrypter<KeyType>) throws
public init(compactSerialization: Swift.String) throws
public init(compactSerialization: Foundation.Data) throws
@available(*, deprecated, message: "Use `decrypt(using decrypter:)` instead")
public func decrypt<KeyType>(with key: KeyType) throws -> MyIdSDK.Payload
public func decrypt(using decrypter: MyIdSDK.Decrypter) throws -> MyIdSDK.Payload
}
extension MyIdSDK.JWE : MyIdSDK.CompactSerializable {
public func serialize(to serializer: inout any MyIdSDK.CompactSerializer)
}
extension MyIdSDK.JWE : MyIdSDK.CompactDeserializable {
public static var componentCount: Swift.Int {
get
}
public init(from deserializer: any MyIdSDK.CompactDeserializer) throws
}
@_inheritsConvenienceInitializers @objc public class MyIdClient : ObjectiveC.NSObject {
@objc public class func start(withConfig config: MyIdSDK.MyIdConfig, withDelegate delegate: any MyIdSDK.MyIdClientDelegate)
@objc override dynamic public init()
@objc deinit
}
public enum RSAKeyType {
case PUBLIC
case PRIVATE
public static func == (a: MyIdSDK.RSAKeyType, b: MyIdSDK.RSAKeyType) -> Swift.Bool
public func hash(into hasher: inout Swift.Hasher)
public var hashValue: Swift.Int {
get
}
}
public struct RSAKeyPairs {
public var privateKey: MyIdSDK.RSAKey
public var publicKey: MyIdSDK.RSAKey
}
public class RSAKey {
public var key: Security.SecKey
public var keyBase64String: Swift.String
public var data: Foundation.Data?
public var keyType: MyIdSDK.RSAKeyType!
public init(key: Security.SecKey, keyBase64String: Swift.String, keyType: MyIdSDK.RSAKeyType)
public init(base64String: Swift.String, keyType: MyIdSDK.RSAKeyType) throws
public static func base64StringWithoutPrefixAndSuffix(pemString: Swift.String) throws -> Swift.String
public func pemString() throws -> Swift.String
public func format(keyData: Foundation.Data, keyType: MyIdSDK.RSAKeyType) -> Swift.String
@objc deinit
}
@_inheritsConvenienceInitializers @objc public class MyIdAppearance : ObjectiveC.NSObject {
@objc public var primaryColor: UIKit.UIColor?
@objc public var secondaryColor: UIKit.UIColor?
@objc public var errorColor: UIKit.UIColor?
@objc public var primaryButtonColor: UIKit.UIColor?
@objc public var primaryButtonColorDisabled: UIKit.UIColor?
@objc public var primaryButtonTextColor: UIKit.UIColor?
@objc public var primaryButtonTextColorDisabled: UIKit.UIColor?
@objc public var buttonCornerRadius: Swift.Float
@objc override dynamic public init()
@objc deinit
}
@_inheritsConvenienceInitializers @objc public class MyIdResult : ObjectiveC.NSObject {
@objc public var image: UIKit.UIImage?
@objc public var code: Swift.String?
@objc public var comparisonValue: Swift.String?
@objc override dynamic public init()
@objc deinit
}
@objc public enum MyIdLocale : Swift.Int {
case RU = 0
case EN
case UZ
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
public struct Verifier {
public init?<KeyType>(verifyingAlgorithm: MyIdSDK.SignatureAlgorithm, key: KeyType)
}
extension MyIdSDK.Verifier {
@available(*, deprecated, message: "Use `init?(verifyingAlgorithm: SignatureAlgorithm, key: KeyType)` instead")
public init?<KeyType>(verifyingAlgorithm: MyIdSDK.SignatureAlgorithm, publicKey: KeyType)
}
public enum JWKKeyType : Swift.String, Swift.Codable {
case RSA
case OCT
case EC
public init?(rawValue: Swift.String)
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
public protocol JWK : Swift.Decodable, Swift.Encodable {
var keyType: MyIdSDK.JWKKeyType { get }
var parameters: [Swift.String : Swift.String] { get }
var requiredParameters: [Swift.String : Swift.String] { get }
subscript(parameter: Swift.String) -> Swift.String? { get }
init(data: Foundation.Data) throws
func jsonString() -> Swift.String?
func jsonData() -> Foundation.Data?
@available(iOS 11.0, *)
func thumbprint(algorithm: MyIdSDK.JWKThumbprintAlgorithm) throws -> Swift.String
@available(iOS 11.0, *)
func withThumbprintAsKeyId(algorithm: MyIdSDK.JWKThumbprintAlgorithm) throws -> Self
}
extension MyIdSDK.JWK {
@available(iOS 11.0, *)
public func thumbprint(algorithm: MyIdSDK.JWKThumbprintAlgorithm = .SHA256) throws -> Swift.String
}
public struct JWKSet {
public let keys: [any MyIdSDK.JWK]
public init(keys: [any MyIdSDK.JWK])
public init(data: Foundation.Data) throws
public func jsonString() -> Swift.String?
public func jsonData() -> Foundation.Data?
}
extension MyIdSDK.JWKSet : Swift.Collection {
public typealias ArrayType = [any MyIdSDK.JWK]
public typealias Element = MyIdSDK.JWKSet.ArrayType.Element
public typealias Index = MyIdSDK.JWKSet.ArrayType.Index
public typealias Iterator = MyIdSDK.JWKSet.ArrayType.Iterator
public var startIndex: MyIdSDK.JWKSet.Index {
get
}
public var endIndex: MyIdSDK.JWKSet.Index {
get
}
public subscript(index: MyIdSDK.JWKSet.Index) -> MyIdSDK.JWKSet.Element {
get
}
public func index(after index: MyIdSDK.JWKSet.Index) -> MyIdSDK.JWKSet.Index
public func makeIterator() -> Swift.IndexingIterator<MyIdSDK.JWKSet.ArrayType>
public typealias Indices = Swift.DefaultIndices<MyIdSDK.JWKSet>
public typealias SubSequence = Swift.Slice<MyIdSDK.JWKSet>
}
extension MyIdSDK.JWKSet : Swift.ExpressibleByArrayLiteral {
public typealias ArrayLiteralElement = MyIdSDK.JWKSet.Element
public init(arrayLiteral elements: MyIdSDK.JWKSet.ArrayLiteralElement...)
}
public typealias ECPublicKeyComponents = (crv: Swift.String, x: Foundation.Data, y: Foundation.Data)
public typealias ECPrivateKeyComponents = (crv: Swift.String, x: Foundation.Data, y: Foundation.Data, d: Foundation.Data)
public protocol ExpressibleAsECPublicKeyComponents {
static func representing(ecPublicKeyComponents components: MyIdSDK.ECPublicKeyComponents) throws -> Self
func ecPublicKeyComponents() throws -> MyIdSDK.ECPublicKeyComponents
}
public protocol ExpressibleAsECPrivateKeyComponents {
static func representing(ecPrivateKeyComponents components: MyIdSDK.ECPrivateKeyComponents) throws -> Self
func ecPrivateKeyComponents() throws -> MyIdSDK.ECPrivateKeyComponents
}
public struct ECPublicKey : MyIdSDK.JWK {
public let keyType: MyIdSDK.JWKKeyType
public let parameters: [Swift.String : Swift.String]
public var requiredParameters: [Swift.String : Swift.String] {
get
}
public let crv: MyIdSDK.ECCurveType
public let x: Swift.String
public let y: Swift.String
public init(crv: MyIdSDK.ECCurveType, x: Swift.String, y: Swift.String, additionalParameters parameters: [Swift.String : Swift.String] = [:])
public init(publicKey: any MyIdSDK.ExpressibleAsECPublicKeyComponents, additionalParameters parameters: [Swift.String : Swift.String] = [:]) throws
public init(data: Foundation.Data) throws
public func converted<T>(to type: T.Type) throws -> T where T : MyIdSDK.ExpressibleAsECPublicKeyComponents
@available(iOS 11.0, *)
public func withThumbprintAsKeyId(algorithm: MyIdSDK.JWKThumbprintAlgorithm = .SHA256) throws -> MyIdSDK.ECPublicKey
}
public struct ECPrivateKey : MyIdSDK.JWK {
public let keyType: MyIdSDK.JWKKeyType
public let parameters: [Swift.String : Swift.String]
public var requiredParameters: [Swift.String : Swift.String] {
get
}
public let crv: MyIdSDK.ECCurveType
public let x: Swift.String
public let y: Swift.String
public let privateKey: Swift.String
public init(crv: Swift.String, x: Swift.String, y: Swift.String, privateKey: Swift.String, additionalParameters parameters: [Swift.String : Swift.String] = [:]) throws
public init(privateKey: any MyIdSDK.ExpressibleAsECPrivateKeyComponents, additionalParameters parameters: [Swift.String : Swift.String] = [:]) throws
public init(data: Foundation.Data) throws
public func converted<T>(to type: T.Type) throws -> T where T : MyIdSDK.ExpressibleAsECPrivateKeyComponents
@available(iOS 11.0, *)
public func withThumbprintAsKeyId(algorithm: MyIdSDK.JWKThumbprintAlgorithm = .SHA256) throws -> MyIdSDK.ECPrivateKey
}
public typealias ECKeyPair = MyIdSDK.ECPrivateKey
public struct Signer<KeyType> {
public init?(signingAlgorithm: MyIdSDK.SignatureAlgorithm, key: KeyType)
}
extension MyIdSDK.Signer {
@available(*, deprecated, message: "Use `init?(signingAlgorithm: SignatureAlgorithm, key: KeyType)` instead")
public init?(signingAlgorithm: MyIdSDK.SignatureAlgorithm, privateKey: KeyType)
}
extension MyIdSDK.RSASignature.DigestType : Swift.Equatable {}
extension MyIdSDK.RSASignature.DigestType : Swift.Hashable {}
extension MyIdSDK.MyIdBuildMode : Swift.Equatable {} extension MyIdSDK.MyIdBuildMode : Swift.Equatable {}
extension MyIdSDK.MyIdBuildMode : Swift.Hashable {} extension MyIdSDK.MyIdBuildMode : Swift.Hashable {}
extension MyIdSDK.MyIdBuildMode : Swift.RawRepresentable {} extension MyIdSDK.MyIdBuildMode : Swift.RawRepresentable {}
extension MyIdSDK.JWKParameter : Swift.Equatable {}
extension MyIdSDK.JWKParameter : Swift.Hashable {}
extension MyIdSDK.JWKParameter : Swift.RawRepresentable {}
extension MyIdSDK.RSAParameter : Swift.Equatable {}
extension MyIdSDK.RSAParameter : Swift.Hashable {}
extension MyIdSDK.RSAParameter : Swift.RawRepresentable {}
extension MyIdSDK.SymmetricKeyParameter : Swift.Equatable {}
extension MyIdSDK.SymmetricKeyParameter : Swift.Hashable {}
extension MyIdSDK.SymmetricKeyParameter : Swift.RawRepresentable {}
extension MyIdSDK.ECParameter : Swift.Equatable {}
extension MyIdSDK.ECParameter : Swift.Hashable {}
extension MyIdSDK.ECParameter : Swift.RawRepresentable {}
extension MyIdSDK.SwiftyCryptoRSAKeySize : Swift.Equatable {}
extension MyIdSDK.SwiftyCryptoRSAKeySize : Swift.Hashable {}
extension MyIdSDK.SwiftyCryptoRSAKeySize : Swift.RawRepresentable {}
extension MyIdSDK.JWKThumbprintAlgorithm : Swift.Equatable {}
extension MyIdSDK.JWKThumbprintAlgorithm : Swift.Hashable {}
extension MyIdSDK.JWKThumbprintAlgorithm : Swift.RawRepresentable {}
extension MyIdSDK.ContentEncryptionAlgorithm : Swift.Equatable {}
extension MyIdSDK.ContentEncryptionAlgorithm : Swift.Hashable {}
extension MyIdSDK.ContentEncryptionAlgorithm : Swift.RawRepresentable {}
extension MyIdSDK.KeyManagementAlgorithm : Swift.Equatable {}
extension MyIdSDK.KeyManagementAlgorithm : Swift.Hashable {}
extension MyIdSDK.KeyManagementAlgorithm : Swift.RawRepresentable {}
extension MyIdSDK.MyIdResolution : Swift.Equatable {} extension MyIdSDK.MyIdResolution : Swift.Equatable {}
extension MyIdSDK.MyIdResolution : Swift.Hashable {} extension MyIdSDK.MyIdResolution : Swift.Hashable {}
extension MyIdSDK.MyIdResolution : Swift.RawRepresentable {} extension MyIdSDK.MyIdResolution : Swift.RawRepresentable {}
extension MyIdSDK.MyIdPresentationStyle : Swift.Equatable {}
extension MyIdSDK.MyIdPresentationStyle : Swift.Hashable {}
extension MyIdSDK.MyIdPresentationStyle : Swift.RawRepresentable {}
extension MyIdSDK.MyIdEntryType : Swift.Equatable {}
extension MyIdSDK.MyIdEntryType : Swift.Hashable {}
extension MyIdSDK.MyIdEntryType : Swift.RawRepresentable {}
extension MyIdSDK.MyIdCameraShape : Swift.Equatable {} extension MyIdSDK.MyIdCameraShape : Swift.Equatable {}
extension MyIdSDK.MyIdCameraShape : Swift.Hashable {} extension MyIdSDK.MyIdCameraShape : Swift.Hashable {}
extension MyIdSDK.MyIdCameraShape : Swift.RawRepresentable {} extension MyIdSDK.MyIdCameraShape : Swift.RawRepresentable {}
extension MyIdSDK.MyIdCameraSelector : Swift.Equatable {}
extension MyIdSDK.MyIdCameraSelector : Swift.Hashable {}
extension MyIdSDK.MyIdCameraSelector : Swift.RawRepresentable {}
extension MyIdSDK.MyIdResidency : Swift.Equatable {} extension MyIdSDK.MyIdResidency : Swift.Equatable {}
extension MyIdSDK.MyIdResidency : Swift.Hashable {} extension MyIdSDK.MyIdResidency : Swift.Hashable {}
extension MyIdSDK.MyIdResidency : Swift.RawRepresentable {} extension MyIdSDK.MyIdResidency : Swift.RawRepresentable {}
extension MyIdSDK.ECCurveType : Swift.Equatable {}
extension MyIdSDK.ECCurveType : Swift.Hashable {}
extension MyIdSDK.ECCurveType : Swift.RawRepresentable {}
extension MyIdSDK.SignatureAlgorithm : Swift.Equatable {}
extension MyIdSDK.SignatureAlgorithm : Swift.Hashable {}
extension MyIdSDK.SignatureAlgorithm : Swift.RawRepresentable {}
extension MyIdSDK.ECCompression : Swift.Equatable {}
extension MyIdSDK.ECCompression : Swift.Hashable {}
extension MyIdSDK.ECCompression : Swift.RawRepresentable {}
extension MyIdSDK.JWEHeader : MyIdSDK.DataConvertible {}
extension MyIdSDK.HMACAlgorithm : Swift.Equatable {}
extension MyIdSDK.HMACAlgorithm : Swift.Hashable {}
extension MyIdSDK.HMACAlgorithm : Swift.RawRepresentable {}
extension MyIdSDK.CompressionAlgorithm : Swift.Equatable {}
extension MyIdSDK.CompressionAlgorithm : Swift.Hashable {}
extension MyIdSDK.CompressionAlgorithm : Swift.RawRepresentable {}
extension MyIdSDK.MyIdEntryType : Swift.Equatable {}
extension MyIdSDK.MyIdEntryType : Swift.Hashable {}
extension MyIdSDK.MyIdEntryType : Swift.RawRepresentable {}
extension MyIdSDK.JWSHeader : MyIdSDK.DataConvertible {}
extension MyIdSDK.MyIdDocumentType : Swift.Equatable {}
extension MyIdSDK.MyIdDocumentType : Swift.Hashable {}
extension MyIdSDK.MyIdDocumentType : Swift.RawRepresentable {}
extension MyIdSDK.RSAKeyType : Swift.Equatable {}
extension MyIdSDK.RSAKeyType : Swift.Hashable {}
extension MyIdSDK.MyIdLocale : Swift.Equatable {} extension MyIdSDK.MyIdLocale : Swift.Equatable {}
extension MyIdSDK.MyIdLocale : Swift.Hashable {} extension MyIdSDK.MyIdLocale : Swift.Hashable {}
extension MyIdSDK.MyIdLocale : Swift.RawRepresentable {} extension MyIdSDK.MyIdLocale : Swift.RawRepresentable {}
extension MyIdSDK.JWKKeyType : Swift.Equatable {}
extension MyIdSDK.JWKKeyType : Swift.Hashable {}
extension MyIdSDK.JWKKeyType : Swift.RawRepresentable {}
...@@ -15,116 +15,46 @@ import LocalAuthentication ...@@ -15,116 +15,46 @@ import LocalAuthentication
@_exported import MyIdSDK @_exported import MyIdSDK
import Security import Security
import Swift import Swift
import SwiftUI
import UIKit import UIKit
import Vision import Vision
import _Concurrency import _Concurrency
import _StringProcessing import _StringProcessing
public protocol DataConvertible { @_inheritsConvenienceInitializers @objc public class MyIdResult : ObjectiveC.NSObject {
init?(_ data: Foundation.Data) @objc public var image: UIKit.UIImage?
func data() -> Foundation.Data @objc public var code: Swift.String?
} @objc public var comparisonValue: Swift.String?
public struct Payload : MyIdSDK.DataConvertible { @objc override dynamic public init()
public init(_ payload: Foundation.Data) @objc deinit
public func data() -> Foundation.Data
} }
public protocol Message { extension Swift.String : Swift.Error {
var data: Foundation.Data { get }
var base64String: Swift.String { get }
init(data: Foundation.Data)
init(base64String: Swift.String) throws
} }
extension MyIdSDK.Message { @objc public enum MyIdDocumentType : Swift.Int {
public var base64String: Swift.String { case ID_CARD = 0
case PASSPORT
case DRIVER_LICENSE
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get get
} }
} }
extension Foundation.Data : MyIdSDK.ExpressibleAsRSAPublicKeyComponents { @_inheritsConvenienceInitializers @available(iOS 13.0, *)
public static func representing(rsaPublicKeyComponents components: MyIdSDK.RSAPublicKeyComponents) throws -> Foundation.Data @objc public class MyIdViewModel : ObjectiveC.NSObject, Combine.ObservableObject {
public func rsaPublicKeyComponents() throws -> MyIdSDK.RSAPublicKeyComponents @objc public func startMyId(clientId: Swift.String, clientHash: Swift.String, clientHashId: Swift.String, passportData: Swift.String? = nil, dateOfBirth: Swift.String? = nil, minAge: Swift.Int = 16, sdkHash: Swift.String? = nil, externalId: Swift.String? = nil, threshold: Swift.Float = 0.5, buildMode: MyIdSDK.MyIdBuildMode = MyIdBuildMode.PRODUCTION, entryType: MyIdSDK.MyIdEntryType = MyIdEntryType.AUTH, residency: MyIdSDK.MyIdResidency = MyIdResidency.RESIDENT, locale: MyIdSDK.MyIdLocale = MyIdLocale.RU, cameraShape: MyIdSDK.MyIdCameraShape = MyIdCameraShape.CIRCLE, resolution: MyIdSDK.MyIdResolution = MyIdResolution.RESOLUTION_480, cameraSelector: MyIdSDK.MyIdCameraSelector = MyIdCameraSelector.FRONT, presentationStyle: MyIdSDK.MyIdPresentationStyle = MyIdPresentationStyle.FULL, organizationDetails: MyIdSDK.MyIdOrganizationDetails? = nil, appearance: MyIdSDK.MyIdAppearance? = nil, withPhoto: Swift.Bool = false)
} @objc override dynamic public init()
public class RSASignature { public typealias ObjectWillChangePublisher = Combine.ObservableObjectPublisher
public enum DigestType {
case sha1
case sha224
case sha256
case sha384
case sha512
public static func == (a: MyIdSDK.RSASignature.DigestType, b: MyIdSDK.RSASignature.DigestType) -> Swift.Bool
public func hash(into hasher: inout Swift.Hasher)
public var hashValue: Swift.Int {
get
}
}
final public let data: Foundation.Data
public init(data: Foundation.Data)
convenience public init(base64Encoded base64String: Swift.String) throws
public var base64String: Swift.String {
get
}
@objc deinit @objc deinit
} }
public enum JOSESwiftError : Swift.Error { @available(iOS 13.0, *)
case signingFailed(description: Swift.String) @objc extension MyIdSDK.MyIdViewModel : MyIdSDK.MyIdClientDelegate {
case verifyingFailed(description: Swift.String) @objc dynamic public func onSuccess(result: MyIdSDK.MyIdResult)
case signatureInvalid @objc dynamic public func onError(exception: MyIdSDK.MyIdException)
case encryptingFailed(description: Swift.String) @objc dynamic public func onUserExited()
case decryptingFailed(description: Swift.String)
case wrongDataEncoding(data: Foundation.Data)
case invalidCompactSerializationComponentCount(count: Swift.Int)
case componentNotValidBase64URL(component: Swift.String)
case componentCouldNotBeInitializedFromData(data: Foundation.Data)
case couldNotConstructJWK
case modulusNotBase64URLUIntEncoded
case exponentNotBase64URLUIntEncoded
case privateExponentNotBase64URLUIntEncoded
case symmetricKeyNotBase64URLEncoded
case xNotBase64URLUIntEncoded
case yNotBase64URLUIntEncoded
case privateKeyNotBase64URLUIntEncoded
case invalidCurveType
case compressedCurvePointsUnsupported
case invalidCurvePointOctetLength
case localAuthenticationFailed(errorCode: Swift.Int)
case compressionFailed
case decompressionFailed
case compressionAlgorithmNotSupported
case rawDataMustBeGreaterThanZero
case compressedDataMustBeGreaterThanZero
case thumbprintSerialization
}
extension Foundation.Data : MyIdSDK.ExpressibleAsSymmetricKeyComponents {
public static func representing(symmetricKeyComponents components: MyIdSDK.SymmetricKeyComponents) throws -> Foundation.Data
public func symmetricKeyComponents() throws -> MyIdSDK.SymmetricKeyComponents
} }
public typealias SymmetricKeyComponents = (Foundation.Data) @_inheritsConvenienceInitializers @objc public class MyIdClient : ObjectiveC.NSObject {
public protocol ExpressibleAsSymmetricKeyComponents { @objc public class func start(withConfig config: MyIdSDK.MyIdConfig, withDelegate delegate: any MyIdSDK.MyIdClientDelegate)
static func representing(symmetricKeyComponents components: MyIdSDK.SymmetricKeyComponents) throws -> Self @objc public class func run(withConfig config: MyIdSDK.MyIdConfig, withDelegate delegate: any MyIdSDK.MyIdClientDelegate) -> UIKit.UIViewController
func symmetricKeyComponents() throws -> MyIdSDK.SymmetricKeyComponents
}
public struct SymmetricKey : MyIdSDK.JWK {
public let keyType: MyIdSDK.JWKKeyType
public let parameters: [Swift.String : Swift.String]
public var requiredParameters: [Swift.String : Swift.String] {
get
}
public let key: Swift.String
public init(key: Foundation.Data, additionalParameters parameters: [Swift.String : Swift.String] = [:])
public init(key: any MyIdSDK.ExpressibleAsSymmetricKeyComponents, additionalParameters parameters: [Swift.String : Swift.String] = [:]) throws
public init(data: Foundation.Data) throws
public func converted<T>(to type: T.Type) throws -> T where T : MyIdSDK.ExpressibleAsSymmetricKeyComponents
@available(iOS 11.0, *)
public func withThumbprintAsKeyId(algorithm: MyIdSDK.JWKThumbprintAlgorithm = .SHA256) throws -> MyIdSDK.SymmetricKey
}
@_inheritsConvenienceInitializers @objc public class MyIdGenerator : ObjectiveC.NSObject {
@objc public class func hash(payload: Swift.String, clientHash: Swift.String, clientHashId: Swift.String) -> Swift.String?
@objc public class func device() -> Swift.String
@objc public class func deviceModel() -> Swift.String?
@objc public class func deviceName() -> Swift.String?
@objc public class func systemName() -> Swift.String?
@objc public class func systemVersion() -> Swift.String?
@objc public class func isPhone() -> Swift.Bool
@objc public class func isPad() -> Swift.Bool
@objc public class func isSimulator() -> Swift.Bool
@objc override dynamic public init() @objc override dynamic public init()
@objc deinit @objc deinit
} }
...@@ -137,136 +67,43 @@ public struct SymmetricKey : MyIdSDK.JWK { ...@@ -137,136 +67,43 @@ public struct SymmetricKey : MyIdSDK.JWK {
get get
} }
} }
public enum SecureRandomError : Swift.Error { @objc public enum MyIdResolution : Swift.Int {
case failed(status: Darwin.OSStatus) case RESOLUTION_480 = 0
case countMustBeGreaterThanZero case RESOLUTION_720
} public init?(rawValue: Swift.Int)
public struct SecureRandom { public typealias RawValue = Swift.Int
public static func generate(count: Swift.Int) throws -> Foundation.Data public var rawValue: Swift.Int {
}
public enum JWKParameter : Swift.String, Swift.CodingKey {
case keyType
case keyUse
case keyOperations
case algorithm
case keyIdentifier
case X509URL
case X509CertificateChain
case X509CertificateSHA1Thumbprint
case X509CertificateSHA256Thumbprint
public init?(rawValue: Swift.String)
public init?(stringValue: Swift.String)
public init?(intValue: Swift.Int)
public typealias RawValue = Swift.String
public var intValue: Swift.Int? {
get
}
public var rawValue: Swift.String {
get
}
public var stringValue: Swift.String {
get
}
}
public enum RSAParameter : Swift.String, Swift.CodingKey {
case modulus
case exponent
case privateExponent
public init?(rawValue: Swift.String)
public init?(stringValue: Swift.String)
public init?(intValue: Swift.Int)
public typealias RawValue = Swift.String
public var intValue: Swift.Int? {
get
}
public var rawValue: Swift.String {
get
}
public var stringValue: Swift.String {
get
}
}
public enum SymmetricKeyParameter : Swift.String, Swift.CodingKey {
case key
public init?(rawValue: Swift.String)
public init?(stringValue: Swift.String)
public init?(intValue: Swift.Int)
public typealias RawValue = Swift.String
public var intValue: Swift.Int? {
get
}
public var rawValue: Swift.String {
get
}
public var stringValue: Swift.String {
get
}
}
public enum ECParameter : Swift.String, Swift.CodingKey {
case curve
case x
case y
case privateKey
public init?(rawValue: Swift.String)
public init?(stringValue: Swift.String)
public init?(intValue: Swift.Int)
public typealias RawValue = Swift.String
public var intValue: Swift.Int? {
get
}
public var rawValue: Swift.String {
get
}
public var stringValue: Swift.String {
get get
} }
} }
public protocol CompactSerializable { @objc public enum MyIdPresentationStyle : Swift.Int {
func serialize(to serializer: inout any MyIdSDK.CompactSerializer) case FULL = 0
} case SHEET
public protocol CompactSerializer {
var components: [any MyIdSDK.DataConvertible] { get }
mutating func serialize<T>(_ object: T) where T : MyIdSDK.DataConvertible
}
public struct JOSESerializer {
public func serialize<T>(compact object: T) -> Swift.String where T : MyIdSDK.CompactSerializable
}
public enum SwiftyCryptoRSAKeySize : Swift.Int {
case RSAKey64
case RSAKey128
case RSAKey256
case RSAKey512
public init?(rawValue: Swift.Int) public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int public typealias RawValue = Swift.Int
public var rawValue: Swift.Int { public var rawValue: Swift.Int {
get get
} }
} }
@objc @_inheritsConvenienceInitializers public class RSAKeyFactory : ObjectiveC.NSObject { @_inheritsConvenienceInitializers @objc public class MyIdAppearance : ObjectiveC.NSObject {
public static let shared: MyIdSDK.RSAKeyFactory @objc public var primaryColor: UIKit.UIColor?
public func generateKeyPair(keySize: MyIdSDK.SwiftyCryptoRSAKeySize) -> MyIdSDK.RSAKeyPairs? @objc public var errorColor: UIKit.UIColor?
@objc public var primaryButtonColor: UIKit.UIColor?
@objc public var primaryButtonColorDisabled: UIKit.UIColor?
@objc public var primaryButtonTextColor: UIKit.UIColor?
@objc public var primaryButtonTextColorDisabled: UIKit.UIColor?
@objc public var buttonCornerRadius: Swift.Float
@objc override dynamic public init() @objc override dynamic public init()
@objc deinit @objc deinit
} }
@objc public protocol MyIdClientDelegate { @objc public enum MyIdEntryType : Swift.Int {
@objc func onSuccess(result: MyIdSDK.MyIdResult) case AUTH = 0
@objc func onError(exception: MyIdSDK.MyIdException) case FACE
@objc func onUserExited() public init?(rawValue: Swift.Int)
} public typealias RawValue = Swift.Int
public struct Decrypter { public var rawValue: Swift.Int {
public init?<KeyType>(keyManagementAlgorithm: MyIdSDK.KeyManagementAlgorithm, contentEncryptionAlgorithm: MyIdSDK.ContentEncryptionAlgorithm, decryptionKey: KeyType) get
} }
extension MyIdSDK.Decrypter {
@available(*, deprecated, message: "Use `init?(keyManagementAlgorithm:contentEncryptionAlgorithm:decryptionKey:)` instead")
public init?<KeyType>(keyDecryptionAlgorithm: MyIdSDK.AsymmetricKeyAlgorithm, decryptionKey key: KeyType, contentDecryptionAlgorithm: MyIdSDK.SymmetricKeyAlgorithm)
@available(*, deprecated, message: "Use `init?(keyManagementAlgorithm:contentEncryptionAlgorithm:decryptionKey:)` instead")
public init?<KeyType>(keyDecryptionAlgorithm: MyIdSDK.AsymmetricKeyAlgorithm, keyDecryptionKey kdk: KeyType, contentDecryptionAlgorithm: MyIdSDK.SymmetricKeyAlgorithm)
}
@available(*, deprecated, message: "This type will be removed with the next major release.")
public struct DecryptionContext {
}
@available(*, deprecated, message: "This type will be removed with the next major release.")
public struct SymmetricDecryptionContext {
} }
@_inheritsConvenienceInitializers @objc public class MyIdConfig : ObjectiveC.NSObject { @_inheritsConvenienceInitializers @objc public class MyIdConfig : ObjectiveC.NSObject {
@objc public var clientId: Swift.String? @objc public var clientId: Swift.String?
...@@ -274,6 +111,7 @@ public struct SymmetricDecryptionContext { ...@@ -274,6 +111,7 @@ public struct SymmetricDecryptionContext {
@objc public var clientHashId: Swift.String? @objc public var clientHashId: Swift.String?
@objc public var passportData: Swift.String? @objc public var passportData: Swift.String?
@objc public var dateOfBirth: Swift.String? @objc public var dateOfBirth: Swift.String?
@objc public var minAge: Swift.Int
@objc public var sdkHash: Swift.String? @objc public var sdkHash: Swift.String?
@objc public var externalId: Swift.String? @objc public var externalId: Swift.String?
@objc public var threshold: Swift.Float @objc public var threshold: Swift.Float
...@@ -283,44 +121,18 @@ public struct SymmetricDecryptionContext { ...@@ -283,44 +121,18 @@ public struct SymmetricDecryptionContext {
@objc public var locale: MyIdSDK.MyIdLocale @objc public var locale: MyIdSDK.MyIdLocale
@objc public var cameraShape: MyIdSDK.MyIdCameraShape @objc public var cameraShape: MyIdSDK.MyIdCameraShape
@objc public var resolution: MyIdSDK.MyIdResolution @objc public var resolution: MyIdSDK.MyIdResolution
@objc public var cameraSelector: MyIdSDK.MyIdCameraSelector
@objc public var presentationStyle: MyIdSDK.MyIdPresentationStyle
@objc public var organizationDetails: MyIdSDK.MyIdOrganizationDetails? @objc public var organizationDetails: MyIdSDK.MyIdOrganizationDetails?
@objc public var appearance: MyIdSDK.MyIdAppearance? @objc public var appearance: MyIdSDK.MyIdAppearance?
@objc public var withPhoto: Swift.Bool @objc public var withPhoto: Swift.Bool
@objc override dynamic public init() @objc override dynamic public init()
@objc deinit @objc deinit
} }
extension MyIdSDK.RSAPublicKey : Swift.Encodable { @objc public protocol MyIdClientDelegate {
public func encode(to encoder: any Swift.Encoder) throws @objc func onSuccess(result: MyIdSDK.MyIdResult)
} @objc func onError(exception: MyIdSDK.MyIdException)
extension MyIdSDK.RSAPublicKey : Swift.Decodable { @objc func onUserExited()
public init(from decoder: any Swift.Decoder) throws
}
extension MyIdSDK.RSAPrivateKey : Swift.Encodable {
public func encode(to encoder: any Swift.Encoder) throws
}
extension MyIdSDK.RSAPrivateKey : Swift.Decodable {
public init(from decoder: any Swift.Decoder) throws
}
extension Foundation.Data : MyIdSDK.ExpressibleAsECPublicKeyComponents {
public static func representing(ecPublicKeyComponents components: MyIdSDK.ECPublicKeyComponents) throws -> Foundation.Data
public func ecPublicKeyComponents() throws -> MyIdSDK.ECPublicKeyComponents
}
public protocol CompactDeserializable {
static var componentCount: Swift.Int { get }
init(from deserializer: any MyIdSDK.CompactDeserializer) throws
}
public protocol CompactDeserializer {
func deserialize<T>(_ type: T.Type, at index: Swift.Int) throws -> T where T : MyIdSDK.DataConvertible
}
public struct JOSEDeserializer {
public init()
public func deserialize<T>(_ type: T.Type, fromCompactSerialization compactSerialization: Swift.String) throws -> T where T : MyIdSDK.CompactDeserializable
}
public enum ComponentCompactSerializedIndex {
}
extension Foundation.Data : MyIdSDK.ExpressibleAsECPrivateKeyComponents {
public static func representing(ecPrivateKeyComponents components: MyIdSDK.ECPrivateKeyComponents) throws -> Foundation.Data
public func ecPrivateKeyComponents() throws -> MyIdSDK.ECPrivateKeyComponents
} }
@_inheritsConvenienceInitializers @objc public class MyIdException : ObjectiveC.NSObject { @_inheritsConvenienceInitializers @objc public class MyIdException : ObjectiveC.NSObject {
@objc public var message: Swift.String? @objc public var message: Swift.String?
...@@ -328,97 +140,37 @@ extension Foundation.Data : MyIdSDK.ExpressibleAsECPrivateKeyComponents { ...@@ -328,97 +140,37 @@ extension Foundation.Data : MyIdSDK.ExpressibleAsECPrivateKeyComponents {
@objc override dynamic public init() @objc override dynamic public init()
@objc deinit @objc deinit
} }
@objc public enum MyIdResolution : Swift.Int { @_inheritsConvenienceInitializers @objc public class MyIdGenerator : ObjectiveC.NSObject {
case RESOLUTION_480 = 0 @objc public class func hash(payload: Swift.String, clientHash: Swift.String, clientHashId: Swift.String) -> Swift.String?
case RESOLUTION_720 @objc public class func device() -> Swift.String
@objc public class func deviceModel() -> Swift.String?
@objc public class func deviceName() -> Swift.String?
@objc public class func systemName() -> Swift.String?
@objc public class func systemVersion() -> Swift.String?
@objc public class func isPhone() -> Swift.Bool
@objc public class func isPad() -> Swift.Bool
@objc public class func isSimulator() -> Swift.Bool
@objc override dynamic public init()
@objc deinit
}
@objc public enum MyIdCameraShape : Swift.Int {
case ELLIPSE = 0
case CIRCLE
public init?(rawValue: Swift.Int) public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int public typealias RawValue = Swift.Int
public var rawValue: Swift.Int { public var rawValue: Swift.Int {
get get
} }
} }
extension Foundation.Data { @objc public enum MyIdCameraSelector : Swift.Int {
public init?(base64URLEncoded base64URLString: Swift.String) case FRONT = 0
public init?(base64URLEncoded base64URLData: Foundation.Data) case BACK
public func base64URLEncodedString() -> Swift.String
public func base64URLEncodedData() -> Foundation.Data
}
extension Foundation.Data : MyIdSDK.DataConvertible {
public init(_ data: Foundation.Data)
public func data() -> Foundation.Data
}
public typealias RSAPublicKeyComponents = (modulus: Foundation.Data, exponent: Foundation.Data)
public typealias RSAPrivateKeyComponents = (modulus: Foundation.Data, exponent: Foundation.Data, privateExponent: Foundation.Data)
public protocol ExpressibleAsRSAPublicKeyComponents {
static func representing(rsaPublicKeyComponents components: MyIdSDK.RSAPublicKeyComponents) throws -> Self
func rsaPublicKeyComponents() throws -> MyIdSDK.RSAPublicKeyComponents
}
public protocol ExpressibleAsRSAPrivateKeyComponents {
static func representing(rsaPrivateKeyComponents components: MyIdSDK.RSAPrivateKeyComponents) throws -> Self
func rsaPrivateKeyComponents() throws -> MyIdSDK.RSAPrivateKeyComponents
}
public struct RSAPublicKey : MyIdSDK.JWK {
public let keyType: MyIdSDK.JWKKeyType
public let parameters: [Swift.String : Swift.String]
public var requiredParameters: [Swift.String : Swift.String] {
get
}
public let modulus: Swift.String
public let exponent: Swift.String
public init(modulus: Swift.String, exponent: Swift.String, additionalParameters parameters: [Swift.String : Swift.String] = [:])
public init(publicKey: any MyIdSDK.ExpressibleAsRSAPublicKeyComponents, additionalParameters parameters: [Swift.String : Swift.String] = [:]) throws
public init(data: Foundation.Data) throws
public func converted<T>(to type: T.Type) throws -> T where T : MyIdSDK.ExpressibleAsRSAPublicKeyComponents
@available(iOS 11.0, *)
public func withThumbprintAsKeyId(algorithm: MyIdSDK.JWKThumbprintAlgorithm = .SHA256) throws -> MyIdSDK.RSAPublicKey
}
public struct RSAPrivateKey : MyIdSDK.JWK {
public let keyType: MyIdSDK.JWKKeyType
public let parameters: [Swift.String : Swift.String]
public var requiredParameters: [Swift.String : Swift.String] {
get
}
public let modulus: Swift.String
public let exponent: Swift.String
public let privateExponent: Swift.String
public init(modulus: Swift.String, exponent: Swift.String, privateExponent: Swift.String, additionalParameters parameters: [Swift.String : Swift.String] = [:])
public init(privateKey: any MyIdSDK.ExpressibleAsRSAPrivateKeyComponents, additionalParameters parameters: [Swift.String : Swift.String] = [:]) throws
public init(data: Foundation.Data) throws
public func converted<T>(to type: T.Type) throws -> T where T : MyIdSDK.ExpressibleAsRSAPrivateKeyComponents
@available(iOS 11.0, *)
public func withThumbprintAsKeyId(algorithm: MyIdSDK.JWKThumbprintAlgorithm = .SHA256) throws -> MyIdSDK.RSAPrivateKey
}
public typealias RSAKeyPair = MyIdSDK.RSAPrivateKey
@objc public enum MyIdCameraShape : Swift.Int {
case ELLIPSE = 0
case CIRCLE
public init?(rawValue: Swift.Int) public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int public typealias RawValue = Swift.Int
public var rawValue: Swift.Int { public var rawValue: Swift.Int {
get get
} }
} }
extension Swift.String : Swift.Error {
}
extension MyIdSDK.SymmetricKey : Swift.Encodable {
public func encode(to encoder: any Swift.Encoder) throws
}
extension MyIdSDK.SymmetricKey : Swift.Decodable {
public init(from decoder: any Swift.Decoder) throws
}
public class RSAMessage : MyIdSDK.Message {
public var data: Foundation.Data
public var base64String: Swift.String
required public init(data: Foundation.Data)
required convenience public init(base64String: Swift.String) throws
public func sign(signingKey: MyIdSDK.RSAKey, digestType: MyIdSDK.RSASignature.DigestType) throws -> MyIdSDK.RSASignature
public func verify(verifyKey: MyIdSDK.RSAKey, signature: MyIdSDK.RSASignature, digestType: MyIdSDK.RSASignature.DigestType) throws -> Swift.Bool
@objc deinit
}
extension Security.SecKey : MyIdSDK.ExpressibleAsECPublicKeyComponents {
public static func representing(ecPublicKeyComponents components: MyIdSDK.ECPublicKeyComponents) throws -> Self
public func ecPublicKeyComponents() throws -> MyIdSDK.ECPublicKeyComponents
}
@objc public enum MyIdResidency : Swift.Int { @objc public enum MyIdResidency : Swift.Int {
case USER_DEFINED = 0 case USER_DEFINED = 0
case RESIDENT case RESIDENT
...@@ -429,640 +181,46 @@ extension Security.SecKey : MyIdSDK.ExpressibleAsECPublicKeyComponents { ...@@ -429,640 +181,46 @@ extension Security.SecKey : MyIdSDK.ExpressibleAsECPublicKeyComponents {
get get
} }
} }
public protocol CommonHeaderParameterSpace { @objc public enum MyIdLocale : Swift.Int {
var jku: Foundation.URL? { get set } case RU = 0
var jwk: Swift.String? { get set } case EN
var jwkTyped: (any MyIdSDK.JWK)? { get set } case UZ
var kid: Swift.String? { get set }
var x5u: Foundation.URL? { get set }
var x5c: [Swift.String]? { get set }
var x5t: Swift.String? { get set }
var x5tS256: Swift.String? { get set }
var typ: Swift.String? { get set }
var cty: Swift.String? { get set }
var crit: [Swift.String]? { get set }
}
public enum ECCurveType : Swift.String, Swift.Codable {
case P256
case P384
case P521
public init?(rawValue: Swift.String)
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
public enum ECCompression : Swift.UInt8 {
case CompressedYEven
case CompressedYOdd
case Uncompressed
case HybridYEven
case HybridYOdd
public init?(rawValue: Swift.UInt8)
public typealias RawValue = Swift.UInt8
public var rawValue: Swift.UInt8 {
get
}
}
public struct JWEHeader {
public init(keyManagementAlgorithm: MyIdSDK.KeyManagementAlgorithm, contentEncryptionAlgorithm: MyIdSDK.ContentEncryptionAlgorithm)
public init(parameters: [Swift.String : Any]) throws
}
extension MyIdSDK.JWEHeader {
public var keyManagementAlgorithm: MyIdSDK.KeyManagementAlgorithm? {
get
}
public var contentEncryptionAlgorithm: MyIdSDK.ContentEncryptionAlgorithm? {
get
}
public var compressionAlgorithm: MyIdSDK.CompressionAlgorithm? {
get
}
public var zip: Swift.String? {
get
set
}
}
extension MyIdSDK.JWEHeader : MyIdSDK.CommonHeaderParameterSpace {
public var jku: Foundation.URL? {
get
set
}
public var jwk: Swift.String? {
get
set
}
public var jwkTyped: (any MyIdSDK.JWK)? {
get
set
}
public var kid: Swift.String? {
get
set
}
public var x5u: Foundation.URL? {
get
set
}
public var x5c: [Swift.String]? {
get
set
}
public var x5t: Swift.String? {
get
set
}
public var x5tS256: Swift.String? {
get
set
}
public var typ: Swift.String? {
get
set
}
public var cty: Swift.String? {
get
set
}
public var crit: [Swift.String]? {
get
set
}
}
extension MyIdSDK.JWEHeader {
@available(*, deprecated, message: "Use `JWEHeader.keyManagementAlgorithm` instead")
public var algorithm: MyIdSDK.AsymmetricKeyAlgorithm? {
get
}
@available(*, deprecated, message: "Use `JWEHeader.contentEncryptionAlgorithm` instead")
public var encryptionAlgorithm: MyIdSDK.SymmetricKeyAlgorithm? {
get
}
@available(*, deprecated, message: "Use `init(keyManagementAlgorithm:contentEncryptionAlgorithm` instead")
public init(algorithm: MyIdSDK.AsymmetricKeyAlgorithm, encryptionAlgorithm: MyIdSDK.SymmetricKeyAlgorithm)
}
public struct Encrypter<KeyType> {
public init?(keyManagementAlgorithm: MyIdSDK.KeyManagementAlgorithm, contentEncryptionAlgorithm: MyIdSDK.ContentEncryptionAlgorithm, encryptionKey: KeyType)
}
extension MyIdSDK.Encrypter {
@available(*, deprecated, message: "Use `init?(keyManagementAlgorithm:contentEncryptionAlgorithm:encryptionKey:)` instead")
public init?(keyEncryptionAlgorithm: MyIdSDK.AsymmetricKeyAlgorithm, encryptionKey key: KeyType, contentEncyptionAlgorithm: MyIdSDK.SymmetricKeyAlgorithm)
@available(*, deprecated, message: "Use `init?(keyManagementAlgorithm:contentEncryptionAlgorithm:encryptionKey:)` instead")
public init?(keyEncryptionAlgorithm: MyIdSDK.AsymmetricKeyAlgorithm, keyEncryptionKey kek: KeyType, contentEncyptionAlgorithm: MyIdSDK.SymmetricKeyAlgorithm)
}
@available(*, deprecated, message: "This type will be removed with the next major release.")
public struct EncryptionContext {
}
@available(*, deprecated, message: "This type will be removed with the next major release.")
public struct SymmetricEncryptionContext {
}
public struct JWS {
public let header: MyIdSDK.JWSHeader
public let payload: MyIdSDK.Payload
public let signature: Foundation.Data
public var compactSerializedString: Swift.String {
get
}
public var compactSerializedData: Foundation.Data {
get
}
public init<KeyType>(header: MyIdSDK.JWSHeader, payload: MyIdSDK.Payload, signer: MyIdSDK.Signer<KeyType>) throws
public init(compactSerialization: Swift.String) throws
public init(compactSerialization: Foundation.Data) throws
@available(*, deprecated, message: "Use `isValid(for verifier:)` instead")
public func isValid<KeyType>(for publicKey: KeyType) -> Swift.Bool
@available(*, deprecated, message: "Use `validate(using verifier:)` instead")
public func validate<KeyType>(with publicKey: KeyType) throws -> MyIdSDK.JWS
public func validate(using verifier: MyIdSDK.Verifier) throws -> MyIdSDK.JWS
public func isValid(for verifier: MyIdSDK.Verifier) -> Swift.Bool
}
extension MyIdSDK.JWS : MyIdSDK.CompactSerializable {
public func serialize(to serializer: inout any MyIdSDK.CompactSerializer)
}
extension MyIdSDK.JWS : MyIdSDK.CompactDeserializable {
public static var componentCount: Swift.Int {
get
}
public init(from deserializer: any MyIdSDK.CompactDeserializer) throws
}
extension Security.SecKey : MyIdSDK.ExpressibleAsECPrivateKeyComponents {
public static func representing(ecPrivateKeyComponents components: MyIdSDK.ECPrivateKeyComponents) throws -> Self
public func ecPrivateKeyComponents() throws -> MyIdSDK.ECPrivateKeyComponents
}
public enum SignatureAlgorithm : Swift.String {
case HS256
case HS384
case HS512
case RS256
case RS384
case RS512
@available(iOS 11, *)
case PS256
@available(iOS 11, *)
case PS384
@available(iOS 11, *)
case PS512
case ES256
case ES384
case ES512
public init?(rawValue: Swift.String)
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
public enum KeyManagementAlgorithm : Swift.String, Swift.CaseIterable {
case RSA1_5
case RSAOAEP
case RSAOAEP256
case A128KW
case A192KW
case A256KW
case direct
public init?(rawValue: Swift.String)
public typealias AllCases = [MyIdSDK.KeyManagementAlgorithm]
public typealias RawValue = Swift.String
public static var allCases: [MyIdSDK.KeyManagementAlgorithm] {
get
}
public var rawValue: Swift.String {
get
}
}
public enum ContentEncryptionAlgorithm : Swift.String {
case A256CBCHS512
case A128CBCHS256
public init?(rawValue: Swift.String)
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
public enum HMACAlgorithm : Swift.String {
case SHA512
case SHA384
case SHA256
public init?(rawValue: Swift.String)
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
public enum JWKThumbprintAlgorithm : Swift.String {
case SHA256
public init?(rawValue: Swift.String)
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
public enum CompressionAlgorithm : Swift.String {
case DEFLATE
case NONE
public init?(rawValue: Swift.String)
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
@available(*, deprecated, message: "Use `KeyManagementAlgorithm` instead")
public typealias AsymmetricKeyAlgorithm = MyIdSDK.KeyManagementAlgorithm
@available(*, deprecated, message: "Use `ContentEncryptionAlgorithm` instead")
public typealias SymmetricKeyAlgorithm = MyIdSDK.ContentEncryptionAlgorithm
@objc public enum MyIdEntryType : Swift.Int {
case AUTH = 0
case FACE
public init?(rawValue: Swift.Int) public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int public typealias RawValue = Swift.Int
public var rawValue: Swift.Int { public var rawValue: Swift.Int {
get get
} }
} }
extension Security.SecKey : MyIdSDK.ExpressibleAsRSAPublicKeyComponents {
public static func representing(rsaPublicKeyComponents components: MyIdSDK.RSAPublicKeyComponents) throws -> Self
public func rsaPublicKeyComponents() throws -> MyIdSDK.RSAPublicKeyComponents
}
extension MyIdSDK.JWKSet : Swift.Encodable {
public func encode(to encoder: any Swift.Encoder) throws
}
extension MyIdSDK.JWKSet : Swift.Decodable {
public init(from decoder: any Swift.Decoder) throws
}
public enum SwiftyCryptoError : Swift.Error {
case invalidBase64String
case invalidKeyFormat
case invalidAsn1Structure
case asn1ParsingFailed
case invalidAsn1RootNode
case tagEncodingFailed
case keyCreateFailed(error: CoreFoundation.CFError?)
case keyAddFailed(status: Darwin.OSStatus)
case keyCopyFailed(status: Darwin.OSStatus)
case invalidDigestSize(digestSize: Swift.Int, maxChunkSize: Swift.Int)
case signatureCreateFailed(status: Darwin.OSStatus)
case signatureVerifyFailed(status: Darwin.OSStatus)
case keyRepresentationFailed(error: CoreFoundation.CFError?)
}
public struct JWSHeader {
public init(algorithm: MyIdSDK.SignatureAlgorithm)
public init(parameters: [Swift.String : Any]) throws
}
extension MyIdSDK.JWSHeader {
public var algorithm: MyIdSDK.SignatureAlgorithm? {
get
}
}
extension MyIdSDK.JWSHeader : MyIdSDK.CommonHeaderParameterSpace {
public var jku: Foundation.URL? {
get
set
}
public var jwk: Swift.String? {
get
set
}
public var jwkTyped: (any MyIdSDK.JWK)? {
get
set
}
public var kid: Swift.String? {
get
set
}
public var x5u: Foundation.URL? {
get
set
}
public var x5c: [Swift.String]? {
get
set
}
public var x5t: Swift.String? {
get
set
}
public var x5tS256: Swift.String? {
get
set
}
public var typ: Swift.String? {
get
set
}
public var cty: Swift.String? {
get
set
}
public var crit: [Swift.String]? {
get
set
}
}
extension MyIdSDK.ECPublicKey : Swift.Encodable {
public func encode(to encoder: any Swift.Encoder) throws
}
extension MyIdSDK.ECPublicKey : Swift.Decodable {
public init(from decoder: any Swift.Decoder) throws
}
extension MyIdSDK.ECPrivateKey : Swift.Encodable {
public func encode(to encoder: any Swift.Encoder) throws
}
extension MyIdSDK.ECPrivateKey : Swift.Decodable {
public init(from decoder: any Swift.Decoder) throws
}
@_inheritsConvenienceInitializers @objc public class MyIdOrganizationDetails : ObjectiveC.NSObject { @_inheritsConvenienceInitializers @objc public class MyIdOrganizationDetails : ObjectiveC.NSObject {
@objc public var phoneNumber: Swift.String? @objc public var phoneNumber: Swift.String?
@objc public var logo: UIKit.UIImage? @objc public var logo: UIKit.UIImage?
@objc override dynamic public init() @objc override dynamic public init()
@objc deinit @objc deinit
} }
@objc public enum MyIdDocumentType : Swift.Int { extension MyIdSDK.MyIdDocumentType : Swift.Equatable {}
case ID_CARD = 0 extension MyIdSDK.MyIdDocumentType : Swift.Hashable {}
case PASSPORT extension MyIdSDK.MyIdDocumentType : Swift.RawRepresentable {}
case DRIVER_LICENSE
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
extension MyIdSDK.JWK {
public subscript(parameter: Swift.String) -> Swift.String? {
get
}
}
extension MyIdSDK.JWK {
public func jsonString() -> Swift.String?
public func jsonData() -> Foundation.Data?
}
public struct JWE {
public let header: MyIdSDK.JWEHeader
public let encryptedKey: Foundation.Data
public let initializationVector: Foundation.Data
public let ciphertext: Foundation.Data
public let authenticationTag: Foundation.Data
public var compactSerializedString: Swift.String {
get
}
public var compactSerializedData: Foundation.Data {
get
}
public init<KeyType>(header: MyIdSDK.JWEHeader, payload: MyIdSDK.Payload, encrypter: MyIdSDK.Encrypter<KeyType>) throws
public init(compactSerialization: Swift.String) throws
public init(compactSerialization: Foundation.Data) throws
@available(*, deprecated, message: "Use `decrypt(using decrypter:)` instead")
public func decrypt<KeyType>(with key: KeyType) throws -> MyIdSDK.Payload
public func decrypt(using decrypter: MyIdSDK.Decrypter) throws -> MyIdSDK.Payload
}
extension MyIdSDK.JWE : MyIdSDK.CompactSerializable {
public func serialize(to serializer: inout any MyIdSDK.CompactSerializer)
}
extension MyIdSDK.JWE : MyIdSDK.CompactDeserializable {
public static var componentCount: Swift.Int {
get
}
public init(from deserializer: any MyIdSDK.CompactDeserializer) throws
}
@_inheritsConvenienceInitializers @objc public class MyIdClient : ObjectiveC.NSObject {
@objc public class func start(withConfig config: MyIdSDK.MyIdConfig, withDelegate delegate: any MyIdSDK.MyIdClientDelegate)
@objc override dynamic public init()
@objc deinit
}
public enum RSAKeyType {
case PUBLIC
case PRIVATE
public static func == (a: MyIdSDK.RSAKeyType, b: MyIdSDK.RSAKeyType) -> Swift.Bool
public func hash(into hasher: inout Swift.Hasher)
public var hashValue: Swift.Int {
get
}
}
public struct RSAKeyPairs {
public var privateKey: MyIdSDK.RSAKey
public var publicKey: MyIdSDK.RSAKey
}
public class RSAKey {
public var key: Security.SecKey
public var keyBase64String: Swift.String
public var data: Foundation.Data?
public var keyType: MyIdSDK.RSAKeyType!
public init(key: Security.SecKey, keyBase64String: Swift.String, keyType: MyIdSDK.RSAKeyType)
public init(base64String: Swift.String, keyType: MyIdSDK.RSAKeyType) throws
public static func base64StringWithoutPrefixAndSuffix(pemString: Swift.String) throws -> Swift.String
public func pemString() throws -> Swift.String
public func format(keyData: Foundation.Data, keyType: MyIdSDK.RSAKeyType) -> Swift.String
@objc deinit
}
@_inheritsConvenienceInitializers @objc public class MyIdAppearance : ObjectiveC.NSObject {
@objc public var primaryColor: UIKit.UIColor?
@objc public var secondaryColor: UIKit.UIColor?
@objc public var errorColor: UIKit.UIColor?
@objc public var primaryButtonColor: UIKit.UIColor?
@objc public var primaryButtonColorDisabled: UIKit.UIColor?
@objc public var primaryButtonTextColor: UIKit.UIColor?
@objc public var primaryButtonTextColorDisabled: UIKit.UIColor?
@objc public var buttonCornerRadius: Swift.Float
@objc override dynamic public init()
@objc deinit
}
@_inheritsConvenienceInitializers @objc public class MyIdResult : ObjectiveC.NSObject {
@objc public var image: UIKit.UIImage?
@objc public var code: Swift.String?
@objc public var comparisonValue: Swift.String?
@objc override dynamic public init()
@objc deinit
}
@objc public enum MyIdLocale : Swift.Int {
case RU = 0
case EN
case UZ
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
public struct Verifier {
public init?<KeyType>(verifyingAlgorithm: MyIdSDK.SignatureAlgorithm, key: KeyType)
}
extension MyIdSDK.Verifier {
@available(*, deprecated, message: "Use `init?(verifyingAlgorithm: SignatureAlgorithm, key: KeyType)` instead")
public init?<KeyType>(verifyingAlgorithm: MyIdSDK.SignatureAlgorithm, publicKey: KeyType)
}
public enum JWKKeyType : Swift.String, Swift.Codable {
case RSA
case OCT
case EC
public init?(rawValue: Swift.String)
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
public protocol JWK : Swift.Decodable, Swift.Encodable {
var keyType: MyIdSDK.JWKKeyType { get }
var parameters: [Swift.String : Swift.String] { get }
var requiredParameters: [Swift.String : Swift.String] { get }
subscript(parameter: Swift.String) -> Swift.String? { get }
init(data: Foundation.Data) throws
func jsonString() -> Swift.String?
func jsonData() -> Foundation.Data?
@available(iOS 11.0, *)
func thumbprint(algorithm: MyIdSDK.JWKThumbprintAlgorithm) throws -> Swift.String
@available(iOS 11.0, *)
func withThumbprintAsKeyId(algorithm: MyIdSDK.JWKThumbprintAlgorithm) throws -> Self
}
extension MyIdSDK.JWK {
@available(iOS 11.0, *)
public func thumbprint(algorithm: MyIdSDK.JWKThumbprintAlgorithm = .SHA256) throws -> Swift.String
}
public struct JWKSet {
public let keys: [any MyIdSDK.JWK]
public init(keys: [any MyIdSDK.JWK])
public init(data: Foundation.Data) throws
public func jsonString() -> Swift.String?
public func jsonData() -> Foundation.Data?
}
extension MyIdSDK.JWKSet : Swift.Collection {
public typealias ArrayType = [any MyIdSDK.JWK]
public typealias Element = MyIdSDK.JWKSet.ArrayType.Element
public typealias Index = MyIdSDK.JWKSet.ArrayType.Index
public typealias Iterator = MyIdSDK.JWKSet.ArrayType.Iterator
public var startIndex: MyIdSDK.JWKSet.Index {
get
}
public var endIndex: MyIdSDK.JWKSet.Index {
get
}
public subscript(index: MyIdSDK.JWKSet.Index) -> MyIdSDK.JWKSet.Element {
get
}
public func index(after index: MyIdSDK.JWKSet.Index) -> MyIdSDK.JWKSet.Index
public func makeIterator() -> Swift.IndexingIterator<MyIdSDK.JWKSet.ArrayType>
public typealias Indices = Swift.DefaultIndices<MyIdSDK.JWKSet>
public typealias SubSequence = Swift.Slice<MyIdSDK.JWKSet>
}
extension MyIdSDK.JWKSet : Swift.ExpressibleByArrayLiteral {
public typealias ArrayLiteralElement = MyIdSDK.JWKSet.Element
public init(arrayLiteral elements: MyIdSDK.JWKSet.ArrayLiteralElement...)
}
public typealias ECPublicKeyComponents = (crv: Swift.String, x: Foundation.Data, y: Foundation.Data)
public typealias ECPrivateKeyComponents = (crv: Swift.String, x: Foundation.Data, y: Foundation.Data, d: Foundation.Data)
public protocol ExpressibleAsECPublicKeyComponents {
static func representing(ecPublicKeyComponents components: MyIdSDK.ECPublicKeyComponents) throws -> Self
func ecPublicKeyComponents() throws -> MyIdSDK.ECPublicKeyComponents
}
public protocol ExpressibleAsECPrivateKeyComponents {
static func representing(ecPrivateKeyComponents components: MyIdSDK.ECPrivateKeyComponents) throws -> Self
func ecPrivateKeyComponents() throws -> MyIdSDK.ECPrivateKeyComponents
}
public struct ECPublicKey : MyIdSDK.JWK {
public let keyType: MyIdSDK.JWKKeyType
public let parameters: [Swift.String : Swift.String]
public var requiredParameters: [Swift.String : Swift.String] {
get
}
public let crv: MyIdSDK.ECCurveType
public let x: Swift.String
public let y: Swift.String
public init(crv: MyIdSDK.ECCurveType, x: Swift.String, y: Swift.String, additionalParameters parameters: [Swift.String : Swift.String] = [:])
public init(publicKey: any MyIdSDK.ExpressibleAsECPublicKeyComponents, additionalParameters parameters: [Swift.String : Swift.String] = [:]) throws
public init(data: Foundation.Data) throws
public func converted<T>(to type: T.Type) throws -> T where T : MyIdSDK.ExpressibleAsECPublicKeyComponents
@available(iOS 11.0, *)
public func withThumbprintAsKeyId(algorithm: MyIdSDK.JWKThumbprintAlgorithm = .SHA256) throws -> MyIdSDK.ECPublicKey
}
public struct ECPrivateKey : MyIdSDK.JWK {
public let keyType: MyIdSDK.JWKKeyType
public let parameters: [Swift.String : Swift.String]
public var requiredParameters: [Swift.String : Swift.String] {
get
}
public let crv: MyIdSDK.ECCurveType
public let x: Swift.String
public let y: Swift.String
public let privateKey: Swift.String
public init(crv: Swift.String, x: Swift.String, y: Swift.String, privateKey: Swift.String, additionalParameters parameters: [Swift.String : Swift.String] = [:]) throws
public init(privateKey: any MyIdSDK.ExpressibleAsECPrivateKeyComponents, additionalParameters parameters: [Swift.String : Swift.String] = [:]) throws
public init(data: Foundation.Data) throws
public func converted<T>(to type: T.Type) throws -> T where T : MyIdSDK.ExpressibleAsECPrivateKeyComponents
@available(iOS 11.0, *)
public func withThumbprintAsKeyId(algorithm: MyIdSDK.JWKThumbprintAlgorithm = .SHA256) throws -> MyIdSDK.ECPrivateKey
}
public typealias ECKeyPair = MyIdSDK.ECPrivateKey
public struct Signer<KeyType> {
public init?(signingAlgorithm: MyIdSDK.SignatureAlgorithm, key: KeyType)
}
extension MyIdSDK.Signer {
@available(*, deprecated, message: "Use `init?(signingAlgorithm: SignatureAlgorithm, key: KeyType)` instead")
public init?(signingAlgorithm: MyIdSDK.SignatureAlgorithm, privateKey: KeyType)
}
extension MyIdSDK.RSASignature.DigestType : Swift.Equatable {}
extension MyIdSDK.RSASignature.DigestType : Swift.Hashable {}
extension MyIdSDK.MyIdBuildMode : Swift.Equatable {} extension MyIdSDK.MyIdBuildMode : Swift.Equatable {}
extension MyIdSDK.MyIdBuildMode : Swift.Hashable {} extension MyIdSDK.MyIdBuildMode : Swift.Hashable {}
extension MyIdSDK.MyIdBuildMode : Swift.RawRepresentable {} extension MyIdSDK.MyIdBuildMode : Swift.RawRepresentable {}
extension MyIdSDK.JWKParameter : Swift.Equatable {}
extension MyIdSDK.JWKParameter : Swift.Hashable {}
extension MyIdSDK.JWKParameter : Swift.RawRepresentable {}
extension MyIdSDK.RSAParameter : Swift.Equatable {}
extension MyIdSDK.RSAParameter : Swift.Hashable {}
extension MyIdSDK.RSAParameter : Swift.RawRepresentable {}
extension MyIdSDK.SymmetricKeyParameter : Swift.Equatable {}
extension MyIdSDK.SymmetricKeyParameter : Swift.Hashable {}
extension MyIdSDK.SymmetricKeyParameter : Swift.RawRepresentable {}
extension MyIdSDK.ECParameter : Swift.Equatable {}
extension MyIdSDK.ECParameter : Swift.Hashable {}
extension MyIdSDK.ECParameter : Swift.RawRepresentable {}
extension MyIdSDK.SwiftyCryptoRSAKeySize : Swift.Equatable {}
extension MyIdSDK.SwiftyCryptoRSAKeySize : Swift.Hashable {}
extension MyIdSDK.SwiftyCryptoRSAKeySize : Swift.RawRepresentable {}
extension MyIdSDK.JWKThumbprintAlgorithm : Swift.Equatable {}
extension MyIdSDK.JWKThumbprintAlgorithm : Swift.Hashable {}
extension MyIdSDK.JWKThumbprintAlgorithm : Swift.RawRepresentable {}
extension MyIdSDK.ContentEncryptionAlgorithm : Swift.Equatable {}
extension MyIdSDK.ContentEncryptionAlgorithm : Swift.Hashable {}
extension MyIdSDK.ContentEncryptionAlgorithm : Swift.RawRepresentable {}
extension MyIdSDK.KeyManagementAlgorithm : Swift.Equatable {}
extension MyIdSDK.KeyManagementAlgorithm : Swift.Hashable {}
extension MyIdSDK.KeyManagementAlgorithm : Swift.RawRepresentable {}
extension MyIdSDK.MyIdResolution : Swift.Equatable {} extension MyIdSDK.MyIdResolution : Swift.Equatable {}
extension MyIdSDK.MyIdResolution : Swift.Hashable {} extension MyIdSDK.MyIdResolution : Swift.Hashable {}
extension MyIdSDK.MyIdResolution : Swift.RawRepresentable {} extension MyIdSDK.MyIdResolution : Swift.RawRepresentable {}
extension MyIdSDK.MyIdPresentationStyle : Swift.Equatable {}
extension MyIdSDK.MyIdPresentationStyle : Swift.Hashable {}
extension MyIdSDK.MyIdPresentationStyle : Swift.RawRepresentable {}
extension MyIdSDK.MyIdEntryType : Swift.Equatable {}
extension MyIdSDK.MyIdEntryType : Swift.Hashable {}
extension MyIdSDK.MyIdEntryType : Swift.RawRepresentable {}
extension MyIdSDK.MyIdCameraShape : Swift.Equatable {} extension MyIdSDK.MyIdCameraShape : Swift.Equatable {}
extension MyIdSDK.MyIdCameraShape : Swift.Hashable {} extension MyIdSDK.MyIdCameraShape : Swift.Hashable {}
extension MyIdSDK.MyIdCameraShape : Swift.RawRepresentable {} extension MyIdSDK.MyIdCameraShape : Swift.RawRepresentable {}
extension MyIdSDK.MyIdCameraSelector : Swift.Equatable {}
extension MyIdSDK.MyIdCameraSelector : Swift.Hashable {}
extension MyIdSDK.MyIdCameraSelector : Swift.RawRepresentable {}
extension MyIdSDK.MyIdResidency : Swift.Equatable {} extension MyIdSDK.MyIdResidency : Swift.Equatable {}
extension MyIdSDK.MyIdResidency : Swift.Hashable {} extension MyIdSDK.MyIdResidency : Swift.Hashable {}
extension MyIdSDK.MyIdResidency : Swift.RawRepresentable {} extension MyIdSDK.MyIdResidency : Swift.RawRepresentable {}
extension MyIdSDK.ECCurveType : Swift.Equatable {}
extension MyIdSDK.ECCurveType : Swift.Hashable {}
extension MyIdSDK.ECCurveType : Swift.RawRepresentable {}
extension MyIdSDK.SignatureAlgorithm : Swift.Equatable {}
extension MyIdSDK.SignatureAlgorithm : Swift.Hashable {}
extension MyIdSDK.SignatureAlgorithm : Swift.RawRepresentable {}
extension MyIdSDK.ECCompression : Swift.Equatable {}
extension MyIdSDK.ECCompression : Swift.Hashable {}
extension MyIdSDK.ECCompression : Swift.RawRepresentable {}
extension MyIdSDK.JWEHeader : MyIdSDK.DataConvertible {}
extension MyIdSDK.HMACAlgorithm : Swift.Equatable {}
extension MyIdSDK.HMACAlgorithm : Swift.Hashable {}
extension MyIdSDK.HMACAlgorithm : Swift.RawRepresentable {}
extension MyIdSDK.CompressionAlgorithm : Swift.Equatable {}
extension MyIdSDK.CompressionAlgorithm : Swift.Hashable {}
extension MyIdSDK.CompressionAlgorithm : Swift.RawRepresentable {}
extension MyIdSDK.MyIdEntryType : Swift.Equatable {}
extension MyIdSDK.MyIdEntryType : Swift.Hashable {}
extension MyIdSDK.MyIdEntryType : Swift.RawRepresentable {}
extension MyIdSDK.JWSHeader : MyIdSDK.DataConvertible {}
extension MyIdSDK.MyIdDocumentType : Swift.Equatable {}
extension MyIdSDK.MyIdDocumentType : Swift.Hashable {}
extension MyIdSDK.MyIdDocumentType : Swift.RawRepresentable {}
extension MyIdSDK.RSAKeyType : Swift.Equatable {}
extension MyIdSDK.RSAKeyType : Swift.Hashable {}
extension MyIdSDK.MyIdLocale : Swift.Equatable {} extension MyIdSDK.MyIdLocale : Swift.Equatable {}
extension MyIdSDK.MyIdLocale : Swift.Hashable {} extension MyIdSDK.MyIdLocale : Swift.Hashable {}
extension MyIdSDK.MyIdLocale : Swift.RawRepresentable {} extension MyIdSDK.MyIdLocale : Swift.RawRepresentable {}
extension MyIdSDK.JWKKeyType : Swift.Equatable {}
extension MyIdSDK.JWKKeyType : Swift.Hashable {}
extension MyIdSDK.JWKKeyType : Swift.RawRepresentable {}
...@@ -15,116 +15,46 @@ import LocalAuthentication ...@@ -15,116 +15,46 @@ import LocalAuthentication
@_exported import MyIdSDK @_exported import MyIdSDK
import Security import Security
import Swift import Swift
import SwiftUI
import UIKit import UIKit
import Vision import Vision
import _Concurrency import _Concurrency
import _StringProcessing import _StringProcessing
public protocol DataConvertible { @_inheritsConvenienceInitializers @objc public class MyIdResult : ObjectiveC.NSObject {
init?(_ data: Foundation.Data) @objc public var image: UIKit.UIImage?
func data() -> Foundation.Data @objc public var code: Swift.String?
} @objc public var comparisonValue: Swift.String?
public struct Payload : MyIdSDK.DataConvertible { @objc override dynamic public init()
public init(_ payload: Foundation.Data) @objc deinit
public func data() -> Foundation.Data
} }
public protocol Message { extension Swift.String : Swift.Error {
var data: Foundation.Data { get }
var base64String: Swift.String { get }
init(data: Foundation.Data)
init(base64String: Swift.String) throws
} }
extension MyIdSDK.Message { @objc public enum MyIdDocumentType : Swift.Int {
public var base64String: Swift.String { case ID_CARD = 0
case PASSPORT
case DRIVER_LICENSE
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get get
} }
} }
extension Foundation.Data : MyIdSDK.ExpressibleAsRSAPublicKeyComponents { @_inheritsConvenienceInitializers @available(iOS 13.0, *)
public static func representing(rsaPublicKeyComponents components: MyIdSDK.RSAPublicKeyComponents) throws -> Foundation.Data @objc public class MyIdViewModel : ObjectiveC.NSObject, Combine.ObservableObject {
public func rsaPublicKeyComponents() throws -> MyIdSDK.RSAPublicKeyComponents @objc public func startMyId(clientId: Swift.String, clientHash: Swift.String, clientHashId: Swift.String, passportData: Swift.String? = nil, dateOfBirth: Swift.String? = nil, minAge: Swift.Int = 16, sdkHash: Swift.String? = nil, externalId: Swift.String? = nil, threshold: Swift.Float = 0.5, buildMode: MyIdSDK.MyIdBuildMode = MyIdBuildMode.PRODUCTION, entryType: MyIdSDK.MyIdEntryType = MyIdEntryType.AUTH, residency: MyIdSDK.MyIdResidency = MyIdResidency.RESIDENT, locale: MyIdSDK.MyIdLocale = MyIdLocale.RU, cameraShape: MyIdSDK.MyIdCameraShape = MyIdCameraShape.CIRCLE, resolution: MyIdSDK.MyIdResolution = MyIdResolution.RESOLUTION_480, cameraSelector: MyIdSDK.MyIdCameraSelector = MyIdCameraSelector.FRONT, presentationStyle: MyIdSDK.MyIdPresentationStyle = MyIdPresentationStyle.FULL, organizationDetails: MyIdSDK.MyIdOrganizationDetails? = nil, appearance: MyIdSDK.MyIdAppearance? = nil, withPhoto: Swift.Bool = false)
} @objc override dynamic public init()
public class RSASignature { public typealias ObjectWillChangePublisher = Combine.ObservableObjectPublisher
public enum DigestType {
case sha1
case sha224
case sha256
case sha384
case sha512
public static func == (a: MyIdSDK.RSASignature.DigestType, b: MyIdSDK.RSASignature.DigestType) -> Swift.Bool
public func hash(into hasher: inout Swift.Hasher)
public var hashValue: Swift.Int {
get
}
}
final public let data: Foundation.Data
public init(data: Foundation.Data)
convenience public init(base64Encoded base64String: Swift.String) throws
public var base64String: Swift.String {
get
}
@objc deinit @objc deinit
} }
public enum JOSESwiftError : Swift.Error { @available(iOS 13.0, *)
case signingFailed(description: Swift.String) @objc extension MyIdSDK.MyIdViewModel : MyIdSDK.MyIdClientDelegate {
case verifyingFailed(description: Swift.String) @objc dynamic public func onSuccess(result: MyIdSDK.MyIdResult)
case signatureInvalid @objc dynamic public func onError(exception: MyIdSDK.MyIdException)
case encryptingFailed(description: Swift.String) @objc dynamic public func onUserExited()
case decryptingFailed(description: Swift.String)
case wrongDataEncoding(data: Foundation.Data)
case invalidCompactSerializationComponentCount(count: Swift.Int)
case componentNotValidBase64URL(component: Swift.String)
case componentCouldNotBeInitializedFromData(data: Foundation.Data)
case couldNotConstructJWK
case modulusNotBase64URLUIntEncoded
case exponentNotBase64URLUIntEncoded
case privateExponentNotBase64URLUIntEncoded
case symmetricKeyNotBase64URLEncoded
case xNotBase64URLUIntEncoded
case yNotBase64URLUIntEncoded
case privateKeyNotBase64URLUIntEncoded
case invalidCurveType
case compressedCurvePointsUnsupported
case invalidCurvePointOctetLength
case localAuthenticationFailed(errorCode: Swift.Int)
case compressionFailed
case decompressionFailed
case compressionAlgorithmNotSupported
case rawDataMustBeGreaterThanZero
case compressedDataMustBeGreaterThanZero
case thumbprintSerialization
}
extension Foundation.Data : MyIdSDK.ExpressibleAsSymmetricKeyComponents {
public static func representing(symmetricKeyComponents components: MyIdSDK.SymmetricKeyComponents) throws -> Foundation.Data
public func symmetricKeyComponents() throws -> MyIdSDK.SymmetricKeyComponents
} }
public typealias SymmetricKeyComponents = (Foundation.Data) @_inheritsConvenienceInitializers @objc public class MyIdClient : ObjectiveC.NSObject {
public protocol ExpressibleAsSymmetricKeyComponents { @objc public class func start(withConfig config: MyIdSDK.MyIdConfig, withDelegate delegate: any MyIdSDK.MyIdClientDelegate)
static func representing(symmetricKeyComponents components: MyIdSDK.SymmetricKeyComponents) throws -> Self @objc public class func run(withConfig config: MyIdSDK.MyIdConfig, withDelegate delegate: any MyIdSDK.MyIdClientDelegate) -> UIKit.UIViewController
func symmetricKeyComponents() throws -> MyIdSDK.SymmetricKeyComponents
}
public struct SymmetricKey : MyIdSDK.JWK {
public let keyType: MyIdSDK.JWKKeyType
public let parameters: [Swift.String : Swift.String]
public var requiredParameters: [Swift.String : Swift.String] {
get
}
public let key: Swift.String
public init(key: Foundation.Data, additionalParameters parameters: [Swift.String : Swift.String] = [:])
public init(key: any MyIdSDK.ExpressibleAsSymmetricKeyComponents, additionalParameters parameters: [Swift.String : Swift.String] = [:]) throws
public init(data: Foundation.Data) throws
public func converted<T>(to type: T.Type) throws -> T where T : MyIdSDK.ExpressibleAsSymmetricKeyComponents
@available(iOS 11.0, *)
public func withThumbprintAsKeyId(algorithm: MyIdSDK.JWKThumbprintAlgorithm = .SHA256) throws -> MyIdSDK.SymmetricKey
}
@_inheritsConvenienceInitializers @objc public class MyIdGenerator : ObjectiveC.NSObject {
@objc public class func hash(payload: Swift.String, clientHash: Swift.String, clientHashId: Swift.String) -> Swift.String?
@objc public class func device() -> Swift.String
@objc public class func deviceModel() -> Swift.String?
@objc public class func deviceName() -> Swift.String?
@objc public class func systemName() -> Swift.String?
@objc public class func systemVersion() -> Swift.String?
@objc public class func isPhone() -> Swift.Bool
@objc public class func isPad() -> Swift.Bool
@objc public class func isSimulator() -> Swift.Bool
@objc override dynamic public init() @objc override dynamic public init()
@objc deinit @objc deinit
} }
...@@ -137,136 +67,43 @@ public struct SymmetricKey : MyIdSDK.JWK { ...@@ -137,136 +67,43 @@ public struct SymmetricKey : MyIdSDK.JWK {
get get
} }
} }
public enum SecureRandomError : Swift.Error { @objc public enum MyIdResolution : Swift.Int {
case failed(status: Darwin.OSStatus) case RESOLUTION_480 = 0
case countMustBeGreaterThanZero case RESOLUTION_720
} public init?(rawValue: Swift.Int)
public struct SecureRandom { public typealias RawValue = Swift.Int
public static func generate(count: Swift.Int) throws -> Foundation.Data public var rawValue: Swift.Int {
}
public enum JWKParameter : Swift.String, Swift.CodingKey {
case keyType
case keyUse
case keyOperations
case algorithm
case keyIdentifier
case X509URL
case X509CertificateChain
case X509CertificateSHA1Thumbprint
case X509CertificateSHA256Thumbprint
public init?(rawValue: Swift.String)
public init?(stringValue: Swift.String)
public init?(intValue: Swift.Int)
public typealias RawValue = Swift.String
public var intValue: Swift.Int? {
get
}
public var rawValue: Swift.String {
get
}
public var stringValue: Swift.String {
get
}
}
public enum RSAParameter : Swift.String, Swift.CodingKey {
case modulus
case exponent
case privateExponent
public init?(rawValue: Swift.String)
public init?(stringValue: Swift.String)
public init?(intValue: Swift.Int)
public typealias RawValue = Swift.String
public var intValue: Swift.Int? {
get
}
public var rawValue: Swift.String {
get
}
public var stringValue: Swift.String {
get
}
}
public enum SymmetricKeyParameter : Swift.String, Swift.CodingKey {
case key
public init?(rawValue: Swift.String)
public init?(stringValue: Swift.String)
public init?(intValue: Swift.Int)
public typealias RawValue = Swift.String
public var intValue: Swift.Int? {
get
}
public var rawValue: Swift.String {
get
}
public var stringValue: Swift.String {
get
}
}
public enum ECParameter : Swift.String, Swift.CodingKey {
case curve
case x
case y
case privateKey
public init?(rawValue: Swift.String)
public init?(stringValue: Swift.String)
public init?(intValue: Swift.Int)
public typealias RawValue = Swift.String
public var intValue: Swift.Int? {
get
}
public var rawValue: Swift.String {
get
}
public var stringValue: Swift.String {
get get
} }
} }
public protocol CompactSerializable { @objc public enum MyIdPresentationStyle : Swift.Int {
func serialize(to serializer: inout any MyIdSDK.CompactSerializer) case FULL = 0
} case SHEET
public protocol CompactSerializer {
var components: [any MyIdSDK.DataConvertible] { get }
mutating func serialize<T>(_ object: T) where T : MyIdSDK.DataConvertible
}
public struct JOSESerializer {
public func serialize<T>(compact object: T) -> Swift.String where T : MyIdSDK.CompactSerializable
}
public enum SwiftyCryptoRSAKeySize : Swift.Int {
case RSAKey64
case RSAKey128
case RSAKey256
case RSAKey512
public init?(rawValue: Swift.Int) public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int public typealias RawValue = Swift.Int
public var rawValue: Swift.Int { public var rawValue: Swift.Int {
get get
} }
} }
@objc @_inheritsConvenienceInitializers public class RSAKeyFactory : ObjectiveC.NSObject { @_inheritsConvenienceInitializers @objc public class MyIdAppearance : ObjectiveC.NSObject {
public static let shared: MyIdSDK.RSAKeyFactory @objc public var primaryColor: UIKit.UIColor?
public func generateKeyPair(keySize: MyIdSDK.SwiftyCryptoRSAKeySize) -> MyIdSDK.RSAKeyPairs? @objc public var errorColor: UIKit.UIColor?
@objc public var primaryButtonColor: UIKit.UIColor?
@objc public var primaryButtonColorDisabled: UIKit.UIColor?
@objc public var primaryButtonTextColor: UIKit.UIColor?
@objc public var primaryButtonTextColorDisabled: UIKit.UIColor?
@objc public var buttonCornerRadius: Swift.Float
@objc override dynamic public init() @objc override dynamic public init()
@objc deinit @objc deinit
} }
@objc public protocol MyIdClientDelegate { @objc public enum MyIdEntryType : Swift.Int {
@objc func onSuccess(result: MyIdSDK.MyIdResult) case AUTH = 0
@objc func onError(exception: MyIdSDK.MyIdException) case FACE
@objc func onUserExited() public init?(rawValue: Swift.Int)
} public typealias RawValue = Swift.Int
public struct Decrypter { public var rawValue: Swift.Int {
public init?<KeyType>(keyManagementAlgorithm: MyIdSDK.KeyManagementAlgorithm, contentEncryptionAlgorithm: MyIdSDK.ContentEncryptionAlgorithm, decryptionKey: KeyType) get
} }
extension MyIdSDK.Decrypter {
@available(*, deprecated, message: "Use `init?(keyManagementAlgorithm:contentEncryptionAlgorithm:decryptionKey:)` instead")
public init?<KeyType>(keyDecryptionAlgorithm: MyIdSDK.AsymmetricKeyAlgorithm, decryptionKey key: KeyType, contentDecryptionAlgorithm: MyIdSDK.SymmetricKeyAlgorithm)
@available(*, deprecated, message: "Use `init?(keyManagementAlgorithm:contentEncryptionAlgorithm:decryptionKey:)` instead")
public init?<KeyType>(keyDecryptionAlgorithm: MyIdSDK.AsymmetricKeyAlgorithm, keyDecryptionKey kdk: KeyType, contentDecryptionAlgorithm: MyIdSDK.SymmetricKeyAlgorithm)
}
@available(*, deprecated, message: "This type will be removed with the next major release.")
public struct DecryptionContext {
}
@available(*, deprecated, message: "This type will be removed with the next major release.")
public struct SymmetricDecryptionContext {
} }
@_inheritsConvenienceInitializers @objc public class MyIdConfig : ObjectiveC.NSObject { @_inheritsConvenienceInitializers @objc public class MyIdConfig : ObjectiveC.NSObject {
@objc public var clientId: Swift.String? @objc public var clientId: Swift.String?
...@@ -274,6 +111,7 @@ public struct SymmetricDecryptionContext { ...@@ -274,6 +111,7 @@ public struct SymmetricDecryptionContext {
@objc public var clientHashId: Swift.String? @objc public var clientHashId: Swift.String?
@objc public var passportData: Swift.String? @objc public var passportData: Swift.String?
@objc public var dateOfBirth: Swift.String? @objc public var dateOfBirth: Swift.String?
@objc public var minAge: Swift.Int
@objc public var sdkHash: Swift.String? @objc public var sdkHash: Swift.String?
@objc public var externalId: Swift.String? @objc public var externalId: Swift.String?
@objc public var threshold: Swift.Float @objc public var threshold: Swift.Float
...@@ -283,44 +121,18 @@ public struct SymmetricDecryptionContext { ...@@ -283,44 +121,18 @@ public struct SymmetricDecryptionContext {
@objc public var locale: MyIdSDK.MyIdLocale @objc public var locale: MyIdSDK.MyIdLocale
@objc public var cameraShape: MyIdSDK.MyIdCameraShape @objc public var cameraShape: MyIdSDK.MyIdCameraShape
@objc public var resolution: MyIdSDK.MyIdResolution @objc public var resolution: MyIdSDK.MyIdResolution
@objc public var cameraSelector: MyIdSDK.MyIdCameraSelector
@objc public var presentationStyle: MyIdSDK.MyIdPresentationStyle
@objc public var organizationDetails: MyIdSDK.MyIdOrganizationDetails? @objc public var organizationDetails: MyIdSDK.MyIdOrganizationDetails?
@objc public var appearance: MyIdSDK.MyIdAppearance? @objc public var appearance: MyIdSDK.MyIdAppearance?
@objc public var withPhoto: Swift.Bool @objc public var withPhoto: Swift.Bool
@objc override dynamic public init() @objc override dynamic public init()
@objc deinit @objc deinit
} }
extension MyIdSDK.RSAPublicKey : Swift.Encodable { @objc public protocol MyIdClientDelegate {
public func encode(to encoder: any Swift.Encoder) throws @objc func onSuccess(result: MyIdSDK.MyIdResult)
} @objc func onError(exception: MyIdSDK.MyIdException)
extension MyIdSDK.RSAPublicKey : Swift.Decodable { @objc func onUserExited()
public init(from decoder: any Swift.Decoder) throws
}
extension MyIdSDK.RSAPrivateKey : Swift.Encodable {
public func encode(to encoder: any Swift.Encoder) throws
}
extension MyIdSDK.RSAPrivateKey : Swift.Decodable {
public init(from decoder: any Swift.Decoder) throws
}
extension Foundation.Data : MyIdSDK.ExpressibleAsECPublicKeyComponents {
public static func representing(ecPublicKeyComponents components: MyIdSDK.ECPublicKeyComponents) throws -> Foundation.Data
public func ecPublicKeyComponents() throws -> MyIdSDK.ECPublicKeyComponents
}
public protocol CompactDeserializable {
static var componentCount: Swift.Int { get }
init(from deserializer: any MyIdSDK.CompactDeserializer) throws
}
public protocol CompactDeserializer {
func deserialize<T>(_ type: T.Type, at index: Swift.Int) throws -> T where T : MyIdSDK.DataConvertible
}
public struct JOSEDeserializer {
public init()
public func deserialize<T>(_ type: T.Type, fromCompactSerialization compactSerialization: Swift.String) throws -> T where T : MyIdSDK.CompactDeserializable
}
public enum ComponentCompactSerializedIndex {
}
extension Foundation.Data : MyIdSDK.ExpressibleAsECPrivateKeyComponents {
public static func representing(ecPrivateKeyComponents components: MyIdSDK.ECPrivateKeyComponents) throws -> Foundation.Data
public func ecPrivateKeyComponents() throws -> MyIdSDK.ECPrivateKeyComponents
} }
@_inheritsConvenienceInitializers @objc public class MyIdException : ObjectiveC.NSObject { @_inheritsConvenienceInitializers @objc public class MyIdException : ObjectiveC.NSObject {
@objc public var message: Swift.String? @objc public var message: Swift.String?
...@@ -328,97 +140,37 @@ extension Foundation.Data : MyIdSDK.ExpressibleAsECPrivateKeyComponents { ...@@ -328,97 +140,37 @@ extension Foundation.Data : MyIdSDK.ExpressibleAsECPrivateKeyComponents {
@objc override dynamic public init() @objc override dynamic public init()
@objc deinit @objc deinit
} }
@objc public enum MyIdResolution : Swift.Int { @_inheritsConvenienceInitializers @objc public class MyIdGenerator : ObjectiveC.NSObject {
case RESOLUTION_480 = 0 @objc public class func hash(payload: Swift.String, clientHash: Swift.String, clientHashId: Swift.String) -> Swift.String?
case RESOLUTION_720 @objc public class func device() -> Swift.String
@objc public class func deviceModel() -> Swift.String?
@objc public class func deviceName() -> Swift.String?
@objc public class func systemName() -> Swift.String?
@objc public class func systemVersion() -> Swift.String?
@objc public class func isPhone() -> Swift.Bool
@objc public class func isPad() -> Swift.Bool
@objc public class func isSimulator() -> Swift.Bool
@objc override dynamic public init()
@objc deinit
}
@objc public enum MyIdCameraShape : Swift.Int {
case ELLIPSE = 0
case CIRCLE
public init?(rawValue: Swift.Int) public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int public typealias RawValue = Swift.Int
public var rawValue: Swift.Int { public var rawValue: Swift.Int {
get get
} }
} }
extension Foundation.Data { @objc public enum MyIdCameraSelector : Swift.Int {
public init?(base64URLEncoded base64URLString: Swift.String) case FRONT = 0
public init?(base64URLEncoded base64URLData: Foundation.Data) case BACK
public func base64URLEncodedString() -> Swift.String
public func base64URLEncodedData() -> Foundation.Data
}
extension Foundation.Data : MyIdSDK.DataConvertible {
public init(_ data: Foundation.Data)
public func data() -> Foundation.Data
}
public typealias RSAPublicKeyComponents = (modulus: Foundation.Data, exponent: Foundation.Data)
public typealias RSAPrivateKeyComponents = (modulus: Foundation.Data, exponent: Foundation.Data, privateExponent: Foundation.Data)
public protocol ExpressibleAsRSAPublicKeyComponents {
static func representing(rsaPublicKeyComponents components: MyIdSDK.RSAPublicKeyComponents) throws -> Self
func rsaPublicKeyComponents() throws -> MyIdSDK.RSAPublicKeyComponents
}
public protocol ExpressibleAsRSAPrivateKeyComponents {
static func representing(rsaPrivateKeyComponents components: MyIdSDK.RSAPrivateKeyComponents) throws -> Self
func rsaPrivateKeyComponents() throws -> MyIdSDK.RSAPrivateKeyComponents
}
public struct RSAPublicKey : MyIdSDK.JWK {
public let keyType: MyIdSDK.JWKKeyType
public let parameters: [Swift.String : Swift.String]
public var requiredParameters: [Swift.String : Swift.String] {
get
}
public let modulus: Swift.String
public let exponent: Swift.String
public init(modulus: Swift.String, exponent: Swift.String, additionalParameters parameters: [Swift.String : Swift.String] = [:])
public init(publicKey: any MyIdSDK.ExpressibleAsRSAPublicKeyComponents, additionalParameters parameters: [Swift.String : Swift.String] = [:]) throws
public init(data: Foundation.Data) throws
public func converted<T>(to type: T.Type) throws -> T where T : MyIdSDK.ExpressibleAsRSAPublicKeyComponents
@available(iOS 11.0, *)
public func withThumbprintAsKeyId(algorithm: MyIdSDK.JWKThumbprintAlgorithm = .SHA256) throws -> MyIdSDK.RSAPublicKey
}
public struct RSAPrivateKey : MyIdSDK.JWK {
public let keyType: MyIdSDK.JWKKeyType
public let parameters: [Swift.String : Swift.String]
public var requiredParameters: [Swift.String : Swift.String] {
get
}
public let modulus: Swift.String
public let exponent: Swift.String
public let privateExponent: Swift.String
public init(modulus: Swift.String, exponent: Swift.String, privateExponent: Swift.String, additionalParameters parameters: [Swift.String : Swift.String] = [:])
public init(privateKey: any MyIdSDK.ExpressibleAsRSAPrivateKeyComponents, additionalParameters parameters: [Swift.String : Swift.String] = [:]) throws
public init(data: Foundation.Data) throws
public func converted<T>(to type: T.Type) throws -> T where T : MyIdSDK.ExpressibleAsRSAPrivateKeyComponents
@available(iOS 11.0, *)
public func withThumbprintAsKeyId(algorithm: MyIdSDK.JWKThumbprintAlgorithm = .SHA256) throws -> MyIdSDK.RSAPrivateKey
}
public typealias RSAKeyPair = MyIdSDK.RSAPrivateKey
@objc public enum MyIdCameraShape : Swift.Int {
case ELLIPSE = 0
case CIRCLE
public init?(rawValue: Swift.Int) public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int public typealias RawValue = Swift.Int
public var rawValue: Swift.Int { public var rawValue: Swift.Int {
get get
} }
} }
extension Swift.String : Swift.Error {
}
extension MyIdSDK.SymmetricKey : Swift.Encodable {
public func encode(to encoder: any Swift.Encoder) throws
}
extension MyIdSDK.SymmetricKey : Swift.Decodable {
public init(from decoder: any Swift.Decoder) throws
}
public class RSAMessage : MyIdSDK.Message {
public var data: Foundation.Data
public var base64String: Swift.String
required public init(data: Foundation.Data)
required convenience public init(base64String: Swift.String) throws
public func sign(signingKey: MyIdSDK.RSAKey, digestType: MyIdSDK.RSASignature.DigestType) throws -> MyIdSDK.RSASignature
public func verify(verifyKey: MyIdSDK.RSAKey, signature: MyIdSDK.RSASignature, digestType: MyIdSDK.RSASignature.DigestType) throws -> Swift.Bool
@objc deinit
}
extension Security.SecKey : MyIdSDK.ExpressibleAsECPublicKeyComponents {
public static func representing(ecPublicKeyComponents components: MyIdSDK.ECPublicKeyComponents) throws -> Self
public func ecPublicKeyComponents() throws -> MyIdSDK.ECPublicKeyComponents
}
@objc public enum MyIdResidency : Swift.Int { @objc public enum MyIdResidency : Swift.Int {
case USER_DEFINED = 0 case USER_DEFINED = 0
case RESIDENT case RESIDENT
...@@ -429,640 +181,46 @@ extension Security.SecKey : MyIdSDK.ExpressibleAsECPublicKeyComponents { ...@@ -429,640 +181,46 @@ extension Security.SecKey : MyIdSDK.ExpressibleAsECPublicKeyComponents {
get get
} }
} }
public protocol CommonHeaderParameterSpace { @objc public enum MyIdLocale : Swift.Int {
var jku: Foundation.URL? { get set } case RU = 0
var jwk: Swift.String? { get set } case EN
var jwkTyped: (any MyIdSDK.JWK)? { get set } case UZ
var kid: Swift.String? { get set }
var x5u: Foundation.URL? { get set }
var x5c: [Swift.String]? { get set }
var x5t: Swift.String? { get set }
var x5tS256: Swift.String? { get set }
var typ: Swift.String? { get set }
var cty: Swift.String? { get set }
var crit: [Swift.String]? { get set }
}
public enum ECCurveType : Swift.String, Swift.Codable {
case P256
case P384
case P521
public init?(rawValue: Swift.String)
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
public enum ECCompression : Swift.UInt8 {
case CompressedYEven
case CompressedYOdd
case Uncompressed
case HybridYEven
case HybridYOdd
public init?(rawValue: Swift.UInt8)
public typealias RawValue = Swift.UInt8
public var rawValue: Swift.UInt8 {
get
}
}
public struct JWEHeader {
public init(keyManagementAlgorithm: MyIdSDK.KeyManagementAlgorithm, contentEncryptionAlgorithm: MyIdSDK.ContentEncryptionAlgorithm)
public init(parameters: [Swift.String : Any]) throws
}
extension MyIdSDK.JWEHeader {
public var keyManagementAlgorithm: MyIdSDK.KeyManagementAlgorithm? {
get
}
public var contentEncryptionAlgorithm: MyIdSDK.ContentEncryptionAlgorithm? {
get
}
public var compressionAlgorithm: MyIdSDK.CompressionAlgorithm? {
get
}
public var zip: Swift.String? {
get
set
}
}
extension MyIdSDK.JWEHeader : MyIdSDK.CommonHeaderParameterSpace {
public var jku: Foundation.URL? {
get
set
}
public var jwk: Swift.String? {
get
set
}
public var jwkTyped: (any MyIdSDK.JWK)? {
get
set
}
public var kid: Swift.String? {
get
set
}
public var x5u: Foundation.URL? {
get
set
}
public var x5c: [Swift.String]? {
get
set
}
public var x5t: Swift.String? {
get
set
}
public var x5tS256: Swift.String? {
get
set
}
public var typ: Swift.String? {
get
set
}
public var cty: Swift.String? {
get
set
}
public var crit: [Swift.String]? {
get
set
}
}
extension MyIdSDK.JWEHeader {
@available(*, deprecated, message: "Use `JWEHeader.keyManagementAlgorithm` instead")
public var algorithm: MyIdSDK.AsymmetricKeyAlgorithm? {
get
}
@available(*, deprecated, message: "Use `JWEHeader.contentEncryptionAlgorithm` instead")
public var encryptionAlgorithm: MyIdSDK.SymmetricKeyAlgorithm? {
get
}
@available(*, deprecated, message: "Use `init(keyManagementAlgorithm:contentEncryptionAlgorithm` instead")
public init(algorithm: MyIdSDK.AsymmetricKeyAlgorithm, encryptionAlgorithm: MyIdSDK.SymmetricKeyAlgorithm)
}
public struct Encrypter<KeyType> {
public init?(keyManagementAlgorithm: MyIdSDK.KeyManagementAlgorithm, contentEncryptionAlgorithm: MyIdSDK.ContentEncryptionAlgorithm, encryptionKey: KeyType)
}
extension MyIdSDK.Encrypter {
@available(*, deprecated, message: "Use `init?(keyManagementAlgorithm:contentEncryptionAlgorithm:encryptionKey:)` instead")
public init?(keyEncryptionAlgorithm: MyIdSDK.AsymmetricKeyAlgorithm, encryptionKey key: KeyType, contentEncyptionAlgorithm: MyIdSDK.SymmetricKeyAlgorithm)
@available(*, deprecated, message: "Use `init?(keyManagementAlgorithm:contentEncryptionAlgorithm:encryptionKey:)` instead")
public init?(keyEncryptionAlgorithm: MyIdSDK.AsymmetricKeyAlgorithm, keyEncryptionKey kek: KeyType, contentEncyptionAlgorithm: MyIdSDK.SymmetricKeyAlgorithm)
}
@available(*, deprecated, message: "This type will be removed with the next major release.")
public struct EncryptionContext {
}
@available(*, deprecated, message: "This type will be removed with the next major release.")
public struct SymmetricEncryptionContext {
}
public struct JWS {
public let header: MyIdSDK.JWSHeader
public let payload: MyIdSDK.Payload
public let signature: Foundation.Data
public var compactSerializedString: Swift.String {
get
}
public var compactSerializedData: Foundation.Data {
get
}
public init<KeyType>(header: MyIdSDK.JWSHeader, payload: MyIdSDK.Payload, signer: MyIdSDK.Signer<KeyType>) throws
public init(compactSerialization: Swift.String) throws
public init(compactSerialization: Foundation.Data) throws
@available(*, deprecated, message: "Use `isValid(for verifier:)` instead")
public func isValid<KeyType>(for publicKey: KeyType) -> Swift.Bool
@available(*, deprecated, message: "Use `validate(using verifier:)` instead")
public func validate<KeyType>(with publicKey: KeyType) throws -> MyIdSDK.JWS
public func validate(using verifier: MyIdSDK.Verifier) throws -> MyIdSDK.JWS
public func isValid(for verifier: MyIdSDK.Verifier) -> Swift.Bool
}
extension MyIdSDK.JWS : MyIdSDK.CompactSerializable {
public func serialize(to serializer: inout any MyIdSDK.CompactSerializer)
}
extension MyIdSDK.JWS : MyIdSDK.CompactDeserializable {
public static var componentCount: Swift.Int {
get
}
public init(from deserializer: any MyIdSDK.CompactDeserializer) throws
}
extension Security.SecKey : MyIdSDK.ExpressibleAsECPrivateKeyComponents {
public static func representing(ecPrivateKeyComponents components: MyIdSDK.ECPrivateKeyComponents) throws -> Self
public func ecPrivateKeyComponents() throws -> MyIdSDK.ECPrivateKeyComponents
}
public enum SignatureAlgorithm : Swift.String {
case HS256
case HS384
case HS512
case RS256
case RS384
case RS512
@available(iOS 11, *)
case PS256
@available(iOS 11, *)
case PS384
@available(iOS 11, *)
case PS512
case ES256
case ES384
case ES512
public init?(rawValue: Swift.String)
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
public enum KeyManagementAlgorithm : Swift.String, Swift.CaseIterable {
case RSA1_5
case RSAOAEP
case RSAOAEP256
case A128KW
case A192KW
case A256KW
case direct
public init?(rawValue: Swift.String)
public typealias AllCases = [MyIdSDK.KeyManagementAlgorithm]
public typealias RawValue = Swift.String
public static var allCases: [MyIdSDK.KeyManagementAlgorithm] {
get
}
public var rawValue: Swift.String {
get
}
}
public enum ContentEncryptionAlgorithm : Swift.String {
case A256CBCHS512
case A128CBCHS256
public init?(rawValue: Swift.String)
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
public enum HMACAlgorithm : Swift.String {
case SHA512
case SHA384
case SHA256
public init?(rawValue: Swift.String)
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
public enum JWKThumbprintAlgorithm : Swift.String {
case SHA256
public init?(rawValue: Swift.String)
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
public enum CompressionAlgorithm : Swift.String {
case DEFLATE
case NONE
public init?(rawValue: Swift.String)
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
@available(*, deprecated, message: "Use `KeyManagementAlgorithm` instead")
public typealias AsymmetricKeyAlgorithm = MyIdSDK.KeyManagementAlgorithm
@available(*, deprecated, message: "Use `ContentEncryptionAlgorithm` instead")
public typealias SymmetricKeyAlgorithm = MyIdSDK.ContentEncryptionAlgorithm
@objc public enum MyIdEntryType : Swift.Int {
case AUTH = 0
case FACE
public init?(rawValue: Swift.Int) public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int public typealias RawValue = Swift.Int
public var rawValue: Swift.Int { public var rawValue: Swift.Int {
get get
} }
} }
extension Security.SecKey : MyIdSDK.ExpressibleAsRSAPublicKeyComponents {
public static func representing(rsaPublicKeyComponents components: MyIdSDK.RSAPublicKeyComponents) throws -> Self
public func rsaPublicKeyComponents() throws -> MyIdSDK.RSAPublicKeyComponents
}
extension MyIdSDK.JWKSet : Swift.Encodable {
public func encode(to encoder: any Swift.Encoder) throws
}
extension MyIdSDK.JWKSet : Swift.Decodable {
public init(from decoder: any Swift.Decoder) throws
}
public enum SwiftyCryptoError : Swift.Error {
case invalidBase64String
case invalidKeyFormat
case invalidAsn1Structure
case asn1ParsingFailed
case invalidAsn1RootNode
case tagEncodingFailed
case keyCreateFailed(error: CoreFoundation.CFError?)
case keyAddFailed(status: Darwin.OSStatus)
case keyCopyFailed(status: Darwin.OSStatus)
case invalidDigestSize(digestSize: Swift.Int, maxChunkSize: Swift.Int)
case signatureCreateFailed(status: Darwin.OSStatus)
case signatureVerifyFailed(status: Darwin.OSStatus)
case keyRepresentationFailed(error: CoreFoundation.CFError?)
}
public struct JWSHeader {
public init(algorithm: MyIdSDK.SignatureAlgorithm)
public init(parameters: [Swift.String : Any]) throws
}
extension MyIdSDK.JWSHeader {
public var algorithm: MyIdSDK.SignatureAlgorithm? {
get
}
}
extension MyIdSDK.JWSHeader : MyIdSDK.CommonHeaderParameterSpace {
public var jku: Foundation.URL? {
get
set
}
public var jwk: Swift.String? {
get
set
}
public var jwkTyped: (any MyIdSDK.JWK)? {
get
set
}
public var kid: Swift.String? {
get
set
}
public var x5u: Foundation.URL? {
get
set
}
public var x5c: [Swift.String]? {
get
set
}
public var x5t: Swift.String? {
get
set
}
public var x5tS256: Swift.String? {
get
set
}
public var typ: Swift.String? {
get
set
}
public var cty: Swift.String? {
get
set
}
public var crit: [Swift.String]? {
get
set
}
}
extension MyIdSDK.ECPublicKey : Swift.Encodable {
public func encode(to encoder: any Swift.Encoder) throws
}
extension MyIdSDK.ECPublicKey : Swift.Decodable {
public init(from decoder: any Swift.Decoder) throws
}
extension MyIdSDK.ECPrivateKey : Swift.Encodable {
public func encode(to encoder: any Swift.Encoder) throws
}
extension MyIdSDK.ECPrivateKey : Swift.Decodable {
public init(from decoder: any Swift.Decoder) throws
}
@_inheritsConvenienceInitializers @objc public class MyIdOrganizationDetails : ObjectiveC.NSObject { @_inheritsConvenienceInitializers @objc public class MyIdOrganizationDetails : ObjectiveC.NSObject {
@objc public var phoneNumber: Swift.String? @objc public var phoneNumber: Swift.String?
@objc public var logo: UIKit.UIImage? @objc public var logo: UIKit.UIImage?
@objc override dynamic public init() @objc override dynamic public init()
@objc deinit @objc deinit
} }
@objc public enum MyIdDocumentType : Swift.Int { extension MyIdSDK.MyIdDocumentType : Swift.Equatable {}
case ID_CARD = 0 extension MyIdSDK.MyIdDocumentType : Swift.Hashable {}
case PASSPORT extension MyIdSDK.MyIdDocumentType : Swift.RawRepresentable {}
case DRIVER_LICENSE
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
extension MyIdSDK.JWK {
public subscript(parameter: Swift.String) -> Swift.String? {
get
}
}
extension MyIdSDK.JWK {
public func jsonString() -> Swift.String?
public func jsonData() -> Foundation.Data?
}
public struct JWE {
public let header: MyIdSDK.JWEHeader
public let encryptedKey: Foundation.Data
public let initializationVector: Foundation.Data
public let ciphertext: Foundation.Data
public let authenticationTag: Foundation.Data
public var compactSerializedString: Swift.String {
get
}
public var compactSerializedData: Foundation.Data {
get
}
public init<KeyType>(header: MyIdSDK.JWEHeader, payload: MyIdSDK.Payload, encrypter: MyIdSDK.Encrypter<KeyType>) throws
public init(compactSerialization: Swift.String) throws
public init(compactSerialization: Foundation.Data) throws
@available(*, deprecated, message: "Use `decrypt(using decrypter:)` instead")
public func decrypt<KeyType>(with key: KeyType) throws -> MyIdSDK.Payload
public func decrypt(using decrypter: MyIdSDK.Decrypter) throws -> MyIdSDK.Payload
}
extension MyIdSDK.JWE : MyIdSDK.CompactSerializable {
public func serialize(to serializer: inout any MyIdSDK.CompactSerializer)
}
extension MyIdSDK.JWE : MyIdSDK.CompactDeserializable {
public static var componentCount: Swift.Int {
get
}
public init(from deserializer: any MyIdSDK.CompactDeserializer) throws
}
@_inheritsConvenienceInitializers @objc public class MyIdClient : ObjectiveC.NSObject {
@objc public class func start(withConfig config: MyIdSDK.MyIdConfig, withDelegate delegate: any MyIdSDK.MyIdClientDelegate)
@objc override dynamic public init()
@objc deinit
}
public enum RSAKeyType {
case PUBLIC
case PRIVATE
public static func == (a: MyIdSDK.RSAKeyType, b: MyIdSDK.RSAKeyType) -> Swift.Bool
public func hash(into hasher: inout Swift.Hasher)
public var hashValue: Swift.Int {
get
}
}
public struct RSAKeyPairs {
public var privateKey: MyIdSDK.RSAKey
public var publicKey: MyIdSDK.RSAKey
}
public class RSAKey {
public var key: Security.SecKey
public var keyBase64String: Swift.String
public var data: Foundation.Data?
public var keyType: MyIdSDK.RSAKeyType!
public init(key: Security.SecKey, keyBase64String: Swift.String, keyType: MyIdSDK.RSAKeyType)
public init(base64String: Swift.String, keyType: MyIdSDK.RSAKeyType) throws
public static func base64StringWithoutPrefixAndSuffix(pemString: Swift.String) throws -> Swift.String
public func pemString() throws -> Swift.String
public func format(keyData: Foundation.Data, keyType: MyIdSDK.RSAKeyType) -> Swift.String
@objc deinit
}
@_inheritsConvenienceInitializers @objc public class MyIdAppearance : ObjectiveC.NSObject {
@objc public var primaryColor: UIKit.UIColor?
@objc public var secondaryColor: UIKit.UIColor?
@objc public var errorColor: UIKit.UIColor?
@objc public var primaryButtonColor: UIKit.UIColor?
@objc public var primaryButtonColorDisabled: UIKit.UIColor?
@objc public var primaryButtonTextColor: UIKit.UIColor?
@objc public var primaryButtonTextColorDisabled: UIKit.UIColor?
@objc public var buttonCornerRadius: Swift.Float
@objc override dynamic public init()
@objc deinit
}
@_inheritsConvenienceInitializers @objc public class MyIdResult : ObjectiveC.NSObject {
@objc public var image: UIKit.UIImage?
@objc public var code: Swift.String?
@objc public var comparisonValue: Swift.String?
@objc override dynamic public init()
@objc deinit
}
@objc public enum MyIdLocale : Swift.Int {
case RU = 0
case EN
case UZ
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
public struct Verifier {
public init?<KeyType>(verifyingAlgorithm: MyIdSDK.SignatureAlgorithm, key: KeyType)
}
extension MyIdSDK.Verifier {
@available(*, deprecated, message: "Use `init?(verifyingAlgorithm: SignatureAlgorithm, key: KeyType)` instead")
public init?<KeyType>(verifyingAlgorithm: MyIdSDK.SignatureAlgorithm, publicKey: KeyType)
}
public enum JWKKeyType : Swift.String, Swift.Codable {
case RSA
case OCT
case EC
public init?(rawValue: Swift.String)
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
public protocol JWK : Swift.Decodable, Swift.Encodable {
var keyType: MyIdSDK.JWKKeyType { get }
var parameters: [Swift.String : Swift.String] { get }
var requiredParameters: [Swift.String : Swift.String] { get }
subscript(parameter: Swift.String) -> Swift.String? { get }
init(data: Foundation.Data) throws
func jsonString() -> Swift.String?
func jsonData() -> Foundation.Data?
@available(iOS 11.0, *)
func thumbprint(algorithm: MyIdSDK.JWKThumbprintAlgorithm) throws -> Swift.String
@available(iOS 11.0, *)
func withThumbprintAsKeyId(algorithm: MyIdSDK.JWKThumbprintAlgorithm) throws -> Self
}
extension MyIdSDK.JWK {
@available(iOS 11.0, *)
public func thumbprint(algorithm: MyIdSDK.JWKThumbprintAlgorithm = .SHA256) throws -> Swift.String
}
public struct JWKSet {
public let keys: [any MyIdSDK.JWK]
public init(keys: [any MyIdSDK.JWK])
public init(data: Foundation.Data) throws
public func jsonString() -> Swift.String?
public func jsonData() -> Foundation.Data?
}
extension MyIdSDK.JWKSet : Swift.Collection {
public typealias ArrayType = [any MyIdSDK.JWK]
public typealias Element = MyIdSDK.JWKSet.ArrayType.Element
public typealias Index = MyIdSDK.JWKSet.ArrayType.Index
public typealias Iterator = MyIdSDK.JWKSet.ArrayType.Iterator
public var startIndex: MyIdSDK.JWKSet.Index {
get
}
public var endIndex: MyIdSDK.JWKSet.Index {
get
}
public subscript(index: MyIdSDK.JWKSet.Index) -> MyIdSDK.JWKSet.Element {
get
}
public func index(after index: MyIdSDK.JWKSet.Index) -> MyIdSDK.JWKSet.Index
public func makeIterator() -> Swift.IndexingIterator<MyIdSDK.JWKSet.ArrayType>
public typealias Indices = Swift.DefaultIndices<MyIdSDK.JWKSet>
public typealias SubSequence = Swift.Slice<MyIdSDK.JWKSet>
}
extension MyIdSDK.JWKSet : Swift.ExpressibleByArrayLiteral {
public typealias ArrayLiteralElement = MyIdSDK.JWKSet.Element
public init(arrayLiteral elements: MyIdSDK.JWKSet.ArrayLiteralElement...)
}
public typealias ECPublicKeyComponents = (crv: Swift.String, x: Foundation.Data, y: Foundation.Data)
public typealias ECPrivateKeyComponents = (crv: Swift.String, x: Foundation.Data, y: Foundation.Data, d: Foundation.Data)
public protocol ExpressibleAsECPublicKeyComponents {
static func representing(ecPublicKeyComponents components: MyIdSDK.ECPublicKeyComponents) throws -> Self
func ecPublicKeyComponents() throws -> MyIdSDK.ECPublicKeyComponents
}
public protocol ExpressibleAsECPrivateKeyComponents {
static func representing(ecPrivateKeyComponents components: MyIdSDK.ECPrivateKeyComponents) throws -> Self
func ecPrivateKeyComponents() throws -> MyIdSDK.ECPrivateKeyComponents
}
public struct ECPublicKey : MyIdSDK.JWK {
public let keyType: MyIdSDK.JWKKeyType
public let parameters: [Swift.String : Swift.String]
public var requiredParameters: [Swift.String : Swift.String] {
get
}
public let crv: MyIdSDK.ECCurveType
public let x: Swift.String
public let y: Swift.String
public init(crv: MyIdSDK.ECCurveType, x: Swift.String, y: Swift.String, additionalParameters parameters: [Swift.String : Swift.String] = [:])
public init(publicKey: any MyIdSDK.ExpressibleAsECPublicKeyComponents, additionalParameters parameters: [Swift.String : Swift.String] = [:]) throws
public init(data: Foundation.Data) throws
public func converted<T>(to type: T.Type) throws -> T where T : MyIdSDK.ExpressibleAsECPublicKeyComponents
@available(iOS 11.0, *)
public func withThumbprintAsKeyId(algorithm: MyIdSDK.JWKThumbprintAlgorithm = .SHA256) throws -> MyIdSDK.ECPublicKey
}
public struct ECPrivateKey : MyIdSDK.JWK {
public let keyType: MyIdSDK.JWKKeyType
public let parameters: [Swift.String : Swift.String]
public var requiredParameters: [Swift.String : Swift.String] {
get
}
public let crv: MyIdSDK.ECCurveType
public let x: Swift.String
public let y: Swift.String
public let privateKey: Swift.String
public init(crv: Swift.String, x: Swift.String, y: Swift.String, privateKey: Swift.String, additionalParameters parameters: [Swift.String : Swift.String] = [:]) throws
public init(privateKey: any MyIdSDK.ExpressibleAsECPrivateKeyComponents, additionalParameters parameters: [Swift.String : Swift.String] = [:]) throws
public init(data: Foundation.Data) throws
public func converted<T>(to type: T.Type) throws -> T where T : MyIdSDK.ExpressibleAsECPrivateKeyComponents
@available(iOS 11.0, *)
public func withThumbprintAsKeyId(algorithm: MyIdSDK.JWKThumbprintAlgorithm = .SHA256) throws -> MyIdSDK.ECPrivateKey
}
public typealias ECKeyPair = MyIdSDK.ECPrivateKey
public struct Signer<KeyType> {
public init?(signingAlgorithm: MyIdSDK.SignatureAlgorithm, key: KeyType)
}
extension MyIdSDK.Signer {
@available(*, deprecated, message: "Use `init?(signingAlgorithm: SignatureAlgorithm, key: KeyType)` instead")
public init?(signingAlgorithm: MyIdSDK.SignatureAlgorithm, privateKey: KeyType)
}
extension MyIdSDK.RSASignature.DigestType : Swift.Equatable {}
extension MyIdSDK.RSASignature.DigestType : Swift.Hashable {}
extension MyIdSDK.MyIdBuildMode : Swift.Equatable {} extension MyIdSDK.MyIdBuildMode : Swift.Equatable {}
extension MyIdSDK.MyIdBuildMode : Swift.Hashable {} extension MyIdSDK.MyIdBuildMode : Swift.Hashable {}
extension MyIdSDK.MyIdBuildMode : Swift.RawRepresentable {} extension MyIdSDK.MyIdBuildMode : Swift.RawRepresentable {}
extension MyIdSDK.JWKParameter : Swift.Equatable {}
extension MyIdSDK.JWKParameter : Swift.Hashable {}
extension MyIdSDK.JWKParameter : Swift.RawRepresentable {}
extension MyIdSDK.RSAParameter : Swift.Equatable {}
extension MyIdSDK.RSAParameter : Swift.Hashable {}
extension MyIdSDK.RSAParameter : Swift.RawRepresentable {}
extension MyIdSDK.SymmetricKeyParameter : Swift.Equatable {}
extension MyIdSDK.SymmetricKeyParameter : Swift.Hashable {}
extension MyIdSDK.SymmetricKeyParameter : Swift.RawRepresentable {}
extension MyIdSDK.ECParameter : Swift.Equatable {}
extension MyIdSDK.ECParameter : Swift.Hashable {}
extension MyIdSDK.ECParameter : Swift.RawRepresentable {}
extension MyIdSDK.SwiftyCryptoRSAKeySize : Swift.Equatable {}
extension MyIdSDK.SwiftyCryptoRSAKeySize : Swift.Hashable {}
extension MyIdSDK.SwiftyCryptoRSAKeySize : Swift.RawRepresentable {}
extension MyIdSDK.JWKThumbprintAlgorithm : Swift.Equatable {}
extension MyIdSDK.JWKThumbprintAlgorithm : Swift.Hashable {}
extension MyIdSDK.JWKThumbprintAlgorithm : Swift.RawRepresentable {}
extension MyIdSDK.ContentEncryptionAlgorithm : Swift.Equatable {}
extension MyIdSDK.ContentEncryptionAlgorithm : Swift.Hashable {}
extension MyIdSDK.ContentEncryptionAlgorithm : Swift.RawRepresentable {}
extension MyIdSDK.KeyManagementAlgorithm : Swift.Equatable {}
extension MyIdSDK.KeyManagementAlgorithm : Swift.Hashable {}
extension MyIdSDK.KeyManagementAlgorithm : Swift.RawRepresentable {}
extension MyIdSDK.MyIdResolution : Swift.Equatable {} extension MyIdSDK.MyIdResolution : Swift.Equatable {}
extension MyIdSDK.MyIdResolution : Swift.Hashable {} extension MyIdSDK.MyIdResolution : Swift.Hashable {}
extension MyIdSDK.MyIdResolution : Swift.RawRepresentable {} extension MyIdSDK.MyIdResolution : Swift.RawRepresentable {}
extension MyIdSDK.MyIdPresentationStyle : Swift.Equatable {}
extension MyIdSDK.MyIdPresentationStyle : Swift.Hashable {}
extension MyIdSDK.MyIdPresentationStyle : Swift.RawRepresentable {}
extension MyIdSDK.MyIdEntryType : Swift.Equatable {}
extension MyIdSDK.MyIdEntryType : Swift.Hashable {}
extension MyIdSDK.MyIdEntryType : Swift.RawRepresentable {}
extension MyIdSDK.MyIdCameraShape : Swift.Equatable {} extension MyIdSDK.MyIdCameraShape : Swift.Equatable {}
extension MyIdSDK.MyIdCameraShape : Swift.Hashable {} extension MyIdSDK.MyIdCameraShape : Swift.Hashable {}
extension MyIdSDK.MyIdCameraShape : Swift.RawRepresentable {} extension MyIdSDK.MyIdCameraShape : Swift.RawRepresentable {}
extension MyIdSDK.MyIdCameraSelector : Swift.Equatable {}
extension MyIdSDK.MyIdCameraSelector : Swift.Hashable {}
extension MyIdSDK.MyIdCameraSelector : Swift.RawRepresentable {}
extension MyIdSDK.MyIdResidency : Swift.Equatable {} extension MyIdSDK.MyIdResidency : Swift.Equatable {}
extension MyIdSDK.MyIdResidency : Swift.Hashable {} extension MyIdSDK.MyIdResidency : Swift.Hashable {}
extension MyIdSDK.MyIdResidency : Swift.RawRepresentable {} extension MyIdSDK.MyIdResidency : Swift.RawRepresentable {}
extension MyIdSDK.ECCurveType : Swift.Equatable {}
extension MyIdSDK.ECCurveType : Swift.Hashable {}
extension MyIdSDK.ECCurveType : Swift.RawRepresentable {}
extension MyIdSDK.SignatureAlgorithm : Swift.Equatable {}
extension MyIdSDK.SignatureAlgorithm : Swift.Hashable {}
extension MyIdSDK.SignatureAlgorithm : Swift.RawRepresentable {}
extension MyIdSDK.ECCompression : Swift.Equatable {}
extension MyIdSDK.ECCompression : Swift.Hashable {}
extension MyIdSDK.ECCompression : Swift.RawRepresentable {}
extension MyIdSDK.JWEHeader : MyIdSDK.DataConvertible {}
extension MyIdSDK.HMACAlgorithm : Swift.Equatable {}
extension MyIdSDK.HMACAlgorithm : Swift.Hashable {}
extension MyIdSDK.HMACAlgorithm : Swift.RawRepresentable {}
extension MyIdSDK.CompressionAlgorithm : Swift.Equatable {}
extension MyIdSDK.CompressionAlgorithm : Swift.Hashable {}
extension MyIdSDK.CompressionAlgorithm : Swift.RawRepresentable {}
extension MyIdSDK.MyIdEntryType : Swift.Equatable {}
extension MyIdSDK.MyIdEntryType : Swift.Hashable {}
extension MyIdSDK.MyIdEntryType : Swift.RawRepresentable {}
extension MyIdSDK.JWSHeader : MyIdSDK.DataConvertible {}
extension MyIdSDK.MyIdDocumentType : Swift.Equatable {}
extension MyIdSDK.MyIdDocumentType : Swift.Hashable {}
extension MyIdSDK.MyIdDocumentType : Swift.RawRepresentable {}
extension MyIdSDK.RSAKeyType : Swift.Equatable {}
extension MyIdSDK.RSAKeyType : Swift.Hashable {}
extension MyIdSDK.MyIdLocale : Swift.Equatable {} extension MyIdSDK.MyIdLocale : Swift.Equatable {}
extension MyIdSDK.MyIdLocale : Swift.Hashable {} extension MyIdSDK.MyIdLocale : Swift.Hashable {}
extension MyIdSDK.MyIdLocale : Swift.RawRepresentable {} extension MyIdSDK.MyIdLocale : Swift.RawRepresentable {}
extension MyIdSDK.JWKKeyType : Swift.Equatable {}
extension MyIdSDK.JWKKeyType : Swift.Hashable {}
extension MyIdSDK.JWKKeyType : Swift.RawRepresentable {}
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
</data> </data>
<key>Headers/MyIdSDK-Swift.h</key> <key>Headers/MyIdSDK-Swift.h</key>
<data> <data>
XUn/6gq8vuZw0KtF42q/4lYYxng= KufxuT2ZS1Ks2/WQILpOMss+Uu0=
</data> </data>
<key>Headers/MyIdSDK.h</key> <key>Headers/MyIdSDK.h</key>
<data> <data>
...@@ -22,43 +22,43 @@ ...@@ -22,43 +22,43 @@
</data> </data>
<key>Modules/MyIdSDK.swiftmodule/arm64-apple-ios-simulator.abi.json</key> <key>Modules/MyIdSDK.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
<data> <data>
FmIIgltXcb7s8u+f5byt3jQce4w= C+7Up5vudNgVthoxzm3VoyMvmA8=
</data> </data>
<key>Modules/MyIdSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key> <key>Modules/MyIdSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
<data> <data>
JgFQHOwMq3+Jv9Z+47DAtn+qUmQ= pzR6SW+SumwP7Bvtkr/7nZuBVuQ=
</data> </data>
<key>Modules/MyIdSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key> <key>Modules/MyIdSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
<data> <data>
vJ0rg2yuhQlA/uiCxNPhs0VN2zQ= 1hKK3otVpBJ7A238GdVQy1PK4bA=
</data> </data>
<key>Modules/MyIdSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key> <key>Modules/MyIdSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key>
<data> <data>
JgFQHOwMq3+Jv9Z+47DAtn+qUmQ= pzR6SW+SumwP7Bvtkr/7nZuBVuQ=
</data> </data>
<key>Modules/MyIdSDK.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key> <key>Modules/MyIdSDK.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
<data> <data>
7CiceHSSeyi4Ay4or+xsOAo11Ys= ElxSWwkUkG4z/j3gxxOeiqU5jAA=
</data> </data>
<key>Modules/MyIdSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json</key> <key>Modules/MyIdSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
<data> <data>
FmIIgltXcb7s8u+f5byt3jQce4w= C+7Up5vudNgVthoxzm3VoyMvmA8=
</data> </data>
<key>Modules/MyIdSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key> <key>Modules/MyIdSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
<data> <data>
Xoz2nm3P6WQF1NSjv6BnVkgXttY= JLzKime05KH8fBsawov243NaIkQ=
</data> </data>
<key>Modules/MyIdSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key> <key>Modules/MyIdSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
<data> <data>
7cxskObkb1ETUlKinUqbst++4cg= 5Bh17Ll3OSESqLL4x9rHaTNyYAw=
</data> </data>
<key>Modules/MyIdSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key> <key>Modules/MyIdSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key>
<data> <data>
Xoz2nm3P6WQF1NSjv6BnVkgXttY= JLzKime05KH8fBsawov243NaIkQ=
</data> </data>
<key>Modules/MyIdSDK.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key> <key>Modules/MyIdSDK.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
<data> <data>
arzVL6jQj2raGk2ffy5j/uhxueA= DGQLSO8R8mIuDtpMb99mY4SBR/Y=
</data> </data>
<key>Modules/module.modulemap</key> <key>Modules/module.modulemap</key>
<data> <data>
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
<dict> <dict>
<key>hash2</key> <key>hash2</key>
<data> <data>
u6ZEP0vWo4p9aDEXmAVo8Lxms0Lo1I4rucDIYt9o/ck= peuuKVUgDXrKxqGZrYXk1IWNX9355Fz+YJRZHGlRtpc=
</data> </data>
</dict> </dict>
<key>Headers/MyIdSDK.h</key> <key>Headers/MyIdSDK.h</key>
...@@ -92,70 +92,70 @@ ...@@ -92,70 +92,70 @@
<dict> <dict>
<key>hash2</key> <key>hash2</key>
<data> <data>
+LKCFEsqcxM3H2wD0GCd7OxKRpws06sJQ+DNjVXiugw= 1kiLqu6SI2BoWb7wo0Kj+K/vXpaD406Zn8HJOOlkhf4=
</data> </data>
</dict> </dict>
<key>Modules/MyIdSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key> <key>Modules/MyIdSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
<dict> <dict>
<key>hash2</key> <key>hash2</key>
<data> <data>
52NqmNir1yN4xcrEimb107IrIkZRzdR+SR8Lgh6V/rE= bc6o/wTky6ywXf46zV+VymX3udkzalKC8UWTrwBmlBk=
</data> </data>
</dict> </dict>
<key>Modules/MyIdSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key> <key>Modules/MyIdSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
<dict> <dict>
<key>hash2</key> <key>hash2</key>
<data> <data>
jVp7OXbvDxC9vO1Mi2MEbeCPZ54IgSvRQa0zsU4VcBE= LTibgjRL+B1KH9Um0gky4uUP7BWGjgj/p51l1U1mNX4=
</data> </data>
</dict> </dict>
<key>Modules/MyIdSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key> <key>Modules/MyIdSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key>
<dict> <dict>
<key>hash2</key> <key>hash2</key>
<data> <data>
52NqmNir1yN4xcrEimb107IrIkZRzdR+SR8Lgh6V/rE= bc6o/wTky6ywXf46zV+VymX3udkzalKC8UWTrwBmlBk=
</data> </data>
</dict> </dict>
<key>Modules/MyIdSDK.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key> <key>Modules/MyIdSDK.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
<dict> <dict>
<key>hash2</key> <key>hash2</key>
<data> <data>
dSiS02P0nLt+philMcqV0a/LG9kF47a/yn6e3w7K4no= w1L09JgjRALnHrs2NSryhw3gwReY+v/vCEMqorS9BKE=
</data> </data>
</dict> </dict>
<key>Modules/MyIdSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json</key> <key>Modules/MyIdSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
<dict> <dict>
<key>hash2</key> <key>hash2</key>
<data> <data>
+LKCFEsqcxM3H2wD0GCd7OxKRpws06sJQ+DNjVXiugw= 1kiLqu6SI2BoWb7wo0Kj+K/vXpaD406Zn8HJOOlkhf4=
</data> </data>
</dict> </dict>
<key>Modules/MyIdSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key> <key>Modules/MyIdSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
<dict> <dict>
<key>hash2</key> <key>hash2</key>
<data> <data>
67PceeEuTV6GBQQ4IkL0nLGt03JLJVJsS3rp2f6O0f8= x+vFsFLPovaQkt5HHZ0s5UJEdthOUU4GLJJgcXydMzw=
</data> </data>
</dict> </dict>
<key>Modules/MyIdSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key> <key>Modules/MyIdSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
<dict> <dict>
<key>hash2</key> <key>hash2</key>
<data> <data>
jzk8xeiNNAc06KP4NfQVP8AMDC2x3bqZREyAqeCsMJ8= NPIjzz9ZAayv1XPQX2CCsIRvJn5QHOoY2gk/35yO+DU=
</data> </data>
</dict> </dict>
<key>Modules/MyIdSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key> <key>Modules/MyIdSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key>
<dict> <dict>
<key>hash2</key> <key>hash2</key>
<data> <data>
67PceeEuTV6GBQQ4IkL0nLGt03JLJVJsS3rp2f6O0f8= x+vFsFLPovaQkt5HHZ0s5UJEdthOUU4GLJJgcXydMzw=
</data> </data>
</dict> </dict>
<key>Modules/MyIdSDK.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key> <key>Modules/MyIdSDK.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
<dict> <dict>
<key>hash2</key> <key>hash2</key>
<data> <data>
lM/KIDJ088Yh2JDyf4mYeg5cy0mu2jKltlhwZVWzEQk= GqJAEqqbqZ2pKYtRJlaBZL3CPsPWnBTAJeAi6xyqV5Q=
</data> </data>
</dict> </dict>
<key>Modules/module.modulemap</key> <key>Modules/module.modulemap</key>
......
...@@ -14,4 +14,4 @@ ...@@ -14,4 +14,4 @@
> **Note**: Ensure you add the .xcframework files, rather than the .framework files. > **Note**: Ensure you add the .xcframework files, rather than the .framework files.
5. Under the **Embed** column, ensure **Embed & Sign** is set for MyIdSDK framework.= 5. Under the **Embed** column, ensure **Embed & Sign** is set for MyIdSDK framework.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment