@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.
Files changed (167) hide show
  1. package/README.md +8 -26
  2. package/android/build.gradle +27 -3
  3. package/android/build.gradle_opensource +121 -0
  4. package/android/libs/core-reactnative-compatible-2025.0305.1.aar +0 -0
  5. package/android/src/main/AndroidManifest.xml +5 -2
  6. package/android/src/main/java/ch/procivis/one/core/Deserialize.kt +5 -5
  7. package/android/src/main/java/ch/procivis/one/core/DeserializeSpecific.kt +4 -3
  8. package/android/src/main/java/ch/procivis/one/core/ProcivisOneCoreModule.kt +136 -16
  9. package/android/src/main/java/ch/procivis/one/core/ProcivisOneCorePackage.kt +3 -4
  10. package/android/src/main/java/ch/procivis/one/core/Serialize.kt +3 -1
  11. package/android/src/main/java/ch/procivis/one/core/SerializeSpecific.kt +19 -0
  12. package/android/src/main/java/ch/procivis/one/core/ubiqu/PinPadRunner.kt +123 -0
  13. package/android/src/main/java/ch/procivis/one/core/ubiqu/PinPadViewManager.kt +23 -0
  14. package/android/src/main/java/ch/procivis/one/core/ubiqu/PinPadViewManager.kt_opensource +20 -0
  15. package/android/src/main/java/ch/procivis/one/core/ubiqu/PinPadWrapper.kt +396 -0
  16. package/android/src/main/java/ch/procivis/one/core/ubiqu/RegistrationManager.kt +59 -0
  17. package/android/src/main/java/ch/procivis/one/core/ubiqu/TokenManager.kt +48 -0
  18. package/android/src/main/java/ch/procivis/one/core/ubiqu/UbiquKeyStorage.kt +256 -0
  19. package/android/src/main/java/ch/procivis/one/core/ubiqu/UbiquKeyStorage.kt_opensource +51 -0
  20. package/android/src/main/java/ch/procivis/one/core/ubiqu/Util.kt +74 -0
  21. package/android/src/main/java/ch/procivis/one/core/ubiqu/dataformats/CreateIdentityRequest.kt +9 -0
  22. package/android/src/main/java/ch/procivis/one/core/ubiqu/dataformats/CreateIdentityResponse.kt +9 -0
  23. package/android/src/main/java/ch/procivis/one/core/ubiqu/dataformats/RegisterRSEResponse.kt +10 -0
  24. package/core-sdk.json +6 -6
  25. package/dist/index.d.ts +7 -0
  26. package/dist/index.js +10 -4
  27. package/dist/src/cache.d.ts +0 -4
  28. package/dist/src/cache.js +0 -5
  29. package/dist/src/config.d.ts +14 -4
  30. package/dist/src/core.d.ts +16 -6
  31. package/dist/src/core.js +72 -0
  32. package/dist/src/credential.d.ts +7 -2
  33. package/dist/src/credentialSchema.d.ts +5 -2
  34. package/dist/src/credentialSchema.js +2 -0
  35. package/dist/src/history.d.ts +23 -5
  36. package/dist/src/history.js +13 -1
  37. package/dist/src/identifier.d.ts +132 -0
  38. package/dist/src/identifier.js +29 -0
  39. package/dist/src/organisation.d.ts +8 -0
  40. package/dist/src/organisation.js +1 -0
  41. package/dist/src/proof.d.ts +26 -6
  42. package/dist/src/proof.js +13 -5
  43. package/dist/src/trust.d.ts +1 -1
  44. package/dist/src/ubiqu.d.ts +49 -0
  45. package/dist/src/ubiqu.js +69 -0
  46. package/ios/Deserialize.swift +141 -776
  47. package/ios/EventEmitter.swift +91 -0
  48. package/ios/ProcivisOneCoreModule.m +49 -5
  49. package/ios/ProcivisOneCoreModule.swift +994 -687
  50. package/ios/ProcivisRNOneCore.xcodeproj/project.pbxproj +37 -27
  51. package/ios/RNDecoder/RNDecoder.swift +191 -0
  52. package/ios/RNDecoder/RNDecodingStorage.swift +33 -0
  53. package/ios/RNDecoder/RNKeyedDecodingContainer.swift +133 -0
  54. package/ios/RNDecoder/RNUnkeyedDecodingContainer.swift +175 -0
  55. package/ios/RNEncoder/RNAnyCodingKey.swift +31 -0
  56. package/ios/RNEncoder/RNEncoder.swift +95 -0
  57. package/ios/RNEncoder/RNKeyedEncodingContainer.swift +81 -0
  58. package/ios/RNEncoder/RNSingleValueEncodingContainer.swift +78 -0
  59. package/ios/RNEncoder/RNUnkeyedEncodingContainer.swift +84 -0
  60. package/ios/RSEKeyStorage.swift +587 -0
  61. package/ios/RSEKeyStorage.swift_opensource +49 -0
  62. package/ios/RSEPinPad.swift +74 -0
  63. package/ios/RSEPinPad.swift_opensource +21 -0
  64. package/ios/RSEPinPadManager.m +19 -0
  65. package/ios/Serialize.swift +46 -596
  66. package/ios/UBQKit.xcframework/Info.plist +44 -0
  67. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Assets.car +0 -0
  68. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFCompatibilityMacros.h +37 -0
  69. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFHTTPSessionManager.h +304 -0
  70. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFNetworkReachabilityManager.h +216 -0
  71. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFNetworking.h +41 -0
  72. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFPlainTextRequestSerializer.h +16 -0
  73. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFSecurityPolicy.h +156 -0
  74. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFURLRequestSerialization.h +479 -0
  75. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFURLResponseSerialization.h +310 -0
  76. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFURLSessionManager.h +501 -0
  77. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/CardRequestProtocol.h +72 -0
  78. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/Constants.h +222 -0
  79. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/DeviceBindProtocol.h +38 -0
  80. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/DomainSecurityModule.h +43 -0
  81. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/ErrorDomains.h +68 -0
  82. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/FreeAssetProtocol.h +40 -0
  83. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/GDataXMLNode.h +214 -0
  84. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/NSDictionary+Utilities.h +23 -0
  85. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/NSFileManager+Utilities.h +20 -0
  86. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/NSString+Utilities.h +23 -0
  87. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/NSURL+Utilities.h +12 -0
  88. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/ProtocolBase.h +38 -0
  89. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/ResetPinProtocol.h +45 -0
  90. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/Settings.h +120 -0
  91. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQCardRequest.h +58 -0
  92. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQCardRequestBaseProcessor.h +37 -0
  93. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQCardRequestBindProcessor.h +34 -0
  94. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQCardRequestNullProcessor.h +28 -0
  95. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQCardRequestResetPinProcessor.h +35 -0
  96. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQCardRequestUnlockProcessor.h +31 -0
  97. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQCardRequestUseProcessor.h +34 -0
  98. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQKit-Swift.h +761 -0
  99. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQKit.h +56 -0
  100. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQPacket.h +38 -0
  101. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Info.plist +0 -0
  102. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Modules/UBQKit.swiftmodule/arm64-apple-ios.abi.json +89006 -0
  103. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Modules/UBQKit.swiftmodule/arm64-apple-ios.private.swiftinterface +1099 -0
  104. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Modules/UBQKit.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  105. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Modules/UBQKit.swiftmodule/arm64-apple-ios.swiftinterface +1099 -0
  106. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Modules/module.modulemap +11 -0
  107. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/UBQKit +0 -0
  108. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/_CodeSignature/CodeResources +597 -0
  109. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/certs +0 -0
  110. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/checksums +0 -0
  111. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/pinning_pub +0 -0
  112. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/static +0 -0
  113. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/stream +0 -0
  114. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Assets.car +0 -0
  115. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFCompatibilityMacros.h +37 -0
  116. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFHTTPSessionManager.h +304 -0
  117. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFNetworkReachabilityManager.h +216 -0
  118. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFNetworking.h +41 -0
  119. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFPlainTextRequestSerializer.h +16 -0
  120. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFSecurityPolicy.h +156 -0
  121. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFURLRequestSerialization.h +479 -0
  122. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFURLResponseSerialization.h +310 -0
  123. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFURLSessionManager.h +501 -0
  124. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/CardRequestProtocol.h +72 -0
  125. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/Constants.h +222 -0
  126. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/DeviceBindProtocol.h +38 -0
  127. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/DomainSecurityModule.h +43 -0
  128. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/ErrorDomains.h +68 -0
  129. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/FreeAssetProtocol.h +40 -0
  130. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/GDataXMLNode.h +214 -0
  131. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/NSDictionary+Utilities.h +23 -0
  132. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/NSFileManager+Utilities.h +20 -0
  133. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/NSString+Utilities.h +23 -0
  134. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/NSURL+Utilities.h +12 -0
  135. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/ProtocolBase.h +38 -0
  136. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/ResetPinProtocol.h +45 -0
  137. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/Settings.h +120 -0
  138. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQCardRequest.h +58 -0
  139. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQCardRequestBaseProcessor.h +37 -0
  140. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQCardRequestBindProcessor.h +34 -0
  141. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQCardRequestNullProcessor.h +28 -0
  142. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQCardRequestResetPinProcessor.h +35 -0
  143. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQCardRequestUnlockProcessor.h +31 -0
  144. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQCardRequestUseProcessor.h +34 -0
  145. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQKit-Swift.h +1522 -0
  146. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQKit.h +56 -0
  147. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQPacket.h +38 -0
  148. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Info.plist +0 -0
  149. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/UBQKit.swiftmodule/arm64-apple-ios-simulator.abi.json +89006 -0
  150. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/UBQKit.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +1099 -0
  151. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/UBQKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  152. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/UBQKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface +1099 -0
  153. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/UBQKit.swiftmodule/x86_64-apple-ios-simulator.abi.json +89006 -0
  154. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/UBQKit.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +1099 -0
  155. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/UBQKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  156. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/UBQKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +1099 -0
  157. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/module.modulemap +11 -0
  158. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/UBQKit +0 -0
  159. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/_CodeSignature/CodeResources +652 -0
  160. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/certs +0 -0
  161. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/checksums +0 -0
  162. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/pinning_pub +0 -0
  163. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/static +0 -0
  164. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/stream +0 -0
  165. package/ios/Util.swift +36 -25
  166. package/package.json +5 -4
  167. 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, NSObject)
11
+ @interface RCT_EXTERN_MODULE(ProcivisOneCoreModule, RCTEventEmitter)
11
12
 
12
13
  + (BOOL)requiresMainQueueSetup
13
14
  {
14
- return NO;
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:(NSString *)uuid
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(retractProof:(NSString *)proofId
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
- bypassCache:(NSArray *)bypassCache
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