Commit d972d1a3 authored by Javokhir's avatar Javokhir
Browse files

2.2.2 version

parent a15836e0
No preview for this file type
Pod::Spec.new do |spec|
spec.name = "MyIdSDK"
spec.version = "2.2.1"
spec.platform = :ios, '11.0'
spec.ios.deployment_target = '11.0'
spec.version = "2.2.2"
spec.platform = :ios, '11.1'
spec.ios.deployment_target = '11.1'
spec.summary = "MyID Framework"
spec.description = "MyID Framework for iOS"
spec.homepage = "https://gitlab.myid.uz/myid-public-code/myid-sample-ios"
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AvailableLibraries</key>
<array>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>MyIdSDK.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>MyIdSDK.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
</array>
<key>CFBundlePackageType</key>
<string>XFWK</string>
<key>XCFrameworkFormatVersion</key>
<string>1.0</string>
</dict>
</plist>
#if 0
#elif defined(__arm64__) && __arm64__
// Generated by Apple Swift version 5.8.1 (swiftlang-5.8.0.124.5 clang-1403.0.22.11.100)
#ifndef MYIDSDK_SWIFT_H
#define MYIDSDK_SWIFT_H
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wgcc-compat"
#if !defined(__has_include)
# define __has_include(x) 0
#endif
#if !defined(__has_attribute)
# define __has_attribute(x) 0
#endif
#if !defined(__has_feature)
# define __has_feature(x) 0
#endif
#if !defined(__has_warning)
# define __has_warning(x) 0
#endif
#if __has_include(<swift/objc-prologue.h>)
# include <swift/objc-prologue.h>
#endif
#pragma clang diagnostic ignored "-Wauto-import"
#if defined(__OBJC__)
#include <Foundation/Foundation.h>
#endif
#if defined(__cplusplus)
#include <cstdint>
#include <cstddef>
#include <cstdbool>
#include <cstring>
#include <stdlib.h>
#include <new>
#include <type_traits>
#else
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#include <string.h>
#endif
#if defined(__cplusplus)
#if __has_include(<ptrauth.h>)
# include <ptrauth.h>
#else
# ifndef __ptrauth_swift_value_witness_function_pointer
# define __ptrauth_swift_value_witness_function_pointer(x)
# endif
#endif
#endif
#if !defined(SWIFT_TYPEDEFS)
# define SWIFT_TYPEDEFS 1
# if __has_include(<uchar.h>)
# include <uchar.h>
# elif !defined(__cplusplus)
typedef uint_least16_t char16_t;
typedef uint_least32_t char32_t;
# endif
typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
#endif
#if !defined(SWIFT_PASTE)
# define SWIFT_PASTE_HELPER(x, y) x##y
# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
#endif
#if !defined(SWIFT_METATYPE)
# define SWIFT_METATYPE(X) Class
#endif
#if !defined(SWIFT_CLASS_PROPERTY)
# if __has_feature(objc_class_property)
# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
# else
# define SWIFT_CLASS_PROPERTY(...)
# endif
#endif
#if !defined(SWIFT_RUNTIME_NAME)
# if __has_attribute(objc_runtime_name)
# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
# else
# define SWIFT_RUNTIME_NAME(X)
# endif
#endif
#if !defined(SWIFT_COMPILE_NAME)
# if __has_attribute(swift_name)
# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
# else
# define SWIFT_COMPILE_NAME(X)
# endif
#endif
#if !defined(SWIFT_METHOD_FAMILY)
# if __has_attribute(objc_method_family)
# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
# else
# define SWIFT_METHOD_FAMILY(X)
# endif
#endif
#if !defined(SWIFT_NOESCAPE)
# if __has_attribute(noescape)
# define SWIFT_NOESCAPE __attribute__((noescape))
# else
# define SWIFT_NOESCAPE
# endif
#endif
#if !defined(SWIFT_RELEASES_ARGUMENT)
# if __has_attribute(ns_consumed)
# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
# else
# define SWIFT_RELEASES_ARGUMENT
# endif
#endif
#if !defined(SWIFT_WARN_UNUSED_RESULT)
# if __has_attribute(warn_unused_result)
# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
# else
# define SWIFT_WARN_UNUSED_RESULT
# endif
#endif
#if !defined(SWIFT_NORETURN)
# if __has_attribute(noreturn)
# define SWIFT_NORETURN __attribute__((noreturn))
# else
# define SWIFT_NORETURN
# endif
#endif
#if !defined(SWIFT_CLASS_EXTRA)
# define SWIFT_CLASS_EXTRA
#endif
#if !defined(SWIFT_PROTOCOL_EXTRA)
# define SWIFT_PROTOCOL_EXTRA
#endif
#if !defined(SWIFT_ENUM_EXTRA)
# define SWIFT_ENUM_EXTRA
#endif
#if !defined(SWIFT_CLASS)
# if __has_attribute(objc_subclassing_restricted)
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
# else
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
# endif
#endif
#if !defined(SWIFT_RESILIENT_CLASS)
# if __has_attribute(objc_class_stub)
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
# else
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
# endif
#endif
#if !defined(SWIFT_PROTOCOL)
# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
#endif
#if !defined(SWIFT_EXTENSION)
# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
#endif
#if !defined(OBJC_DESIGNATED_INITIALIZER)
# if __has_attribute(objc_designated_initializer)
# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
# else
# define OBJC_DESIGNATED_INITIALIZER
# endif
#endif
#if !defined(SWIFT_ENUM_ATTR)
# if __has_attribute(enum_extensibility)
# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
# else
# define SWIFT_ENUM_ATTR(_extensibility)
# endif
#endif
#if !defined(SWIFT_ENUM)
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
# if __has_feature(generalized_swift_name)
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
# else
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
# endif
#endif
#if !defined(SWIFT_UNAVAILABLE)
# define SWIFT_UNAVAILABLE __attribute__((unavailable))
#endif
#if !defined(SWIFT_UNAVAILABLE_MSG)
# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
#endif
#if !defined(SWIFT_AVAILABILITY)
# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
#endif
#if !defined(SWIFT_WEAK_IMPORT)
# define SWIFT_WEAK_IMPORT __attribute__((weak_import))
#endif
#if !defined(SWIFT_DEPRECATED)
# define SWIFT_DEPRECATED __attribute__((deprecated))
#endif
#if !defined(SWIFT_DEPRECATED_MSG)
# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
#endif
#if !defined(SWIFT_DEPRECATED_OBJC)
# if __has_feature(attribute_diagnose_if_objc)
# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
# else
# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
# endif
#endif
#if defined(__OBJC__)
#if !defined(IBSegueAction)
# define IBSegueAction
#endif
#endif
#if !defined(SWIFT_EXTERN)
# if defined(__cplusplus)
# define SWIFT_EXTERN extern "C"
# else
# define SWIFT_EXTERN extern
# endif
#endif
#if !defined(SWIFT_CALL)
# define SWIFT_CALL __attribute__((swiftcall))
#endif
#if !defined(SWIFT_INDIRECT_RESULT)
# define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result))
#endif
#if !defined(SWIFT_CONTEXT)
# define SWIFT_CONTEXT __attribute__((swift_context))
#endif
#if !defined(SWIFT_ERROR_RESULT)
# define SWIFT_ERROR_RESULT __attribute__((swift_error_result))
#endif
#if defined(__cplusplus)
# define SWIFT_NOEXCEPT noexcept
#else
# define SWIFT_NOEXCEPT
#endif
#if defined(_WIN32)
#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
# define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport)
#endif
#else
#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
# define SWIFT_IMPORT_STDLIB_SYMBOL
#endif
#endif
#if defined(__OBJC__)
#if __has_feature(objc_modules)
#if __has_warning("-Watimport-in-framework-header")
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
#endif
@import ObjectiveC;
#endif
#endif
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
#if __has_warning("-Wpragma-clang-attribute")
# pragma clang diagnostic ignored "-Wpragma-clang-attribute"
#endif
#pragma clang diagnostic ignored "-Wunknown-pragmas"
#pragma clang diagnostic ignored "-Wnullability"
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
#if __has_attribute(external_source_symbol)
# pragma push_macro("any")
# undef any
# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="MyIdSDK",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
# pragma pop_macro("any")
#endif
#if defined(__OBJC__)
@class UIColor;
SWIFT_CLASS("_TtC7MyIdSDK14MyIdAppearance")
@interface MyIdAppearance : NSObject
@property (nonatomic, strong) UIColor * _Nullable primaryColor;
@property (nonatomic, strong) UIColor * _Nullable secondaryColor;
@property (nonatomic, strong) UIColor * _Nullable errorColor;
@property (nonatomic, strong) UIColor * _Nullable primaryButtonColor;
@property (nonatomic, strong) UIColor * _Nullable primaryButtonColorDisabled;
@property (nonatomic, strong) UIColor * _Nullable primaryButtonTextColor;
@property (nonatomic, strong) UIColor * _Nullable primaryButtonTextColorDisabled;
@property (nonatomic) float buttonCornerRadius;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
typedef SWIFT_ENUM(NSInteger, MyIdBuildMode, open) {
MyIdBuildModeDEBUG = 0,
MyIdBuildModePRODUCTION = 1,
};
typedef SWIFT_ENUM(NSInteger, MyIdCameraShape, open) {
MyIdCameraShapeELLIPSE = 0,
MyIdCameraShapeCIRCLE = 1,
};
@class MyIdConfig;
@protocol MyIdClientDelegate;
SWIFT_CLASS("_TtC7MyIdSDK10MyIdClient")
@interface MyIdClient : NSObject
+ (void)startWithConfig:(MyIdConfig * _Nonnull)config withDelegate:(id <MyIdClientDelegate> _Nonnull)delegate;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
@class MyIdResult;
@class MyIdException;
SWIFT_PROTOCOL("_TtP7MyIdSDK18MyIdClientDelegate_")
@protocol MyIdClientDelegate
- (void)onSuccessWithResult:(MyIdResult * _Nonnull)result;
- (void)onErrorWithException:(MyIdException * _Nonnull)exception;
- (void)onUserExited;
@end
@class NSString;
enum MyIdEntryType : NSInteger;
enum MyIdResidency : NSInteger;
enum MyIdLocale : NSInteger;
enum MyIdResolution : NSInteger;
@class MyIdOrganizationDetails;
SWIFT_CLASS("_TtC7MyIdSDK10MyIdConfig")
@interface MyIdConfig : NSObject
@property (nonatomic, copy) NSString * _Nullable clientId;
@property (nonatomic, copy) NSString * _Nullable clientHash;
@property (nonatomic, copy) NSString * _Nullable clientHashId;
@property (nonatomic, copy) NSString * _Nullable passportData;
@property (nonatomic, copy) NSString * _Nullable dateOfBirth;
@property (nonatomic, copy) NSString * _Nullable sdkHash;
@property (nonatomic, copy) NSString * _Nullable externalId;
@property (nonatomic) float threshold;
@property (nonatomic) enum MyIdBuildMode buildMode;
@property (nonatomic) enum MyIdEntryType entryType;
@property (nonatomic) enum MyIdResidency residency;
@property (nonatomic) enum MyIdLocale locale;
@property (nonatomic) enum MyIdCameraShape cameraShape;
@property (nonatomic) enum MyIdResolution resolution;
@property (nonatomic, strong) MyIdOrganizationDetails * _Nullable organizationDetails;
@property (nonatomic, strong) MyIdAppearance * _Nullable appearance;
@property (nonatomic) BOOL withPhoto;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
typedef SWIFT_ENUM(NSInteger, MyIdDocumentType, open) {
MyIdDocumentTypeID_CARD = 0,
MyIdDocumentTypePASSPORT = 1,
MyIdDocumentTypeDRIVER_LICENSE = 2,
};
typedef SWIFT_ENUM(NSInteger, MyIdEntryType, open) {
MyIdEntryTypeAUTH = 0,
MyIdEntryTypeFACE = 1,
};
SWIFT_CLASS("_TtC7MyIdSDK13MyIdException")
@interface MyIdException : NSObject
@property (nonatomic, copy) NSString * _Nullable message;
@property (nonatomic, copy) NSString * _Nullable code;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
typedef SWIFT_ENUM(NSInteger, MyIdLocale, open) {
MyIdLocaleRU = 0,
MyIdLocaleEN = 1,
MyIdLocaleUZ = 2,
};
@class UIImage;
SWIFT_CLASS("_TtC7MyIdSDK23MyIdOrganizationDetails")
@interface MyIdOrganizationDetails : NSObject
@property (nonatomic, copy) NSString * _Nullable phoneNumber;
@property (nonatomic, strong) UIImage * _Nullable logo;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
typedef SWIFT_ENUM(NSInteger, MyIdResidency, open) {
MyIdResidencyUSER_DEFINED = 0,
MyIdResidencyRESIDENT = 1,
MyIdResidencyNON_RESIDENT = 2,
};
typedef SWIFT_ENUM(NSInteger, MyIdResolution, open) {
MyIdResolutionRESOLUTION_480 = 0,
MyIdResolutionRESOLUTION_720 = 1,
};
SWIFT_CLASS("_TtC7MyIdSDK10MyIdResult")
@interface MyIdResult : NSObject
@property (nonatomic, strong) UIImage * _Nullable image;
@property (nonatomic, copy) NSString * _Nullable code;
@property (nonatomic, copy) NSString * _Nullable comparisonValue;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
SWIFT_CLASS("_TtC7MyIdSDK13RSAKeyFactory")
@interface RSAKeyFactory : NSObject
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
#endif
#if defined(__cplusplus)
#endif
#if __has_attribute(external_source_symbol)
# pragma clang attribute pop
#endif
#pragma clang diagnostic pop
#endif
#else
#error unsupported Swift architecture
#endif
//
// MyIdSDK.h
// MyIdSDK
//
// Created by Javokhir Savriev
//
#import <Foundation/Foundation.h>
//! Project version number for MyIdSDK.
FOUNDATION_EXPORT double MyIdSDKVersionNumber;
//! Project version string for MyIdSDK.
FOUNDATION_EXPORT const unsigned char MyIdSDKVersionString[];
// In this header, you should import all the public headers of your framework using statements like #import <MyIdSDK/PublicHeader.h>
This source diff could not be displayed because it is too large. You can view the blob instead.
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 5.8.1 (swiftlang-5.8.0.124.5 clang-1403.0.22.11.100)
// swift-module-flags: -target arm64-apple-ios11.1 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name MyIdSDK
// swift-module-flags-ignorable: -enable-bare-slash-regex
import AVFoundation
import CoreImage.CIFilterBuiltins
import Combine
import CommonCrypto
import Compression
import CoreImage
import CoreVideo
import CryptoKit
import Foundation
import LocalAuthentication
@_exported import MyIdSDK
import Security
import Swift
import UIKit
import Vision
import _Concurrency
import _StringProcessing
public protocol CommonHeaderParameterSpace {
var jku: Foundation.URL? { get set }
var jwk: Swift.String? { get set }
var jwkTyped: (any MyIdSDK.JWK)? { get set }
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 struct Payload : MyIdSDK.DataConvertible {
public init(_ payload: Foundation.Data)
public func data() -> Foundation.Data
}
extension Swift.String : Swift.Error {
}
extension Security.SecKey : MyIdSDK.ExpressibleAsECPublicKeyComponents {
public static func representing(ecPublicKeyComponents components: MyIdSDK.ECPublicKeyComponents) throws -> Self
public func ecPublicKeyComponents() throws -> MyIdSDK.ECPublicKeyComponents
}
@objc public enum MyIdCameraShape : Swift.Int {
case ELLIPSE = 0
case CIRCLE
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
public enum SecureRandomError : Swift.Error {
case failed(status: Darwin.OSStatus)
case countMustBeGreaterThanZero
}
public struct SecureRandom {
public static func generate(count: Swift.Int) throws -> 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
}
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 protocol Message {
var data: Foundation.Data { get }
var base64String: Swift.String { get }
init(data: Foundation.Data)
init(base64String: Swift.String) throws
}
extension MyIdSDK.Message {
public var base64String: Swift.String {
get
}
}
extension Security.SecKey : MyIdSDK.ExpressibleAsRSAPublicKeyComponents {
public static func representing(rsaPublicKeyComponents components: MyIdSDK.RSAPublicKeyComponents) throws -> Self
public func rsaPublicKeyComponents() throws -> MyIdSDK.RSAPublicKeyComponents
}
@_inheritsConvenienceInitializers @objc public class MyIdOrganizationDetails : ObjectiveC.NSObject {
@objc public var phoneNumber: Swift.String?
@objc public var logo: UIKit.UIImage?
@objc override dynamic public init()
@objc deinit
}
@objc public protocol MyIdClientDelegate {
@objc func onSuccess(result: MyIdSDK.MyIdResult)
@objc func onError(exception: MyIdSDK.MyIdException)
@objc func onUserExited()
}
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
@objc public enum MyIdDocumentType : Swift.Int {
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
}
}
extension Foundation.Data {
public init?(base64URLEncoded base64URLString: Swift.String)
public init?(base64URLEncoded base64URLData: Foundation.Data)
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
}
extension Security.SecKey : MyIdSDK.ExpressibleAsECPrivateKeyComponents {
public static func representing(ecPrivateKeyComponents components: MyIdSDK.ECPrivateKeyComponents) throws -> Self
public func ecPrivateKeyComponents() throws -> MyIdSDK.ECPrivateKeyComponents
}
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
}
@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 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 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
}
@_inheritsConvenienceInitializers @objc public class MyIdConfig : ObjectiveC.NSObject {
@objc public var clientId: Swift.String?
@objc public var clientHash: Swift.String?
@objc public var clientHashId: Swift.String?
@objc public var passportData: Swift.String?
@objc public var dateOfBirth: Swift.String?
@objc public var sdkHash: Swift.String?
@objc public var externalId: Swift.String?
@objc public var threshold: Swift.Float
@objc public var buildMode: MyIdSDK.MyIdBuildMode
@objc public var entryType: MyIdSDK.MyIdEntryType
@objc public var residency: MyIdSDK.MyIdResidency
@objc public var locale: MyIdSDK.MyIdLocale
@objc public var cameraShape: MyIdSDK.MyIdCameraShape
@objc public var resolution: MyIdSDK.MyIdResolution
@objc public var organizationDetails: MyIdSDK.MyIdOrganizationDetails?
@objc public var appearance: MyIdSDK.MyIdAppearance?
@objc public var withPhoto: Swift.Bool
@objc override dynamic public init()
@objc deinit
}
public typealias SymmetricKeyComponents = (Foundation.Data)
public protocol ExpressibleAsSymmetricKeyComponents {
static func representing(symmetricKeyComponents components: MyIdSDK.SymmetricKeyComponents) throws -> Self
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
}
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
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)
}
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
}
@_inheritsConvenienceInitializers @objc public class MyIdException : ObjectiveC.NSObject {
@objc public var message: Swift.String?
@objc public var code: Swift.String?
@objc override dynamic public init()
@objc deinit
}
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 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 Foundation.Data : MyIdSDK.ExpressibleAsSymmetricKeyComponents {
public static func representing(symmetricKeyComponents components: MyIdSDK.SymmetricKeyComponents) throws -> Foundation.Data
public func symmetricKeyComponents() throws -> MyIdSDK.SymmetricKeyComponents
}
@objc public enum MyIdResidency : Swift.Int {
case USER_DEFINED = 0
case RESIDENT
case NON_RESIDENT
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
@_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
}
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
}
}
@objc public enum MyIdResolution : Swift.Int {
case RESOLUTION_480 = 0
case RESOLUTION_720
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
@objc public enum MyIdEntryType : Swift.Int {
case AUTH = 0
case FACE
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
extension Foundation.Data : MyIdSDK.ExpressibleAsECPublicKeyComponents {
public static func representing(ecPublicKeyComponents components: MyIdSDK.ECPublicKeyComponents) throws -> Foundation.Data
public func ecPublicKeyComponents() throws -> MyIdSDK.ECPublicKeyComponents
}
@_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 class RSASignature {
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
}
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
}
}
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
}
extension Foundation.Data : MyIdSDK.ExpressibleAsECPrivateKeyComponents {
public static func representing(ecPrivateKeyComponents components: MyIdSDK.ECPrivateKeyComponents) throws -> Foundation.Data
public func ecPrivateKeyComponents() throws -> MyIdSDK.ECPrivateKeyComponents
}
public enum SwiftyCryptoRSAKeySize : Swift.Int {
case RSAKey64
case RSAKey128
case RSAKey256
case RSAKey512
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
@objc @_inheritsConvenienceInitializers public class RSAKeyFactory : ObjectiveC.NSObject {
public static let shared: MyIdSDK.RSAKeyFactory
public func generateKeyPair(keySize: MyIdSDK.SwiftyCryptoRSAKeySize) -> MyIdSDK.RSAKeyPairs?
@objc override dynamic public init()
@objc deinit
}
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
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...)
}
extension MyIdSDK.RSAPublicKey : Swift.Encodable {
public func encode(to encoder: any Swift.Encoder) throws
}
extension MyIdSDK.RSAPublicKey : Swift.Decodable {
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
}
public protocol CompactSerializable {
func serialize(to serializer: inout any MyIdSDK.CompactSerializer)
}
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
}
@_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
}
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
}
public struct Decrypter {
public init?<KeyType>(keyManagementAlgorithm: MyIdSDK.KeyManagementAlgorithm, contentEncryptionAlgorithm: MyIdSDK.ContentEncryptionAlgorithm, decryptionKey: KeyType)
}
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 {
}
extension Foundation.Data : MyIdSDK.ExpressibleAsRSAPublicKeyComponents {
public static func representing(rsaPublicKeyComponents components: MyIdSDK.RSAPublicKeyComponents) throws -> Foundation.Data
public func rsaPublicKeyComponents() throws -> MyIdSDK.RSAPublicKeyComponents
}
@objc public enum MyIdBuildMode : Swift.Int {
case DEBUG = 0
case PRODUCTION
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
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 {
}
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 protocol DataConvertible {
init?(_ data: Foundation.Data)
func data() -> Foundation.Data
}
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)
}
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
}
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?(stringValue: Swift.String)
public init?(intValue: Swift.Int)
public init?(rawValue: Swift.String)
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
}
}
public enum JOSESwiftError : Swift.Error {
case signingFailed(description: Swift.String)
case verifyingFailed(description: Swift.String)
case signatureInvalid
case encryptingFailed(description: Swift.String)
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 MyIdSDK.KeyManagementAlgorithm : Swift.Equatable {}
extension MyIdSDK.KeyManagementAlgorithm : Swift.Hashable {}
extension MyIdSDK.KeyManagementAlgorithm : Swift.RawRepresentable {}
extension MyIdSDK.JWKThumbprintAlgorithm : Swift.Equatable {}
extension MyIdSDK.JWKThumbprintAlgorithm : Swift.Hashable {}
extension MyIdSDK.JWKThumbprintAlgorithm : Swift.RawRepresentable {}
extension MyIdSDK.MyIdCameraShape : Swift.Equatable {}
extension MyIdSDK.MyIdCameraShape : Swift.Hashable {}
extension MyIdSDK.MyIdCameraShape : Swift.RawRepresentable {}
extension MyIdSDK.MyIdDocumentType : Swift.Equatable {}
extension MyIdSDK.MyIdDocumentType : Swift.Hashable {}
extension MyIdSDK.MyIdDocumentType : Swift.RawRepresentable {}
extension MyIdSDK.MyIdLocale : Swift.Equatable {}
extension MyIdSDK.MyIdLocale : Swift.Hashable {}
extension MyIdSDK.MyIdLocale : Swift.RawRepresentable {}
extension MyIdSDK.JWEHeader : MyIdSDK.DataConvertible {}
extension MyIdSDK.SignatureAlgorithm : Swift.Equatable {}
extension MyIdSDK.SignatureAlgorithm : Swift.Hashable {}
extension MyIdSDK.SignatureAlgorithm : Swift.RawRepresentable {}
extension MyIdSDK.ContentEncryptionAlgorithm : Swift.Equatable {}
extension MyIdSDK.ContentEncryptionAlgorithm : Swift.Hashable {}
extension MyIdSDK.ContentEncryptionAlgorithm : Swift.RawRepresentable {}
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.JWKKeyType : Swift.Equatable {}
extension MyIdSDK.JWKKeyType : Swift.Hashable {}
extension MyIdSDK.JWKKeyType : Swift.RawRepresentable {}
extension MyIdSDK.MyIdResidency : Swift.Equatable {}
extension MyIdSDK.MyIdResidency : Swift.Hashable {}
extension MyIdSDK.MyIdResidency : Swift.RawRepresentable {}
extension MyIdSDK.JWSHeader : MyIdSDK.DataConvertible {}
extension MyIdSDK.MyIdResolution : Swift.Equatable {}
extension MyIdSDK.MyIdResolution : Swift.Hashable {}
extension MyIdSDK.MyIdResolution : Swift.RawRepresentable {}
extension MyIdSDK.MyIdEntryType : Swift.Equatable {}
extension MyIdSDK.MyIdEntryType : Swift.Hashable {}
extension MyIdSDK.MyIdEntryType : Swift.RawRepresentable {}
extension MyIdSDK.RSASignature.DigestType : Swift.Equatable {}
extension MyIdSDK.RSASignature.DigestType : Swift.Hashable {}
extension MyIdSDK.ECCurveType : Swift.Equatable {}
extension MyIdSDK.ECCurveType : Swift.Hashable {}
extension MyIdSDK.ECCurveType : Swift.RawRepresentable {}
extension MyIdSDK.ECCompression : Swift.Equatable {}
extension MyIdSDK.ECCompression : Swift.Hashable {}
extension MyIdSDK.ECCompression : Swift.RawRepresentable {}
extension MyIdSDK.SwiftyCryptoRSAKeySize : Swift.Equatable {}
extension MyIdSDK.SwiftyCryptoRSAKeySize : Swift.Hashable {}
extension MyIdSDK.SwiftyCryptoRSAKeySize : Swift.RawRepresentable {}
extension MyIdSDK.RSAKeyType : Swift.Equatable {}
extension MyIdSDK.RSAKeyType : Swift.Hashable {}
extension MyIdSDK.MyIdBuildMode : Swift.Equatable {}
extension MyIdSDK.MyIdBuildMode : Swift.Hashable {}
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 {}
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 5.8.1 (swiftlang-5.8.0.124.5 clang-1403.0.22.11.100)
// swift-module-flags: -target arm64-apple-ios11.1 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name MyIdSDK
// swift-module-flags-ignorable: -enable-bare-slash-regex
import AVFoundation
import CoreImage.CIFilterBuiltins
import Combine
import CommonCrypto
import Compression
import CoreImage
import CoreVideo
import CryptoKit
import Foundation
import LocalAuthentication
@_exported import MyIdSDK
import Security
import Swift
import UIKit
import Vision
import _Concurrency
import _StringProcessing
public protocol CommonHeaderParameterSpace {
var jku: Foundation.URL? { get set }
var jwk: Swift.String? { get set }
var jwkTyped: (any MyIdSDK.JWK)? { get set }
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 struct Payload : MyIdSDK.DataConvertible {
public init(_ payload: Foundation.Data)
public func data() -> Foundation.Data
}
extension Swift.String : Swift.Error {
}
extension Security.SecKey : MyIdSDK.ExpressibleAsECPublicKeyComponents {
public static func representing(ecPublicKeyComponents components: MyIdSDK.ECPublicKeyComponents) throws -> Self
public func ecPublicKeyComponents() throws -> MyIdSDK.ECPublicKeyComponents
}
@objc public enum MyIdCameraShape : Swift.Int {
case ELLIPSE = 0
case CIRCLE
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
public enum SecureRandomError : Swift.Error {
case failed(status: Darwin.OSStatus)
case countMustBeGreaterThanZero
}
public struct SecureRandom {
public static func generate(count: Swift.Int) throws -> 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
}
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 protocol Message {
var data: Foundation.Data { get }
var base64String: Swift.String { get }
init(data: Foundation.Data)
init(base64String: Swift.String) throws
}
extension MyIdSDK.Message {
public var base64String: Swift.String {
get
}
}
extension Security.SecKey : MyIdSDK.ExpressibleAsRSAPublicKeyComponents {
public static func representing(rsaPublicKeyComponents components: MyIdSDK.RSAPublicKeyComponents) throws -> Self
public func rsaPublicKeyComponents() throws -> MyIdSDK.RSAPublicKeyComponents
}
@_inheritsConvenienceInitializers @objc public class MyIdOrganizationDetails : ObjectiveC.NSObject {
@objc public var phoneNumber: Swift.String?
@objc public var logo: UIKit.UIImage?
@objc override dynamic public init()
@objc deinit
}
@objc public protocol MyIdClientDelegate {
@objc func onSuccess(result: MyIdSDK.MyIdResult)
@objc func onError(exception: MyIdSDK.MyIdException)
@objc func onUserExited()
}
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
@objc public enum MyIdDocumentType : Swift.Int {
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
}
}
extension Foundation.Data {
public init?(base64URLEncoded base64URLString: Swift.String)
public init?(base64URLEncoded base64URLData: Foundation.Data)
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
}
extension Security.SecKey : MyIdSDK.ExpressibleAsECPrivateKeyComponents {
public static func representing(ecPrivateKeyComponents components: MyIdSDK.ECPrivateKeyComponents) throws -> Self
public func ecPrivateKeyComponents() throws -> MyIdSDK.ECPrivateKeyComponents
}
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
}
@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 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 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
}
@_inheritsConvenienceInitializers @objc public class MyIdConfig : ObjectiveC.NSObject {
@objc public var clientId: Swift.String?
@objc public var clientHash: Swift.String?
@objc public var clientHashId: Swift.String?
@objc public var passportData: Swift.String?
@objc public var dateOfBirth: Swift.String?
@objc public var sdkHash: Swift.String?
@objc public var externalId: Swift.String?
@objc public var threshold: Swift.Float
@objc public var buildMode: MyIdSDK.MyIdBuildMode
@objc public var entryType: MyIdSDK.MyIdEntryType
@objc public var residency: MyIdSDK.MyIdResidency
@objc public var locale: MyIdSDK.MyIdLocale
@objc public var cameraShape: MyIdSDK.MyIdCameraShape
@objc public var resolution: MyIdSDK.MyIdResolution
@objc public var organizationDetails: MyIdSDK.MyIdOrganizationDetails?
@objc public var appearance: MyIdSDK.MyIdAppearance?
@objc public var withPhoto: Swift.Bool
@objc override dynamic public init()
@objc deinit
}
public typealias SymmetricKeyComponents = (Foundation.Data)
public protocol ExpressibleAsSymmetricKeyComponents {
static func representing(symmetricKeyComponents components: MyIdSDK.SymmetricKeyComponents) throws -> Self
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
}
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
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)
}
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
}
@_inheritsConvenienceInitializers @objc public class MyIdException : ObjectiveC.NSObject {
@objc public var message: Swift.String?
@objc public var code: Swift.String?
@objc override dynamic public init()
@objc deinit
}
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 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 Foundation.Data : MyIdSDK.ExpressibleAsSymmetricKeyComponents {
public static func representing(symmetricKeyComponents components: MyIdSDK.SymmetricKeyComponents) throws -> Foundation.Data
public func symmetricKeyComponents() throws -> MyIdSDK.SymmetricKeyComponents
}
@objc public enum MyIdResidency : Swift.Int {
case USER_DEFINED = 0
case RESIDENT
case NON_RESIDENT
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
@_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
}
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
}
}
@objc public enum MyIdResolution : Swift.Int {
case RESOLUTION_480 = 0
case RESOLUTION_720
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
@objc public enum MyIdEntryType : Swift.Int {
case AUTH = 0
case FACE
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
extension Foundation.Data : MyIdSDK.ExpressibleAsECPublicKeyComponents {
public static func representing(ecPublicKeyComponents components: MyIdSDK.ECPublicKeyComponents) throws -> Foundation.Data
public func ecPublicKeyComponents() throws -> MyIdSDK.ECPublicKeyComponents
}
@_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 class RSASignature {
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
}
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
}
}
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
}
extension Foundation.Data : MyIdSDK.ExpressibleAsECPrivateKeyComponents {
public static func representing(ecPrivateKeyComponents components: MyIdSDK.ECPrivateKeyComponents) throws -> Foundation.Data
public func ecPrivateKeyComponents() throws -> MyIdSDK.ECPrivateKeyComponents
}
public enum SwiftyCryptoRSAKeySize : Swift.Int {
case RSAKey64
case RSAKey128
case RSAKey256
case RSAKey512
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
@objc @_inheritsConvenienceInitializers public class RSAKeyFactory : ObjectiveC.NSObject {
public static let shared: MyIdSDK.RSAKeyFactory
public func generateKeyPair(keySize: MyIdSDK.SwiftyCryptoRSAKeySize) -> MyIdSDK.RSAKeyPairs?
@objc override dynamic public init()
@objc deinit
}
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
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...)
}
extension MyIdSDK.RSAPublicKey : Swift.Encodable {
public func encode(to encoder: any Swift.Encoder) throws
}
extension MyIdSDK.RSAPublicKey : Swift.Decodable {
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
}
public protocol CompactSerializable {
func serialize(to serializer: inout any MyIdSDK.CompactSerializer)
}
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
}
@_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
}
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
}
public struct Decrypter {
public init?<KeyType>(keyManagementAlgorithm: MyIdSDK.KeyManagementAlgorithm, contentEncryptionAlgorithm: MyIdSDK.ContentEncryptionAlgorithm, decryptionKey: KeyType)
}
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 {
}
extension Foundation.Data : MyIdSDK.ExpressibleAsRSAPublicKeyComponents {
public static func representing(rsaPublicKeyComponents components: MyIdSDK.RSAPublicKeyComponents) throws -> Foundation.Data
public func rsaPublicKeyComponents() throws -> MyIdSDK.RSAPublicKeyComponents
}
@objc public enum MyIdBuildMode : Swift.Int {
case DEBUG = 0
case PRODUCTION
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
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 {
}
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 protocol DataConvertible {
init?(_ data: Foundation.Data)
func data() -> Foundation.Data
}
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)
}
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
}
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?(stringValue: Swift.String)
public init?(intValue: Swift.Int)
public init?(rawValue: Swift.String)
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
}
}
public enum JOSESwiftError : Swift.Error {
case signingFailed(description: Swift.String)
case verifyingFailed(description: Swift.String)
case signatureInvalid
case encryptingFailed(description: Swift.String)
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 MyIdSDK.KeyManagementAlgorithm : Swift.Equatable {}
extension MyIdSDK.KeyManagementAlgorithm : Swift.Hashable {}
extension MyIdSDK.KeyManagementAlgorithm : Swift.RawRepresentable {}
extension MyIdSDK.JWKThumbprintAlgorithm : Swift.Equatable {}
extension MyIdSDK.JWKThumbprintAlgorithm : Swift.Hashable {}
extension MyIdSDK.JWKThumbprintAlgorithm : Swift.RawRepresentable {}
extension MyIdSDK.MyIdCameraShape : Swift.Equatable {}
extension MyIdSDK.MyIdCameraShape : Swift.Hashable {}
extension MyIdSDK.MyIdCameraShape : Swift.RawRepresentable {}
extension MyIdSDK.MyIdDocumentType : Swift.Equatable {}
extension MyIdSDK.MyIdDocumentType : Swift.Hashable {}
extension MyIdSDK.MyIdDocumentType : Swift.RawRepresentable {}
extension MyIdSDK.MyIdLocale : Swift.Equatable {}
extension MyIdSDK.MyIdLocale : Swift.Hashable {}
extension MyIdSDK.MyIdLocale : Swift.RawRepresentable {}
extension MyIdSDK.JWEHeader : MyIdSDK.DataConvertible {}
extension MyIdSDK.SignatureAlgorithm : Swift.Equatable {}
extension MyIdSDK.SignatureAlgorithm : Swift.Hashable {}
extension MyIdSDK.SignatureAlgorithm : Swift.RawRepresentable {}
extension MyIdSDK.ContentEncryptionAlgorithm : Swift.Equatable {}
extension MyIdSDK.ContentEncryptionAlgorithm : Swift.Hashable {}
extension MyIdSDK.ContentEncryptionAlgorithm : Swift.RawRepresentable {}
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.JWKKeyType : Swift.Equatable {}
extension MyIdSDK.JWKKeyType : Swift.Hashable {}
extension MyIdSDK.JWKKeyType : Swift.RawRepresentable {}
extension MyIdSDK.MyIdResidency : Swift.Equatable {}
extension MyIdSDK.MyIdResidency : Swift.Hashable {}
extension MyIdSDK.MyIdResidency : Swift.RawRepresentable {}
extension MyIdSDK.JWSHeader : MyIdSDK.DataConvertible {}
extension MyIdSDK.MyIdResolution : Swift.Equatable {}
extension MyIdSDK.MyIdResolution : Swift.Hashable {}
extension MyIdSDK.MyIdResolution : Swift.RawRepresentable {}
extension MyIdSDK.MyIdEntryType : Swift.Equatable {}
extension MyIdSDK.MyIdEntryType : Swift.Hashable {}
extension MyIdSDK.MyIdEntryType : Swift.RawRepresentable {}
extension MyIdSDK.RSASignature.DigestType : Swift.Equatable {}
extension MyIdSDK.RSASignature.DigestType : Swift.Hashable {}
extension MyIdSDK.ECCurveType : Swift.Equatable {}
extension MyIdSDK.ECCurveType : Swift.Hashable {}
extension MyIdSDK.ECCurveType : Swift.RawRepresentable {}
extension MyIdSDK.ECCompression : Swift.Equatable {}
extension MyIdSDK.ECCompression : Swift.Hashable {}
extension MyIdSDK.ECCompression : Swift.RawRepresentable {}
extension MyIdSDK.SwiftyCryptoRSAKeySize : Swift.Equatable {}
extension MyIdSDK.SwiftyCryptoRSAKeySize : Swift.Hashable {}
extension MyIdSDK.SwiftyCryptoRSAKeySize : Swift.RawRepresentable {}
extension MyIdSDK.RSAKeyType : Swift.Equatable {}
extension MyIdSDK.RSAKeyType : Swift.Hashable {}
extension MyIdSDK.MyIdBuildMode : Swift.Equatable {}
extension MyIdSDK.MyIdBuildMode : Swift.Hashable {}
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 {}
framework module MyIdSDK {
umbrella header "MyIdSDK.h"
export *
module * { export * }
}
module MyIdSDK.Swift {
header "MyIdSDK-Swift.h"
requires objc
}
#if 0
#elif defined(__arm64__) && __arm64__
// Generated by Apple Swift version 5.8.1 (swiftlang-5.8.0.124.5 clang-1403.0.22.11.100)
#ifndef MYIDSDK_SWIFT_H
#define MYIDSDK_SWIFT_H
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wgcc-compat"
#if !defined(__has_include)
# define __has_include(x) 0
#endif
#if !defined(__has_attribute)
# define __has_attribute(x) 0
#endif
#if !defined(__has_feature)
# define __has_feature(x) 0
#endif
#if !defined(__has_warning)
# define __has_warning(x) 0
#endif
#if __has_include(<swift/objc-prologue.h>)
# include <swift/objc-prologue.h>
#endif
#pragma clang diagnostic ignored "-Wauto-import"
#if defined(__OBJC__)
#include <Foundation/Foundation.h>
#endif
#if defined(__cplusplus)
#include <cstdint>
#include <cstddef>
#include <cstdbool>
#include <cstring>
#include <stdlib.h>
#include <new>
#include <type_traits>
#else
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#include <string.h>
#endif
#if defined(__cplusplus)
#if __has_include(<ptrauth.h>)
# include <ptrauth.h>
#else
# ifndef __ptrauth_swift_value_witness_function_pointer
# define __ptrauth_swift_value_witness_function_pointer(x)
# endif
#endif
#endif
#if !defined(SWIFT_TYPEDEFS)
# define SWIFT_TYPEDEFS 1
# if __has_include(<uchar.h>)
# include <uchar.h>
# elif !defined(__cplusplus)
typedef uint_least16_t char16_t;
typedef uint_least32_t char32_t;
# endif
typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
#endif
#if !defined(SWIFT_PASTE)
# define SWIFT_PASTE_HELPER(x, y) x##y
# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
#endif
#if !defined(SWIFT_METATYPE)
# define SWIFT_METATYPE(X) Class
#endif
#if !defined(SWIFT_CLASS_PROPERTY)
# if __has_feature(objc_class_property)
# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
# else
# define SWIFT_CLASS_PROPERTY(...)
# endif
#endif
#if !defined(SWIFT_RUNTIME_NAME)
# if __has_attribute(objc_runtime_name)
# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
# else
# define SWIFT_RUNTIME_NAME(X)
# endif
#endif
#if !defined(SWIFT_COMPILE_NAME)
# if __has_attribute(swift_name)
# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
# else
# define SWIFT_COMPILE_NAME(X)
# endif
#endif
#if !defined(SWIFT_METHOD_FAMILY)
# if __has_attribute(objc_method_family)
# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
# else
# define SWIFT_METHOD_FAMILY(X)
# endif
#endif
#if !defined(SWIFT_NOESCAPE)
# if __has_attribute(noescape)
# define SWIFT_NOESCAPE __attribute__((noescape))
# else
# define SWIFT_NOESCAPE
# endif
#endif
#if !defined(SWIFT_RELEASES_ARGUMENT)
# if __has_attribute(ns_consumed)
# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
# else
# define SWIFT_RELEASES_ARGUMENT
# endif
#endif
#if !defined(SWIFT_WARN_UNUSED_RESULT)
# if __has_attribute(warn_unused_result)
# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
# else
# define SWIFT_WARN_UNUSED_RESULT
# endif
#endif
#if !defined(SWIFT_NORETURN)
# if __has_attribute(noreturn)
# define SWIFT_NORETURN __attribute__((noreturn))
# else
# define SWIFT_NORETURN
# endif
#endif
#if !defined(SWIFT_CLASS_EXTRA)
# define SWIFT_CLASS_EXTRA
#endif
#if !defined(SWIFT_PROTOCOL_EXTRA)
# define SWIFT_PROTOCOL_EXTRA
#endif
#if !defined(SWIFT_ENUM_EXTRA)
# define SWIFT_ENUM_EXTRA
#endif
#if !defined(SWIFT_CLASS)
# if __has_attribute(objc_subclassing_restricted)
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
# else
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
# endif
#endif
#if !defined(SWIFT_RESILIENT_CLASS)
# if __has_attribute(objc_class_stub)
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
# else
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
# endif
#endif
#if !defined(SWIFT_PROTOCOL)
# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
#endif
#if !defined(SWIFT_EXTENSION)
# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
#endif
#if !defined(OBJC_DESIGNATED_INITIALIZER)
# if __has_attribute(objc_designated_initializer)
# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
# else
# define OBJC_DESIGNATED_INITIALIZER
# endif
#endif
#if !defined(SWIFT_ENUM_ATTR)
# if __has_attribute(enum_extensibility)
# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
# else
# define SWIFT_ENUM_ATTR(_extensibility)
# endif
#endif
#if !defined(SWIFT_ENUM)
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
# if __has_feature(generalized_swift_name)
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
# else
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
# endif
#endif
#if !defined(SWIFT_UNAVAILABLE)
# define SWIFT_UNAVAILABLE __attribute__((unavailable))
#endif
#if !defined(SWIFT_UNAVAILABLE_MSG)
# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
#endif
#if !defined(SWIFT_AVAILABILITY)
# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
#endif
#if !defined(SWIFT_WEAK_IMPORT)
# define SWIFT_WEAK_IMPORT __attribute__((weak_import))
#endif
#if !defined(SWIFT_DEPRECATED)
# define SWIFT_DEPRECATED __attribute__((deprecated))
#endif
#if !defined(SWIFT_DEPRECATED_MSG)
# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
#endif
#if !defined(SWIFT_DEPRECATED_OBJC)
# if __has_feature(attribute_diagnose_if_objc)
# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
# else
# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
# endif
#endif
#if defined(__OBJC__)
#if !defined(IBSegueAction)
# define IBSegueAction
#endif
#endif
#if !defined(SWIFT_EXTERN)
# if defined(__cplusplus)
# define SWIFT_EXTERN extern "C"
# else
# define SWIFT_EXTERN extern
# endif
#endif
#if !defined(SWIFT_CALL)
# define SWIFT_CALL __attribute__((swiftcall))
#endif
#if !defined(SWIFT_INDIRECT_RESULT)
# define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result))
#endif
#if !defined(SWIFT_CONTEXT)
# define SWIFT_CONTEXT __attribute__((swift_context))
#endif
#if !defined(SWIFT_ERROR_RESULT)
# define SWIFT_ERROR_RESULT __attribute__((swift_error_result))
#endif
#if defined(__cplusplus)
# define SWIFT_NOEXCEPT noexcept
#else
# define SWIFT_NOEXCEPT
#endif
#if defined(_WIN32)
#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
# define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport)
#endif
#else
#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
# define SWIFT_IMPORT_STDLIB_SYMBOL
#endif
#endif
#if defined(__OBJC__)
#if __has_feature(objc_modules)
#if __has_warning("-Watimport-in-framework-header")
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
#endif
@import ObjectiveC;
#endif
#endif
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
#if __has_warning("-Wpragma-clang-attribute")
# pragma clang diagnostic ignored "-Wpragma-clang-attribute"
#endif
#pragma clang diagnostic ignored "-Wunknown-pragmas"
#pragma clang diagnostic ignored "-Wnullability"
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
#if __has_attribute(external_source_symbol)
# pragma push_macro("any")
# undef any
# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="MyIdSDK",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
# pragma pop_macro("any")
#endif
#if defined(__OBJC__)
@class UIColor;
SWIFT_CLASS("_TtC7MyIdSDK14MyIdAppearance")
@interface MyIdAppearance : NSObject
@property (nonatomic, strong) UIColor * _Nullable primaryColor;
@property (nonatomic, strong) UIColor * _Nullable secondaryColor;
@property (nonatomic, strong) UIColor * _Nullable errorColor;
@property (nonatomic, strong) UIColor * _Nullable primaryButtonColor;
@property (nonatomic, strong) UIColor * _Nullable primaryButtonColorDisabled;
@property (nonatomic, strong) UIColor * _Nullable primaryButtonTextColor;
@property (nonatomic, strong) UIColor * _Nullable primaryButtonTextColorDisabled;
@property (nonatomic) float buttonCornerRadius;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
typedef SWIFT_ENUM(NSInteger, MyIdBuildMode, open) {
MyIdBuildModeDEBUG = 0,
MyIdBuildModePRODUCTION = 1,
};
typedef SWIFT_ENUM(NSInteger, MyIdCameraShape, open) {
MyIdCameraShapeELLIPSE = 0,
MyIdCameraShapeCIRCLE = 1,
};
@class MyIdConfig;
@protocol MyIdClientDelegate;
SWIFT_CLASS("_TtC7MyIdSDK10MyIdClient")
@interface MyIdClient : NSObject
+ (void)startWithConfig:(MyIdConfig * _Nonnull)config withDelegate:(id <MyIdClientDelegate> _Nonnull)delegate;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
@class MyIdResult;
@class MyIdException;
SWIFT_PROTOCOL("_TtP7MyIdSDK18MyIdClientDelegate_")
@protocol MyIdClientDelegate
- (void)onSuccessWithResult:(MyIdResult * _Nonnull)result;
- (void)onErrorWithException:(MyIdException * _Nonnull)exception;
- (void)onUserExited;
@end
@class NSString;
enum MyIdEntryType : NSInteger;
enum MyIdResidency : NSInteger;
enum MyIdLocale : NSInteger;
enum MyIdResolution : NSInteger;
@class MyIdOrganizationDetails;
SWIFT_CLASS("_TtC7MyIdSDK10MyIdConfig")
@interface MyIdConfig : NSObject
@property (nonatomic, copy) NSString * _Nullable clientId;
@property (nonatomic, copy) NSString * _Nullable clientHash;
@property (nonatomic, copy) NSString * _Nullable clientHashId;
@property (nonatomic, copy) NSString * _Nullable passportData;
@property (nonatomic, copy) NSString * _Nullable dateOfBirth;
@property (nonatomic, copy) NSString * _Nullable sdkHash;
@property (nonatomic, copy) NSString * _Nullable externalId;
@property (nonatomic) float threshold;
@property (nonatomic) enum MyIdBuildMode buildMode;
@property (nonatomic) enum MyIdEntryType entryType;
@property (nonatomic) enum MyIdResidency residency;
@property (nonatomic) enum MyIdLocale locale;
@property (nonatomic) enum MyIdCameraShape cameraShape;
@property (nonatomic) enum MyIdResolution resolution;
@property (nonatomic, strong) MyIdOrganizationDetails * _Nullable organizationDetails;
@property (nonatomic, strong) MyIdAppearance * _Nullable appearance;
@property (nonatomic) BOOL withPhoto;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
typedef SWIFT_ENUM(NSInteger, MyIdDocumentType, open) {
MyIdDocumentTypeID_CARD = 0,
MyIdDocumentTypePASSPORT = 1,
MyIdDocumentTypeDRIVER_LICENSE = 2,
};
typedef SWIFT_ENUM(NSInteger, MyIdEntryType, open) {
MyIdEntryTypeAUTH = 0,
MyIdEntryTypeFACE = 1,
};
SWIFT_CLASS("_TtC7MyIdSDK13MyIdException")
@interface MyIdException : NSObject
@property (nonatomic, copy) NSString * _Nullable message;
@property (nonatomic, copy) NSString * _Nullable code;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
typedef SWIFT_ENUM(NSInteger, MyIdLocale, open) {
MyIdLocaleRU = 0,
MyIdLocaleEN = 1,
MyIdLocaleUZ = 2,
};
@class UIImage;
SWIFT_CLASS("_TtC7MyIdSDK23MyIdOrganizationDetails")
@interface MyIdOrganizationDetails : NSObject
@property (nonatomic, copy) NSString * _Nullable phoneNumber;
@property (nonatomic, strong) UIImage * _Nullable logo;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
typedef SWIFT_ENUM(NSInteger, MyIdResidency, open) {
MyIdResidencyUSER_DEFINED = 0,
MyIdResidencyRESIDENT = 1,
MyIdResidencyNON_RESIDENT = 2,
};
typedef SWIFT_ENUM(NSInteger, MyIdResolution, open) {
MyIdResolutionRESOLUTION_480 = 0,
MyIdResolutionRESOLUTION_720 = 1,
};
SWIFT_CLASS("_TtC7MyIdSDK10MyIdResult")
@interface MyIdResult : NSObject
@property (nonatomic, strong) UIImage * _Nullable image;
@property (nonatomic, copy) NSString * _Nullable code;
@property (nonatomic, copy) NSString * _Nullable comparisonValue;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
SWIFT_CLASS("_TtC7MyIdSDK13RSAKeyFactory")
@interface RSAKeyFactory : NSObject
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
#endif
#if defined(__cplusplus)
#endif
#if __has_attribute(external_source_symbol)
# pragma clang attribute pop
#endif
#pragma clang diagnostic pop
#endif
#elif defined(__x86_64__) && __x86_64__
// Generated by Apple Swift version 5.8.1 (swiftlang-5.8.0.124.5 clang-1403.0.22.11.100)
#ifndef MYIDSDK_SWIFT_H
#define MYIDSDK_SWIFT_H
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wgcc-compat"
#if !defined(__has_include)
# define __has_include(x) 0
#endif
#if !defined(__has_attribute)
# define __has_attribute(x) 0
#endif
#if !defined(__has_feature)
# define __has_feature(x) 0
#endif
#if !defined(__has_warning)
# define __has_warning(x) 0
#endif
#if __has_include(<swift/objc-prologue.h>)
# include <swift/objc-prologue.h>
#endif
#pragma clang diagnostic ignored "-Wauto-import"
#if defined(__OBJC__)
#include <Foundation/Foundation.h>
#endif
#if defined(__cplusplus)
#include <cstdint>
#include <cstddef>
#include <cstdbool>
#include <cstring>
#include <stdlib.h>
#include <new>
#include <type_traits>
#else
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#include <string.h>
#endif
#if defined(__cplusplus)
#if __has_include(<ptrauth.h>)
# include <ptrauth.h>
#else
# ifndef __ptrauth_swift_value_witness_function_pointer
# define __ptrauth_swift_value_witness_function_pointer(x)
# endif
#endif
#endif
#if !defined(SWIFT_TYPEDEFS)
# define SWIFT_TYPEDEFS 1
# if __has_include(<uchar.h>)
# include <uchar.h>
# elif !defined(__cplusplus)
typedef uint_least16_t char16_t;
typedef uint_least32_t char32_t;
# endif
typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
#endif
#if !defined(SWIFT_PASTE)
# define SWIFT_PASTE_HELPER(x, y) x##y
# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
#endif
#if !defined(SWIFT_METATYPE)
# define SWIFT_METATYPE(X) Class
#endif
#if !defined(SWIFT_CLASS_PROPERTY)
# if __has_feature(objc_class_property)
# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
# else
# define SWIFT_CLASS_PROPERTY(...)
# endif
#endif
#if !defined(SWIFT_RUNTIME_NAME)
# if __has_attribute(objc_runtime_name)
# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
# else
# define SWIFT_RUNTIME_NAME(X)
# endif
#endif
#if !defined(SWIFT_COMPILE_NAME)
# if __has_attribute(swift_name)
# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
# else
# define SWIFT_COMPILE_NAME(X)
# endif
#endif
#if !defined(SWIFT_METHOD_FAMILY)
# if __has_attribute(objc_method_family)
# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
# else
# define SWIFT_METHOD_FAMILY(X)
# endif
#endif
#if !defined(SWIFT_NOESCAPE)
# if __has_attribute(noescape)
# define SWIFT_NOESCAPE __attribute__((noescape))
# else
# define SWIFT_NOESCAPE
# endif
#endif
#if !defined(SWIFT_RELEASES_ARGUMENT)
# if __has_attribute(ns_consumed)
# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
# else
# define SWIFT_RELEASES_ARGUMENT
# endif
#endif
#if !defined(SWIFT_WARN_UNUSED_RESULT)
# if __has_attribute(warn_unused_result)
# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
# else
# define SWIFT_WARN_UNUSED_RESULT
# endif
#endif
#if !defined(SWIFT_NORETURN)
# if __has_attribute(noreturn)
# define SWIFT_NORETURN __attribute__((noreturn))
# else
# define SWIFT_NORETURN
# endif
#endif
#if !defined(SWIFT_CLASS_EXTRA)
# define SWIFT_CLASS_EXTRA
#endif
#if !defined(SWIFT_PROTOCOL_EXTRA)
# define SWIFT_PROTOCOL_EXTRA
#endif
#if !defined(SWIFT_ENUM_EXTRA)
# define SWIFT_ENUM_EXTRA
#endif
#if !defined(SWIFT_CLASS)
# if __has_attribute(objc_subclassing_restricted)
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
# else
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
# endif
#endif
#if !defined(SWIFT_RESILIENT_CLASS)
# if __has_attribute(objc_class_stub)
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
# else
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
# endif
#endif
#if !defined(SWIFT_PROTOCOL)
# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
#endif
#if !defined(SWIFT_EXTENSION)
# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
#endif
#if !defined(OBJC_DESIGNATED_INITIALIZER)
# if __has_attribute(objc_designated_initializer)
# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
# else
# define OBJC_DESIGNATED_INITIALIZER
# endif
#endif
#if !defined(SWIFT_ENUM_ATTR)
# if __has_attribute(enum_extensibility)
# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
# else
# define SWIFT_ENUM_ATTR(_extensibility)
# endif
#endif
#if !defined(SWIFT_ENUM)
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
# if __has_feature(generalized_swift_name)
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
# else
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
# endif
#endif
#if !defined(SWIFT_UNAVAILABLE)
# define SWIFT_UNAVAILABLE __attribute__((unavailable))
#endif
#if !defined(SWIFT_UNAVAILABLE_MSG)
# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
#endif
#if !defined(SWIFT_AVAILABILITY)
# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
#endif
#if !defined(SWIFT_WEAK_IMPORT)
# define SWIFT_WEAK_IMPORT __attribute__((weak_import))
#endif
#if !defined(SWIFT_DEPRECATED)
# define SWIFT_DEPRECATED __attribute__((deprecated))
#endif
#if !defined(SWIFT_DEPRECATED_MSG)
# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
#endif
#if !defined(SWIFT_DEPRECATED_OBJC)
# if __has_feature(attribute_diagnose_if_objc)
# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
# else
# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
# endif
#endif
#if defined(__OBJC__)
#if !defined(IBSegueAction)
# define IBSegueAction
#endif
#endif
#if !defined(SWIFT_EXTERN)
# if defined(__cplusplus)
# define SWIFT_EXTERN extern "C"
# else
# define SWIFT_EXTERN extern
# endif
#endif
#if !defined(SWIFT_CALL)
# define SWIFT_CALL __attribute__((swiftcall))
#endif
#if !defined(SWIFT_INDIRECT_RESULT)
# define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result))
#endif
#if !defined(SWIFT_CONTEXT)
# define SWIFT_CONTEXT __attribute__((swift_context))
#endif
#if !defined(SWIFT_ERROR_RESULT)
# define SWIFT_ERROR_RESULT __attribute__((swift_error_result))
#endif
#if defined(__cplusplus)
# define SWIFT_NOEXCEPT noexcept
#else
# define SWIFT_NOEXCEPT
#endif
#if defined(_WIN32)
#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
# define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport)
#endif
#else
#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
# define SWIFT_IMPORT_STDLIB_SYMBOL
#endif
#endif
#if defined(__OBJC__)
#if __has_feature(objc_modules)
#if __has_warning("-Watimport-in-framework-header")
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
#endif
@import ObjectiveC;
#endif
#endif
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
#if __has_warning("-Wpragma-clang-attribute")
# pragma clang diagnostic ignored "-Wpragma-clang-attribute"
#endif
#pragma clang diagnostic ignored "-Wunknown-pragmas"
#pragma clang diagnostic ignored "-Wnullability"
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
#if __has_attribute(external_source_symbol)
# pragma push_macro("any")
# undef any
# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="MyIdSDK",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
# pragma pop_macro("any")
#endif
#if defined(__OBJC__)
@class UIColor;
SWIFT_CLASS("_TtC7MyIdSDK14MyIdAppearance")
@interface MyIdAppearance : NSObject
@property (nonatomic, strong) UIColor * _Nullable primaryColor;
@property (nonatomic, strong) UIColor * _Nullable secondaryColor;
@property (nonatomic, strong) UIColor * _Nullable errorColor;
@property (nonatomic, strong) UIColor * _Nullable primaryButtonColor;
@property (nonatomic, strong) UIColor * _Nullable primaryButtonColorDisabled;
@property (nonatomic, strong) UIColor * _Nullable primaryButtonTextColor;
@property (nonatomic, strong) UIColor * _Nullable primaryButtonTextColorDisabled;
@property (nonatomic) float buttonCornerRadius;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
typedef SWIFT_ENUM(NSInteger, MyIdBuildMode, open) {
MyIdBuildModeDEBUG = 0,
MyIdBuildModePRODUCTION = 1,
};
typedef SWIFT_ENUM(NSInteger, MyIdCameraShape, open) {
MyIdCameraShapeELLIPSE = 0,
MyIdCameraShapeCIRCLE = 1,
};
@class MyIdConfig;
@protocol MyIdClientDelegate;
SWIFT_CLASS("_TtC7MyIdSDK10MyIdClient")
@interface MyIdClient : NSObject
+ (void)startWithConfig:(MyIdConfig * _Nonnull)config withDelegate:(id <MyIdClientDelegate> _Nonnull)delegate;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
@class MyIdResult;
@class MyIdException;
SWIFT_PROTOCOL("_TtP7MyIdSDK18MyIdClientDelegate_")
@protocol MyIdClientDelegate
- (void)onSuccessWithResult:(MyIdResult * _Nonnull)result;
- (void)onErrorWithException:(MyIdException * _Nonnull)exception;
- (void)onUserExited;
@end
@class NSString;
enum MyIdEntryType : NSInteger;
enum MyIdResidency : NSInteger;
enum MyIdLocale : NSInteger;
enum MyIdResolution : NSInteger;
@class MyIdOrganizationDetails;
SWIFT_CLASS("_TtC7MyIdSDK10MyIdConfig")
@interface MyIdConfig : NSObject
@property (nonatomic, copy) NSString * _Nullable clientId;
@property (nonatomic, copy) NSString * _Nullable clientHash;
@property (nonatomic, copy) NSString * _Nullable clientHashId;
@property (nonatomic, copy) NSString * _Nullable passportData;
@property (nonatomic, copy) NSString * _Nullable dateOfBirth;
@property (nonatomic, copy) NSString * _Nullable sdkHash;
@property (nonatomic, copy) NSString * _Nullable externalId;
@property (nonatomic) float threshold;
@property (nonatomic) enum MyIdBuildMode buildMode;
@property (nonatomic) enum MyIdEntryType entryType;
@property (nonatomic) enum MyIdResidency residency;
@property (nonatomic) enum MyIdLocale locale;
@property (nonatomic) enum MyIdCameraShape cameraShape;
@property (nonatomic) enum MyIdResolution resolution;
@property (nonatomic, strong) MyIdOrganizationDetails * _Nullable organizationDetails;
@property (nonatomic, strong) MyIdAppearance * _Nullable appearance;
@property (nonatomic) BOOL withPhoto;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
typedef SWIFT_ENUM(NSInteger, MyIdDocumentType, open) {
MyIdDocumentTypeID_CARD = 0,
MyIdDocumentTypePASSPORT = 1,
MyIdDocumentTypeDRIVER_LICENSE = 2,
};
typedef SWIFT_ENUM(NSInteger, MyIdEntryType, open) {
MyIdEntryTypeAUTH = 0,
MyIdEntryTypeFACE = 1,
};
SWIFT_CLASS("_TtC7MyIdSDK13MyIdException")
@interface MyIdException : NSObject
@property (nonatomic, copy) NSString * _Nullable message;
@property (nonatomic, copy) NSString * _Nullable code;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
typedef SWIFT_ENUM(NSInteger, MyIdLocale, open) {
MyIdLocaleRU = 0,
MyIdLocaleEN = 1,
MyIdLocaleUZ = 2,
};
@class UIImage;
SWIFT_CLASS("_TtC7MyIdSDK23MyIdOrganizationDetails")
@interface MyIdOrganizationDetails : NSObject
@property (nonatomic, copy) NSString * _Nullable phoneNumber;
@property (nonatomic, strong) UIImage * _Nullable logo;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
typedef SWIFT_ENUM(NSInteger, MyIdResidency, open) {
MyIdResidencyUSER_DEFINED = 0,
MyIdResidencyRESIDENT = 1,
MyIdResidencyNON_RESIDENT = 2,
};
typedef SWIFT_ENUM(NSInteger, MyIdResolution, open) {
MyIdResolutionRESOLUTION_480 = 0,
MyIdResolutionRESOLUTION_720 = 1,
};
SWIFT_CLASS("_TtC7MyIdSDK10MyIdResult")
@interface MyIdResult : NSObject
@property (nonatomic, strong) UIImage * _Nullable image;
@property (nonatomic, copy) NSString * _Nullable code;
@property (nonatomic, copy) NSString * _Nullable comparisonValue;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
SWIFT_CLASS("_TtC7MyIdSDK13RSAKeyFactory")
@interface RSAKeyFactory : NSObject
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
#endif
#if defined(__cplusplus)
#endif
#if __has_attribute(external_source_symbol)
# pragma clang attribute pop
#endif
#pragma clang diagnostic pop
#endif
#else
#error unsupported Swift architecture
#endif
//
// MyIdSDK.h
// MyIdSDK
//
// Created by Javokhir Savriev
//
#import <Foundation/Foundation.h>
//! Project version number for MyIdSDK.
FOUNDATION_EXPORT double MyIdSDKVersionNumber;
//! Project version string for MyIdSDK.
FOUNDATION_EXPORT const unsigned char MyIdSDKVersionString[];
// In this header, you should import all the public headers of your framework using statements like #import <MyIdSDK/PublicHeader.h>
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 5.8.1 (swiftlang-5.8.0.124.5 clang-1403.0.22.11.100)
// swift-module-flags: -target arm64-apple-ios11.1-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name MyIdSDK
// swift-module-flags-ignorable: -enable-bare-slash-regex
import AVFoundation
import CoreImage.CIFilterBuiltins
import Combine
import CommonCrypto
import Compression
import CoreImage
import CoreVideo
import CryptoKit
import Foundation
import LocalAuthentication
@_exported import MyIdSDK
import Security
import Swift
import UIKit
import Vision
import _Concurrency
import _StringProcessing
public protocol CommonHeaderParameterSpace {
var jku: Foundation.URL? { get set }
var jwk: Swift.String? { get set }
var jwkTyped: (any MyIdSDK.JWK)? { get set }
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 struct Payload : MyIdSDK.DataConvertible {
public init(_ payload: Foundation.Data)
public func data() -> Foundation.Data
}
extension Swift.String : Swift.Error {
}
extension Security.SecKey : MyIdSDK.ExpressibleAsECPublicKeyComponents {
public static func representing(ecPublicKeyComponents components: MyIdSDK.ECPublicKeyComponents) throws -> Self
public func ecPublicKeyComponents() throws -> MyIdSDK.ECPublicKeyComponents
}
@objc public enum MyIdCameraShape : Swift.Int {
case ELLIPSE = 0
case CIRCLE
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
public enum SecureRandomError : Swift.Error {
case failed(status: Darwin.OSStatus)
case countMustBeGreaterThanZero
}
public struct SecureRandom {
public static func generate(count: Swift.Int) throws -> 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
}
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 protocol Message {
var data: Foundation.Data { get }
var base64String: Swift.String { get }
init(data: Foundation.Data)
init(base64String: Swift.String) throws
}
extension MyIdSDK.Message {
public var base64String: Swift.String {
get
}
}
extension Security.SecKey : MyIdSDK.ExpressibleAsRSAPublicKeyComponents {
public static func representing(rsaPublicKeyComponents components: MyIdSDK.RSAPublicKeyComponents) throws -> Self
public func rsaPublicKeyComponents() throws -> MyIdSDK.RSAPublicKeyComponents
}
@_inheritsConvenienceInitializers @objc public class MyIdOrganizationDetails : ObjectiveC.NSObject {
@objc public var phoneNumber: Swift.String?
@objc public var logo: UIKit.UIImage?
@objc override dynamic public init()
@objc deinit
}
@objc public protocol MyIdClientDelegate {
@objc func onSuccess(result: MyIdSDK.MyIdResult)
@objc func onError(exception: MyIdSDK.MyIdException)
@objc func onUserExited()
}
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
@objc public enum MyIdDocumentType : Swift.Int {
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
}
}
extension Foundation.Data {
public init?(base64URLEncoded base64URLString: Swift.String)
public init?(base64URLEncoded base64URLData: Foundation.Data)
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
}
extension Security.SecKey : MyIdSDK.ExpressibleAsECPrivateKeyComponents {
public static func representing(ecPrivateKeyComponents components: MyIdSDK.ECPrivateKeyComponents) throws -> Self
public func ecPrivateKeyComponents() throws -> MyIdSDK.ECPrivateKeyComponents
}
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
}
@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 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 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
}
@_inheritsConvenienceInitializers @objc public class MyIdConfig : ObjectiveC.NSObject {
@objc public var clientId: Swift.String?
@objc public var clientHash: Swift.String?
@objc public var clientHashId: Swift.String?
@objc public var passportData: Swift.String?
@objc public var dateOfBirth: Swift.String?
@objc public var sdkHash: Swift.String?
@objc public var externalId: Swift.String?
@objc public var threshold: Swift.Float
@objc public var buildMode: MyIdSDK.MyIdBuildMode
@objc public var entryType: MyIdSDK.MyIdEntryType
@objc public var residency: MyIdSDK.MyIdResidency
@objc public var locale: MyIdSDK.MyIdLocale
@objc public var cameraShape: MyIdSDK.MyIdCameraShape
@objc public var resolution: MyIdSDK.MyIdResolution
@objc public var organizationDetails: MyIdSDK.MyIdOrganizationDetails?
@objc public var appearance: MyIdSDK.MyIdAppearance?
@objc public var withPhoto: Swift.Bool
@objc override dynamic public init()
@objc deinit
}
public typealias SymmetricKeyComponents = (Foundation.Data)
public protocol ExpressibleAsSymmetricKeyComponents {
static func representing(symmetricKeyComponents components: MyIdSDK.SymmetricKeyComponents) throws -> Self
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
}
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
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)
}
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
}
@_inheritsConvenienceInitializers @objc public class MyIdException : ObjectiveC.NSObject {
@objc public var message: Swift.String?
@objc public var code: Swift.String?
@objc override dynamic public init()
@objc deinit
}
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 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 Foundation.Data : MyIdSDK.ExpressibleAsSymmetricKeyComponents {
public static func representing(symmetricKeyComponents components: MyIdSDK.SymmetricKeyComponents) throws -> Foundation.Data
public func symmetricKeyComponents() throws -> MyIdSDK.SymmetricKeyComponents
}
@objc public enum MyIdResidency : Swift.Int {
case USER_DEFINED = 0
case RESIDENT
case NON_RESIDENT
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
@_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
}
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
}
}
@objc public enum MyIdResolution : Swift.Int {
case RESOLUTION_480 = 0
case RESOLUTION_720
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
@objc public enum MyIdEntryType : Swift.Int {
case AUTH = 0
case FACE
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
extension Foundation.Data : MyIdSDK.ExpressibleAsECPublicKeyComponents {
public static func representing(ecPublicKeyComponents components: MyIdSDK.ECPublicKeyComponents) throws -> Foundation.Data
public func ecPublicKeyComponents() throws -> MyIdSDK.ECPublicKeyComponents
}
@_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 class RSASignature {
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
}
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
}
}
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
}
extension Foundation.Data : MyIdSDK.ExpressibleAsECPrivateKeyComponents {
public static func representing(ecPrivateKeyComponents components: MyIdSDK.ECPrivateKeyComponents) throws -> Foundation.Data
public func ecPrivateKeyComponents() throws -> MyIdSDK.ECPrivateKeyComponents
}
public enum SwiftyCryptoRSAKeySize : Swift.Int {
case RSAKey64
case RSAKey128
case RSAKey256
case RSAKey512
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
@objc @_inheritsConvenienceInitializers public class RSAKeyFactory : ObjectiveC.NSObject {
public static let shared: MyIdSDK.RSAKeyFactory
public func generateKeyPair(keySize: MyIdSDK.SwiftyCryptoRSAKeySize) -> MyIdSDK.RSAKeyPairs?
@objc override dynamic public init()
@objc deinit
}
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
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...)
}
extension MyIdSDK.RSAPublicKey : Swift.Encodable {
public func encode(to encoder: any Swift.Encoder) throws
}
extension MyIdSDK.RSAPublicKey : Swift.Decodable {
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
}
public protocol CompactSerializable {
func serialize(to serializer: inout any MyIdSDK.CompactSerializer)
}
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
}
@_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
}
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
}
public struct Decrypter {
public init?<KeyType>(keyManagementAlgorithm: MyIdSDK.KeyManagementAlgorithm, contentEncryptionAlgorithm: MyIdSDK.ContentEncryptionAlgorithm, decryptionKey: KeyType)
}
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 {
}
extension Foundation.Data : MyIdSDK.ExpressibleAsRSAPublicKeyComponents {
public static func representing(rsaPublicKeyComponents components: MyIdSDK.RSAPublicKeyComponents) throws -> Foundation.Data
public func rsaPublicKeyComponents() throws -> MyIdSDK.RSAPublicKeyComponents
}
@objc public enum MyIdBuildMode : Swift.Int {
case DEBUG = 0
case PRODUCTION
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
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 {
}
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 protocol DataConvertible {
init?(_ data: Foundation.Data)
func data() -> Foundation.Data
}
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)
}
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
}
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?(stringValue: Swift.String)
public init?(intValue: Swift.Int)
public init?(rawValue: Swift.String)
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
}
}
public enum JOSESwiftError : Swift.Error {
case signingFailed(description: Swift.String)
case verifyingFailed(description: Swift.String)
case signatureInvalid
case encryptingFailed(description: Swift.String)
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 MyIdSDK.KeyManagementAlgorithm : Swift.Equatable {}
extension MyIdSDK.KeyManagementAlgorithm : Swift.Hashable {}
extension MyIdSDK.KeyManagementAlgorithm : Swift.RawRepresentable {}
extension MyIdSDK.JWKThumbprintAlgorithm : Swift.Equatable {}
extension MyIdSDK.JWKThumbprintAlgorithm : Swift.Hashable {}
extension MyIdSDK.JWKThumbprintAlgorithm : Swift.RawRepresentable {}
extension MyIdSDK.MyIdCameraShape : Swift.Equatable {}
extension MyIdSDK.MyIdCameraShape : Swift.Hashable {}
extension MyIdSDK.MyIdCameraShape : Swift.RawRepresentable {}
extension MyIdSDK.MyIdDocumentType : Swift.Equatable {}
extension MyIdSDK.MyIdDocumentType : Swift.Hashable {}
extension MyIdSDK.MyIdDocumentType : Swift.RawRepresentable {}
extension MyIdSDK.MyIdLocale : Swift.Equatable {}
extension MyIdSDK.MyIdLocale : Swift.Hashable {}
extension MyIdSDK.MyIdLocale : Swift.RawRepresentable {}
extension MyIdSDK.JWEHeader : MyIdSDK.DataConvertible {}
extension MyIdSDK.SignatureAlgorithm : Swift.Equatable {}
extension MyIdSDK.SignatureAlgorithm : Swift.Hashable {}
extension MyIdSDK.SignatureAlgorithm : Swift.RawRepresentable {}
extension MyIdSDK.ContentEncryptionAlgorithm : Swift.Equatable {}
extension MyIdSDK.ContentEncryptionAlgorithm : Swift.Hashable {}
extension MyIdSDK.ContentEncryptionAlgorithm : Swift.RawRepresentable {}
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.JWKKeyType : Swift.Equatable {}
extension MyIdSDK.JWKKeyType : Swift.Hashable {}
extension MyIdSDK.JWKKeyType : Swift.RawRepresentable {}
extension MyIdSDK.MyIdResidency : Swift.Equatable {}
extension MyIdSDK.MyIdResidency : Swift.Hashable {}
extension MyIdSDK.MyIdResidency : Swift.RawRepresentable {}
extension MyIdSDK.JWSHeader : MyIdSDK.DataConvertible {}
extension MyIdSDK.MyIdResolution : Swift.Equatable {}
extension MyIdSDK.MyIdResolution : Swift.Hashable {}
extension MyIdSDK.MyIdResolution : Swift.RawRepresentable {}
extension MyIdSDK.MyIdEntryType : Swift.Equatable {}
extension MyIdSDK.MyIdEntryType : Swift.Hashable {}
extension MyIdSDK.MyIdEntryType : Swift.RawRepresentable {}
extension MyIdSDK.RSASignature.DigestType : Swift.Equatable {}
extension MyIdSDK.RSASignature.DigestType : Swift.Hashable {}
extension MyIdSDK.ECCurveType : Swift.Equatable {}
extension MyIdSDK.ECCurveType : Swift.Hashable {}
extension MyIdSDK.ECCurveType : Swift.RawRepresentable {}
extension MyIdSDK.ECCompression : Swift.Equatable {}
extension MyIdSDK.ECCompression : Swift.Hashable {}
extension MyIdSDK.ECCompression : Swift.RawRepresentable {}
extension MyIdSDK.SwiftyCryptoRSAKeySize : Swift.Equatable {}
extension MyIdSDK.SwiftyCryptoRSAKeySize : Swift.Hashable {}
extension MyIdSDK.SwiftyCryptoRSAKeySize : Swift.RawRepresentable {}
extension MyIdSDK.RSAKeyType : Swift.Equatable {}
extension MyIdSDK.RSAKeyType : Swift.Hashable {}
extension MyIdSDK.MyIdBuildMode : Swift.Equatable {}
extension MyIdSDK.MyIdBuildMode : Swift.Hashable {}
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 {}
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