@reclaimprotocol/inapp-rn-sdk 0.17.1 → 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/expo-plugin/build/android/install_reclaim_android_manifest.d.ts +0 -2
- package/expo-plugin/build/android/install_reclaim_android_manifest.js +0 -38
- package/expo-plugin/build/android/install_reclaim_project_build_gradle.d.ts +0 -2
- package/expo-plugin/build/android/install_reclaim_project_build_gradle.js +0 -54
- 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,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
|
|
@@ -1,85 +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: GenerateModuleCpp.js
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
#include "RNInappRnSdkSpecJSI.h"
|
|
11
|
-
|
|
12
|
-
namespace facebook::react {
|
|
13
|
-
|
|
14
|
-
static jsi::Value __hostFunction_NativeInappRnSdkCxxSpecJSI_startVerification(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
15
|
-
return static_cast<NativeInappRnSdkCxxSpecJSI *>(&turboModule)->startVerification(
|
|
16
|
-
rt,
|
|
17
|
-
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt)
|
|
18
|
-
);
|
|
19
|
-
}
|
|
20
|
-
static jsi::Value __hostFunction_NativeInappRnSdkCxxSpecJSI_startVerificationFromUrl(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
21
|
-
return static_cast<NativeInappRnSdkCxxSpecJSI *>(&turboModule)->startVerificationFromUrl(
|
|
22
|
-
rt,
|
|
23
|
-
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
|
|
24
|
-
);
|
|
25
|
-
}
|
|
26
|
-
static jsi::Value __hostFunction_NativeInappRnSdkCxxSpecJSI_startVerificationFromJson(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
27
|
-
return static_cast<NativeInappRnSdkCxxSpecJSI *>(&turboModule)->startVerificationFromJson(
|
|
28
|
-
rt,
|
|
29
|
-
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
|
|
30
|
-
);
|
|
31
|
-
}
|
|
32
|
-
static jsi::Value __hostFunction_NativeInappRnSdkCxxSpecJSI_setOverrides(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
33
|
-
return static_cast<NativeInappRnSdkCxxSpecJSI *>(&turboModule)->setOverrides(
|
|
34
|
-
rt,
|
|
35
|
-
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt)
|
|
36
|
-
);
|
|
37
|
-
}
|
|
38
|
-
static jsi::Value __hostFunction_NativeInappRnSdkCxxSpecJSI_clearAllOverrides(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
39
|
-
return static_cast<NativeInappRnSdkCxxSpecJSI *>(&turboModule)->clearAllOverrides(
|
|
40
|
-
rt
|
|
41
|
-
);
|
|
42
|
-
}
|
|
43
|
-
static jsi::Value __hostFunction_NativeInappRnSdkCxxSpecJSI_setVerificationOptions(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
44
|
-
return static_cast<NativeInappRnSdkCxxSpecJSI *>(&turboModule)->setVerificationOptions(
|
|
45
|
-
rt,
|
|
46
|
-
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt)
|
|
47
|
-
);
|
|
48
|
-
}
|
|
49
|
-
static jsi::Value __hostFunction_NativeInappRnSdkCxxSpecJSI_reply(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
50
|
-
static_cast<NativeInappRnSdkCxxSpecJSI *>(&turboModule)->reply(
|
|
51
|
-
rt,
|
|
52
|
-
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
|
|
53
|
-
count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asBool()
|
|
54
|
-
);
|
|
55
|
-
return jsi::Value::undefined();
|
|
56
|
-
}
|
|
57
|
-
static jsi::Value __hostFunction_NativeInappRnSdkCxxSpecJSI_replyWithString(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
58
|
-
static_cast<NativeInappRnSdkCxxSpecJSI *>(&turboModule)->replyWithString(
|
|
59
|
-
rt,
|
|
60
|
-
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
|
|
61
|
-
count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt)
|
|
62
|
-
);
|
|
63
|
-
return jsi::Value::undefined();
|
|
64
|
-
}
|
|
65
|
-
static jsi::Value __hostFunction_NativeInappRnSdkCxxSpecJSI_ping(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
66
|
-
return static_cast<NativeInappRnSdkCxxSpecJSI *>(&turboModule)->ping(
|
|
67
|
-
rt
|
|
68
|
-
);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
NativeInappRnSdkCxxSpecJSI::NativeInappRnSdkCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
|
|
72
|
-
: TurboModule("InappRnSdk", jsInvoker) {
|
|
73
|
-
methodMap_["startVerification"] = MethodMetadata {1, __hostFunction_NativeInappRnSdkCxxSpecJSI_startVerification};
|
|
74
|
-
methodMap_["startVerificationFromUrl"] = MethodMetadata {1, __hostFunction_NativeInappRnSdkCxxSpecJSI_startVerificationFromUrl};
|
|
75
|
-
methodMap_["startVerificationFromJson"] = MethodMetadata {1, __hostFunction_NativeInappRnSdkCxxSpecJSI_startVerificationFromJson};
|
|
76
|
-
methodMap_["setOverrides"] = MethodMetadata {1, __hostFunction_NativeInappRnSdkCxxSpecJSI_setOverrides};
|
|
77
|
-
methodMap_["clearAllOverrides"] = MethodMetadata {0, __hostFunction_NativeInappRnSdkCxxSpecJSI_clearAllOverrides};
|
|
78
|
-
methodMap_["setVerificationOptions"] = MethodMetadata {1, __hostFunction_NativeInappRnSdkCxxSpecJSI_setVerificationOptions};
|
|
79
|
-
methodMap_["reply"] = MethodMetadata {2, __hostFunction_NativeInappRnSdkCxxSpecJSI_reply};
|
|
80
|
-
methodMap_["replyWithString"] = MethodMetadata {2, __hostFunction_NativeInappRnSdkCxxSpecJSI_replyWithString};
|
|
81
|
-
methodMap_["ping"] = MethodMetadata {0, __hostFunction_NativeInappRnSdkCxxSpecJSI_ping};
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
} // namespace facebook::react
|