@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
package/dist/src/core.js
CHANGED
|
@@ -4,9 +4,81 @@ export * from "./config";
|
|
|
4
4
|
export * from "./credential";
|
|
5
5
|
export * from "./credentialSchema";
|
|
6
6
|
export * from "./did";
|
|
7
|
+
export * from "./identifier";
|
|
7
8
|
export * from "./history";
|
|
8
9
|
export * from "./key";
|
|
9
10
|
export * from "./list";
|
|
11
|
+
export * from "./organisation";
|
|
10
12
|
export * from "./proof";
|
|
11
13
|
export * from "./proofSchema";
|
|
12
14
|
export * from "./trust";
|
|
15
|
+
// New Architecture bridgeless issue workaround: see https://github.com/facebook/react-native/issues/43221
|
|
16
|
+
export const interfaceMethodNames = [
|
|
17
|
+
"getVersion",
|
|
18
|
+
"getConfig",
|
|
19
|
+
"createOrganisation",
|
|
20
|
+
"upsertOrganisation",
|
|
21
|
+
"generateKey",
|
|
22
|
+
"createDid",
|
|
23
|
+
"getDids",
|
|
24
|
+
"createIdentifier",
|
|
25
|
+
"getIdentifier",
|
|
26
|
+
"getIdentifiers",
|
|
27
|
+
"deleteIdentifier",
|
|
28
|
+
"handleInvitation",
|
|
29
|
+
"holderAcceptCredential",
|
|
30
|
+
"holderRejectCredential",
|
|
31
|
+
"getPresentationDefinition",
|
|
32
|
+
"holderRejectProof",
|
|
33
|
+
"holderSubmitProof",
|
|
34
|
+
"getCredentials",
|
|
35
|
+
"runTask",
|
|
36
|
+
"checkCertificate",
|
|
37
|
+
"deleteProofClaims",
|
|
38
|
+
"getCredential",
|
|
39
|
+
"deleteCredential",
|
|
40
|
+
"importCredentialSchema",
|
|
41
|
+
"getCredentialSchema",
|
|
42
|
+
"getCredentialSchemas",
|
|
43
|
+
"deleteCredentialSchema",
|
|
44
|
+
"createProof",
|
|
45
|
+
"shareProof",
|
|
46
|
+
"shareProofSchema",
|
|
47
|
+
"shareCredentialSchema",
|
|
48
|
+
"getProof",
|
|
49
|
+
"getProofs",
|
|
50
|
+
"deleteProof",
|
|
51
|
+
"proposeProof",
|
|
52
|
+
"createProofSchema",
|
|
53
|
+
"getProofSchemas",
|
|
54
|
+
"getProofSchema",
|
|
55
|
+
"deleteProofSchema",
|
|
56
|
+
"importProofSchema",
|
|
57
|
+
"checkRevocation",
|
|
58
|
+
"createTrustAnchor",
|
|
59
|
+
"deleteTrustAnchor",
|
|
60
|
+
"getTrustAnchor",
|
|
61
|
+
"getTrustAnchors",
|
|
62
|
+
"createTrustEntity",
|
|
63
|
+
"getTrustEntity",
|
|
64
|
+
"getTrustEntities",
|
|
65
|
+
"getTrustEntityByDid",
|
|
66
|
+
"createRemoteTrustEntity",
|
|
67
|
+
"getRemoteTrustEntity",
|
|
68
|
+
"updateRemoteTrustEntity",
|
|
69
|
+
"getHistory",
|
|
70
|
+
"getHistoryEntry",
|
|
71
|
+
"createBackup",
|
|
72
|
+
"backupInfo",
|
|
73
|
+
"deleteCache",
|
|
74
|
+
"unpackBackup",
|
|
75
|
+
"finalizeImport",
|
|
76
|
+
"rollbackImport",
|
|
77
|
+
"resolveJsonldContext",
|
|
78
|
+
"uninitialize",
|
|
79
|
+
];
|
|
80
|
+
// Typescript automatic assertions to keep ONECore and interfaceMethodNames in sync
|
|
81
|
+
/** assert that all method names listed in {@link interfaceMethodNames} exist in {@link ONECore} interface */
|
|
82
|
+
const methodNamesCheck = interfaceMethodNames;
|
|
83
|
+
/** assert that all {@link ONECore} interface methods are listed in {@link interfaceMethodNames} */
|
|
84
|
+
const interfaceMethodsCheck = null;
|
package/dist/src/credential.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { DataTypeEnum } from "./config";
|
|
|
2
2
|
import { CredentialSchema } from "./credentialSchema";
|
|
3
3
|
import { ListQuery, SortDirection } from "./list";
|
|
4
4
|
import { DidListItem } from "./did";
|
|
5
|
+
import { IdentifierListItem } from "./identifier";
|
|
5
6
|
export declare enum CredentialStateEnum {
|
|
6
7
|
CREATED = "CREATED",
|
|
7
8
|
PENDING = "PENDING",
|
|
@@ -47,19 +48,23 @@ export interface CredentialListItem {
|
|
|
47
48
|
issuanceDate: string;
|
|
48
49
|
lastModified: string;
|
|
49
50
|
revocationDate?: string;
|
|
50
|
-
issuerDid?:
|
|
51
|
+
issuerDid?: DidListItem["id"];
|
|
52
|
+
issuer?: IdentifierListItem["id"];
|
|
51
53
|
state: CredentialStateEnum;
|
|
52
54
|
schema: CredentialSchema;
|
|
53
55
|
role: CredentialRoleEnum;
|
|
54
56
|
suspendEndDate?: string;
|
|
57
|
+
exchange: string;
|
|
55
58
|
}
|
|
56
|
-
export interface CredentialDetail extends Omit<CredentialListItem, "issuerDid"> {
|
|
59
|
+
export interface CredentialDetail extends Omit<CredentialListItem, "issuerDid" | "issuer"> {
|
|
57
60
|
claims: Claim[];
|
|
58
61
|
redirectUri?: string;
|
|
59
62
|
lvvcIssuanceDate?: string;
|
|
60
63
|
mdocMsoValidity?: MdocMsoValidity;
|
|
61
64
|
issuerDid?: DidListItem;
|
|
65
|
+
issuer?: IdentifierListItem;
|
|
62
66
|
holderDid?: DidListItem;
|
|
67
|
+
holder?: IdentifierListItem;
|
|
63
68
|
}
|
|
64
69
|
export interface MdocMsoValidity {
|
|
65
70
|
expiration: string;
|
|
@@ -19,6 +19,7 @@ export interface ImportCredentialSchemaRequestSchema {
|
|
|
19
19
|
layoutType?: LayoutType;
|
|
20
20
|
layoutProperties?: ImportCredentialSchemaLayoutProperties;
|
|
21
21
|
allowSuspension?: boolean;
|
|
22
|
+
externalSchema: boolean;
|
|
22
23
|
}
|
|
23
24
|
export interface ImportCredentialSchemaClaimSchema {
|
|
24
25
|
id: string;
|
|
@@ -62,12 +63,14 @@ export interface CredentialSchemaListQuery extends ListQuery {
|
|
|
62
63
|
}
|
|
63
64
|
export declare enum WalletStorageType {
|
|
64
65
|
HARDWARE = "HARDWARE",
|
|
65
|
-
SOFTWARE = "SOFTWARE"
|
|
66
|
+
SOFTWARE = "SOFTWARE",
|
|
67
|
+
REMOTE_SECURE_ELEMENT = "REMOTE_SECURE_ELEMENT"
|
|
66
68
|
}
|
|
67
69
|
export declare enum KnownCredentialSchemaType {
|
|
68
70
|
PROCIVIS_ONE_SCHEMA2024 = "PROCIVIS_ONE_SCHEMA2024",
|
|
69
71
|
FALLBACK_SCHEMA2024 = "FALLBACK_SCHEMA2024",
|
|
70
|
-
MDOC = "MDOC"
|
|
72
|
+
MDOC = "MDOC",
|
|
73
|
+
SD_JWT_VC = "SD_JWT_VC"
|
|
71
74
|
}
|
|
72
75
|
export type CredentialSchemaType = KnownCredentialSchemaType | string;
|
|
73
76
|
export declare enum LayoutType {
|
|
@@ -16,12 +16,14 @@ export var WalletStorageType;
|
|
|
16
16
|
(function (WalletStorageType) {
|
|
17
17
|
WalletStorageType["HARDWARE"] = "HARDWARE";
|
|
18
18
|
WalletStorageType["SOFTWARE"] = "SOFTWARE";
|
|
19
|
+
WalletStorageType["REMOTE_SECURE_ELEMENT"] = "REMOTE_SECURE_ELEMENT";
|
|
19
20
|
})(WalletStorageType || (WalletStorageType = {}));
|
|
20
21
|
export var KnownCredentialSchemaType;
|
|
21
22
|
(function (KnownCredentialSchemaType) {
|
|
22
23
|
KnownCredentialSchemaType["PROCIVIS_ONE_SCHEMA2024"] = "PROCIVIS_ONE_SCHEMA2024";
|
|
23
24
|
KnownCredentialSchemaType["FALLBACK_SCHEMA2024"] = "FALLBACK_SCHEMA2024";
|
|
24
25
|
KnownCredentialSchemaType["MDOC"] = "MDOC";
|
|
26
|
+
KnownCredentialSchemaType["SD_JWT_VC"] = "SD_JWT_VC";
|
|
25
27
|
})(KnownCredentialSchemaType || (KnownCredentialSchemaType = {}));
|
|
26
28
|
export var LayoutType;
|
|
27
29
|
(function (LayoutType) {
|
package/dist/src/history.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export declare enum HistoryActionEnum {
|
|
|
5
5
|
CREATED = "CREATED",
|
|
6
6
|
DEACTIVATED = "DEACTIVATED",
|
|
7
7
|
DELETED = "DELETED",
|
|
8
|
+
ERRORED = "ERRORED",
|
|
8
9
|
ISSUED = "ISSUED",
|
|
9
10
|
OFFERED = "OFFERED",
|
|
10
11
|
REJECTED = "REJECTED",
|
|
@@ -13,20 +14,31 @@ export declare enum HistoryActionEnum {
|
|
|
13
14
|
PENDING = "PENDING",
|
|
14
15
|
SUSPENDED = "SUSPENDED",
|
|
15
16
|
RESTORED = "RESTORED",
|
|
16
|
-
ERRORED = "ERRORED",
|
|
17
17
|
SHARED = "SHARED",
|
|
18
18
|
IMPORTED = "IMPORTED",
|
|
19
|
-
CLAIMS_REMOVED = "CLAIMS_REMOVED"
|
|
19
|
+
CLAIMS_REMOVED = "CLAIMS_REMOVED",
|
|
20
|
+
RETRACTED = "RETRACTED",
|
|
21
|
+
ACTIVATED = "ACTIVATED",
|
|
22
|
+
WITHDRAWN = "WITHDRAWN",
|
|
23
|
+
REMOVED = "REMOVED",
|
|
24
|
+
UPDATED = "UPDATED",
|
|
25
|
+
REACTIVATED = "REACTIVATED",
|
|
26
|
+
CSR_GENERATED = "CSR_GENERATED",
|
|
27
|
+
EXPIRED = "EXPIRED"
|
|
20
28
|
}
|
|
21
29
|
export declare enum HistoryEntityTypeEnum {
|
|
22
30
|
KEY = "KEY",
|
|
23
31
|
DID = "DID",
|
|
32
|
+
IDENTIFIER = "IDENTIFIER",
|
|
33
|
+
CERTIFICATE = "CERTIFICATE",
|
|
24
34
|
CREDENTIAL = "CREDENTIAL",
|
|
25
35
|
CREDENTIAL_SCHEMA = "CREDENTIAL_SCHEMA",
|
|
26
36
|
PROOF = "PROOF",
|
|
27
37
|
PROOF_SCHEMA = "PROOF_SCHEMA",
|
|
28
38
|
ORGANISATION = "ORGANISATION",
|
|
29
|
-
BACKUP = "BACKUP"
|
|
39
|
+
BACKUP = "BACKUP",
|
|
40
|
+
TRUST_ANCHOR = "TRUST_ANCHOR",
|
|
41
|
+
TRUST_ENTITY = "TRUST_ENTITY"
|
|
30
42
|
}
|
|
31
43
|
export declare enum HistorySearchTypeEnum {
|
|
32
44
|
CLAIM_NAME = "CLAIM_NAME",
|
|
@@ -46,18 +58,24 @@ export interface HistoryListQuery extends ListQuery {
|
|
|
46
58
|
createdDateFrom?: string;
|
|
47
59
|
/** accepts the RFC3339 format, e.g. use the {@link Date.toISOString} */
|
|
48
60
|
createdDateTo?: string;
|
|
49
|
-
|
|
61
|
+
identifierId?: string;
|
|
50
62
|
credentialId?: string;
|
|
51
63
|
credentialSchemaId?: string;
|
|
52
64
|
proofSchemaId?: string;
|
|
53
65
|
searchText?: string;
|
|
54
66
|
searchType?: HistorySearchTypeEnum;
|
|
55
67
|
}
|
|
56
|
-
export
|
|
68
|
+
export interface HistoryErrorMetadata {
|
|
69
|
+
errorCode: string;
|
|
70
|
+
message: string;
|
|
71
|
+
}
|
|
72
|
+
export type HistoryMetadata = UnexportableEntities | HistoryErrorMetadata;
|
|
57
73
|
export interface HistoryListItem {
|
|
58
74
|
id: string;
|
|
59
75
|
createdDate: string;
|
|
60
76
|
action: HistoryActionEnum;
|
|
77
|
+
name: string;
|
|
78
|
+
target?: string;
|
|
61
79
|
entityId?: string;
|
|
62
80
|
entityType: HistoryEntityTypeEnum;
|
|
63
81
|
organisationId: string;
|
package/dist/src/history.js
CHANGED
|
@@ -4,6 +4,7 @@ export var HistoryActionEnum;
|
|
|
4
4
|
HistoryActionEnum["CREATED"] = "CREATED";
|
|
5
5
|
HistoryActionEnum["DEACTIVATED"] = "DEACTIVATED";
|
|
6
6
|
HistoryActionEnum["DELETED"] = "DELETED";
|
|
7
|
+
HistoryActionEnum["ERRORED"] = "ERRORED";
|
|
7
8
|
HistoryActionEnum["ISSUED"] = "ISSUED";
|
|
8
9
|
HistoryActionEnum["OFFERED"] = "OFFERED";
|
|
9
10
|
HistoryActionEnum["REJECTED"] = "REJECTED";
|
|
@@ -12,21 +13,32 @@ export var HistoryActionEnum;
|
|
|
12
13
|
HistoryActionEnum["PENDING"] = "PENDING";
|
|
13
14
|
HistoryActionEnum["SUSPENDED"] = "SUSPENDED";
|
|
14
15
|
HistoryActionEnum["RESTORED"] = "RESTORED";
|
|
15
|
-
HistoryActionEnum["ERRORED"] = "ERRORED";
|
|
16
16
|
HistoryActionEnum["SHARED"] = "SHARED";
|
|
17
17
|
HistoryActionEnum["IMPORTED"] = "IMPORTED";
|
|
18
18
|
HistoryActionEnum["CLAIMS_REMOVED"] = "CLAIMS_REMOVED";
|
|
19
|
+
HistoryActionEnum["RETRACTED"] = "RETRACTED";
|
|
20
|
+
HistoryActionEnum["ACTIVATED"] = "ACTIVATED";
|
|
21
|
+
HistoryActionEnum["WITHDRAWN"] = "WITHDRAWN";
|
|
22
|
+
HistoryActionEnum["REMOVED"] = "REMOVED";
|
|
23
|
+
HistoryActionEnum["UPDATED"] = "UPDATED";
|
|
24
|
+
HistoryActionEnum["REACTIVATED"] = "REACTIVATED";
|
|
25
|
+
HistoryActionEnum["CSR_GENERATED"] = "CSR_GENERATED";
|
|
26
|
+
HistoryActionEnum["EXPIRED"] = "EXPIRED";
|
|
19
27
|
})(HistoryActionEnum || (HistoryActionEnum = {}));
|
|
20
28
|
export var HistoryEntityTypeEnum;
|
|
21
29
|
(function (HistoryEntityTypeEnum) {
|
|
22
30
|
HistoryEntityTypeEnum["KEY"] = "KEY";
|
|
23
31
|
HistoryEntityTypeEnum["DID"] = "DID";
|
|
32
|
+
HistoryEntityTypeEnum["IDENTIFIER"] = "IDENTIFIER";
|
|
33
|
+
HistoryEntityTypeEnum["CERTIFICATE"] = "CERTIFICATE";
|
|
24
34
|
HistoryEntityTypeEnum["CREDENTIAL"] = "CREDENTIAL";
|
|
25
35
|
HistoryEntityTypeEnum["CREDENTIAL_SCHEMA"] = "CREDENTIAL_SCHEMA";
|
|
26
36
|
HistoryEntityTypeEnum["PROOF"] = "PROOF";
|
|
27
37
|
HistoryEntityTypeEnum["PROOF_SCHEMA"] = "PROOF_SCHEMA";
|
|
28
38
|
HistoryEntityTypeEnum["ORGANISATION"] = "ORGANISATION";
|
|
29
39
|
HistoryEntityTypeEnum["BACKUP"] = "BACKUP";
|
|
40
|
+
HistoryEntityTypeEnum["TRUST_ANCHOR"] = "TRUST_ANCHOR";
|
|
41
|
+
HistoryEntityTypeEnum["TRUST_ENTITY"] = "TRUST_ENTITY";
|
|
30
42
|
})(HistoryEntityTypeEnum || (HistoryEntityTypeEnum = {}));
|
|
31
43
|
export var HistorySearchTypeEnum;
|
|
32
44
|
(function (HistorySearchTypeEnum) {
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { DidRequestKeys, DidTypeEnum, KeyRoleEnum } from "./did";
|
|
2
|
+
import { KeyListItem } from "./key";
|
|
3
|
+
import { ListQuery, SortDirection } from "./list";
|
|
4
|
+
export declare enum IdentifierStateEnum {
|
|
5
|
+
ACTIVE = "ACTIVE",
|
|
6
|
+
DEACTIVATED = "DEACTIVATED"
|
|
7
|
+
}
|
|
8
|
+
export declare enum IdentifierTypeEnum {
|
|
9
|
+
KEY = "KEY",
|
|
10
|
+
DID = "DID",
|
|
11
|
+
CERTIFICATE = "CERTIFICATE"
|
|
12
|
+
}
|
|
13
|
+
export interface CreateIdentifierRequest {
|
|
14
|
+
organisationId: string;
|
|
15
|
+
name: string;
|
|
16
|
+
keyId?: KeyListItem["id"];
|
|
17
|
+
did?: CreateIdentifierDidRequest;
|
|
18
|
+
certificates?: CreateIdentifierCertificateRequest[];
|
|
19
|
+
}
|
|
20
|
+
export interface CreateIdentifierDidRequest {
|
|
21
|
+
name?: string;
|
|
22
|
+
method: string;
|
|
23
|
+
keys: DidRequestKeys;
|
|
24
|
+
params: Record<string, string>;
|
|
25
|
+
}
|
|
26
|
+
export interface CreateIdentifierCertificateRequest {
|
|
27
|
+
name?: string;
|
|
28
|
+
chain: string;
|
|
29
|
+
keyId: string;
|
|
30
|
+
}
|
|
31
|
+
export interface IdentifierDetail {
|
|
32
|
+
id: string;
|
|
33
|
+
createdDate: string;
|
|
34
|
+
lastModified: string;
|
|
35
|
+
name: string;
|
|
36
|
+
organisationId: string;
|
|
37
|
+
type: IdentifierTypeEnum;
|
|
38
|
+
isRemote: boolean;
|
|
39
|
+
state: IdentifierStateEnum;
|
|
40
|
+
did?: IdentifierDidDetail;
|
|
41
|
+
key?: IdentifierKeyDetail;
|
|
42
|
+
certificates?: IdentifierCertificateDetail[];
|
|
43
|
+
}
|
|
44
|
+
export interface IdentifierDidDetail {
|
|
45
|
+
id: string;
|
|
46
|
+
createdDate: string;
|
|
47
|
+
lastModified: string;
|
|
48
|
+
name: string;
|
|
49
|
+
organisationId: string;
|
|
50
|
+
did: string;
|
|
51
|
+
didType: DidTypeEnum;
|
|
52
|
+
didMethod: string;
|
|
53
|
+
keys: {
|
|
54
|
+
authentication: KeyListItem[];
|
|
55
|
+
assertionMethod: KeyListItem[];
|
|
56
|
+
keyAgreement: KeyListItem[];
|
|
57
|
+
capabilityInvocation: KeyListItem[];
|
|
58
|
+
capabilityDelegation: KeyListItem[];
|
|
59
|
+
};
|
|
60
|
+
deactivated: boolean;
|
|
61
|
+
}
|
|
62
|
+
export interface IdentifierKeyDetail {
|
|
63
|
+
id: string;
|
|
64
|
+
createdDate: string;
|
|
65
|
+
lastModified: string;
|
|
66
|
+
organisationId: string;
|
|
67
|
+
name: string;
|
|
68
|
+
publicKey: number[];
|
|
69
|
+
keyType: string;
|
|
70
|
+
storageType: string;
|
|
71
|
+
}
|
|
72
|
+
export interface IdentifierCertificateDetail {
|
|
73
|
+
id: string;
|
|
74
|
+
createdDate: string;
|
|
75
|
+
lastModified: string;
|
|
76
|
+
state: CertificateStateEnum;
|
|
77
|
+
name: string;
|
|
78
|
+
chain: string;
|
|
79
|
+
key: KeyListItem;
|
|
80
|
+
x509Attributes: X509Attributes;
|
|
81
|
+
}
|
|
82
|
+
export declare enum CertificateStateEnum {
|
|
83
|
+
NOT_YET_ACTIVE = "NOT_YET_ACTIVE",
|
|
84
|
+
ACTIVE = "ACTIVE",
|
|
85
|
+
REVOKED = "REVOKED",
|
|
86
|
+
EXPIRED = "EXPIRED"
|
|
87
|
+
}
|
|
88
|
+
export interface X509Attributes {
|
|
89
|
+
serialNumber: string;
|
|
90
|
+
notBefore: string;
|
|
91
|
+
notAfter: string;
|
|
92
|
+
issuer: string;
|
|
93
|
+
subject: string;
|
|
94
|
+
fingerprint: string;
|
|
95
|
+
extensions: X509Extension[];
|
|
96
|
+
}
|
|
97
|
+
export interface X509Extension {
|
|
98
|
+
oid: string;
|
|
99
|
+
value: string;
|
|
100
|
+
critical: boolean;
|
|
101
|
+
}
|
|
102
|
+
export interface IdentifierListItem {
|
|
103
|
+
id: string;
|
|
104
|
+
createdDate: string;
|
|
105
|
+
lastModified: string;
|
|
106
|
+
name: string;
|
|
107
|
+
type: IdentifierTypeEnum;
|
|
108
|
+
isRemote: boolean;
|
|
109
|
+
state: IdentifierStateEnum;
|
|
110
|
+
}
|
|
111
|
+
export declare enum SortableIdentifierColumnEnum {
|
|
112
|
+
NAME = "NAME",
|
|
113
|
+
CREATED_DATE = "CREATED_DATE",
|
|
114
|
+
TYPE = "TYPE",
|
|
115
|
+
STATE = "STATE"
|
|
116
|
+
}
|
|
117
|
+
export declare enum ExactIdentifierFilterColumnEnum {
|
|
118
|
+
NAME = "NAME"
|
|
119
|
+
}
|
|
120
|
+
export interface IdentifierListQuery extends ListQuery {
|
|
121
|
+
sort?: SortableIdentifierColumnEnum;
|
|
122
|
+
sortDirection?: SortDirection;
|
|
123
|
+
name?: string;
|
|
124
|
+
type?: IdentifierTypeEnum;
|
|
125
|
+
state?: IdentifierStateEnum;
|
|
126
|
+
exact?: ExactIdentifierFilterColumnEnum[];
|
|
127
|
+
didMethods?: string[];
|
|
128
|
+
isRemote?: boolean;
|
|
129
|
+
keyAlgorithms?: string[];
|
|
130
|
+
keyRoles?: KeyRoleEnum[];
|
|
131
|
+
keyStorages?: string[];
|
|
132
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export var IdentifierStateEnum;
|
|
2
|
+
(function (IdentifierStateEnum) {
|
|
3
|
+
IdentifierStateEnum["ACTIVE"] = "ACTIVE";
|
|
4
|
+
IdentifierStateEnum["DEACTIVATED"] = "DEACTIVATED";
|
|
5
|
+
})(IdentifierStateEnum || (IdentifierStateEnum = {}));
|
|
6
|
+
export var IdentifierTypeEnum;
|
|
7
|
+
(function (IdentifierTypeEnum) {
|
|
8
|
+
IdentifierTypeEnum["KEY"] = "KEY";
|
|
9
|
+
IdentifierTypeEnum["DID"] = "DID";
|
|
10
|
+
IdentifierTypeEnum["CERTIFICATE"] = "CERTIFICATE";
|
|
11
|
+
})(IdentifierTypeEnum || (IdentifierTypeEnum = {}));
|
|
12
|
+
export var CertificateStateEnum;
|
|
13
|
+
(function (CertificateStateEnum) {
|
|
14
|
+
CertificateStateEnum["NOT_YET_ACTIVE"] = "NOT_YET_ACTIVE";
|
|
15
|
+
CertificateStateEnum["ACTIVE"] = "ACTIVE";
|
|
16
|
+
CertificateStateEnum["REVOKED"] = "REVOKED";
|
|
17
|
+
CertificateStateEnum["EXPIRED"] = "EXPIRED";
|
|
18
|
+
})(CertificateStateEnum || (CertificateStateEnum = {}));
|
|
19
|
+
export var SortableIdentifierColumnEnum;
|
|
20
|
+
(function (SortableIdentifierColumnEnum) {
|
|
21
|
+
SortableIdentifierColumnEnum["NAME"] = "NAME";
|
|
22
|
+
SortableIdentifierColumnEnum["CREATED_DATE"] = "CREATED_DATE";
|
|
23
|
+
SortableIdentifierColumnEnum["TYPE"] = "TYPE";
|
|
24
|
+
SortableIdentifierColumnEnum["STATE"] = "STATE";
|
|
25
|
+
})(SortableIdentifierColumnEnum || (SortableIdentifierColumnEnum = {}));
|
|
26
|
+
export var ExactIdentifierFilterColumnEnum;
|
|
27
|
+
(function (ExactIdentifierFilterColumnEnum) {
|
|
28
|
+
ExactIdentifierFilterColumnEnum["NAME"] = "NAME";
|
|
29
|
+
})(ExactIdentifierFilterColumnEnum || (ExactIdentifierFilterColumnEnum = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/src/proof.d.ts
CHANGED
|
@@ -3,14 +3,20 @@ import { CredentialSchema } from "./credentialSchema";
|
|
|
3
3
|
import { ListQuery, SortDirection } from "./list";
|
|
4
4
|
import { ProofInputClaimSchema, ProofSchemaListItem } from "./proofSchema";
|
|
5
5
|
import { DidListItem } from "./did";
|
|
6
|
+
import { IdentifierListItem } from "./identifier";
|
|
6
7
|
export declare enum ProofStateEnum {
|
|
7
8
|
CREATED = "CREATED",
|
|
8
9
|
PENDING = "PENDING",
|
|
9
10
|
REQUESTED = "REQUESTED",
|
|
10
11
|
ACCEPTED = "ACCEPTED",
|
|
11
12
|
REJECTED = "REJECTED",
|
|
13
|
+
RETRACTED = "RETRACTED",
|
|
12
14
|
ERROR = "ERROR"
|
|
13
15
|
}
|
|
16
|
+
export declare enum ProofRoleEnum {
|
|
17
|
+
HOLDER = "HOLDER",
|
|
18
|
+
VERIFIER = "VERIFIER"
|
|
19
|
+
}
|
|
14
20
|
export interface ProofInput {
|
|
15
21
|
claims: ProofInputClaim[];
|
|
16
22
|
credential?: CredentialDetail;
|
|
@@ -27,12 +33,19 @@ export interface ProofDetail {
|
|
|
27
33
|
lastModified: string;
|
|
28
34
|
proofInputs: ProofInput[];
|
|
29
35
|
state: ProofStateEnum;
|
|
36
|
+
role: ProofRoleEnum;
|
|
30
37
|
proofSchema?: ProofSchemaListItem;
|
|
31
38
|
verifierDid?: DidListItem;
|
|
39
|
+
verifier?: IdentifierListItem;
|
|
32
40
|
holderDid?: DidListItem;
|
|
41
|
+
holder?: IdentifierListItem;
|
|
33
42
|
exchange: string;
|
|
43
|
+
transport: string;
|
|
34
44
|
redirectUri?: string;
|
|
35
45
|
retainUntilDate?: string;
|
|
46
|
+
requestedDate?: string;
|
|
47
|
+
completedDate?: string;
|
|
48
|
+
claimsRemovedAt?: string;
|
|
36
49
|
}
|
|
37
50
|
export interface ProofListItem {
|
|
38
51
|
id: string;
|
|
@@ -41,16 +54,19 @@ export interface ProofListItem {
|
|
|
41
54
|
issuanceDate: string;
|
|
42
55
|
requestedDate?: string;
|
|
43
56
|
completedDate?: string;
|
|
44
|
-
verifierDid?:
|
|
57
|
+
verifierDid?: DidListItem["id"];
|
|
58
|
+
verifier?: IdentifierListItem["id"];
|
|
45
59
|
exchange: string;
|
|
46
60
|
transport: string;
|
|
47
61
|
state: ProofStateEnum;
|
|
62
|
+
role: ProofRoleEnum;
|
|
48
63
|
schema?: ProofSchemaListItem;
|
|
49
64
|
retainUntilDate?: string;
|
|
50
65
|
}
|
|
51
66
|
export interface CreateProofRequest {
|
|
52
|
-
proofSchemaId:
|
|
53
|
-
verifierDidId
|
|
67
|
+
proofSchemaId: ProofSchemaListItem["id"];
|
|
68
|
+
verifierDidId?: DidListItem["id"];
|
|
69
|
+
verifierIdentifierId?: IdentifierListItem["id"];
|
|
54
70
|
exchange: string;
|
|
55
71
|
redirectUri?: string;
|
|
56
72
|
verifierKey?: string;
|
|
@@ -72,6 +88,7 @@ export interface ShareProofResponse {
|
|
|
72
88
|
}
|
|
73
89
|
export interface PresentationDefinition {
|
|
74
90
|
requestGroups: PresentationDefinitionRequestGroup[];
|
|
91
|
+
credentials: CredentialDetail[];
|
|
75
92
|
}
|
|
76
93
|
export interface PresentationDefinitionRequestGroup {
|
|
77
94
|
id: string;
|
|
@@ -125,6 +142,7 @@ export interface ProofListQuery extends ListQuery {
|
|
|
125
142
|
name?: string;
|
|
126
143
|
ids?: string[];
|
|
127
144
|
proofStates?: ProofStateEnum[];
|
|
145
|
+
proofRoles?: ProofRoleEnum[];
|
|
128
146
|
proofSchemaIds?: string[];
|
|
129
147
|
exact?: ExactProofFilterColumnEnum[];
|
|
130
148
|
}
|
|
@@ -141,9 +159,11 @@ export interface ShareProofRequest {
|
|
|
141
159
|
params?: ShareProofRequestParams;
|
|
142
160
|
}
|
|
143
161
|
export interface ShareProofRequestParams {
|
|
144
|
-
|
|
162
|
+
clientIdScheme?: ClientIdSchemeEnum;
|
|
145
163
|
}
|
|
146
|
-
export declare enum
|
|
164
|
+
export declare enum ClientIdSchemeEnum {
|
|
147
165
|
REDIRECT_URI = "REDIRECT_URI",
|
|
148
|
-
VERIFIER_ATTESTATION = "VERIFIER_ATTESTATION"
|
|
166
|
+
VERIFIER_ATTESTATION = "VERIFIER_ATTESTATION",
|
|
167
|
+
DID = "DID",
|
|
168
|
+
X509_SAN_DNS = "X509_SAN_DNS"
|
|
149
169
|
}
|
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,8 +34,10 @@ export var ExactProofFilterColumnEnum;
|
|
|
28
34
|
(function (ExactProofFilterColumnEnum) {
|
|
29
35
|
ExactProofFilterColumnEnum["NAME"] = "NAME";
|
|
30
36
|
})(ExactProofFilterColumnEnum || (ExactProofFilterColumnEnum = {}));
|
|
31
|
-
export var
|
|
32
|
-
(function (
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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 = {}));
|
package/dist/src/trust.d.ts
CHANGED
|
@@ -54,7 +54,7 @@ export interface TrustEntityListItem {
|
|
|
54
54
|
trustAnchor: TrustAnchor;
|
|
55
55
|
}
|
|
56
56
|
export interface TrustEntity extends TrustEntityListItem {
|
|
57
|
-
organisationId
|
|
57
|
+
organisationId?: string;
|
|
58
58
|
}
|
|
59
59
|
export declare enum TrustEntityRoleEnum {
|
|
60
60
|
ISSUER = "ISSUER",
|
|
@@ -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>;
|