@procivis/react-native-one-core 1.26999.0 → 1.41710.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/README.md +71 -40
- package/android/build.gradle +46 -10
- 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 +10 -6
- package/android/src/main/java/ch/procivis/one/core/DeserializeSpecific.kt +13 -5
- package/android/src/main/java/ch/procivis/one/core/ProcivisOneCoreModule.kt +251 -79
- package/android/src/main/java/ch/procivis/one/core/ProcivisOneCorePackage.kt +3 -4
- package/android/src/main/java/ch/procivis/one/core/SerializeSpecific.kt +13 -1
- package/android/src/main/java/ch/procivis/one/core/Util.kt +42 -10
- 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 +10 -8
- package/dist/index.js +31 -25
- package/dist/src/cache.d.ts +8 -0
- package/dist/src/cache.js +9 -0
- package/dist/src/config.d.ts +39 -6
- package/dist/src/config.js +19 -0
- package/dist/src/core.d.ts +24 -8
- package/dist/src/core.js +68 -0
- package/dist/src/credential.d.ts +15 -1
- package/dist/src/credential.js +5 -0
- package/dist/src/credentialSchema.d.ts +5 -2
- package/dist/src/credentialSchema.js +2 -0
- package/dist/src/did.d.ts +9 -5
- package/dist/src/error.d.ts +10 -17
- package/dist/src/error.js +5 -14
- package/dist/src/history.d.ts +19 -5
- package/dist/src/history.js +10 -2
- package/dist/src/key.d.ts +3 -0
- package/dist/src/organisation.d.ts +8 -0
- package/dist/src/organisation.js +1 -0
- package/dist/src/proof.d.ts +29 -2
- package/dist/src/proof.js +13 -0
- package/dist/src/proofSchema.d.ts +2 -0
- package/dist/src/trust.d.ts +85 -19
- package/dist/src/trust.js +28 -7
- package/dist/src/ubiqu.d.ts +49 -0
- package/dist/src/ubiqu.js +69 -0
- package/ios/Deserialize.swift +203 -24
- package/ios/EventEmitter.swift +79 -0
- package/ios/ProcivisOneCoreModule.m +74 -6
- package/ios/ProcivisOneCoreModule.swift +312 -88
- package/ios/ProcivisRNOneCore.xcodeproj/project.pbxproj +28 -26
- 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 +105 -28
- 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 +21 -24
- package/package.json +4 -3
- package/react-native-one-core.podspec +4 -5
package/dist/src/proof.d.ts
CHANGED
|
@@ -2,14 +2,20 @@ import { CredentialDetail, CredentialListItem } from "./credential";
|
|
|
2
2
|
import { CredentialSchema } from "./credentialSchema";
|
|
3
3
|
import { ListQuery, SortDirection } from "./list";
|
|
4
4
|
import { ProofInputClaimSchema, ProofSchemaListItem } from "./proofSchema";
|
|
5
|
+
import { DidListItem } from "./did";
|
|
5
6
|
export declare enum ProofStateEnum {
|
|
6
7
|
CREATED = "CREATED",
|
|
7
8
|
PENDING = "PENDING",
|
|
8
9
|
REQUESTED = "REQUESTED",
|
|
9
10
|
ACCEPTED = "ACCEPTED",
|
|
10
11
|
REJECTED = "REJECTED",
|
|
12
|
+
RETRACTED = "RETRACTED",
|
|
11
13
|
ERROR = "ERROR"
|
|
12
14
|
}
|
|
15
|
+
export declare enum ProofRoleEnum {
|
|
16
|
+
HOLDER = "HOLDER",
|
|
17
|
+
VERIFIER = "VERIFIER"
|
|
18
|
+
}
|
|
13
19
|
export interface ProofInput {
|
|
14
20
|
claims: ProofInputClaim[];
|
|
15
21
|
credential?: CredentialDetail;
|
|
@@ -26,11 +32,17 @@ export interface ProofDetail {
|
|
|
26
32
|
lastModified: string;
|
|
27
33
|
proofInputs: ProofInput[];
|
|
28
34
|
state: ProofStateEnum;
|
|
35
|
+
role: ProofRoleEnum;
|
|
29
36
|
proofSchema?: ProofSchemaListItem;
|
|
30
|
-
verifierDid?:
|
|
37
|
+
verifierDid?: DidListItem;
|
|
38
|
+
holderDid?: DidListItem;
|
|
31
39
|
exchange: string;
|
|
40
|
+
transport: string;
|
|
32
41
|
redirectUri?: string;
|
|
33
42
|
retainUntilDate?: string;
|
|
43
|
+
requestedDate?: string;
|
|
44
|
+
completedDate?: string;
|
|
45
|
+
claimsRemovedAt?: string;
|
|
34
46
|
}
|
|
35
47
|
export interface ProofListItem {
|
|
36
48
|
id: string;
|
|
@@ -43,12 +55,14 @@ export interface ProofListItem {
|
|
|
43
55
|
exchange: string;
|
|
44
56
|
transport: string;
|
|
45
57
|
state: ProofStateEnum;
|
|
58
|
+
role: ProofRoleEnum;
|
|
46
59
|
schema?: ProofSchemaListItem;
|
|
47
60
|
retainUntilDate?: string;
|
|
48
61
|
}
|
|
49
62
|
export interface CreateProofRequest {
|
|
50
63
|
proofSchemaId: string;
|
|
51
|
-
verifierDidId
|
|
64
|
+
verifierDidId?: string;
|
|
65
|
+
verifierIdentifierId?: string;
|
|
52
66
|
exchange: string;
|
|
53
67
|
redirectUri?: string;
|
|
54
68
|
verifierKey?: string;
|
|
@@ -123,6 +137,7 @@ export interface ProofListQuery extends ListQuery {
|
|
|
123
137
|
name?: string;
|
|
124
138
|
ids?: string[];
|
|
125
139
|
proofStates?: ProofStateEnum[];
|
|
140
|
+
proofRoles?: ProofRoleEnum[];
|
|
126
141
|
proofSchemaIds?: string[];
|
|
127
142
|
exact?: ExactProofFilterColumnEnum[];
|
|
128
143
|
}
|
|
@@ -135,3 +150,15 @@ export interface InvitationResultProofRequest {
|
|
|
135
150
|
interactionId: string;
|
|
136
151
|
proofId: ProofDetail["id"];
|
|
137
152
|
}
|
|
153
|
+
export interface ShareProofRequest {
|
|
154
|
+
params?: ShareProofRequestParams;
|
|
155
|
+
}
|
|
156
|
+
export interface ShareProofRequestParams {
|
|
157
|
+
clientIdScheme?: ClientIdSchemeEnum;
|
|
158
|
+
}
|
|
159
|
+
export declare enum ClientIdSchemeEnum {
|
|
160
|
+
REDIRECT_URI = "REDIRECT_URI",
|
|
161
|
+
VERIFIER_ATTESTATION = "VERIFIER_ATTESTATION",
|
|
162
|
+
DID = "DID",
|
|
163
|
+
X509_SAN_DNS = "X509_SAN_DNS"
|
|
164
|
+
}
|
package/dist/src/proof.js
CHANGED
|
@@ -5,8 +5,14 @@ export var ProofStateEnum;
|
|
|
5
5
|
ProofStateEnum["REQUESTED"] = "REQUESTED";
|
|
6
6
|
ProofStateEnum["ACCEPTED"] = "ACCEPTED";
|
|
7
7
|
ProofStateEnum["REJECTED"] = "REJECTED";
|
|
8
|
+
ProofStateEnum["RETRACTED"] = "RETRACTED";
|
|
8
9
|
ProofStateEnum["ERROR"] = "ERROR";
|
|
9
10
|
})(ProofStateEnum || (ProofStateEnum = {}));
|
|
11
|
+
export var ProofRoleEnum;
|
|
12
|
+
(function (ProofRoleEnum) {
|
|
13
|
+
ProofRoleEnum["HOLDER"] = "HOLDER";
|
|
14
|
+
ProofRoleEnum["VERIFIER"] = "VERIFIER";
|
|
15
|
+
})(ProofRoleEnum || (ProofRoleEnum = {}));
|
|
10
16
|
export var ScanToVerifyBarcodeTypeEnum;
|
|
11
17
|
(function (ScanToVerifyBarcodeTypeEnum) {
|
|
12
18
|
ScanToVerifyBarcodeTypeEnum["MRZ"] = "MRZ";
|
|
@@ -28,3 +34,10 @@ export var ExactProofFilterColumnEnum;
|
|
|
28
34
|
(function (ExactProofFilterColumnEnum) {
|
|
29
35
|
ExactProofFilterColumnEnum["NAME"] = "NAME";
|
|
30
36
|
})(ExactProofFilterColumnEnum || (ExactProofFilterColumnEnum = {}));
|
|
37
|
+
export var ClientIdSchemeEnum;
|
|
38
|
+
(function (ClientIdSchemeEnum) {
|
|
39
|
+
ClientIdSchemeEnum["REDIRECT_URI"] = "REDIRECT_URI";
|
|
40
|
+
ClientIdSchemeEnum["VERIFIER_ATTESTATION"] = "VERIFIER_ATTESTATION";
|
|
41
|
+
ClientIdSchemeEnum["DID"] = "DID";
|
|
42
|
+
ClientIdSchemeEnum["X509_SAN_DNS"] = "X509_SAN_DNS";
|
|
43
|
+
})(ClientIdSchemeEnum || (ClientIdSchemeEnum = {}));
|
|
@@ -2,6 +2,7 @@ import { CredentialSchema, CredentialSchemaLayoutProperties, CredentialSchemaTyp
|
|
|
2
2
|
import { ListQuery, SortDirection } from "./list";
|
|
3
3
|
export interface ProofInputClaimSchema {
|
|
4
4
|
id: string;
|
|
5
|
+
requested: boolean;
|
|
5
6
|
required: boolean;
|
|
6
7
|
key: string;
|
|
7
8
|
dataType: string;
|
|
@@ -69,6 +70,7 @@ export interface ImportProofSchemaInputSchema {
|
|
|
69
70
|
}
|
|
70
71
|
export interface ImportProofSchemaClaimSchema {
|
|
71
72
|
id: string;
|
|
73
|
+
requested: boolean;
|
|
72
74
|
required: boolean;
|
|
73
75
|
key: string;
|
|
74
76
|
dataType: string;
|
package/dist/src/trust.d.ts
CHANGED
|
@@ -1,26 +1,23 @@
|
|
|
1
1
|
import { ListQuery, SortDirection } from "./list";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
CLIENT = "CLIENT"
|
|
5
|
-
}
|
|
6
|
-
export interface CreateTrustAnchorRequest {
|
|
2
|
+
import { DidListItem } from "./did";
|
|
3
|
+
export type CreateTrustAnchorRequest = {
|
|
7
4
|
name: string;
|
|
8
5
|
type: string;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
} & ({
|
|
7
|
+
isPublisher: true;
|
|
8
|
+
publisherReference?: never;
|
|
9
|
+
} | {
|
|
10
|
+
isPublisher?: false;
|
|
11
|
+
publisherReference: string;
|
|
12
|
+
});
|
|
14
13
|
export interface TrustAnchor {
|
|
15
14
|
id: string;
|
|
16
15
|
createdDate: string;
|
|
17
16
|
lastModified: string;
|
|
18
17
|
name: string;
|
|
19
18
|
type: string;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
priority?: number;
|
|
23
|
-
organisationId: string;
|
|
19
|
+
isPublisher: boolean;
|
|
20
|
+
publisherReference: string;
|
|
24
21
|
}
|
|
25
22
|
export interface TrustAnchorListItem extends TrustAnchor {
|
|
26
23
|
entities: number;
|
|
@@ -28,19 +25,88 @@ export interface TrustAnchorListItem extends TrustAnchor {
|
|
|
28
25
|
export declare enum SortableTrustAnchorColumnEnum {
|
|
29
26
|
NAME = "NAME",
|
|
30
27
|
CREATED_DATE = "CREATED_DATE",
|
|
31
|
-
TYPE = "TYPE"
|
|
32
|
-
ROLE = "ROLE",
|
|
33
|
-
PRIORITY = "PRIORITY"
|
|
28
|
+
TYPE = "TYPE"
|
|
34
29
|
}
|
|
35
30
|
export declare enum ExactTrustAnchorFilterColumnEnum {
|
|
36
31
|
NAME = "NAME",
|
|
37
32
|
TYPE = "TYPE"
|
|
38
33
|
}
|
|
39
|
-
export interface TrustAnchorListQuery extends ListQuery {
|
|
34
|
+
export interface TrustAnchorListQuery extends Omit<ListQuery, "organisationId"> {
|
|
40
35
|
sort?: SortableTrustAnchorColumnEnum;
|
|
41
36
|
sortDirection?: SortDirection;
|
|
42
37
|
name?: string;
|
|
43
38
|
exact?: ExactTrustAnchorFilterColumnEnum[];
|
|
44
39
|
type?: string;
|
|
45
|
-
|
|
40
|
+
isPublisher?: boolean;
|
|
41
|
+
}
|
|
42
|
+
export interface TrustEntityListItem {
|
|
43
|
+
id: string;
|
|
44
|
+
createdDate: string;
|
|
45
|
+
lastModified: string;
|
|
46
|
+
name: string;
|
|
47
|
+
logo?: string;
|
|
48
|
+
website?: string;
|
|
49
|
+
termsUrl?: string;
|
|
50
|
+
privacyUrl?: string;
|
|
51
|
+
role: TrustEntityRoleEnum;
|
|
52
|
+
state: TrustEntityStateEnum;
|
|
53
|
+
did: DidListItem;
|
|
54
|
+
trustAnchor: TrustAnchor;
|
|
55
|
+
}
|
|
56
|
+
export interface TrustEntity extends TrustEntityListItem {
|
|
57
|
+
organisationId?: string;
|
|
58
|
+
}
|
|
59
|
+
export declare enum TrustEntityRoleEnum {
|
|
60
|
+
ISSUER = "ISSUER",
|
|
61
|
+
VERIFIER = "VERIFIER",
|
|
62
|
+
BOTH = "BOTH"
|
|
63
|
+
}
|
|
64
|
+
export declare enum TrustEntityStateEnum {
|
|
65
|
+
ACTIVE = "ACTIVE",
|
|
66
|
+
REMOVED = "REMOVED",
|
|
67
|
+
WITHDRAWN = "WITHDRAWN",
|
|
68
|
+
REMOVED_AND_WITHDRAWN = "REMOVED_AND_WITHDRAWN"
|
|
69
|
+
}
|
|
70
|
+
export interface CreateTrustEntityRequest {
|
|
71
|
+
name: string;
|
|
72
|
+
logo?: string;
|
|
73
|
+
website?: string;
|
|
74
|
+
termsUrl?: string;
|
|
75
|
+
privacyUrl?: string;
|
|
76
|
+
role: TrustEntityRoleEnum;
|
|
77
|
+
trustAnchorId: TrustAnchor["id"];
|
|
78
|
+
didId: DidListItem["id"];
|
|
79
|
+
}
|
|
80
|
+
export interface TrustEntityListQuery {
|
|
81
|
+
sort?: SortableTrustEntityColumnEnum;
|
|
82
|
+
sortDirection?: SortDirection;
|
|
83
|
+
name?: string;
|
|
84
|
+
exact?: ExactTrustEntityFilterColumnEnum[];
|
|
85
|
+
type?: string;
|
|
86
|
+
isPublisher?: boolean;
|
|
87
|
+
}
|
|
88
|
+
export declare enum SortableTrustEntityColumnEnum {
|
|
89
|
+
NAME = "NAME",
|
|
90
|
+
ROLE = "ROLE"
|
|
91
|
+
}
|
|
92
|
+
export declare enum ExactTrustEntityFilterColumnEnum {
|
|
93
|
+
NAME = "NAME"
|
|
94
|
+
}
|
|
95
|
+
export interface CreateRemoteTrustEntityRequest extends Omit<CreateTrustEntityRequest, "trustAnchorId"> {
|
|
96
|
+
trustAnchorId?: TrustAnchor["id"];
|
|
97
|
+
}
|
|
98
|
+
export interface UpdateRemoteTrustEntityRequest {
|
|
99
|
+
didId: DidListItem["id"];
|
|
100
|
+
action?: TrustEntityUpdateActionEnum;
|
|
101
|
+
name?: string;
|
|
102
|
+
logo?: string | null;
|
|
103
|
+
website?: string | null;
|
|
104
|
+
termsUrl?: string | null;
|
|
105
|
+
privacyUrl?: string | null;
|
|
106
|
+
role?: TrustEntityRoleEnum;
|
|
107
|
+
}
|
|
108
|
+
export declare enum TrustEntityUpdateActionEnum {
|
|
109
|
+
ACTIVATE = "ACTIVATE",
|
|
110
|
+
WITHDRAW = "WITHDRAW",
|
|
111
|
+
REMOVE = "REMOVE"
|
|
46
112
|
}
|
package/dist/src/trust.js
CHANGED
|
@@ -1,18 +1,39 @@
|
|
|
1
|
-
export var TrustAnchorRoleEnum;
|
|
2
|
-
(function (TrustAnchorRoleEnum) {
|
|
3
|
-
TrustAnchorRoleEnum["PUBLISHER"] = "PUBLISHER";
|
|
4
|
-
TrustAnchorRoleEnum["CLIENT"] = "CLIENT";
|
|
5
|
-
})(TrustAnchorRoleEnum || (TrustAnchorRoleEnum = {}));
|
|
6
1
|
export var SortableTrustAnchorColumnEnum;
|
|
7
2
|
(function (SortableTrustAnchorColumnEnum) {
|
|
8
3
|
SortableTrustAnchorColumnEnum["NAME"] = "NAME";
|
|
9
4
|
SortableTrustAnchorColumnEnum["CREATED_DATE"] = "CREATED_DATE";
|
|
10
5
|
SortableTrustAnchorColumnEnum["TYPE"] = "TYPE";
|
|
11
|
-
SortableTrustAnchorColumnEnum["ROLE"] = "ROLE";
|
|
12
|
-
SortableTrustAnchorColumnEnum["PRIORITY"] = "PRIORITY";
|
|
13
6
|
})(SortableTrustAnchorColumnEnum || (SortableTrustAnchorColumnEnum = {}));
|
|
14
7
|
export var ExactTrustAnchorFilterColumnEnum;
|
|
15
8
|
(function (ExactTrustAnchorFilterColumnEnum) {
|
|
16
9
|
ExactTrustAnchorFilterColumnEnum["NAME"] = "NAME";
|
|
17
10
|
ExactTrustAnchorFilterColumnEnum["TYPE"] = "TYPE";
|
|
18
11
|
})(ExactTrustAnchorFilterColumnEnum || (ExactTrustAnchorFilterColumnEnum = {}));
|
|
12
|
+
export var TrustEntityRoleEnum;
|
|
13
|
+
(function (TrustEntityRoleEnum) {
|
|
14
|
+
TrustEntityRoleEnum["ISSUER"] = "ISSUER";
|
|
15
|
+
TrustEntityRoleEnum["VERIFIER"] = "VERIFIER";
|
|
16
|
+
TrustEntityRoleEnum["BOTH"] = "BOTH";
|
|
17
|
+
})(TrustEntityRoleEnum || (TrustEntityRoleEnum = {}));
|
|
18
|
+
export var TrustEntityStateEnum;
|
|
19
|
+
(function (TrustEntityStateEnum) {
|
|
20
|
+
TrustEntityStateEnum["ACTIVE"] = "ACTIVE";
|
|
21
|
+
TrustEntityStateEnum["REMOVED"] = "REMOVED";
|
|
22
|
+
TrustEntityStateEnum["WITHDRAWN"] = "WITHDRAWN";
|
|
23
|
+
TrustEntityStateEnum["REMOVED_AND_WITHDRAWN"] = "REMOVED_AND_WITHDRAWN";
|
|
24
|
+
})(TrustEntityStateEnum || (TrustEntityStateEnum = {}));
|
|
25
|
+
export var SortableTrustEntityColumnEnum;
|
|
26
|
+
(function (SortableTrustEntityColumnEnum) {
|
|
27
|
+
SortableTrustEntityColumnEnum["NAME"] = "NAME";
|
|
28
|
+
SortableTrustEntityColumnEnum["ROLE"] = "ROLE";
|
|
29
|
+
})(SortableTrustEntityColumnEnum || (SortableTrustEntityColumnEnum = {}));
|
|
30
|
+
export var ExactTrustEntityFilterColumnEnum;
|
|
31
|
+
(function (ExactTrustEntityFilterColumnEnum) {
|
|
32
|
+
ExactTrustEntityFilterColumnEnum["NAME"] = "NAME";
|
|
33
|
+
})(ExactTrustEntityFilterColumnEnum || (ExactTrustEntityFilterColumnEnum = {}));
|
|
34
|
+
export var TrustEntityUpdateActionEnum;
|
|
35
|
+
(function (TrustEntityUpdateActionEnum) {
|
|
36
|
+
TrustEntityUpdateActionEnum["ACTIVATE"] = "ACTIVATE";
|
|
37
|
+
TrustEntityUpdateActionEnum["WITHDRAW"] = "WITHDRAW";
|
|
38
|
+
TrustEntityUpdateActionEnum["REMOVE"] = "REMOVE";
|
|
39
|
+
})(TrustEntityUpdateActionEnum || (TrustEntityUpdateActionEnum = {}));
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ViewProps } from "react-native";
|
|
2
|
+
export declare enum PinEventType {
|
|
3
|
+
SHOW_PIN = "RSE_SHOW_PIN",
|
|
4
|
+
HIDE_PIN = "RSE_HIDE_PIN",
|
|
5
|
+
PIN_STAGE = "RSE_PIN_STAGE",
|
|
6
|
+
DIGITS_ENTERED = "RSE_DIGITS_ENTERED",
|
|
7
|
+
INCORRECT_PIN = "RSE_INCORRECT_PIN"
|
|
8
|
+
}
|
|
9
|
+
export declare enum PinFlowType {
|
|
10
|
+
SUBSCRIBE = "SUBSCRIBE",
|
|
11
|
+
TRANSACTION = "TRANSACTION",
|
|
12
|
+
ADD_BIOMETRICS = "ADD_BIOMETRICS",
|
|
13
|
+
CHANGE_PIN = "CHANGE_PIN"
|
|
14
|
+
}
|
|
15
|
+
export declare enum PinFlowStage {
|
|
16
|
+
CHECK_CURRENT_PIN = "CHECK_CURRENT_PIN",
|
|
17
|
+
NEW_FIRST_PIN = "NEW_FIRST_PIN",
|
|
18
|
+
NEW_SECOND_PIN = "NEW_SECOND_PIN"
|
|
19
|
+
}
|
|
20
|
+
export interface ShowPinEvent {
|
|
21
|
+
type: PinEventType.SHOW_PIN;
|
|
22
|
+
flowType: PinFlowType;
|
|
23
|
+
stage: PinFlowStage;
|
|
24
|
+
}
|
|
25
|
+
export interface HidePinEvent {
|
|
26
|
+
type: PinEventType.HIDE_PIN;
|
|
27
|
+
}
|
|
28
|
+
export interface StagePinEvent {
|
|
29
|
+
type: PinEventType.PIN_STAGE;
|
|
30
|
+
stage: PinFlowStage;
|
|
31
|
+
}
|
|
32
|
+
export interface DigitsEnteredEvent {
|
|
33
|
+
type: PinEventType.DIGITS_ENTERED;
|
|
34
|
+
digitsEntered: number;
|
|
35
|
+
}
|
|
36
|
+
export interface IncorrectPinEvent {
|
|
37
|
+
type: PinEventType.INCORRECT_PIN;
|
|
38
|
+
attemptsLeft: number;
|
|
39
|
+
}
|
|
40
|
+
export type Event = ShowPinEvent | HidePinEvent | StagePinEvent | DigitsEnteredEvent | IncorrectPinEvent;
|
|
41
|
+
export declare const PIN_COUNT = 5;
|
|
42
|
+
export declare function addEventListener(fn: (event: Event) => void): () => void;
|
|
43
|
+
export declare const PinPad: import("react-native").HostComponent<ViewProps>;
|
|
44
|
+
export declare const changePin: () => Promise<void>;
|
|
45
|
+
export declare const areBiometricsSupported: () => Promise<boolean>;
|
|
46
|
+
export declare const areBiometricsEnabled: () => Promise<boolean>;
|
|
47
|
+
export declare const setBiometrics: (enabled: boolean) => Promise<void>;
|
|
48
|
+
export declare const reset: () => Promise<void>;
|
|
49
|
+
export declare const resetPinFlow: () => Promise<void>;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { NativeModules, NativeEventEmitter, requireNativeComponent, } from "react-native";
|
|
2
|
+
const NativeModule = NativeModules.ProcivisOneCoreModule;
|
|
3
|
+
export var PinEventType;
|
|
4
|
+
(function (PinEventType) {
|
|
5
|
+
PinEventType["SHOW_PIN"] = "RSE_SHOW_PIN";
|
|
6
|
+
PinEventType["HIDE_PIN"] = "RSE_HIDE_PIN";
|
|
7
|
+
PinEventType["PIN_STAGE"] = "RSE_PIN_STAGE";
|
|
8
|
+
PinEventType["DIGITS_ENTERED"] = "RSE_DIGITS_ENTERED";
|
|
9
|
+
PinEventType["INCORRECT_PIN"] = "RSE_INCORRECT_PIN";
|
|
10
|
+
})(PinEventType || (PinEventType = {}));
|
|
11
|
+
export var PinFlowType;
|
|
12
|
+
(function (PinFlowType) {
|
|
13
|
+
PinFlowType["SUBSCRIBE"] = "SUBSCRIBE";
|
|
14
|
+
PinFlowType["TRANSACTION"] = "TRANSACTION";
|
|
15
|
+
PinFlowType["ADD_BIOMETRICS"] = "ADD_BIOMETRICS";
|
|
16
|
+
PinFlowType["CHANGE_PIN"] = "CHANGE_PIN";
|
|
17
|
+
})(PinFlowType || (PinFlowType = {}));
|
|
18
|
+
export var PinFlowStage;
|
|
19
|
+
(function (PinFlowStage) {
|
|
20
|
+
PinFlowStage["CHECK_CURRENT_PIN"] = "CHECK_CURRENT_PIN";
|
|
21
|
+
PinFlowStage["NEW_FIRST_PIN"] = "NEW_FIRST_PIN";
|
|
22
|
+
PinFlowStage["NEW_SECOND_PIN"] = "NEW_SECOND_PIN";
|
|
23
|
+
})(PinFlowStage || (PinFlowStage = {}));
|
|
24
|
+
export const PIN_COUNT = 5;
|
|
25
|
+
export function addEventListener(fn) {
|
|
26
|
+
const eventEmitter = new NativeEventEmitter(NativeModule);
|
|
27
|
+
const showPinListener = eventEmitter.addListener(PinEventType.SHOW_PIN, (event) => {
|
|
28
|
+
fn({
|
|
29
|
+
type: PinEventType.SHOW_PIN,
|
|
30
|
+
flowType: event.flowType,
|
|
31
|
+
stage: event.stage,
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
const hidePinListener = eventEmitter.addListener(PinEventType.HIDE_PIN, () => {
|
|
35
|
+
fn({ type: PinEventType.HIDE_PIN });
|
|
36
|
+
});
|
|
37
|
+
const stageListener = eventEmitter.addListener(PinEventType.PIN_STAGE, (event) => {
|
|
38
|
+
fn({
|
|
39
|
+
type: PinEventType.PIN_STAGE,
|
|
40
|
+
stage: event.stage,
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
const digitsEnteredListener = eventEmitter.addListener(PinEventType.DIGITS_ENTERED, (event) => {
|
|
44
|
+
fn({
|
|
45
|
+
type: PinEventType.DIGITS_ENTERED,
|
|
46
|
+
digitsEntered: event.digitsEntered,
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
const incorrectPinListener = eventEmitter.addListener(PinEventType.INCORRECT_PIN, (event) => {
|
|
50
|
+
fn({
|
|
51
|
+
type: PinEventType.INCORRECT_PIN,
|
|
52
|
+
attemptsLeft: event.attemptsLeft,
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
return () => {
|
|
56
|
+
showPinListener.remove();
|
|
57
|
+
hidePinListener.remove();
|
|
58
|
+
stageListener.remove();
|
|
59
|
+
digitsEnteredListener.remove();
|
|
60
|
+
incorrectPinListener.remove();
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
export const PinPad = requireNativeComponent("RCTProcivisRSEPinPad");
|
|
64
|
+
export const changePin = async () => NativeModule.changeRSEPin();
|
|
65
|
+
export const areBiometricsSupported = async () => NativeModule.areRSEBiometricsSupported();
|
|
66
|
+
export const areBiometricsEnabled = async () => NativeModule.areRSEBiometricsEnabled();
|
|
67
|
+
export const setBiometrics = async (enabled) => NativeModule.setRSEBiometrics(enabled);
|
|
68
|
+
export const reset = async () => NativeModule.resetRSE();
|
|
69
|
+
export const resetPinFlow = async () => NativeModule.resetRSEPinFlow();
|