Files
CustomPlugin/Libs/CredibleAuthSDK.framework/Headers/CredibleAuthSDK-Swift.h
2023-04-13 17:23:15 +08:00

885 lines
37 KiB
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#if 0
#elif defined(__arm64__) && __arm64__
// Generated by Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51)
#ifndef CREDIBLEAUTHSDK_SWIFT_H
#define CREDIBLEAUTHSDK_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 "-Wduplicate-method-match"
#pragma clang diagnostic ignored "-Wauto-import"
#if defined(__OBJC__)
#include <Foundation/Foundation.h>
#endif
#if defined(__cplusplus)
#include <cstdint>
#include <cstddef>
#include <cstdbool>
#else
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#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 __has_attribute(objc_runtime_name)
# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
#else
# define SWIFT_RUNTIME_NAME(X)
#endif
#if __has_attribute(swift_name)
# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
#else
# define SWIFT_COMPILE_NAME(X)
#endif
#if __has_attribute(objc_method_family)
# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
#else
# define SWIFT_METHOD_FAMILY(X)
#endif
#if __has_attribute(noescape)
# define SWIFT_NOESCAPE __attribute__((noescape))
#else
# define SWIFT_NOESCAPE
#endif
#if __has_attribute(ns_consumed)
# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
#else
# define SWIFT_RELEASES_ARGUMENT
#endif
#if __has_attribute(warn_unused_result)
# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
#else
# define SWIFT_WARN_UNUSED_RESULT
#endif
#if __has_attribute(noreturn)
# define SWIFT_NORETURN __attribute__((noreturn))
#else
# define SWIFT_NORETURN
#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 defined(__has_attribute) && __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 __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
#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(__cplusplus)
#if !defined(SWIFT_NOEXCEPT)
# define SWIFT_NOEXCEPT noexcept
#endif
#else
#if !defined(SWIFT_NOEXCEPT)
# define SWIFT_NOEXCEPT
#endif
#endif
#if defined(__cplusplus)
#if !defined(SWIFT_CXX_INT_DEFINED)
#define SWIFT_CXX_INT_DEFINED
namespace swift {
using Int = ptrdiff_t;
using UInt = size_t;
}
#endif
#endif
#if defined(__OBJC__)
#if __has_feature(modules)
#if __has_warning("-Watimport-in-framework-header")
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
#endif
@import CoreFoundation;
@import Foundation;
@import ObjectiveC;
#endif
#import <CredibleAuthSDK/CredibleAuthSDK.h>
#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="CredibleAuthSDK",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
# pragma pop_macro("any")
#endif
#if defined(__OBJC__)
@class NSString;
/// 代理机构业务人脸认证参数类
SWIFT_CLASS("_TtC15CredibleAuthSDK16AgencyLoginParam")
@interface AgencyLoginParam : NSObject
/// 身份凭据,通过token获取接口生成。
@property (nonatomic, copy) NSString * _Nonnull appToken;
/// 姓名
@property (nonatomic, copy) NSString * _Nonnull full_name;
/// 国籍 例如156-中国
@property (nonatomic, copy) NSString * _Nonnull nationality;
/// 身份证件类型 示例201-居民身份证
@property (nonatomic, copy) NSString * _Nonnull card_type;
/// 身份证件号码
@property (nonatomic, copy) NSString * _Nonnull id_card;
/// 代理机构社会信用代码/纳税人识别号
@property (nonatomic, copy) NSString * _Nonnull agencyCreditCode;
/// 社会信用代码/纳税人识别号
@property (nonatomic, copy) NSString * _Nonnull creditCode;
/// 人企关联关系类型代码
@property (nonatomic, copy) NSString * _Nonnull relatedType;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
+ (NSArray<NSString *> * _Nullable)modelPropertyBlacklist SWIFT_WARN_UNUSED_RESULT;
@end
/// 二次认证参数
SWIFT_CLASS("_TtC15CredibleAuthSDK27AppSecondCertificationParam")
@interface AppSecondCertificationParam : NSObject
/// 用户令牌
@property (nonatomic, copy) NSString * _Nonnull access_token;
/// 应用令牌
@property (nonatomic, copy) NSString * _Nonnull appToken;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
+ (NSArray<NSString *> * _Nullable)modelPropertyBlacklist SWIFT_WARN_UNUSED_RESULT;
@end
SWIFT_CLASS("_TtC15CredibleAuthSDK10CAResponse")
@interface CAResponse : NSObject
@property (nonatomic) NSInteger code;
@property (nonatomic, copy) NSString * _Nonnull msg;
@property (nonatomic, copy) NSDictionary<NSString *, id> * _Nonnull data;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
/// 企业业务协同签名认证参数
SWIFT_CLASS("_TtC15CredibleAuthSDK14CertLoginParam")
@interface CertLoginParam : NSObject
/// 真实姓名
@property (nonatomic, copy) NSString * _Nonnull pin;
/// 身份证件类型(详见附件的身份证件类型代码字典。 示例201-居民身份证)
@property (nonatomic, copy) NSString * _Nonnull mobile;
/// 人企关联关系类型代码,可为空,为空则按从高处理
@property (nonatomic, copy) NSString * _Nonnull relatedType;
/// 身份凭据,通过token获取接口生成。
@property (nonatomic, copy) NSString * _Nonnull appToken;
/// 统一社会信用代码(注:纳税人识别号)
@property (nonatomic, copy) NSString * _Nonnull creditCode;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
+ (NSArray<NSString *> * _Nullable)modelPropertyBlacklist SWIFT_WARN_UNUSED_RESULT;
@end
@class RealPersonCheckParam;
@class SecondCertificationParam;
@class UseQrCodeLoginParam;
@class EnterpriseLoginParam;
@class NaturalLoginParam;
@class DeviceParam;
@class DeviceInfoResult;
@class SDKVersionInfo;
@class RegisterParam;
@class UseQrCodeSecondCertificationParam;
@class ElevateParam;
@class EnterpriseIdentityLoginParam;
@class NaturalIdentityLoginParam;
@class VerifyWithPictureTokenParam;
@class H5LoginParam;
@class H5SetParam;
@class VerifyWithPictureRequestParam;
@class GetApplicationTokenParam;
SWIFT_CLASS("_TtC15CredibleAuthSDK15CredibleAuthSDK")
@interface CredibleAuthSDK : NSObject
@property (nonatomic, copy) NSString * _Nullable appCode;
+ (CredibleAuthSDK * _Nonnull)sharedInstance SWIFT_WARN_UNUSED_RESULT;
/// 4.2 初始化SDK
/// \param encryptKey 加密密钥,由App向可信后台申请
///
/// \param signKey 签名密钥,由App向可信后台申请
///
/// \param requestURI 可信后台环境, 格式为: “地区.环境类型” 如: 北京预生产对应requestURI为 beijing.pre
/// (dev:公有云 pre:预生产 pro:生产 test:测试) 如参数不合法, 使用默认值quanguo.dev
///
+ (void)registerAppWithEncryptKey:(NSString * _Nonnull)encryptKey signKey:(NSString * _Nonnull)signKey requestURI:(NSString * _Nonnull)requestURI;
/// 4.3 实人认证(实名采集场景)
/// \param param 实人认证参数, 详见RealPersonCheckParam类
///
/// \param finishBlock 请求完成回调
///
+ (void)realPersonWithParam:(RealPersonCheckParam * _Nonnull)param block:(void (^ _Nonnull)(CAResponse * _Nonnull))finishBlock;
/// 4.4 二次认证(停用)
/// \param param 二次认证参数, 详见SecondCertificationParam类
///
/// \param finishBlock 请求完成回调
///
+ (void)secondCertificationWithParam:(SecondCertificationParam * _Nonnull)param block:(void (^ _Nonnull)(CAResponse * _Nonnull))finishBlock SWIFT_DEPRECATED_MSG("该接口已停用,请访问新接口(useQrCodeSecondCertification/appSecondCertification )实现业务功能");
/// 4.5 扫码登录消费二维码接口
/// \param param 消费二维码参数, 详见UseQrCodeLoginParam类
///
/// \param finishBlock 请求完成回调
///
+ (void)useQRCodeLoginWithParam:(UseQrCodeLoginParam * _Nonnull)param block:(void (^ _Nonnull)(CAResponse * _Nonnull))finishBlock;
/// 4.6 企业业务人脸认证接口(停用)
/// \param param
///
/// \param finishBlock
///
+ (void)enterpriseLoginWithParam:(EnterpriseLoginParam * _Nonnull)param block:(void (^ _Nonnull)(CAResponse * _Nonnull))finishBlock SWIFT_DEPRECATED_MSG("该接口已停用,请访问新接口(h5Login)实现业务功能");
/// 4.7 自然人业务人脸认证接口(停用)
/// \param param
///
/// \param finishBlock
///
+ (void)naturalLoginWithParam:(NaturalLoginParam * _Nonnull)param block:(void (^ _Nonnull)(CAResponse * _Nonnull))finishBlock SWIFT_DEPRECATED_MSG("该接口已停用,请访问新接口(h5Login)实现业务功能");
/// 4.8 代理机构业务人脸认证接口(停用)
/// \param param
///
/// \param finishBlock
///
+ (void)agencyLoginWithParam:(AgencyLoginParam * _Nonnull)param block:(void (^ _Nonnull)(CAResponse * _Nonnull))finishBlock SWIFT_DEPRECATED_MSG("该接口已停用,请访问新接口(h5Login)实现业务功能");
/// 4.9 环境信息获取接口(停用)
/// \param param 获取环境信息参数, 详见DeviceParam类
///
/// \param finishBlock 请求完成回调
///
+ (void)deviceWithParam:(DeviceParam * _Nonnull)param block:(void (^ _Nonnull)(DeviceInfoResult * _Nonnull))finishBlock SWIFT_DEPRECATED_MSG("该接口已停用,请访问新接口(deviceEncWithParam)实现业务功能");
+ (void)sdkVersionWithBlock:(void (^ _Nonnull)(SDKVersionInfo * _Nonnull))finishBlock;
/// 4.10 自然人身份注册接口(自然人实名)(停用)
/// \param param 自然人身份注册参数, 详见RegisterParam类
///
/// \param finishBlock 请求完成回调
///
+ (void)registerWithParam:(RegisterParam * _Nonnull)param block:(void (^ _Nonnull)(CAResponse * _Nonnull))finishBlock SWIFT_DEPRECATED_MSG("该接口已停用,请访问新接口(h5Login)实现业务功能");
/// 4.11 扫码实人认证消费二维码接口
/// 可信 WEB 端的一些操作,例如二次认证、注册、找回密码、修改密码、修改手机号等,会弹出二维码,需要进行扫码认证,扫描二维码触发调用此消费接口。
/// \param param 扫码二次认证接口请求参数, 详见UseQrCodeParam类
///
/// \param finishBlock 请求完成回调
///
+ (void)useQRCodeSecondCertificationWithParam:(UseQrCodeSecondCertificationParam * _Nonnull)param block:(void (^ _Nonnull)(CAResponse * _Nonnull))finishBlock;
/// 4.12 实名等级提升(停用)
/// 办理涉税业务过程中,需要实名等级提升时,通过税务端 APP 扫描实名等级提升二维码,触发调用此接口,唤起活体检测并通过可信后端完成实人认证,返回认证结果。
/// \param param 实名等级提升参数, 详见ElevateParam类
///
/// \param finishBlock 请求完成回调
///
+ (void)elevateWithParam:(ElevateParam * _Nonnull)param block:(void (^ _Nonnull)(CAResponse * _Nonnull))finishBlock SWIFT_DEPRECATED_MSG("该接口已停用,请访问新接口(appSecondCertification)实现业务功能");
/// 4.13 企业业务协同签名认证(停用)
/// \param param 企业业务协同签名认证参数, 详见CertLoginParam类
///
/// \param finishBlock 请求完成回调
/// @objc(certLogin: finishBlock:)//OC方法重命名
///
+ (void)certLoginWithParam:(CertLoginParam * _Nonnull)param block:(void (^ _Nonnull)(CAResponse * _Nonnull))finishBlock SWIFT_DEPRECATED_MSG("该接口已停用,请访问新接口(h5Login)实现业务功能");
+ (void)h5CertLoginWithParam:(CertLoginParam * _Nonnull)param block:(void (^ _Nonnull)(CAResponse * _Nonnull))finishBlock;
/// 4.14 企业业务刷脸登录接口(停用)
+ (void)enterpriseIdentityLoginWithParam:(EnterpriseIdentityLoginParam * _Nonnull)param block:(void (^ _Nonnull)(CAResponse * _Nonnull))finishBlock SWIFT_DEPRECATED_MSG("该接口已停用,请访问新接口(h5Login)实现业务功能");
/// 4.15 自然人业务人脸认证接口(停用)
+ (void)naturalIdentityLoginWithParam:(NaturalIdentityLoginParam * _Nonnull)param block:(void (^ _Nonnull)(CAResponse * _Nonnull))finishBlock SWIFT_DEPRECATED_MSG("该接口已停用,请访问新接口(h5Login)实现业务功能");
/// 4.16 异步实人认证(停用)
+ (void)verifyWithPictureTokenParam:(VerifyWithPictureTokenParam * _Nonnull)param block:(void (^ _Nonnull)(CAResponse * _Nonnull))finishBlock;
/// 4.17 APP 集成可信 H5 登录接口
/// 税务 APP 点击登录按钮时,调用此接口,唤起可信 H5 登录页面,可信 H5 页面提供
/// 企业业务登录、自然人业务登录、自然人注册、自然人找回密码、自然人找回手机号等功能。
/// 用户完成登录,获得用户令牌信息。
+ (void)h5Login:(H5LoginParam * _Nonnull)param block:(void (^ _Nonnull)(CAResponse * _Nonnull))finishBlock;
/// 4.18 APP 集成可信指纹/面容设置接口
/// 税务 APP 登录后,在设置中可以通过指纹/面容设置入口,调用此接口,唤起可信 H5
/// 页面,可信 H5 页面提供指纹/面容设置开启与关闭,以及取消不再提醒是否开启指纹的设置。
+ (void)h5Set:(H5SetParam * _Nonnull)param block:(void (^ _Nonnull)(CAResponse * _Nonnull))finishBlock;
/// 4.19 环境信息获取(新)接口
/// \param param 获取环境信息参数, 详见DeviceParam类
///
/// \param finishBlock 请求完成回调
///
+ (void)deviceEncWithParam:(DeviceParam * _Nonnull)param block:(void (^ _Nonnull)(CAResponse * _Nonnull))finishBlock;
/// 4.20 APP 二次认证
/// 在 APP 端进行业务事项办理时,如果需要满足登录等级达到 4 级才可以办理时,就可以由 APP
/// 发起调用此接口触发活体检测完成登录等级与实名等级的提升接口返回成功时APP后台
/// 应该重新调用 userinfo 接口重新获取会话信息,将更新登录等级与实名等级
/// \param param 二次认证参数, 详见AppSecondCertificationParam类
///
/// \param finishBlock 请求完成回调
///
+ (void)appSecondCertificationWithParam:(AppSecondCertificationParam * _Nonnull)param block:(void (^ _Nonnull)(CAResponse * _Nonnull))finishBlock;
/// 4.21 实人认证申请
/// 通过税务 APP 进行实人认证功能时,触发调用此接口
/// 唤起活体检测并通过可信后端完成实人认证,返回用于查询结果的唯一标识。
/// 通过唯一标识,由后台服务调用可信接口,查询实人认证的结果。
/// \param param 二次认证参数, 详见VerifyWithPictureRequestParam类
///
/// \param finishBlock 请求完成回调
///
+ (void)verifyWithPictureRequestParam:(VerifyWithPictureRequestParam * _Nonnull)param block:(void (^ _Nonnull)(CAResponse * _Nonnull))finishBlock;
+ (void)getApplicationTokenWithParam:(GetApplicationTokenParam * _Nonnull)param block:(void (^ _Nonnull)(CAResponse * _Nonnull))finishBlock;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
@class RegisterCertParam;
@interface CredibleAuthSDK (SWIFT_EXTENSION(CredibleAuthSDK))
+ (void)registerCert:(RegisterCertParam * _Nonnull)param block:(void (^ _Nonnull)(CAResponse * _Nonnull))finishBlock;
@end
@class NSData;
@interface CredibleAuthSDK (SWIFT_EXTENSION(CredibleAuthSDK)) <AFaceDetectDelegate>
- (void)onFailed:(int32_t)code withMessage:(NSString * _Nonnull)message;
- (void)onCompleted:(BOOL)live withData:(NSData * _Nonnull)imageData rect:(CGRect)faceRect;
@end
SWIFT_CLASS("_TtC15CredibleAuthSDK16DeviceInfoResult")
@interface DeviceInfoResult : NSObject <YYModel>
/// 经度(需要定位权限)
@property (nonatomic, copy) NSString * _Nonnull longitude;
/// 纬度
@property (nonatomic, copy) NSString * _Nonnull latitude;
/// 反地理编码信息
@property (nonatomic, copy) NSString * _Nonnull reverseGeocode;
/// 手机品牌
@property (nonatomic, copy) NSString * _Nonnull deviceBrand;
/// APP名称
@property (nonatomic, copy) NSString * _Nonnull srcAppName;
/// APP版本
@property (nonatomic, copy) NSString * _Nonnull srcAppVersion;
/// IP
@property (nonatomic, copy) NSString * _Nonnull srcIp;
/// MAC地址 需要本地网络权限, 否则返回 @“02:00:00:00:00:00”
@property (nonatomic, copy) NSString * _Nonnull deviceIdent;
/// 操作系统名称
@property (nonatomic, copy) NSString * _Nonnull deviceSystem;
/// 设备名称
@property (nonatomic, copy) NSString * _Nonnull deviceName;
/// 设备型号
@property (nonatomic, copy) NSString * _Nonnull deviceModel;
/// 设备识别号
@property (nonatomic, copy) NSString * _Nonnull deviceIdentyNo;
/// 设备制造商
@property (nonatomic, copy) NSString * _Nonnull deviceManufacturer;
/// 系统版本
@property (nonatomic, copy) NSString * _Nonnull systemVersion;
/// 运营商名称
@property (nonatomic, copy) NSString * _Nonnull isp;
/// 移动国家码
@property (nonatomic, copy) NSString * _Nonnull countryCode;
/// 移动网络码 00-中国移动TD 01-中国联通 02-中国移动GSM 03-中国电信CDMA
@property (nonatomic, copy) NSString * _Nonnull networkCode;
/// CPU型号
@property (nonatomic, copy) NSString * _Nonnull cpuModel;
/// SDK版本信息
@property (nonatomic, readonly, strong) SDKVersionInfo * _Nonnull sdkVersionInfo;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
/// 获取设备信息参数
SWIFT_CLASS("_TtC15CredibleAuthSDK11DeviceParam")
@interface DeviceParam : NSObject <YYModel>
/// 是否已获取定位权限
@property (nonatomic) BOOL locationAuthed;
/// 身份凭据,通过token获取接口生成。
@property (nonatomic, copy) NSString * _Nonnull appToken;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
/// 实名等级提升参数
SWIFT_CLASS("_TtC15CredibleAuthSDK12ElevateParam")
@interface ElevateParam : NSObject
/// 真实姓名
@property (nonatomic, copy) NSString * _Nonnull full_name;
/// 身份证件类型(详见附件的身份证件类型代码字典。 示例201-居民身份证)
@property (nonatomic, copy) NSString * _Nonnull card_type;
/// 国籍(详见附件国家代码表 示例156-中国)
@property (nonatomic, copy) NSString * _Nonnull nationality;
/// 身份证件号码
@property (nonatomic, copy) NSString * _Nonnull id_card;
/// 二维码编号
@property (nonatomic, copy) NSString * _Nonnull qrcode_id;
/// 身份凭据,通过token获取接口生成。
@property (nonatomic, copy) NSString * _Nonnull appToken;
/// 统一社会信用代码(注:纳税人识别号)
@property (nonatomic, copy) NSString * _Nonnull creditCode;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
+ (NSArray<NSString *> * _Nullable)modelPropertyBlacklist SWIFT_WARN_UNUSED_RESULT;
@end
/// 企业业务刷脸登录参数
SWIFT_CLASS("_TtC15CredibleAuthSDK28EnterpriseIdentityLoginParam")
@interface EnterpriseIdentityLoginParam : NSObject
/// 用户名/手机号/身份证号
@property (nonatomic, copy) NSString * _Nonnull identity;
/// 人企关联关系类型代码,可为空,为空则按从高处理
@property (nonatomic, copy) NSString * _Nonnull relatedType;
/// 身份凭据,通过token获取接口生成。
@property (nonatomic, copy) NSString * _Nonnull appToken;
/// 统一社会信用代码(注:纳税人识别号)
@property (nonatomic, copy) NSString * _Nonnull creditCode;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
+ (NSArray<NSString *> * _Nullable)modelPropertyBlacklist SWIFT_WARN_UNUSED_RESULT;
@end
/// 企业业务人脸认证参数类
SWIFT_CLASS("_TtC15CredibleAuthSDK20EnterpriseLoginParam")
@interface EnterpriseLoginParam : NSObject
/// 身份凭据,通过token获取接口生成。
@property (nonatomic, copy) NSString * _Nonnull appToken;
/// 姓名
@property (nonatomic, copy) NSString * _Nonnull full_name;
/// 国籍 例如156-中国
@property (nonatomic, copy) NSString * _Nonnull nationality;
/// 身份证件类型 示例201-居民身份证
@property (nonatomic, copy) NSString * _Nonnull card_type;
/// 身份证件号码
@property (nonatomic, copy) NSString * _Nonnull id_card;
/// 社会信用代码/纳税人识别号
@property (nonatomic, copy) NSString * _Nonnull creditCode;
/// 人企关联关系类型代码
@property (nonatomic, copy) NSString * _Nonnull relatedType;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
+ (NSArray<NSString *> * _Nullable)modelPropertyBlacklist SWIFT_WARN_UNUSED_RESULT;
@end
SWIFT_CLASS("_TtC15CredibleAuthSDK24GetApplicationTokenParam")
@interface GetApplicationTokenParam : NSObject <YYModel>
/// 用户令牌
@property (nonatomic, copy) NSString * _Nonnull client_id;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
/// H5登录参数
SWIFT_CLASS("_TtC15CredibleAuthSDK12H5LoginParam")
@interface H5LoginParam : NSObject
/// 应用令牌
@property (nonatomic, copy) NSString * _Nonnull appToken;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
/// H5设置快捷登录参数
SWIFT_CLASS("_TtC15CredibleAuthSDK10H5SetParam")
@interface H5SetParam : NSObject
/// 应用令牌
@property (nonatomic, copy) NSString * _Nonnull appToken;
/// 用户令牌
@property (nonatomic, copy) NSString * _Nonnull access_token;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
/// 个人业务刷脸登录参数
SWIFT_CLASS("_TtC15CredibleAuthSDK25NaturalIdentityLoginParam")
@interface NaturalIdentityLoginParam : NSObject
/// 用户名/手机号/身份证号
@property (nonatomic, copy) NSString * _Nonnull identity;
/// 身份凭据,通过token获取接口生成。
@property (nonatomic, copy) NSString * _Nonnull appToken;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
+ (NSArray<NSString *> * _Nullable)modelPropertyBlacklist SWIFT_WARN_UNUSED_RESULT;
@end
/// 自然人业务人脸认证参数类
SWIFT_CLASS("_TtC15CredibleAuthSDK17NaturalLoginParam")
@interface NaturalLoginParam : NSObject
/// 身份凭据,通过token获取接口生成。
@property (nonatomic, copy) NSString * _Nonnull appToken;
/// 姓名
@property (nonatomic, copy) NSString * _Nonnull full_name;
/// 国籍 例如156-中国
@property (nonatomic, copy) NSString * _Nonnull nationality;
/// 身份证件类型 示例201-居民身份证
@property (nonatomic, copy) NSString * _Nonnull card_type;
/// 身份证件号码
@property (nonatomic, copy) NSString * _Nonnull id_card;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
+ (NSArray<NSString *> * _Nullable)modelPropertyBlacklist SWIFT_WARN_UNUSED_RESULT;
@end
/// 实名认证参数
SWIFT_CLASS("_TtC15CredibleAuthSDK20RealPersonCheckParam")
@interface RealPersonCheckParam : NSObject
/// 真实姓名
@property (nonatomic, copy) NSString * _Nonnull fullName;
/// 身份证件类型(详见附件的身份证件类型代码字典。 示例201-居民身份证)
@property (nonatomic, copy) NSString * _Nonnull idCardType;
/// 国籍(详见附件国家代码表 示例156-中国)
@property (nonatomic, copy) NSString * _Nonnull nationality;
/// 身份证件号码
@property (nonatomic, copy) NSString * _Nonnull idCard;
/// 身份证有效期起(yyyyMMdd)
@property (nonatomic, copy) NSString * _Nonnull effDate;
/// 身份证号有效期止(yyyyMMdd)
@property (nonatomic, copy) NSString * _Nonnull expDate;
/// 身份凭据,通过token获取接口生成。
@property (nonatomic, copy) NSString * _Nonnull appToken;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
+ (NSArray<NSString *> * _Nullable)modelPropertyBlacklist SWIFT_WARN_UNUSED_RESULT;
@end
SWIFT_CLASS("_TtC15CredibleAuthSDK17RegisterCertParam")
@interface RegisterCertParam : NSObject <YYModel>
/// 应用令牌
@property (nonatomic, copy) NSString * _Nonnull appToken;
/// 用户类型
@property (nonatomic, copy) NSString * _Nonnull userType;
/// 用户名称
@property (nonatomic, copy) NSString * _Nonnull userName;
/// 纳税人名称
@property (nonatomic, copy) NSString * _Nonnull taxpayerName;
@property (nonatomic, copy) NSString * _Nonnull taxpayerCode;
@property (nonatomic, copy) NSString * _Nonnull taxBureauName;
@property (nonatomic, copy) NSString * _Nonnull taxBureauCode;
@property (nonatomic, copy) NSString * _Nonnull mobilePhoneNumber;
@property (nonatomic, copy) NSString * _Nonnull password;
@property (nonatomic, copy) NSString * _Nullable identifyCard;
@property (nonatomic, copy) NSString * _Nullable email;
+ (NSArray<NSString *> * _Nullable)modelPropertyBlacklist SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
/// 自然人注册参数类
SWIFT_CLASS("_TtC15CredibleAuthSDK13RegisterParam")
@interface RegisterParam : NSObject
/// 身份凭据,通过token获取接口生成。
@property (nonatomic, copy) NSString * _Nonnull appToken;
/// 姓名
@property (nonatomic, copy) NSString * _Nonnull fullName;
/// 性别 0.女 1.男
@property (nonatomic, copy) NSString * _Nonnull gender;
/// 国籍 例如156-中国
@property (nonatomic, copy) NSString * _Nonnull nationality;
/// 身份证件类型 示例201-居民身份证
@property (nonatomic, copy) NSString * _Nonnull idCardType;
/// 身份证件号码
@property (nonatomic, copy) NSString * _Nonnull idCard;
/// 联系电话
@property (nonatomic, copy) NSString * _Nonnull mobile;
/// 短信验证码编号
@property (nonatomic, copy) NSString * _Nonnull smscode_id;
/// 短信验证码内容
@property (nonatomic, copy) NSString * _Nonnull smscode;
/// 税务机关代码(固定11位)
@property (nonatomic, copy) NSString * _Nonnull taxauthorityCode;
/// 纳税所在地 参考附录:地区编码字典
@property (nonatomic, copy) NSString * _Nonnull taxPlace;
/// 出生日期, 格式为yyyyMMdd
@property (nonatomic, copy) NSString * _Nullable birthdate;
/// 证件有效期起始时间, 格式为yyyyMMdd
@property (nonatomic, copy) NSString * _Nonnull startDate;
/// 证件有效期终止时间, 格式为yyyyMMdd
@property (nonatomic, copy) NSString * _Nullable endDate;
/// 住址
@property (nonatomic, copy) NSString * _Nullable address;
/// 电子邮箱
@property (nonatomic, copy) NSString * _Nullable email;
/// 身份管理协议, 该值为协议版本号 数字格式例如1.0
@property (nonatomic, copy) NSString * _Nonnull agreementA;
/// 个人信息保护告知同意书, 该值为协议版本号 数字格式例如1.0
@property (nonatomic, copy) NSString * _Nonnull agreementB;
/// 人脸识别协议, 该值为协议版本号 数字格式例如1.0
@property (nonatomic, copy) NSString * _Nonnull agreementC;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
+ (NSArray<NSString *> * _Nullable)modelPropertyBlacklist SWIFT_WARN_UNUSED_RESULT;
@end
SWIFT_CLASS("_TtC15CredibleAuthSDK14SDKVersionInfo")
@interface SDKVersionInfo : NSObject <YYModel>
/// 主版本号
@property (nonatomic, copy) NSString * _Nonnull majorVersion;
/// build版本号
@property (nonatomic, copy) NSString * _Nonnull buildVersion;
/// 服务器地址
@property (nonatomic, copy) NSString * _Nonnull serverDomain;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
/// 二次认证参数
SWIFT_CLASS("_TtC15CredibleAuthSDK24SecondCertificationParam")
@interface SecondCertificationParam : NSObject
/// 真实姓名
@property (nonatomic, copy) NSString * _Nonnull full_name;
/// 身份证件类型(详见附件的身份证件类型代码字典。 示例201-居民身份证)
@property (nonatomic, copy) NSString * _Nonnull card_type;
/// 国籍(详见附件国家代码表 示例156-中国)
@property (nonatomic, copy) NSString * _Nonnull nationality;
/// 身份证件号码
@property (nonatomic, copy) NSString * _Nonnull id_card;
/// 二维码编号
@property (nonatomic, copy) NSString * _Nonnull qrcode_id;
/// 身份凭据,通过token获取接口生成。
@property (nonatomic, copy) NSString * _Nonnull appToken;
/// 统一社会信用代码(注:纳税人识别号)
@property (nonatomic, copy) NSString * _Nonnull creditCode;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
+ (NSArray<NSString *> * _Nullable)modelPropertyBlacklist SWIFT_WARN_UNUSED_RESULT;
@end
/// 消费二维码接口请求参数对象
SWIFT_CLASS("_TtC15CredibleAuthSDK19UseQrCodeLoginParam")
@interface UseQrCodeLoginParam : NSObject <YYModel>
/// 用户令牌
@property (nonatomic, copy) NSString * _Nonnull access_token;
/// 二维码编号
@property (nonatomic, copy) NSString * _Nonnull qrcode_id;
/// 身份凭据,通过token获取接口生成。
@property (nonatomic, copy) NSString * _Nonnull appToken;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
+ (NSArray<NSString *> * _Nullable)modelPropertyBlacklist SWIFT_WARN_UNUSED_RESULT;
@end
/// 二维码消费参数
SWIFT_CLASS("_TtC15CredibleAuthSDK14UseQrCodeParam")
@interface UseQrCodeParam : NSObject
/// 身份证号
@property (nonatomic, copy) NSString * _Nonnull id_card;
/// 人企关联关系类型代码
@property (nonatomic, copy) NSString * _Nonnull relatedType;
/// 真实姓名
@property (nonatomic, copy) NSString * _Nonnull full_name;
/// 二维码编号
@property (nonatomic, copy) NSString * _Nonnull qrcode_id;
/// 证件类型(如: 201-身份证)
@property (nonatomic, copy) NSString * _Nonnull card_type;
/// 统一社会信用代码(注:纳税人识别号)
@property (nonatomic, copy) NSString * _Nonnull creditCode;
/// 身份凭据,通过token获取接口生成。
@property (nonatomic, copy) NSString * _Nonnull appToken;
/// 国籍(详见附件国家代码表 示例156-中国)
@property (nonatomic, copy) NSString * _Nonnull nationality;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
+ (NSArray<NSString *> * _Nullable)modelPropertyBlacklist SWIFT_WARN_UNUSED_RESULT;
@end
/// 二次认证参数
SWIFT_CLASS("_TtC15CredibleAuthSDK33UseQrCodeSecondCertificationParam")
@interface UseQrCodeSecondCertificationParam : NSObject
/// 二维码编号
@property (nonatomic, copy) NSString * _Nonnull qrcode_id;
/// 身份凭据,通过token获取接口生成。
@property (nonatomic, copy) NSString * _Nonnull appToken;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
+ (NSArray<NSString *> * _Nullable)modelPropertyBlacklist SWIFT_WARN_UNUSED_RESULT;
@end
/// 实人认证申请参数
SWIFT_CLASS("_TtC15CredibleAuthSDK29VerifyWithPictureRequestParam")
@interface VerifyWithPictureRequestParam : NSObject
/// 应用令牌
@property (nonatomic, copy) NSString * _Nonnull appToken;
/// 证件号码
@property (nonatomic, copy) NSString * _Nonnull idCard;
/// 证件类型
@property (nonatomic, copy) NSString * _Nonnull idCardType;
/// 真实姓名
@property (nonatomic, copy) NSString * _Nonnull fullName;
/// 国籍
@property (nonatomic, copy) NSString * _Nonnull nationality;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
+ (NSArray<NSString *> * _Nullable)modelPropertyBlacklist SWIFT_WARN_UNUSED_RESULT;
@end
/// 企业业务人脸认证参数类
SWIFT_CLASS("_TtC15CredibleAuthSDK27VerifyWithPictureTokenParam")
@interface VerifyWithPictureTokenParam : NSObject
/// 真实姓名
@property (nonatomic, copy) NSString * _Nonnull fullName;
/// 身份证件类型(详见附件的身份证件类型代码字典。 示例201-居民身份证)
@property (nonatomic, copy) NSString * _Nonnull idCardType;
/// 国籍(详见附件国家代码表 示例156-中国)
@property (nonatomic, copy) NSString * _Nonnull nationality;
/// 身份证件号码
@property (nonatomic, copy) NSString * _Nonnull idCard;
/// 身份证有效期起(yyyyMMdd)
@property (nonatomic, copy) NSString * _Nonnull effDate;
/// 身份证号有效期止(yyyyMMdd)
@property (nonatomic, copy) NSString * _Nonnull expDate;
/// 身份凭据,通过token获取接口生成。
@property (nonatomic, copy) NSString * _Nonnull appToken;
/// 核验唯一标识(令牌)
@property (nonatomic, copy) NSString * _Nonnull verifyToken;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
+ (NSArray<NSString *> * _Nullable)modelPropertyBlacklist SWIFT_WARN_UNUSED_RESULT;
@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