@procivis/react-native-one-core 1.33398.0 → 1.43299.1
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/README.md +8 -26
- package/android/build.gradle +27 -3
- package/android/build.gradle_opensource +121 -0
- package/android/libs/core-reactnative-compatible-2025.0305.1.aar +0 -0
- package/android/src/main/AndroidManifest.xml +5 -2
- package/android/src/main/java/ch/procivis/one/core/Deserialize.kt +5 -5
- package/android/src/main/java/ch/procivis/one/core/DeserializeSpecific.kt +4 -3
- package/android/src/main/java/ch/procivis/one/core/ProcivisOneCoreModule.kt +136 -16
- package/android/src/main/java/ch/procivis/one/core/ProcivisOneCorePackage.kt +3 -4
- package/android/src/main/java/ch/procivis/one/core/Serialize.kt +3 -1
- package/android/src/main/java/ch/procivis/one/core/SerializeSpecific.kt +19 -0
- package/android/src/main/java/ch/procivis/one/core/ubiqu/PinPadRunner.kt +123 -0
- package/android/src/main/java/ch/procivis/one/core/ubiqu/PinPadViewManager.kt +23 -0
- package/android/src/main/java/ch/procivis/one/core/ubiqu/PinPadViewManager.kt_opensource +20 -0
- package/android/src/main/java/ch/procivis/one/core/ubiqu/PinPadWrapper.kt +396 -0
- package/android/src/main/java/ch/procivis/one/core/ubiqu/RegistrationManager.kt +59 -0
- package/android/src/main/java/ch/procivis/one/core/ubiqu/TokenManager.kt +48 -0
- package/android/src/main/java/ch/procivis/one/core/ubiqu/UbiquKeyStorage.kt +256 -0
- package/android/src/main/java/ch/procivis/one/core/ubiqu/UbiquKeyStorage.kt_opensource +51 -0
- package/android/src/main/java/ch/procivis/one/core/ubiqu/Util.kt +74 -0
- package/android/src/main/java/ch/procivis/one/core/ubiqu/dataformats/CreateIdentityRequest.kt +9 -0
- package/android/src/main/java/ch/procivis/one/core/ubiqu/dataformats/CreateIdentityResponse.kt +9 -0
- package/android/src/main/java/ch/procivis/one/core/ubiqu/dataformats/RegisterRSEResponse.kt +10 -0
- package/core-sdk.json +6 -6
- package/dist/index.d.ts +7 -0
- package/dist/index.js +10 -4
- package/dist/src/cache.d.ts +0 -4
- package/dist/src/cache.js +0 -5
- package/dist/src/config.d.ts +14 -4
- package/dist/src/core.d.ts +16 -6
- package/dist/src/core.js +72 -0
- package/dist/src/credential.d.ts +7 -2
- package/dist/src/credentialSchema.d.ts +5 -2
- package/dist/src/credentialSchema.js +2 -0
- package/dist/src/history.d.ts +23 -5
- package/dist/src/history.js +13 -1
- package/dist/src/identifier.d.ts +132 -0
- package/dist/src/identifier.js +29 -0
- package/dist/src/organisation.d.ts +8 -0
- package/dist/src/organisation.js +1 -0
- package/dist/src/proof.d.ts +26 -6
- package/dist/src/proof.js +13 -5
- package/dist/src/trust.d.ts +1 -1
- package/dist/src/ubiqu.d.ts +49 -0
- package/dist/src/ubiqu.js +69 -0
- package/ios/Deserialize.swift +141 -776
- package/ios/EventEmitter.swift +91 -0
- package/ios/ProcivisOneCoreModule.m +49 -5
- package/ios/ProcivisOneCoreModule.swift +994 -687
- package/ios/ProcivisRNOneCore.xcodeproj/project.pbxproj +37 -27
- package/ios/RNDecoder/RNDecoder.swift +191 -0
- package/ios/RNDecoder/RNDecodingStorage.swift +33 -0
- package/ios/RNDecoder/RNKeyedDecodingContainer.swift +133 -0
- package/ios/RNDecoder/RNUnkeyedDecodingContainer.swift +175 -0
- package/ios/RNEncoder/RNAnyCodingKey.swift +31 -0
- package/ios/RNEncoder/RNEncoder.swift +95 -0
- package/ios/RNEncoder/RNKeyedEncodingContainer.swift +81 -0
- package/ios/RNEncoder/RNSingleValueEncodingContainer.swift +78 -0
- package/ios/RNEncoder/RNUnkeyedEncodingContainer.swift +84 -0
- package/ios/RSEKeyStorage.swift +587 -0
- package/ios/RSEKeyStorage.swift_opensource +49 -0
- package/ios/RSEPinPad.swift +74 -0
- package/ios/RSEPinPad.swift_opensource +21 -0
- package/ios/RSEPinPadManager.m +19 -0
- package/ios/Serialize.swift +46 -596
- package/ios/UBQKit.xcframework/Info.plist +44 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Assets.car +0 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFCompatibilityMacros.h +37 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFHTTPSessionManager.h +304 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFNetworkReachabilityManager.h +216 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFNetworking.h +41 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFPlainTextRequestSerializer.h +16 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFSecurityPolicy.h +156 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFURLRequestSerialization.h +479 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFURLResponseSerialization.h +310 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFURLSessionManager.h +501 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/CardRequestProtocol.h +72 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/Constants.h +222 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/DeviceBindProtocol.h +38 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/DomainSecurityModule.h +43 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/ErrorDomains.h +68 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/FreeAssetProtocol.h +40 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/GDataXMLNode.h +214 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/NSDictionary+Utilities.h +23 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/NSFileManager+Utilities.h +20 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/NSString+Utilities.h +23 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/NSURL+Utilities.h +12 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/ProtocolBase.h +38 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/ResetPinProtocol.h +45 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/Settings.h +120 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQCardRequest.h +58 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQCardRequestBaseProcessor.h +37 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQCardRequestBindProcessor.h +34 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQCardRequestNullProcessor.h +28 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQCardRequestResetPinProcessor.h +35 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQCardRequestUnlockProcessor.h +31 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQCardRequestUseProcessor.h +34 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQKit-Swift.h +761 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQKit.h +56 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQPacket.h +38 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Info.plist +0 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Modules/UBQKit.swiftmodule/arm64-apple-ios.abi.json +89006 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Modules/UBQKit.swiftmodule/arm64-apple-ios.private.swiftinterface +1099 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Modules/UBQKit.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Modules/UBQKit.swiftmodule/arm64-apple-ios.swiftinterface +1099 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Modules/module.modulemap +11 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/UBQKit +0 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/_CodeSignature/CodeResources +597 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/certs +0 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/checksums +0 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/pinning_pub +0 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/static +0 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/stream +0 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Assets.car +0 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFCompatibilityMacros.h +37 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFHTTPSessionManager.h +304 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFNetworkReachabilityManager.h +216 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFNetworking.h +41 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFPlainTextRequestSerializer.h +16 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFSecurityPolicy.h +156 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFURLRequestSerialization.h +479 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFURLResponseSerialization.h +310 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFURLSessionManager.h +501 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/CardRequestProtocol.h +72 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/Constants.h +222 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/DeviceBindProtocol.h +38 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/DomainSecurityModule.h +43 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/ErrorDomains.h +68 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/FreeAssetProtocol.h +40 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/GDataXMLNode.h +214 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/NSDictionary+Utilities.h +23 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/NSFileManager+Utilities.h +20 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/NSString+Utilities.h +23 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/NSURL+Utilities.h +12 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/ProtocolBase.h +38 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/ResetPinProtocol.h +45 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/Settings.h +120 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQCardRequest.h +58 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQCardRequestBaseProcessor.h +37 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQCardRequestBindProcessor.h +34 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQCardRequestNullProcessor.h +28 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQCardRequestResetPinProcessor.h +35 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQCardRequestUnlockProcessor.h +31 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQCardRequestUseProcessor.h +34 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQKit-Swift.h +1522 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQKit.h +56 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQPacket.h +38 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Info.plist +0 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/UBQKit.swiftmodule/arm64-apple-ios-simulator.abi.json +89006 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/UBQKit.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +1099 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/UBQKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/UBQKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface +1099 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/UBQKit.swiftmodule/x86_64-apple-ios-simulator.abi.json +89006 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/UBQKit.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +1099 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/UBQKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/UBQKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +1099 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/module.modulemap +11 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/UBQKit +0 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/_CodeSignature/CodeResources +652 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/certs +0 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/checksums +0 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/pinning_pub +0 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/static +0 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/stream +0 -0
- package/ios/Util.swift +36 -25
- package/package.json +5 -4
- package/react-native-one-core.podspec +4 -5
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import Foundation
|
|
2
|
+
import ProcivisOneCore
|
|
3
|
+
import React
|
|
4
|
+
|
|
5
|
+
@objc(ProcivisOneCoreEventEmitter)
|
|
6
|
+
class ProcivisOneCoreEventEmitter: NSObject {
|
|
7
|
+
|
|
8
|
+
enum EventName: String, CaseIterable {
|
|
9
|
+
|
|
10
|
+
case rseShowPin = "RSE_SHOW_PIN"
|
|
11
|
+
case rseHidePin = "RSE_HIDE_PIN"
|
|
12
|
+
case rsePinStageChanged = "RSE_PIN_STAGE"
|
|
13
|
+
case rseDigitsEntered = "RSE_DIGITS_ENTERED"
|
|
14
|
+
case rseIncorrectPin = "RSE_INCORRECT_PIN"
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
enum PinFlowType: String {
|
|
18
|
+
|
|
19
|
+
case subscribe = "SUBSCRIBE"
|
|
20
|
+
case transaction = "TRANSACTION"
|
|
21
|
+
case addBiometrics = "ADD_BIOMETRICS"
|
|
22
|
+
case changePin = "CHANGE_PIN"
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
enum PinFlowStage: String {
|
|
26
|
+
|
|
27
|
+
case checkCurrentPin = "CHECK_CURRENT_PIN"
|
|
28
|
+
case newFirstPin = "NEW_FIRST_PIN"
|
|
29
|
+
case newSecondPin = "NEW_SECOND_PIN"
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
static let shared: ProcivisOneCoreEventEmitter = {
|
|
33
|
+
return ProcivisOneCoreEventEmitter()
|
|
34
|
+
}()
|
|
35
|
+
weak var eventEmitter: RCTEventEmitter?
|
|
36
|
+
|
|
37
|
+
static var supportedEvents: [String] {
|
|
38
|
+
return EventName.allCases.map(\.rawValue)
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
static var hasListeners: Bool = false
|
|
42
|
+
|
|
43
|
+
func sendShowPinEvent(flowType: PinFlowType, stage: PinFlowStage) throws {
|
|
44
|
+
guard ProcivisOneCoreEventEmitter.hasListeners else {
|
|
45
|
+
throw NativeKeyStorageError.Unknown(reason: "No UI listener")
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
self.sendEvent(
|
|
49
|
+
with: .rseShowPin,
|
|
50
|
+
body: [
|
|
51
|
+
"flowType": flowType.rawValue,
|
|
52
|
+
"stage": stage.rawValue,
|
|
53
|
+
]
|
|
54
|
+
)
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
func sendHidePinEvent() {
|
|
58
|
+
self.sendEvent(with: .rseHidePin, body: nil)
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
func sendPinStageChangeEvent(stage: PinFlowStage) {
|
|
62
|
+
self.sendEvent(
|
|
63
|
+
with: .rsePinStageChanged,
|
|
64
|
+
body: [
|
|
65
|
+
"stage": stage.rawValue
|
|
66
|
+
]
|
|
67
|
+
)
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
func sendDigitsEnteredEvent(amount: Int) {
|
|
71
|
+
self.sendEvent(
|
|
72
|
+
with: .rseDigitsEntered,
|
|
73
|
+
body: [
|
|
74
|
+
"digitsEntered": amount
|
|
75
|
+
]
|
|
76
|
+
)
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
func sendIncorrectPinEvent(attemptsLeft: Int) {
|
|
80
|
+
self.sendEvent(
|
|
81
|
+
with: .rseIncorrectPin,
|
|
82
|
+
body: [
|
|
83
|
+
"attemptsLeft": attemptsLeft
|
|
84
|
+
]
|
|
85
|
+
)
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
private func sendEvent(with name: EventName!, body: Any!) {
|
|
89
|
+
self.eventEmitter?.sendEvent(withName: name.rawValue, body: body)
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -6,14 +6,17 @@
|
|
|
6
6
|
|
|
7
7
|
#import <Foundation/Foundation.h>
|
|
8
8
|
#import <React/RCTBridgeModule.h>
|
|
9
|
+
#import <React/RCTEventEmitter.h>
|
|
9
10
|
|
|
10
|
-
@interface RCT_EXTERN_MODULE(ProcivisOneCoreModule,
|
|
11
|
+
@interface RCT_EXTERN_MODULE(ProcivisOneCoreModule, RCTEventEmitter)
|
|
11
12
|
|
|
12
13
|
+ (BOOL)requiresMainQueueSetup
|
|
13
14
|
{
|
|
14
|
-
|
|
15
|
+
return NO;
|
|
15
16
|
}
|
|
16
17
|
|
|
18
|
+
RCT_EXTERN_METHOD(supportedEvents)
|
|
19
|
+
|
|
17
20
|
RCT_EXTERN_METHOD(initialize:(NSString *)configJson
|
|
18
21
|
resolver:(RCTPromiseResolveBlock)resolve
|
|
19
22
|
rejecter:(RCTPromiseRejectBlock)reject)
|
|
@@ -24,7 +27,11 @@ RCT_EXTERN_METHOD(getVersion:(RCTPromiseResolveBlock)resolve
|
|
|
24
27
|
RCT_EXTERN_METHOD(getConfig:(RCTPromiseResolveBlock)resolve
|
|
25
28
|
rejecter:(RCTPromiseRejectBlock)reject)
|
|
26
29
|
|
|
27
|
-
RCT_EXTERN_METHOD(createOrganisation:(
|
|
30
|
+
RCT_EXTERN_METHOD(createOrganisation:(NSDictionary *)request
|
|
31
|
+
resolver:(RCTPromiseResolveBlock)resolve
|
|
32
|
+
rejecter:(RCTPromiseRejectBlock)reject)
|
|
33
|
+
|
|
34
|
+
RCT_EXTERN_METHOD(upsertOrganisation:(NSDictionary *)request
|
|
28
35
|
resolver:(RCTPromiseResolveBlock)resolve
|
|
29
36
|
rejecter:(RCTPromiseRejectBlock)reject)
|
|
30
37
|
|
|
@@ -40,6 +47,22 @@ RCT_EXTERN_METHOD(getDids:(NSDictionary *)query
|
|
|
40
47
|
resolver:(RCTPromiseResolveBlock)resolve
|
|
41
48
|
rejecter:(RCTPromiseRejectBlock)reject)
|
|
42
49
|
|
|
50
|
+
RCT_EXTERN_METHOD(createIdentifier:(NSDictionary *)identifierRequest
|
|
51
|
+
resolver:(RCTPromiseResolveBlock)resolve
|
|
52
|
+
rejecter:(RCTPromiseRejectBlock)reject)
|
|
53
|
+
|
|
54
|
+
RCT_EXTERN_METHOD(getIdentifiers:(NSDictionary *)query
|
|
55
|
+
resolver:(RCTPromiseResolveBlock)resolve
|
|
56
|
+
rejecter:(RCTPromiseRejectBlock)reject)
|
|
57
|
+
|
|
58
|
+
RCT_EXTERN_METHOD(getIdentifier:(NSString *)identifierId
|
|
59
|
+
resolver:(RCTPromiseResolveBlock)resolve
|
|
60
|
+
rejecter:(RCTPromiseRejectBlock)reject)
|
|
61
|
+
|
|
62
|
+
RCT_EXTERN_METHOD(deleteIdentifier:(NSString *)identifierId
|
|
63
|
+
resolver:(RCTPromiseResolveBlock)resolve
|
|
64
|
+
rejecter:(RCTPromiseRejectBlock)reject)
|
|
65
|
+
|
|
43
66
|
RCT_EXTERN_METHOD(handleInvitation:(NSString *)url
|
|
44
67
|
organisationId:(NSString *)organisationId
|
|
45
68
|
transport:(NSArray *)transport
|
|
@@ -48,6 +71,7 @@ RCT_EXTERN_METHOD(handleInvitation:(NSString *)url
|
|
|
48
71
|
|
|
49
72
|
RCT_EXTERN_METHOD(holderAcceptCredential:(NSString *)interactionId
|
|
50
73
|
didId:(NSString *)didId
|
|
74
|
+
identifierId:(NSString *)identifierId
|
|
51
75
|
keyId:(NSString *)keyId
|
|
52
76
|
txCode:(NSString *)txCode
|
|
53
77
|
resolver:(RCTPromiseResolveBlock)resolve
|
|
@@ -68,6 +92,7 @@ RCT_EXTERN_METHOD(holderRejectProof:(NSString *)interactionId
|
|
|
68
92
|
RCT_EXTERN_METHOD(holderSubmitProof:(NSString *)interactionId
|
|
69
93
|
credentials:(NSDictionary *)credentials
|
|
70
94
|
didId:(NSString *)didId
|
|
95
|
+
identifierId:(NSString *)identifierId
|
|
71
96
|
keyId:(NSString *)keyId
|
|
72
97
|
resolver:(RCTPromiseResolveBlock)resolve
|
|
73
98
|
rejecter:(RCTPromiseRejectBlock)reject)
|
|
@@ -158,7 +183,7 @@ RCT_EXTERN_METHOD(getProofs:(NSDictionary *)query
|
|
|
158
183
|
resolver:(RCTPromiseResolveBlock)resolve
|
|
159
184
|
rejecter:(RCTPromiseRejectBlock)reject)
|
|
160
185
|
|
|
161
|
-
RCT_EXTERN_METHOD(
|
|
186
|
+
RCT_EXTERN_METHOD(deleteProof:(NSString *)proofId
|
|
162
187
|
resolver:(RCTPromiseResolveBlock)resolve
|
|
163
188
|
rejecter:(RCTPromiseRejectBlock)reject)
|
|
164
189
|
|
|
@@ -168,7 +193,7 @@ RCT_EXTERN_METHOD(proposeProof:(NSString *)exchange
|
|
|
168
193
|
rejecter:(RCTPromiseRejectBlock)reject)
|
|
169
194
|
|
|
170
195
|
RCT_EXTERN_METHOD(checkRevocation:(NSArray *)credentialIds
|
|
171
|
-
|
|
196
|
+
forceRefresh:(BOOL *)forceRefresh
|
|
172
197
|
resolver:(RCTPromiseResolveBlock)resolve
|
|
173
198
|
rejecter:(RCTPromiseRejectBlock)reject)
|
|
174
199
|
|
|
@@ -255,4 +280,23 @@ RCT_EXTERN_METHOD(deleteCache:(NSArray *)types
|
|
|
255
280
|
resolver:(RCTPromiseResolveBlock)resolve
|
|
256
281
|
rejecter:(RCTPromiseRejectBlock)reject)
|
|
257
282
|
|
|
283
|
+
RCT_EXTERN_METHOD(changeRSEPin:(RCTPromiseResolveBlock)resolve
|
|
284
|
+
rejecter:(RCTPromiseRejectBlock)reject)
|
|
285
|
+
|
|
286
|
+
RCT_EXTERN_METHOD(areRSEBiometricsSupported:(RCTPromiseResolveBlock)resolve
|
|
287
|
+
rejecter:(RCTPromiseRejectBlock)reject)
|
|
288
|
+
|
|
289
|
+
RCT_EXTERN_METHOD(areRSEBiometricsEnabled:(RCTPromiseResolveBlock)resolve
|
|
290
|
+
rejecter:(RCTPromiseRejectBlock)reject)
|
|
291
|
+
|
|
292
|
+
RCT_EXTERN_METHOD(setRSEBiometrics:(BOOL *)enabled
|
|
293
|
+
resolver:(RCTPromiseResolveBlock)resolve
|
|
294
|
+
rejecter:(RCTPromiseRejectBlock)reject)
|
|
295
|
+
|
|
296
|
+
RCT_EXTERN_METHOD(resetRSE:(RCTPromiseResolveBlock)resolve
|
|
297
|
+
rejecter:(RCTPromiseRejectBlock)reject)
|
|
298
|
+
|
|
299
|
+
RCT_EXTERN_METHOD(resetRSEPinFlow:(RCTPromiseResolveBlock)resolve
|
|
300
|
+
rejecter:(RCTPromiseRejectBlock)reject)
|
|
301
|
+
|
|
258
302
|
@end
|