@reclaimprotocol/inapp-rn-sdk 0.2.1 → 0.3.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 +1 -1
- package/README.md +7 -6
- package/android/build.gradle +3 -3
- package/android/generated/java/com/reclaimprotocol/inapp_rn_sdk/NativeInappRnSdkSpec.java +13 -5
- package/android/generated/jni/RNInappRnSdkSpec-generated.cpp +11 -4
- package/android/generated/jni/react/renderer/components/RNInappRnSdkSpec/RNInappRnSdkSpecJSI-generated.cpp +10 -3
- package/android/generated/jni/react/renderer/components/RNInappRnSdkSpec/RNInappRnSdkSpecJSI.h +168 -12
- package/android/src/main/java/com/reclaimprotocol/inapp_rn_sdk/InappRnSdkModule.kt +49 -8
- package/ios/InappRnSdk.mm +33 -6
- package/ios/generated/RNInappRnSdkSpec/RNInappRnSdkSpec-generated.mm +32 -8
- package/ios/generated/RNInappRnSdkSpec/RNInappRnSdkSpec.h +53 -3
- package/ios/generated/RNInappRnSdkSpecJSI-generated.cpp +10 -3
- package/ios/generated/RNInappRnSdkSpecJSI.h +168 -12
- package/ios/inapp_rn_sdk/Api.swift +71 -20
- package/lib/commonjs/ReclaimVerificationPlatformChannel.js +38 -2
- package/lib/commonjs/ReclaimVerificationPlatformChannel.js.map +1 -1
- package/lib/commonjs/index.js +3 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/specs/NativeInappRnSdk.js.map +1 -1
- package/lib/module/ReclaimVerificationPlatformChannel.js +38 -2
- package/lib/module/ReclaimVerificationPlatformChannel.js.map +1 -1
- package/lib/module/index.js +3 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/specs/NativeInappRnSdk.js.map +1 -1
- package/lib/typescript/commonjs/src/ReclaimVerificationPlatformChannel.d.ts +9 -1
- package/lib/typescript/commonjs/src/ReclaimVerificationPlatformChannel.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/specs/NativeInappRnSdk.d.ts +18 -2
- package/lib/typescript/commonjs/src/specs/NativeInappRnSdk.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/proof.d.ts.map +1 -1
- package/lib/typescript/module/src/ReclaimVerificationPlatformChannel.d.ts +9 -1
- package/lib/typescript/module/src/ReclaimVerificationPlatformChannel.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +1 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/specs/NativeInappRnSdk.d.ts +18 -2
- package/lib/typescript/module/src/specs/NativeInappRnSdk.d.ts.map +1 -1
- package/lib/typescript/module/src/types/proof.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/ReclaimVerificationPlatformChannel.ts +48 -3
- package/src/index.ts +4 -0
- package/src/specs/NativeInappRnSdk.ts +21 -2
|
@@ -319,22 +319,41 @@ export interface ProviderInformationRequest {
|
|
|
319
319
|
readonly replyId: string;
|
|
320
320
|
}
|
|
321
321
|
|
|
322
|
+
export interface VerificationOptions {
|
|
323
|
+
canDeleteCookiesBeforeVerificationStarts: boolean;
|
|
324
|
+
canUseAttestorAuthenticationRequest: boolean;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
export interface VerificationOptionsOptional {
|
|
328
|
+
options?: VerificationOptions | null;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
export interface ReclaimAttestorAuthRequest {
|
|
332
|
+
reclaimHttpProviderJsonString: string;
|
|
333
|
+
/**
|
|
334
|
+
* internal
|
|
335
|
+
*/
|
|
336
|
+
readonly replyId: string;
|
|
337
|
+
}
|
|
338
|
+
|
|
322
339
|
export interface Spec extends TurboModule {
|
|
323
340
|
startVerification(request: Request): Promise<Response>;
|
|
324
341
|
startVerificationFromUrl(requestUrl: string): Promise<Response>;
|
|
325
342
|
setOverrides(overrides: Overrides): Promise<void>;
|
|
326
343
|
clearAllOverrides(): Promise<void>;
|
|
344
|
+
setVerificationOptions(args: VerificationOptionsOptional): Promise<void>;
|
|
327
345
|
reply(replyId: string, reply: boolean): void;
|
|
328
|
-
|
|
346
|
+
replyWithString(replyId: string, value: string): void;
|
|
329
347
|
ping(): Promise<boolean>;
|
|
330
348
|
|
|
331
349
|
readonly onLogs: EventEmitter<string>
|
|
332
350
|
readonly onSessionLogs: EventEmitter<SessionLogEvent>
|
|
333
351
|
readonly onSessionCreateRequest: EventEmitter<SessionCreateRequestEvent>
|
|
334
352
|
readonly onSessionUpdateRequest: EventEmitter<SessionUpdateRequestEvent>
|
|
353
|
+
readonly onProviderInformationRequest: EventEmitter<ProviderInformationRequest>
|
|
354
|
+
readonly onReclaimAttestorAuthRequest: EventEmitter<ReclaimAttestorAuthRequest>
|
|
335
355
|
// unimplemented
|
|
336
356
|
readonly onSessionIdentityUpdate: EventEmitter<ReclaimSessionIdentityUpdate>
|
|
337
|
-
readonly onProviderInformationRequest: EventEmitter<ProviderInformationRequest>
|
|
338
357
|
}
|
|
339
358
|
|
|
340
359
|
export default TurboModuleRegistry.getEnforcing<Spec>('InappRnSdk');
|