@reclaimprotocol/inapp-rn-sdk 0.1.7 → 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 +12 -7
- package/android/build.gradle +3 -3
- package/android/generated/java/com/reclaimprotocol/inapp_rn_sdk/NativeInappRnSdkSpec.java +24 -0
- package/android/generated/jni/RNInappRnSdkSpec-generated.cpp +21 -0
- package/android/generated/jni/react/renderer/components/RNInappRnSdkSpec/RNInappRnSdkSpecJSI-generated.cpp +22 -0
- package/android/generated/jni/react/renderer/components/RNInappRnSdkSpec/RNInappRnSdkSpecJSI.h +348 -20
- package/android/src/main/java/com/reclaimprotocol/inapp_rn_sdk/InappRnSdkModule.kt +140 -20
- package/ios/InappRnSdk.mm +65 -11
- package/ios/generated/RNInappRnSdkSpec/RNInappRnSdkSpec-generated.mm +48 -0
- package/ios/generated/RNInappRnSdkSpec/RNInappRnSdkSpec.h +68 -6
- package/ios/generated/RNInappRnSdkSpecJSI-generated.cpp +22 -0
- package/ios/generated/RNInappRnSdkSpecJSI.h +348 -20
- package/ios/inapp_rn_sdk/Api.swift +124 -7
- package/lib/commonjs/ReclaimVerificationPlatformChannel.js +156 -36
- package/lib/commonjs/ReclaimVerificationPlatformChannel.js.map +1 -1
- package/lib/commonjs/index.js +14 -2
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/specs/NativeInappRnSdk.js +1 -0
- package/lib/commonjs/specs/NativeInappRnSdk.js.map +1 -1
- package/lib/module/ReclaimVerificationPlatformChannel.js +153 -34
- package/lib/module/ReclaimVerificationPlatformChannel.js.map +1 -1
- package/lib/module/index.js +10 -4
- package/lib/module/index.js.map +1 -1
- package/lib/module/specs/NativeInappRnSdk.js +2 -0
- package/lib/module/specs/NativeInappRnSdk.js.map +1 -1
- package/lib/typescript/commonjs/src/ReclaimVerificationPlatformChannel.d.ts +37 -4
- package/lib/typescript/commonjs/src/ReclaimVerificationPlatformChannel.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts +5 -3
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/specs/NativeInappRnSdk.d.ts +38 -4
- 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 +37 -4
- package/lib/typescript/module/src/ReclaimVerificationPlatformChannel.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +5 -3
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/specs/NativeInappRnSdk.d.ts +38 -4
- 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 +194 -41
- package/src/index.ts +12 -4
- package/src/specs/NativeInappRnSdk.ts +51 -6
|
@@ -99,11 +99,6 @@ export interface Request {
|
|
|
99
99
|
*/
|
|
100
100
|
parameters?: { [key: string]: string }; // Use index signature for Map
|
|
101
101
|
|
|
102
|
-
/**
|
|
103
|
-
* Whether to hide the landing page of the verification process. When false, shows an introductory page with claims to be proven.
|
|
104
|
-
*/
|
|
105
|
-
hideLanding?: boolean; // Optional
|
|
106
|
-
|
|
107
102
|
/**
|
|
108
103
|
* Whether to automatically submit the proof after generation.
|
|
109
104
|
*/
|
|
@@ -136,6 +131,7 @@ export interface Response {
|
|
|
136
131
|
export interface ProviderInformation {
|
|
137
132
|
url?: string;
|
|
138
133
|
jsonString?: string;
|
|
134
|
+
canFetchProviderInformationFromHost: boolean;
|
|
139
135
|
}
|
|
140
136
|
|
|
141
137
|
/**
|
|
@@ -256,6 +252,18 @@ export interface SessionLogEvent {
|
|
|
256
252
|
logType: string;
|
|
257
253
|
}
|
|
258
254
|
|
|
255
|
+
/// Identification information of a session.
|
|
256
|
+
export interface ReclaimSessionIdentityUpdate {
|
|
257
|
+
/// The application id.
|
|
258
|
+
appId: string;
|
|
259
|
+
|
|
260
|
+
/// The provider id.
|
|
261
|
+
providerId: string;
|
|
262
|
+
|
|
263
|
+
/// The session id.
|
|
264
|
+
sessionId: string;
|
|
265
|
+
}
|
|
266
|
+
|
|
259
267
|
export interface SessionCreateRequestEvent {
|
|
260
268
|
/**
|
|
261
269
|
* The app ID for the verification attempt
|
|
@@ -295,20 +303,57 @@ export interface Overrides {
|
|
|
295
303
|
featureOptions?: FeatureOptions | null,
|
|
296
304
|
logConsumer?: LogConsumer | null,
|
|
297
305
|
sessionManagement?: SessionManagement | null,
|
|
298
|
-
appInfo?: ReclaimAppInfo | null
|
|
306
|
+
appInfo?: ReclaimAppInfo | null,
|
|
307
|
+
capabilityAccessToken?: string | null;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
export interface ProviderInformationRequest {
|
|
311
|
+
appId: string;
|
|
312
|
+
providerId: string;
|
|
313
|
+
sessionId: string;
|
|
314
|
+
signature: string;
|
|
315
|
+
timestamp: string;
|
|
316
|
+
/**
|
|
317
|
+
* internal
|
|
318
|
+
*/
|
|
319
|
+
readonly replyId: string;
|
|
320
|
+
}
|
|
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;
|
|
299
337
|
}
|
|
300
338
|
|
|
301
339
|
export interface Spec extends TurboModule {
|
|
302
340
|
startVerification(request: Request): Promise<Response>;
|
|
303
341
|
startVerificationFromUrl(requestUrl: string): Promise<Response>;
|
|
304
342
|
setOverrides(overrides: Overrides): Promise<void>;
|
|
343
|
+
clearAllOverrides(): Promise<void>;
|
|
344
|
+
setVerificationOptions(args: VerificationOptionsOptional): Promise<void>;
|
|
305
345
|
reply(replyId: string, reply: boolean): void;
|
|
346
|
+
replyWithString(replyId: string, value: string): void;
|
|
306
347
|
ping(): Promise<boolean>;
|
|
307
348
|
|
|
308
349
|
readonly onLogs: EventEmitter<string>
|
|
309
350
|
readonly onSessionLogs: EventEmitter<SessionLogEvent>
|
|
310
351
|
readonly onSessionCreateRequest: EventEmitter<SessionCreateRequestEvent>
|
|
311
352
|
readonly onSessionUpdateRequest: EventEmitter<SessionUpdateRequestEvent>
|
|
353
|
+
readonly onProviderInformationRequest: EventEmitter<ProviderInformationRequest>
|
|
354
|
+
readonly onReclaimAttestorAuthRequest: EventEmitter<ReclaimAttestorAuthRequest>
|
|
355
|
+
// unimplemented
|
|
356
|
+
readonly onSessionIdentityUpdate: EventEmitter<ReclaimSessionIdentityUpdate>
|
|
312
357
|
}
|
|
313
358
|
|
|
314
359
|
export default TurboModuleRegistry.getEnforcing<Spec>('InappRnSdk');
|