@reclaimprotocol/inapp-rn-sdk 0.18.0 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/InappRnSdk.podspec +4 -27
- package/android/build.gradle +8 -59
- package/android/src/main/AndroidManifest.xml +1 -2
- package/android/src/main/java/com/reclaimprotocol/{inapp_rn_sdk → inapprnsdk}/InappRnSdkModule.kt +21 -1
- package/android/src/main/java/com/reclaimprotocol/{inapp_rn_sdk → inapprnsdk}/InappRnSdkPackage.kt +1 -1
- package/android/src/main/java/com/reclaimprotocol/{inapp_rn_sdk → inapprnsdk}/JsonExtension.kt +1 -1
- package/expo-plugin/src/index.ts +1 -1
- package/ios/InappRnSdk-Bridging-Header.h +0 -1
- package/ios/InappRnSdk.h +2 -13
- package/ios/InappRnSdk.mm +22 -3
- package/ios/inapp_rn_sdk/Api.swift +7 -0
- package/lib/module/NativeInappRnSdk.js.map +1 -0
- package/lib/module/index.js +16 -1
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/expo-plugin/src/android/index.d.ts +3 -0
- package/lib/typescript/expo-plugin/src/android/index.d.ts.map +1 -0
- package/lib/typescript/expo-plugin/src/android/withReclaimAndroidManifest.d.ts +3 -0
- package/lib/typescript/expo-plugin/src/android/withReclaimAndroidManifest.d.ts.map +1 -0
- package/lib/typescript/expo-plugin/src/android/withReclaimProjectBuildGradle.d.ts +3 -0
- package/lib/typescript/expo-plugin/src/android/withReclaimProjectBuildGradle.d.ts.map +1 -0
- package/lib/typescript/expo-plugin/src/index.d.ts +4 -0
- package/lib/typescript/expo-plugin/src/index.d.ts.map +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/{commonjs/src/specs → src}/NativeInappRnSdk.d.ts +16 -9
- package/lib/typescript/src/NativeInappRnSdk.d.ts.map +1 -0
- package/lib/typescript/{commonjs/src → src}/index.d.ts +5 -1
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/package.json +83 -129
- package/src/{specs/NativeInappRnSdk.ts → NativeInappRnSdk.ts} +17 -9
- package/src/{index.ts → index.tsx} +32 -1
- package/android/generated/java/com/reclaimprotocol/inapp_rn_sdk/NativeInappRnSdkSpec.java +0 -99
- package/android/generated/jni/CMakeLists.txt +0 -36
- package/android/generated/jni/RNInappRnSdkSpec-generated.cpp +0 -88
- package/android/generated/jni/RNInappRnSdkSpec.h +0 -31
- package/android/generated/jni/react/renderer/components/RNInappRnSdkSpec/RNInappRnSdkSpecJSI-generated.cpp +0 -85
- package/android/generated/jni/react/renderer/components/RNInappRnSdkSpec/RNInappRnSdkSpecJSI.h +0 -1348
- package/android/src/main/AndroidManifestNew.xml +0 -2
- package/ios/generated/RNInappRnSdkSpec/RNInappRnSdkSpec-generated.mm +0 -197
- package/ios/generated/RNInappRnSdkSpec/RNInappRnSdkSpec.h +0 -494
- package/ios/generated/RNInappRnSdkSpecJSI-generated.cpp +0 -85
- package/ios/generated/RNInappRnSdkSpecJSI.h +0 -1348
- package/lib/commonjs/index.js +0 -389
- package/lib/commonjs/index.js.map +0 -1
- package/lib/commonjs/specs/NativeInappRnSdk.js +0 -24
- package/lib/commonjs/specs/NativeInappRnSdk.js.map +0 -1
- package/lib/module/specs/NativeInappRnSdk.js.map +0 -1
- package/lib/typescript/commonjs/package.json +0 -1
- package/lib/typescript/commonjs/src/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/specs/NativeInappRnSdk.d.ts.map +0 -1
- package/lib/typescript/module/src/index.d.ts +0 -192
- package/lib/typescript/module/src/index.d.ts.map +0 -1
- package/lib/typescript/module/src/specs/NativeInappRnSdk.d.ts +0 -345
- package/lib/typescript/module/src/specs/NativeInappRnSdk.d.ts.map +0 -1
- package/react-native.config.js +0 -12
- /package/lib/module/{specs/NativeInappRnSdk.js → NativeInappRnSdk.js} +0 -0
- /package/lib/{typescript/module → module}/package.json +0 -0
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
3
|
-
*
|
|
4
|
-
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
5
|
-
* once the code is regenerated.
|
|
6
|
-
*
|
|
7
|
-
* @generated by codegen project: GenerateModuleObjCpp
|
|
8
|
-
*
|
|
9
|
-
* We create an umbrella header (and corresponding implementation) here since
|
|
10
|
-
* Cxx compilation in BUCK has a limitation: source-code producing genrule()s
|
|
11
|
-
* must have a single output. More files => more genrule()s => slower builds.
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
#import "RNInappRnSdkSpec.h"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
@implementation NativeInappRnSdkSpecBase
|
|
18
|
-
- (void)emitOnLogs:(NSString *_Nonnull)value
|
|
19
|
-
{
|
|
20
|
-
_eventEmitterCallback("onLogs", value);
|
|
21
|
-
}
|
|
22
|
-
- (void)emitOnSessionLogs:(NSDictionary *)value
|
|
23
|
-
{
|
|
24
|
-
_eventEmitterCallback("onSessionLogs", value);
|
|
25
|
-
}
|
|
26
|
-
- (void)emitOnSessionCreateRequest:(NSDictionary *)value
|
|
27
|
-
{
|
|
28
|
-
_eventEmitterCallback("onSessionCreateRequest", value);
|
|
29
|
-
}
|
|
30
|
-
- (void)emitOnSessionUpdateRequest:(NSDictionary *)value
|
|
31
|
-
{
|
|
32
|
-
_eventEmitterCallback("onSessionUpdateRequest", value);
|
|
33
|
-
}
|
|
34
|
-
- (void)emitOnProviderInformationRequest:(NSDictionary *)value
|
|
35
|
-
{
|
|
36
|
-
_eventEmitterCallback("onProviderInformationRequest", value);
|
|
37
|
-
}
|
|
38
|
-
- (void)emitOnReclaimAttestorAuthRequest:(NSDictionary *)value
|
|
39
|
-
{
|
|
40
|
-
_eventEmitterCallback("onReclaimAttestorAuthRequest", value);
|
|
41
|
-
}
|
|
42
|
-
- (void)emitOnSessionIdentityUpdate:(NSDictionary *)value
|
|
43
|
-
{
|
|
44
|
-
_eventEmitterCallback("onSessionIdentityUpdate", value);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
- (void)setEventEmitterCallback:(EventEmitterCallbackWrapper *)eventEmitterCallbackWrapper
|
|
48
|
-
{
|
|
49
|
-
_eventEmitterCallback = std::move(eventEmitterCallbackWrapper->_eventEmitterCallback);
|
|
50
|
-
}
|
|
51
|
-
@end
|
|
52
|
-
|
|
53
|
-
@implementation RCTCxxConvert (NativeInappRnSdk_SessionInformation)
|
|
54
|
-
+ (RCTManagedPointer *)JS_NativeInappRnSdk_SessionInformation:(id)json
|
|
55
|
-
{
|
|
56
|
-
return facebook::react::managedPointer<JS::NativeInappRnSdk::SessionInformation>(json);
|
|
57
|
-
}
|
|
58
|
-
@end
|
|
59
|
-
@implementation RCTCxxConvert (NativeInappRnSdk_ProviderVersion)
|
|
60
|
-
+ (RCTManagedPointer *)JS_NativeInappRnSdk_ProviderVersion:(id)json
|
|
61
|
-
{
|
|
62
|
-
return facebook::react::managedPointer<JS::NativeInappRnSdk::ProviderVersion>(json);
|
|
63
|
-
}
|
|
64
|
-
@end
|
|
65
|
-
@implementation RCTCxxConvert (NativeInappRnSdk_Request)
|
|
66
|
-
+ (RCTManagedPointer *)JS_NativeInappRnSdk_Request:(id)json
|
|
67
|
-
{
|
|
68
|
-
return facebook::react::managedPointer<JS::NativeInappRnSdk::Request>(json);
|
|
69
|
-
}
|
|
70
|
-
@end
|
|
71
|
-
@implementation RCTCxxConvert (NativeInappRnSdk_ProviderInformation)
|
|
72
|
-
+ (RCTManagedPointer *)JS_NativeInappRnSdk_ProviderInformation:(id)json
|
|
73
|
-
{
|
|
74
|
-
return facebook::react::managedPointer<JS::NativeInappRnSdk::ProviderInformation>(json);
|
|
75
|
-
}
|
|
76
|
-
@end
|
|
77
|
-
@implementation RCTCxxConvert (NativeInappRnSdk_FeatureOptions)
|
|
78
|
-
+ (RCTManagedPointer *)JS_NativeInappRnSdk_FeatureOptions:(id)json
|
|
79
|
-
{
|
|
80
|
-
return facebook::react::managedPointer<JS::NativeInappRnSdk::FeatureOptions>(json);
|
|
81
|
-
}
|
|
82
|
-
@end
|
|
83
|
-
@implementation RCTCxxConvert (NativeInappRnSdk_LogConsumer)
|
|
84
|
-
+ (RCTManagedPointer *)JS_NativeInappRnSdk_LogConsumer:(id)json
|
|
85
|
-
{
|
|
86
|
-
return facebook::react::managedPointer<JS::NativeInappRnSdk::LogConsumer>(json);
|
|
87
|
-
}
|
|
88
|
-
@end
|
|
89
|
-
@implementation RCTCxxConvert (NativeInappRnSdk_SessionManagement)
|
|
90
|
-
+ (RCTManagedPointer *)JS_NativeInappRnSdk_SessionManagement:(id)json
|
|
91
|
-
{
|
|
92
|
-
return facebook::react::managedPointer<JS::NativeInappRnSdk::SessionManagement>(json);
|
|
93
|
-
}
|
|
94
|
-
@end
|
|
95
|
-
@implementation RCTCxxConvert (NativeInappRnSdk_ReclaimAppInfo)
|
|
96
|
-
+ (RCTManagedPointer *)JS_NativeInappRnSdk_ReclaimAppInfo:(id)json
|
|
97
|
-
{
|
|
98
|
-
return facebook::react::managedPointer<JS::NativeInappRnSdk::ReclaimAppInfo>(json);
|
|
99
|
-
}
|
|
100
|
-
@end
|
|
101
|
-
@implementation RCTCxxConvert (NativeInappRnSdk_Overrides)
|
|
102
|
-
+ (RCTManagedPointer *)JS_NativeInappRnSdk_Overrides:(id)json
|
|
103
|
-
{
|
|
104
|
-
return facebook::react::managedPointer<JS::NativeInappRnSdk::Overrides>(json);
|
|
105
|
-
}
|
|
106
|
-
@end
|
|
107
|
-
@implementation RCTCxxConvert (NativeInappRnSdk_VerificationOptions)
|
|
108
|
-
+ (RCTManagedPointer *)JS_NativeInappRnSdk_VerificationOptions:(id)json
|
|
109
|
-
{
|
|
110
|
-
return facebook::react::managedPointer<JS::NativeInappRnSdk::VerificationOptions>(json);
|
|
111
|
-
}
|
|
112
|
-
@end
|
|
113
|
-
@implementation RCTCxxConvert (NativeInappRnSdk_VerificationOptionsOptional)
|
|
114
|
-
+ (RCTManagedPointer *)JS_NativeInappRnSdk_VerificationOptionsOptional:(id)json
|
|
115
|
-
{
|
|
116
|
-
return facebook::react::managedPointer<JS::NativeInappRnSdk::VerificationOptionsOptional>(json);
|
|
117
|
-
}
|
|
118
|
-
@end
|
|
119
|
-
namespace facebook::react {
|
|
120
|
-
|
|
121
|
-
static facebook::jsi::Value __hostFunction_NativeInappRnSdkSpecJSI_startVerification(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
122
|
-
return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "startVerification", @selector(startVerification:resolve:reject:), args, count);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
static facebook::jsi::Value __hostFunction_NativeInappRnSdkSpecJSI_startVerificationFromUrl(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
126
|
-
return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "startVerificationFromUrl", @selector(startVerificationFromUrl:resolve:reject:), args, count);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
static facebook::jsi::Value __hostFunction_NativeInappRnSdkSpecJSI_startVerificationFromJson(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
130
|
-
return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "startVerificationFromJson", @selector(startVerificationFromJson:resolve:reject:), args, count);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
static facebook::jsi::Value __hostFunction_NativeInappRnSdkSpecJSI_setOverrides(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
134
|
-
return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "setOverrides", @selector(setOverrides:resolve:reject:), args, count);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
static facebook::jsi::Value __hostFunction_NativeInappRnSdkSpecJSI_clearAllOverrides(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
138
|
-
return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "clearAllOverrides", @selector(clearAllOverrides:reject:), args, count);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
static facebook::jsi::Value __hostFunction_NativeInappRnSdkSpecJSI_setVerificationOptions(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
142
|
-
return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "setVerificationOptions", @selector(setVerificationOptions:resolve:reject:), args, count);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
static facebook::jsi::Value __hostFunction_NativeInappRnSdkSpecJSI_reply(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
146
|
-
return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, VoidKind, "reply", @selector(reply:reply:), args, count);
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
static facebook::jsi::Value __hostFunction_NativeInappRnSdkSpecJSI_replyWithString(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
150
|
-
return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, VoidKind, "replyWithString", @selector(replyWithString:value:), args, count);
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
static facebook::jsi::Value __hostFunction_NativeInappRnSdkSpecJSI_ping(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
154
|
-
return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "ping", @selector(ping:reject:), args, count);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
NativeInappRnSdkSpecJSI::NativeInappRnSdkSpecJSI(const ObjCTurboModule::InitParams ¶ms)
|
|
158
|
-
: ObjCTurboModule(params) {
|
|
159
|
-
|
|
160
|
-
methodMap_["startVerification"] = MethodMetadata {1, __hostFunction_NativeInappRnSdkSpecJSI_startVerification};
|
|
161
|
-
setMethodArgConversionSelector(@"startVerification", 0, @"JS_NativeInappRnSdk_Request:");
|
|
162
|
-
|
|
163
|
-
methodMap_["startVerificationFromUrl"] = MethodMetadata {1, __hostFunction_NativeInappRnSdkSpecJSI_startVerificationFromUrl};
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
methodMap_["startVerificationFromJson"] = MethodMetadata {1, __hostFunction_NativeInappRnSdkSpecJSI_startVerificationFromJson};
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
methodMap_["setOverrides"] = MethodMetadata {1, __hostFunction_NativeInappRnSdkSpecJSI_setOverrides};
|
|
170
|
-
setMethodArgConversionSelector(@"setOverrides", 0, @"JS_NativeInappRnSdk_Overrides:");
|
|
171
|
-
|
|
172
|
-
methodMap_["clearAllOverrides"] = MethodMetadata {0, __hostFunction_NativeInappRnSdkSpecJSI_clearAllOverrides};
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
methodMap_["setVerificationOptions"] = MethodMetadata {1, __hostFunction_NativeInappRnSdkSpecJSI_setVerificationOptions};
|
|
176
|
-
setMethodArgConversionSelector(@"setVerificationOptions", 0, @"JS_NativeInappRnSdk_VerificationOptionsOptional:");
|
|
177
|
-
|
|
178
|
-
methodMap_["reply"] = MethodMetadata {2, __hostFunction_NativeInappRnSdkSpecJSI_reply};
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
methodMap_["replyWithString"] = MethodMetadata {2, __hostFunction_NativeInappRnSdkSpecJSI_replyWithString};
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
methodMap_["ping"] = MethodMetadata {0, __hostFunction_NativeInappRnSdkSpecJSI_ping};
|
|
185
|
-
|
|
186
|
-
eventEmitterMap_["onLogs"] = std::make_shared<AsyncEventEmitter<id>>();
|
|
187
|
-
eventEmitterMap_["onSessionLogs"] = std::make_shared<AsyncEventEmitter<id>>();
|
|
188
|
-
eventEmitterMap_["onSessionCreateRequest"] = std::make_shared<AsyncEventEmitter<id>>();
|
|
189
|
-
eventEmitterMap_["onSessionUpdateRequest"] = std::make_shared<AsyncEventEmitter<id>>();
|
|
190
|
-
eventEmitterMap_["onProviderInformationRequest"] = std::make_shared<AsyncEventEmitter<id>>();
|
|
191
|
-
eventEmitterMap_["onReclaimAttestorAuthRequest"] = std::make_shared<AsyncEventEmitter<id>>();
|
|
192
|
-
eventEmitterMap_["onSessionIdentityUpdate"] = std::make_shared<AsyncEventEmitter<id>>();
|
|
193
|
-
setEventEmitterCallback([&](const std::string &name, id value) {
|
|
194
|
-
static_cast<AsyncEventEmitter<id> &>(*eventEmitterMap_[name]).emit(value);
|
|
195
|
-
});
|
|
196
|
-
}
|
|
197
|
-
} // namespace facebook::react
|
|
@@ -1,494 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
3
|
-
*
|
|
4
|
-
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
5
|
-
* once the code is regenerated.
|
|
6
|
-
*
|
|
7
|
-
* @generated by codegen project: GenerateModuleObjCpp
|
|
8
|
-
*
|
|
9
|
-
* We create an umbrella header (and corresponding implementation) here since
|
|
10
|
-
* Cxx compilation in BUCK has a limitation: source-code producing genrule()s
|
|
11
|
-
* must have a single output. More files => more genrule()s => slower builds.
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
#ifndef __cplusplus
|
|
15
|
-
#error This file must be compiled as Obj-C++. If you are importing it, you must change your file extension to .mm.
|
|
16
|
-
#endif
|
|
17
|
-
|
|
18
|
-
// Avoid multiple includes of RNInappRnSdkSpec symbols
|
|
19
|
-
#ifndef RNInappRnSdkSpec_H
|
|
20
|
-
#define RNInappRnSdkSpec_H
|
|
21
|
-
|
|
22
|
-
#import <Foundation/Foundation.h>
|
|
23
|
-
#import <RCTRequired/RCTRequired.h>
|
|
24
|
-
#import <RCTTypeSafety/RCTConvertHelpers.h>
|
|
25
|
-
#import <RCTTypeSafety/RCTTypedModuleConstants.h>
|
|
26
|
-
#import <React/RCTBridgeModule.h>
|
|
27
|
-
#import <React/RCTCxxConvert.h>
|
|
28
|
-
#import <React/RCTManagedPointer.h>
|
|
29
|
-
#import <ReactCommon/RCTTurboModule.h>
|
|
30
|
-
#import <optional>
|
|
31
|
-
#import <vector>
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
NS_ASSUME_NONNULL_BEGIN
|
|
35
|
-
namespace JS {
|
|
36
|
-
namespace NativeInappRnSdk {
|
|
37
|
-
struct SessionInformation {
|
|
38
|
-
NSString *timestamp() const;
|
|
39
|
-
NSString *sessionId() const;
|
|
40
|
-
NSString *signature() const;
|
|
41
|
-
|
|
42
|
-
SessionInformation(NSDictionary *const v) : _v(v) {}
|
|
43
|
-
private:
|
|
44
|
-
NSDictionary *_v;
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
@interface RCTCxxConvert (NativeInappRnSdk_SessionInformation)
|
|
50
|
-
+ (RCTManagedPointer *)JS_NativeInappRnSdk_SessionInformation:(id)json;
|
|
51
|
-
@end
|
|
52
|
-
namespace JS {
|
|
53
|
-
namespace NativeInappRnSdk {
|
|
54
|
-
struct ProviderVersion {
|
|
55
|
-
NSString *resolvedVersion() const;
|
|
56
|
-
NSString *versionExpression() const;
|
|
57
|
-
|
|
58
|
-
ProviderVersion(NSDictionary *const v) : _v(v) {}
|
|
59
|
-
private:
|
|
60
|
-
NSDictionary *_v;
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
@interface RCTCxxConvert (NativeInappRnSdk_ProviderVersion)
|
|
66
|
-
+ (RCTManagedPointer *)JS_NativeInappRnSdk_ProviderVersion:(id)json;
|
|
67
|
-
@end
|
|
68
|
-
namespace JS {
|
|
69
|
-
namespace NativeInappRnSdk {
|
|
70
|
-
struct Request {
|
|
71
|
-
NSString *appId() const;
|
|
72
|
-
NSString *secret() const;
|
|
73
|
-
NSString *providerId() const;
|
|
74
|
-
std::optional<JS::NativeInappRnSdk::SessionInformation> session() const;
|
|
75
|
-
NSString *contextString() const;
|
|
76
|
-
id<NSObject> _Nullable parameters() const;
|
|
77
|
-
std::optional<JS::NativeInappRnSdk::ProviderVersion> providerVersion() const;
|
|
78
|
-
|
|
79
|
-
Request(NSDictionary *const v) : _v(v) {}
|
|
80
|
-
private:
|
|
81
|
-
NSDictionary *_v;
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
@interface RCTCxxConvert (NativeInappRnSdk_Request)
|
|
87
|
-
+ (RCTManagedPointer *)JS_NativeInappRnSdk_Request:(id)json;
|
|
88
|
-
@end
|
|
89
|
-
namespace JS {
|
|
90
|
-
namespace NativeInappRnSdk {
|
|
91
|
-
struct ProviderInformation {
|
|
92
|
-
NSString *url() const;
|
|
93
|
-
NSString *jsonString() const;
|
|
94
|
-
bool canFetchProviderInformationFromHost() const;
|
|
95
|
-
|
|
96
|
-
ProviderInformation(NSDictionary *const v) : _v(v) {}
|
|
97
|
-
private:
|
|
98
|
-
NSDictionary *_v;
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
@interface RCTCxxConvert (NativeInappRnSdk_ProviderInformation)
|
|
104
|
-
+ (RCTManagedPointer *)JS_NativeInappRnSdk_ProviderInformation:(id)json;
|
|
105
|
-
@end
|
|
106
|
-
namespace JS {
|
|
107
|
-
namespace NativeInappRnSdk {
|
|
108
|
-
struct FeatureOptions {
|
|
109
|
-
std::optional<bool> cookiePersist() const;
|
|
110
|
-
std::optional<bool> singleReclaimRequest() const;
|
|
111
|
-
std::optional<double> idleTimeThresholdForManualVerificationTrigger() const;
|
|
112
|
-
std::optional<double> sessionTimeoutForManualVerificationTrigger() const;
|
|
113
|
-
NSString *attestorBrowserRpcUrl() const;
|
|
114
|
-
std::optional<bool> isAIFlowEnabled() const;
|
|
115
|
-
NSString *manualReviewMessage() const;
|
|
116
|
-
NSString *loginPromptMessage() const;
|
|
117
|
-
|
|
118
|
-
FeatureOptions(NSDictionary *const v) : _v(v) {}
|
|
119
|
-
private:
|
|
120
|
-
NSDictionary *_v;
|
|
121
|
-
};
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
@interface RCTCxxConvert (NativeInappRnSdk_FeatureOptions)
|
|
126
|
-
+ (RCTManagedPointer *)JS_NativeInappRnSdk_FeatureOptions:(id)json;
|
|
127
|
-
@end
|
|
128
|
-
namespace JS {
|
|
129
|
-
namespace NativeInappRnSdk {
|
|
130
|
-
struct LogConsumer {
|
|
131
|
-
bool enableLogHandler() const;
|
|
132
|
-
std::optional<bool> canSdkCollectTelemetry() const;
|
|
133
|
-
std::optional<bool> canSdkPrintLogs() const;
|
|
134
|
-
|
|
135
|
-
LogConsumer(NSDictionary *const v) : _v(v) {}
|
|
136
|
-
private:
|
|
137
|
-
NSDictionary *_v;
|
|
138
|
-
};
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
@interface RCTCxxConvert (NativeInappRnSdk_LogConsumer)
|
|
143
|
-
+ (RCTManagedPointer *)JS_NativeInappRnSdk_LogConsumer:(id)json;
|
|
144
|
-
@end
|
|
145
|
-
namespace JS {
|
|
146
|
-
namespace NativeInappRnSdk {
|
|
147
|
-
struct SessionManagement {
|
|
148
|
-
std::optional<bool> enableSdkSessionManagement() const;
|
|
149
|
-
|
|
150
|
-
SessionManagement(NSDictionary *const v) : _v(v) {}
|
|
151
|
-
private:
|
|
152
|
-
NSDictionary *_v;
|
|
153
|
-
};
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
@interface RCTCxxConvert (NativeInappRnSdk_SessionManagement)
|
|
158
|
-
+ (RCTManagedPointer *)JS_NativeInappRnSdk_SessionManagement:(id)json;
|
|
159
|
-
@end
|
|
160
|
-
namespace JS {
|
|
161
|
-
namespace NativeInappRnSdk {
|
|
162
|
-
struct ReclaimAppInfo {
|
|
163
|
-
NSString *appName() const;
|
|
164
|
-
NSString *appImageUrl() const;
|
|
165
|
-
std::optional<bool> isRecurring() const;
|
|
166
|
-
|
|
167
|
-
ReclaimAppInfo(NSDictionary *const v) : _v(v) {}
|
|
168
|
-
private:
|
|
169
|
-
NSDictionary *_v;
|
|
170
|
-
};
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
@interface RCTCxxConvert (NativeInappRnSdk_ReclaimAppInfo)
|
|
175
|
-
+ (RCTManagedPointer *)JS_NativeInappRnSdk_ReclaimAppInfo:(id)json;
|
|
176
|
-
@end
|
|
177
|
-
namespace JS {
|
|
178
|
-
namespace NativeInappRnSdk {
|
|
179
|
-
struct Overrides {
|
|
180
|
-
std::optional<JS::NativeInappRnSdk::ProviderInformation> provider() const;
|
|
181
|
-
std::optional<JS::NativeInappRnSdk::FeatureOptions> featureOptions() const;
|
|
182
|
-
std::optional<JS::NativeInappRnSdk::LogConsumer> logConsumer() const;
|
|
183
|
-
std::optional<JS::NativeInappRnSdk::SessionManagement> sessionManagement() const;
|
|
184
|
-
std::optional<JS::NativeInappRnSdk::ReclaimAppInfo> appInfo() const;
|
|
185
|
-
NSString *capabilityAccessToken() const;
|
|
186
|
-
|
|
187
|
-
Overrides(NSDictionary *const v) : _v(v) {}
|
|
188
|
-
private:
|
|
189
|
-
NSDictionary *_v;
|
|
190
|
-
};
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
@interface RCTCxxConvert (NativeInappRnSdk_Overrides)
|
|
195
|
-
+ (RCTManagedPointer *)JS_NativeInappRnSdk_Overrides:(id)json;
|
|
196
|
-
@end
|
|
197
|
-
namespace JS {
|
|
198
|
-
namespace NativeInappRnSdk {
|
|
199
|
-
struct VerificationOptions {
|
|
200
|
-
bool canDeleteCookiesBeforeVerificationStarts() const;
|
|
201
|
-
bool canUseAttestorAuthenticationRequest() const;
|
|
202
|
-
NSString *claimCreationType() const;
|
|
203
|
-
bool canAutoSubmit() const;
|
|
204
|
-
bool isCloseButtonVisible() const;
|
|
205
|
-
|
|
206
|
-
VerificationOptions(NSDictionary *const v) : _v(v) {}
|
|
207
|
-
private:
|
|
208
|
-
NSDictionary *_v;
|
|
209
|
-
};
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
@interface RCTCxxConvert (NativeInappRnSdk_VerificationOptions)
|
|
214
|
-
+ (RCTManagedPointer *)JS_NativeInappRnSdk_VerificationOptions:(id)json;
|
|
215
|
-
@end
|
|
216
|
-
namespace JS {
|
|
217
|
-
namespace NativeInappRnSdk {
|
|
218
|
-
struct VerificationOptionsOptional {
|
|
219
|
-
std::optional<JS::NativeInappRnSdk::VerificationOptions> options() const;
|
|
220
|
-
|
|
221
|
-
VerificationOptionsOptional(NSDictionary *const v) : _v(v) {}
|
|
222
|
-
private:
|
|
223
|
-
NSDictionary *_v;
|
|
224
|
-
};
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
@interface RCTCxxConvert (NativeInappRnSdk_VerificationOptionsOptional)
|
|
229
|
-
+ (RCTManagedPointer *)JS_NativeInappRnSdk_VerificationOptionsOptional:(id)json;
|
|
230
|
-
@end
|
|
231
|
-
@protocol NativeInappRnSdkSpec <RCTBridgeModule, RCTTurboModule>
|
|
232
|
-
|
|
233
|
-
- (void)startVerification:(JS::NativeInappRnSdk::Request &)request
|
|
234
|
-
resolve:(RCTPromiseResolveBlock)resolve
|
|
235
|
-
reject:(RCTPromiseRejectBlock)reject;
|
|
236
|
-
- (void)startVerificationFromUrl:(NSString *)requestUrl
|
|
237
|
-
resolve:(RCTPromiseResolveBlock)resolve
|
|
238
|
-
reject:(RCTPromiseRejectBlock)reject;
|
|
239
|
-
- (void)startVerificationFromJson:(NSString *)templateJsonString
|
|
240
|
-
resolve:(RCTPromiseResolveBlock)resolve
|
|
241
|
-
reject:(RCTPromiseRejectBlock)reject;
|
|
242
|
-
- (void)setOverrides:(JS::NativeInappRnSdk::Overrides &)overrides
|
|
243
|
-
resolve:(RCTPromiseResolveBlock)resolve
|
|
244
|
-
reject:(RCTPromiseRejectBlock)reject;
|
|
245
|
-
- (void)clearAllOverrides:(RCTPromiseResolveBlock)resolve
|
|
246
|
-
reject:(RCTPromiseRejectBlock)reject;
|
|
247
|
-
- (void)setVerificationOptions:(JS::NativeInappRnSdk::VerificationOptionsOptional &)args
|
|
248
|
-
resolve:(RCTPromiseResolveBlock)resolve
|
|
249
|
-
reject:(RCTPromiseRejectBlock)reject;
|
|
250
|
-
- (void)reply:(NSString *)replyId
|
|
251
|
-
reply:(BOOL)reply;
|
|
252
|
-
- (void)replyWithString:(NSString *)replyId
|
|
253
|
-
value:(NSString *)value;
|
|
254
|
-
- (void)ping:(RCTPromiseResolveBlock)resolve
|
|
255
|
-
reject:(RCTPromiseRejectBlock)reject;
|
|
256
|
-
|
|
257
|
-
@end
|
|
258
|
-
|
|
259
|
-
@interface NativeInappRnSdkSpecBase : NSObject {
|
|
260
|
-
@protected
|
|
261
|
-
facebook::react::EventEmitterCallback _eventEmitterCallback;
|
|
262
|
-
}
|
|
263
|
-
- (void)setEventEmitterCallback:(EventEmitterCallbackWrapper *)eventEmitterCallbackWrapper;
|
|
264
|
-
|
|
265
|
-
- (void)emitOnLogs:(NSString *_Nonnull)value;
|
|
266
|
-
- (void)emitOnSessionLogs:(NSDictionary *)value;
|
|
267
|
-
- (void)emitOnSessionCreateRequest:(NSDictionary *)value;
|
|
268
|
-
- (void)emitOnSessionUpdateRequest:(NSDictionary *)value;
|
|
269
|
-
- (void)emitOnProviderInformationRequest:(NSDictionary *)value;
|
|
270
|
-
- (void)emitOnReclaimAttestorAuthRequest:(NSDictionary *)value;
|
|
271
|
-
- (void)emitOnSessionIdentityUpdate:(NSDictionary *)value;
|
|
272
|
-
@end
|
|
273
|
-
|
|
274
|
-
namespace facebook::react {
|
|
275
|
-
/**
|
|
276
|
-
* ObjC++ class for module 'NativeInappRnSdk'
|
|
277
|
-
*/
|
|
278
|
-
class JSI_EXPORT NativeInappRnSdkSpecJSI : public ObjCTurboModule {
|
|
279
|
-
public:
|
|
280
|
-
NativeInappRnSdkSpecJSI(const ObjCTurboModule::InitParams ¶ms);
|
|
281
|
-
};
|
|
282
|
-
} // namespace facebook::react
|
|
283
|
-
inline NSString *JS::NativeInappRnSdk::SessionInformation::timestamp() const
|
|
284
|
-
{
|
|
285
|
-
id const p = _v[@"timestamp"];
|
|
286
|
-
return RCTBridgingToString(p);
|
|
287
|
-
}
|
|
288
|
-
inline NSString *JS::NativeInappRnSdk::SessionInformation::sessionId() const
|
|
289
|
-
{
|
|
290
|
-
id const p = _v[@"sessionId"];
|
|
291
|
-
return RCTBridgingToString(p);
|
|
292
|
-
}
|
|
293
|
-
inline NSString *JS::NativeInappRnSdk::SessionInformation::signature() const
|
|
294
|
-
{
|
|
295
|
-
id const p = _v[@"signature"];
|
|
296
|
-
return RCTBridgingToString(p);
|
|
297
|
-
}
|
|
298
|
-
inline NSString *JS::NativeInappRnSdk::ProviderVersion::resolvedVersion() const
|
|
299
|
-
{
|
|
300
|
-
id const p = _v[@"resolvedVersion"];
|
|
301
|
-
return RCTBridgingToString(p);
|
|
302
|
-
}
|
|
303
|
-
inline NSString *JS::NativeInappRnSdk::ProviderVersion::versionExpression() const
|
|
304
|
-
{
|
|
305
|
-
id const p = _v[@"versionExpression"];
|
|
306
|
-
return RCTBridgingToString(p);
|
|
307
|
-
}
|
|
308
|
-
inline NSString *JS::NativeInappRnSdk::Request::appId() const
|
|
309
|
-
{
|
|
310
|
-
id const p = _v[@"appId"];
|
|
311
|
-
return RCTBridgingToString(p);
|
|
312
|
-
}
|
|
313
|
-
inline NSString *JS::NativeInappRnSdk::Request::secret() const
|
|
314
|
-
{
|
|
315
|
-
id const p = _v[@"secret"];
|
|
316
|
-
return RCTBridgingToString(p);
|
|
317
|
-
}
|
|
318
|
-
inline NSString *JS::NativeInappRnSdk::Request::providerId() const
|
|
319
|
-
{
|
|
320
|
-
id const p = _v[@"providerId"];
|
|
321
|
-
return RCTBridgingToString(p);
|
|
322
|
-
}
|
|
323
|
-
inline std::optional<JS::NativeInappRnSdk::SessionInformation> JS::NativeInappRnSdk::Request::session() const
|
|
324
|
-
{
|
|
325
|
-
id const p = _v[@"session"];
|
|
326
|
-
return (p == nil ? std::nullopt : std::make_optional(JS::NativeInappRnSdk::SessionInformation(p)));
|
|
327
|
-
}
|
|
328
|
-
inline NSString *JS::NativeInappRnSdk::Request::contextString() const
|
|
329
|
-
{
|
|
330
|
-
id const p = _v[@"contextString"];
|
|
331
|
-
return RCTBridgingToOptionalString(p);
|
|
332
|
-
}
|
|
333
|
-
inline id<NSObject> _Nullable JS::NativeInappRnSdk::Request::parameters() const
|
|
334
|
-
{
|
|
335
|
-
id const p = _v[@"parameters"];
|
|
336
|
-
return p;
|
|
337
|
-
}
|
|
338
|
-
inline std::optional<JS::NativeInappRnSdk::ProviderVersion> JS::NativeInappRnSdk::Request::providerVersion() const
|
|
339
|
-
{
|
|
340
|
-
id const p = _v[@"providerVersion"];
|
|
341
|
-
return (p == nil ? std::nullopt : std::make_optional(JS::NativeInappRnSdk::ProviderVersion(p)));
|
|
342
|
-
}
|
|
343
|
-
inline NSString *JS::NativeInappRnSdk::ProviderInformation::url() const
|
|
344
|
-
{
|
|
345
|
-
id const p = _v[@"url"];
|
|
346
|
-
return RCTBridgingToOptionalString(p);
|
|
347
|
-
}
|
|
348
|
-
inline NSString *JS::NativeInappRnSdk::ProviderInformation::jsonString() const
|
|
349
|
-
{
|
|
350
|
-
id const p = _v[@"jsonString"];
|
|
351
|
-
return RCTBridgingToOptionalString(p);
|
|
352
|
-
}
|
|
353
|
-
inline bool JS::NativeInappRnSdk::ProviderInformation::canFetchProviderInformationFromHost() const
|
|
354
|
-
{
|
|
355
|
-
id const p = _v[@"canFetchProviderInformationFromHost"];
|
|
356
|
-
return RCTBridgingToBool(p);
|
|
357
|
-
}
|
|
358
|
-
inline std::optional<bool> JS::NativeInappRnSdk::FeatureOptions::cookiePersist() const
|
|
359
|
-
{
|
|
360
|
-
id const p = _v[@"cookiePersist"];
|
|
361
|
-
return RCTBridgingToOptionalBool(p);
|
|
362
|
-
}
|
|
363
|
-
inline std::optional<bool> JS::NativeInappRnSdk::FeatureOptions::singleReclaimRequest() const
|
|
364
|
-
{
|
|
365
|
-
id const p = _v[@"singleReclaimRequest"];
|
|
366
|
-
return RCTBridgingToOptionalBool(p);
|
|
367
|
-
}
|
|
368
|
-
inline std::optional<double> JS::NativeInappRnSdk::FeatureOptions::idleTimeThresholdForManualVerificationTrigger() const
|
|
369
|
-
{
|
|
370
|
-
id const p = _v[@"idleTimeThresholdForManualVerificationTrigger"];
|
|
371
|
-
return RCTBridgingToOptionalDouble(p);
|
|
372
|
-
}
|
|
373
|
-
inline std::optional<double> JS::NativeInappRnSdk::FeatureOptions::sessionTimeoutForManualVerificationTrigger() const
|
|
374
|
-
{
|
|
375
|
-
id const p = _v[@"sessionTimeoutForManualVerificationTrigger"];
|
|
376
|
-
return RCTBridgingToOptionalDouble(p);
|
|
377
|
-
}
|
|
378
|
-
inline NSString *JS::NativeInappRnSdk::FeatureOptions::attestorBrowserRpcUrl() const
|
|
379
|
-
{
|
|
380
|
-
id const p = _v[@"attestorBrowserRpcUrl"];
|
|
381
|
-
return RCTBridgingToOptionalString(p);
|
|
382
|
-
}
|
|
383
|
-
inline std::optional<bool> JS::NativeInappRnSdk::FeatureOptions::isAIFlowEnabled() const
|
|
384
|
-
{
|
|
385
|
-
id const p = _v[@"isAIFlowEnabled"];
|
|
386
|
-
return RCTBridgingToOptionalBool(p);
|
|
387
|
-
}
|
|
388
|
-
inline NSString *JS::NativeInappRnSdk::FeatureOptions::manualReviewMessage() const
|
|
389
|
-
{
|
|
390
|
-
id const p = _v[@"manualReviewMessage"];
|
|
391
|
-
return RCTBridgingToOptionalString(p);
|
|
392
|
-
}
|
|
393
|
-
inline NSString *JS::NativeInappRnSdk::FeatureOptions::loginPromptMessage() const
|
|
394
|
-
{
|
|
395
|
-
id const p = _v[@"loginPromptMessage"];
|
|
396
|
-
return RCTBridgingToOptionalString(p);
|
|
397
|
-
}
|
|
398
|
-
inline bool JS::NativeInappRnSdk::LogConsumer::enableLogHandler() const
|
|
399
|
-
{
|
|
400
|
-
id const p = _v[@"enableLogHandler"];
|
|
401
|
-
return RCTBridgingToBool(p);
|
|
402
|
-
}
|
|
403
|
-
inline std::optional<bool> JS::NativeInappRnSdk::LogConsumer::canSdkCollectTelemetry() const
|
|
404
|
-
{
|
|
405
|
-
id const p = _v[@"canSdkCollectTelemetry"];
|
|
406
|
-
return RCTBridgingToOptionalBool(p);
|
|
407
|
-
}
|
|
408
|
-
inline std::optional<bool> JS::NativeInappRnSdk::LogConsumer::canSdkPrintLogs() const
|
|
409
|
-
{
|
|
410
|
-
id const p = _v[@"canSdkPrintLogs"];
|
|
411
|
-
return RCTBridgingToOptionalBool(p);
|
|
412
|
-
}
|
|
413
|
-
inline std::optional<bool> JS::NativeInappRnSdk::SessionManagement::enableSdkSessionManagement() const
|
|
414
|
-
{
|
|
415
|
-
id const p = _v[@"enableSdkSessionManagement"];
|
|
416
|
-
return RCTBridgingToOptionalBool(p);
|
|
417
|
-
}
|
|
418
|
-
inline NSString *JS::NativeInappRnSdk::ReclaimAppInfo::appName() const
|
|
419
|
-
{
|
|
420
|
-
id const p = _v[@"appName"];
|
|
421
|
-
return RCTBridgingToString(p);
|
|
422
|
-
}
|
|
423
|
-
inline NSString *JS::NativeInappRnSdk::ReclaimAppInfo::appImageUrl() const
|
|
424
|
-
{
|
|
425
|
-
id const p = _v[@"appImageUrl"];
|
|
426
|
-
return RCTBridgingToString(p);
|
|
427
|
-
}
|
|
428
|
-
inline std::optional<bool> JS::NativeInappRnSdk::ReclaimAppInfo::isRecurring() const
|
|
429
|
-
{
|
|
430
|
-
id const p = _v[@"isRecurring"];
|
|
431
|
-
return RCTBridgingToOptionalBool(p);
|
|
432
|
-
}
|
|
433
|
-
inline std::optional<JS::NativeInappRnSdk::ProviderInformation> JS::NativeInappRnSdk::Overrides::provider() const
|
|
434
|
-
{
|
|
435
|
-
id const p = _v[@"provider"];
|
|
436
|
-
return (p == nil ? std::nullopt : std::make_optional(JS::NativeInappRnSdk::ProviderInformation(p)));
|
|
437
|
-
}
|
|
438
|
-
inline std::optional<JS::NativeInappRnSdk::FeatureOptions> JS::NativeInappRnSdk::Overrides::featureOptions() const
|
|
439
|
-
{
|
|
440
|
-
id const p = _v[@"featureOptions"];
|
|
441
|
-
return (p == nil ? std::nullopt : std::make_optional(JS::NativeInappRnSdk::FeatureOptions(p)));
|
|
442
|
-
}
|
|
443
|
-
inline std::optional<JS::NativeInappRnSdk::LogConsumer> JS::NativeInappRnSdk::Overrides::logConsumer() const
|
|
444
|
-
{
|
|
445
|
-
id const p = _v[@"logConsumer"];
|
|
446
|
-
return (p == nil ? std::nullopt : std::make_optional(JS::NativeInappRnSdk::LogConsumer(p)));
|
|
447
|
-
}
|
|
448
|
-
inline std::optional<JS::NativeInappRnSdk::SessionManagement> JS::NativeInappRnSdk::Overrides::sessionManagement() const
|
|
449
|
-
{
|
|
450
|
-
id const p = _v[@"sessionManagement"];
|
|
451
|
-
return (p == nil ? std::nullopt : std::make_optional(JS::NativeInappRnSdk::SessionManagement(p)));
|
|
452
|
-
}
|
|
453
|
-
inline std::optional<JS::NativeInappRnSdk::ReclaimAppInfo> JS::NativeInappRnSdk::Overrides::appInfo() const
|
|
454
|
-
{
|
|
455
|
-
id const p = _v[@"appInfo"];
|
|
456
|
-
return (p == nil ? std::nullopt : std::make_optional(JS::NativeInappRnSdk::ReclaimAppInfo(p)));
|
|
457
|
-
}
|
|
458
|
-
inline NSString *JS::NativeInappRnSdk::Overrides::capabilityAccessToken() const
|
|
459
|
-
{
|
|
460
|
-
id const p = _v[@"capabilityAccessToken"];
|
|
461
|
-
return RCTBridgingToOptionalString(p);
|
|
462
|
-
}
|
|
463
|
-
inline bool JS::NativeInappRnSdk::VerificationOptions::canDeleteCookiesBeforeVerificationStarts() const
|
|
464
|
-
{
|
|
465
|
-
id const p = _v[@"canDeleteCookiesBeforeVerificationStarts"];
|
|
466
|
-
return RCTBridgingToBool(p);
|
|
467
|
-
}
|
|
468
|
-
inline bool JS::NativeInappRnSdk::VerificationOptions::canUseAttestorAuthenticationRequest() const
|
|
469
|
-
{
|
|
470
|
-
id const p = _v[@"canUseAttestorAuthenticationRequest"];
|
|
471
|
-
return RCTBridgingToBool(p);
|
|
472
|
-
}
|
|
473
|
-
inline NSString *JS::NativeInappRnSdk::VerificationOptions::claimCreationType() const
|
|
474
|
-
{
|
|
475
|
-
id const p = _v[@"claimCreationType"];
|
|
476
|
-
return RCTBridgingToString(p);
|
|
477
|
-
}
|
|
478
|
-
inline bool JS::NativeInappRnSdk::VerificationOptions::canAutoSubmit() const
|
|
479
|
-
{
|
|
480
|
-
id const p = _v[@"canAutoSubmit"];
|
|
481
|
-
return RCTBridgingToBool(p);
|
|
482
|
-
}
|
|
483
|
-
inline bool JS::NativeInappRnSdk::VerificationOptions::isCloseButtonVisible() const
|
|
484
|
-
{
|
|
485
|
-
id const p = _v[@"isCloseButtonVisible"];
|
|
486
|
-
return RCTBridgingToBool(p);
|
|
487
|
-
}
|
|
488
|
-
inline std::optional<JS::NativeInappRnSdk::VerificationOptions> JS::NativeInappRnSdk::VerificationOptionsOptional::options() const
|
|
489
|
-
{
|
|
490
|
-
id const p = _v[@"options"];
|
|
491
|
-
return (p == nil ? std::nullopt : std::make_optional(JS::NativeInappRnSdk::VerificationOptions(p)));
|
|
492
|
-
}
|
|
493
|
-
NS_ASSUME_NONNULL_END
|
|
494
|
-
#endif // RNInappRnSdkSpec_H
|